/* ============================================================
   Jivatma — Mobile-first design system (320px and up)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ---- Color tokens ---- */
  /* Deep forest sage — primary brand */
  --green-900: #1f3024;
  --green-800: #2a4231;
  --green-700: #355440;     /* brand */
  --green-600: #486a55;
  --green-500: #6b8c75;
  --green-300: #a8c0ae;
  --green-100: #d9e3dc;
  --green-50:  #eef3ef;

  /* Warm honey — accent / primary CTA */
  --honey-700: #b07a2c;
  --honey-500: #d99a3f;
  --honey-300: #f0bf73;
  --honey-100: #fbe6c2;
  --honey-50:  #fdf3df;

  /* Soft clay — secondary accent */
  --clay-600: #b06a4f;
  --clay-100: #f3dcd0;

  /* Cream-bone background */
  --cream-50:  #faf7f0;     /* page bg */
  --cream-100: #f3eee0;

  /* Warm ink scale */
  --ink-900: #1a221d;
  --ink-700: #364039;
  --ink-500: #6c756f;
  --ink-400: #93998f;
  --ink-300: #bcc1b8;
  --ink-200: #d9dcd5;
  --ink-100: #ebede7;
  --ink-50:  #f5f6f2;

  --red:    #b94a3a;
  --orange: #cc7a3b;
  --amber:  var(--honey-500);
  --amber-bg: var(--honey-50);
  --amber-fg: #8a5a16;
  --blue:   #4a7a9e;
  --info-bg: #ebf2f7;

  /* Legacy aliases (kept so existing class rules keep working) */
  --green: var(--green-700);
  --green-light: var(--green-500);
  --green-bg: var(--green-50);
  --gray: var(--ink-500);
  --gray-light: var(--ink-200);
  --gray-lightest: var(--ink-50);
  --gray-dark: var(--ink-900);
  --white: #ffffff;

  /* ---- Spacing scale ---- */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.25rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-10: 2.5rem;

  /* ---- Radii ---- */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;
  --radius: var(--r-md);

  /* ---- Elevation ---- */
  --sh-1: 0 1px 2px rgba(31,42,38,0.06), 0 1px 1px rgba(31,42,38,0.04);
  --sh-2: 0 2px 6px rgba(31,42,38,0.07), 0 1px 2px rgba(31,42,38,0.04);
  --sh-3: 0 8px 24px rgba(31,42,38,0.10), 0 2px 6px rgba(31,42,38,0.05);
  --shadow: var(--sh-2);

  /* ---- Motion ---- */
  --ease: cubic-bezier(.2,.7,.2,1);
  --t-fast: 120ms;
  --t-med: 200ms;

  /* ---- Layout ---- */
  --maxw: 880px;
  --maxw-narrow: 720px;
  --bottom-nav-h: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, system-ui, sans-serif;
  background: var(--cream-50);
  color: var(--ink-900);
  line-height: 1.5;
  min-height: 100dvh;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Reserve space for bottom nav when present */
body.has-bottom-nav main {
  padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + var(--s-4));
}

a { color: var(--green-700); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--green-500) 50%, transparent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ---------- Top Nav ---------- */
.nav {
  background: #852519;
  color: #fffbd2;
  padding: 0 var(--s-4);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: none;
  padding-top: env(safe-area-inset-top, 0px);
}
.nav.hidden { display: none; }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  max-width: var(--maxw);
  margin: 0 auto;
  gap: var(--s-3);
}
.nav-brand {
  color: #fffbd2;
  text-decoration: none;
  display: flex;
  align-items: center;
  min-width: 0;
  flex-shrink: 1;
  overflow: hidden;
}
.nav-brand svg, .nav-brand-svg {
  display: block;
  height: 24px;
  width: auto;
  max-width: 100%;
  flex-shrink: 1;
}
@media (max-width: 380px) {
  .nav-brand svg, .nav-brand-svg { height: 20px; }
}
.nav-links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  background: #6b1d13;
  padding: var(--s-2) var(--s-4) var(--s-4);
  border-bottom: 1px solid rgba(255,251,210,0.15);
  box-shadow: var(--sh-2);
}
.nav-links.open { display: flex; }
/* Admin bottom-nav links are hidden in the hamburger on mobile */
.nav-links__desktop { display: none; }
.nav-links a, .nav-links button {
  color: #fffbd2;
  text-decoration: none;
  padding: var(--s-3) 0;
  border: none;
  background: none;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  border-bottom: 1px solid rgba(255,251,210,0.15);
}
.nav-links a:last-child, .nav-links button:last-child { border-bottom: none; }
.nav-links a:hover { color: #fdb515; }
.nav-toggle {
  background: none;
  border: none;
  color: #fffbd2;
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--s-1) var(--s-2);
  min-width: 40px;
  min-height: 40px;
  border-radius: var(--r-md);
}
.nav-toggle:hover { background: rgba(255,251,210,0.1); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex-shrink: 0;
}
.nav-icon-btn {
  background: none;
  border: none;
  color: #fffbd2;
  cursor: pointer;
  padding: var(--s-2);
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  font-family: inherit;
}
.nav-icon-btn:hover { background: rgba(255,251,210,0.1); color: #fdb515; }
.nav-icon-btn svg { display: block; }

@media (min-width: 768px) {
  .nav { padding: 0 var(--s-6); }
  .nav-inner { height: 64px; max-width: 1100px; gap: var(--s-5); }
  .nav-brand svg { height: 32px; }
  .nav-links {
    display: flex !important;
    flex-direction: row;
    position: static;
    padding: 0;
    box-shadow: none;
    border-bottom: none;
    background: transparent;
    gap: var(--s-2);
    flex: 1;
    margin-left: var(--s-6);
  }
  .nav-links a, .nav-links button {
    padding: var(--s-2) var(--s-3);
    border-bottom: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255,251,210,0.85);
    border-radius: var(--r-md);
    position: relative;
    transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  }
  .nav-links a:hover, .nav-links button:hover {
    background: rgba(255,251,210,0.1);
    color: #fdb515;
  }
  .nav-links a.active {
    color: #fdb515;
    background: rgba(255,251,210,0.1);
    font-weight: 600;
  }
  .nav-toggle { display: none; }
  /* Lang/logout in hamburger dropdown are redundant on desktop */
  .nav-links-mobile-only { display: none !important; }
  /* Bottom-nav items are desktop-visible in the top bar */
  .nav-links__desktop { display: block !important; }
  /* Lang/logout in nav-actions are shown on desktop */
  .nav-icon-desktop-only { display: inline-flex; }
}

/* ---------- Bottom Nav (mobile only) ---------- */
.bottom-nav {
  position: fixed;
  inset: auto 0 0 0;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow: hidden;
  background: var(--white);
  border-top: 1px solid var(--ink-100);
  z-index: 90;
  padding-bottom: var(--safe-bottom);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  box-shadow: 0 -2px 12px rgba(31,42,38,0.05);
}
.bottom-nav.hidden { display: none; }
.bottom-nav-item {
  flex: 1 1 0;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: var(--s-2) var(--s-1);
  min-height: var(--bottom-nav-h);
  color: var(--ink-500);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 500;
  transition: color var(--t-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
.bottom-nav-item svg { width: 24px; height: 24px; display: block; flex-shrink: 0; }
.bottom-nav-item span {
  line-height: 1.1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bottom-nav-item.active { color: var(--green-700); }
.bottom-nav-item.active svg { stroke: var(--green-700); }
.bottom-nav-item:active { background: var(--ink-50); }

@media (max-width: 359px) {
  .bottom-nav-item { font-size: 0.65rem; padding: var(--s-2) 2px; }
}

@media (min-width: 768px) {
  .bottom-nav { display: none; }
  body.has-bottom-nav main { padding-bottom: var(--s-6); }
}

/* ---------- "More" sheet ---------- */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31,42,38,0.45);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease);
}
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--white);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  z-index: 201;
  padding: var(--s-3) var(--s-4) calc(var(--s-4) + var(--safe-bottom));
  transform: translateY(100%);
  transition: transform var(--t-med) var(--ease);
  box-shadow: 0 -8px 32px rgba(31,42,38,0.18);
  max-width: 520px;
  margin: 0 auto;
}
.sheet.open { transform: translateY(0); }
.sheet-handle {
  width: 40px; height: 4px;
  background: var(--ink-200);
  border-radius: var(--r-pill);
  margin: 0 auto var(--s-3);
}
.sheet-list { display: flex; flex-direction: column; }
.sheet-item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-2);
  font-size: 1rem;
  color: var(--ink-900);
  text-decoration: none;
  background: none;
  border: none;
  border-bottom: 1px solid var(--ink-100);
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  text-align: left;
}
.sheet-item:last-child { border-bottom: none; }
.sheet-item svg { width: 20px; height: 20px; color: var(--ink-500); flex-shrink: 0; }
.sheet-item:active { background: var(--ink-50); }
.sheet-item-trail { margin-left: auto; color: var(--ink-500); font-size: 0.85rem; }

/* ---------- View toggle (master admin) ---------- */
.view-toggle {
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid var(--green-100);
  border-radius: var(--r-md);
  padding: var(--s-1) var(--s-3);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 36px;
}
.view-toggle:hover { background: var(--green-100); }
.view-toggle--student {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.view-toggle--student:hover { background: #2471a3; }
.nav-student-view { border-bottom: 3px solid var(--blue); }

/* ---------- Layout ---------- */
.page {
  max-width: var(--maxw-narrow);
  margin: 0 auto;
  padding: var(--s-5) var(--s-4);
}
.page h2 {
  font-size: 1.5rem;
  margin-bottom: var(--s-4);
  color: var(--ink-900);
  letter-spacing: -0.01em;
  font-weight: 700;
}
@media (min-width: 768px) {
  .page { padding: var(--s-8) var(--s-6); }
  .page h2 { font-size: 1.875rem; margin-bottom: var(--s-6); }
  .section { margin-bottom: var(--s-8); }
}
.section { margin-bottom: var(--s-6); }
.section h3 {
  font-size: 1.05rem;
  margin-bottom: var(--s-3);
  color: var(--ink-900);
  font-weight: 600;
}

/* ---------- Auth pages ---------- */
.auth-page {
  max-width: 400px;
  margin: var(--s-10) auto;
  padding: 0 var(--s-4);
  text-align: center;
}
.auth-page h1 {
  color: var(--green-700);
  font-size: 2rem;
  margin-bottom: var(--s-6);
  letter-spacing: -0.02em;
  font-weight: 700;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.auth-form input {
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  font-size: 1rem;
  background: var(--white);
  font-family: inherit;
  transition: border-color var(--t-fast) var(--ease);
}
.auth-form input:focus { border-color: var(--green-500); }
.auth-links {
  margin-top: var(--s-4);
  color: var(--ink-500);
  font-size: 0.9rem;
}
.auth-links a { color: var(--green-700); }

.opt-in-label {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  background: var(--cream-50, #f9f6f0);
  border: 1px solid var(--green-200, #c6dbc8);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4);
  cursor: pointer;
  margin: var(--s-1) 0;
}
.opt-in-label:hover { border-color: var(--green-400, #7aad80); }
.opt-in-checkbox { margin-top: 2px; accent-color: var(--green-700); flex-shrink: 0; width: 16px; height: 16px; }
.opt-in-text { display: flex; flex-direction: column; gap: 2px; }
.opt-in-main { font-size: 0.875rem; color: var(--ink-800, #2a2a2a); font-weight: 500; line-height: 1.4; }
.opt-in-note { font-size: 0.775rem; color: var(--ink-500, #777); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  border: none;
  border-radius: var(--r-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  font-family: inherit;
  min-height: 44px;
  transition: transform var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              opacity var(--t-fast) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--green-800);
  color: var(--white);
  box-shadow: var(--sh-1);
  letter-spacing: 0.01em;
}
.btn-primary:hover { background: var(--green-900); }
.btn-accent {
  background: var(--honey-500);
  color: #3a2a10;
  box-shadow: var(--sh-1);
  font-weight: 700;
}
.btn-accent:hover { background: var(--honey-700); color: #fff; }
.btn-secondary {
  background: var(--ink-50);
  color: var(--ink-900);
  border: 1px solid var(--ink-200);
}
.btn-secondary:hover { background: var(--ink-100); }
.btn-danger { background: var(--red); color: var(--white); }
.btn-danger:hover { background: #a52a1d; }
.btn-small { padding: var(--s-2) var(--s-3); font-size: 0.85rem; min-height: 36px; }
.btn-block { width: 100%; margin-top: var(--s-4); }
.btn-icon {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  padding: var(--s-2) var(--s-3);
  cursor: pointer;
  min-height: 40px;
  font-family: inherit;
}
.btn-icon:hover { background: var(--ink-50); }
.btn-link {
  background: none;
  border: none;
  color: var(--green-700);
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
  text-decoration: underline;
}
.btn.disabled, .btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.disabled:active, .btn:disabled:active { transform: none; }

/* Loading state for buttons (paired with public/lib/loading.js). */
.btn-loading { pointer-events: none; opacity: 0.85; }
.btn-loading .btn-loading-label { opacity: 0.75; }
.spinner {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: -0.15em;
  margin-right: 0.45em;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Page-level loading indicator (in-place skeleton substitute). */
.page-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 3rem 1rem;
  color: var(--ink-500);
  font-size: 0.95rem;
}
.page-loading .spinner {
  width: 1.25em;
  height: 1.25em;
  border-width: 2.5px;
  margin-right: 0;
  color: var(--green-700);
}

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: var(--s-3); }
.form label {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-700);
}
.form input, .form select, .form textarea {
  padding: var(--s-3);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  font-size: 1rem;
  background: var(--white);
  font-family: inherit;
  transition: border-color var(--t-fast) var(--ease);
  min-height: 44px;
}
.form input:focus, .form select:focus, .form textarea:focus {
  border-color: var(--green-500);
}
.form-row { display: flex; gap: var(--s-3); }
.form-row > * { flex: 1; }
.form-inline { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
.checkbox-label {
  flex-direction: row !important;
  align-items: center;
  gap: var(--s-2) !important;
  font-weight: 400 !important;
}
hr { border: none; border-top: 1px solid var(--ink-100); margin: var(--s-6) 0; }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th, .table td {
  padding: var(--s-3) var(--s-2);
  text-align: left;
  border-bottom: 1px solid var(--ink-100);
}
.table th {
  font-weight: 600;
  color: var(--ink-500);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.inactive-row { opacity: 0.5; }

/* ---------- Lists ---------- */
.list { list-style: none; }
.list li { padding: var(--s-2) 0; border-bottom: 1px solid var(--ink-100); }

/* ---------- Cards (passes) ---------- */
.pass-card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: var(--s-4);
  margin-bottom: var(--s-3);
  box-shadow: var(--sh-1);
  border: 1px solid var(--ink-100);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
  justify-content: space-between;
  transition: box-shadow var(--t-fast) var(--ease);
}
.pass-card:hover { box-shadow: var(--sh-2); }
.pass-card.pass-active { border-left: 4px solid var(--green-700); }
.pass-card.pass-expired { border-left: 4px solid var(--ink-400); opacity: 0.65; }
.pass-card.pass-used-up { border-left: 4px solid var(--orange); opacity: 0.75; }
.pass-card.pass-pending { border-left: 4px solid var(--amber); }
.pass-kind { font-weight: 600; font-size: 1rem; }
.pass-detail { color: var(--ink-500); font-size: 0.85rem; flex-basis: 100%; }
.pass-badge {
  font-size: 0.7rem;
  padding: var(--s-1) var(--s-2);
  border-radius: var(--r-pill);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pass-badges { display: flex; gap: var(--s-2); align-items: center; flex-wrap: wrap; }
.pass-active .pass-badge { background: var(--green-50); color: var(--green-700); }
.pass-expired .pass-badge { background: var(--ink-100); color: var(--ink-500); }
.pass-used-up .pass-badge { background: #fdebd0; color: var(--orange); }
.pass-badge-unpaid { background: var(--amber-bg) !important; color: var(--amber-fg) !important; }
.pass-badge-pending { background: var(--amber-bg) !important; color: var(--amber-fg) !important; }

.pass-type-card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: var(--s-4);
  margin-bottom: var(--s-3);
  box-shadow: var(--sh-1);
  border: 1px solid var(--ink-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.pass-type-info { flex: 1; min-width: 0; }
.pass-type-detail { color: var(--ink-500); font-size: 0.85rem; margin-top: 2px; }
.pass-type-note { font-size: 0.8rem; color: var(--green-700); margin-top: var(--s-1); }
.pass-type-contact { font-size: 0.8rem; color: var(--ink-500); white-space: nowrap; }
.section-label {
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--ink-500);
  margin-bottom: var(--s-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Class cards ---------- */
.class-card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: var(--s-4);
  margin-bottom: var(--s-3);
  box-shadow: var(--sh-1);
  border: 1px solid var(--ink-100);
  transition: box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.class-card.clickable { cursor: pointer; text-decoration: none; color: inherit; display: block; }
.class-card.clickable:hover { box-shadow: var(--sh-2); transform: translateY(-1px); }
.class-date { font-weight: 600; }
.class-time { color: var(--green-700); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.class-type { color: var(--ink-500); margin: var(--s-1) 0; font-size: 0.9rem; }
.class-spots { font-size: 0.85rem; color: var(--ink-500); }
.class-spots.full { color: var(--red); font-weight: 600; }
.class-action { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-3); }
.booked-badge { color: var(--green-700); font-weight: 600; font-size: 0.9rem; }
.class-list { display: flex; flex-direction: column; gap: 0; }

/* Admin dashboard expandable class cards */
.dash-class-list { display: flex; flex-direction: column; gap: var(--s-3); }
.dash-class-card {
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
  border: 1px solid var(--ink-100);
  overflow: hidden;
  transition: box-shadow var(--t-fast) var(--ease);
}
.dash-class-card.expanded { box-shadow: var(--sh-2); }
.dash-class-head {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}
.dash-class-head:hover { background: var(--cream-50); }
.dash-class-time {
  color: var(--green-700);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.dash-class-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dash-class-type {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-900);
}
.dash-class-type svg { color: var(--green-700); }
.dash-class-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--ink-500);
}
.dash-class-mode-bd { color: var(--ink-500); }
.dash-class-chev {
  color: var(--ink-500);
  transition: transform var(--t-fast) var(--ease);
  display: flex;
}
.dash-class-card.expanded .dash-class-chev { transform: rotate(90deg); }
.dash-class-body {
  padding: 0 var(--s-4) var(--s-4);
  border-top: 1px solid var(--ink-100);
  background: var(--cream-50);
}
.dash-att-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-3) 0;
}
.dash-class-body .attendance-row { background: var(--white); }
.dash-class-body .dash-save-att { margin-top: var(--s-2); }
.dash-class-body .dash-open-full { margin-top: var(--s-2); }


/* ---------- Badges ---------- */
.badge {
  font-size: 0.72rem;
  padding: 2px var(--s-2);
  border-radius: var(--r-pill);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-admin { background: #fdebd0; color: var(--orange); }
.badge-user { background: var(--ink-100); color: var(--ink-500); }
.badge-booked { background: var(--green-50); color: var(--green-700); }

/* ---------- Date navigation ---------- */
.date-nav {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}
.date-nav input[type="date"] {
  font-size: 1rem;
  padding: var(--s-3);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  flex: 1;
  background: var(--white);
  min-height: 44px;
  font-family: inherit;
}

/* ---------- Attendance ---------- */
.attendance-section h4 {
  color: var(--ink-500);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: var(--s-4) 0 var(--s-2);
}
.attendance-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--ink-100);
}
.attendance-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--green-700);
}
.user-name { flex: 1; font-size: 1rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.att-seg {
  display: inline-flex;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--white);
}
.att-seg-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--white);
  cursor: pointer;
  font-size: 1rem;
  color: var(--ink-500);
  border-left: 1px solid var(--ink-200);
  padding: 0;
  line-height: 1;
  font-family: inherit;
  transition: background var(--t-fast) var(--ease);
}
.att-seg-btn:first-child { border-left: none; }
.att-seg-btn.active { font-weight: bold; color: #fff; }
.att-seg-btn.att-attended { background: var(--green-700); }
.att-seg-btn.att-noshow { background: var(--red); }
.att-seg-btn.active:not(.att-attended):not(.att-noshow) {
  background: var(--ink-100); color: var(--ink-700);
}

.session-att-details {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
}
.session-att-details > summary {
  list-style: none;
  cursor: pointer;
  padding: var(--s-4);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 44px;
  user-select: none;
}
.session-att-details > summary::-webkit-details-marker { display: none; }
.session-att-details > summary::after {
  content: "›";
  margin-left: auto;
  color: var(--ink-500);
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: transform var(--t-fast) var(--ease);
}
.session-att-details[open] > summary::after { transform: rotate(90deg); }
.session-att-title { font-weight: 600; font-size: 1rem; flex: 1; }
.att-saved-badge {
  background: var(--green-50);
  color: var(--green-700);
  border-radius: var(--r-pill);
  padding: 2px 8px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 55vw;
}
.session-att-details .attendance-section {
  padding: 0 var(--s-4) var(--s-4);
  border-top: 1px solid var(--ink-100);
}

/* ---------- Quick actions ---------- */
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.alert-item { font-size: 0.9rem; }

/* ---------- Meeting link ---------- */
.meeting-link-note {
  background: var(--info-bg);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  margin-bottom: var(--s-4);
  font-size: 0.9rem;
  border: 1px solid #d4e2ec;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.meeting-link-note a {
  color: var(--blue);
  overflow-wrap: anywhere;
  word-break: break-all;
}

.no-pass-banner {
  background: var(--amber-bg);
  border: 1px solid #fde68a;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  margin-bottom: var(--s-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.no-pass-banner p { margin: 0; font-size: 0.9rem; color: var(--amber-fg); }
.no-pass-banner--urgent { background: #fee2e2; border-color: #fca5a5; }
.no-pass-banner--urgent p { color: #b91c1c; }

/* ---------- Back link ---------- */
.back-link {
  color: var(--green-700);
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-block;
  margin-bottom: var(--s-2);
}
.back-link:hover { text-decoration: underline; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + var(--s-4));
  left: 50%;
  transform: translateX(-50%);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-md);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 250;
  transition: opacity var(--t-med) var(--ease);
  max-width: 90%;
  box-shadow: var(--sh-3);
}
body:not(.has-bottom-nav) .toast { bottom: var(--s-6); }
.toast.hidden { display: none; }
.toast.success { background: var(--green-700); color: var(--white); }
.toast.error { background: var(--red); color: var(--white); }
.toast.info { background: var(--ink-900); color: var(--white); }

.muted { color: var(--ink-500); font-size: 0.9rem; }
.muted a { color: var(--green-700); }

.role-toggle { margin: var(--s-2) 0 var(--s-4); }

.lang-toggle {
  color: var(--ink-500);
  font-size: 0.85rem;
  margin-bottom: var(--s-2);
  text-decoration: underline;
  cursor: pointer;
}

.session-picker { display: flex; flex-direction: column; gap: 0; }

.btn-disabled {
  background: var(--ink-100);
  color: var(--ink-500);
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(31,42,38,0.45);
  z-index: 250;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.modal.hidden { display: none; }
.modal-content {
  background: var(--white);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: var(--s-5);
  width: 100%;
  max-width: 520px;
  box-shadow: var(--sh-3);
  padding-bottom: calc(var(--s-5) + var(--safe-bottom));
  max-height: 90dvh;
  overflow-y: auto;
}
@media (min-width: 600px) {
  .modal { align-items: center; padding: var(--s-4); }
  .modal-content { border-radius: var(--r-lg); max-width: 440px; }
}
.modal-content h3 {
  margin-bottom: var(--s-4);
  color: var(--ink-900);
  font-size: 1.15rem;
  font-weight: 700;
}
.modal-content textarea {
  width: 100%;
  padding: var(--s-3);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
}
.form-actions {
  display: flex;
  gap: var(--s-2);
  margin-top: var(--s-3);
}

/* ---------- Status badges ---------- */
.badge-active { background: var(--green-50); color: var(--green-700); }
.badge-expired { background: #fadbd8; color: var(--red); }
.badge-pending { background: #fdebd0; color: var(--orange); }

/* ---------- Bank details ---------- */
.bank-details {
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4);
  margin: var(--s-1) 0;
}
.bank-details h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-700);
  margin-bottom: var(--s-2);
}
.bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-2) 0;
  font-size: 0.9rem;
  gap: var(--s-2);
  border-bottom: 1px dashed rgba(74,103,65,0.2);
}
.bank-row:last-of-type { border-bottom: none; }
.bank-row span { color: var(--ink-500); font-size: 0.8rem; }
.bank-row strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9rem; }
.bank-row .copyable {
  cursor: pointer;
  padding: var(--s-1) var(--s-2);
  border-radius: var(--r-sm);
  background: var(--white);
  user-select: all;
  transition: background var(--t-fast) var(--ease);
}
.bank-row .copyable:hover { background: var(--green-100); }

/* ---------- Admin per-pass card ---------- */
.pass-admin-card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: var(--s-3);
  margin-bottom: var(--s-3);
  box-shadow: var(--sh-1);
  border: 1px solid var(--ink-100);
  border-left: 4px solid var(--green-700);
}
.pass-admin-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--s-2);
  gap: var(--s-2);
}
.pass-admin-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
  margin-bottom: var(--s-2);
}
.pass-admin-fields label { font-size: 0.8rem; }
.pass-admin-fields .checkbox-label { grid-column: span 2; }
.pass-admin-fields input[type="date"],
.pass-admin-fields input[type="number"] {
  padding: var(--s-2);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  width: 100%;
  font-family: inherit;
}
.pass-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

/* ---------- Mobile polish ---------- */
@media (max-width: 480px) {
  .page { padding: var(--s-4) var(--s-3); }
  .page h2 { font-size: 1.35rem; }
  .table { font-size: 0.85rem; }
  .table th, .table td { padding: var(--s-2) var(--s-1); }
  .form-row { flex-direction: column; gap: var(--s-2); }
  .form-inline { flex-direction: column; align-items: stretch; }
  .form-inline > * { width: 100%; }
  .nav-brand { font-size: 1.1rem; }
  .modal-content { padding: var(--s-4); }
}

/* Tables scroll horizontally on very narrow screens */
.table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
@media (min-width: 600px) {
  .table { display: table; white-space: normal; }
}

/* ---------- Onboarding card ---------- */
.onboarding-card {
  background: var(--white);
  border: 1px solid var(--green-100);
  border-radius: var(--r-md);
  padding: var(--s-5);
  margin-bottom: var(--s-6);
  box-shadow: var(--sh-1);
}
.onboarding-card h3 { color: var(--green-700); margin-bottom: var(--s-2); font-weight: 700; }
.onboarding-card p { margin-bottom: var(--s-3); }
.onboarding-steps { margin: 0 0 var(--s-4) var(--s-5); padding: 0; }
.onboarding-steps li { margin-bottom: var(--s-2); line-height: 1.5; }
.onboarding-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-2);
}

.info-box {
  background: var(--white);
  border-left: 3px solid var(--green-700);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  text-align: left;
  border: 1px solid var(--ink-100);
  border-left-width: 3px;
}
.info-box ol { margin: var(--s-2) 0 0 var(--s-5); padding: 0; }
.info-box ol li { margin-bottom: var(--s-1); line-height: 1.5; }
.info-box strong { display: block; margin-bottom: var(--s-1); color: var(--green-700); }

/* ---------- Pass type admin cards ---------- */
.pt-card-list { display: flex; flex-direction: column; gap: var(--s-2); }
.pt-card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-1);
}
.pt-card-inactive { opacity: 0.65; }
.pt-card > summary {
  list-style: none;
  cursor: pointer;
  padding: var(--s-3) var(--s-4);
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-width: 0;
}
.pt-card > summary::-webkit-details-marker { display: none; }
.pt-card > summary::after {
  content: "›";
  margin-left: auto;
  color: var(--ink-500);
  font-size: 1.4rem;
  transform: rotate(90deg);
  transition: transform var(--t-fast) var(--ease);
  flex-shrink: 0;
}
.pt-card[open] > summary::after { transform: rotate(270deg); }
.pt-summary-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.pt-summary-title {
  font-weight: 600;
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pt-summary-meta {
  font-size: 0.8rem;
  color: var(--ink-500);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pt-card-body {
  padding: var(--s-3) var(--s-4) var(--s-4);
  border-top: 1px solid var(--ink-100);
}
.pt-card-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
}
.pt-card-fields label {
  font-size: 0.7rem;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  min-width: 0;
  font-weight: 600;
}
.pt-card-fields input,
.pt-card-fields select {
  font-size: 0.95rem;
  padding: var(--s-2) var(--s-3);
  width: 100%;
  min-width: 0;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-sm);
  font-family: inherit;
  background: var(--white);
}
.pt-card-fields input:disabled { background: var(--ink-50); color: var(--ink-500); }
.pt-card-fields .field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
}

/* Upcoming sessions list */
.session-list { display: flex; flex-direction: column; gap: var(--s-2); }
.session-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
  min-width: 0;
}
.session-row.cancelled { opacity: 0.55; }
.session-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.session-row-title { font-weight: 600; font-size: 0.95rem; }
.session-row-meta { font-size: 0.8rem; color: var(--ink-500); }
.session-row .btn { flex-shrink: 0; }
.pt-card-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }
@media (min-width: 420px) {
  .pt-card-fields { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 600px) {
  .pt-card-fields { grid-template-columns: 1fr 1fr 1fr; }
}

/* ---------- Add pass type form ---------- */
.add-pt-wrap { margin-top: var(--s-3); }
.add-pt-open { width: 100%; }
.add-pt-card {
  background: var(--white);
  border: 2px solid var(--green-700);
  border-radius: var(--r-md);
  padding: var(--s-4);
  margin-top: var(--s-3);
  box-shadow: var(--sh-2);
}
.add-pt-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s-4);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--green-700);
}
.add-pt-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--ink-400);
  padding: var(--s-1);
  line-height: 1;
  border-radius: var(--r-sm);
  min-width: 32px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.add-pt-close-btn:hover { background: var(--ink-100); color: var(--ink-700); }

.kind-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}
.kind-pill { display: block; cursor: pointer; }
.kind-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.kind-pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--s-2) var(--s-1);
  border: 2px solid var(--ink-200);
  border-radius: var(--r-md);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-500);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  min-height: 52px;
  line-height: 1.3;
}
.kind-pill input:checked + span {
  border-color: var(--green-700);
  background: var(--green-50);
  color: var(--green-700);
  font-weight: 600;
}
.kind-pill:hover span { border-color: var(--green-300); }

.add-pt-count-row { margin-bottom: var(--s-3); }
.add-pt-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.add-pt-field-label {
  font-size: 0.7rem;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  font-weight: 600;
}
.add-pt-field-label input {
  font-size: 1rem;
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-sm);
  font-family: inherit;
  width: 100%;
  min-width: 0;
  color: var(--ink-900);
}
.add-pt-field-label input:focus {
  outline: none;
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px var(--green-50);
}

.error-line {
  color: #b91c1c;
  font-size: 0.85rem;
  padding: var(--s-2) var(--s-3);
  background: #fef2f2;
  border-radius: var(--r-sm);
  border: 1px solid #fecaca;
}

/* ---------- Active passes section ---------- */
.active-passes-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-2);
  flex-wrap: wrap;
  margin-bottom: var(--s-2);
}
.filter-chips {
  display: flex;
  gap: var(--s-1);
  flex-wrap: wrap;
  margin-bottom: var(--s-3);
}
.filter-chip {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-pill);
  padding: var(--s-1) var(--s-3);
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--ink-700);
  white-space: nowrap;
  font-family: inherit;
  min-height: 32px;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.filter-chip:hover { background: var(--ink-50); }
.filter-chip.active {
  background: var(--green-700);
  color: #fff;
  border-color: var(--green-700);
}
.active-pass-list { display: flex; flex-direction: column; gap: var(--s-2); }
.active-pass-card {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  min-width: 0;
  transition: background var(--t-fast) var(--ease);
}
.active-pass-card:hover { background: var(--ink-50); }
.active-pass-card.expiring { border-left: 3px solid var(--orange); }
.active-pass-card.unpaid { border-left: 3px solid var(--amber); }
.active-pass-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.active-pass-name {
  font-weight: 600;
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--s-1);
  flex-wrap: wrap;
}
.active-pass-type { font-size: 0.85rem; color: var(--ink-700); }
.active-pass-meta {
  font-size: 0.78rem;
  color: var(--ink-500);
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.active-pass-meta .sep { color: var(--ink-200); }
.expiring-text { color: var(--orange); font-weight: 500; }

.section-collapsible summary {
  cursor: pointer;
  padding: var(--s-2) 0;
  color: var(--green-700);
  font-weight: 600;
}

/* ---------- Request list ---------- */
.request-list { display: flex; flex-direction: column; gap: var(--s-3); }
.request-card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-md);
  padding: var(--s-4);
  box-shadow: var(--sh-1);
}
.request-card-done { background: var(--ink-50); }
.request-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s-2);
  gap: var(--s-2);
}
.request-name { font-weight: 600; color: inherit; text-decoration: none; }
.request-name:hover { text-decoration: underline; }
.request-body { font-size: 0.9rem; margin-bottom: var(--s-3); }
.request-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.warn-line { color: #b45309; font-size: 0.85rem; margin-top: var(--s-2); }
.info-line { color: var(--green-700); font-size: 0.85rem; margin-top: var(--s-2); }

/* ---------- Users list ---------- */
.user-list { display: flex; flex-direction: column; gap: var(--s-2); }
.user-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-3) var(--s-4);
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  gap: var(--s-3);
  min-height: 56px;
  transition: background var(--t-fast) var(--ease);
}
.user-row:hover { background: var(--ink-50); }
.user-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.user-row-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-row-pass { text-align: right; font-size: 0.85rem; color: var(--ink-500); }
.user-pass-summary { line-height: 1.3; }
.badge-unpaid {
  background: var(--amber-bg); color: var(--amber-fg);
  padding: 1px var(--s-2); border-radius: var(--r-pill); font-size: 0.72rem; font-weight: 600;
}
@media (max-width: 520px) {
  .user-row-pass { font-size: 0.8rem; max-width: 50%; }
}

.user-name-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex-wrap: wrap;
  min-width: 0;
}
.badge-unpaid-inline {
  background: var(--amber-bg);
  color: var(--amber-fg);
  padding: 2px var(--s-2);
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  white-space: nowrap;
  font-weight: 600;
}
.btn-xs { padding: 2px var(--s-2); font-size: 0.72rem; min-height: 26px; }

/* ---------- Cash notice ---------- */
.cash-notice {
  background: var(--amber-bg);
  border-left: 3px solid var(--amber);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  margin: var(--s-3) 0;
  font-size: 0.9rem;
}
.cash-notice p { margin: var(--s-1) 0 0; line-height: 1.5; }

.hidden { display: none !important; }

/* ============================================================
   NEW: Class card v2, type badges, view-toggle pill, mode picker
   ============================================================ */

/* ---------- Class card v2 ---------- */
.cc {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-3);
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  padding: var(--s-3);
  margin-bottom: var(--s-3);
  box-shadow: var(--sh-1);
  transition: box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  position: relative;
  overflow: hidden;
}
.cc:hover { box-shadow: var(--sh-2); border-color: var(--ink-200); }
.cc.cc--booked { border-color: var(--green-300); background: linear-gradient(180deg, var(--green-50) 0%, var(--white) 60%); }
.cc.cc--full { opacity: 0.85; }

/* Calendar-block date */
.cc-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  padding: var(--s-2) var(--s-1);
  background: var(--cream-100);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-md);
  text-align: center;
  flex-shrink: 0;
}
.cc-date-dow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-700);
  line-height: 1;
}
.cc-date-day {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-top: 2px;
}
.cc-date-mon {
  font-size: 0.7rem;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.cc.cc--booked .cc-date {
  background: var(--green-100);
  border-color: var(--green-300);
}

/* Body */
.cc-body {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  min-width: 0;
}
.cc-row-top {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  justify-content: space-between;
  flex-wrap: wrap;
}
.cc-time {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
}
.cc-time .icon { color: var(--green-600); }

.cc-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px var(--s-2);
  background: var(--green-50);
  color: var(--green-700);
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid var(--green-100);
}
.cc-type-badge .icon { width: 14px; height: 14px; }
.cc-type-badge.cc-type--online {
  background: var(--info-bg); color: var(--blue); border-color: #d4e2ec;
}
.cc-type-badge.cc-type--hybrid {
  background: var(--honey-50); color: var(--honey-700); border-color: var(--honey-100);
}

.cc-spots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--ink-500);
}
.cc-spots .icon { width: 14px; height: 14px; }
.cc-spots.full { color: var(--red); font-weight: 600; }

.cc-meta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
}

.cc-actions {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-2);
  flex-wrap: wrap;
}
.cc-booked-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-100);
  color: var(--green-800);
  padding: 4px var(--s-3);
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  font-weight: 600;
}
.cc-booked-pill .icon { width: 14px; height: 14px; }
.cc.cc--cancelled { opacity: 0.6; background: var(--cream-50, #faf6ef); }
.cc.cc--cancelled .cc-time,
.cc.cc--cancelled .cc-date-day,
.cc.cc--cancelled .cc-date-dow,
.cc.cc--cancelled .cc-date-mon { text-decoration: line-through; }
.cc-cancelled-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--rose-100, #fde0e7);
  color: var(--rose-800, #7c1d3c);
  padding: 4px var(--s-3);
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  font-weight: 600;
}
.cc-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cream-100);
  color: var(--ink-700);
  padding: 4px var(--s-3);
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--ink-100);
}
.cc-mode-pill .icon { width: 14px; height: 14px; color: var(--green-700); }

/* ---------- Mode picker (hybrid sign-up) ---------- */
.mode-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  margin-top: var(--s-2);
}
@media (max-width: 380px) {
  .mode-picker { grid-template-columns: 1fr; }
}
.mode-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-5) var(--s-3);
  background: var(--white);
  border: 1.5px solid var(--ink-200);
  border-radius: var(--r-md);
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-900);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  min-height: 110px;
}
.mode-option:hover {
  border-color: var(--green-500);
  background: var(--green-50);
}
.mode-option:active { transform: scale(0.98); }
.mode-option .icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green-100);
  color: var(--green-800);
}
.mode-option .icon { width: 24px; height: 24px; }
.mode-option .mode-sub {
  font-size: 0.78rem;
  color: var(--ink-500);
  font-weight: 500;
}
.mode-option--online .icon-circle { background: var(--info-bg); color: var(--blue); }

/* ---------- View toggle (segmented pill) ---------- */
.view-pill {
  display: inline-flex;
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-pill);
  padding: 3px;
  gap: 0;
  flex-shrink: 0;
}
.view-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px var(--s-3);
  border: none;
  background: transparent;
  color: var(--ink-500);
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  min-height: 28px;
}
.view-pill-btn .icon { width: 14px; height: 14px; }
.view-pill-btn.active {
  background: var(--white);
  color: var(--green-800);
  box-shadow: var(--sh-1);
}
.view-pill-btn.active.view-pill-btn--student {
  background: var(--green-800);
  color: var(--white);
}
.view-pill-btn:hover:not(.active) { color: var(--ink-700); }

/* Compact view-pill on narrow screens — show icon only */
@media (max-width: 419px) {
  .view-pill-btn span { display: none; }
  .view-pill-btn { padding: 5px var(--s-2); }
}

/* Hide desktop-only icon-buttons on mobile (admin profile is in the hamburger menu) */
@media (max-width: 767px) {
  .nav-icon-btn--desk { display: none !important; }
  .nav-actions { gap: var(--s-1); }
  .nav-inner { gap: var(--s-2); padding-left: 0; padding-right: 0; }
}

/* Tighten nav at very narrow widths so brand + view-pill + 3 icons fit on a 320px screen */
@media (max-width: 380px) {
  .nav { padding: 0 var(--s-2); }
  .nav-icon-btn { min-width: 36px; min-height: 36px; padding: var(--s-1); }
  .nav-toggle { min-width: 36px; min-height: 36px; padding: var(--s-1); font-size: 1.35rem; }
  .nav-actions { gap: 2px; }
  .nav-inner { gap: var(--s-1); }
}

/* Hide the old emoji label-only spans inside legacy view-toggle (defensive) */

/* ---------- Tweaks for accent on schedule signup ---------- */
.btn.btn-signup { background: var(--green-800); color: #fff; }
.btn.btn-signup:hover { background: var(--green-900); }
.btn.btn-signup-accent { background: var(--honey-500); color: #3a2a10; }
.btn.btn-signup-accent:hover { background: var(--honey-700); color: #fff; }

/* ---------- Notification log ---------- */
.nlog-page { padding-bottom: var(--s-8); overflow-x: hidden; }

.nlog-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}
.nlog-header h2 { margin: 0; }
.nlog-count {
  font-size: 0.78rem;
  color: var(--ink-500);
  white-space: nowrap;
}

.nlog-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
}
.nlog-filters .input {
  min-width: 0;
  width: 100%;
  font-size: 0.9rem;
  min-height: 40px;
  padding: var(--s-2) var(--s-3);
}
@media (max-width: 380px) {
  .nlog-filters { grid-template-columns: 1fr; }
}

.nlog-list { display: flex; flex-direction: column; gap: var(--s-2); }

.ncard-empty {
  text-align: center;
  padding: var(--s-8) 0;
  color: var(--ink-400);
  font-size: 0.9rem;
}

/* Card */
.ncard {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: var(--s-3);
  background: #fff;
  border: 1px solid var(--ink-100, var(--border));
  border-left: 3px solid var(--ink-200);
  border-radius: var(--r-md);
  padding: var(--s-3);
  box-shadow: var(--sh-1);
  align-items: start;
}
.ncard--ok      { border-left-color: var(--green-500, var(--green-700)); }
.ncard--err     { border-left-color: var(--red, #c0392b); background: #fffafa; }
.ncard--warn    { border-left-color: var(--honey-500, #d6a64f); }
.ncard--neutral { border-left-color: var(--ink-200); }

.ncard__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-50, #f7f7f4);
  border-radius: var(--r-sm);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.ncard--err .ncard__icon { background: #fee; }

.ncard__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ncard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
}
.ncard__event {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.ncard__status {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.ncard__status--ok      { background: #e7f3e8; color: #2d6a31; }
.ncard__status--err     { background: #fde2e2; color: #a32020; }
.ncard__status--warn    { background: #fdf0d8; color: #8a5a10; }
.ncard__status--neutral { background: var(--ink-100, #eef0ee); color: var(--ink-700); }

.ncard__recipient {
  font-size: 0.875rem;
  color: var(--ink-700);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ncard__phone {
  font-size: 0.78rem;
  color: var(--ink-400);
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ncard__meta {
  font-size: 0.75rem;
  color: var(--ink-400);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.ncard__sep { opacity: 0.5; }
.ncard__test {
  background: var(--amber-bg, #fdf0d8);
  color: var(--orange, #8a5a10);
  font-weight: 600;
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: var(--r-pill);
  letter-spacing: 0.02em;
}

.ncard__err {
  margin-top: var(--s-2);
  font-size: 0.78rem;
  color: #a32020;
  background: #fde2e2;
  border-radius: var(--r-sm);
  padding: 6px 10px;
  word-break: break-word;
  line-height: 1.4;
}

.ncard__details {
  margin-top: var(--s-2);
}
.ncard__details > summary {
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--ink-500);
  user-select: none;
  list-style: none;
  padding: 4px 0;
}
.ncard__details > summary::-webkit-details-marker { display: none; }
.ncard__details > summary::before {
  content: '▸';
  display: inline-block;
  margin-right: 6px;
  transition: transform var(--t-fast, 150ms) ease;
}
.ncard__details[open] > summary::before { transform: rotate(90deg); }
.ncard__det-body {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  margin-top: var(--s-1);
}
.ncard__det-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-500);
  font-weight: 600;
  margin-top: var(--s-1);
}
.ncard__det-text {
  font-size: 0.8rem;
  color: var(--ink-700);
}
.ncard__pre {
  margin: 0;
  white-space: pre-wrap;
  font-size: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--ink-700);
  background: var(--ink-50, #f7f7f4);
  border-radius: var(--r-sm);
  padding: var(--s-2);
  word-break: break-word;
  max-height: 240px;
  overflow-y: auto;
}
.ncard__pre--err { color: #a32020; background: #fdf6f6; }

.nlog-pagination {
  display: flex;
  gap: var(--s-2);
  justify-content: center;
  margin-top: var(--s-4);
}
.nlog-pagination .btn { flex: 1 1 0; max-width: 200px; }

/* ---------- Brand mark ---------- */
.brand-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand-row .icon { color: var(--green-700); }


/* PWA "new version available" banner — fixed to bottom of viewport above the bottom-nav. */
#pwa-update-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 9999;
  background: var(--ink-900, #1d2520);
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  font-size: 14px;
  animation: pwa-update-in 220ms ease-out;
}
body.has-bottom-nav #pwa-update-banner {
  bottom: calc(72px + env(safe-area-inset-bottom));
}
.pwa-update-msg { flex: 1; line-height: 1.3; }
.pwa-update-btn {
  background: #fff;
  color: #111;
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  min-height: 36px;
}
.pwa-update-btn:hover { background: #f3f3f3; }
.pwa-update-loading .pwa-update-btn { opacity: 0.6; pointer-events: none; }
@keyframes pwa-update-in {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@media (min-width: 640px) {
  #pwa-update-banner { left: auto; right: 16px; max-width: 380px; }
}

/* iOS "Add to Home Screen" nudge */
#pwa-ios-nudge {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 9998;
  background: var(--ink-900, #1d2520);
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  font-size: 14px;
  animation: pwa-update-in 220ms ease-out;
}
body.has-bottom-nav #pwa-ios-nudge {
  bottom: calc(72px + env(safe-area-inset-bottom));
}
.pwa-ios-msg {
  flex: 1;
  line-height: 1.5;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.pwa-ios-dismiss {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  min-height: 36px;
  white-space: nowrap;
}
.pwa-ios-dismiss:hover { background: rgba(255,255,255,0.25); }
.pwa-ios-hiding {
  animation: pwa-ios-out 200ms ease-in forwards;
}
@keyframes pwa-ios-out {
  from { transform: translateY(0);    opacity: 1; }
  to   { transform: translateY(100%); opacity: 0; }
}
@media (min-width: 640px) {
  #pwa-ios-nudge { left: auto; right: 16px; max-width: 380px; }
}

/* Android "Add to Home Screen" nudge */
#pwa-android-nudge {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 9997;
  background: #852519;
  color: #fffbd2;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 28px rgba(133,37,25,0.45);
  font-size: 14px;
  animation: pwa-update-in 220ms ease-out;
}
body.has-bottom-nav #pwa-android-nudge {
  bottom: calc(72px + env(safe-area-inset-bottom));
}
.pwa-android-install-btn {
  background: #fdb515;
  color: #852519;
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  min-height: 36px;
  white-space: nowrap;
  font-family: inherit;
}
.pwa-android-install-btn:hover { background: #ffc738; }
.pwa-android-dismiss-btn {
  background: rgba(255,251,210,0.15);
  color: #fffbd2;
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  min-height: 36px;
  white-space: nowrap;
  font-family: inherit;
}
.pwa-android-dismiss-btn:hover { background: rgba(255,251,210,0.25); }
@media (min-width: 640px) {
  #pwa-android-nudge { left: auto; right: 16px; max-width: 420px; }
}

/* ============================================================
   Landing Page
   ============================================================ */

:root {
  --maroon:      #852519;
  --maroon-dark: #5a1510;
  --maroon-mid:  #6b1d13;
  --gold:        #fdb515;
  --gold-light:  #ffc738;
  --cream:       #fffbd2;
  --cream-warm:  #fdf8ef;
}

.landing-page {
  background: var(--maroon);
  color: var(--cream);
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ── Landing nav ── */
.landing-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  padding: env(safe-area-inset-top, 0px) var(--s-5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(60px + env(safe-area-inset-top, 0px));
  background: rgba(90, 21, 16, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(253,181,21,0.12);
}
.landing-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.landing-nav-brand img { border-radius: 8px; }
.landing-nav-brand span {
  font-weight: 800;
  font-size: 1.05rem;
  color: #fdb515;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.landing-lang-btn {
  background: none;
  border: none;
  color: rgba(255,251,210,0.55);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--r-sm);
  font-family: inherit;
  transition: color var(--t-fast);
}
.landing-lang-btn:hover { color: #fffbd2; }

/* ── Shared landing buttons ── */
.landing-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fdb515;
  color: #852519;
  border: none;
  border-radius: var(--r-pill);
  padding: 13px 26px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 20px rgba(253,181,21,0.28);
  transition: transform 80ms, box-shadow 200ms, background 150ms;
  font-family: inherit;
}
.landing-btn-primary:hover {
  background: #ffc738;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(253,181,21,0.45);
  color: #852519;
}
.landing-btn-outline {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #fffbd2;
  border: 1.5px solid rgba(255,251,210,0.4);
  border-radius: var(--r-pill);
  padding: 13px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 150ms, background 150ms;
  font-family: inherit;
}
.landing-btn-outline:hover {
  border-color: #fffbd2;
  background: rgba(255,251,210,0.08);
  color: #fffbd2;
}

/* ── Section label ── */
.landing-section-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255,251,210,0.4);
  margin-bottom: var(--s-5);
}

/* ── Hero ── */
.landing-hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(60px + env(safe-area-inset-top,0px) + var(--s-8)) var(--s-5) var(--s-10);
  overflow: hidden;
}
.landing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 10% 60%, rgba(90,21,16,0.95) 0%, transparent 65%),
    radial-gradient(ellipse 60% 80% at 0% 100%, rgba(90,21,16,0.8) 0%, transparent 55%);
  pointer-events: none;
  z-index: 1;
}
.landing-hero-content {
  position: relative;
  z-index: 3;
  max-width: 500px;
}

/* Desktop right image panel */
.landing-hero-image {
  display: none;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 60%;
  overflow: hidden;
}
.landing-hero-image-fade-l {
  position: absolute;
  inset: 0;
  right: auto;
  width: 55%;
  background: linear-gradient(to right, #852519 0%, rgba(133,37,25,0.55) 55%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}
.landing-hero-image-fade-b {
  position: absolute;
  inset: auto 0 0;
  height: 20%;
  background: linear-gradient(to top, #852519 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}
.landing-claudia-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 12%;
  display: block;
}

/* Mobile: faint ghost of flyer */
.landing-hero-mobile-img {
  position: absolute;
  right: -20%;
  bottom: 0;
  height: 80%;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}

/* Brand mark */
.landing-brand-mark-wrap { margin-bottom: var(--s-5); }
.landing-brand-mark {
  width: 80px;
  height: 80px;
  border-radius: var(--r-lg);
  display: block;
}
.landing-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(253,181,21,0.65);
  margin-bottom: var(--s-2);
}
.landing-title {
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: #fdb515;
  text-transform: uppercase;
  margin-bottom: var(--s-3);
}
.landing-subtitle {
  font-size: clamp(1rem, 3vw, 1.3rem);
  font-weight: 400;
  color: #fffbd2;
  opacity: 0.88;
  margin-bottom: var(--s-5);
}
.landing-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(253,181,21,0.10);
  border: 1px solid rgba(253,181,21,0.25);
  border-radius: var(--r-pill);
  padding: 5px 14px;
  font-size: 0.82rem;
  color: #fdb515;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: var(--s-8);
}
.landing-ctas {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}

@media (min-width: 860px) {
  .landing-hero {
    padding-left: max(var(--s-8), calc((100% - 1200px) / 2 + var(--s-8)));
    padding-right: 0;
  }
  .landing-hero-image { display: block; }
  .landing-hero-mobile-img { display: none; }
  .landing-brand-mark { width: 92px; height: 92px; }
  .landing-nav { padding-left: max(var(--s-6), calc((100% - 1200px) / 2 + var(--s-6))); padding-right: max(var(--s-6), calc((100% - 1200px) / 2 + var(--s-6))); }
}

/* ── Diagonal accent strip ── */
.landing-strip {
  height: 56px;
  background: #6b1d13;
  clip-path: polygon(0 0, 100% 45%, 100% 100%, 0 100%);
  margin-top: -1px;
}

/* ── Schedule ── */
.landing-schedule {
  background: #6b1d13;
  padding: var(--s-8) var(--s-5) var(--s-10);
  text-align: center;
}
.landing-schedule-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  max-width: 560px;
  margin: 0 auto var(--s-5);
}
.landing-schedule-card {
  background: rgba(253,181,21,0.06);
  border: 1px solid rgba(253,181,21,0.16);
  border-radius: var(--r-lg);
  padding: var(--s-5) var(--s-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-1);
  transition: border-color 180ms, background 180ms;
}
.landing-schedule-card:hover {
  background: rgba(253,181,21,0.10);
  border-color: rgba(253,181,21,0.28);
}
.landing-schedule-days {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fffbd2;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.75;
}
.landing-schedule-time-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.landing-schedule-time {
  font-size: 3rem;
  font-weight: 900;
  color: #fdb515;
  line-height: 1;
  letter-spacing: -0.03em;
}
.landing-schedule-ampm {
  font-size: 0.85rem;
  color: rgba(255,251,210,0.4);
  font-weight: 600;
}
.landing-schedule-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: rgba(255,251,210,0.35);
}
@media (min-width: 560px) {
  .landing-schedule-grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
}
@media (min-width: 860px) {
  .landing-schedule { padding-left: max(var(--s-8), calc((100% - 800px) / 2)); padding-right: max(var(--s-8), calc((100% - 800px) / 2)); }
}

/* ── About ── */
.landing-about {
  background: #fdf8ef;
  padding: var(--s-10) var(--s-5);
}
.landing-about-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.landing-about-mark { margin-bottom: var(--s-5); }
.landing-about-mark img { border-radius: var(--r-md); opacity: 0.85; }
.landing-about-title {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  color: #852519;
  margin-bottom: var(--s-4);
  line-height: 1.2;
}
.landing-about-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #4a3228;
}

/* ── Location ── */
.landing-location {
  background: #852519;
  padding: var(--s-10) var(--s-5);
  text-align: center;
  border-top: 1px solid rgba(253,181,21,0.1);
}
.landing-location-inner { max-width: 480px; margin: 0 auto; }
.landing-location-cities {
  font-size: clamp(1.2rem, 3.5vw, 1.55rem);
  font-weight: 700;
  color: #fffbd2;
  margin-bottom: var(--s-5);
  letter-spacing: 0.02em;
}
.landing-location-divider {
  width: 48px;
  height: 2px;
  background: rgba(253,181,21,0.3);
  border-radius: 1px;
  margin: 0 auto var(--s-5);
}
.landing-location-contact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,251,210,0.3);
  margin-bottom: var(--s-2);
}
.landing-location-phone {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fdb515;
  text-decoration: none;
  letter-spacing: 0.02em;
  display: block;
  transition: color 150ms;
}
.landing-location-phone:hover { color: #ffc738; }

/* ── Footer ── */
.landing-footer {
  background: #5a1510;
  padding: var(--s-5);
  padding-bottom: calc(var(--s-5) + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
  font-size: 0.78rem;
  color: rgba(255,251,210,0.28);
  border-top: 1px solid rgba(255,255,255,0.04);
}
