/* ==========================================================================
   Spruhad Multispeciality Clinic — Design System
   Orthodontics & Pediatric Dentistry · Dr. Rakesh Shalgar · Since 2000
   Signature motif: "The Arc" — an archwire/growth-track line used as
   divider, progress indicator, and structural device throughout.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* ---- Core palette (derived from the Spruhad mark: black / brass / vermilion) ---- */
  --ink:        #15120f;   /* near-black, warm undertone — headers, footer, dark panels */
  --ink-soft:   #2b241e;   /* body text on light surfaces */
  --ink-faint:  #8a7c6e;   /* captions, meta, muted labels */
  --ink-line:   rgba(21, 18, 15, 0.10);

  --brass:      #c1963f;   /* primary accent — from the logo wordmark */
  --brass-deep: #96702a;   /* brass hover / pressed */
  --brass-mist: #f1e6cd;   /* pale brass tint for chips/badges */

  --vermilion:      #a6402c;   /* primary CTA — from the logo emblem */
  --vermilion-deep: #832f1f;
  --vermilion-mist: #f3ded7;

  --cream:      #f8f3e8;   /* warm paper background */
  --cream-deep: #efe6d2;   /* alt section background */
  --surface:    #ffffff;   /* card fill */

  /* ---- Radii & elevation ---- */
  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(21, 18, 15, 0.06);
  --shadow-md: 0 12px 28px rgba(21, 18, 15, 0.10);
  --shadow-lg: 0 24px 56px rgba(21, 18, 15, 0.18);

  --ease: cubic-bezier(0.19, 1, 0.22, 1);

  /* ---- Type scale ---- */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.4em;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p { line-height: 1.65; margin: 0 0 1em; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vermilion);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 18px; height: 1px;
  background: var(--vermilion);
}
.lede { font-size: 1.1rem; color: var(--ink-faint); max-width: 56ch; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; position: relative; }
.section-tight { padding: 64px 0; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.page-scroll-track > .section {
  width: min(calc(100% - 56px), 1480px);
  margin: 28px auto;
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(248,243,232,0.76), rgba(248,243,232,0.46)) !important;
  border: 1px solid rgba(255,255,255,0.54);
  box-shadow: 0 30px 80px rgba(21,18,15,0.16), inset 0 1px 0 rgba(255,255,255,0.58);
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
  overflow: hidden;
}

.page-scroll-track > .section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 0%, rgba(255,255,255,0.34), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.22), transparent 44%, rgba(193,150,63,0.08));
}

.page-scroll-track > .section > .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 700px) {
  .page-scroll-track > .section {
    width: min(calc(100% - 24px), 1480px);
    margin: 14px auto;
    border-radius: 24px;
  }
}

/* ==========================================================================
   Signature motif — The Arc
   A shallow archwire/growth-track line with bracket dots. Used as a
   divider, an underline beneath key headlines, and (on the booking page)
   as the literal step tracker for a patient's visit.
   ========================================================================== */
.arc-divider { width: 100%; overflow: hidden; line-height: 0; }
.arc-divider svg { width: 100%; height: auto; display: block; }

.arc-rule {
  display: block;
  width: 130px;
  height: 22px;
  margin: 18px 0 0;
}
.center .arc-rule { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Buttons & chips
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color .3s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--vermilion);
  color: var(--cream);
  box-shadow: 0 10px 24px rgba(166, 64, 44, 0.32);
}
.btn-primary:hover { background: var(--vermilion-deep); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(166,64,44,.38); }
.btn-ghost {
  background: transparent;
  border-color: rgba(248,243,232,0.4);
  color: var(--cream);
}
.btn-ghost:hover { background: rgba(248,243,232,0.12); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border-color: var(--ink-line);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--brass); background: var(--brass-mist); }
.btn-sm { padding: 9px 18px; font-size: 0.82rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none !important; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--brass-mist);
  color: var(--brass-deep);
}
.chip-vermilion { background: var(--vermilion-mist); color: var(--vermilion-deep); }
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(21, 18, 15, 0.86);
  backdrop-filter: blur(14px);
  padding: 12px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--cream); }
.brand-mark {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--ink); border: 1px solid rgba(193,150,63,.5);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; }
.brand-text span { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); }

.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: rgba(248,243,232,0.78);
  font-size: 0.88rem; font-weight: 600;
  position: relative; padding-bottom: 4px;
}
.nav-links a:hover, .nav-links a.active { color: var(--cream); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--vermilion); border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; color: var(--cream); }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .nav-links { position: fixed; top: 0; right: 0; bottom: 0; width: min(78vw, 340px);
    background: var(--ink); flex-direction: column; padding: 100px 32px 32px;
    transform: translateX(100%); transition: transform .45s var(--ease); gap: 26px; }
  .nav-links.is-open { transform: translateX(0); }
  .nav-toggle { display: block; z-index: 120; }
  .nav-cta .btn span.hide-mobile { display: none; }
}

/* ==========================================================================
   Scroll-scrub hero engine (canvas frame sequence)
   ========================================================================== */
.bg-canvas-container {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
}
.scrub-canvas { width: 100%; height: 100%; object-fit: cover; }
.bg-canvas-container::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21,18,15,0.55) 0%, rgba(21,18,15,0.30) 30%, rgba(21,18,15,0.75) 100%);
}
body, body.admin-body { background: transparent !important; }
.page-scroll-track { position: relative; z-index: 1; }

.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 140px 0 90px;
  color: var(--cream);
}
.hero-inner { max-width: 760px; }
.hero .eyebrow { color: var(--brass); }
.hero .eyebrow::before { background: var(--brass); }
.hero h1 { color: var(--cream); }
.hero .lede { color: rgba(248,243,232,0.82); }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-arc { margin: 22px 0 0; width: 220px; }

.frame-progress {
  position: fixed; right: 28px; bottom: 28px; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.68rem; color: rgba(248,243,232,0.7);
}
.frame-progress .track { width: 84px; height: 3px; background: rgba(248,243,232,0.22); border-radius: 2px; overflow: hidden; }
.frame-progress .fill { height: 100%; width: 0%; background: var(--brass); }
@media (max-width: 700px) { .frame-progress { display: none; } }

/* ==========================================================================
   Cards — translucent curved treatment for repeated strips.
   ========================================================================== */
.chart-card {
  min-height: 100%;
  background: linear-gradient(145deg, rgba(255,255,255,0.72), rgba(255,255,255,0.42));
  border: 1px solid rgba(255,255,255,0.62);
  border-radius: var(--r-lg);
  padding: 34px 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(21, 18, 15, 0.10), inset 0 1px 0 rgba(255,255,255,0.70);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.chart-card::before {
  content: '';
  position: absolute;
  top: 20px;
  right: 22px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 5px rgba(193,150,63,0.18), 0 4px 10px rgba(151,112,42,0.24);
  z-index: 2;
}
.chart-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.48), transparent 38%, rgba(193,150,63,0.08));
}
.chart-card > * {
  position: relative;
  z-index: 1;
}
.chart-card:hover {
  transform: translateY(-5px);
  background: linear-gradient(145deg, rgba(255,255,255,0.82), rgba(255,255,255,0.52));
  box-shadow: 0 24px 54px rgba(21, 18, 15, 0.14), inset 0 1px 0 rgba(255,255,255,0.78);
  border-color: rgba(193,150,63,.42);
}
.chart-card .icon-badge { margin-bottom: 18px; }
.chart-card h3 { margin-bottom: 8px; }
.chart-card p { color: var(--ink-faint); font-size: 0.95rem; margin-bottom: 0; }

.icon-badge {
  width: 52px; height: 52px; border-radius: 16px;
  background: rgba(241,230,205,0.68);
  border: 1px solid rgba(193,150,63,0.18);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65), 0 8px 18px rgba(21,18,15,0.06);
}
.icon-badge svg { width: 24px; height: 24px; stroke: var(--vermilion); }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ==========================================================================
   Visit page
   ========================================================================== */
.visit-section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.visit-hero {
  min-height: 42vh;
  padding-bottom: 64px;
}

.visit-layout {
  grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
  align-items: start;
  gap: 28px;
}

.visit-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.visit-card {
  min-height: 0;
  padding: 28px 30px;
}

.visit-card .btn {
  margin-top: 4px;
}

.visit-map {
  height: clamp(520px, 58vh, 680px);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.62);
  box-shadow: 0 18px 42px rgba(21,18,15,0.12), inset 0 1px 0 rgba(255,255,255,0.70);
  background: rgba(255,255,255,0.42);
}

.visit-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
}

@media (max-width: 920px) {
  .visit-layout {
    grid-template-columns: 1fr;
  }

  .visit-map {
    height: 460px;
  }
}

@media (max-width: 620px) {
  .visit-hero {
    min-height: 34vh;
    padding-bottom: 44px;
  }

  .visit-section {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .visit-card {
    padding: 26px 24px;
  }

  .visit-map {
    height: 360px;
  }
}

/* ==========================================================================
   Panels (dark ink sections)
   ========================================================================== */
.panel-dark {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--r-lg);
  padding: 48px 44px;
}
.panel-dark .eyebrow { color: var(--brass); }
.panel-dark .eyebrow::before { background: var(--brass); }
.panel-dark h2, .panel-dark h3 { color: var(--cream); }
.panel-dark p { color: rgba(248,243,232,0.75); }

/* ==========================================================================
   Doctor panel
   ========================================================================== */
.doctor-panel {
  display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center;
}
.doctor-portrait {
  width: 220px; height: 260px; border-radius: var(--r-md);
  background: linear-gradient(160deg, #241d17, #15120f);
  border: 1px solid rgba(193,150,63,.35);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: 0 18px 36px rgba(0,0,0,.35);
}
.doctor-portrait svg { width: 62%; stroke: var(--brass); }
@media (max-width: 760px) { .doctor-panel { grid-template-columns: 1fr; text-align: center; } .doctor-portrait { margin: 0 auto; } }

/* ==========================================================================
   Reviews
   ========================================================================== */
.review-card {
  background: var(--surface);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-md);
  padding: 26px;
}
.stars { display: flex; gap: 3px; margin-bottom: 12px; }
.stars svg { width: 15px; height: 15px; fill: var(--brass); }
.review-meta { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.review-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--vermilion-mist); color: var(--vermilion-deep);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; font-family: var(--font-display);
}
.review-name { font-weight: 700; font-size: 0.88rem; color: var(--ink); }
.review-tag { font-size: 0.72rem; color: var(--ink-faint); }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.accordion-item {
  background: var(--surface); border: 1px solid var(--ink-line); border-radius: var(--r-md);
  margin-bottom: 12px; overflow: hidden;
}
.accordion-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; background: none; border: none; width: 100%; text-align: left;
  font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); font-weight: 600;
}
.accordion-q .plus { width: 22px; height: 22px; flex-shrink: 0; position: relative; }
.accordion-q .plus::before, .accordion-q .plus::after {
  content: ''; position: absolute; background: var(--vermilion); border-radius: 2px;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.accordion-q .plus::before { width: 14px; height: 2px; }
.accordion-q .plus::after { width: 2px; height: 14px; transition: transform .3s var(--ease); }
.accordion-item.is-open .plus::after { transform: translate(-50%,-50%) rotate(90deg) scaleY(0); }
.accordion-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.accordion-a-inner { padding: 0 24px 22px; color: var(--ink-faint); }
.accordion-item.is-open .accordion-a { max-height: 400px; }

/* ==========================================================================
   Forms (booking + admin)
   ========================================================================== */
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--ink-faint); margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--ink-line); background: var(--surface); color: var(--ink);
  transition: border-color .25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--vermilion);
}
.field textarea { resize: vertical; min-height: 90px; }

.chip-select { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-option {
  padding: 10px 18px; border-radius: var(--r-pill); border: 1px solid var(--ink-line);
  font-size: 0.86rem; font-weight: 600; background: var(--surface); color: var(--ink-soft);
  transition: all .25s;
}
.chip-option.is-selected { background: var(--vermilion); border-color: var(--vermilion); color: var(--cream); }

/* Booking step tracker — uses the Arc motif literally */
.step-tracker { position: relative; margin: 8px 0 44px; }
.step-tracker svg { width: 100%; height: 46px; }
.step-labels { display: flex; justify-content: space-between; margin-top: 4px; }
.step-labels span { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); }
.step-labels span.is-active { color: var(--vermilion); font-weight: 700; }

.confirm-box {
  background: var(--cream-deep); border: 1px dashed var(--brass);
  border-radius: var(--r-md); padding: 24px; text-align: center;
}
.confirm-ref { font-family: var(--font-mono); font-size: 1.4rem; color: var(--vermilion); letter-spacing: .04em; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(248,243,232,0.75); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { color: var(--cream); font-size: 0.85rem; text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-mono); margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a:hover { color: var(--brass); }
.footer-bottom { border-top: 1px solid rgba(248,243,232,0.12); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; color: rgba(248,243,232,0.5); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Sticky mobile action bar
   ========================================================================== */
.mobile-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: var(--ink); padding: 12px 16px; gap: 10px;
  box-shadow: 0 -8px 24px rgba(0,0,0,.25);
}
.mobile-bar a { flex: 1; }
@media (max-width: 700px) { .mobile-bar { display: flex; } body { padding-bottom: 70px; } }

/* ==========================================================================
   Utility
   ========================================================================== */
.text-brass { color: var(--brass); }
.text-vermilion { color: var(--vermilion); }
.mt-0 { margin-top: 0; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Arc / icon SVG stroke-color hooks (set via class since presentation
   attributes can't reference custom properties directly) */
.arc-stroke { stroke: var(--vermilion); }
.arc-stroke-brass { stroke: var(--brass); }
.arc-dot { fill: var(--brass); }
.arc-dot-lit { fill: var(--vermilion); }
.arc-track-bg { stroke: var(--ink-line); }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--vermilion); outline-offset: 2px;
}

/* ==========================================================================
   Admin dashboard shell
   ========================================================================== */
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--ink); color: var(--cream); padding: 26px 20px;
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
}
.admin-sidebar .brand { margin-bottom: 34px; }
.admin-nav { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.admin-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px; border-radius: var(--r-sm); font-size: 0.88rem; font-weight: 600;
  color: rgba(248,243,232,0.68);
}
.admin-nav a:hover { background: rgba(248,243,232,0.06); color: var(--cream); }
.admin-nav a.active { background: var(--vermilion); color: var(--cream); }
.badge { font-family: var(--font-mono); font-size: 0.68rem; padding: 2px 8px; border-radius: var(--r-pill); background: rgba(248,243,232,0.1); }
.badge-gold { background: var(--brass); color: var(--ink); }
.badge-coral { background: var(--vermilion); color: var(--cream); }
.badge-teal { background: #3c5a52; color: var(--cream); }
.admin-signout { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(248,243,232,0.1); }

.admin-main { padding: 34px 40px; background: var(--cream); }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; flex-wrap: wrap; gap: 14px; }
.admin-topbar h1 { font-size: 1.7rem; margin: 0; }

.stat-card {
  background: var(--surface); border: 1px solid var(--ink-line); border-radius: var(--r-md);
  padding: 22px 24px;
}
.stat-card .stat-label { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); margin-bottom: 10px; }
.stat-card .stat-value { font-family: var(--font-display); font-size: 2.1rem; color: var(--ink); }

.admin-panel { background: var(--surface); border: 1px solid var(--ink-line); border-radius: var(--r-md); padding: 26px; margin-bottom: 24px; }
.admin-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab-btn { padding: 8px 16px; border-radius: var(--r-pill); border: 1px solid var(--ink-line); background: var(--surface); font-size: 0.82rem; font-weight: 600; color: var(--ink-faint); }
.tab-btn.is-active { background: var(--ink); border-color: var(--ink); color: var(--cream); }

table.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th { text-align: left; font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); padding: 10px 12px; border-bottom: 1px solid var(--ink-line); }
.data-table td { padding: 14px 12px; border-bottom: 1px solid var(--ink-line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--cream-deep); cursor: pointer; }

.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--r-pill); font-size: 0.72rem; font-weight: 700; }
.status-requested { background: var(--brass-mist); color: var(--brass-deep); }
.status-confirmed { background: #dcebe4; color: #2c5c48; }
.status-completed { background: #e2e2e2; color: #444; }
.status-cancelled { background: var(--vermilion-mist); color: var(--vermilion-deep); }
.status-new { background: var(--vermilion-mist); color: var(--vermilion-deep); }
.status-actioned { background: #e2e2e2; color: #555; }
.status-paid { background: #dcebe4; color: #2c5c48; }
.status-unpaid { background: var(--vermilion-mist); color: var(--vermilion-deep); }

.drawer-overlay {
  position: fixed; inset: 0; background: rgba(21,18,15,0.5); z-index: 200;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.drawer-overlay.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 92vw);
  background: var(--surface); z-index: 201; padding: 30px 28px; overflow-y: auto;
  transform: translateX(100%); transition: transform .4s var(--ease);
}
.drawer.is-open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.drawer-close { background: var(--cream-deep); border-radius: 50%; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: none; }

.empty-state { text-align: center; padding: 50px 20px; color: var(--ink-faint); }
.empty-state svg { width: 48px; height: 48px; stroke: var(--ink-line); margin-bottom: 14px; }

.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--ink); }
.login-card { width: 100%; max-width: 380px; background: var(--surface); border-radius: var(--r-lg); padding: 40px 34px; box-shadow: var(--shadow-lg); }

@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: relative; height: auto; }
}
