﻿@font-face {
  font-family: 'LemonMilk';
  src: url('/fonts/LEMONMILK-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'LemonMilk';
  src: url('/fonts/LEMONMILK-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'LemonMilk';
  src: url('/fonts/LEMONMILK-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'LemonMilk';
  src: url('/fonts/LEMONMILK-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

:root {
  --bg: #0b0607;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --text: #fdf7f2;
  --muted: #e7d4c9;
  --accent: #B8864E;
  --accent-2: #C99A62;
  --accent-3: #D9B07A;
  --border: rgba(255, 255, 255, 0.18);
  --font-display: "LemonMilk", sans-serif;
  --font-body: "LemonMilk", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
.hidden { display: none !important; }

body {
  font-family: var(--font-body);
  background: #0b0607;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.page-shell { 
  max-width: 100%; 
  margin: 0; 
  padding: 0; 
  min-height: 100vh; 
  display: flex; 
  flex-direction: column; 
}

main { flex: 1; }

/* Navbar */
.nav-shell.absolute-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(24px, env(safe-area-inset-top, 24px)) 48px 24px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent);
  border: none;
  backdrop-filter: none;
}

nav { display: flex; gap: 32px; }
nav a { 
  color: #fff; 
  text-decoration: none; 
  font-size: 13px; 
  font-weight: 600; 
  letter-spacing: 0.1em; 
  text-transform: uppercase; 
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.3s ease;
}
nav a:hover { opacity: 1; }
nav a:hover::after { width: 100%; }

.brand { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  font-family: var(--font-display); 
  font-size: 24px; 
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.brand-mark { 
  width: 12px; 
  height: 12px; 
  background: var(--accent); 
  border-radius: 50%; 
  box-shadow: 0 0 12px var(--accent);
}

.brand-logo-home {
  height: 64px;
  width: auto;
  display: block;
  opacity: 0.95;
}

.nav-ctas { display: flex; gap: 12px; align-items: center; }

.pill-btn, .primary-btn {
  border-radius: 999px;
  padding: 10px 24px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.pill-btn.primary, .primary-btn {
  background: #fff;
  color: #000;
}
.pill-btn.primary:hover, .primary-btn:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 90, 60, 0.4);
}

.pill-btn.ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.pill-btn.ghost:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

.pill-btn.small {
  padding: 6px 16px;
  font-size: 12px;
}

/* Calendar Month View */
.calendar-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.muted-day {
  opacity: 0.3;
  pointer-events: none;
}

/* Calendar Week View */
.calendar-week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
@media (max-width: 768px) {
  .calendar-week-grid {
    grid-template-columns: 1fr;
  }
}
.day-today > .day-head {
  color: var(--accent) !important;
}
.day-today > .day-head span {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
.slot-empty {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  padding: 8px 0;
  opacity: 0.4;
}
.slot-locked {
  opacity: 0.45;
  cursor: default;
}
.slot-past {
  opacity: 0.3;
  filter: grayscale(1);
  cursor: default;
  pointer-events: none;
}

/* Next Class Popup */
.next-class-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  background: #120909;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  width: 300px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.next-class-popup.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.popup-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.close-popup {
  position: absolute;
  top: -10px;
  right: -10px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
}
.popup-meta {
  display: flex;
  gap: 8px;
  margin: 8px 0;
}

.pill-btn.shadow {
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Hero mobile sub-block (desc + button under title) — hidden on desktop */
.hero-mobile-sub { display: none; }
.hero-fullscreen {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: grayscale(40%) contrast(110%) brightness(0.7);
  animation: heroZoom 20s infinite alternate ease-in-out;
  will-change: transform; /* Optimize for smoother animation */
}

.hero-video::after {
  /* Overlay for noise if needed, but usually video is enough. 
     If we want the noise texture over the video, we need a separate div or pseudo-element on a container.
     Since video is a replaced element, pseudo-elements might not work reliably on it in all browsers.
     We'll rely on the overlay-gradient for the main effect. */
  content: none;
}

@keyframes heroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(234, 88, 12, 0.8), rgba(185, 28, 28, 0.8)); /* orange-600 to red-700 */
  mix-blend-mode: multiply; /* or overlay/hard-light depending on desired effect */
  z-index: 1;
}

.hero-center-text {
  position: relative;
  z-index: 10;
  text-align: center;
  width: 100%;
  padding: 0 20px;
}

.hero-main-logo {
  width: min(78vw, 860px);
  height: auto;
  display: block;
  margin: -110px auto 0;
  animation: heroLogoIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroLogoIn {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.stagger-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(60px, 15vw, 180px);
  line-height: 0.85;
  color: #fff;
  text-transform: uppercase;
}

.stagger-text span {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: slideUpFade 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards; /* Smoother and longer */
}

.stagger-text span:nth-child(1) { animation-delay: 0.1s; }
.stagger-text span:nth-child(2) { animation-delay: 0.2s; }
.stagger-text span:nth-child(3) { animation-delay: 0.3s; }
.stagger-text span:nth-child(4) { animation-delay: 0.4s; }
.stagger-text span:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-bottom-left {
  position: absolute;
  bottom: 72px;
  left: 40px;
  z-index: 10;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.hero-desc {
  color: #fff;
  font-size: 18px;
  line-height: 1.5;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.hero-actions {
  display: flex;
  gap: 12px;
}

/* Rest of styles adapted */
.section { margin-top: 68px; padding: 0 40px; }
.section-heading { display: flex; flex-direction: column; gap: 8px; max-width: 780px; }
.section-heading h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); letter-spacing: 0.02em; }
.section-heading p { color: var(--muted); }

.card-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.card { padding: 18px; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; min-height: 170px; display: flex; flex-direction: column; gap: 10px; transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border 0.4s ease, background 0.4s ease; /* Smoother card hover */ }
.card:hover { transform: translateY(-4px); border-color: var(--accent); background: var(--panel-strong); }
.card.warm { background: linear-gradient(145deg, rgba(212, 163, 115, 0.08), rgba(250, 237, 205, 0.07)); }
.icon-chip { display: inline-flex; align-items: center; justify-content: center; height: 28px; padding: 0 10px; border-radius: 12px; font-weight: 800; font-size: 12px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--border); letter-spacing: 0.08em; }

.strip { border: 1px solid var(--border); border-radius: 16px; padding: 20px; background: rgba(255, 255, 255, 0.03); }
.muted { color: var(--muted); }

.calendar-shell { margin-top: 16px; border: 1px solid var(--border); border-radius: 14px; padding: 12px; background: rgba(0, 0, 0, 0.3); }
.calendar-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.calendar-legend { display: flex; gap: 10px; color: var(--muted); font-size: 13px; }
.legend { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.ok { background: #5cffb0; box-shadow: 0 0 10px rgba(92, 255, 176, 0.6); }
.dot.wl { background: #ffd86f; box-shadow: 0 0 10px rgba(255, 216, 111, 0.6); }

.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(100px, 1fr)); gap: 8px; }
#mobile-cal { display: none; }
.day-col { border: 1px solid var(--border); border-radius: 12px; padding: 10px; background: rgba(255, 255, 255, 0.03); min-height: 130px; display: grid; gap: 8px; }
.day-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; color: var(--muted); }
.slot { border: 1px solid var(--border); border-radius: 10px; padding: 8px; background: linear-gradient(145deg, rgba(255, 90, 60, 0.08), rgba(0, 0, 0, 0.25)); cursor: pointer; position: relative; }
.slot:hover { border-color: var(--accent); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25); }
.slot-title { font-weight: 700; }
.slot-time { color: var(--muted); font-size: 12px; }
.slot-status { font-size: 12px; margin-top: 4px; }
.status-ok { color: #5cffb0; }
.status-wl { color: #ffd86f; }
.slot-preview { position: absolute; left: 100%; top: 0; margin-left: 8px; width: 220px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: #120909; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); z-index: 5; display: none; }
.slot:hover .slot-preview { display: block; }

.class-modal-content {
  max-width: 560px;
  padding: 30px 30px 26px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(184, 134, 78, 0.12), transparent 34%),
    linear-gradient(180deg, #080405 0%, #0d0506 100%);
}
.class-modal-content .close-btn {
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #f5e8d9;
  background: rgba(0,0,0,0.42);
}
.class-modal-body { display: grid; gap: 18px; }
.class-modal-shell { display: grid; gap: 18px; }
.class-modal-header { display: grid; gap: 12px; }
.class-modal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.class-modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  line-height: 0.96;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}
.class-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.class-modal-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(14, 8, 9, 0.92);
  color: #fff8f1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.class-modal-chip.is-muted { color: var(--muted); }
.class-modal-chip-badge {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(184, 134, 78, 0.9);
  color: #130909;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
}
.class-modal-copy {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(14, 8, 9, 0.94);
  font-size: 14px;
  line-height: 1.65;
  color: #fff4ea;
}
.class-modal-copy.is-muted { color: var(--muted); }
.class-modal-occupancy {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
}
.class-modal-occupancy-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.class-modal-occupancy-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.class-modal-occupancy-value {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  color: var(--text);
}
.class-modal-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.08);
}
.class-modal-status-pill.is-open {
  color: #0f2d20;
  background: #5cffb0;
}
.class-modal-status-pill.is-waitlist {
  color: #fef3c7;
  background: rgba(146,64,14,0.42);
  border-color: rgba(252,211,77,0.35);
}
.class-modal-progress {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
}
.class-modal-progress > div { height: 100%; border-radius: inherit; }
.class-modal-occupancy-note {
  font-size: 12px;
  color: var(--muted);
}
.class-modal-action {
  display: grid;
  gap: 10px;
}
.class-modal-action-note {
  font-size: 11px;
  text-align: center;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.class-modal-state {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
}
.class-modal-state.is-success {
  color: #5cffb0;
  border-color: rgba(92,255,176,0.3);
  background: rgba(16, 61, 41, 0.88);
}
.class-modal-state.is-waitlist {
  color: #fbbf24;
  border-color: rgba(251,191,36,0.28);
  background: rgba(78, 48, 8, 0.9);
}
.class-modal-secondary {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  color: #f1ded0 !important;
  font-size: 0.9rem !important;
}
.class-meta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.badge { padding: 6px 10px; border-radius: 10px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.06); font-size: 12px; }

.method .timeline { margin-top: 18px; display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); transition: border 0.2s ease, transform 0.2s ease; }
.step:hover { border-color: var(--accent); transform: translateY(-2px); }
.step-index { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(145deg, var(--accent), var(--accent-2)); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #150606; }

.location-row { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.location-card { padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(145deg, rgba(255, 90, 60, 0.08), rgba(0, 0, 0, 0.25)); min-height: 150px; }
.location-card-link {
  color: inherit;
  text-decoration: none;
  display: grid;
  gap: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.location-card-link:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 134, 78, 0.5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.location-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.location-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.location-link::after {
  content: '↗';
  color: var(--accent);
}
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); border: 1px solid var(--border); padding: 6px 10px; border-radius: 10px; margin-top: 10px; }

.faq-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.faq-item { padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); transition: border 0.2s ease, transform 0.2s ease; }
.faq-item:hover { border-color: var(--accent); transform: translateY(-2px); }

.home-info-band {
  padding: 68px 40px 84px;
  background:
    radial-gradient(circle at top left, rgba(184, 134, 78, 0.18), transparent 35%),
    linear-gradient(180deg, #120909 0%, #0b0607 55%, #120909 100%);
}

.home-info-shell {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.section-heading-story {
  max-width: 900px;
  position: relative;
}

.section-heading-story::after {
  content: '';
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, rgba(184, 134, 78, 0.9), rgba(184, 134, 78, 0));
}

.section-heading-story h2 {
  max-width: 980px;
  text-wrap: balance;
}

.section-heading-story p:last-child {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.55;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.process-grid-symmetric {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.process-card {
  position: relative;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  display: grid;
  gap: 12px;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.process-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(184, 134, 78, 0.14), transparent 40%);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.process-card:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 134, 78, 0.45);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

.process-card:hover::before {
  opacity: 1;
}

.process-card-feature,
.process-card-compact {
  min-height: 290px;
}

.process-card-feature {
  align-content: end;
  background:
    radial-gradient(circle at top right, rgba(184, 134, 78, 0.24), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
}

.process-card-compact {
  align-content: start;
}

.process-card > * {
  position: relative;
  z-index: 1;
}

.process-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(184, 134, 78, 0.45);
  background: rgba(22, 12, 10, 0.92);
  color: #fff7ef;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.process-card h3 {
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.05;
  max-width: 16ch;
}

.process-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 44ch;
}

.process-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-weight: 800;
  color: #150606;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 24px rgba(184, 134, 78, 0.22);
}

.policy-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 6px;
}

.policy-chip,
.agenda-rule {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.account-panel {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}

.account-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.account-panel-copy {
  display: grid;
  gap: 6px;
}

.account-panel-copy h3 {
  font-size: 18px;
  line-height: 1.15;
}

.account-panel-copy p {
  color: var(--muted);
  font-size: 13px;
  max-width: 720px;
}

.account-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.account-pill.ready {
  background: rgba(92,255,176,0.12);
  color: var(--text);
  border: 1px solid rgba(92,255,176,0.32);
}

.account-pill.warning {
  background: rgba(251,191,36,0.12);
  color: var(--text);
  border: 1px solid rgba(251,191,36,0.32);
}

.account-pill.neutral {
  background: rgba(255,255,255,0.07);
  color: var(--muted);
  border: 1px solid var(--border);
}

.account-panel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.account-panel-stat {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.2);
}

.account-panel-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  color: var(--text);
}

.account-panel-stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.account-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.agenda-rules-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 900px) {
  .process-grid-symmetric {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .process-grid,
  .process-grid-symmetric {
    grid-template-columns: 1fr;
  }

  .process-card-feature,
  .process-card-compact {
    min-height: auto;
  }

  .location-card-head {
    flex-direction: column;
  }
}

.contact { margin-top: 52px; }
.contact-card { border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.65)); padding: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; align-items: start; }
.contact-form { display: grid; gap: 12px; }
.contact-form label { font-size: 14px; color: var(--muted); display: grid; gap: 6px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border-radius: 12px; border: 1px solid var(--border); padding: 10px 12px; background: rgba(255, 255, 255, 0.05); color: var(--text); font-family: var(--font-body); }

/* Hero Split Animation */
.split-hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: hidden;
  font-size: clamp(60px, 15vw, 180px);
  line-height: 0.85;
  margin: 0;
  font-family: var(--font-display);
  text-transform: uppercase;
}

.hero-left {
  display: block;
  /* AnimatedContent simulation: distance=150, duration=1.2, ease=bounce.out, initialOpacity=0.2, scale=1.1, delay=0.3 */
  animation: heroBounceInLeft 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
  opacity: 0;
  color: #fff;
}

.hero-right {
  display: block;
  /* AnimatedContent simulation: distance=150, duration=1.2, ease=bounce.out, initialOpacity=0.2, scale=1.1, delay=0.3 */
  animation: heroBounceInRight 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
  opacity: 0;
  color: transparent;
  -webkit-text-stroke: 1px #fff;
}

@keyframes heroBounceInLeft {
  0% {
    opacity: 0.2;
    transform: translateX(-150px) scale(1.1);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes heroBounceInRight {
  0% {
    opacity: 0.2;
    transform: translateX(150px) scale(1.1);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Footer Redesign - Minimalist */
.footer {
  margin-top: auto;
  padding: 40px 48px 20px; /* Reduced padding */
  border-top: 1px solid var(--border);
  background: #0b0607;
  display: flex;
  flex-direction: column;
  gap: 24px; /* Reduced gap */
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: clamp(40px, 12vw, 160px); /* Slightly larger max */
  line-height: 0.8;
  color: rgba(255,255,255,0.05); /* Slightly more visible */
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  width: 100%;
  text-align: center;
  margin-bottom: 0; /* Remove margin */
  order: 2; /* Ensure it can be reordered via flex if needed, but we'll do HTML */
}

.footer-links {
  display: flex;
  gap: 32px;
  justify-content: center;
  width: 100%;
  order: 1;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.2s;
  position: relative;
}

.footer a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.footer a:hover { color: #fff; }
.footer a:hover::after { width: 100%; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 24px;
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

[data-animate] { 
  opacity: 0; 
  transform: translateY(30px); 
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1); 
}
[data-animate].visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .hero-hot { min-height: 92vh; padding: 52px 22px; margin: -12px -20px 0; width: calc(100% + 40px); }
  
  .nav-shell.absolute-nav {
    padding: max(16px, env(safe-area-inset-top, 16px)) 20px 16px;
    flex-direction: column;
    gap: 16px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
    backdrop-filter: none;
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  .brand-logo-home {
    height: 50px;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    gap: 24px;
  }
  
  nav::-webkit-scrollbar { display: none; } /* Hide scrollbar */

  .nav-ctas {
    width: 100%;
    justify-content: center;
  }

  .calendar-grid { grid-template-columns: repeat(3, minmax(140px, 1fr)); }
  
  .hero-bottom-left {
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 0 20px 20px;
    align-items: center;
    text-align: center;
  }
  
  .hero-bottom-left div {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hero-copy h1 { font-size: clamp(38px, 12vw, 64px); }
  .hero-ctas { gap: 10px; }
  .hero-ctas .lg { width: 100%; text-align: center; }
  
  .nav-ctas { 
    gap: 8px;
  }
  
  .nav-ctas .pill-btn {
    padding: 8px 16px;
    font-size: 12px;
  }
  
  #profile-btn, #logout-btn { display: none; }
  
  .calendar-grid { grid-template-columns: repeat(1, 1fr); }
  
  .section { padding: 0 20px; }
  .footer { padding: 30px 20px; }
  
  /* Hero mobile: flexbox layout — NO absolute bottom, hero manages its own spacing */
  .hero-fullscreen {
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    /* Top padding clears the transparent nav (~60px) + Dynamic Island safe area */
    padding-top: calc(64px + env(safe-area-inset-top, 0px)) !important;
    /* Bottom padding = nav content (~52px) + safe-area home indicator (34px en iPhone Pro) + buffer */
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 20px)) !important;
  }

  .hero-center-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: none;
    position: relative;
  }

  .hero-main-logo {
    width: min(88vw, 590px);
    margin-top: -66px;
  }

  .hero-bottom-left {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 24px !important;
    margin-bottom: 14px;
    gap: 12px !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    flex-shrink: 0;
  }

  .hero-desc {
    font-size: 13px;
    max-width: 280px;
    margin: 0 auto;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 260px;
    gap: 8px;
    margin: 0 auto;
  }
  
  .hero-actions button {
    width: 100%;
    padding: 12px 0;
  }
}

/* Modals Redesign */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.hidden { display: none; }
.modal:not(.hidden) { display: flex; align-items: center; justify-content: center; }

.modal-backdrop { 
    position: absolute; inset: 0; 
    background: rgba(0,0,0,0.85); 
    backdrop-filter: blur(8px); 
}

.modal-content {
  position: relative; 
  width: 90%; max-width: 480px; 
  background: #050505;
  border: 1px solid var(--accent); 
  border-radius: 24px; 
  padding: 40px; 
  z-index: 2; 
  box-shadow: 0 0 50px rgba(184, 134, 78, 0.15);
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90dvh;
  overflow-y: auto;
  overflow-x: hidden;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-content.large { max-width: 960px; }

.close-btn { 
    position: absolute; top: 20px; right: 20px; 
    background: transparent; border: none; 
    color: var(--muted); font-size: 28px; 
    cursor: pointer; transition: color 0.2s;
}
.close-btn:hover { color: var(--accent); }

/* Tabs Redesign */
.tabs { 
    display: flex; gap: 20px; margin-bottom: 30px; 
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.tab { 
    background: transparent; border: none; 
    color: var(--muted); 
    font-family: var(--font-display);
    font-size: 24px; 
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 0 5px 0; 
    cursor: pointer; 
    opacity: 0.5;
    transition: all 0.3s ease;
    border-radius: 0;
}

.tab.active { 
    opacity: 1; 
    color: var(--accent); 
    text-shadow: 0 0 15px rgba(255, 90, 60, 0.5);
    border-bottom: 2px solid var(--accent);
}

.tab-panel { display: grid; gap: 20px; }
.tab-panel.hidden { display: none; }
.helper { color: var(--muted); font-size: 12px; margin-top: 20px; text-align: center; opacity: 0.6; }
.table-like { border: 1px dashed var(--border); padding: 10px; border-radius: 10px; color: var(--muted); font-size: 14px; }
.admin-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.modal form label { 
    color: var(--text); font-size: 12px; 
    text-transform: uppercase; letter-spacing: 1px;
    font-weight: 600;
    display: grid; gap: 8px; 
}

.modal form input, .modal form textarea, .modal form select { 
    width: 100%; 
    border-radius: 12px; 
    border: 1px solid var(--border); 
    padding: 14px 16px; 
    background: rgba(255,255,255,0.03); 
    color: var(--text); 
    font-family: var(--font-body);
    font-size: 16px;
    transition: all 0.2s;
}

.modal form input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 90, 60, 0.05);
    box-shadow: 0 0 0 4px rgba(255, 90, 60, 0.1);
}

.modal .primary-btn {
    margin-top: 10px;
    width: 100%;
    padding: 16px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.modal .primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 90, 60, 0.3);
}

/* Shared Concept Styles */
.hero-title-large {
    font-family: var(--font-display);
    font-size: clamp(60px, 15vw, 180px);
    line-height: 0.85;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 2px #fff;
    opacity: 0.8;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(0,0,0,0.5);
}
.hero-title-large span {
    color: #fff;
    -webkit-text-stroke: 0;
    opacity: 1;
    display: block;
    margin-left: 10vw;
    text-shadow: 0 0 30px rgba(255, 90, 60, 0.3);
}

/* Profile Styles */
.profile-header {
    padding: 120px 0 40px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(0,0,0,0.8), rgba(0,0,0,1));
}
.profile-card {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}
.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--panel);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--accent);
    overflow: hidden;
    position: relative;
}
.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-info h1 {
    font-family: var(--font-display);
    font-size: 48px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.profile-stats {
    display: flex;
    gap: 20px;
    margin-top: 16px;
}
.stat-box {
    background: rgba(255,255,255,0.05);
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
}
.stat-label { font-size: 12px; color: var(--muted); text-transform: uppercase; }
.stat-value { font-size: 24px; font-weight: 700; color: var(--accent); }

.profile-content { padding: 40px 0; }
.history-list { display: grid; gap: 16px; }
.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
}
.history-date { font-weight: 700; color: var(--accent); }


/* Ensure Auth Modal is always on top */
#auth-modal { z-index: 110; }

/* =============================================
   MOBILE OPTIMIZATIONS
   ============================================= */

/* --- Hamburger button (hidden on desktop) --- */
.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 202;
  position: relative;
}
.hamburger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
  border-radius: 2px;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Mobile slide-out menu --- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; right: -100%;
  width: 80%; max-width: 300px;
  height: 100dvh;
  background: rgba(11,6,7,0.99);
  border-left: 1px solid var(--border);
  z-index: 201;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: calc(80px + env(safe-area-inset-top, 0px)) 28px calc(40px + env(safe-area-inset-bottom, 0px));
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.mobile-menu.open { right: 0; }
.mobile-menu a, .mobile-menu button {
  color: var(--text);
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
}
.mobile-menu a:hover, .mobile-menu button:hover { color: var(--accent); }
.mobile-menu .menu-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.mobile-menu .menu-ctas .pill-btn {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 14px;
}
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  backdrop-filter: blur(4px);
}
.mobile-menu-overlay.open { display: block; }

/* --- Bottom navigation bar --- */
.mobile-bottom-nav {
  display: none;
}

/* =============================================
   MOBILE BREAKPOINT
   ============================================= */
@media (max-width: 768px) {

  /* Nav: transparent/integrated with hero like desktop */
  .nav-shell.absolute-nav {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: max(14px, env(safe-area-inset-top, 14px)) 18px 14px !important;
    background: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 100 !important;
    border-bottom: none;
    gap: 0 !important;
    transition: background 0.25s ease, backdrop-filter 0.25s ease, border-color 0.25s ease;
  }
  .nav-shell.absolute-nav.nav-scrolled {
    background: rgba(11,6,7,0.96) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-bottom: 1px solid var(--border) !important;
  }
  .nav-shell.absolute-nav nav { display: none !important; }
  .nav-shell.absolute-nav .nav-ctas { display: none !important; }
  .hamburger-btn { display: flex !important; }
  .mobile-menu { display: flex !important; }

  /* Main content padding for fixed nav + bottom bar */
  main, .page-shell > main {
    padding-top: calc(60px + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: 72px !important;
  }

  /* Bottom nav bar — compact */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(11,6,7,0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--border);
    z-index: 150;
    /* Con viewport-fit=cover necesitamos env() para el indicador home de iPhone */
    padding: 4px 0 max(env(safe-area-inset-bottom, 0px), 4px);
    justify-content: space-around;
    align-items: center;
  }
  .mobile-bottom-nav a,
  .mobile-bottom-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--muted);
    text-decoration: none;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px 16px;
    min-width: 54px;
    transition: color 0.2s;
    font-family: var(--font-body);
  }
  .mobile-bottom-nav a.active,
  .mobile-bottom-nav button.active { color: var(--accent); }
  .mobile-bottom-nav svg { width: 20px; height: 20px; }
  .mobile-bottom-nav .nav-dot {
    width: 3px; height: 3px; border-radius: 50%;
    background: var(--accent);
    margin-top: 1px;
    opacity: 0;
    transition: opacity 0.2s;
  }
  .mobile-bottom-nav a.active .nav-dot,
  .mobile-bottom-nav button.active .nav-dot { opacity: 1; }

  /* Sections */
  .section { padding: 0 14px !important; margin-top: 12px !important; }
  .footer { padding: 24px 16px calc(72px + env(safe-area-inset-bottom, 0px) + 16px) 16px !important; }

  /* Calendar: day-strip mobile view */
  #calendar-grid { display: none !important; }
  #mobile-cal { display: block !important; }
  .calendar-shell { padding: 10px 8px !important; }
  .calendar-header { flex-direction: column !important; align-items: flex-start !important; gap: 6px !important; }

  .day-strip {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px 0 14px;
    -webkit-overflow-scrolling: touch;
  }
  .day-strip::-webkit-scrollbar { display: none; }

  .day-pill {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: transparent;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background 0.18s, border-color 0.18s;
    min-width: 48px;
    color: var(--text);
  }
  .day-pill.active {
    background: var(--accent);
    border-color: var(--accent);
  }
  .day-pill.today:not(.active) { border-color: rgba(255,90,60,0.45); }
  .day-pill-wd {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
    color: var(--muted);
  }
  .day-pill.active .day-pill-wd { color: rgba(255,255,255,0.85); }
  .day-pill-num {
    font-size: 20px;
    font-weight: 800;
    font-family: var(--font-display);
    line-height: 1;
  }
  .day-pill-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
  }
  .day-pill.active .day-pill-dot { background: rgba(255,255,255,0.75) !important; }
  .dot-has-space { background: #5cffb0; }
  .dot-waitlist { background: #ffd86f; }
  .dot-all-past { background: rgba(255,255,255,0.15); }
  .dot-no-class { background: transparent; }

  .mobile-day-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .mobile-day-empty {
    text-align: center;
    padding: 32px 0;
    color: var(--muted);
    font-size: 14px;
  }
  .mobile-slot {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255,90,60,0.07), rgba(0,0,0,0.2));
    cursor: pointer;
    transition: border-color 0.2s;
  }
  .mobile-slot:active, .mobile-slot:hover { border-color: var(--accent); }
  .mobile-slot.slot-past { opacity: 0.4; cursor: default; }
  .mobile-slot.slot-locked { opacity: 0.5; cursor: default; }
  .mobile-slot-time {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--accent);
    min-width: 66px;
    line-height: 1;
    text-align: center;
  }
  .mobile-slot.slot-past .mobile-slot-time { color: var(--muted); }
  .mobile-slot-info { flex: 1; }
  .mobile-slot-title { font-weight: 700; font-size: 16px; }
  .mobile-slot-teacher { font-size: 12px; color: var(--muted); margin-top: 3px; }
  .mobile-slot .slot-status { font-size: 13px; margin-top: 5px; display: block; }
}

/* --- Modal: always centered --- */
@media (max-width: 640px) {
  .class-modal-content {
    padding: 24px 18px 20px !important;
    border-radius: 24px !important;
  }
  .class-modal-title {
    font-size: clamp(28px, 10vw, 40px);
  }
  .class-modal-meta {
    display: grid;
    grid-template-columns: 1fr;
  }
  .modal-content {
    width: 92% !important;
    max-width: 92% !important;
    border-radius: 20px !important;
    padding: 28px 20px !important;
    max-height: 88dvh !important;
    overflow-y: auto !important;
  }
  .modal form input,
  .modal form textarea,
  .modal form select {
    font-size: 16px !important;
    padding: 14px 16px !important;
  }
  .modal .primary-btn { font-size: 16px !important; padding: 16px !important; }
  .tab { font-size: 18px !important; }
}

/* --- Profile mobile --- */
@media (max-width: 640px) {
  .profile-header { padding: 80px 0 20px !important; }
  .profile-card {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 14px !important;
  }
  .profile-avatar { width: 80px !important; height: 80px !important; font-size: 28px !important; }
  .profile-info h1 { font-size: 28px !important; }
  .profile-stats {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 10px !important;
  }
  .stat-box { min-width: 85px !important; padding: 8px 14px !important; text-align: center !important; }
  .stat-value { font-size: 20px !important; }
  .history-item {
    flex-direction: column !important;
    gap: 10px !important;
    align-items: flex-start !important;
  }
  .history-item button { width: 100% !important; justify-content: center !important; }
}

/* ─── Push Notification Prompt (bottom sheet) ──────────────────────────────── */
#push-prompt-wrap {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 500;
  padding: 12px 16px calc(88px + max(env(safe-area-inset-bottom, 0px), 8px));
  transform: translateY(120%);
  transition: transform 0.44s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
#push-prompt-wrap.visible {
  transform: translateY(0);
  pointer-events: auto;
}
.push-prompt-card {
  background: #1c0e0f;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 22px 18px 18px;
  box-shadow: 0 -12px 48px rgba(0,0,0,0.65), 0 0 0 1px rgba(184,134,78,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}
.push-prompt-icon { font-size: 38px; line-height: 1; }
.push-prompt-title {
  font-family: var(--font-display);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  text-align: center;
  margin: 0;
}
.push-prompt-sub {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  line-height: 1.55;
  margin: 0;
}
.push-prompt-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}
#push-prompt-msg {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  min-height: 16px;
  width: 100%;
}

@media (max-width: 768px) {
  .home-info-band {
    padding: 44px 20px 56px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .account-panel-head {
    flex-direction: column;
  }

  .account-panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .account-panel-grid {
    grid-template-columns: 1fr;
  }
}
