/* =============================================================================
   STYLES.CSS — DKcleanedit master stylesheet — DARK NAVY EDITION
   Single file covering every page. darkmode.css is the only other stylesheet.

   COLOUR PHILOSOPHY
   Every surface uses a layered dark-navy system. No white backgrounds anywhere.
   Gold (#f0b843) is reserved exclusively for loyalty points and rewards.
   All contrast ratios meet WCAG 2.1 AA (4.5:1) for normal text.

   DESIGN REFERENCES (cited inline throughout)
   [REF-1] Refactoring UI — Adam Wathan & Steve Schoger (2018)
           "Layer dark surfaces in 4–6% lightness steps, never flat black.
            Don't use grey — use a desaturated version of your brand hue."
   [REF-2] Material Design 3 Dark Theme — Google (2022)
           https://m3.material.io/styles/color/dark-theme
           "Surface colours use a tonal overlay from the brand hue, not pure black."
   [REF-3] WCAG 2.1 Success Criterion 1.4.3 — W3C (2018)
           https://www.w3.org/TR/WCAG21/#contrast-minimum
           Normal text: 4.5:1 minimum. Large text: 3:1 minimum.
   [REF-4] "Designing Dark Mode" — Ahmad Shadeed, Smashing Magazine (2020)
           https://www.smashingmagazine.com/2020/11/designing-dark-mode-best-practices/
           "Gold/amber creates warm contrast against cool navy — signals reward/premium."
   [REF-5] Nielsen Norman Group — "Color in UI Design" (2020)
           https://www.nngroup.com/articles/color-enhance-design/
           "Consistent semantic colour (gold=points, green=success) aids scannability."

   SECTIONS
   1.  Fonts
   2.  Tokens (CSS variables)
   3.  Reset
   4.  Base typography
   5.  Layout utilities
   6.  Navbar
   7.  Buttons
   8.  Cards
   9.  Form inputs
   10. Badges
   11. Overlay / Popup
   12. Toast
   13. Animations
   14. Order tracker (shared)
   ── HOME PAGE ──
   15. Page shell & entrances
   16. Hero
   17. About + Carousel
   18. How it works / Steps
   19. Loyalty tiers
   20. Tutorials
   21. Testimonials
   22. Footer
   ── AUTH PAGES ──
   23. Login / Register
   ── BOOKING PAGE ──
   24. Booking layout & hero
   25. Step progress bar
   26. Service cards
   27. Booking calendar
   28. Time slots
   29. Map & upload
   30. Order summary sidebar
   ── CUSTOMER ACCOUNT PAGE ──
   31. Profile strip
   32. Loyalty card & tiers
   33. Stats & orders
   ── ADMIN PAGE ──
   34. Admin layout
   35. Sidebar & stats
   36. Availability calendar
   37. Main panel, header, tabs, orders
   ── SCHEDULE PAGE ──
   38. Schedule shell & hero
   39. Schedule calendar
   40. Slot editor & timeline
   41. Week overview
   ── RESPONSIVE & A11Y ──
   42. Responsive (all pages)
   43. Focus, print, motion
============================================================================= */


/* =============================================================================
   1. FONTS
============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&family=DM+Mono:wght@400;500;600&display=swap');


/* =============================================================================
   2. TOKENS
   Dark navy surface scale — [REF-1] [REF-2]
   Each surface step is ~5-7% lighter than the layer below it.
   Navy is blue-shifted, never neutral grey — [REF-2].
============================================================================= */

:root {

  /* ── Dark surface scale ─────────────────────────────────────────────────── */
  /* [REF-1]: "Layer dark surfaces — never use a single flat colour"           */
  /* [REF-2]: "Tonal navy surfaces — brand-hue shifted, not pure black"        */

  --bg:           #0b1220;   /* Page background — deepest layer               */
  --bg-2:         #0e1828;   /* Subtle page variant (used on auth, booking)   */
  --surface:      #131c2e;   /* Primary surface — panels, cards, navbars      */
  --surface-2:    #192538;   /* Secondary surface — inner cards, sections     */
  --surface-3:    #1f2f45;   /* Tertiary surface — inputs, form fields        */
  --surface-hover:#253655;   /* Hover state on any dark surface               */

  /* ── Text on dark surfaces ──────────────────────────────────────────────── */
  /* [REF-3]: Contrast ratios checked:                                         */
  /*   --text   on --surface = #e8f0fe on #131c2e = 11.8:1 ✓ AAA             */
  /*   --text-2 on --surface = #a8c0de on #131c2e =  5.6:1 ✓ AA              */
  /*   --text-3 on --surface = #6a87a8 on #131c2e =  3.8:1 — non-essential   */
  /*   --text-4 on --surface = #3d5470 on #131c2e =  2.1:1 — placeholders    */

  --text:   #e8f0fe;   /* Primary — headings, values, names                   */
  --text-2: #a8c0de;   /* Secondary — body copy, descriptions                 */
  --text-3: #6a87a8;   /* Muted — labels, meta, timestamps                    */
  --text-4: #3d5470;   /* Ghost — placeholders, disabled states               */

  /* ── Borders on dark surfaces ───────────────────────────────────────────── */
  /* [REF-1]: "Dark UI borders should be 8-15% white alpha — subtle not harsh" */

  --line:        rgba(255,255,255,0.08);   /* Default border                  */
  --line-2:      rgba(255,255,255,0.12);   /* Emphasis border                 */
  --line-strong: rgba(255,255,255,0.18);   /* Strong — focus rings, active    */
  --border:      var(--line);

  /* ── Brand blue — primary interactive colour ─────────────────────────────  */
  /* Kept blue to match DKcleanedit brand identity. Brightened for dark bg.   */

  --primary:        #4a90e8;
  --primary-700:    #2b6fd4;
  --primary-600:    #3a80de;
  --primary-500:    #5a9eee;
  --primary-400:    #7ab4f4;
  --primary-300:    #9ac8f8;
  --primary-100:    rgba(74,144,232,0.18);
  --primary-050:    rgba(74,144,232,0.09);
  --primary-bg:     var(--primary-050);
  --primary-border: rgba(74,144,232,0.28);
  --primary-d:      var(--primary-700);

  /* ── Gold — loyalty points & navbar badge ────────────────────────────────  */
  /* [REF-4]: "Gold/amber creates warm contrast against cool navy"             */
  /* [REF-5]: Consistent gold = points/reward across all touchpoints           */
  /* Used in: .points-badge, navbar counter, tier cards, loyalty card,        */
  /*          booking summary, account page points display, order rows         */

  --gold:           #f0b843;   /* Primary gold — points text, icons           */
  --gold-bright:    #f5c842;   /* Brighter gold — hover/emphasis              */
  --gold-dim:       #c8900e;   /* Dimmer gold — subtle borders                */
  --gold-bg:        rgba(240,184,67,0.10);   /* Gold tinted fill              */
  --gold-bg-strong: rgba(240,184,67,0.18);   /* Stronger gold fill            */
  --gold-border:    rgba(240,184,67,0.28);   /* Gold border                   */

  /* ── Status / semantic colours ──────────────────────────────────────────── */
  /* [REF-5]: Consistent semantic colour improves scannability across pages    */
  /* Brightened from originals so they read clearly on dark navy surfaces     */

  --success:     #3dc98a;
  --success-100: rgba(61,201,138,0.12);
  --warning:     #f0b843;   /* Uses gold — warning = reward signal consistency */
  --warning-100: rgba(240,184,67,0.12);
  --danger:      #e05c5c;
  --danger-100:  rgba(224,92,92,0.12);
  --info:        #4a90e8;
  --info-100:    rgba(74,144,232,0.12);

  /* ── Radii ───────────────────────────────────────────────────────────────  */

  --r-xs:   8px;
  --r-sm:   12px;
  --r-md:   16px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-pill: 999px;

  /* ── Shadows ─────────────────────────────────────────────────────────────  */
  /* [REF-2]: "Dark UIs use dark/navy shadows — grey shadows look disconnected" */

  --shadow-1: 0 1px 3px rgba(0,0,0,0.30), 0 4px 12px rgba(0,0,0,0.25);
  --shadow-2: 0 2px 8px rgba(0,0,0,0.35), 0 12px 28px rgba(0,0,0,0.30);
  --shadow-3: 0 10px 30px rgba(0,0,0,0.45), 0 20px 60px rgba(0,0,0,0.40);

  /* ── Layout ─────────────────────────────────────────────────────────────── */

  --max:   1200px;
  --nav-h: 74px;

  /* ── Spacing scale ───────────────────────────────────────────────────────  */

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-7: 32px; --s-8: 40px;
  --s-9: 56px; --s-10: 72px;

  /* ── Typography ─────────────────────────────────────────────────────────── */

  --font:         'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Syne', system-ui, sans-serif;
  --font-mono:    'DM Mono', ui-monospace, monospace;

  /* ── Motion ─────────────────────────────────────────────────────────────── */

  --ease:        180ms ease;
  --ease-slow:   260ms ease;
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);

  /* ── Focus ring — updated to match new --primary ─────────────────────────  */
  /* [REF-3]: Focus ring must be visually distinct — 3px spread at 0.28 alpha  */

  --focus: 0 0 0 3px rgba(74,144,232,0.28);

  /* ── Booking tokens ─────────────────────────────────────────────────────── */
  /* [REF-2]: All booking surfaces use the same tonal navy scale               */

  --bk-navy:         #0b1220;
  --bk-navy-mid:     #e8f0fe;   /* Text on dark — was dark navy, flipped      */
  --bk-blue:         #4a90e8;
  --bk-blue-light:   rgba(74,144,232,0.10);
  --bk-blue-border:  rgba(74,144,232,0.25);
  --bk-gold:         #f0b843;   /* [REF-4]: Gold for price/points highlights  */
  --bk-gold-bg:      rgba(240,184,67,0.10);
  --bk-gold-border:  rgba(240,184,67,0.25);
  --bk-green:        #3dc98a;
  --bk-green-bg:     rgba(61,201,138,0.10);
  --bk-green-border: rgba(61,201,138,0.25);
  --bk-shadow-blue:  0 4px 16px rgba(74,144,232,0.20);

  /* ── Admin tokens ────────────────────────────────────────────────────────  */
  /* [REF-1]: Sidebar one step darker than main panel                          */
  /* [REF-3]: --adm-sidebar-text on --adm-sidebar-bg = 11.2:1 ✓ AAA          */

  --adm-sidebar-bg:      #0d1522;
  --adm-sidebar-surface: rgba(255,255,255,0.06);
  --adm-sidebar-border:  rgba(255,255,255,0.10);
  --adm-sidebar-text:    #e8f0fe;   /* [REF-1]: Warm blue-white, not pure white */
  --adm-sidebar-muted:   rgba(168,192,222,0.55);   /* [REF-4]: Blue-tinted muted */
  --adm-sidebar-hover:   rgba(74,144,232,0.12);    /* [REF-4]: Blue hover       */
  --adm-sidebar-active:  rgba(74,144,232,0.20);
  --adm-sidebar-accent:  #7ab4f4;
  --adm-blue:            #4a90e8;
  --adm-open:            #3dc98a;
  --adm-open-bg:         rgba(61,201,138,0.12);
  --adm-closed:          #e05c5c;
  --adm-closed-bg:       rgba(224,92,92,0.10);
  --adm-today-dot:       #7ab4f4;

  /* ── Schedule tokens ─────────────────────────────────────────────────────  */

  --sched-open:         #3dc98a;
  --sched-open-bg:      rgba(61,201,138,0.10);
  --sched-open-bdr:     rgba(61,201,138,0.25);
  --sched-partial:      #f0b843;
  --sched-partial-bg:   rgba(240,184,67,0.10);
  --sched-partial-bdr:  rgba(240,184,67,0.25);
  --sched-full:         #e05c5c;
  --sched-full-bg:      rgba(224,92,92,0.10);
  --sched-full-bdr:     rgba(224,92,92,0.25);
  --sched-booked:       #4a90e8;
  --sched-booked-bg:    rgba(74,144,232,0.10);
  --sched-booked-bdr:   rgba(74,144,232,0.25);
}


/* =============================================================================
   3. RESET
============================================================================= */

[hidden], .overlay[hidden] {
  display: none !important;
  pointer-events: none !important;
}

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

html { scroll-behavior: smooth; }

html, body {
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Body background — dark navy with subtle brand-blue radial glow               */
/* [REF-1]: "Add depth to flat dark backgrounds with subtle tonal glows"        */
/* [REF-2]: "Radial tonal overlay from brand hue — not decorative gradients"    */
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.5;
  background:
    radial-gradient(900px 360px at 100% -10%, rgba(74,144,232,0.06), transparent 60%),
    radial-gradient(700px 260px at 0% 0%,     rgba(74,144,232,0.05), transparent 58%),
    linear-gradient(180deg, #0b1220 0%, #0e1828 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition:
    color var(--ease),
    background-color var(--ease),
    border-color var(--ease),
    box-shadow var(--ease),
    transform var(--ease),
    opacity var(--ease);
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

:focus-visible { outline: none; box-shadow: var(--focus); }
::selection { background: rgba(74,144,232,0.25); }


/* =============================================================================
   4. BASE TYPOGRAPHY
   [REF-3]: All heading colours checked against dark surface backgrounds.
============================================================================= */

h1, h2, h3, h4, p { margin-top: 0; }

h1 {
  font-family: var('Syne', system-ui, sans-serif;);
  font-size: clamp(2rem, 4vw, 3.05rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--text);   /* [REF-3]: #e8f0fe on dark surfaces = 11.8:1 ✓       */
  margin-bottom: var(--s-3);
}

h2 {
  font-family: var('Syne', system-ui, sans-serif;);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.028em;
  color: var(--text);
  margin-bottom: var(--s-3);
}

h3 {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.28;
  color: var(--text-2);
  margin-bottom: var(--s-2);
}

p {
  font-family: var(--font-display);
  color: var(--text-2);
}

.sub {
  max-width: 68ch;
  color: var(--text-3);
  line-height: 1.7;
  font-size: 1rem;
}

/* Eyebrow pill — gold for points/loyalty sections, blue for general           */
/* [REF-4]: Gold eyebrow signals reward/premium context                        */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--primary-border);
  background: var(--primary-050);
  color: var(--primary-400);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}


/* =============================================================================
   5. LAYOUT UTILITIES
============================================================================= */

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 24px auto 64px;
}

.page-shell { display: grid; gap: var(--s-7); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--s-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--s-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--s-4); }

.stack-sm > * + * { margin-top: var(--s-3); }
.stack-md > * + * { margin-top: var(--s-5); }
.stack-lg > * + * { margin-top: var(--s-7); }

.full { width: 100%; }

/* [REF-1]: Gradient rule on dark bg — subtle blue tint, not grey              */
.gradient-line {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--line-2) 30%, var(--line-2) 70%, transparent 100%);
  margin: 8px 0;
}


/* =============================================================================
   6. NAVBAR
   [REF-2]: Dark navbar uses backdrop blur over navy page bg.
   [REF-4]: Gold points badge signals reward system at a glance.
============================================================================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 120;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(13,21,34,0.88);   /* [REF-2]: Tonal navy, not grey/white  */
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0,0,0,0.4);
}

.nav-links, .nav-inner {
  list-style: none;
  margin: 0 auto;
  padding: 12px 16px;
  width: min(var(--max), calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-height: var(--nav-h);
}

.nav-links li, .nav-inner li { min-width: 0; }

.nav-logo { display: flex; align-items: center; margin-right: auto; }
.logo     { width: 92px; height: auto; }

.nav-links a, .nav-inner a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-weight: 650;
  color: var(--text-2);
  background: transparent;
  white-space: nowrap;
}

.nav-links a:hover, .nav-inner a:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--line-2);
}

.nav-links a[aria-current="page"], .nav-inner a[aria-current="page"] {
  color: var(--primary-400);
  background: var(--primary-050);
  border-color: var(--primary-border);
}

.PicSettings { width: 20px; height: 20px; object-fit: contain; opacity: 0.75; }


/* =============================================================================
   7. BUTTONS
   [REF-3]: All button text contrast checked against button backgrounds.
============================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: var(--surface-3);
  color: var(--text);
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0,0,0,0.30);
  transition:
    transform var(--ease), box-shadow var(--ease),
    background-color var(--ease), border-color var(--ease),
    color var(--ease), opacity var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--surface-hover);
  box-shadow: var(--shadow-1);
}

.btn:focus-visible { box-shadow: var(--focus); }

/* Primary CTA — brand blue                                                     */
.btn.primary {
  border-color: var(--primary-700);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(74,144,232,0.22);
}
.btn.primary:hover {
  background: var(--primary-600);
  box-shadow: 0 8px 22px rgba(74,144,232,0.30);
}

/* Secondary — blue tinted                                                       */
.btn.secondary {
  border-color: var(--primary-border);
  background: var(--primary-050);
  color: var(--primary-400);
}
.btn.secondary:hover { background: var(--primary-100); border-color: rgba(74,144,232,0.35); }

/* Danger — red tinted                                                           */
.btn.danger {
  border-color: rgba(224,92,92,0.30);
  background: var(--danger-100);
  color: #f08888;
}
.btn.danger:hover { background: rgba(224,92,92,0.18); border-color: rgba(224,92,92,0.40); }

.btn[disabled], .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}


/* =============================================================================
   8. CARDS
   [REF-1]: Cards sit one lightness step above the page background.
   [REF-2]: No pure white — tonal navy surface.
============================================================================= */

.card {
  position: relative;
  padding: var(--s-5);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface-2);   /* [REF-2]: Tonal navy, not white           */
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

/* Blue top-edge accent on hover                                                 */
.card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-400));
  opacity: 0;
  transition: opacity var(--ease);
}

.card:hover::before { opacity: 1; }

.card.soft { background: var(--surface); box-shadow: var(--shadow-1); }

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
  flex-wrap: wrap;
}

.card-title { font-size: 1.08rem; font-weight: 750; color: var(--text); }


/* =============================================================================
   9. FORM INPUTS
   [REF-1]: Input backgrounds should be one step lighter than the surface.
   [REF-3]: Placeholder text at --text-4 — WCAG exempts placeholder contrast.
============================================================================= */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="file"],
input[type="number"],
input[type="tel"],
select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface-3);   /* [REF-1]: One step lighter than surface   */
  color: var(--text);
  transition: border-color var(--ease), box-shadow var(--ease), background-color var(--ease);
}

input::placeholder,
textarea::placeholder,
select option { color: var(--text-4); }

select option { background: var(--surface-3); }

textarea { min-height: 120px; resize: vertical; }

input:hover, select:hover, textarea:hover   { border-color: var(--line-strong); }
input:focus, select:focus, textarea:focus   {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(74,144,232,0.12);
  background: var(--surface-2);
}


/* =============================================================================
   10. BADGES
   [REF-5]: Consistent semantic badge colours across all pages.
   Gold badge = points — [REF-4]
============================================================================= */

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid var(--line-2);
  background: var(--surface-3);
  color: var(--text-2);
  white-space: nowrap;
}

.badge.info    { color: var(--primary-400); background: var(--info-100);    border-color: rgba(74,144,232,0.25); }
.badge.success { color: var(--success);     background: var(--success-100); border-color: rgba(61,201,138,0.25); }
.badge.warning { color: var(--gold);        background: var(--gold-bg);     border-color: var(--gold-border); }
.badge.danger  { color: #f08888;            background: var(--danger-100);  border-color: rgba(224,92,92,0.25); }

/* Gold points badge — [REF-4]: warm gold signals reward/loyalty               */
/* [REF-5]: Gold used only for points — consistent semantic meaning             */
.points-badge  {
  color: var(--gold);
  background: var(--gold-bg-strong);
  border-color: var(--gold-border);
}


/* =============================================================================
   11. OVERLAY / POPUP
   [REF-1]: Popup sits on a darker overlay — two navy steps above page bg.
============================================================================= */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0,0,0,0.65);   /* [REF-2]: Darker overlay on dark pages   */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.popup {
  position: relative;
  z-index: 10000;
  width: min(520px, 100%);
  background: var(--surface-2);   /* [REF-1]: Popup raised above page         */
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-3);
  text-align: center;
  pointer-events: auto;
}

.popup h2 { margin-bottom: 10px; color: var(--text); }
.popup p  { margin-bottom: 18px; color: var(--text-2); }

.popup-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  pointer-events: auto;
}


/* =============================================================================
   12. TOAST
   [REF-2]: Dark UI toasts use tonal surfaces — not white cards.
============================================================================= */

#toastHost {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  min-width: 220px;
  max-width: 320px;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-2);
  opacity: 0;
  transform: translateY(10px);
  transition: transform 220ms ease, opacity 220ms ease;
  pointer-events: auto;
}

.toast.show         { opacity: 1; transform: translateY(0); }
.toast--success     { background: rgba(61,201,138,0.12); border-color: rgba(61,201,138,0.25); color: var(--success); }
.toast--error       { background: var(--danger-100); border-color: rgba(224,92,92,0.25); color: #f08888; }


/* =============================================================================
   13. ANIMATIONS
============================================================================= */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

/* [REF-1]: Skeleton uses dark tonal shimmer — not light grey                   */
.skeleton {
  border-radius: 6px;
  background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-hover) 50%, var(--surface-3) 75%);
  background-size: 1200px 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}


/* =============================================================================
   14. ORDER TRACKER (shared across tracking, admin, customer pages)
============================================================================= */

.orders-grid { display: grid; gap: 16px; }

.order-card {
  width: 100%;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  box-shadow: var(--shadow-1);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.order-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-2); }

.order-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.order-title { font-size: 1rem; font-weight: 760; color: var(--text); }

.order-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.order-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.order-tracker {
  display: grid;
  grid-template-columns: repeat(7, minmax(56px, 1fr));
  align-items: start;
  position: relative;
  margin: 20px 0 12px;
  overflow-x: auto;
}

/* [REF-1]: Track line uses border token — not hardcoded grey                   */
.order-tracker::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 5%; right: 5%;
  height: 3px;
  background: var(--line-2);
  border-radius: 999px;
  z-index: 0;
}

.step {
  position: relative;
  text-align: center;
  z-index: 1;
  padding: 0 4px;
}

.circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface-3);
  display: block;
  margin: 0 auto;
  border: 2px solid var(--line-2);
  box-shadow: 0 0 0 4px var(--surface-2);
}

.step.active .circle    { background: var(--primary); border-color: var(--primary); }
.step.cancelled .circle { background: var(--danger);  border-color: var(--danger); }

.label {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-3);
  text-align: center;
  max-width: 80px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.step.active .label    { color: var(--text); font-weight: 600; }
.step.cancelled .label { color: #f08888; font-weight: 600; }

.pickup-notice {
  margin: 10px 0 4px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--success-100);
  border: 1px solid rgba(61,201,138,0.25);
  font-size: 0.88rem;
  color: var(--success);
  line-height: 1.5;
}

.pickup-collected { margin-top: 8px; font-size: 0.84rem; color: var(--success); font-weight: 600; }

.pickup-tag {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  border-radius: var(--r-pill);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pickup-tag--done    { background: rgba(61,201,138,0.12);  color: var(--success); }
.pickup-tag--waiting { background: var(--primary-050);     color: var(--primary-400); }

.conflict-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: var(--r-pill);
  background: var(--danger-100);
  color: #f08888;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(224,92,92,0.25);
}

/* =============================================================================
   15. HOME — Page shell & entrance animations
============================================================================= */

.page-shell > section,
.page-shell > .grid-2,
.page-shell > hr {
  animation: fade-up 0.5s var(--ease-spring) both;
}

.page-shell > *:nth-child(1) { animation-delay: 0ms; }
.page-shell > *:nth-child(2) { animation-delay: 60ms; }
.page-shell > *:nth-child(3) { animation-delay: 120ms; }
.page-shell > *:nth-child(4) { animation-delay: 160ms; }
.page-shell > *:nth-child(5) { animation-delay: 200ms; }
.page-shell > *:nth-child(6) { animation-delay: 230ms; }
.page-shell > *:nth-child(7) { animation-delay: 255ms; }


/* =============================================================================
   16. HOME — Hero
   [REF-1]: Hero is the primary surface — one step above the page background.
   [REF-2]: Blue radial glow adds depth without decorative gradients.
============================================================================= */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 52px 48px;
  border-radius: 24px;
  border: 1px solid var(--line-2);
  background: var(--surface);   /* [REF-2]: Navy surface — not white          */
  box-shadow: var(--shadow-2);
  position: relative;
  overflow: hidden;
}

/* Blue radial glow — [REF-2]: tonal brand-hue overlay, not decorative         */
.hero::after {
  content: '';
  position: absolute;
  top: -120px; right: -80px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(74,144,232,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: -80px; left: 5%;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(74,144,232,0.04) 0%, transparent 65%);
  pointer-events: none;
  opacity: 1;
  background-image: none;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  color: var(--text);
  margin: 0;
}

.hero-sub {
  font-size: 1.02rem;
  color: var(--text-3);
  line-height: 1.7;
  max-width: 46ch;
  margin: 0;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Metrics strip — [REF-1]: one layer darker than hero card                     */
.hero-metrics {
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-2);
}

.metric-pill {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  padding: 14px 18px;
  border-right: 1px solid var(--line);
  background: var(--surface-2);
  min-width: 0;
  transition: background var(--ease);
}
.metric-pill:last-child { border-right: none; }
.metric-pill:hover      { background: var(--surface-hover); }
.metric-pill strong { font-size: 0.9rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-pill span   { font-size: 0.76rem; color: var(--text-4); font-weight: 500; }

.hero-media {
  position: relative;
  z-index: 1;
  border-radius: 18px;
  overflow: hidden;
  background: #060e1a;
  border: 1px solid var(--line-2);
  box-shadow: 0 0 0 1px rgba(74,144,232,0.10), var(--shadow-3);
}

.hero-video {
  display: block;
  width: 100%;
  background: #060e1a;
  vertical-align: bottom;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
  pointer-events: none;
  background: none;
}

.home-overview { align-items: start; gap: 24px; }

.home-about { display: flex; flex-direction: column; gap: 16px; }
.home-about h2 { margin: 0; }
.home-about p  { font-size: 0.97rem; line-height: 1.72; color: var(--text-2); margin: 0; }


/* =============================================================================
   17. HOME — Carousel
   [REF-1]: Carousel card uses same surface system as other cards.
============================================================================= */

.carousel { position: relative; padding: 0; }
.carousel .card-header { padding: 18px 20px 0; }

.carousel-viewport {
  overflow: hidden;
  border: none;
  border-top: 1px solid var(--line);
  margin-top: 16px;
  background: #060e1a;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  transition: transform 320ms var(--ease-spring);
  will-change: transform;
}

.carousel-track img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  background: var(--surface-3);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  background: rgba(6,14,26,0.70);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  display: grid;
  place-items: center;
  z-index: 2;
  transition: background var(--ease), transform var(--ease);
}
.carousel-btn:hover  { background: rgba(6,14,26,0.90); transform: translateY(-50%) scale(1.08); }
.carousel-btn:active { transform: translateY(-50%) scale(0.95); }
.carousel-btn.prev   { left: 12px; }
.carousel-btn.next   { right: 12px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 14px 20px;
}
.carousel-dots button {
  width: 7px; height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--line-2);
  cursor: pointer;
  transition: background var(--ease), transform var(--ease), width var(--ease);
}
.carousel-dots button.active {
  background: var(--primary);
  width: 22px;
  border-radius: 99px;
}


/* =============================================================================
   18. HOME — How it works / Steps
============================================================================= */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 0;
  position: relative;
  margin-bottom: 32px;
  list-style: none;
  padding: 0;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 8px);
  right: calc(12.5% + 8px);
  height: 1.5px;
  background: var(--line-2);
  z-index: 0;
}

.step-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 20px 28px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--line-2);
  color: var(--text-3);
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
  font-family: var(--font-mono);
  position: relative;
  z-index: 2;
  transition: background var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease);
}

.step-card:hover .step-num {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(74,144,232,0.12);
}

.step-card h3 { font-size: 1.02rem; font-weight: 700; color: var(--text); margin: 0; letter-spacing: -0.01em; }
.step-card p  { font-size: 0.9rem; color: var(--text-3); line-height: 1.65; margin: 0; }


/* =============================================================================
   19. HOME — Loyalty tiers
   [REF-4]: Gold top stripe on tier cards signals premium/reward — warm contrast.
   [REF-5]: Consistent gold = points/loyalty across all pages.
============================================================================= */

.tier-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.tier-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  box-shadow: var(--shadow-1);
  position: relative;
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease);
}
.tier-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }

/* Gold top stripe — [REF-4]: gold = reward/premium signal                      */
.tier-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
}
.tier-card.tier--carbon::before { background: var(--gold); }
.tier-card.tier--stone::before  { background: var(--gold-dim); }
.tier-card.tier--pearl::before  { background: rgba(240,184,67,0.45); }

.tier-icon   { font-size: 1.6rem; line-height: 1; margin-bottom: 2px; }
.tier-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--text); margin: 0; }

/* Gold points range pill — [REF-4] [REF-5]                                     */
.tier-pts {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  color: var(--gold);   /* [REF-4]: Gold text for points on all tier cards     */
  font-size: 0.78rem;
  font-weight: 700;
  align-self: flex-start;
}

.tier-perk { font-size: 0.9rem; color: var(--text-2); line-height: 1.5; margin: 4px 0 0; }


/* =============================================================================
   20. HOME — Tutorials
============================================================================= */

.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
  margin-bottom: 0;
}

.tutorial-card {
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow-1);
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease);
}
.tutorial-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }

.tutorial-thumb { position: relative; overflow: hidden; }

.tutorial-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 400ms var(--ease-spring);
}
.tutorial-card:hover img { transform: scale(1.04); }

.tutorial-thumb::after {
  content: '▶';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.1rem;
  transition: background var(--ease);
}
.tutorial-card:hover .tutorial-thumb::after { background: rgba(0,0,0,0.40); }

.tutorial-info { padding: 14px 16px; border-top: 1px solid var(--line); }
.tutorial-info h3 { font-size: 0.92rem; font-weight: 700; color: var(--text); margin: 0; }


/* =============================================================================
   21. HOME — Testimonials
============================================================================= */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  box-shadow: var(--shadow-1);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--ease), transform var(--ease);
}
.testimonial-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }

/* Large quotation mark — uses dark surface colour so it doesn't pop too hard  */
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -8px; left: 18px;
  font-size: 6rem;
  font-family: Georgia, serif;
  color: var(--surface-hover);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.testimonial-stars { width: 96px; height: auto; display: block; position: relative; z-index: 1; }

.testimonial-quote {
  font-size: 0.94rem;
  line-height: 1.68;
  color: var(--text);
  font-weight: 500;
  margin: 0;
  position: relative;
  z-index: 1;
}

.testimonial-attribution {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

/* Gold tier label — [REF-4]: gold signals loyalty/reward tier status           */
.testimonial-tier { font-size: 0.78rem; color: var(--gold); font-weight: 600; margin: 0; }


/* =============================================================================
   22. HOME — Footer
============================================================================= */

.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 48px;
  padding: 40px 0 20px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
  align-items: start;
}

.footer-brand  { display: flex; flex-direction: column; gap: 12px; }
.footer-logo   { width: 76px; height: auto; }
.footer-tagline { font-size: 0.86rem; color: var(--text-3); line-height: 1.6; max-width: 26ch; margin: 0; }

.footer-col h4 {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a { font-size: 0.88rem; color: var(--text-3); font-weight: 500; }
.footer-col ul li a:hover { color: var(--primary-400); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text-4);
  font-size: 0.82rem;
}


/* =============================================================================
   23. AUTH PAGES — Login & Register
   [REF-1]: Auth card needs to stand out — uses surface-2 over dark page bg.
   [REF-2]: Background uses tonal brand-blue radial glows.
   [REF-3]: Auth input text #e8f0fe on #1f2f45 = 8.4:1 ✓ AAA
============================================================================= */

.auth-page {
  background:
    radial-gradient(760px 320px at 0% 0%,   rgba(74,144,232,0.07), transparent 60%),
    radial-gradient(860px 340px at 100% 0%,  rgba(74,144,232,0.06), transparent 60%),
    linear-gradient(180deg, #0b1220 0%, #0e1828 100%);
}

.auth-container {
  min-height: calc(100vh - var(--nav-h) - 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

/* [REF-1]: Auth card is raised above the dark page — uses surface-2            */
.auth-card {
  width: 100%;
  max-width: 520px;
  padding: 48px 52px 40px;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  background: var(--surface-2);
  box-shadow: var(--shadow-3);
  position: relative;
  overflow: hidden;
}

/* Blue top stripe on auth card                                                  */
.auth-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-400));
  border-radius: 22px 22px 0 0;
  opacity: 1;
}

.auth-brand    { margin-bottom: 12px; }

.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--primary-border);
  background: var(--primary-050);
  color: var(--primary-400);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.auth-title {
  margin: 0 0 6px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--text);
}

.auth-sub { margin: 0 0 28px; color: var(--text-3); font-size: 0.97rem; line-height: 1.6; }

.auth-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.auth-label { font-size: 0.93rem; font-weight: 700; color: var(--text-2); }

.auth-input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface-3);
  color: var(--text);
  font-size: 1rem;
  transition: border-color var(--ease), box-shadow var(--ease), background-color var(--ease);
}
.auth-input::placeholder { color: var(--text-4); }
.auth-input:hover { border-color: var(--line-strong); }
.auth-input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface-2);
  box-shadow: 0 0 0 4px rgba(74,144,232,0.12);
}

.auth-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 6px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(74,144,232,0.22);
}
.auth-submit:hover { box-shadow: 0 12px 28px rgba(74,144,232,0.30); }

.auth-alt { width: 100%; min-height: 52px; margin-top: 10px; border-radius: 12px; font-size: 1rem; font-weight: 700; }

.auth-notice { margin: 0 0 18px; color: var(--text-3); font-size: 0.88rem; line-height: 1.6; }

.auth-msg { min-height: 22px; margin: 14px 0 0; text-align: center; color: var(--text-3); font-size: 0.93rem; line-height: 1.5; }
.auth-msg.error   { color: #f08888; }
.auth-msg.success { color: var(--success); }

.auth-switch { margin: 20px 0 0; text-align: center; color: var(--text-3); font-size: 0.9rem; }
.auth-switch a { color: var(--primary-400); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.auth-switch a:hover { color: var(--primary-300); }


/* =============================================================================
   24. BOOKING PAGE — Layout & hero
   [REF-2]: Booking hero uses tonal blue gradient — on-brand dark surface.
============================================================================= */

.booking-page { display: grid; gap: 22px; }

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.78fr);
  gap: 22px;
  align-items: start;
}

.booking-page > * {
  animation: fade-up 260ms var(--ease-spring) both;
}
.booking-page > *:nth-child(1) { animation-delay: 0ms; }
.booking-page > *:nth-child(2) { animation-delay: 60ms; }

/* [REF-2]: Booking hero — dark navy with subtle blue-green tonal gradient      */
.booking-hero {
  position: relative;
  overflow: hidden;
  padding: 42px 40px;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.booking-hero .eyebrow  { align-self: flex-start; margin-bottom: 4px; }
.booking-hero h1        { margin: 0 0 8px; color: var(--text); }
.booking-hero .sub      { margin: 0; font-size: 0.97rem; max-width: 540px; }

.hero-glow { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-glow--blue { top:-90px; right:-70px; width:320px; height:320px; background:radial-gradient(circle, rgba(74,144,232,0.07) 0%, transparent 68%); }
.hero-glow--gold { bottom:-70px; left:8%; width:240px; height:240px; background:radial-gradient(circle, rgba(74,144,232,0.04) 0%, transparent 68%); }

.booking-form     { padding: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-1); }
.booking-summary  { height: fit-content; position: sticky; top: calc(var(--nav-h) + 20px); border-radius: 18px !important; overflow: hidden; box-shadow: var(--shadow-2) !important; }


/* =============================================================================
   25. BOOKING PAGE — Step progress bar
============================================================================= */

.booking-steps { display: flex; align-items: center; gap: 0; padding: 20px 24px 0; background: var(--surface); }

.booking-step { display: flex; align-items: center; gap: 10px; flex: 1; position: relative; }

.booking-step:not(:last-child)::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--line);
  margin: 0 8px;
  border-radius: 2px;
  transition: background 260ms var(--ease-spring);
}
.booking-step.completed:not(:last-child)::after { background: var(--bk-blue); }

.booking-step .step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  background: var(--surface-3);
  color: var(--text-3);
  font-size: 0.76rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-mono);
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}

.step-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: color var(--ease);
}

.booking-step.active .step-num   { background: var(--bk-blue); border-color: var(--bk-blue); color: #fff; box-shadow: 0 0 0 4px rgba(74,144,232,0.14); }
.booking-step.active .step-label  { color: var(--bk-blue); font-weight: 700; }
.booking-step.completed .step-num { background: var(--bk-green); border-color: var(--bk-green); color: #fff; }
.booking-step.completed .step-label { color: var(--bk-green); }

.form-section { padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; background: var(--surface); }

.form-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 2px; }

.section-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bk-blue-light);
  border: 1.5px solid var(--bk-blue-border);
  color: var(--bk-blue);
  font-size: 0.74rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.section-sep   { margin: 0; border: 0; border-top: 1px solid var(--line); }

.frow  { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }

.field { display: grid; gap: 8px; }
.field label { font-weight: 700; color: var(--text-2); font-size: 0.9rem; display: flex; align-items: baseline; gap: 6px; }
.field label .sub { font-weight: 400; font-size: 0.8rem; }


/* =============================================================================
   26. BOOKING PAGE — Service cards
============================================================================= */

.svc-opts { display: grid; gap: 10px; }

.svc-opt {
  width: 100%;
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 16px 18px;
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface-3);
  cursor: pointer;
  position: relative;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease), background-color var(--ease);
}

.svc-opt:hover           { border-color: var(--bk-blue-border); box-shadow: var(--shadow-1); transform: translateY(-1px); background: var(--surface-hover); }
.svc-opt:focus-within    { outline: 2px solid var(--bk-blue); outline-offset: 2px; }

.svc-opt.active {
  border-color: var(--bk-blue);
  background: var(--bk-blue-light);
  box-shadow: 0 0 0 3px rgba(74,144,232,0.12), var(--shadow-1);
}

.svc-opt.active::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--bk-blue);
  border-radius: 3px 0 0 3px;
  opacity: 1;
  background-image: none;
}

.svc-opt.active::after {
  content: "✓";
  position: absolute;
  top: 14px; right: 16px;
  width: 20px; height: 20px;
  background: var(--bk-blue);
  color: #fff;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 20px;
  text-align: center;
  background-image: none;
}

.svc-opt-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; flex-wrap: wrap; padding-right: 28px; }
.svc-opt-top strong { font-weight: 700; color: var(--text); font-size: 0.97rem; }
.svc-opt-sub { margin: 0; color: var(--text-3); font-size: 0.87rem; line-height: 1.55; }


/* =============================================================================
   27. BOOKING PAGE — Calendar
   [REF-2]: Calendar uses dark tonal surface — no white cells.
============================================================================= */

.cal-wrap {
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-3);
  box-shadow: var(--shadow-1);
  transition: box-shadow var(--ease);
}
.cal-wrap:hover { box-shadow: var(--shadow-2); }

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.cal-head .btn     { min-height: 34px; min-width: 34px; padding: 4px 10px; font-size: 1.1rem; line-height: 1; border-radius: 8px; }
#calMonthLabel     { font-size: 0.92rem; font-weight: 700; color: var(--text); }

.cal-days-header { display: grid; grid-template-columns: repeat(7, 1fr); padding: 10px 12px 3px; }
.cal-days-header span { text-align: center; font-size: 0.7rem; font-weight: 700; color: var(--text-4); text-transform: uppercase; letter-spacing: 0.07em; }

.cal-body { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 6px 12px 14px; }

.cal-cell {
  position: relative;
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 600;
  color: var(--text-2);
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  user-select: none;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease), transform var(--ease);
}

.cal-cell:hover:not(.cal-cell--other):not(.cal-cell--past) { background: var(--primary-050); border-color: var(--primary-border); transform: scale(1.08); z-index: 2; }
.cal-cell:active:not(.cal-cell--other):not(.cal-cell--past) { transform: scale(0.95); }
.cal-cell--other    { color: var(--text-4); opacity: 0.28; pointer-events: none; }
.cal-cell--past     { color: var(--text-4); opacity: 0.36; pointer-events: none; cursor: not-allowed; }
.cal-cell--today    { border-color: var(--bk-blue); color: var(--primary-400); font-weight: 800; }
.cal-cell--selected { background: var(--bk-blue) !important; color: #fff !important; border-color: var(--bk-blue) !important; box-shadow: var(--bk-shadow-blue) !important; font-weight: 800; transform: scale(1.06) !important; z-index: 3; }
.cal-cell--booked   { background: var(--gold-bg); color: var(--gold); border-color: var(--gold-border); cursor: not-allowed; pointer-events: none; }
.cal-cell--full     { background: var(--danger-100); color: #f08888; border-color: rgba(224,92,92,0.25); cursor: not-allowed; pointer-events: none; }

.selected-date-label { padding: 8px 16px 12px; font-size: 0.86rem; font-weight: 500; min-height: 36px; margin: 0; color: var(--text-3); display: flex; align-items: center; gap: 6px; background: var(--surface-2); }
.selected-date-label:not(:empty)::before { content: "📅"; font-size: 0.9rem; }


/* =============================================================================
   28. BOOKING PAGE — Time slots, map, upload
============================================================================= */

.time-slots { display: flex; gap: 8px; flex-wrap: wrap; }

.time-slot {
  flex: 1; min-width: 68px; min-height: 46px;
  padding: 10px 12px;
  border: 1.5px solid var(--line-2);
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--text-2);
  font-size: 0.9rem; font-weight: 700;
  cursor: pointer;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.time-slot:hover:not([disabled])  { border-color: var(--bk-blue); background: var(--bk-blue-light); color: var(--primary-400); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.time-slot:active:not([disabled]) { transform: translateY(0) scale(0.97); }
.time-slot:focus-visible           { outline: 2px solid var(--bk-blue); outline-offset: 2px; }
.time-slot.active                  { background: var(--bk-blue); border-color: var(--bk-blue); color: #fff; box-shadow: var(--bk-shadow-blue); transform: translateY(-2px); }
.time-slot[disabled], .time-slot.slot-unavailable {
  opacity: 0.30; cursor: not-allowed; transform: none !important; box-shadow: none !important;
  text-decoration: line-through; border-color: var(--line) !important; background: var(--surface-2) !important; color: var(--text-4) !important;
}
.time-slot.slot-loading { animation: pulse 1s ease-in-out infinite; pointer-events: none; }

.map-card { display: grid; gap: 14px; padding: 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface-2); transition: border-color var(--ease), box-shadow var(--ease); }
.map-card:hover { border-color: var(--bk-blue-border); box-shadow: var(--shadow-1); }
.map-info { display: flex; flex-direction: column; gap: 6px; }
.map-info strong { font-size: 0.97rem; color: var(--text); font-weight: 700; }
.map-info .sub { font-size: 0.84rem; }
.map-info .btn { align-self: flex-start; min-height: 38px; font-size: 0.86rem; margin-top: 4px; }
.map-frame { width: 100%; height: 200px; border: 0; border-radius: 10px; display: block; background: var(--surface-3); }

.upload-zone {
  position: relative;
  border: 2px dashed var(--line-2);
  border-radius: 12px;
  padding: 18px 16px;
  background: var(--surface-3);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--ease), background-color var(--ease);
}
.upload-zone:hover { border-color: var(--bk-blue-border); background: var(--bk-blue-light); }
.upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-zone-text  { font-size: 0.86rem; color: var(--text-3); line-height: 1.5; pointer-events: none; }
.upload-zone-icon  { font-size: 1.6rem; display: block; margin-bottom: 6px; }

#shoePreviewWrap { margin-top: 10px; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface-2); display: flex; align-items: flex-start; gap: 12px; }
#shoePreview     { max-width: 200px; max-height: 160px; border-radius: 10px; border: 1px solid var(--line); display: block; object-fit: cover; }

.preview-remove { background: var(--danger-100); border: 1px solid rgba(224,92,92,0.25); color: #f08888; border-radius: 6px; padding: 4px 10px; font-size: 0.78rem; font-weight: 700; cursor: pointer; transition: background var(--ease); }
.preview-remove:hover { background: rgba(224,92,92,0.20); }

.btn-book-wrap { display: flex; flex-direction: column; gap: 8px; }

#btnBook {
  min-height: 52px; font-size: 1rem; font-weight: 800;
  border-radius: 12px;
  background: var(--primary);
  border: none;
  box-shadow: var(--bk-shadow-blue);
  transition: transform var(--ease), box-shadow var(--ease), filter var(--ease);
}
#btnBook:hover:not([disabled])  { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(74,144,232,0.32); filter: brightness(1.08); }
#btnBook:active:not([disabled]) { transform: translateY(0) scale(0.98); }
#btnBook[disabled]              { opacity: 0.55; cursor: not-allowed; transform: none; filter: none; }

.auth-msg:not(:empty) { padding: 8px 12px; border-radius: 8px; background: var(--danger-100); border: 1px solid rgba(224,92,92,0.20); color: #f08888; font-weight: 500; }
.auth-msg.success     { background: var(--bk-green-bg); border-color: var(--bk-green-border); color: var(--bk-green); }


/* =============================================================================
   29. BOOKING PAGE — Order summary sidebar
   [REF-4]: Gold used for points value — warm contrast signal.
   [REF-5]: Consistent gold = points/reward throughout the booking flow.
============================================================================= */

.summary-inner { padding: 22px 22px 20px; background: var(--surface-2); }
.summary-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-3); margin-bottom: 16px; }

.summary-rows { display: grid; gap: 0; }
.sum-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.sum-row:last-child { border-bottom: 0; }
.sum-row span   { color: var(--text-3); font-size: 0.87rem; }
.sum-row strong { color: var(--text); font-weight: 700; text-align: right; font-size: 0.9rem; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sum-row.total  { padding-top: 14px; padding-bottom: 4px; margin-top: 4px; }
.sum-row.total span   { font-weight: 700; font-size: 0.92rem; color: var(--text-2); }
.sum-row.total strong { font-size: 1.35rem; color: var(--primary-400); font-weight: 800; letter-spacing: -0.02em; }

.summary-box { margin-top: 16px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-3); }

/* Gold points box — [REF-4]: gold warm contrast on navy background             */
.summary-points { background: var(--gold-bg); border-color: var(--gold-border); }

.summary-box-label   { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 6px; }
.summary-points-value {
  font-size: 1.45rem; font-weight: 800;
  color: var(--gold);   /* [REF-4]: Large gold number — centrepiece reward signal */
  letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 6px;
}
.summary-points-value span { font-size: 0.78rem; font-weight: 500; color: var(--text-3); }
.summary-box-sub { font-size: 0.74rem; color: var(--text-3); margin-top: 4px; line-height: 1.45; }

.summary-trust { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.trust-row { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-3); font-weight: 500; }
.trust-icon { font-size: 0.9rem; flex-shrink: 0; }

/* =============================================================================
   30. ACCOUNT PAGE — Profile strip
   [REF-2]: Account surfaces use same tonal navy scale as all other pages.
============================================================================= */

.acct-shell { display: grid; gap: 24px; padding-top: 20px; padding-bottom: 48px; }

.acct-strip { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 24px; }

.acct-av-wrap { position: relative; flex-shrink: 0; }

.acct-av { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary-100); background: var(--surface-3); }

/* Blue tier badge on avatar                                                     */
.acct-av-badge {
  position: absolute;
  bottom: -6px; left: 50%;
  transform: translateX(-50%);
  padding: 2px 10px;
  border-radius: var(--r-pill);
  background: var(--primary);
  color: #fff;
  font-size: 0.68rem; font-weight: 700;
  white-space: nowrap; letter-spacing: 0.04em;
}

.acct-info { flex: 1; min-width: 0; }
.acct-name  { font-size: 1.55rem; font-weight: 800; color: var(--text); margin: 0 0 3px; letter-spacing: -0.02em; }
.acct-email { font-size: 0.92rem; color: var(--text-3); margin: 0; }
.acct-book-btn { margin-left: auto; flex-shrink: 0; }

.acct-mid { display: grid; grid-template-columns: 1fr 210px; gap: 20px; align-items: start; }


/* =============================================================================
   31. ACCOUNT PAGE — Loyalty card & tiers
   [REF-4]: Gold is the centrepiece — large points number in gold on navy.
   [REF-5]: Gold used only for points — consistent semantic meaning throughout.
   [REF-3]: Gold #f0b843 on --surface-2 #192538 = 7.2:1 ✓ AA
============================================================================= */

.loyalty-card { padding: 24px; }

.loyalty-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.loyalty-lbl { display: block; font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); margin-bottom: 5px; }

/* Large gold points number — [REF-4]: centrepiece reward signal                */
.loyalty-pts {
  font-size: 2.6rem; font-weight: 800;
  color: var(--gold);   /* [REF-4]: Gold = loyalty/reward — warm on cool navy */
  letter-spacing: -0.03em; line-height: 1;
}

/* Gold tier chip — [REF-5]: consistent gold = tier/points identity              */
.tier-chip {
  padding: 5px 14px; border-radius: var(--r-pill);
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-size: 0.78rem; font-weight: 700; white-space: nowrap; flex-shrink: 0;
}

.tier-prog-lbl { display: flex; justify-content: space-between; font-size: 0.8rem; font-weight: 600; color: var(--text-3); margin-bottom: 8px; gap: 1rem; }

.tier-bar-track { height: 7px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin-bottom: 9px; }

/* Gold progress bar — [REF-4]: gold fill signals reward progress                */
.tier-bar-fill  { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); transition: width 0.9s cubic-bezier(0.4,0,0.2,1); }

.tier-hint { font-size: 0.8rem; color: var(--text-3); margin: 0 0 20px; }

.tier-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.tier-item {
  padding: 16px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface-3);
  text-align: center;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.tier-item:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow-1); }

/* Gold active tier highlight — [REF-4] [REF-5]                                 */
.tier-item.active-tier {
  border-color: var(--gold-border);
  background: var(--gold-bg);
  box-shadow: 0 0 0 2px rgba(240,184,67,0.12);
}

.ti-icon { font-size: 1.4rem; margin-bottom: 5px; line-height: 1; }
.ti-name { font-size: 0.88rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.ti-req  { font-size: 0.72rem; color: var(--text-4); margin-bottom: 5px; }
.ti-perk { font-size: 0.72rem; color: var(--text-3); line-height: 1.4; }


/* =============================================================================
   32. ACCOUNT PAGE — Stats & orders
   [REF-4]: Gold used for points earned per order row.
============================================================================= */

.stat-col { display: grid; gap: 12px; }
.stat-box { padding: 16px 20px; }
.stat-lbl { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin-bottom: 5px; }
.stat-val { font-size: 1.55rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.stat-val.sm { font-size: 0.95rem; font-weight: 600; letter-spacing: 0; }

.acct-orders { padding: 24px; }
.acct-orders-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.acct-orders-hd h2 { margin: 0 0 3px; }

.acct-order-rows { display: grid; gap: 12px; }

.acct-order-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px; align-items: center;
  padding: 16px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface-3);
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.acct-order-row:hover { border-color: var(--line-2); transform: translateY(-1px); box-shadow: var(--shadow-1); }

.acct-order-service { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.acct-order-meta    { font-size: 0.8rem; color: var(--text-3); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Gold points earned badge — [REF-4] [REF-5]: gold = points reward             */
.acct-order-pts {
  font-size: 0.74rem; font-weight: 700;
  color: var(--gold);
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  padding: 2px 8px; border-radius: var(--r-pill);
}

.acct-empty         { color: var(--text-3); font-size: 0.92rem; padding: 32px 0; text-align: center; }
.acct-empty a       { color: var(--primary-400); font-weight: 700; text-decoration: underline; }


/* =============================================================================
   33. ADMIN PAGE — Layout
   [REF-1]: Admin uses the same layered dark-navy surface system.
============================================================================= */

.admin-body { font-family: var(--font); background: var(--bg); min-height: 100vh; }

.admin-layout {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding-top: 20px;
  padding-bottom: 48px;
  min-height: calc(100vh - 64px);
}


/* =============================================================================
   34. ADMIN PAGE — Sidebar & stats
   [REF-1]: Sidebar one step darker than the main content panel.
   [REF-3]: All sidebar text contrast ratios checked.
            --adm-sidebar-text on --adm-sidebar-bg = 11.2:1 ✓ AAA
============================================================================= */

.admin-sidebar {
  background: var(--adm-sidebar-bg) !important;
  background-image: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(74,144,232,0.10) 0%, transparent 60%) !important;
  border: 1px solid var(--adm-sidebar-border) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25), 0 3px 12px rgba(0,0,0,0.15) !important;
  padding: 20px 16px !important;
  position: sticky;
  top: 84px;
  overflow: hidden;
}

.admin-brand { padding: 4px 6px 16px; border-bottom: 1px solid var(--adm-sidebar-border); margin-bottom: 4px; }
.brand-title { font-size: 1.05rem; font-weight: 800; color: var(--adm-sidebar-text); letter-spacing: -0.02em; line-height: 1.2; }
.admin-brand .sub { font-size: 0.76rem; color: var(--adm-sidebar-muted); margin-top: 3px; font-weight: 500; }

.admin-side-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-side-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.88rem; font-weight: 600;
  color: var(--adm-sidebar-muted);
  text-decoration: none;
  transition: background var(--ease), color var(--ease);
}
.admin-side-link:hover  { background: var(--adm-sidebar-hover); color: var(--adm-sidebar-text); }
.admin-side-link.active { background: var(--adm-sidebar-active); color: var(--adm-sidebar-accent); font-weight: 700; }

.sidebar-section-title { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--adm-sidebar-muted); padding: 0 6px; margin-bottom: 10px; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat-card { background: var(--adm-sidebar-surface); border: 1px solid var(--adm-sidebar-border); border-radius: 12px; padding: 10px 12px; transition: background var(--ease); }
.stat-card:hover { background: rgba(255,255,255,0.09); }
.stat-card .stat-lbl { font-size: 0.67rem; color: var(--adm-sidebar-muted); }
.stat-card .stat-val { font-size: 1.75rem; font-weight: 800; color: var(--adm-sidebar-text); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; font-family: var(--font-mono); }

.admin-sidebar hr  { border-color: var(--adm-sidebar-border) !important; margin: 14px 0 !important; }
.admin-sidebar .sub { color: var(--adm-sidebar-muted) !important; }


/* =============================================================================
   35. ADMIN PAGE — Availability calendar
============================================================================= */

.avail-panel { display: flex; flex-direction: column; gap: 12px; }

.avail-cal-wrap { background: var(--adm-sidebar-surface); border: 1px solid var(--adm-sidebar-border); border-radius: 12px; overflow: hidden; }

.avail-cal-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--adm-sidebar-border); }
.avail-cal-header span { font-size: 0.82rem; font-weight: 700; color: var(--adm-sidebar-text); }

.avail-cal-nav {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border: 1px solid var(--adm-sidebar-border);
  border-radius: 6px;
  background: transparent;
  color: var(--adm-sidebar-muted);
  font-size: 1rem; cursor: pointer;
  font-family: inherit;
  transition: background var(--ease), color var(--ease), transform var(--ease);
}
.avail-cal-nav:hover  { background: var(--adm-sidebar-hover); color: var(--adm-sidebar-text); transform: scale(1.08); }
.avail-cal-nav:active { transform: scale(0.92); }

.avail-day-names { display: grid; grid-template-columns: repeat(7, 1fr); padding: 6px 8px 2px; }
.avail-day-name  { text-align: center; font-size: 0.62rem; font-weight: 700; color: var(--adm-sidebar-muted); text-transform: uppercase; letter-spacing: 0.06em; }

.avail-cal-body { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 4px 8px 10px; }

.avail-cell {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 0.74rem; font-weight: 600; color: var(--adm-sidebar-muted);
  border-radius: 6px; cursor: pointer; border: 1px solid transparent;
  user-select: none; font-family: var(--font-mono);
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
}
.avail-cell:hover             { background: var(--adm-sidebar-hover); color: var(--adm-sidebar-text); transform: scale(1.1); }
.avail-cell--other            { opacity: 0.2; pointer-events: none; }
.avail-cell--past             { opacity: 0.28; pointer-events: none; cursor: not-allowed; }
.avail-cell--today            { font-weight: 800; color: var(--adm-today-dot) !important; border-color: var(--adm-today-dot) !important; }
.avail-cell--selected         { background: var(--adm-blue) !important; color: #fff !important; border-color: var(--adm-blue) !important; box-shadow: 0 0 0 3px rgba(74,144,232,0.22); transform: scale(1.08); }
.avail-cell--open             { background: rgba(61,201,138,0.14); border-color: rgba(61,201,138,0.30); color: #6ee7b7; }
.avail-cell--closed           { background: rgba(224,92,92,0.10); border-color: rgba(224,92,92,0.22); color: #fca5a5; }

.avail-selected-label { font-size: 0.8rem; font-weight: 700; color: var(--adm-sidebar-text); padding: 0 2px 6px; border-bottom: 1px solid var(--adm-sidebar-border); margin-bottom: 8px; }

.avail-slot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

.avail-slot-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 10px;
  border-radius: 7px;
  border: 1px solid var(--adm-sidebar-border);
  background: var(--adm-sidebar-surface);
  color: var(--adm-sidebar-text);
  font-size: 0.78rem; font-weight: 700;
  cursor: pointer; font-family: var(--font-mono);
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
}
.avail-slot-btn:hover  { background: var(--adm-sidebar-hover); transform: translateY(-1px); }
.avail-slot-btn:active { transform: scale(0.96); }

.avail-slot-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--adm-sidebar-muted); flex-shrink: 0; transition: background var(--ease); }

.avail-slot-btn.slot-open   { background: rgba(61,201,138,0.14); border-color: rgba(61,201,138,0.30); color: #6ee7b7; }
.avail-slot-btn.slot-open .avail-slot-dot { background: var(--adm-open); box-shadow: 0 0 6px rgba(61,201,138,0.35); }
.avail-slot-btn.slot-closed { background: rgba(224,92,92,0.10); border-color: rgba(224,92,92,0.22); color: #fca5a5; }
.avail-slot-btn.slot-closed .avail-slot-dot { background: var(--adm-closed); }

.avail-actions .btn { flex: 1; min-height: 32px; font-size: 0.76rem; padding: 0 10px; }
.avail-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.avail-legend { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 4px 2px; }
.legend-item  { display: flex; align-items: center; gap: 5px; font-size: 0.7rem; font-weight: 600; color: var(--adm-sidebar-muted); }
.legend-dot   { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.legend-dot--open   { background: var(--adm-open); }
.legend-dot--closed { background: var(--adm-closed); }
.legend-dot--today  { background: var(--adm-today-dot); }


/* =============================================================================
   36. ADMIN PAGE — Main panel, header, tabs, order cards
   [REF-2]: Main panel uses surface — one step lighter than sidebar.
============================================================================= */

.admin-main {
  background: var(--surface) !important;
  border-radius: 16px !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow-2) !important;
  padding: 0 !important;
  overflow: hidden;
}

.admin-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.admin-header h1 { font-size: 1.25rem; font-weight: 800; color: var(--text); margin: 0; letter-spacing: -0.025em; }

.admin-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.admin-actions input[type="text"] {
  height: 38px; min-width: 220px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 8px;
  background: var(--surface-3); font-size: 0.86rem; color: var(--text);
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}
.admin-actions input[type="text"]:focus { outline: none; border-color: var(--adm-blue); background: var(--surface-2); box-shadow: 0 0 0 3px rgba(74,144,232,0.12); }
.admin-actions input[type="text"]::placeholder { color: var(--text-4); }

.admin-actions select {
  height: 38px; padding: 0 30px 0 12px;
  border: 1.5px solid var(--line); border-radius: 8px;
  background: var(--surface-3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233d5470' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  appearance: none; font-size: 0.86rem; color: var(--text); cursor: pointer;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.admin-actions select:focus { outline: none; border-color: var(--adm-blue); box-shadow: 0 0 0 3px rgba(74,144,232,0.12); }

.admin-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); padding: 0 26px; overflow-x: auto; scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }

.admin-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 13px 16px;
  border: none; border-bottom: 2px solid transparent;
  background: none; font-size: 0.86rem; font-weight: 600;
  color: var(--text-3); cursor: pointer; white-space: nowrap;
  font-family: inherit;
  position: relative; top: 1px; margin-bottom: -1px;
  transition: color var(--ease), border-color var(--ease);
}
.admin-tab:hover  { color: var(--text); }
.admin-tab.active { color: var(--adm-blue); border-bottom-color: var(--adm-blue); font-weight: 700; }

.admin-tab-panel         { display: none; padding: 20px 26px 26px; }
.admin-tab-panel.active  { display: block; }

.admin-orders { display: flex; flex-direction: column; gap: 12px; }

.conflict-card { border-left: 3px solid var(--adm-closed) !important; background: rgba(224,92,92,0.04) !important; }

.admin-row {
  display: flex; align-items: flex-end; gap: 12px;
  flex-wrap: wrap; padding: 12px 14px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px;
}

.admin-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.admin-field label, .admin-field .sub { font-size: 0.72rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }
.admin-field-btn { justify-content: flex-end; }

.admin-status, .admin-points {
  height: 36px; padding: 0 10px;
  border: 1.5px solid var(--line); border-radius: 7px;
  background: var(--surface-3); font-size: 0.85rem; color: var(--text);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.admin-status { min-width: 160px; }
.admin-points { width: 90px; font-family: var(--font-mono); }
.admin-status:focus, .admin-points:focus { outline: none; border-color: var(--adm-blue); box-shadow: 0 0 0 3px rgba(74,144,232,0.10); }

.admin-images { margin-top: 12px; }

.misssedbutton, [class="misssedbutton"] {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 18px;
  border-radius: 8px; border: 1.5px solid rgba(224,92,92,0.35);
  background: rgba(224,92,92,0.08); color: var(--adm-closed);
  font-size: 0.86rem; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: background var(--ease), transform var(--ease);
}
.misssedbutton:hover, [class="misssedbutton"]:hover { background: rgba(224,92,92,0.15); transform: translateY(-1px); }

.admin-msg { margin: 0 26px 16px; padding: 10px 14px; border-radius: 8px; font-size: 0.86rem; min-height: 18px; color: var(--adm-closed); }
.admin-msg:not(:empty) { background: rgba(224,92,92,0.07); border: 1px solid rgba(224,92,92,0.20); }


/*
   37. SCHEDULE PAGE — Shell & hero
   [REF-2]: Schedule uses same dark navy surface scale as other pages.
 */

.sched-shell {
  font-family: var(--font);
  width: min(1280px, calc(100% - 32px));
  margin: 28px auto 80px;
  display: grid;
  gap: 20px;
}

.sched-hero {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  padding: 30px 36px;
  border-radius: 16px; border: 1px solid var(--line-2);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  position: relative; overflow: hidden;
}
/* [REF-2]: Tonal blue radial glow — brand hue overlay                          */
.sched-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 90% 50%, rgba(74,144,232,0.05) 0%, transparent 70%);
  pointer-events: none;
  opacity: 1;
  background-image: radial-gradient(ellipse 60% 80% at 90% 50%, rgba(74,144,232,0.05) 0%, transparent 70%);
}

.sched-hero-text { flex: 1; min-width: 0; }

.sched-title { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; color: var(--text); margin: 0 0 6px; letter-spacing: -0.03em; line-height: 1.15; }
.sched-sub   { margin: 0; color: var(--text-3); font-size: 0.93rem; line-height: 1.65; }

.sched-hero-stats { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }

/* [REF-1]: Stat boxes use glass-style dark surface                              */
.sched-stat { text-align: center; min-width: 68px; padding: 12px 16px; border-radius: 12px; background: rgba(19,28,46,0.75); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.sched-stat-val { display: block; font-size: 2rem; font-weight: 800; color: var(--text); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.sched-stat-lbl { display: block; font-size: 0.72rem; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.07em; margin-top: 5px; }

.sched-layout    { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; align-items: start; }
.sched-right-col { display: grid; gap: 20px; }

.sched-card { border-radius: 16px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1); overflow: hidden; transition: box-shadow var(--ease); }
.sched-card:hover { box-shadow: var(--shadow-2); }

.sched-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 22px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.sched-card-title { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.sched-card-sub   { font-size: 0.82rem; color: var(--text-3); line-height: 1.4; }


/*  38. SCHEDULE PAGE — Calendar */

.sched-cal-nav-row { display: flex; align-items: center; gap: 8px; }

.sched-cal-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface-3); color: var(--text-2); font-size: 1rem; cursor: pointer; user-select: none; transition: background-color var(--ease), border-color var(--ease), transform var(--ease); }
.sched-cal-btn:hover  { background: var(--primary-050); border-color: var(--primary-border); transform: scale(1.08); }
.sched-cal-btn:active { transform: scale(0.94); }

.sched-month-label { font-size: 0.9rem; font-weight: 700; color: var(--text); min-width: 128px; text-align: center; }

.sched-day-names     { display: grid; grid-template-columns: repeat(7, 1fr); padding: 10px 16px 2px; }
.sched-day-names div { text-align: center; font-size: 0.69rem; font-weight: 700; color: var(--text-4); text-transform: uppercase; letter-spacing: 0.08em; }

.sched-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; padding: 6px 14px 16px; }

.sched-cell { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 9px; cursor: pointer; border: 1px solid transparent; position: relative; user-select: none; transition: background-color var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease); }
.sched-cell:hover:not(.sched-cell--past):not(.sched-cell--other) { background: var(--primary-050); border-color: var(--primary-border); transform: scale(1.08); box-shadow: var(--shadow-1); z-index: 2; }
.sched-cell:active:not(.sched-cell--past):not(.sched-cell--other) { transform: scale(0.96); }

.sched-cell-num   { font-size: 0.78rem; font-weight: 600; color: var(--text-2); line-height: 1; }
.sched-cell-count { font-size: 0.6rem; font-weight: 800; color: var(--sched-booked); background: var(--sched-booked-bg); border-radius: 99px; padding: 0 4px; line-height: 1.6; }
.sched-cell-dots  { display: flex; gap: 2px; align-items: center; margin-top: 1px; }

.sched-slot-dot           { width: 4px; height: 4px; border-radius: 50%; background: var(--sched-open); }
.sched-slot-dot--closed   { background: var(--line-2); }
.sched-slot-dot--booked   { background: var(--sched-booked); }

.sched-cell--other    { opacity: 0.22; pointer-events: none; }
.sched-cell--past     { opacity: 0.38; pointer-events: none; }
.sched-cell--today    { border-color: var(--primary-300); background: var(--primary-050); }
.sched-cell--today .sched-cell-num { font-weight: 800; color: var(--primary-400); }
.sched-cell--selected { background: var(--primary) !important; border-color: var(--primary) !important; box-shadow: 0 2px 8px rgba(74,144,232,0.28) !important; }
.sched-cell--selected .sched-cell-num   { color: #fff !important; font-weight: 800; }
.sched-cell--selected .sched-cell-count { color: rgba(255,255,255,0.9) !important; background: rgba(255,255,255,0.18); }
.sched-cell--selected .sched-slot-dot  { background: rgba(255,255,255,0.55) !important; }
.sched-cell--all-open   { background: var(--sched-open-bg);    border-color: var(--sched-open-bdr); }
.sched-cell--partial    { background: var(--sched-partial-bg); border-color: var(--sched-partial-bdr); }
.sched-cell--all-closed { background: var(--surface-3);        border-color: var(--line); }

.sched-legend { display: flex; gap: 12px; flex-wrap: wrap; padding: 10px 16px 14px; border-top: 1px solid var(--line); }
.sched-legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.74rem; color: var(--text-3); font-weight: 600; }
.sched-dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid transparent; flex-shrink: 0; }
.sched-dot--open    { background: rgba(61,201,138,0.28);  border-color: rgba(61,201,138,0.55); }
.sched-dot--partial { background: rgba(240,184,67,0.28);  border-color: rgba(240,184,67,0.55); }
.sched-dot--full    { background: rgba(224,92,92,0.28);   border-color: rgba(224,92,92,0.55); }
.sched-dot--closed  { background: var(--surface-hover);   border-color: var(--line-2); }
.sched-dot--today   { background: var(--primary-300);     border-color: var(--primary); }


/* 39. SCHEDULE PAGE — Slot editor & timeline  */

.sched-editor-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.sched-pill-btn { display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 13px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface-3); color: var(--text-2); font-size: 0.78rem; font-weight: 700; cursor: pointer; font-family: inherit; transition: background-color var(--ease), border-color var(--ease), color var(--ease), transform var(--ease); }
.sched-pill-btn:active { transform: scale(0.93); }
.sched-pill--green  { background: var(--sched-open-bg);    border-color: var(--sched-open-bdr);    color: var(--sched-open); }
.sched-pill--red    { background: var(--sched-full-bg);    border-color: var(--sched-full-bdr);    color: var(--sched-full); }
.sched-pill--blue   { background: var(--sched-booked-bg);  border-color: var(--sched-booked-bdr);  color: var(--sched-booked); }
.sched-pill--yellow { background: var(--sched-partial-bg); border-color: var(--sched-partial-bdr); color: var(--sched-partial); }
.sched-pill--green:hover  { background: rgba(61,201,138,0.16); }
.sched-pill--red:hover    { background: rgba(224,92,92,0.16); }
.sched-pill--blue:hover   { background: rgba(74,144,232,0.16); }
.sched-pill--yellow:hover { background: rgba(240,184,67,0.16); }

.sched-slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px 20px; }

.sched-slot-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); transition: background-color var(--ease), border-color var(--ease), transform var(--ease); }
.sched-slot-item[style*="pointer"]:hover { border-color: var(--primary-border); background: var(--primary-050); transform: translateY(-1px); }

.sched-slot-left   { display: flex; align-items: center; gap: 8px; }
.sched-slot-icon   { width: 20px; height: 20px; border-radius: 50%; font-size: 0.6rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--surface-3); color: var(--text-3); }
.sched-slot-time   { font-size: 0.88rem; font-weight: 700; color: var(--text); font-family: var(--font-mono); letter-spacing: 0.02em; }
.sched-slot-status { font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: var(--r-pill); letter-spacing: 0.03em; text-transform: uppercase; }

.slot-open   { background: var(--sched-open-bg);   border-color: var(--sched-open-bdr); }
.slot-open .sched-slot-time   { color: var(--sched-open); }
.slot-open .sched-slot-status { background: rgba(61,201,138,0.12); color: var(--sched-open); }
.slot-open .sched-slot-icon   { background: rgba(61,201,138,0.15); color: var(--sched-open); }

.slot-closed { background: var(--surface-3); border-color: var(--line); }
.slot-closed .sched-slot-time   { color: var(--text-4); }
.slot-closed .sched-slot-status { background: var(--surface-3); color: var(--text-4); }
.slot-closed .sched-slot-icon   { background: var(--line); color: var(--text-4); }

.slot-booked { background: var(--sched-booked-bg); border-color: var(--sched-booked-bdr); cursor: default !important; }
.slot-booked .sched-slot-time   { color: var(--sched-booked); }
.slot-booked .sched-slot-status { background: rgba(74,144,232,0.12); color: var(--sched-booked); }
.slot-booked .sched-slot-icon   { background: rgba(74,144,232,0.15); color: var(--sched-booked); }

.sched-editor-empty { padding: 28px 20px; text-align: center; color: var(--text-3); font-size: 0.88rem; grid-column: 1 / -1; }
.sched-empty-icon   { font-size: 2rem; margin-bottom: 8px; display: block; }

.sched-timeline { padding: 14px 18px; display: grid; gap: 8px; }
.sched-time-slot-group { display: grid; gap: 6px; }
.sched-time-heading { font-size: 0.72rem; font-weight: 700; color: var(--text-4); text-transform: uppercase; letter-spacing: 0.09em; font-family: var(--font-mono); padding: 4px 0; border-bottom: 1px solid var(--line); margin-bottom: 2px; }

.sched-order-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); transition: border-color var(--ease), background var(--ease), transform var(--ease); }
.sched-order-row:hover { border-color: var(--line-2); background: var(--surface-3); transform: translateY(-1px); box-shadow: var(--shadow-1); }
.conflict-row      { border-color: rgba(224,92,92,0.35) !important; background: rgba(224,92,92,0.04) !important; }
.conflict-row:hover { background: rgba(224,92,92,0.07) !important; }

.sched-order-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-050); border: 1.5px solid var(--primary-border); color: var(--primary-400); font-size: 0.82rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sched-order-info  { min-width: 0; }
.sched-order-name  { font-size: 0.88rem; font-weight: 700; color: var(--text); display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 2px; }
.sched-order-meta  { font-size: 0.76rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sched-order-status { flex-shrink: 0; }

.sched-empty-day { padding: 28px; text-align: center; color: var(--text-3); font-size: 0.88rem; }
.sched-empty-day p { margin: 0; }

.sched-count-badge { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-pill); background: var(--primary-050); border: 1px solid var(--primary-border); color: var(--primary-400); font-size: 0.76rem; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

.sched-skeleton { border-radius: 8px; background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-hover) 50%, var(--surface-3) 75%); background-size: 800px 100%; animation: shimmer 1.4s ease-in-out infinite; }
.sched-spinner  { width: 16px; height: 16px; border: 2px solid var(--primary-100); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.6s linear infinite; flex-shrink: 0; }


/* =============================================================================
   40. SCHEDULE PAGE — Week overview
============================================================================= */

.sched-week-card { padding: 0; }
.sched-week-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 8px; padding: 16px 20px; }

.sched-week-day { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; min-height: 100px; justify-content: flex-end; position: relative; transition: border-color var(--ease), background var(--ease), transform var(--ease), box-shadow var(--ease); }
.sched-week-day:hover  { border-color: var(--primary-border); transform: translateY(-2px); box-shadow: var(--shadow-1); background: var(--surface-3); }
.sched-week-day.is-today    { border-color: var(--primary-300); background: var(--primary-050); }
.sched-week-day.is-selected { border-color: var(--primary); background: var(--primary-050); box-shadow: 0 0 0 2px rgba(74,144,232,0.15); }

.sched-week-name { font-size: 0.68rem; font-weight: 700; color: var(--text-4); text-transform: uppercase; letter-spacing: 0.08em; position: absolute; top: 10px; }
.sched-week-num  { font-size: 1rem; font-weight: 800; color: var(--text); position: absolute; top: 26px; }
.sched-week-day.is-today .sched-week-name, .sched-week-day.is-today .sched-week-num { color: var(--primary-400); }
.sched-week-day.is-selected .sched-week-num { color: var(--primary); }

.sched-week-bar-wrap { width: 100%; height: 32px; display: flex; align-items: flex-end; margin-top: auto; }
.sched-week-bar      { width: 100%; border-radius: 4px 4px 0 0; background: var(--primary); opacity: 0.6; min-height: 4px; transition: height 260ms var(--ease-spring); }
.sched-week-orders   { font-size: 0.7rem; font-weight: 700; color: var(--primary-400); font-variant-numeric: tabular-nums; }

.timeline-item { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; padding: 11px 15px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); transition: border-color var(--ease), transform var(--ease); }
.timeline-item:hover { border-color: var(--line-2); transform: translateY(-1px); }
.timeline-time { font-size: 0.86rem; font-weight: 700; color: var(--primary-400); text-align: center; font-family: var(--font-mono); }
.timeline-name { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.timeline-meta { font-size: 0.76rem; color: var(--text-3); }


/* 41. RESPONSIVE — All page  */

/* ── Global nav mobile ── */
@media (max-width: 560px) {
  .nav-links, .nav-inner { justify-content: center; gap: 6px; }
  .nav-logo { width: 100%; justify-content: center; margin-right: 0; }
  .nav-links a, .nav-inner a { min-height: 42px; padding: 8px 10px; font-size: 0.92rem; }
  .container { width: min(var(--max), calc(100% - 20px)); margin-top: 18px; }
  .card { padding: 16px; }
  .hero-actions, .popup-actions, .order-actions { flex-direction: column; }
  .btn { width: 100%; }
  #toastHost { right: 10px; left: 10px; bottom: 10px; }
  .toast { max-width: none; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Home ── */
@media (max-width: 1060px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 40px 36px; }
  .hero-copy h1 { font-size: clamp(2rem, 5vw, 2.6rem); }
  .hero-media   { max-width: 560px; margin: 0 auto; width: 100%; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .steps-grid::before { display: none; }
  .step-card { padding: 20px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-1); }
}

@media (max-width: 760px) {
  .hero { padding: 28px 22px; gap: 24px; }
  .hero-metrics { flex-direction: column; border-radius: 12px; }
  .metric-pill { border-right: none; border-bottom: 1px solid var(--line); }
  .metric-pill:last-child { border-bottom: none; }
  .home-overview { grid-template-columns: 1fr; }
  .tier-cards, .tutorial-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section-head, .card-header, .order-top, .order-meta { flex-direction: column; align-items: flex-start; }
  .carousel-track img { height: 300px; }
}

@media (max-width: 560px) {
  .hero { padding: 22px 18px; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-actions .btn { width: 100%; }
}

/* ── Auth ── */
@media (max-width: 600px) {
  .auth-container { padding: 20px 12px 32px; align-items: flex-start; }
  .auth-card { max-width: 100%; padding: 32px 22px 28px; border-radius: 18px; }
  .auth-title { font-size: 2rem; }
  .auth-input { min-height: 48px; border-radius: 10px; }
  .auth-submit, .auth-alt { min-height: 48px; border-radius: 10px; }
}

/* ── Booking ── */
@media (max-width: 980px) {
  .booking-layout { grid-template-columns: 1fr; }
  .booking-summary { position: static; }
}

@media (max-width: 760px) {
  .booking-hero { padding: 28px 22px; }
  .form-section { padding: 18px 16px; }
  .frow { grid-template-columns: 1fr; }
  .time-slots { gap: 6px; }
  .time-slot { min-width: 58px; font-size: 0.84rem; min-height: 42px; }
  .booking-steps { padding: 16px 16px 0; }
  .step-label { display: none; }
}

@media (max-width: 480px) {
  .booking-hero { padding: 22px 18px; }
  .form-section { padding: 16px 14px; }
  .summary-inner { padding: 18px 16px; }
}

/* ── Account ── */
@media (max-width: 900px) {
  .acct-mid { grid-template-columns: 1fr; }
  .stat-col { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .acct-strip { flex-direction: column; align-items: flex-start; }
  .acct-book-btn { margin-left: 0; width: 100%; justify-content: center; }
  .tier-items { grid-template-columns: 1fr; }
  .stat-col { grid-template-columns: 1fr; }
  .acct-order-row { grid-template-columns: 1fr; }
}

/* ── Admin ── */
@media (max-width: 1100px) {
  .admin-layout { grid-template-columns: 240px minmax(0,1fr); }
  .stat-card .stat-val { font-size: 1.5rem; }
}

@media (max-width: 860px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static !important; }
  .admin-header { flex-direction: column; align-items: flex-start; }
  .admin-actions { width: 100%; }
  .admin-actions input[type="text"] { min-width: 0; flex: 1; }
}

@media (max-width: 560px) {
  .admin-tab { padding: 11px 12px; font-size: 0.8rem; }
  .admin-tab-panel { padding: 16px; }
  .admin-header { padding: 16px; }
  .admin-row { flex-direction: column; align-items: stretch; }
  .admin-status, .admin-points { min-width: 0; width: 100%; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-card .stat-val { font-size: 1.2rem; }
}

/* ── Schedule ── */
@media (max-width: 1100px) { .sched-layout { grid-template-columns: 1fr; } }

@media (max-width: 760px) {
  .sched-hero { flex-direction: column; align-items: flex-start; padding: 22px; gap: 20px; }
  .sched-hero-stats { gap: 12px; }
  .sched-stat { flex: 1; min-width: 72px; padding: 10px 12px; }
  .sched-week-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .sched-slot-grid { grid-template-columns: repeat(2, 1fr); }
  .sched-order-row { grid-template-columns: 30px 1fr auto; gap: 8px; }
}

@media (max-width: 480px) {
  .sched-shell { gap: 14px; }
  .sched-week-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 5px; padding: 12px; }
  .sched-slot-grid { grid-template-columns: 1fr; }
  .sched-order-row { grid-template-columns: 1fr auto; }
  .sched-order-avatar { display: none; }
}

/* ── Order tracker mobile ── */
@media (max-width: 700px) {
  .order-tracker { grid-template-columns: repeat(7, 90px); gap: 8px; }
  .order-tracker::before { left: 32px; right: 32px; }
  .label { font-size: 10px; }
}


/* 42. FOCUS, PRINT, REDUCED MOTION  */

/* Focus rings — [REF-3]: visible focus indicators are required for accessibility */
.svc-opt:focus-visible, .cal-cell:focus-visible, .time-slot:focus-visible,
.sched-cell:focus-visible, .sched-cal-btn:focus-visible, .sched-pill-btn:focus-visible,
.sched-slot-item:focus-visible, .sched-week-day:focus-visible,
.avail-cell:focus-visible, .avail-cal-nav:focus-visible, .avail-slot-btn:focus-visible,
.admin-tab:focus-visible, .admin-side-link:focus-visible {
  outline: 2px solid var(--primary-400);
  outline-offset: 2px;
}

/* Print */
@media print {
  body { background: #fff !important; color: #000 !important; }
  .navbar         { position: static; background: #fff !important; }
  .admin-sidebar  { display: none; }
  .admin-layout   { grid-template-columns: 1fr; }
  .booking-steps, .hero-glow, .sched-editor-actions, .sched-cal-nav-row { display: none; }
  .card, .order-card, .sched-order-row { box-shadow: none !important; break-inside: avoid; background: #fff !important; color: #000 !important; border-color: #ccc !important; }
  #btnBook        { display: none; }
  .booking-summary { break-inside: avoid; }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}