:root {
  --cream: #FAF6F1;
  --espresso: #1A1210;
  --rose: #B76E79;
  --gold: #C4A574;
  --brand: #B76E79;
  --ink: #1A1210;
}
html { scroll-behavior: smooth; }
body { font-family: "DM Sans", system-ui, sans-serif; }
.font-serif, h1, h2, .font-display { font-family: "Cormorant Garamond", Georgia, serif; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.marketing-shell .hero-orb {
  position: absolute; border-radius: 999px; filter: blur(40px); opacity: .45; pointer-events: none;
}

.price-card.featured { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(26,18,16,.12); }

.flash { margin: 12px 20px; padding: 12px 16px; border-radius: 12px; font-size: 14px; }
.flash.error { background: #FEF2F2; color: #991B1B; }
.flash.success { background: #ECFDF5; color: #065F46; }

/* Dashboards */
.super-shell {
  background:
    radial-gradient(1100px 480px at 8% -8%, rgba(99, 102, 241, .22), transparent 52%),
    radial-gradient(800px 380px at 100% 0%, rgba(34, 211, 238, .1), transparent 46%),
    #0B1220;
  color: #E2E8F0;
}
.tenant-shell {
  background:
    radial-gradient(900px 420px at 0% -8%, rgba(183, 110, 121, .14), transparent 50%),
    radial-gradient(700px 320px at 100% 0%, rgba(196, 165, 116, .1), transparent 48%),
    #F7F1EA;
  color: #1A1210;
}
.staff-shell {
  background:
    radial-gradient(900px 420px at 0% -8%, rgba(15, 118, 110, .12), transparent 50%),
    #F3F6F4;
  color: #14221C;
}

.dash-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.dash-sidebar {
  padding: 22px 16px; display: flex; flex-direction: column; gap: 18px;
}
.super-shell .dash-sidebar { background: #070D18; border-right: 1px solid #1E293B; }
.tenant-shell .dash-sidebar { background: #FFFBF7; border-right: 1px solid #E8DFD4; }
.staff-shell .dash-sidebar { background: #ECF4EF; border-right: 1px solid #D5E5DB; }

.dash-brand { display: flex; gap: 10px; align-items: center; padding: 0 8px; }
.dash-mark {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  font-family: "Cormorant Garamond", serif; font-size: 20px; background: #1A1210; color: #C4A574;
}
.super-shell .dash-mark { background: #22D3EE; color: #082F49; }
.dash-brand-kicker { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .55; }
.dash-brand-name { font-weight: 600; font-size: 14px; line-height: 1.2; }

.dash-nav { display: flex; flex-direction: column; gap: 4px; }
.dash-nav a {
  padding: 9px 12px; border-radius: 10px; font-size: 14px; color: inherit; text-decoration: none; opacity: .75;
}
.dash-nav a:hover, .dash-nav a.is-active { opacity: 1; }
.tenant-shell .dash-nav a.is-active { background: #F1E4D8; }
.staff-shell .dash-nav a.is-active { background: #D9EDE3; }
.super-shell .dash-nav a.is-active { background: #122033; color: #67E8F9; }
.dash-sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.dash-ghost { font-size: 13px; opacity: .7; text-decoration: none; padding: 6px 12px; }
.dash-ghost:hover { opacity: 1; }

.dash-main { min-width: 0; }
.dash-top {
  display: flex; align-items: center; gap: 12px; padding: 16px 24px;
}
.super-shell .dash-top { border-bottom: 1px solid #1E293B; }
.tenant-shell .dash-top { border-bottom: 1px solid #E8DFD4; background: #FFFBF7; }
.staff-shell .dash-top { border-bottom: 1px solid #D5E5DB; background: #fff; }
.dash-top h1 { font-size: 22px; font-weight: 600; margin-right: auto; font-family: "DM Sans", sans-serif; }
.super-shell .dash-top h1 { font-family: "IBM Plex Sans", sans-serif; }
.dash-user { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.dash-user-meta { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.dash-user-name { font-weight: 600; }
.dash-user-role {
  font-size: 11px; opacity: .62; letter-spacing: .04em; margin-top: 2px;
}
.dash-avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--rose); color: #fff; font-size: 12px; font-weight: 600;
}
.super-shell .dash-avatar { background: #22D3EE; color: #082F49; }
.dash-menu { display: none; background: none; border: 1px solid currentColor; border-radius: 8px; padding: 4px 8px; }
.dash-content { padding: 24px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.stat-card, .panel {
  --card-accent: #B76E79;
  --card-glow: rgba(183, 110, 121, .18);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #FBF8F4 100%);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid rgba(26, 18, 16, .07);
  box-shadow: 0 12px 32px rgba(26, 18, 16, .05);
}
.stat-card::before, .panel::before {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
}
.stat-card::before {
  left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--card-accent), color-mix(in srgb, var(--card-accent) 20%, transparent));
}
.panel::before {
  left: 0; top: 0; width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--card-accent), color-mix(in srgb, var(--card-accent) 10%, transparent));
}
.stat-card::after {
  content: "";
  position: absolute;
  right: -28px; top: -36px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--card-accent) 32%, transparent), transparent 68%);
  pointer-events: none;
  z-index: 0;
  animation: orbPulse 5.5s ease-in-out infinite;
}
.stat-card > *, .panel > * { position: relative; z-index: 1; }
.stat-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--card-accent) 16%, transparent);
  color: var(--card-accent);
  margin-bottom: 14px;
}
.stat-icon svg { width: 20px; height: 20px; }

.stat-grid .stat-card:nth-child(4n+1) { --card-accent: #4F46E5; --card-glow: rgba(79, 70, 229, .22); }
.stat-grid .stat-card:nth-child(4n+2) { --card-accent: #0F766E; --card-glow: rgba(15, 118, 110, .22); }
.stat-grid .stat-card:nth-child(4n+3) { --card-accent: #7C3AED; --card-glow: rgba(124, 58, 237, .22); }
.stat-grid .stat-card:nth-child(4n+4) { --card-accent: #B45309; --card-glow: rgba(180, 83, 9, .2); }
.tenant-shell .stat-grid .stat-card:nth-child(4n+1) { --card-accent: #B76E79; --card-glow: rgba(183, 110, 121, .2); }
.tenant-shell .stat-grid .stat-card:nth-child(4n+2) { --card-accent: #C4A574; --card-glow: rgba(196, 165, 116, .22); }
.tenant-shell .stat-grid .stat-card:nth-child(4n+3) { --card-accent: #0F766E; --card-glow: rgba(15, 118, 110, .2); }
.tenant-shell .stat-grid .stat-card:nth-child(4n+4) { --card-accent: #1A1210; --card-glow: rgba(26, 18, 16, .16); }
.staff-shell .stat-grid .stat-card:nth-child(4n+1) { --card-accent: #047857; --card-glow: rgba(4, 120, 87, .2); }
.staff-shell .stat-grid .stat-card:nth-child(4n+2) { --card-accent: #0F766E; --card-glow: rgba(15, 118, 110, .2); }
.staff-shell .stat-grid .stat-card:nth-child(4n+3) { --card-accent: #1D4E89; --card-glow: rgba(29, 78, 137, .2); }
.staff-shell .stat-grid .stat-card:nth-child(4n+4) { --card-accent: #B45309; --card-glow: rgba(180, 83, 9, .18); }

.dash-content .grid > .panel:nth-child(4n+1) { --card-accent: #4F46E5; --card-glow: rgba(79, 70, 229, .16); }
.dash-content .grid > .panel:nth-child(4n+2) { --card-accent: #0F766E; --card-glow: rgba(15, 118, 110, .16); }
.dash-content .grid > .panel:nth-child(4n+3) { --card-accent: #7C3AED; --card-glow: rgba(124, 58, 237, .16); }
.dash-content .grid > .panel:nth-child(4n+4) { --card-accent: #B45309; --card-glow: rgba(180, 83, 9, .14); }
.tenant-shell .dash-content .grid > .panel:nth-child(4n+1) { --card-accent: #B76E79; --card-glow: rgba(183, 110, 121, .16); }
.tenant-shell .dash-content .grid > .panel:nth-child(4n+2) { --card-accent: #C4A574; --card-glow: rgba(196, 165, 116, .16); }
.tenant-shell .dash-content .grid > .panel:nth-child(4n+3) { --card-accent: #0F766E; --card-glow: rgba(15, 118, 110, .14); }
.staff-shell .dash-content .grid > .panel:nth-child(4n+1) { --card-accent: #047857; }
.staff-shell .dash-content .grid > .panel:nth-child(4n+2) { --card-accent: #0F766E; }

.super-shell .stat-card, .super-shell .panel {
  background: linear-gradient(165deg, rgba(30, 41, 59, .92) 0%, #111827 58%, #0d1524 100%);
  border-color: color-mix(in srgb, var(--card-accent) 28%, #1F2937);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
}
.super-shell .stat-grid .stat-card:nth-child(4n+1) { --card-accent: #818CF8; --card-glow: rgba(129, 140, 248, .28); }
.super-shell .stat-grid .stat-card:nth-child(4n+2) { --card-accent: #22D3EE; --card-glow: rgba(34, 211, 238, .24); }
.super-shell .stat-grid .stat-card:nth-child(4n+3) { --card-accent: #A78BFA; --card-glow: rgba(167, 139, 250, .26); }
.super-shell .stat-grid .stat-card:nth-child(4n+4) { --card-accent: #FBBF24; --card-glow: rgba(251, 191, 36, .22); }
.super-shell .dash-content .grid > .panel:nth-child(4n+1) { --card-accent: #818CF8; --card-glow: rgba(129, 140, 248, .2); }
.super-shell .dash-content .grid > .panel:nth-child(4n+2) { --card-accent: #22D3EE; --card-glow: rgba(34, 211, 238, .18); }
.super-shell .dash-content > .panel { --card-accent: #818CF8; }

.stat-card p {
  font-size: 11px; text-transform: uppercase; letter-spacing: .14em; font-weight: 600;
  color: var(--card-accent); opacity: .9;
}
.stat-card strong {
  display: block; font-size: 30px; margin-top: 8px; letter-spacing: -.03em; font-weight: 650; line-height: 1.1;
}

.meter {
  height: 8px; border-radius: 999px; overflow: hidden; margin: 6px 0 12px;
  background: rgba(26, 18, 16, .08);
}
.super-shell .meter { background: rgba(255, 255, 255, .08); }
.meter-fill {
  height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--card-accent, #B76E79), color-mix(in srgb, var(--card-accent, #B76E79) 55%, #fff));
  transform: scaleX(0);
  transform-origin: left;
  animation: meterIn .85s cubic-bezier(.22, 1, .36, 1) .25s forwards;
}
.table-wrap { overflow: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { text-align: left; padding: 10px 8px; border-bottom: 1px solid rgba(0,0,0,.06); }
.super-shell table.data th, .super-shell table.data td { border-color: #1F2937; }
.badge { display: inline-flex; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; text-transform: capitalize; }
.badge.pending { background: #FEF3C7; color: #92400E; }
.badge.confirmed { background: #FCE7F3; color: #9D174D; }
.badge.completed { background: #D1FAE5; color: #065F46; }
.badge.cancelled, .badge.suspended { background: #E5E7EB; color: #374151; }
.badge.no_show, .badge.failed { background: #FEE2E2; color: #991B1B; }
.badge.active, .badge.paid, .badge.trial { background: #DBEAFE; color: #1E40AF; }
.badge.trialing { background: #E0E7FF; color: #3730A3; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 500; border: 0; cursor: pointer; text-decoration: none;
}
.btn-primary { background: #1A1210; color: #fff; }
.super-shell .btn-primary { background: #22D3EE; color: #082F49; }
.btn-ghost { background: transparent; border: 1px solid rgba(0,0,0,.15); color: inherit; }
.btn-danger { background: #991B1B; color: #fff; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 14px; }
.field input, .field select, .field textarea {
  border: 1px solid #E5D8CC; border-radius: 10px; padding: 10px 12px; background: #fff; font: inherit;
}
.super-shell .field input, .super-shell .field select, .super-shell .field textarea {
  background: #0B1220; border-color: #334155; color: #E2E8F0;
}

/* Booking public */
.booking-shell { background: #FBF8F4; color: var(--ink); min-height: 100vh; }
.booking-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 22px; background: #fff; border-bottom: 1px solid #EDE4D8; position: sticky; top: 0; z-index: 20;
}
.booking-logo { display: flex; gap: 10px; align-items: center; text-decoration: none; color: inherit; }
.booking-logo img { height: 40px; width: 40px; object-fit: cover; border-radius: 10px; }
.booking-mark {
  width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-family: "Cormorant Garamond", serif; font-size: 22px;
}
.booking-logo strong { display: block; font-size: 16px; }
.booking-logo small { display: block; font-size: 12px; opacity: .65; font-weight: 400; }
.booking-nav nav { display: flex; gap: 16px; align-items: center; font-size: 14px; }
.booking-nav nav a { text-decoration: none; color: inherit; opacity: .75; }
.booking-nav nav a.is-active, .booking-nav nav a:hover { opacity: 1; }
.booking-cta {
  background: var(--brand) !important; color: #fff !important; padding: 8px 14px; border-radius: 999px; opacity: 1 !important;
}
.booking-menu { display: none; }
.booking-nav-actions { display: flex; align-items: center; gap: 8px; }
.booking-nav-actions .theme-toggle { display: none; }
.booking-hero {
  padding: 56px 22px 40px; background:
    radial-gradient(800px 300px at 10% -10%, color-mix(in srgb, var(--brand) 28%, transparent), transparent),
    #fff;
}
.booking-hero h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.05; max-width: 16ch; }
.booking-hero p { max-width: 52ch; margin-top: 12px; opacity: .75; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; padding: 8px 0 32px; }
.service-card, .team-card {
  background: #fff; border: 1px solid #EDE4D8; border-radius: 16px; padding: 16px;
}
.service-card h3 { font-size: 18px; }
.price { color: var(--brand); font-weight: 600; }
.booking-foot { display: flex; justify-content: space-between; gap: 16px; padding: 28px 22px; border-top: 1px solid #EDE4D8; font-size: 14px; }
.muted { opacity: .55; }
.wa-float {
  position: fixed; right: 16px; bottom: 16px; background: #128C7E; color: #fff; padding: 10px 14px;
  border-radius: 999px; text-decoration: none; font-size: 13px; box-shadow: 0 10px 24px rgba(0,0,0,.15); z-index: 30;
}

/* Wizard */
.wizard { max-width: 920px; margin: 0 auto; padding: 24px 16px 64px; }
.steps { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.steps span { font-size: 12px; padding: 6px 10px; border-radius: 999px; background: #fff; border: 1px solid #EDE4D8; }
.steps span.on { background: var(--brand); color: #fff; border-color: transparent; }
.choice { display: flex; flex-direction: column; gap: 8px; }
.choice button, .slot {
  text-align: left; background: #fff; border: 1px solid #EDE4D8; border-radius: 12px; padding: 12px 14px; cursor: pointer;
}
.choice button.selected, .slot.selected { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { min-width: 84px; text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-grid button {
  border: 1px solid #EDE4D8; background: #fff; border-radius: 10px; padding: 10px 0; cursor: pointer;
}
.cal-grid button[disabled] { opacity: .35; cursor: not-allowed; }
.cal-grid button.selected { background: var(--brand); color: #fff; border-color: transparent; }

.week-grid { display: grid; grid-template-columns: 64px repeat(7, 1fr); gap: 4px; font-size: 12px; }
.week-cell { min-height: 64px; background: #fff; border-radius: 8px; border: 1px solid #EDE4D8; padding: 4px; }
.appt-chip { display: block; background: #FCE7F3; color: #9D174D; border-radius: 6px; padding: 4px 6px; margin-bottom: 4px; text-decoration: none; }

.toast-wrap { position: fixed; right: 16px; top: 16px; z-index: 90; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  pointer-events: auto; min-width: 280px; max-width: min(92vw, 380px);
  background: #1A1210; color: #fff; padding: 14px 16px 12px; border-radius: 16px;
  font-size: 14px; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start;
  box-shadow: 0 18px 40px rgba(0,0,0,.28); position: relative; overflow: hidden;
  animation: toastIn .45s cubic-bezier(.22,1,.36,1);
}
.toast.success { background: #14532D; }
.toast.error { background: #7F1D1D; }
.toast.info { background: #1E3A5F; }
.toast-icon { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.15); font-size: 14px; }
.toast-msg { margin: 0; line-height: 1.4; padding-right: 6px; }
.toast-close { background: none; border: 0; color: inherit; opacity: .7; cursor: pointer; font-size: 18px; line-height: 1; }
.toast-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: rgba(255,255,255,.35); transform-origin: left; animation: toastBar 4.2s linear forwards; }
.toast.out { animation: toastOut .28s ease forwards; }

@keyframes toastIn { from { opacity: 0; transform: translateX(24px) translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(24px); } }
@keyframes toastBar { to { transform: scaleX(0); } }

.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: none; place-items: center; z-index: 70; padding: 16px; }
.modal-back.open { display: grid; }
.modal { background: #fff; border-radius: 16px; padding: 20px; width: min(520px, 100%); max-height: 90vh; overflow: auto; color: #1A1210; }

@media (max-width: 900px) {
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 50; }
  .dash-sidebar.open { display: flex; }
  .dash-menu { display: inline-block; }
  .booking-nav nav { display: none; }
  .booking-nav nav.open {
    display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; padding: 12px 18px 18px; border-bottom: 1px solid #EDE4D8;
  }
  .booking-nav-actions .theme-toggle { display: inline-flex; }
  .booking-nav nav .theme-toggle { display: none; }
  .booking-menu { display: inline-block; background: none; border: 1px solid #EDE4D8; border-radius: 8px; padding: 4px 8px; }
}

.theme-toggle {
  width: 38px; height: 38px; border-radius: 999px; border: 1px solid rgba(0,0,0,.12);
  background: transparent; color: inherit; display: inline-grid; place-items: center; cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.theme-toggle:hover { transform: rotate(-12deg) scale(1.05); }
.theme-icon-sun { display: none; }
.theme-icon-moon { display: block; }
html.dark .theme-icon-sun { display: block; }
html.dark .theme-icon-moon { display: none; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px) scale(.96); }
  to { opacity: 1; transform: none; }
}
@keyframes orbPulse {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}
@keyframes meterIn {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.anim-card, .stat-card, .panel, .service-card, .team-card, .price-card {
  animation: riseIn .7s cubic-bezier(.22, 1, .36, 1) both;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease, border-color .35s ease, background .3s ease;
}
.stat-grid .stat-card:nth-child(1), .service-grid > *:nth-child(1), .anim-stagger > *:nth-child(1), .dash-content > .grid > .panel:nth-child(1) { animation-delay: .04s; }
.stat-grid .stat-card:nth-child(2), .service-grid > *:nth-child(2), .anim-stagger > *:nth-child(2), .dash-content > .grid > .panel:nth-child(2) { animation-delay: .12s; }
.stat-grid .stat-card:nth-child(3), .service-grid > *:nth-child(3), .anim-stagger > *:nth-child(3), .dash-content > .grid > .panel:nth-child(3) { animation-delay: .2s; }
.stat-grid .stat-card:nth-child(4), .service-grid > *:nth-child(4), .anim-stagger > *:nth-child(4), .dash-content > .grid > .panel:nth-child(4) { animation-delay: .28s; }
.stat-grid .stat-card:nth-child(5), .service-grid > *:nth-child(5), .anim-stagger > *:nth-child(5) { animation-delay: .36s; }
.stat-grid .stat-card:nth-child(6), .service-grid > *:nth-child(6), .anim-stagger > *:nth-child(6) { animation-delay: .44s; }
.dash-content > .panel { animation-delay: .16s; }
.dash-content > .stat-grid + .grid .panel:nth-child(1),
.dash-content > .stat-grid + .grid .panel:nth-child(2) { animation-delay: .32s; }
.dash-content > .stat-grid + .grid .panel:nth-child(2) { animation-delay: .4s; }

.anim-card:hover, .stat-card:hover, .panel:hover, .service-card:hover, .team-card:hover, .price-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px var(--card-glow, rgba(26, 18, 16, .12));
  border-color: color-mix(in srgb, var(--card-accent, #B76E79) 42%, transparent);
}
.choice button, .slot, .cal-grid button {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.choice button:hover, .slot:hover, .cal-grid button:hover:not([disabled]) {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

html { color-scheme: light; }
html.dark { color-scheme: dark; }

html.dark .marketing-shell { background: #12100E; color: #F5EFE8; }
html.dark .marketing-shell header { background: rgba(18,16,14,.88); border-color: #3F3A36; }
html.dark .marketing-shell #mobileNav { background: #12100E; border-color: #3F3A36; }
html.dark .bg-cream { background-color: #12100E !important; }
html.dark .text-espresso { color: #F5EFE8 !important; }
html.dark .text-stone-600, html.dark .text-stone-500, html.dark .text-stone-400 { color: #A8A29A !important; }
html.dark .bg-white { background-color: #1C1917 !important; }
html.dark .border-stone-200, html.dark .border-stone-100, html.dark .border-stone-300 { border-color: #44403C !important; }
html.dark .bg-\[\#F3EEE6\], html.dark footer { background: #1A1614; border-color: #3F3A36; }
html.dark .marketing-shell .bg-espresso { background-color: #2A211E !important; }
html.dark .marketing-shell a.px-6.py-3.rounded-full.bg-espresso,
html.dark .marketing-shell a.px-4.py-2.rounded-full.bg-espresso { background-color: #C4A574 !important; color: #1A1210 !important; }
html.dark .float-cta { background: #C4A574 !important; color: #1A1210 !important; }
html.dark a.bg-gold { color: #1A1210 !important; }

html.dark .tenant-shell {
  background:
    radial-gradient(900px 420px at 0% -8%, rgba(183, 110, 121, .12), transparent 50%),
    #141210;
  color: #F5EFE8;
}
html.dark .tenant-shell .dash-sidebar { background: #1C1917; border-color: #3F3A36; }
html.dark .tenant-shell .dash-top { background: #1C1917; border-color: #3F3A36; }
html.dark .tenant-shell .dash-nav a.is-active { background: #2A211E; }
html.dark .staff-shell {
  background:
    radial-gradient(900px 420px at 0% -8%, rgba(15, 118, 110, .12), transparent 50%),
    #101614;
  color: #E8F0EB;
}
html.dark .staff-shell .dash-sidebar { background: #17201C; border-color: #2A3A33; }
html.dark .staff-shell .dash-top { background: #17201C; border-color: #2A3A33; }
html.dark .staff-shell .dash-nav a.is-active { background: #24332C; }

html.dark .stat-card, html.dark .panel {
  background: linear-gradient(180deg, #221C1A 0%, #1C1917 100%);
  border-color: color-mix(in srgb, var(--card-accent, #C4A574) 22%, #3F3A36);
}
html.dark .super-shell .stat-card, html.dark .super-shell .panel {
  background: linear-gradient(165deg, rgba(30, 41, 59, .92) 0%, #111827 58%, #0d1524 100%);
  border-color: color-mix(in srgb, var(--card-accent) 28%, #1F2937);
}
html.dark table.data th, html.dark table.data td { border-color: rgba(255,255,255,.08); }
html.dark .field input, html.dark .field select, html.dark .field textarea {
  background: #141210; border-color: #44403C; color: #F5EFE8;
}
html.dark .btn-primary { background: #C4A574; color: #1A1210; }
html.dark .btn-ghost { border-color: rgba(255,255,255,.18); }
html.dark .theme-toggle { border-color: rgba(255,255,255,.16); }

html.dark .booking-shell { background: #141210; color: #F5EFE8; }
html.dark .booking-nav { background: #1C1917; border-color: #3F3A36; }
html.dark .booking-hero { background: radial-gradient(800px 300px at 10% -10%, color-mix(in srgb, var(--brand) 32%, transparent), transparent), #1C1917; }
html.dark .service-card, html.dark .team-card, html.dark .choice button, html.dark .slot, html.dark .cal-grid button, html.dark .week-cell, html.dark .steps span {
  background: #1C1917; border-color: #3F3A36; color: inherit;
}
html.dark .booking-foot { border-color: #3F3A36; }
html.dark .booking-nav nav.open { background: #1C1917; border-color: #3F3A36; }
html.dark .modal { background: #1C1917; color: #F5EFE8; }
html.dark .h-2.bg-stone-200, html.dark .bg-stone-200 { background-color: #44403C !important; }

html.dark .anim-card:hover, html.dark .stat-card:hover, html.dark .panel:hover, html.dark .service-card:hover, html.dark .team-card:hover, html.dark .price-card:hover {
  box-shadow: 0 24px 48px var(--card-glow, rgba(0,0,0,.45));
}

@media (prefers-reduced-motion: reduce) {
  .anim-card, .stat-card, .panel, .service-card, .team-card, .price-card, .toast, .stat-card::after, .meter-fill { animation: none; }
  .meter-fill { transform: none; }
  .anim-card:hover, .stat-card:hover, .panel:hover, .service-card:hover, .team-card:hover, .price-card:hover { transform: none; }
}
