/*
 * ══════════════════════════════════════════════════════════════════════════
 *  bookinova-theme.css  —  Bookinova dashboard theme and component overrides
 *
 *  UNIFIED KPI STYLE: All KPI cards match brch-kpi-card (Branches section)
 *    • Clean bg + border + subtle shadow — NO full-card gradients
 *    • Small colored icon square per variant
 *    • Dark text on light, light text on dark
 *    • Colored 3px top border as accent
 * ══════════════════════════════════════════════════════════════════════════
 */

/* ─────────────────────────────────────────────
   DARK MODE TOKENS
───────────────────────────────────────────── */
:root {
  --bg:        #141414;
  --bg2:       #1C1C1C;
  --bg3:       #222222;
  --bg4:       #2A2A2A;
  --border:    #2C2C2C;
  --border2:   #383838;

  --gold:      #5B85F5;
  --gold2:     #7DA0F7;
  --gold3:     #93B4F9;
  --gold-pale: rgba(91,133,245,0.12);

  --cream:     #F4F4F5;
  --cream2:    #A1A1AA;
  --mid:       #71717A;
  --light:     #52525B;

  --green:     #10B981;
  --green-bg:  rgba(16,185,129,0.12);
  --red:       #EF4444;
  --red-bg:    rgba(239,68,68,0.12);
  --blue:      #3B82F6;
  --blue-bg:   rgba(59,130,246,0.12);
  --purple:    #8B5CF6;
  --pink:      #EC4899;
  --lime:      #84CC16;
  --cyan:      #06B6D4;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 28px rgba(0,0,0,0.5);
}

/* ─────────────────────────────────────────────
   LIGHT MODE TOKENS
───────────────────────────────────────────── */
body.light-mode {
  --bg:        #F5F5F5;
  --bg2:       #FFFFFF;
  --bg3:       #F5F5F5;
  --bg4:       #EBEBEB;
  --border:    #E4E4E7;
  --border2:   #D4D4D8;

  --gold:      #5B85F5;
  --gold2:     #4A74E8;
  --gold3:     #7DA0F7;
  --gold-pale: rgba(91,133,245,0.10);

  --cream:     #18181B;
  --cream2:    #3F3F46;
  --mid:       #71717A;
  --light:     #A1A1AA;

  --green:     #10B981;
  --green-bg:  #D1FAE5;
  --red:       #EF4444;
  --red-bg:    #FEE2E2;
  --blue:      #3B82F6;
  --blue-bg:   #DBEAFE;
  --purple:    #8B5CF6;
  --purple-bg: #EDE9FE;
  --pink:      #EC4899;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.09);
}

/* ─────────────────────────────────────────────
   BODY & LAYOUT
───────────────────────────────────────────── */
/* ─── Typography normalization ─── */
*, *::before, *::after { font-family: 'Inter', sans-serif; box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;       /* 14px base */
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { font-family: 'Inter', sans-serif; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
p, span, td, th, label, input, select, textarea, button { font-family: 'Inter', sans-serif !important; }

.main {
  background:
    radial-gradient(circle at 85% 12%, rgba(30,20,90,.35), transparent 30%),
    radial-gradient(circle at 2% 75%, rgba(0,60,40,.28), transparent 24%),
    var(--bg) !important;
}
body.light-mode { background: #fbfdff; color: #18181B; }
body.light-mode .main {
  background:
    radial-gradient(circle at 85% 12%, rgba(219,226,255,.48), transparent 30%),
    radial-gradient(circle at 2% 75%, rgba(219,251,243,.55), transparent 24%),
    #fbfdff !important;
}

/* ─────────────────────────────────────────────
   SIDEBAR
───────────────────────────────────────────── */
.sidebar { background: #000000 !important; border-right: 1px solid var(--border) !important; box-shadow: none !important; }
body.light-mode .sidebar { background: #FFFFFF !important; border-right: 1px solid #E4E4E7 !important; }

/* ── Align topbar bottom border with sidebar-logo bottom border ── */
.topbar { min-height: 61px !important; }
body.light-mode .sidebar-logo { border-bottom: none !important; }

#sidebarGreetingText { color: var(--cream) !important; }
#sidebarGreetingDate { color: var(--mid) !important; }

.sidebar .nav-section { color: rgba(255,255,255,0.35) !important; letter-spacing: 0.08em !important; font-size: 0.65rem !important; font-weight: 700 !important; text-transform: uppercase !important; padding: 0.7rem 16px 0.25rem !important; margin-top: 0 !important; }

.sidebar .nav-item { position: relative; color: var(--cream2) !important; border-radius: 8px !important; border-left: none !important; margin: 1px 8px !important; padding: 7px 12px !important; font-size: 0.84rem !important; font-weight: 500 !important; transition: background 0.15s, color 0.15s !important; }
.sidebar .nav-item.active::before { content: ''; position: absolute; left: -8px; top: 4px; bottom: 4px; width: 3px; border-radius: 0 3px 3px 0; background: #0D9488; }
.sidebar .nav-item:hover:not(.active) { background: rgba(255,255,255,0.08) !important; color: #FFFFFF !important; }
.sidebar .nav-item:hover:not(.active) svg, .sidebar .nav-item:hover:not(.active) i { color: #FFFFFF !important; }
.sidebar .nav-item.active { background: rgba(255,255,255,0.1) !important; color: #FFFFFF !important; border-left: none !important; font-weight: 700 !important; }
.sidebar .nav-item.active svg, .sidebar .nav-item.active i { color: #FFFFFF !important; }

body.light-mode .sidebar .nav-item { color: #71717A !important; }
body.light-mode .sidebar .nav-item.active { background: #F0FDFA !important; color: #0D9488 !important; border-left: none !important; font-weight: 700 !important; }
body.light-mode .sidebar .nav-item.active svg, body.light-mode .sidebar .nav-item.active i { color: #0D9488 !important; }
body.light-mode .sidebar .nav-item:hover:not(.active) { background: rgba(13,148,136,0.06) !important; color: #0F766E !important; }
body.light-mode .sidebar .nav-item:hover:not(.active) svg, body.light-mode .sidebar .nav-item:hover:not(.active) i { color: #0F766E !important; }

.sidebar-footer { border-top: 1px solid var(--border) !important; }
body.light-mode .sidebar-footer { border-top: 1px solid #E4E4E7 !important; }

.salon-badge { background: var(--gold-pale) !important; border: 1px solid rgba(91,133,245,0.2) !important; border-radius: 10px !important; }
.salon-badge-name { color: var(--gold) !important; }
.salon-badge-sub  { color: var(--mid) !important; }
body.light-mode .salon-badge { background: rgba(91,133,245,0.08) !important; }

.logo-text { color: var(--cream) !important; }
.logo-text span { color: var(--gold) !important; }
.logo-sub { color: var(--mid) !important; }

/* ─────────────────────────────────────────────
   TOPBAR
───────────────────────────────────────────── */
/* Bell badge: numeric count pill (styling lives on the inline element) */

/* Notification side panel */
#notifDropdown { font-family: 'Inter', sans-serif; }
body.light-mode #notifDropdown {
  background: #F4F4F5;
  border-color: #E4E4E7;
  box-shadow: -16px 0 48px rgba(0,0,0,0.12);
}
#notifDropList::-webkit-scrollbar { width: 4px; }
#notifDropList::-webkit-scrollbar-track { background: transparent; }
#notifDropList::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }
/* Ensure last tab isn't clipped by the scroll container */
#notifCatTabs::after { content: ''; display: block; min-width: 1rem; flex-shrink: 0; }
/* Category tab: inactive hover */
#notifCatTabs button:not(.active-cat):hover { background: var(--bg4) !important; color: var(--cream) !important; }
/* Category tab: active — light mode = brand teal pill + white text */
#notifCatTabs button.active-cat { background: #0D9488 !important; color: #ffffff !important; }
/* Category tab: active — dark mode = white pill + black text */
body:not(.light-mode) #notifCatTabs button.active-cat { background: #FFFFFF !important; color: #18181B !important; }
/* Full notifications page filter tabs */
[id^="notifTab"] { outline: none !important; }
[id^="notifTab"]:hover:not([style*="18181B"]) { background: var(--bg3) !important; color: var(--cream) !important; }

.topbar { background: var(--bg2) !important; border-bottom: 1px solid var(--border) !important; box-shadow: none !important; }
body.light-mode .topbar { background: #FFFFFF !important; border-bottom: 1px solid #E4E4E7 !important; }
.topbar-title { color: var(--cream) !important; }
.topbar-title span { color: var(--gold) !important; }
body.light-mode .topbar-title { color: #18181B !important; }
body.light-mode .topbar-title span { color: #5B85F5 !important; font-weight: 600 !important; }
body.light-mode .nav-breadcrumb { background: #FFFFFF !important; border-bottom: 1px solid #E4E4E7 !important; color: #71717A !important; }
body.light-mode .nav-breadcrumb span { color: #18181B !important; }

/* ─────────────────────────────────────────────
   ██████████████████████████████████████████
   UNIFIED KPI CARD SYSTEM
   All types match brch-kpi-card exactly:
   clean bg, colored top border, small icon square
   ██████████████████████████████████████████
───────────────────────────────────────────── */

/* ── Base rule for all KPI card types ── */
.dash-kpi-card,
.appt-kpi-card,
.pkg-kpi,
.report-kpi-card {
  background: var(--bg2) !important;
  border: 1px solid var(--border) !important;
  border-radius: 16px !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.14), 0 1px 3px rgba(0,0,0,0.08) !important;
  position: relative;
  overflow: hidden;
}

body.light-mode .dash-kpi-card,
body.light-mode .appt-kpi-card,
body.light-mode .pkg-kpi,
body.light-mode .report-kpi-card,
body.light-mode .kpi-card {
  border: 1px solid #E4E4E7 !important;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 4px 12px rgba(15,23,42,0.06), 0 12px 28px rgba(15,23,42,0.05) !important;
}

body.light-mode .dash-kpi-card:hover,
body.light-mode .appt-kpi-card:hover,
body.light-mode .pkg-kpi:hover,
body.light-mode .report-kpi-card:hover,
body.light-mode .kpi-card:hover {
  border-color: #D4D4D8 !important;
  box-shadow: 0 2px 4px rgba(15,23,42,0.06), 0 8px 20px rgba(15,23,42,0.08), 0 20px 40px rgba(15,23,42,0.07) !important;
}

/* Remove pseudo-element overlays / shimmer */
.dash-kpi-card::before, .dash-kpi-card::after,
.appt-kpi-card::before, .appt-kpi-card::after,
.pkg-kpi::before, .pkg-kpi::after,
.report-kpi-card::before, .report-kpi-card::after { display: none !important; }

/* Hover: lift + background brighten + colorful glow per variant */
.dash-kpi-card:hover,
.appt-kpi-card:hover,
.pkg-kpi:hover,
.report-kpi-card:hover {
  transform: translateY(-2px) !important;
  background: var(--bg3) !important;
}

/* ── Colorful hover shadows — dash-kpi variants (shadow only, no bg change) ── */
.dash-kpi-orange:hover { box-shadow: 0 8px 32px rgba(249,115,22,0.40),  0 2px 8px rgba(0,0,0,0.12) !important; }
.dash-kpi-teal:hover   { box-shadow: 0 8px 32px rgba(20,184,166,0.40),  0 2px 8px rgba(0,0,0,0.12) !important; }
.dash-kpi-blue:hover   { box-shadow: 0 8px 32px rgba(59,130,246,0.40),  0 2px 8px rgba(0,0,0,0.12) !important; }
.dash-kpi-yellow:hover { box-shadow: 0 8px 32px rgba(245,158,11,0.40),  0 2px 8px rgba(0,0,0,0.12) !important; }
.dash-kpi-purple:hover { box-shadow: 0 8px 32px rgba(139,92,246,0.40),  0 2px 8px rgba(0,0,0,0.12) !important; }
.dash-kpi-green:hover  { box-shadow: 0 8px 32px rgba(16,185,129,0.40),  0 2px 8px rgba(0,0,0,0.12) !important; }
.dash-kpi-indigo:hover { box-shadow: 0 8px 32px rgba(99,102,241,0.40),  0 2px 8px rgba(0,0,0,0.12) !important; }
.dash-kpi-rose:hover   { box-shadow: 0 8px 32px rgba(244,63,94,0.40),   0 2px 8px rgba(0,0,0,0.12) !important; }

/* ── Colorful hover shadows — appt-kpi-card variants (shadow only, no bg change) ── */
.appt-kpi-card.blue:hover        { box-shadow: 0 8px 32px rgba(59,130,246,0.38), 0 2px 8px rgba(0,0,0,0.10) !important; }
.appt-kpi-card.green:hover       { box-shadow: 0 8px 32px rgba(16,185,129,0.38), 0 2px 8px rgba(0,0,0,0.10) !important; }
.appt-kpi-card.red:hover         { box-shadow: 0 8px 32px rgba(239,68,68,0.38),  0 2px 8px rgba(0,0,0,0.10) !important; }
.appt-kpi-card.gold:hover        { box-shadow: 0 8px 32px rgba(245,158,11,0.38), 0 2px 8px rgba(0,0,0,0.10) !important; }
.appt-kpi-card.purple:hover      { box-shadow: 0 8px 32px rgba(139,92,246,0.38), 0 2px 8px rgba(0,0,0,0.10) !important; }
.appt-kpi-card.profit-pos:hover  { box-shadow: 0 8px 32px rgba(16,185,129,0.38), 0 2px 8px rgba(0,0,0,0.10) !important; }
.appt-kpi-card.profit-neg:hover  { box-shadow: 0 8px 32px rgba(239,68,68,0.38),  0 2px 8px rgba(0,0,0,0.10) !important; }
.appt-kpi-card:not(.blue):not(.green):not(.red):not(.gold):not(.purple):not(.profit-pos):not(.profit-neg):hover {
  box-shadow: 0 8px 32px rgba(91,133,245,0.38), 0 2px 8px rgba(0,0,0,0.10) !important;
}

/* ── report-kpi-card: use --card-glow CSS var already set inline per card ── */
.report-kpi-card:hover {
  box-shadow: 0 8px 32px var(--card-glow, rgba(91,133,245,0.38)), 0 2px 8px rgba(0,0,0,0.12) !important;
}

/* ── Colored top border by variant ── */

/* dash-kpi */
.dash-kpi-orange { border-top: 3px solid #F97316 !important; }
.dash-kpi-teal   { border-top: 3px solid #14B8A6 !important; }
.dash-kpi-blue   { border-top: 3px solid #3B82F6 !important; }
.dash-kpi-yellow { border-top: 3px solid #F59E0B !important; }
.dash-kpi-purple { border-top: 3px solid #8B5CF6 !important; }
.dash-kpi-green  { border-top: 3px solid #10B981 !important; }
.dash-kpi-indigo { border-top: 3px solid #6366F1 !important; }
.dash-kpi-rose   { border-top: 3px solid #F43F5E !important; }

/* appt-kpi-card */
.appt-kpi-card.blue   { border-top: 3px solid #3B82F6 !important; }
.appt-kpi-card.green  { border-top: 3px solid #10B981 !important; }
.appt-kpi-card.red    { border-top: 3px solid #EF4444 !important; }
.appt-kpi-card.gold   { border-top: 3px solid #F59E0B !important; }
.appt-kpi-card.purple { border-top: 3px solid #8B5CF6 !important; }
.appt-kpi-card.profit-pos { border-top: 3px solid #10B981 !important; }
.appt-kpi-card.profit-neg { border-top: 3px solid #EF4444 !important; }
/* Marketing cards with inline gradient bg */
.appt-kpi-card:not(.blue):not(.green):not(.red):not(.gold):not(.purple):not(.profit-pos):not(.profit-neg) {
  border-top: 3px solid #5B85F5 !important;
}

/* pkg-kpi */
.pkg-kpi-orange { border-top: 3px solid #F97316 !important; }
.pkg-kpi-teal   { border-top: 3px solid #14B8A6 !important; }
.pkg-kpi-blue   { border-top: 3px solid #3B82F6 !important; }

/* ── pkg-kpi hover shadows (shadow only, same pattern as branches) ── */
.pkg-kpi-orange:hover { box-shadow: 0 8px 32px rgba(249,115,22,0.40),  0 2px 8px rgba(0,0,0,0.12) !important; }
.pkg-kpi-teal:hover   { box-shadow: 0 8px 32px rgba(20,184,166,0.40),  0 2px 8px rgba(0,0,0,0.12) !important; }
.pkg-kpi-blue:hover   { box-shadow: 0 8px 32px rgba(59,130,246,0.40),  0 2px 8px rgba(0,0,0,0.12) !important; }

/* ── dash-kpi-icon → small colored square ── */
/* (matches brch-kpi-icon visual) */
.dash-kpi-icon {
  width: 38px !important;
  height: 38px !important;
  border-radius: 11px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  opacity: 1 !important;
  margin-top: 0 !important;
  color: #fff !important;
}

.dash-kpi-orange .dash-kpi-icon {
  background: linear-gradient(135deg, #F97316 0%, #FB923C 100%) !important;
  box-shadow: 0 4px 14px rgba(249,115,22,0.38) !important;
}
.dash-kpi-teal .dash-kpi-icon {
  background: linear-gradient(135deg, #0EC9BC 0%, #14B8A6 100%) !important;
  box-shadow: 0 4px 14px rgba(14,201,188,0.38) !important;
}
.dash-kpi-blue .dash-kpi-icon {
  background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%) !important;
  box-shadow: 0 4px 14px rgba(59,130,246,0.38) !important;
}
.dash-kpi-yellow .dash-kpi-icon {
  background: linear-gradient(135deg, #F59E0B 0%, #FCD34D 100%) !important;
  box-shadow: 0 4px 14px rgba(245,158,11,0.38) !important;
}
.dash-kpi-purple .dash-kpi-icon {
  background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%) !important;
  box-shadow: 0 4px 14px rgba(139,92,246,0.38) !important;
}
.dash-kpi-green .dash-kpi-icon {
  background: linear-gradient(135deg, #10B981 0%, #34D399 100%) !important;
  box-shadow: 0 4px 14px rgba(16,185,129,0.38) !important;
}
.dash-kpi-indigo .dash-kpi-icon {
  background: linear-gradient(135deg, #6366F1 0%, #818CF8 100%) !important;
  box-shadow: 0 4px 14px rgba(99,102,241,0.38) !important;
}
.dash-kpi-rose .dash-kpi-icon {
  background: linear-gradient(135deg, #F43F5E 0%, #FB7185 100%) !important;
  box-shadow: 0 4px 14px rgba(244,63,94,0.38) !important;
}

/* ── dash-kpi-top: icon right, label left ── */
.dash-kpi-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 0.9rem !important;
}

/* ── dash-kpi text colors ── */
.dash-kpi-label {
  color: var(--mid) !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}
.dash-kpi-value {
  color: var(--cream) !important;
  font-size: 1.85rem !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 0.35rem !important;
}
.dash-kpi-sub   { color: var(--cream2) !important; font-size: 0.75rem !important; }
.dash-kpi-trend { color: var(--cream2) !important; font-size: 0.75rem !important; font-weight: 600 !important; }

/* Trend positive/negative coloring */
.dash-kpi-trend[id*="Trend"] { color: #10B981 !important; }

/* ── appt-kpi-badge → clean icon square (like brch-kpi-icon) ── */
.appt-kpi-badge {
  width: 38px !important;
  height: 38px !important;
  border-radius: 11px !important;
  box-shadow: none !important;
  flex-shrink: 0 !important;
}

.appt-kpi-badge--blue   {
  background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%) !important;
  box-shadow: 0 4px 14px rgba(59,130,246,0.35) !important;
}
.appt-kpi-badge--gold   {
  background: linear-gradient(135deg, #F59E0B 0%, #FCD34D 100%) !important;
  box-shadow: 0 4px 14px rgba(245,158,11,0.35) !important;
}
.appt-kpi-badge--green  {
  background: linear-gradient(135deg, #10B981 0%, #34D399 100%) !important;
  box-shadow: 0 4px 14px rgba(16,185,129,0.35) !important;
}
.appt-kpi-badge--red    {
  background: linear-gradient(135deg, #EF4444 0%, #F87171 100%) !important;
  box-shadow: 0 4px 14px rgba(239,68,68,0.35) !important;
}
.appt-kpi-badge--purple {
  background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%) !important;
  box-shadow: 0 4px 14px rgba(139,92,246,0.35) !important;
}
.appt-kpi-badge--white  {
  background: linear-gradient(135deg, #71717A 0%, #A1A1AA 100%) !important;
  box-shadow: 0 4px 14px rgba(113,113,122,0.25) !important;
}

/* appt-kpi-card text — CSS-overridable parts */
.appt-kpi-card .stat-label { color: var(--mid) !important; }
.appt-kpi-card .stat-value { color: var(--cream) !important; }

/* ── Fix rgba(255,255,255,...) inline text inside KPI cards ──────
   These have NO !important on inline, so CSS attribute selectors work
   and auto-revert when light-mode class is removed ── */
body.light-mode .appt-kpi-card [style*="color:rgba(255"],
body.light-mode .appt-kpi-card [style*="color: rgba(255"],
body.light-mode .dash-kpi-card [style*="color:rgba(255"],
body.light-mode .dash-kpi-card [style*="color: rgba(255"],
body.light-mode .pkg-kpi [style*="color:rgba(255"],
body.light-mode .pkg-kpi [style*="color: rgba(255"],
body.light-mode .stat-card [style*="color:rgba(255"],
body.light-mode .stat-card [style*="color: rgba(255"],
body.light-mode .report-kpi-card [style*="color:rgba(255"],
body.light-mode .report-kpi-card [style*="color: rgba(255"] { color: #71717A !important; }

/* ── pkg-kpi text colors ── */
.pkg-kpi-label { color: var(--mid) !important; font-size: 0.7rem !important; font-weight: 600 !important; letter-spacing: 0.06em !important; }
.pkg-kpi-value { color: var(--cream) !important; }
.pkg-kpi-sub   { color: var(--cream2) !important; }
.pkg-kpi-icon  { opacity: 0.15 !important; }

/* ── Light mode KPI adjustments ── */
body.light-mode .dash-kpi-card,
body.light-mode .appt-kpi-card,
body.light-mode .pkg-kpi,
body.light-mode .report-kpi-card {
  background: #FFFFFF !important;
  border: 1px solid #E4E4E7 !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04) !important;
}
body.light-mode .dash-kpi-card:hover,
body.light-mode .appt-kpi-card:hover,
body.light-mode .pkg-kpi:hover,
body.light-mode .report-kpi-card:hover {
  background: #FAFAFA !important;
}
/* Light mode colorful hover shadows */
/* (light-mode dash-kpi hover already defined below) */
body.light-mode .appt-kpi-card.blue:hover   { box-shadow: 0 8px 28px rgba(59,130,246,0.22),  0 2px 8px rgba(0,0,0,0.06) !important; }
body.light-mode .appt-kpi-card.green:hover  { box-shadow: 0 8px 28px rgba(16,185,129,0.22),  0 2px 8px rgba(0,0,0,0.06) !important; }
body.light-mode .appt-kpi-card.red:hover    { box-shadow: 0 8px 28px rgba(239,68,68,0.22),   0 2px 8px rgba(0,0,0,0.06) !important; }
body.light-mode .appt-kpi-card.gold:hover   { box-shadow: 0 8px 28px rgba(245,158,11,0.22),  0 2px 8px rgba(0,0,0,0.06) !important; }
body.light-mode .appt-kpi-card.purple:hover { box-shadow: 0 8px 28px rgba(139,92,246,0.22),  0 2px 8px rgba(0,0,0,0.06) !important; }
body.light-mode .appt-kpi-card:not(.blue):not(.green):not(.red):not(.gold):not(.purple):not(.profit-pos):not(.profit-neg):hover {
  box-shadow: 0 8px 28px rgba(91,133,245,0.20), 0 2px 8px rgba(0,0,0,0.06) !important;
}
body.light-mode .report-kpi-card:hover {
  box-shadow: 0 8px 28px var(--card-glow, rgba(91,133,245,0.20)), 0 2px 8px rgba(0,0,0,0.06) !important;
}

/* ── Light mode border-top: specificity (0,2,0) beats base border shorthand ── */
body.light-mode .dash-kpi-orange { border-top: 3px solid #F97316 !important; }
body.light-mode .dash-kpi-teal   { border-top: 3px solid #14B8A6 !important; }
body.light-mode .dash-kpi-blue   { border-top: 3px solid #3B82F6 !important; }
body.light-mode .dash-kpi-yellow { border-top: 3px solid #F59E0B !important; }
body.light-mode .dash-kpi-purple { border-top: 3px solid #8B5CF6 !important; }
body.light-mode .dash-kpi-green  { border-top: 3px solid #10B981 !important; }
body.light-mode .dash-kpi-indigo { border-top: 3px solid #6366F1 !important; }
body.light-mode .dash-kpi-rose   { border-top: 3px solid #F43F5E !important; }
body.light-mode .appt-kpi-card.blue      { border-top: 3px solid #3B82F6 !important; }
body.light-mode .appt-kpi-card.green     { border-top: 3px solid #10B981 !important; }
body.light-mode .appt-kpi-card.red       { border-top: 3px solid #EF4444 !important; }
body.light-mode .appt-kpi-card.gold      { border-top: 3px solid #F59E0B !important; }
body.light-mode .appt-kpi-card.purple    { border-top: 3px solid #8B5CF6 !important; }
body.light-mode .appt-kpi-card.profit-pos { border-top: 3px solid #10B981 !important; }
body.light-mode .appt-kpi-card.profit-neg { border-top: 3px solid #EF4444 !important; }
body.light-mode .appt-kpi-card:not(.blue):not(.green):not(.red):not(.gold):not(.purple):not(.profit-pos):not(.profit-neg) { border-top: 3px solid #5B85F5 !important; }
body.light-mode .pkg-kpi-orange { border-top: 3px solid #F97316 !important; }
body.light-mode .pkg-kpi-teal   { border-top: 3px solid #14B8A6 !important; }
body.light-mode .pkg-kpi-blue   { border-top: 3px solid #3B82F6 !important; }

/* ── pkg-kpi light-mode hover shadows ── */
body.light-mode .pkg-kpi-orange:hover { box-shadow: 0 8px 24px rgba(249,115,22,0.22),  0 2px 8px rgba(0,0,0,0.06) !important; }
body.light-mode .pkg-kpi-teal:hover   { box-shadow: 0 8px 24px rgba(20,184,166,0.22),  0 2px 8px rgba(0,0,0,0.06) !important; }
body.light-mode .pkg-kpi-blue:hover   { box-shadow: 0 8px 24px rgba(59,130,246,0.22),  0 2px 8px rgba(0,0,0,0.06) !important; }

/* Fix white text inside report cards (no !important on inline styles) */
body.light-mode .report-kpi-card [style*="color:#fff"],
body.light-mode .report-kpi-card [style*="color: #fff"] { color: #18181B !important; }
body.light-mode .report-kpi-card [style*="color:rgba(255"],
body.light-mode .report-kpi-card [style*="color: rgba(255"] { color: #71717A !important; }

body.light-mode .dash-kpi-label { color: #71717A !important; }
body.light-mode .dash-kpi-value { color: #18181B !important; }
body.light-mode .dash-kpi-sub   { color: #71717A !important; }
body.light-mode .dash-kpi-trend { color: #71717A !important; }
body.light-mode .pkg-kpi-label  { color: #71717A !important; }
body.light-mode .pkg-kpi-value  { color: #18181B !important; }
body.light-mode .pkg-kpi-sub    { color: #A1A1AA !important; }

/* Light mode hover glow (shadow only, no bg change) */
body.light-mode .dash-kpi-orange:hover { box-shadow: 0 8px 24px rgba(249,115,22,0.22),  0 2px 8px rgba(0,0,0,0.06) !important; }
body.light-mode .dash-kpi-teal:hover   { box-shadow: 0 8px 24px rgba(20,184,166,0.22),  0 2px 8px rgba(0,0,0,0.06) !important; }
body.light-mode .dash-kpi-blue:hover   { box-shadow: 0 8px 24px rgba(59,130,246,0.22),  0 2px 8px rgba(0,0,0,0.06) !important; }
body.light-mode .dash-kpi-yellow:hover { box-shadow: 0 8px 24px rgba(245,158,11,0.22),  0 2px 8px rgba(0,0,0,0.06) !important; }
body.light-mode .dash-kpi-purple:hover { box-shadow: 0 8px 24px rgba(139,92,246,0.22),  0 2px 8px rgba(0,0,0,0.06) !important; }
body.light-mode .dash-kpi-green:hover  { box-shadow: 0 8px 24px rgba(16,185,129,0.22),  0 2px 8px rgba(0,0,0,0.06) !important; }
body.light-mode .dash-kpi-indigo:hover { box-shadow: 0 8px 24px rgba(99,102,241,0.22),  0 2px 8px rgba(0,0,0,0.06) !important; }
body.light-mode .dash-kpi-rose:hover   { box-shadow: 0 8px 24px rgba(244,63,94,0.22),   0 2px 8px rgba(0,0,0,0.06) !important; }
/* (light-mode appt hover already defined above — these are superseded) */

/* ─────────────────────────────────────────────
   FLAT STAT-CARD (non KPI)
───────────────────────────────────────────── */
.stat-card:not(.appt-kpi-card) {
  background: var(--bg2) !important;
  border: 1px solid var(--border) !important;
  box-shadow: none !important;
  border-radius: 12px !important;
  transition: background 180ms ease !important;
}
.stat-card:not(.appt-kpi-card)::before { display: none !important; }

/* dark-mode hover — glow shadow under the card */
.stat-card:not(.appt-kpi-card):not(.green):not(.blue):not(.red):not(.yellow):not(.gold):hover { box-shadow: 0 8px 28px rgba(91,133,245,0.32),  0 2px 8px rgba(0,0,0,0.12) !important; }
.stat-card.green:not(.appt-kpi-card):hover  { box-shadow: 0 8px 28px rgba(16,185,129,0.32),  0 2px 8px rgba(0,0,0,0.12) !important; }
.stat-card.blue:not(.appt-kpi-card):hover   { box-shadow: 0 8px 28px rgba(59,130,246,0.32),  0 2px 8px rgba(0,0,0,0.12) !important; }
.stat-card.gold:not(.appt-kpi-card):hover   { box-shadow: 0 8px 28px rgba(245,158,11,0.32),  0 2px 8px rgba(0,0,0,0.12) !important; }
.stat-card.red:not(.appt-kpi-card):hover    { box-shadow: 0 8px 28px rgba(239,68,68,0.32),   0 2px 8px rgba(0,0,0,0.12) !important; }

body.light-mode .stat-card:not(.appt-kpi-card) { background: #FFFFFF !important; border: 1px solid #E4E4E7 !important; box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important; }
/* light-mode hover — glow shadow under the card */
body.light-mode .stat-card:not(.appt-kpi-card):not(.green):not(.blue):not(.red):not(.yellow):not(.gold):hover { box-shadow: 0 8px 24px rgba(91,133,245,0.20),  0 2px 8px rgba(0,0,0,0.06) !important; }
body.light-mode .stat-card.green:not(.appt-kpi-card):hover  { box-shadow: 0 8px 24px rgba(16,185,129,0.22),  0 2px 8px rgba(0,0,0,0.06) !important; }
body.light-mode .stat-card.blue:not(.appt-kpi-card):hover   { box-shadow: 0 8px 24px rgba(59,130,246,0.22),  0 2px 8px rgba(0,0,0,0.06) !important; }
body.light-mode .stat-card.gold:not(.appt-kpi-card):hover   { box-shadow: 0 8px 24px rgba(245,158,11,0.22),  0 2px 8px rgba(0,0,0,0.06) !important; }
body.light-mode .stat-card.red:not(.appt-kpi-card):hover    { box-shadow: 0 8px 24px rgba(239,68,68,0.22),   0 2px 8px rgba(0,0,0,0.06) !important; }

/* Fix light-mode text: bookinova.css forces white on Cash/Gold via high-specificity :not() chains.
   Override using ID scope (#payPanel-payments) which beats class chains. */
#payPanel-payments .stat-card:not(.appt-kpi-card) .stat-label { color: rgba(255,255,255,0.65) !important; }
#payPanel-payments .stat-card:not(.appt-kpi-card) .stat-value { color: #FFFFFF !important; }
#payPanel-payments .stat-card:not(.appt-kpi-card) .stat-sub,
#payPanel-payments .stat-card:not(.appt-kpi-card) .stat-trend { color: rgba(255,255,255,0.55) !important; }
body.light-mode #payPanel-payments .stat-card:not(.appt-kpi-card) .stat-label { color: #4B5563 !important; }
body.light-mode #payPanel-payments .stat-card:not(.appt-kpi-card) .stat-value { color: #111827 !important; }
body.light-mode #payPanel-payments .stat-card:not(.appt-kpi-card) .stat-sub,
body.light-mode #payPanel-payments .stat-card:not(.appt-kpi-card) .stat-trend { color: #6B7280 !important; }

body.light-mode .stat-card:not(.appt-kpi-card) .stat-label { color: #71717A !important; }
body.light-mode .stat-card:not(.appt-kpi-card) .stat-value { color: #18181B !important; }
body.light-mode .stat-card:not(.appt-kpi-card) .stat-trend,
body.light-mode .stat-card:not(.appt-kpi-card) .stat-sub   { color: #71717A !important; }

.stat-card.green:not(.appt-kpi-card) { border-left: 3px solid #10B981 !important; }
.stat-card.blue:not(.appt-kpi-card)  { border-left: 3px solid #3B82F6 !important; }
.stat-card.red:not(.appt-kpi-card)   { border-left: 3px solid #EF4444 !important; }
.stat-card.gold:not(.appt-kpi-card)  { border-left: 3px solid #F59E0B !important; }
.stat-card:not(.green):not(.blue):not(.red):not(.yellow):not(.gold):not(.appt-kpi-card) { border-left: 3px solid #5B85F5 !important; }

body.light-mode .stat-card.profit-pos:not(.appt-kpi-card) { background: #FFFFFF !important; border-left: 3px solid #10B981 !important; }
body.light-mode .stat-card.profit-neg:not(.appt-kpi-card) { background: #FFFFFF !important; border-left: 3px solid #EF4444 !important; }
body.light-mode .stat-card.profit-pos:not(.appt-kpi-card) .stat-value,
body.light-mode .stat-card.profit-neg:not(.appt-kpi-card) .stat-value { color: #18181B !important; }

/* ─────────────────────────────────────────────
   REGULAR CARDS
───────────────────────────────────────────── */
.card { background: var(--bg2) !important; border: 1px solid var(--border) !important; box-shadow: none !important; border-radius: 12px !important; }
.card-title { color: var(--cream) !important; border-bottom: 1px solid var(--border) !important; font-size: 0.9rem !important; font-weight: 600 !important; letter-spacing: -0.01em !important; }
.dash-card  { background: var(--bg2) !important; border: 1px solid var(--border) !important; box-shadow: none !important; }

body.light-mode .card { background: #FFFFFF !important; border: 1px solid #E4E4E7 !important; box-shadow: 0 1px 4px rgba(0,0,0,0.05) !important; }
body.light-mode .card:hover { }
body.light-mode .card-title { color: #18181B !important; border-bottom: 1px solid #F4F4F5 !important; }
body.light-mode .dash-card  { background: #FFFFFF !important; border: 1px solid #E4E4E7 !important; box-shadow: 0 1px 4px rgba(0,0,0,0.05) !important; }

/* ─────────────────────────────────────────────
   STAFF CARDS (scard)
───────────────────────────────────────────── */

/* Commission badge */
.scard-comm { background: rgba(255,255,255,0.06) !important; color: #C0C0D0 !important; border: 1px solid rgba(180,180,200,0.25) !important; box-shadow: 0 1px 4px rgba(0,0,0,0.15) !important; }
body.light-mode .scard-comm { background: #ffffff !important; color: #3F3F46 !important; border: 1px solid rgba(180,180,200,0.45) !important; box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important; }

/* Hide the auto-generated DRP icon inside customer filter — Custom chip is the trigger */
#custDateAnchor .drp-btn--icon { display: none !important; }

/* Day chips — dark mode */
.scard-day--on { background: rgba(255,255,255,0.06) !important; border-color: rgba(200,200,220,0.25) !important; color: #C0C0D0 !important; box-shadow: 0 1px 4px rgba(0,0,0,0.15) !important; }
.scard-day--do { background: rgba(255,255,255,0.03) !important; border-color: rgba(180,180,200,0.12) !important; color: #484858 !important; text-decoration: line-through !important; box-shadow: none !important; }
/* Day chips — light mode */
body.light-mode .scard-day--on { background: #ffffff !important; border-color: rgba(180,180,200,0.55) !important; color: #3F3F46 !important; box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important; text-decoration: none !important; }
body.light-mode .scard-day--do { background: #F0F0F3 !important; border-color: #DDDDE8 !important; color: #B0B0C0 !important; text-decoration: line-through !important; box-shadow: none !important; }

/* Action buttons — glass rose pink */
.scard-btn-edit {
  background: linear-gradient(135deg, rgba(212,96,122,0.90) 0%, rgba(185,55,80,0.88) 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.28) !important;
  box-shadow: 0 2px 8px rgba(212,96,122,0.20), inset 0 1px 0 rgba(255,255,255,0.22) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-radius: 12px !important;
}
.scard-btn-edit:hover { filter: brightness(1.08) !important; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(212,96,122,0.28), inset 0 1px 0 rgba(255,255,255,0.22) !important; }
.scard-btn-remove {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.45) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important;
  border-radius: 12px !important;
}
.scard-btn-remove:hover { background: rgba(255,255,255,0.08) !important; box-shadow: 0 4px 12px rgba(0,0,0,0.16) !important; transform: translateY(-1px); }
body.light-mode .scard-btn-edit {
  background: linear-gradient(135deg, rgba(212,96,122,0.88) 0%, rgba(185,55,80,0.85) 100%) !important;
  border: 1px solid rgba(255,255,255,0.35) !important;
  box-shadow: 0 2px 8px rgba(212,96,122,0.18), inset 0 1px 0 rgba(255,255,255,0.30) !important;
}
body.light-mode .scard-btn-remove {
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,0.75) !important;
  color: #111111 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}
body.light-mode .scard-btn-remove:hover { background: #f5f5f5 !important; box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important; }

/* Light mode card */
body.light-mode .scard { background: #FFFFFF !important; border: 1px solid #F0E8EC !important; box-shadow: 0 4px 20px rgba(0,0,0,0.07) !important; }
body.light-mode .scard:hover { box-shadow: 0 8px 28px rgba(212,96,122,0.12) !important; }
body.light-mode .scard-name    { color: #18181B !important; }
body.light-mode .scard-role    { color: #71717A !important; }
body.light-mode .scard-phone   { color: #A1A1AA !important; }
body.light-mode .scard-day:not(.scard-day--on):not(.scard-day--do) { background: transparent !important; border-color: #E4E4E7 !important; color: #888 !important; }
body.light-mode .scard-skill   { background: #F5F5F8 !important; border-color: #E4E4E7 !important; color: #3F3F46 !important; }
body.light-mode .scard-metrics { border-top: 1px solid #F0EAED !important; }
body.light-mode .scard-metric + .scard-metric { border-left: 1px solid #F0EAED !important; }
body.light-mode .scard-metric-val   { color: #18181B !important; }
body.light-mode .scard-metric-label { color: #A1A1AA !important; }
body.light-mode .scard-actions { border-top: 1px solid #F0EAED !important; }
body.light-mode .scard-online  { border-color: #FFFFFF !important; }

/* ─────────────────────────────────────────────
   TOGGLE BUTTONS
───────────────────────────────────────────── */
.settings-toggle-track { background: var(--bg4) !important; border: 1px solid var(--border2) !important; }
.settings-toggle-track.on { background: #ffffff !important; border-color: #ffffff !important; }
.settings-toggle-thumb { background: #71717A !important; }
.settings-toggle-track.on .settings-toggle-thumb { background: #111111 !important; }

body.light-mode .settings-toggle-track { background: #E4E4E7 !important; border-color: #D4D4D8 !important; }
body.light-mode .settings-toggle-track.on { background: #0D9488 !important; border-color: #0D9488 !important; }
body.light-mode .settings-toggle-thumb { background: #FFFFFF !important; }
body.light-mode .settings-toggle-track.on .settings-toggle-thumb { background: #FFFFFF !important; }
body.light-mode .settings-toggle-row { border-bottom: 1px solid #F0F0F0 !important; }
body.light-mode .settings-toggle-label { color: #18181B !important; }
body.light-mode .settings-toggle-sub   { color: #71717A !important; }

/* ── No hover popup on ANY card inside settings ────────────────────────── */
/* Generic: covers all .settings-panel descendants */
.settings-panel .card {
  transition: none !important;
}
.settings-panel .card:hover,
.stg-detail-layout .card:hover,
.stg-prof-section .card:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Explicit per-panel IDs — belt-and-braces */
/* 1. Salon Profile */
#settings-panel-profile .card:hover,
#stg-prof-identity .card:hover,
#stg-prof-public .card:hover,
#stg-prof-social .card:hover { transform: none !important; box-shadow: none !important; }

/* 2. Business Hours */
#settings-panel-hours .card:hover { transform: none !important; box-shadow: none !important; }

/* 3. Billing & Plan */
#settings-panel-billing .card:hover { transform: none !important; box-shadow: none !important; }

/* 4. VAT & Tax */
#settings-panel-vat .card:hover { transform: none !important; box-shadow: none !important; }

/* 5. Security */
#settings-panel-security .card:hover { transform: none !important; box-shadow: none !important; }

/* 6. Notifications */
#settings-panel-notifications .card:hover { transform: none !important; box-shadow: none !important; }

/* 7. Team & Access */
#settings-panel-team .card:hover { transform: none !important; box-shadow: none !important; }

/* Light mode: same treatment */
body.light-mode .settings-panel .card:hover,
body.light-mode .stg-detail-layout .card:hover,
body.light-mode .stg-prof-section .card:hover,
body.light-mode #settings-panel-profile .card:hover,
body.light-mode #stg-prof-identity .card:hover,
body.light-mode #stg-prof-public .card:hover,
body.light-mode #stg-prof-social .card:hover,
body.light-mode #settings-panel-hours .card:hover,
body.light-mode #settings-panel-billing .card:hover,
body.light-mode #settings-panel-vat .card:hover,
body.light-mode #settings-panel-security .card:hover,
body.light-mode #settings-panel-notifications .card:hover,
body.light-mode #settings-panel-team .card:hover {
  transform: none !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05) !important;
}

/* themeToggleTrack/Thumb colors controlled entirely by JS _updateThemeToggle() to match lang toggle */

/* ─────────────────────────────────────────────
   TABLES
───────────────────────────────────────────── */
table { border: 1px solid var(--border) !important; border-radius: 10px !important; }
table thead th { background: var(--bg3) !important; color: var(--mid) !important; border-bottom: 1px solid var(--border) !important; font-size: 0.7rem !important; letter-spacing: 0.06em !important; text-transform: uppercase !important; font-weight: 600 !important; }
table tbody tr { border-bottom: 1px solid var(--border) !important; }
table tbody tr:hover { background: var(--bg3) !important; }
table tbody td { color: var(--cream2) !important; }

body.light-mode table { border: 1px solid #E4E4E7 !important; }
body.light-mode table thead th { background: #F9F9FB !important; color: #71717A !important; border-bottom: 1px solid #E4E4E7 !important; font-size: 0.7rem !important; letter-spacing: 0.06em !important; font-weight: 600 !important; }
body.light-mode table tbody tr { border-bottom: 1px solid #F4F4F5 !important; }
body.light-mode table tbody tr:hover { background: #FAFAFA !important; }
body.light-mode table tbody td { color: #3F3F46 !important; }
body.light-mode #apptTable tr:hover { background: #FAFAFA !important; }

/* ── Report tables (.irpt) ─────────────────── */
/* Remove double border — wrapper div already provides it */
#reportContent table.irpt { border: none !important; border-radius: 0 !important; }
/* Right-aligned columns: inline !important on th wins, ensure td matches */
#reportContent table.irpt th { text-align: left !important; }
#reportContent table.irpt th[style*="right"] { text-align: right !important; }
#reportContent table.irpt td[style*="text-align:right"] { text-align: right !important; }
/* Light mode card appearance */
body.light-mode #reportContent div[style*="overflow-x:auto"][style*="border-radius:10px"] { background: #FFFFFF !important; border-color: #E4E4E7 !important; }
body.light-mode #reportContent table.irpt thead th { background: #F9F9FB !important; color: #71717A !important; }
body.light-mode #reportContent table.irpt tbody td { color: #3F3F46 !important; }
body.light-mode #reportContent table.irpt tbody tr:hover td { background: rgba(0,0,0,0.02) !important; }

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
.btn-primary, .ds-btn--primary { background: #5B85F5 !important; border-color: #5B85F5 !important; color: #FFFFFF !important; border-radius: 8px !important; font-weight: 600 !important; }
.btn-primary:hover, .ds-btn--primary:hover { background: #4A74E8 !important; border-color: #4A74E8 !important; }
.btn-secondary, .ds-btn--secondary { background: var(--bg3) !important; border: 1px solid var(--border2) !important; color: var(--cream) !important; border-radius: 8px !important; }
body.light-mode .btn-secondary, body.light-mode .ds-btn--secondary { background: #FFFFFF !important; border: 1px solid #E4E4E7 !important; color: #18181B !important; }

/* ── .btn-gold → uniform size + dark: white/black, light: black/white ── */
.btn-gold,
#page-customers .btn-gold {
  background: #FFFFFF !important;
  color: #18181B !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0.28rem 0.7rem !important;
  font-size: 0.71rem !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  height: auto !important;
}
.btn-gold::before { display: none !important; }
/* Use html prefix to beat salonos.css specificity on btn-gold:hover */
html .btn-gold:hover {
  background: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.22) !important;
  transform: translateY(-1px) !important;
}
html body.light-mode .btn-gold,
html body.light-mode #page-customers .btn-gold { background: #0D9488 !important; color: #FFFFFF !important; border-color: #0D9488 !important; box-shadow: none !important; }
html body.light-mode .btn-gold:hover,
html body.light-mode #page-customers .btn-gold:hover {
  background: #0F766E !important;
  border-color: #0F766E !important;
  box-shadow: 0 4px 14px rgba(13,148,136,0.32) !important;
  transform: translateY(-1px) !important;
}

/* icon add-button hover — remove orange tint */
.icon-btn--add:hover { background: var(--bg4) !important; color: var(--cream) !important; border-color: var(--border2) !important; }

/* ── Branches: Add Branch button → uniform size + dark: white/black, light: black/white ── */
.brch-add-btn {
  background: #FFFFFF !important;
  color: #18181B !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0.28rem 0.7rem !important;
  font-size: 0.71rem !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
}
html .brch-add-btn:hover {
  background: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.22) !important;
  transform: translateY(-1px) !important;
}
html body.light-mode .brch-add-btn { background: #0D9488 !important; color: #FFFFFF !important; border-color: #0D9488 !important; box-shadow: none !important; }
html body.light-mode .brch-add-btn:hover {
  background: #0F766E !important;
  border-color: #0F766E !important;
  box-shadow: 0 4px 14px rgba(13,148,136,0.32) !important;
  transform: translateY(-1px) !important;
}

/* mfa-btn-gold */
.mfa-btn-gold { background: #FFFFFF !important; color: #18181B !important; }
body.light-mode .mfa-btn-gold { background: #0D9488 !important; color: #FFFFFF !important; border-color: #0D9488 !important; }

/* ── appt-new-btn → match btn-gold style, kill gold gradient + orange glow ── */
html .appt-new-btn {
  height: auto !important;
  padding: 0.28rem 0.7rem !important;
  font-size: 0.71rem !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  background: #FFFFFF !important;
  color: #18181B !important;
  border: none !important;
  box-shadow: none !important;
  letter-spacing: -0.01em !important;
  position: static !important;
  overflow: visible !important;
}
html .appt-new-btn::before { display: none !important; }
html .appt-new-btn:hover {
  background: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.22) !important;
  transform: translateY(-1px) !important;
}
html body.light-mode .appt-new-btn {
  background: #0D9488 !important;
  color: #FFFFFF !important;
  border-color: #0D9488 !important;
  box-shadow: none !important;
}
html body.light-mode .appt-new-btn:hover {
  background: #0F766E !important;
  border-color: #0F766E !important;
  box-shadow: 0 4px 14px rgba(13,148,136,0.32) !important;
  transform: translateY(-1px) !important;
}

/* ─────────────────────────────────────────────
   INPUTS & FORMS
───────────────────────────────────────────── */
input, select, textarea, .ds-input, .ds-select, .ds-search { background: var(--bg3) !important; border: 1px solid var(--border2) !important; color: var(--cream) !important; border-radius: 8px !important; }
input:focus, select:focus, textarea:focus { border-color: rgba(255,255,255,0.4) !important; outline: none !important; box-shadow: 0 0 0 2px rgba(255,255,255,0.15) !important; }
/* Staff view toggle buttons */
.staff-view-btn {
  display:flex; align-items:center; gap:0.4rem;
  height:38px; padding:0 1rem; border:none; border-radius:999px;
  font-size:0.82rem; font-weight:500; font-family:'Inter',sans-serif;
  cursor:pointer; white-space:nowrap; transition:all 0.15s; flex-shrink:0;
  background:transparent; color:var(--mid);
}
.staff-view-btn:hover { background:rgba(255,255,255,0.08); color:var(--cream); }
.staff-view-btn.staff-view-active {
  background:var(--cream); color:#18181B; font-weight:700;
}
.staff-view-btn.staff-view-active:hover { opacity:0.88; }
body.light-mode .staff-view-btn { color:#71717A; }
body.light-mode .staff-view-btn:hover { background:rgba(0,0,0,0.06); color:#18181B; }
body.light-mode .staff-view-btn.staff-view-active { background:#0D9488; color:#fff; border-color:#0D9488; }
body.light-mode .staff-view-btn.staff-view-active:hover { opacity:0.88; }

/* Search inputs inside pill toolbars — transparent, no border (dark + light mode) */
.pill-search,
body.light-mode .pill-search { background: transparent !important; border: none !important; border-radius: 0 !important; box-shadow: none !important; outline: none !important; }
.pill-search:focus,
body.light-mode .pill-search:focus { border: none !important; box-shadow: none !important; }

body.light-mode input, body.light-mode select, body.light-mode textarea, body.light-mode .ds-input, body.light-mode .ds-select { background: #FFFFFF !important; border: 1px solid #E4E4E7 !important; color: #18181B !important; }
body.light-mode input:focus, body.light-mode select:focus, body.light-mode textarea:focus { border-color: #18181B !important; box-shadow: 0 0 0 2px rgba(0,0,0,0.12) !important; }
body.light-mode input::placeholder, body.light-mode textarea::placeholder { color: #A1A1AA !important; }
body.light-mode label { color: #3F3F46 !important; }

/* ─────────────────────────────────────────────
   MODALS
───────────────────────────────────────────── */
.modal-box, .modal-content { background: var(--bg2) !important; border: 1px solid var(--border) !important; border-radius: 14px !important; box-shadow: 0 16px 48px rgba(0,0,0,0.5) !important; }
.modal-header { border-bottom: 1px solid var(--border) !important; }
.modal-footer { border-top: 1px solid var(--border) !important; }
body.light-mode .modal-box, body.light-mode .modal-content { background: #FFFFFF !important; border: 1px solid #E4E4E7 !important; box-shadow: 0 16px 48px rgba(0,0,0,0.12) !important; }
body.light-mode .modal-header { border-bottom: 1px solid #F4F4F5 !important; }
body.light-mode .modal-footer { border-top: 1px solid #F4F4F5 !important; }

/* ─────────────────────────────────────────────
   BADGES
───────────────────────────────────────────── */
.badge-confirmed, .badge-completed { background: rgba(16,185,129,0.12) !important; color: #10B981 !important; }
.badge-pending, .badge-waitlisted  { background: rgba(234,179,8,0.12) !important;  color: #CA8A04 !important; }
.badge-cancelled, .badge-no-show   { background: rgba(239,68,68,0.12) !important;  color: #EF4444 !important; }
.badge-active  { background: rgba(91,133,245,0.12) !important; color: #5B85F5 !important; }
body.light-mode .badge-confirmed, body.light-mode .badge-completed { background: #D1FAE5 !important; color: #059669 !important; }
body.light-mode .badge-pending, body.light-mode .badge-waitlisted  { background: #FEF9C3 !important; color: #A16207 !important; }
body.light-mode .badge-cancelled, body.light-mode .badge-no-show   { background: #FEE2E2 !important; color: #DC2626 !important; }
body.light-mode .badge-active  { background: #EEF2FF !important; color: #5B85F5 !important; }

/* ─────────────────────────────────────────────
   DEMO BANNER — indigo
───────────────────────────────────────────── */
#demoBanner { background: linear-gradient(90deg, #4A74E8 0%, #5B85F5 50%, #7DA0F7 100%) !important; color: #1A1208 !important; box-shadow: 0 2px 12px rgba(91,133,245,0.4) !important; }
#demoBanner button { background: rgba(255,255,255,0.15) !important; color: #FFFFFF !important; }

/* ─────────────────────────────────────────────
   ACCENT PASSTHROUGH: let gold inline styles render as-is
   (no override needed — gold is the brand accent)
───────────────────────────────────────────── */

/* ─────────────────────────────────────────────
   MISC
───────────────────────────────────────────── */
hr { border-color: var(--border) !important; }
body.light-mode hr { border-color: #E4E4E7 !important; }
::-webkit-scrollbar { width: 0; height: 0; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: transparent; }
* { scrollbar-width: none; }
body.light-mode h1, body.light-mode h2, body.light-mode h3 { color: #18181B !important; }
body.light-mode .settings-toggle-row { border-bottom: 1px solid #F0F0F0 !important; }
body.light-mode .settings-nav-item { color: #71717A !important; }
body.light-mode .settings-nav-item.active { color: #5B85F5 !important; background: #EEF2FF !important; }
body.light-mode .settings-plan-badge { background: #EEF2FF !important; color: #5B85F5 !important; border-color: rgba(91,133,245,0.2) !important; }
body.light-mode .booking-drawer, body.light-mode .mini-cal { background: #FFFFFF !important; border-color: #E4E4E7 !important; }

/* ═══════════════════════════════════════════════════════════════════
   BOOKINOVA-STYLE CALENDAR
   ═══════════════════════════════════════════════════════════════════ */

.fcal-wrapper {
  display: flex; flex-direction: column;
  height: 100%;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
}

/* ── Top bar ── */
.fcal-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1.25rem; border-bottom: 1px solid var(--border);
  flex-shrink: 0; gap: 0.75rem; flex-wrap: wrap; background: var(--bg2);
}
.fcal-nav-group { display: flex; align-items: center; gap: 0.45rem; }
.fcal-today-btn {
  padding: 0.28rem 0.85rem; background: none;
  border: 1.5px solid var(--border2); border-radius: 20px;
  font-family: 'Inter', sans-serif; font-size: 0.7rem; font-weight: 600;
  color: var(--cream); cursor: pointer; transition: background 0.15s;
}
.fcal-today-btn:hover { background: var(--bg3); }
.fcal-arrow-btn {
  width: 28px; height: 28px; background: none;
  border: 1.5px solid var(--border2); border-radius: 50%;
  color: var(--cream2); cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s; line-height: 1; padding: 0;
}
.fcal-arrow-btn:hover { background: var(--bg3); }
.fcal-date-label {
  font-size: 0.88rem; font-weight: 700; color: var(--cream);
  min-width: 140px; text-align: center; letter-spacing: -0.01em;
  cursor: pointer; user-select: none; border-radius: 8px; padding: 4px 8px;
  transition: background 0.15s;
}
.fcal-date-label:hover { background: var(--bg3); }
.fcal-view-group { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.fcal-view-btn {
  padding: 0.28rem 0.78rem; background: none;
  border: 1.5px solid var(--border2); border-radius: 20px;
  font-family: 'Inter', sans-serif; font-size: 0.68rem; font-weight: 500;
  color: var(--cream2); cursor: pointer; transition: all 0.15s;
}
.fcal-view-btn:hover:not(.fcal-view-active) { background: var(--bg3); color: var(--cream); }
.fcal-view-active {
  background: var(--bg1) !important; color: var(--cream) !important;
  font-weight: 700 !important; border-color: var(--cream2) !important;
}

/* ── Scroll area ── */
.fcal-scroll { flex: 1; overflow: auto; position: relative; }

/* ── Staff column header (day view) ── */
.fcal-header-row {
  display: grid; position: sticky; top: 0; z-index: 20;
  background: var(--bg2); border-bottom: 1px solid var(--border);
}
.fcal-time-gap { border-right: 1px solid var(--border); position: sticky; left: 0; z-index: 21; background: var(--bg2); }
.fcal-staff-th {
  display: flex; flex-direction: column; align-items: center;
  padding: 0.9rem 0.5rem 0.75rem; border-right: 1px solid var(--border);
  cursor: pointer; position: relative; transition: background 0.15s;
  user-select: none;
}
.fcal-staff-th:hover { background: var(--bg3); }

/* Avatar */
.fcal-avatar {
  width: 54px; height: 54px; border-radius: 50%;
  border: 2.5px solid transparent; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; font-weight: 800; background: var(--bg3);
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), box-shadow 0.25s;
  position: relative; z-index: 1;
}
.fcal-staff-th:hover .fcal-avatar {
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.30);
}
.fcal-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.fcal-staff-name-row { display: flex; align-items: center; gap: 4px; margin-top: 0.45rem; }
.fcal-staff-name { font-size: 0.72rem; font-weight: 600; color: var(--cream); white-space: nowrap; }
.fcal-caret { font-size: 0.58rem; color: var(--mid); transition: transform 0.2s; }
.fcal-staff-th.fcal-popup-open .fcal-caret { transform: rotate(180deg); }

/* ── Staff hover popup ── */
.fcal-popup {
  position: absolute; top: calc(100% + 2px); left: 50%;
  transform: translateX(-50%) scale(0.94) translateY(-6px);
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: 16px; box-shadow: 0 24px 64px rgba(0,0,0,0.45);
  z-index: 200; min-width: 215px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.17s, transform 0.17s;
  overflow: hidden;
}
.fcal-popup.fcal-popup-open {
  opacity: 1; transform: translateX(-50%) scale(1) translateY(0);
  pointer-events: all;
}
.fcal-popup-section { padding: 0.45rem 0; }
.fcal-popup-row {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.48rem 1.05rem; font-size: 0.78rem; color: var(--cream);
  cursor: pointer; transition: background 0.1s; white-space: nowrap;
}
.fcal-popup-row:hover { background: var(--bg3); }
.fcal-popup-row svg { flex-shrink: 0; opacity: 0.6; }
.fcal-popup-sep { height: 1px; background: var(--border); }
.fcal-popup-group-label {
  padding: 0.45rem 1.05rem 0.15rem; font-size: 0.6rem; font-weight: 800;
  color: var(--mid); letter-spacing: 0.1em; text-transform: uppercase;
}

/* ── Day-column header (week / 3-day view) ── */
.fcal-day-th {
  display: flex; flex-direction: column; align-items: center;
  padding: 0.55rem 0.4rem; border-right: 1px solid var(--border);
  cursor: pointer; transition: background 0.15s;
}
.fcal-day-th:hover { background: var(--bg3); }
.fcal-day-name { font-size: 0.53rem; font-weight: 700; letter-spacing: 0.1em; color: var(--mid); }
.fcal-day-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  font-size: 0.92rem; font-weight: 800; color: var(--cream); margin: 0.1rem auto;
}
.fcal-day-th.fcal-today .fcal-day-num { background: #E53935; color: #fff; }
.fcal-day-th.fcal-selected .fcal-day-num { border: 2px solid var(--gold); color: var(--gold); }
.fcal-day-appt-count { font-size: 0.47rem; color: var(--mid); min-height: 0.8rem; }

/* ── Time grid ── */
.fcal-grid-wrap { display: flex; }
.fcal-time-gutter {
  width: 72px; flex-shrink: 0; position: sticky; left: 0; z-index: 15;
  background: var(--bg2); border-right: 1px solid var(--border);
  align-self: stretch;
}
.fcal-hour-cell {
  display: flex; align-items: center; justify-content: flex-end;
  padding: 0 10px 0 4px;
  font-family: 'Inter', sans-serif; font-size: 0.65rem; font-weight: 600;
  color: var(--mid); white-space: nowrap;
}
.fcal-cols { flex: 1; display: grid; position: relative; }
.fcal-col { position: relative; border-right: 1px solid var(--border); overflow: hidden; }
.fcal-gridline { position: absolute; left: 0; right: 0; border-top: 1px solid var(--border); pointer-events: none; }
.fcal-gridline-half { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--border); opacity: 0.35; pointer-events: none; }
.fcal-now-line { position: absolute; left: 0; right: 0; height: 2px; background: #E53935; z-index: 5; pointer-events: none; }
.fcal-now-dot { position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #E53935; }
.fcal-drop-zone { position: absolute; inset: 0; top: 4px; }

/* ── Appointment chips ── */
.fcal-appt {
  position: absolute; border-radius: 0 8px 8px 0; border-left: 4px solid;
  border-top: 1px solid; border-right: 1px solid; border-bottom: 1px solid;
  padding: 4px 7px; cursor: pointer; z-index: 3; overflow: hidden;
  box-sizing: border-box; transition: box-shadow 0.15s, transform 0.12s;
  color: var(--cream) !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.22), 0 1px 3px rgba(0,0,0,0.14);
}
body.light-mode .fcal-appt { color: #18181B !important; }
.fcal-appt:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.32); z-index: 4; transform: translateY(-1px); }
.fcal-appt-time { font-size: 0.55rem; opacity: 0.72; line-height: 1.2; font-family: 'Inter', sans-serif; }
.fcal-appt-name { font-size: 0.69rem; font-weight: 700; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcal-appt-svc  { font-size: 0.59rem; opacity: 0.72; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcal-appt-staff { display: flex; align-items: center; gap: 3px; margin-top: 2px; }
.fcal-appt-dot  { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

/* ── Month view ── */
.fcal-month-wrap { display: flex; flex-direction: column; min-height: 100%; }
.fcal-month-head-row { display: grid; grid-template-columns: repeat(7,1fr); border-bottom: 1px solid var(--border); }
.fcal-month-head-cell {
  text-align: center; padding: 0.45rem 0.3rem;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--mid); border-right: 1px solid var(--border);
}
.fcal-month-grid { display: grid; grid-template-columns: repeat(7,1fr); }
.fcal-month-cell {
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 0.4rem 0.5rem; min-height: 96px; cursor: pointer;
  transition: background 0.1s; position: relative;
}
.fcal-month-cell:hover { background: var(--bg3); }
.fcal-month-cell.fcal-other-month { opacity: 0.32; }
.fcal-month-num {
  font-size: 0.72rem; font-weight: 600; color: var(--cream);
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
}
.fcal-month-cell.fcal-today .fcal-month-num { background: #E53935; color: #fff; border-radius: 50%; }
.fcal-month-chip {
  margin-top: 2px; font-size: 0.57rem; padding: 1px 5px; border-radius: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
  display: block;
}

/* ── Empty state ── */
.fcal-empty-col {
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; color: var(--mid); opacity: 0.5;
  font-family: 'Inter', sans-serif; letter-spacing: 0.05em;
  position: absolute; inset: 0; pointer-events: none;
  writing-mode: vertical-rl; transform: rotate(180deg);
}

/* ── Light mode overrides ── */
body.light-mode .fcal-wrapper { background: #FFFFFF; border-color: #E4E4E7; }
body.light-mode .fcal-topbar { background: #FFFFFF; border-color: #E4E4E7; }
body.light-mode .fcal-header-row { background: #FFFFFF; border-color: #E4E4E7; }
body.light-mode .fcal-time-gutter { background: #FFFFFF; border-color: #E4E4E7; }
body.light-mode .fcal-hour-cell { color: #18181B; }
body.light-mode .fcal-col { border-color: #E4E4E7; }
body.light-mode .fcal-gridline { border-color: #F0F0F0; }
body.light-mode .fcal-staff-th { border-color: #E4E4E7; }
body.light-mode .fcal-staff-th:hover { background: #F9F9F9; }
body.light-mode .fcal-day-th { border-color: #E4E4E7; }
body.light-mode .fcal-day-th:hover { background: #F9F9F9; }
body.light-mode .fcal-popup { background: #FFFFFF; border-color: #E4E4E7; box-shadow: 0 20px 60px rgba(0,0,0,0.12); }
body.light-mode .fcal-popup-row:hover { background: #F5F5F5; }
body.light-mode .fcal-popup-sep { background: #F0F0F0; }
body.light-mode .fcal-month-cell { border-color: #F0F0F0; }
body.light-mode .fcal-month-cell:hover { background: #FAFAFA; }
body.light-mode .fcal-month-head-cell { border-color: #F0F0F0; }
body.light-mode .fcal-time-gap { border-color: #E4E4E7; }
body.light-mode .fcal-view-btn { border-color: #D4D4D8; color: #71717A; }
body.light-mode .fcal-view-btn:hover:not(.fcal-view-active) { background: #F4F4F5; color: #18181B; }
body.light-mode .fcal-view-active { background: #0D9488 !important; color: #FFFFFF !important; border-color: #0D9488 !important; }
body.light-mode .fcal-today-btn { border-color: #D4D4D8; color: #18181B; }
body.light-mode .fcal-today-btn:hover { background: #F4F4F5; }
body.light-mode .fcal-arrow-btn { border-color: #D4D4D8; color: #71717A; }
body.light-mode .fcal-arrow-btn:hover { background: #F4F4F5; }
body.light-mode .fcal-date-label { color: #18181B; }
body.light-mode .fcal-staff-name { color: #18181B; }
body.light-mode .fcal-day-num { color: #18181B; }
body.light-mode .fcal-month-num { color: #18181B; }
body.light-mode .fcal-avatar { background: #F4F4F5; }

/* ═══════════════════════════════════════════════════════════════════
   BLOCKED TIME MODAL
   ═══════════════════════════════════════════════════════════════════ */

.blt-backdrop {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s;
}
.blt-backdrop.blt-open { opacity: 1; pointer-events: all; }

.blt-modal {
  position: fixed; z-index: 601;
  top: 50%; left: 50%;
  transform: translate(-50%, -48%) scale(0.96);
  width: min(480px, calc(100vw - 2rem));
  max-height: min(88vh, 780px);
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.55);
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
}
.blt-modal.blt-open {
  opacity: 1; pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

/* Header */
.blt-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 1.35rem 1.4rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.blt-title   { font-size: 1.1rem; font-weight: 800; color: var(--cream); letter-spacing: -0.02em; }
.blt-subtitle { font-size: 0.68rem; color: var(--mid); margin-top: 3px; font-family: 'Inter', sans-serif; }
.blt-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--border2);
  color: var(--mid); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s; flex-shrink: 0;
}
.blt-close:hover { background: var(--bg4); color: var(--cream); }

/* Scrollable body */
.blt-body { flex: 1; overflow-y: auto; padding: 1.1rem 1.4rem; display: flex; flex-direction: column; gap: 1.1rem; }

/* Section */
.blt-section {}
.blt-label { font-size: 0.7rem; font-weight: 700; color: var(--cream2); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.5rem; }
.blt-optional { font-weight: 400; color: var(--mid); text-transform: none; letter-spacing: 0; font-size: 0.68rem; }

/* Type tiles */
.blt-type-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.65rem;
}
.blt-type-tile {
  display: flex; flex-direction: column; align-items: center;
  padding: 0.9rem 0.5rem 0.75rem;
  border: 1.5px solid var(--border2);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.17s;
  text-align: center;
  background: var(--bg3);
}
.blt-type-tile:hover { border-color: var(--gold2); background: var(--bg4); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.blt-type-tile.blt-selected { border-color: var(--gold); background: var(--gold-pale); box-shadow: 0 0 0 3px rgba(91,133,245,0.18); transform: translateY(-2px); }
.blt-type-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.55rem; flex-shrink: 0;
}
.blt-type-name { font-size: 0.72rem; font-weight: 700; color: var(--cream); line-height: 1.2; }
.blt-type-meta { font-size: 0.58rem; color: var(--mid); margin-top: 2px; font-family: 'Inter', sans-serif; }

/* Inputs */
.blt-input {
  width: 100%; box-sizing: border-box;
  background: var(--bg3); border: 1.5px solid var(--border2);
  border-radius: 10px; color: var(--cream);
  font-family: 'Inter', sans-serif; font-size: 0.82rem;
  padding: 0.6rem 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.blt-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(91,133,245,0.14); }
.blt-input::placeholder { color: var(--mid); }
.blt-select { cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.8rem center;
  padding-right: 2.2rem;
}
.blt-textarea { resize: none; height: 88px; line-height: 1.5; }

/* Duration pill */
.blt-duration-pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-top: 0.5rem; padding: 0.25rem 0.7rem;
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: 20px; font-size: 0.64rem; color: var(--mid);
  font-family: 'Inter', sans-serif;
}
.blt-duration-pill:empty { display: none; }

/* Toggle */
.blt-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1rem; background: var(--bg3); border: 1px solid var(--border2);
  border-radius: 12px; gap: 1rem;
}
.blt-toggle { position: relative; display: inline-flex; flex-shrink: 0; cursor: pointer; }
.blt-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.blt-toggle-track {
  width: 42px; height: 24px; border-radius: 12px;
  background: var(--border2); transition: background 0.2s;
  display: flex; align-items: center; position: relative;
}
.blt-toggle input:checked + .blt-toggle-track { background: var(--gold); }
.blt-toggle-thumb {
  position: absolute; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  transition: transform 0.2s;
}
.blt-toggle input:checked + .blt-toggle-track .blt-toggle-thumb { transform: translateX(18px); }

/* Footer */
.blt-footer {
  display: flex; gap: 0.75rem;
  padding: 1rem 1.4rem 1.25rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.blt-btn-cancel {
  flex: 1; padding: 0.72rem; border-radius: 12px;
  background: var(--bg3); border: 1.5px solid var(--border2);
  color: var(--cream2); font-family: 'Inter', sans-serif;
  font-size: 0.82rem; font-weight: 600; cursor: pointer;
  transition: all 0.15s;
}
.blt-btn-cancel:hover { background: var(--bg4); color: var(--cream); }
.blt-btn-save {
  flex: 2; padding: 0.72rem; border-radius: 12px;
  background: var(--gold); border: none;
  color: #fff; font-family: 'Inter', sans-serif;
  font-size: 0.82rem; font-weight: 700; cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}
.blt-btn-save:hover { opacity: 0.88; transform: translateY(-1px); }
.blt-btn-save:active { transform: translateY(0); }

/* Light mode */
body.light-mode .blt-modal { background: #FFFFFF; border-color: #E4E4E7; }
body.light-mode .blt-header { border-color: #F0F0F0; }
body.light-mode .blt-close { background: #F4F4F5; border-color: #E4E4E7; color: #71717A; }
body.light-mode .blt-close:hover { background: #E4E4E7; color: #18181B; }
body.light-mode .blt-input { background: #F9F9F9; border-color: #E4E4E7; color: #18181B; }
body.light-mode .blt-input:focus { border-color: #5B85F5; }
body.light-mode .blt-type-tile { background: #F9F9F9; border-color: #E4E4E7; }
body.light-mode .blt-type-tile:hover { background: #F4F4F5; border-color: #5B85F5; }
body.light-mode .blt-type-tile.blt-selected { background: #EEF2FF; border-color: #5B85F5; }
body.light-mode .blt-type-name { color: #18181B; }
body.light-mode .blt-duration-pill { background: #F4F4F5; border-color: #E4E4E7; }
body.light-mode .blt-toggle-row { background: #F9F9F9; border-color: #E4E4E7; }
body.light-mode .blt-footer { border-color: #F0F0F0; }
body.light-mode .blt-btn-cancel { background: #F4F4F5; border-color: #E4E4E7; color: #71717A; }
body.light-mode .blt-btn-cancel:hover { background: #E4E4E7; color: #18181B; }

/* ── FCAL DATE PICKER POPUP ──────────────────────────────────────── */
.fcaldp-backdrop {
  position: fixed; inset: 0; z-index: 8800;
  background: transparent;
  display: none;
}
.fcaldp-backdrop.fcaldp-open { display: block; }

.fcaldp-popup {
  position: fixed; z-index: 8900;
  background: #18181B; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7), 0 0 0 0.5px rgba(255,255,255,0.05);
  padding: 1.4rem 1.6rem 1rem;
  min-width: 620px;
  opacity: 0; transform: scale(0.96) translateY(-6px);
  pointer-events: none; transition: opacity 0.18s, transform 0.18s;
}
.fcaldp-popup.fcaldp-open {
  opacity: 1; transform: scale(1) translateY(0); pointer-events: all;
}

.fcaldp-months { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

.fcaldp-month-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.fcaldp-month-hd h3 {
  font-size: 0.9rem; font-weight: 700; color: #F0EDE8;
  margin: 0; letter-spacing: -0.01em;
}
.fcaldp-nav-btn {
  width: 30px; height: 30px; background: none;
  border: 1.5px solid rgba(255,255,255,0.12); border-radius: 50%;
  color: #A1A1AA; cursor: pointer; font-size: 1rem; display: flex;
  align-items: center; justify-content: center; transition: all 0.15s;
}
.fcaldp-nav-btn:hover { background: rgba(255,255,255,0.07); color: #F0EDE8; }
/* hide right nav btn on left month, left nav btn on right month */
.fcaldp-month:first-child .fcaldp-nav-btn.right { visibility: hidden; }
.fcaldp-month:last-child  .fcaldp-nav-btn.left  { visibility: hidden; }

.fcaldp-weekdays {
  display: grid; grid-template-columns: repeat(7,1fr);
  text-align: center; margin-bottom: 0.4rem;
}
.fcaldp-wd {
  font-size: 0.62rem; font-weight: 600; color: #71717A;
  padding-bottom: 0.4rem;
}

.fcaldp-days { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; }
.fcaldp-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 0.78rem; font-weight: 500; color: #D4D4D8;
  cursor: pointer; transition: background 0.12s, color 0.12s;
}
.fcaldp-day:hover:not(.fcaldp-selected):not(.fcaldp-empty) { background: rgba(255,255,255,0.08); color: #fff; }
.fcaldp-day.fcaldp-today { color: #5B85F5; font-weight: 700; }
.fcaldp-day.fcaldp-selected {
  background: #5B85F5; color: #fff !important; font-weight: 700;
  box-shadow: 0 0 0 3px rgba(91,133,245,0.35);
}
.fcaldp-day.fcaldp-empty { cursor: default; }
.fcaldp-day.fcaldp-other-month { color: #3F3F46; }

.fcaldp-shortcuts {
  display: flex; gap: 0.55rem; flex-wrap: wrap;
  margin-top: 1.2rem; padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.fcaldp-shortcut {
  padding: 0.32rem 0.9rem; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.12); background: none;
  color: #A1A1AA; font-size: 0.72rem; font-weight: 500; cursor: pointer;
  font-family: 'Inter', sans-serif; transition: all 0.15s;
}
.fcaldp-shortcut:hover { background: rgba(255,255,255,0.07); color: #F0EDE8; border-color: rgba(255,255,255,0.22); }

/* Light mode overrides */
body.light-mode .fcaldp-popup {
  background: #FFFFFF; border-color: #E4E4E7;
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}
body.light-mode .fcaldp-month-hd h3 { color: #18181B; }
body.light-mode .fcaldp-nav-btn { border-color: #E4E4E7; color: #71717A; }
body.light-mode .fcaldp-nav-btn:hover { background: #F5F5F5; color: #18181B; }
body.light-mode .fcaldp-wd { color: #A1A1AA; }
body.light-mode .fcaldp-day { color: #18181B; }
body.light-mode .fcaldp-day:hover:not(.fcaldp-selected):not(.fcaldp-empty) { background: #F5F5F5; }
body.light-mode .fcaldp-day.fcaldp-today { color: #5B85F5; }
body.light-mode .fcaldp-day.fcaldp-other-month { color: #D4D4D8; }
body.light-mode .fcaldp-shortcuts { border-top-color: #E4E4E7; }
body.light-mode .fcaldp-shortcut { border-color: #E4E4E7; color: #71717A; }
body.light-mode .fcaldp-shortcut:hover { background: #F5F5F5; color: #18181B; }
body.light-mode .sidebar .nav-section { color: #18181B !important; }

/* ── SCHEDULED SHIFTS ROTA ───────────────────────────────────────── */
.rota-wrap { font-family:'Inter',sans-serif; width:100%; min-width:0; box-sizing:border-box; }
.rota-topbar {
  display:flex; align-items:center; gap:1rem;
  margin-bottom:1.4rem;
}
.rota-topbar-btns { display:flex; gap:0.6rem; margin-left:auto; }

/* Week nav pill */
.rota-week-ctrl {
  display:flex; align-items:center;
  background:var(--bg2); border:1.5px solid var(--border2);
  border-radius:999px; overflow:hidden;
}
.rota-nav-side {
  display:flex; align-items:center; gap:0.4rem;
  padding:0.42rem 1.1rem; border:none; background:none;
  color:var(--cream2); font-size:0.78rem; font-weight:600;
  font-family:'Inter',sans-serif; cursor:pointer; transition:background 0.15s;
  white-space:nowrap;
}
.rota-nav-side:hover { background:var(--bg3); color:var(--cream); }
.rota-nav-cal {
  padding:0.42rem 0.72rem;
  border-left:1px solid var(--border2);
  border-right:1px solid var(--border2);
  display:flex; align-items:center; justify-content:center;
  color:var(--mid); cursor:default;
}
.rota-btn {
  display:flex; align-items:center; gap:0.35rem;
  padding:0.45rem 1rem; border-radius:999px;
  border:1.5px solid var(--border2); background:none;
  color:var(--cream); font-size:0.78rem; font-weight:600;
  font-family:'Inter',sans-serif; cursor:pointer; transition:all 0.15s;
}
.rota-btn:hover { background:var(--bg3); }
.rota-btn-add { background:var(--cream) !important; color:#18181B !important; border-color:var(--cream) !important; }
.rota-btn-add:hover { opacity:0.88; }

.rota-subbar {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:1.6rem;
}
.rota-week-nav { display:flex; align-items:center; gap:0.5rem; }
.rota-week-pill {
  padding:0.38rem 1rem; border-radius:999px;
  border:1.5px solid var(--border2); background:none;
  color:var(--cream2); font-size:0.75rem; font-weight:600;
  font-family:'Inter',sans-serif; cursor:pointer; transition:all 0.15s;
}
.rota-week-pill:hover { background:var(--bg3); color:var(--cream); }
.rota-week-arrow {
  width:30px; height:30px; border-radius:50%;
  border:1.5px solid var(--border2); background:none;
  color:var(--cream2); cursor:pointer; font-size:0.9rem;
  display:flex; align-items:center; justify-content:center;
  transition:all 0.15s;
}
.rota-week-arrow:hover { background:var(--bg3); color:var(--cream); }
.rota-week-range {
  padding:0.38rem 1rem; border-radius:999px;
  border:1.5px solid var(--border2); background:none;
  color:var(--cream); font-size:0.75rem; font-weight:600;
  white-space:nowrap;
}

.rota-table-wrap {
  overflow-x:scroll; border-radius:14px; border:1px solid var(--border);
  cursor:grab;
}
.rota-table-wrap:active { cursor:grabbing; }
.rota-table-wrap::-webkit-scrollbar {
  -webkit-appearance:none;
  height:10px;
  display:block;
}
.rota-table-wrap::-webkit-scrollbar-track {
  background:var(--bg3);
  border-radius:0 0 14px 14px;
}
.rota-table-wrap::-webkit-scrollbar-thumb {
  -webkit-appearance:none;
  background:rgba(150,150,160,0.55);
  border-radius:99px;
  border:2px solid var(--bg3);
  min-width:40px;
}
.rota-table-wrap::-webkit-scrollbar-thumb:hover {
  background:rgba(150,150,160,0.85);
}
body.light-mode .rota-table-wrap::-webkit-scrollbar-track { background:#f0f0f0; }
body.light-mode .rota-table-wrap::-webkit-scrollbar-thumb { background:rgba(0,0,0,0.25); border-color:#f0f0f0; }
body.light-mode .rota-table-wrap::-webkit-scrollbar-thumb:hover { background:rgba(0,0,0,0.45); }
.rota-table { width:100%; border-collapse:collapse; min-width:820px; }
.rota-table th, .rota-table td { padding:0; }

/* Column headers */
.rota-th-member {
  padding:0.85rem 1.2rem; text-align:left;
  font-size:0.72rem; font-weight:700; color:var(--cream2);
  border-bottom:1px solid var(--border); white-space:nowrap;
  background:var(--bg2);
  position:sticky; left:0; z-index:3;
  box-shadow:2px 0 8px rgba(0,0,0,0.18);
}
.rota-th-member span { color:#5B85F5; cursor:pointer; margin-left:4px; font-weight:600; }
.rota-th-day {
  padding:0.7rem 0.6rem; text-align:center;
  border-bottom:1px solid var(--border); border-left:1px solid var(--border);
  background:var(--bg2); min-width:110px;
}
.rota-th-day-name { font-size:0.75rem; font-weight:700; color:var(--cream); }
.rota-th-day-hours { font-size:0.62rem; color:var(--mid); margin-top:2px; }

/* Staff rows */
.rota-tr { border-bottom:1px solid var(--border); }
.rota-tr:last-child { border-bottom:none; }
.rota-td-member {
  padding:0.85rem 1.2rem; white-space:nowrap;
  background:var(--bg2);
  position:sticky; left:0; z-index:2;
  box-shadow:2px 0 8px rgba(0,0,0,0.18);
}
.rota-member-inner { display:flex; align-items:center; gap:0.75rem; }
.rota-avatar {
  width:38px; height:38px; border-radius:50%; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  font-size:0.9rem; font-weight:800; overflow:hidden;
  border:2px solid transparent;
}
.rota-avatar img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.rota-member-name { font-size:0.8rem; font-weight:700; color:var(--cream); }
.rota-member-hours { font-size:0.65rem; color:var(--mid); margin-top:1px; }
.rota-edit-btn {
  width:26px; height:26px; border-radius:50%; border:1.5px solid var(--border2);
  background:none; color:var(--mid); cursor:pointer; display:flex;
  align-items:center; justify-content:center; flex-shrink:0;
  transition:all 0.15s; margin-left:0.4rem;
}
.rota-edit-btn:hover { background:var(--bg3); color:var(--cream); }

.rota-td-shift {
  padding:0.5rem 0.4rem; text-align:center;
  border-left:1px solid var(--border);
  background:var(--bg1); vertical-align:middle;
}
.rota-shift-block {
  background: #4A4A4E;
  border:1px solid rgba(255,255,255,0.1);
  border-radius:8px; padding:0.45rem 0.5rem;
  font-size:0.68rem; font-weight:600; color:#ffffff;
  cursor:pointer; transition:all 0.15s; line-height:1.3;
  white-space:nowrap;
}
.rota-shift-block:hover { background:#56565A; }
.rota-shift-empty {
  height:38px; border-radius:8px; border:1.5px dashed var(--border2);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; transition:all 0.15s;
}
.rota-shift-empty:hover { border-color:rgba(91,133,245,0.5); background:rgba(91,133,245,0.06); }
.rota-shift-empty svg { color:var(--mid); transition:color 0.15s; }
.rota-shift-empty:hover svg { color:#7DA0F7; }

/* Light mode */
body.light-mode .rota-title { color:#18181B; }
body.light-mode .rota-btn { border-color:#E4E4E7; color:#18181B; }
body.light-mode .rota-btn:hover { background:#F5F5F5; }
body.light-mode .rota-btn-add { background:#0D9488 !important; color:#fff !important; border-color:#0D9488 !important; }
body.light-mode .rota-week-pill, body.light-mode .rota-week-arrow { border-color:#E4E4E7; color:#71717A; }
body.light-mode .rota-week-pill:hover, body.light-mode .rota-week-arrow:hover { background:#F5F5F5; color:#18181B; }
body.light-mode .rota-week-range { border-color:#E4E4E7; color:#18181B; }
body.light-mode .rota-table-wrap { border-color:#E4E4E7; }
body.light-mode .rota-th-member, body.light-mode .rota-th-day { background:#FFFFFF; border-color:#E4E4E7; }
body.light-mode .rota-th-day-name { color:#18181B; }
body.light-mode .rota-th-day-hours { color:#A1A1AA; }
body.light-mode .rota-tr { border-color:#E4E4E7; }
body.light-mode .rota-td-member { background:#FFFFFF; }
body.light-mode .rota-member-name { color:#18181B; }
body.light-mode .rota-member-hours { color:#A1A1AA; }
body.light-mode .rota-edit-btn { border-color:#E4E4E7; }
body.light-mode .rota-td-shift { background:#F9F9FB; border-color:#E4E4E7; }
body.light-mode .rota-shift-block { background:#4A4A4E; border-color:rgba(0,0,0,0.1); color:#ffffff; }
body.light-mode .rota-shift-block:hover { background:#56565A; }
body.light-mode .rota-shift-empty { border-color:#D4D4D8; }
body.light-mode .sidebar .nav-section { color:#18181B !important; }

/* ── PAGE HEADING ────────────────────────────────────────────────── */
.page-heading {
  font-size: 2rem; font-weight: 800; color: var(--cream);
  letter-spacing: -0.04em; margin-bottom: 1.5rem; line-height: 1.1;
}
body.light-mode .page-heading { color: #18181B; }

/* ── CALENDAR ICON BUTTONS (gear, calendar, refresh) ─────────────── */
.fcal-icon-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: none; border: 1.5px solid var(--border2);
  color: var(--cream2); cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.fcal-icon-btn:hover { background: var(--bg3); color: var(--cream); }
.fcal-topbar-sep {
  width: 1px; height: 22px; background: var(--border2);
  margin: 0 6px; flex-shrink: 0;
}
body.light-mode .fcal-icon-btn { border-color: #E4E4E7; color: #52525B; }
body.light-mode .fcal-icon-btn:hover { background: #F4F4F5; color: #18181B; }
body.light-mode .fcal-topbar-sep { background: #E4E4E7; }

/* ── ADD BUTTON (theme-adaptive) ─────────────────────────────────── */
.fcal-add-btn {
  display: flex; align-items: center; gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  background: #FFFFFF; color: #18181B;
  border: none; border-radius: 8px;
  font-size: 0.71rem; font-weight: 700;
  font-family: 'Inter', sans-serif; cursor: pointer;
  letter-spacing: -0.01em; transition: background 0.15s, opacity 0.15s;
}
html .fcal-add-btn:hover {
  background: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.22) !important;
  transform: translateY(-1px) !important;
}
html body.light-mode .fcal-add-btn { background: #0D9488 !important; color: #FFFFFF !important; border-color: #0D9488 !important; }
html body.light-mode .fcal-add-btn:hover {
  background: #0F766E !important;
  border-color: #0F766E !important;
  box-shadow: 0 4px 14px rgba(13,148,136,0.32) !important;
  transform: translateY(-1px) !important;
}

/* ── VIEW DROPDOWN ───────────────────────────────────────────────── */
.fcal-view-dd { position: relative; display: inline-block; }
.fcal-view-dd-trigger {
  display: flex; align-items: center; gap: 6px;
  padding: 0.3rem 0.9rem; border-radius: 20px;
  border: 1.5px solid var(--border2); background: var(--bg1);
  color: var(--cream); font-size: 0.72rem; font-weight: 700;
  font-family: 'Inter', sans-serif; cursor: pointer; transition: all 0.15s;
  white-space: nowrap;
}
.fcal-view-dd-trigger:hover { background: var(--bg3); }
.fcal-dd-chevron, .fcal-view-dd-trigger > svg:last-child { transition: transform 0.2s; }
.fcal-view-dd.fcal-dd-open .fcal-view-dd-trigger > svg:last-child { transform: rotate(180deg); }

.fcal-view-dd-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: 14px; box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  min-width: 185px; z-index: 600; overflow: hidden;
  opacity: 0; transform: scale(0.95) translateY(-4px);
  pointer-events: none; transition: opacity 0.15s, transform 0.15s;
}
.fcal-view-dd.fcal-dd-open .fcal-view-dd-menu {
  opacity: 1; transform: scale(1) translateY(0); pointer-events: all;
}
.fcal-vd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 0.65rem 1rem; cursor: pointer;
  font-size: 0.8rem; font-weight: 500; color: var(--cream2);
  transition: background 0.1s; font-family: 'Inter', sans-serif;
}
.fcal-vd-item:hover { background: var(--bg3); color: var(--cream); }
.fcal-vd-item.fcal-vd-active { color: #FFFFFF; font-weight: 700; background: rgba(255,255,255,0.06); }
.fcal-vd-item svg { flex-shrink: 0; opacity: 0.7; }

body.light-mode .fcal-view-dd-trigger { background: #fff; color: #18181B; border-color: #E4E4E7; }
body.light-mode .fcal-view-dd-menu { background: #fff; border-color: #E4E4E7; box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
body.light-mode .fcal-vd-item { color: #71717A; }
body.light-mode .fcal-vd-item:hover { background: #F5F5F5; color: #18181B; }
body.light-mode .fcal-vd-item.fcal-vd-active { color: #5B85F5; background: rgba(91,133,245,0.08); }

/* ── BOOKINOVA WEEK VIEW (staff rows × date cols) ───────────────────── */
.fcal-weekv-wrap { display: flex; flex-direction: column; height: 100%; min-width: 700px; }
.fcal-weekv-header {
  display: flex; position: sticky; top: 0; z-index: 20;
  background: var(--bg2); border-bottom: 1px solid var(--border);
}
.fcal-weekv-corner {
  width: 80px; flex-shrink: 0; border-right: 1px solid var(--border); min-height: 64px;
}
.fcal-weekv-date-col {
  flex: 1; min-width: 0; padding: 0.75rem 0.75rem 0.6rem;
  border-right: 1px solid var(--border); cursor: pointer;
  transition: background 0.12s;
}
.fcal-weekv-date-col:hover { background: var(--bg3); }
.fcal-weekv-date-wrap { display: flex; align-items: center; gap: 8px; }
.fcal-weekv-date-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 1.1rem; font-weight: 800; color: var(--cream); flex-shrink: 0;
}
.fcal-weekv-date-num.is-today { background: #FFFFFF; color: #18181B; }
.fcal-weekv-date-name { font-size: 0.72rem; font-weight: 500; color: var(--mid); }
.fcal-weekv-date-cnt { font-size: 0.6rem; color: var(--mid); margin-top: 2px; }

.fcal-weekv-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.fcal-weekv-row {
  display: flex; border-bottom: 1px solid var(--border);
  flex: 1; min-height: 120px;
}
.fcal-weekv-row:last-child { border-bottom: none; }
.fcal-weekv-staff-col {
  width: 80px; flex-shrink: 0; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center;
  justify-content: flex-start; padding: 14px 6px 10px; gap: 6px;
}
.fcal-weekv-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--border2); object-fit: cover;
}
.fcal-weekv-avatar-initials {
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid transparent;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 800; flex-shrink: 0;
}
.fcal-weekv-staff-name {
  font-size: 0.58rem; font-weight: 600; color: var(--cream2);
  text-align: center; line-height: 1.3; word-break: break-word;
}
.fcal-weekv-cell {
  flex: 1; min-width: 0; border-right: 1px solid var(--border);
  padding: 6px; display: flex; flex-direction: column; gap: 3px;
}
.fcal-weekv-cell:last-child { border-right: none; }
.fcal-weekv-chip {
  padding: 5px 7px; border-radius: 5px; font-size: 0.65rem;
  font-family: 'Inter', sans-serif; cursor: pointer; line-height: 1.35;
  transition: filter 0.15s;
}
.fcal-weekv-chip:hover { filter: brightness(1.12); }
.fcal-weekv-empty-cell {
  flex: 1; display: flex; align-items: center; justify-content: center;
  cursor: pointer; border-radius: 6px; transition: background 0.12s; min-height: 80px;
}
.fcal-weekv-empty-cell:hover { background: rgba(255,255,255,0.03); }

body.light-mode .fcal-weekv-header { background: #FFFFFF; border-color: #E4E4E7; }
body.light-mode .fcal-weekv-corner { border-color: #E4E4E7; }
body.light-mode .fcal-weekv-date-col { border-color: #E4E4E7; }
body.light-mode .fcal-weekv-date-col:hover { background: #F9F9FB; }
body.light-mode .fcal-weekv-date-num { color: #18181B; }
body.light-mode .fcal-weekv-date-num.is-today { background: #0D9488; color: #fff; }
body.light-mode .fcal-weekv-date-name { color: #A1A1AA; }
body.light-mode .fcal-weekv-row { border-color: #E4E4E7; background: #FFFFFF; }
body.light-mode .fcal-weekv-staff-col { border-color: #E4E4E7; background: #FFFFFF; }
body.light-mode .fcal-weekv-staff-name { color: #71717A; }
body.light-mode .fcal-weekv-cell { border-color: #E4E4E7; background: #FAFAFA; }

/* ── ROTA SPLIT SHIFT ────────────────────────────────────────────── */
.rota-shift-stack { display: flex; flex-direction: column; gap: 4px; }
.rota-shift-split-btn {
  width: 22px; height: 22px; border-radius: 50%; border: 1.5px dashed rgba(91,133,245,0.4);
  background: none; color: rgba(91,133,245,0.6); cursor: pointer; font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  margin: 2px auto 0; transition: all 0.15s;
}
.rota-shift-split-btn:hover { background: rgba(91,133,245,0.1); border-color: rgba(91,133,245,0.8); color: #7DA0F7; }

/* ── GLOBAL SEARCH PANEL ──────────────────────────────────────────── */
/* Panel positioned to the left of the search icon button */
#globalSearchPanel {
  background: var(--bg2) !important;
  border: 1px solid var(--border2) !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45) !important;
}
body.light-mode #globalSearchPanel {
  background: #FFFFFF !important;
  border: 1px solid #E4E4E7 !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14) !important;
}
/* Search input focus — dark mode: white ring, light mode: black ring */
#globalSearchInput:focus {
  border-color: rgba(255,255,255,0.4) !important;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.15) !important;
  outline: none !important;
}
body.light-mode #globalSearchInput:focus {
  border-color: #18181B !important;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.12) !important;
  outline: none !important;
}
body.light-mode #globalSearchInput {
  background: #F4F4F5 !important;
  border-color: #E4E4E7 !important;
  color: #18181B !important;
}
body.light-mode #globalSearchInput::placeholder { color: #A1A1AA !important; }

/* ══════════════════════════════════════════════════════════════════
   BOOKINOVA-STYLE CALENDAR BOOKING FLOW
   ══════════════════════════════════════════════════════════════════ */

/* ── Quick action popup ──────────────────────────────────────────── */
#calQuickPopup {
  position: fixed;
  z-index: 99990;
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.13), 0 1px 4px rgba(0,0,0,0.07);
  min-width: 252px;
  padding: 0;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  display: none;
}
body:not(.light-mode) #calQuickPopup {
  background: #1E1E24;
  box-shadow: 0 8px 40px rgba(0,0,0,0.55);
}
.cqp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
}
.cqp-time {
  font-size: 0.94rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: 0;
}
body:not(.light-mode) .cqp-time { color: #F0EDE8; }
.cqp-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  color: #9CA3AF;
  font-size: 1rem;
  line-height: 1;
  transition: color 0.12s;
  flex-shrink: 0;
}
.cqp-close:hover { color: #374151; }
body:not(.light-mode) .cqp-close { color: #6B7280; }
body:not(.light-mode) .cqp-close:hover { color: #D1D5DB; }
.cqp-actions { padding: 2px 0 6px; }
.cqp-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.12s;
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
  letter-spacing: 0;
}
body:not(.light-mode) .cqp-row { color: #F0EDE8; }
.cqp-row:hover { background: #F9FAFB; }
body:not(.light-mode) .cqp-row:hover { background: rgba(255,255,255,0.05); }
.cqp-icon {
  width: 18px; height: 18px;
  stroke: #374151;
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
body:not(.light-mode) .cqp-icon { stroke: #D1D5DB; }
.cqp-settings-link {
  display: block;
  padding: 9px 16px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #5B85F5;
  text-decoration: none;
  cursor: pointer;
  border-top: 1px solid #F3F4F6;
  transition: color 0.12s;
  letter-spacing: 0;
}
body:not(.light-mode) .cqp-settings-link { border-top-color: rgba(255,255,255,0.07); }
.cqp-settings-link:hover { color: #4A74E8; }

/* ── Full booking modal overlay ──────────────────────────────────── */
#bknBookingOverlay {
  position: fixed;
  inset: 0;
  z-index: 99991;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: center;
  justify-content: center;
}
#bknBookingOverlay.fbo-open { display: flex; }
#bknBookingModal {
  display: flex;
  flex-direction: row;
  width: 480px;
  max-width: calc(100vw - 48px);
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.22);
  max-height: 88vh;
  font-family: 'Inter', sans-serif;
  transition: width 0.3s cubic-bezier(0.4,0,0.2,1);
}
#bknBookingModal.fbm-expanded { width: 860px; }
#bknBookingModal.fbm-triple   { width: 1220px; }
body:not(.light-mode) #bknBookingModal { background: #18181B; }

/* Left panel — service list, always visible */
.fbm-left {
  width: 480px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width 0.3s cubic-bezier(0.4,0,0.2,1);
}
#bknBookingModal.fbm-expanded .fbm-left,
#bknBookingModal.fbm-triple .fbm-left {
  width: 380px;
  border-right: 1px solid #E5E7EB;
}
body:not(.light-mode) #bknBookingModal.fbm-expanded .fbm-left,
body:not(.light-mode) #bknBookingModal.fbm-triple .fbm-left { border-right-color: rgba(255,255,255,0.08); }
.fbm-panel-head {
  padding: 22px 20px 14px;
  border-bottom: 1px solid #E5E7EB;
  flex-shrink: 0;
}
body:not(.light-mode) .fbm-panel-head { border-bottom-color: rgba(255,255,255,0.08); }
.fbm-panel-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  line-height: 1.2;
}
body:not(.light-mode) .fbm-panel-title { color: #F0EDE8; }

/* Search wrapper with icon */
.fbm-search-wrap {
  position: relative;
}
.fbm-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  stroke: #9CA3AF;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.fbm-search {
  width: 100%;
  border: 1.5px solid #E5E7EB;
  border-radius: 8px;
  padding: 9px 12px 9px 34px;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  background: #FFFFFF;
  color: #111827;
  transition: border-color 0.15s;
  box-sizing: border-box;
  letter-spacing: 0;
}
.fbm-search::placeholder { color: #9CA3AF; font-size: 0.875rem; }
.fbm-search:focus {
  border-color: #5B85F5;
  background: #FFFFFF;
}
body:not(.light-mode) .fbm-search {
  background: #222228;
  border-color: rgba(255,255,255,0.12);
  color: #F0EDE8;
}
body:not(.light-mode) .fbm-search:focus {
  border-color: #5B85F5;
}
body:not(.light-mode) .fbm-search-icon { stroke: #6B7280; }
.fbm-list {
  flex: 1;
  overflow-y: auto;
}
.fbm-list::-webkit-scrollbar { width: 4px; }
.fbm-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 4px; }
body:not(.light-mode) .fbm-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); }

/* Action rows (Add new client / Walk-In) */
.fbm-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.12s;
}
.fbm-action-row:hover { background: #F9FAFB; }
body:not(.light-mode) .fbm-action-row:hover { background: rgba(255,255,255,0.04); }
.fbm-action-divider {
  height: 1px;
  background: #E5E7EB;
  margin: 0;
}
body:not(.light-mode) .fbm-action-divider { background: rgba(255,255,255,0.07); }
.fbm-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #EEF2FF;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: #5B85F5;
  flex-shrink: 0;
  letter-spacing: 0;
}
body:not(.light-mode) .fbm-avatar { background: rgba(91,133,245,0.15); }
.fbm-avatar svg {
  width: 18px; height: 18px;
  stroke: #5B85F5;
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fbm-action-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111827;
  letter-spacing: 0;
}
body:not(.light-mode) .fbm-action-label { color: #F0EDE8; }

/* Client rows (shown only after search) */
.fbm-client-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.12s;
}
.fbm-client-row:hover { background: #F9FAFB; }
.fbm-client-row--selected { background: #EEF2FF !important; }
body:not(.light-mode) .fbm-client-row:hover { background: rgba(255,255,255,0.04); }
body:not(.light-mode) .fbm-client-row--selected { background: rgba(91,133,245,0.12) !important; }
.fbm-client-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
  letter-spacing: 0;
}
body:not(.light-mode) .fbm-client-name { color: #F0EDE8; }
.fbm-client-email {
  font-size: 0.8125rem;
  color: #6B7280;
  line-height: 1.3;
  letter-spacing: 0;
}

/* Right panel */
/* Right panel — client selection, slides in when service selected */
.fbm-right {
  width: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: width 0.3s cubic-bezier(0.4,0,0.2,1);
  border-left: 1px solid transparent;
}
#bknBookingModal.fbm-expanded .fbm-right,
#bknBookingModal.fbm-triple .fbm-right {
  width: 380px;
  border-left-color: #E5E7EB;
}
body:not(.light-mode) #bknBookingModal.fbm-expanded .fbm-right,
body:not(.light-mode) #bknBookingModal.fbm-triple .fbm-right { border-left-color: rgba(255,255,255,0.08); }
/* Inner content needs a min-width so it doesn't wrap during slide */
#fbmClientPane > * { min-width: 320px; }
.fbm-right-head {
  padding: 22px 20px 14px;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-shrink: 0;
}
body:not(.light-mode) .fbm-right-head { border-bottom-color: rgba(255,255,255,0.08); }
.fbm-close-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #F3F4F6;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #6B7280;
  font-size: 0.875rem;
  transition: background 0.15s;
  flex-shrink: 0;
  margin-top: 2px;
}
body:not(.light-mode) .fbm-close-btn { background: rgba(255,255,255,0.08); color: #9CA3AF; }
.fbm-close-btn:hover { background: #E5E7EB; color: #374151; }
body:not(.light-mode) .fbm-close-btn:hover { background: rgba(255,255,255,0.15); color: #D1D5DB; }
.fbm-svc-search-wrap {
  padding: 12px 20px 0;
  flex-shrink: 0;
}
.fbm-service-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0 20px;
}
.fbm-service-list::-webkit-scrollbar { width: 4px; }
.fbm-service-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 4px; }
body:not(.light-mode) .fbm-service-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); }

/* Category heading */
.fbm-cat-head {
  padding: 20px 20px 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fbm-cat-head + .fbm-svc-row { margin-top: 2px; }
.fbm-cat-name {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: 0;
}
body:not(.light-mode) .fbm-cat-name { color: #F0EDE8; }
.fbm-cat-count {
  font-size: 0.75rem;
  font-weight: 500;
  color: #6B7280;
  background: #F3F4F6;
  border-radius: 999px;
  padding: 1px 8px;
  letter-spacing: 0;
}
body:not(.light-mode) .fbm-cat-count { background: rgba(255,255,255,0.08); color: #9CA3AF; }

/* Service row — permanent light-blue left bar */
.fbm-svc-row {
  display: flex;
  align-items: center;
  padding: 10px 16px 10px 17px;
  cursor: pointer;
  transition: background 0.12s;
  border-left: 3px solid #BAE6FD;
  gap: 0;
}
/* Checkmark circle for multi-select */
.fbm-svc-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid #D1D5DB;
  flex-shrink: 0;
  margin-right: 12px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.12s, background 0.12s;
}
.fbm-svc-row--selected .fbm-svc-check {
  background: #5B85F5; border-color: #5B85F5;
}
.fbm-svc-check svg { display: none; }
.fbm-svc-row--selected .fbm-svc-check svg { display: block; }
body:not(.light-mode) .fbm-svc-check { border-color: #4B5563; }
body:not(.light-mode) .fbm-svc-row--selected .fbm-svc-check { background: #5B85F5; border-color: #5B85F5; }

/* Multi-select footer tray (inside left panel) */
.fbm-svc-tray {
  padding: 12px 16px;
  border-top: 1px solid #E5E7EB;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}
.fbm-svc-tray.visible { display: flex; }
body:not(.light-mode) .fbm-svc-tray { border-top-color: rgba(255,255,255,0.08); }
.fbm-svc-tray-info {
  font-size: 0.8125rem;
  color: #6B7280;
  letter-spacing: 0;
  line-height: 1.4;
}
body:not(.light-mode) .fbm-svc-tray-info { color: #9CA3AF; }
.fbm-svc-tray-info strong { color: #111827; font-weight: 600; }
body:not(.light-mode) .fbm-svc-tray-info strong { color: #F0EDE8; }
.fbm-svc-tray-next {
  padding: 9px 18px;
  background: #0D9488;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
  transition: background 0.14s;
  flex-shrink: 0;
}
.fbm-svc-tray-next:hover { background: #09090B; }
body:not(.light-mode) .fbm-svc-tray-next { background: #FFFFFF; color: #18181B; }
body:not(.light-mode) .fbm-svc-tray-next:hover { background: #F0EDE8; }
.fbm-svc-row:hover { background: #F0F9FF; border-left-color: #38BDF8; }
.fbm-svc-row--selected,
.fbm-svc-row--selected:hover { background: #EEF2FF; border-left-color: #5B85F5; }
body:not(.light-mode) .fbm-svc-row { border-left-color: rgba(186,230,253,0.35); }
body:not(.light-mode) .fbm-svc-row:hover { background: rgba(186,230,253,0.06); border-left-color: #7DD3FC; }
body:not(.light-mode) .fbm-svc-row--selected,
body:not(.light-mode) .fbm-svc-row--selected:hover { background: rgba(91,133,245,0.1); border-left-color: #5B85F5; }
.fbm-svc-info { flex: 1; min-width: 0; }
.fbm-svc-name {
  font-size: 0.9375rem;
  font-weight: 400;
  color: #111827;
  letter-spacing: 0;
  line-height: 1.3;
}
body:not(.light-mode) .fbm-svc-name { color: #E5E7EB; }
.fbm-svc-dur {
  font-size: 0.8125rem;
  color: #6B7280;
  letter-spacing: 0;
  margin-top: 2px;
  line-height: 1.3;
}
.fbm-svc-price {
  font-size: 0.9375rem;
  font-weight: 400;
  color: #111827;
  flex-shrink: 0;
  letter-spacing: 0;
}
body:not(.light-mode) .fbm-svc-price { color: #E5E7EB; }

/* ── Add new client panel — slides in as third pane ──────────────── */
#bknNewClientPanel {
  width: 0;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  background: #FFFFFF;
  border-left: 1px solid #E5E7EB;
  font-family: 'Inter', sans-serif;
  transition: width 0.3s cubic-bezier(0.4,0,0.2,1), min-width 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-shrink: 0;
}
body:not(.light-mode) #bknNewClientPanel { background: #18181B; border-left-color: rgba(255,255,255,0.08); }
#bknNewClientPanel.fncp-open { width: 460px; min-width: 460px; }
/* Inner content needs a min-width so it doesn't wrap during slide */
#bknNewClientPanel > * { min-width: 320px; }
.fncp-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px 14px;
  border-bottom: 1px solid #E5E7EB;
  flex-shrink: 0;
}
body:not(.light-mode) .fncp-header { border-bottom-color: rgba(255,255,255,0.08); }
.fncp-back {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #F3F4F6;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #6B7280;
  transition: background 0.15s;
  flex-shrink: 0;
}
body:not(.light-mode) .fncp-back { background: rgba(255,255,255,0.08); color: #9CA3AF; }
.fncp-back:hover { background: #E5E7EB; }
body:not(.light-mode) .fncp-back:hover { background: rgba(255,255,255,0.15); }
.fncp-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: 0;
}
body:not(.light-mode) .fncp-title { color: #F0EDE8; }
.fncp-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px 24px;
}
.fncp-body::-webkit-scrollbar { width: 4px; }
.fncp-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 4px; }
body:not(.light-mode) .fncp-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); }
.fncp-avatar-upload {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.fncp-avatar-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #EEF2FF;
  border: 2px dashed #C7D2FE;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}
body:not(.light-mode) .fncp-avatar-circle { background: rgba(91,133,245,0.1); border-color: rgba(91,133,245,0.3); }
.fncp-avatar-circle:hover { background: #E0E7FF; }
.fncp-avatar-circle svg { width: 22px; height: 22px; stroke: #5B85F5; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fncp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.fncp-row.full { grid-template-columns: 1fr; }
.fncp-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 5px;
  letter-spacing: 0;
}
body:not(.light-mode) .fncp-field label { color: #9CA3AF; }
.fncp-input {
  width: 100%;
  border: 1.5px solid #E5E7EB;
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  background: #FFFFFF;
  color: #111827;
  transition: border-color 0.15s;
  box-sizing: border-box;
  letter-spacing: 0;
}
.fncp-input:focus {
  border-color: #5B85F5;
}
body:not(.light-mode) .fncp-input {
  background: #222228;
  border-color: rgba(255,255,255,0.12);
  color: #F0EDE8;
}
body:not(.light-mode) .fncp-input:focus { border-color: #5B85F5; }
.fncp-phone-wrap {
  display: flex;
  gap: 6px;
}
.fncp-phone-prefix {
  border: 1.5px solid #E5E7EB;
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  background: #F9FAFB;
  color: #374151;
  cursor: default;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0;
}
body:not(.light-mode) .fncp-phone-prefix {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
  color: #9CA3AF;
}
.fncp-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 18px 0 10px;
}
.fncp-footer {
  display: flex;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid #E5E7EB;
  flex-shrink: 0;
}
body:not(.light-mode) .fncp-footer { border-top-color: rgba(255,255,255,0.08); }
.fncp-btn {
  flex: 1 1 0%;
  padding: 10px 0;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  letter-spacing: 0;
}
.fncp-btn-primary { background: #0D9488; color: #FFFFFF; }
.fncp-btn-primary:hover { background: #0F766E; }
body:not(.light-mode) .fncp-btn-primary { background: #FFFFFF; color: #18181B; }
body:not(.light-mode) .fncp-btn-primary:hover { background: #F0EDE8; }
.fncp-btn-secondary { background: #F3F4F6; color: #374151; }
.fncp-btn-secondary:hover { background: #E5E7EB; }
body:not(.light-mode) .fncp-btn-secondary { background: rgba(255,255,255,0.08); color: #9CA3AF; }
body:not(.light-mode) .fncp-btn-secondary:hover { background: rgba(255,255,255,0.14); }

/* ── Client panel toggle rows (settings tab) ─────────────────────── */
.fncp-toggle-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #F3F4F6;
}
.fncp-toggle-row:last-child { border-bottom: none; }
body:not(.light-mode) .fncp-toggle-row { border-bottom-color: rgba(255,255,255,0.07); }
.fncp-toggle-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
  letter-spacing: 0;
  line-height: 1.3;
}
body:not(.light-mode) .fncp-toggle-label { color: #F0EDE8; }
.fncp-toggle-sub {
  font-size: 0.75rem;
  color: #9CA3AF;
  letter-spacing: 0;
  margin-top: 2px;
  line-height: 1.4;
}
.fncp-toggle {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  cursor: pointer;
  margin-top: 2px;
}
.fncp-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.fncp-toggle-track {
  width: 38px; height: 22px;
  border-radius: 11px;
  background: #D1D5DB;
  display: flex; align-items: center;
  position: relative;
  transition: background 0.2s;
}
.fncp-toggle input:checked + .fncp-toggle-track { background: #5B85F5; }
.fncp-toggle-thumb {
  position: absolute; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.fncp-toggle input:checked + .fncp-toggle-track .fncp-toggle-thumb { transform: translateX(16px); }
body:not(.light-mode) .fncp-toggle-track { background: #3F3F46; }
body:not(.light-mode) .fncp-toggle input:checked + .fncp-toggle-track { background: #5B85F5; }

/* ── Sequential booking: book footer & service summary ───────────── */
.fbm-book-footer {
  padding: 14px 20px;
  border-top: 1px solid #E5E7EB;
  flex-shrink: 0;
}
body:not(.light-mode) .fbm-book-footer { border-top-color: rgba(255,255,255,0.08); }
.fbm-book-client-label {
  font-size: 0.8125rem;
  color: #6B7280;
  margin-bottom: 8px;
  letter-spacing: 0;
}
body:not(.light-mode) .fbm-book-client-label { color: #9CA3AF; }
.fbm-book-btns {
  display: flex;
  gap: 8px;
}
.fbm-book-btn {
  flex: 1 1 0%;
  padding: 11px 0;
  background: #18181B;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0;
  transition: background 0.15s;
}
.fbm-book-btn:hover { background: #09090B; }
.fbm-book-btn.checkout {
  background: #10B981;
}
.fbm-book-btn.checkout:hover { background: #059669; }
body:not(.light-mode) .fbm-book-btn { background: #FFFFFF; color: #18181B; }
body:not(.light-mode) .fbm-book-btn:hover { background: #F0EDE8; }
body:not(.light-mode) .fbm-book-btn.checkout { background: #10B981; color: #fff; }
body:not(.light-mode) .fbm-book-btn.checkout:hover { background: #059669; }
.fbm-change-svc-btn {
  background: none;
  border: none;
  color: #5B85F5;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  padding: 0;
  margin-top: 14px;
  display: block;
  letter-spacing: 0;
  transition: color 0.12s;
}
.fbm-change-svc-btn:hover { color: #4A74E8; }
.fbm-svc-detail-card {
  background: #F9FAFB;
  border: 1.5px solid #E5E7EB;
  border-left: 3px solid #BAE6FD;
  border-radius: 8px;
  padding: 12px 14px;
}
body:not(.light-mode) .fbm-svc-detail-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
  border-left-color: rgba(186,230,253,0.4);
}
.fbm-svc-detail-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111827;
  letter-spacing: 0;
  margin-bottom: 4px;
}
body:not(.light-mode) .fbm-svc-detail-name { color: #F0EDE8; }
.fbm-svc-detail-meta {
  font-size: 0.8125rem;
  color: #6B7280;
  letter-spacing: 0;
}
.fbm-svc-right-bg {
  background: #FAFAFA;
  border-left: 1px solid #E5E7EB;
}
body:not(.light-mode) .fbm-svc-right-bg {
  background: rgba(255,255,255,0.02);
  border-left-color: rgba(255,255,255,0.08);
}
.fbm-datetime-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #EEF2FF;
  color: #5B85F5;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 12px;
  margin-top: 12px;
  letter-spacing: 0;
}
body:not(.light-mode) .fbm-datetime-pill { background: rgba(91,133,245,0.15); }

/* Remove booking drawer shadow — drawer is disabled in demo */
#bookingDrawer { box-shadow: none !important; }

/* ═══════════════════════════════════════════════════════════════════════
   OVERRIDE BLOCK — Neutralise all hardcoded #F4622A / rgba(244,98,42)
   values in salonos.css that bypass the --gold CSS variable.
   All brand accent → #5B85F5 (blue).
   ═══════════════════════════════════════════════════════════════════════ */

/* Logo / topbar accent text */
body.light-mode .logo-text span          { color: #5B85F5 !important; }
body.light-mode .salon-badge-name        { color: #5B85F5 !important; }
body.light-mode .topbar-title span       { color: #5B85F5 !important; font-weight: 500; }
body.light-mode #calWeekLabel            { color: #5B85F5 !important; }

/* Sidebar active item (hardcoded border-left) */
body.light-mode .nav-item.active         { color: #0D9488 !important; border-left-color: transparent !important; }

/* Buttons — dark mode: white box + black font; light mode: teal (handled below) */
body:not(.light-mode) .btn-gold          { background: #FFFFFF !important; color: #18181B !important; box-shadow: none !important; }
body:not(.light-mode) .btn-gold:hover    { background: #F4F4F5 !important; color: #18181B !important; }

/* Settings section — save buttons: white bg + black font in both modes */
body #page-settings .btn-gold            { background: #FFFFFF !important; color: #18181B !important; box-shadow: none !important; }
body #page-settings .btn-gold:hover      { background: #F4F4F5 !important; color: #18181B !important;
                                           box-shadow: 0 4px 14px rgba(0,0,0,0.22) !important; transform: translateY(-1px) !important; }
body.light-mode #page-settings .btn-gold { background: #0D9488 !important; color: #FFFFFF !important; border-color: #0D9488 !important; }
body.light-mode #page-settings .btn-gold:hover { background: #0F766E !important; color: #FFFFFF !important; border-color: #0F766E !important; }

/* Period toggle (Week / Month / Year on dashboard chart) */
body.light-mode .dash-period-btn.active  { background: #0D9488 !important; color: #fff !important;
                                           box-shadow: 0 2px 8px rgba(0,0,0,0.18) !important; }

/* General tab active state */
body.light-mode .tab.active              { color: #5B85F5 !important; border-bottom-color: #5B85F5 !important; }
body.light-mode .report-tab:hover        { background: rgba(91,133,245,0.05) !important; }

/* Badges */
body.light-mode .badge-gold,
body.light-mode .badge-active            { background: rgba(91,133,245,0.10) !important; color: #5B85F5 !important;
                                           border-color: rgba(91,133,245,0.25) !important; }
body.light-mode .badge-red               { background: rgba(239,68,68,0.10) !important; color: #C0392B !important;
                                           border-color: rgba(239,68,68,0.25) !important; }
body.light-mode .dash-badge              { background: rgba(91,133,245,0.08) !important; color: #5B85F5 !important;
                                           border-color: rgba(91,133,245,0.2) !important; }

/* Staff value colour on dashboard */
body.light-mode .dash-staff-val          { color: #5B85F5 !important; }

/* Progress bars */
.progress-bar                            { background: linear-gradient(90deg, #4A74E8, #5B85F5) !important; }
body.light-mode .progress-bar            { background: linear-gradient(90deg, #4A74E8, #5B85F5) !important; }
body.light-mode .progress-bar[style*="var(--gold)"] { background: linear-gradient(90deg, #4A74E8, #5B85F5) !important; }

/* Input / select focus ring */
input:focus, select:focus, textarea:focus {
  border-color: #5B85F5 !important;
  box-shadow: 0 0 0 3px rgba(91,133,245,0.12) !important;
}
body.light-mode input:focus,
body.light-mode select:focus,
body.light-mode textarea:focus {
  border-color: #5B85F5 !important;
  box-shadow: 0 0 0 3px rgba(91,133,245,0.10) !important;
}

/* Table row hover highlights */
body.light-mode tbody tr:hover td        { background: rgba(91,133,245,0.03) !important; }
body.light-mode tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 rgba(91,133,245,0.4) !important; }
body.light-mode #apptTable tr.appt-row:hover td { background: rgba(91,133,245,0.03) !important; }
body.light-mode #apptTable tr.appt-row:hover td:first-child { box-shadow: inset 3px 0 0 #5B85F5 !important; }

/* Appointment page CTA button shadow */
body.light-mode .appt-new-btn            { box-shadow: 0 4px 18px rgba(91,133,245,0.42), 0 1px 0 rgba(255,255,255,0.3) inset !important; }
body.light-mode .appt-new-btn:hover      { box-shadow: 0 8px 28px rgba(91,133,245,0.58), 0 1px 0 rgba(255,255,255,0.4) inset !important; }

/* Appointment KPI card gold hover */
body.light-mode .appt-kpi-card.gold:hover { box-shadow: 0 20px 48px rgba(245,158,11,0.22), 0 4px 12px rgba(0,0,0,0.08) !important; }

/* Scrollbar thumb hover */
body.light-mode .main::-webkit-scrollbar-thumb:hover { background: #5B85F5 !important; }

/* Marketing template hover — no transform */
body.light-mode .mkt-template:hover      { background: #EEF2FF !important; border-color: #5B85F5 !important; transform: none !important; }
/* Marketing: remove all hover lift from campaign/template/credit cards */
#page-marketing .card:hover,
#page-marketing .mkt-builder-card:hover,
#page-marketing .mkt-tpl-card:hover,
#mktCreditsRow .card:hover,
#mktPreviewCard:hover { transform: none !important; box-shadow: none !important; }
body.light-mode #page-marketing .card:hover,
body.light-mode #mktCreditsRow .card:hover { transform: none !important; box-shadow: 0 1px 4px rgba(0,0,0,0.05) !important; }

/* Package service card selected */
body.light-mode .pkg-svc-card.selected   { background: #EEF2FF !important; border-color: #5B85F5 !important; }

/* Loyalty stars */
body.light-mode .loyalty-stars           { color: #5B85F5 !important; }

/* Commission table interactions */
body.light-mode #commissionsTable select:hover { background: #EEF2FF !important; border-color: rgba(91,133,245,0.4) !important; }
body.light-mode #commissionsTable button[style*="text-decoration"] { color: rgba(91,133,245,0.7) !important; border-bottom-color: rgba(91,133,245,0.3) !important; }
/* Expenses / Staff Payouts / P&L tab bar — white container in light mode */
body.light-mode #costsTabBar { background: #ffffff !important; border-color: #E4E4E7 !important; }

/* Commission pill active + save — dark mode: white box black text / light mode: black box white text */
#commissionsTable .comm-pill-active { background: #ffffff !important; color: #111111 !important; }
#commissionsTable .comm-save-btn { background: #ffffff !important; color: #111111 !important; }
body.light-mode #commissionsTable .comm-pill-active { background: #0D9488 !important; color: #ffffff !important; }
body.light-mode #commissionsTable .comm-save-btn { background: #0D9488 !important; color: #ffffff !important; }

/* Tier card hover — no effect */
body.light-mode .tier-card:hover         { }
/* Loyalty: outer wrapper cards — no hover lift (ltier inner cards keep their own hover) */
#page-loyalty .loy-right-panel .card:hover {
  transform: none !important;
  box-shadow: none !important;
}
body.light-mode #page-loyalty .loy-right-panel .card:hover {
  transform: none !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05) !important;
}

/* Gift Cards panel — no hover lift on any card */
#payPanel-giftcards .card:hover {
  transform: none !important;
  box-shadow: none !important;
}
body.light-mode #payPanel-giftcards .card:hover {
  transform: none !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05) !important;
}

/* Dark mode btn-gold gradient (already using var(--gold) but has shadow hardcoded) */
.btn-gold                                { box-shadow: 0 6px 20px rgba(91,133,245,0.35) !important; }

/* ═══════════════════════════════════════════════════════════════════════
   SETTINGS OVERVIEW — Bookinova-style card grid
   ═══════════════════════════════════════════════════════════════════════ */

#stg-overview {
  padding: 2rem 2.5rem 3rem;
  max-width: 1080px;
}

body.light-mode #page-settings {
  background: transparent;
}

/* Header */
.stg-ov-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.stg-ov-title { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.035em; margin: 0 0 0.3rem; color: var(--cream); }
.stg-ov-sub   { font-size: 0.875rem; color: var(--mid); margin: 0; }

/* Card grid — 3 columns */
.stg-ov-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

/* Individual card */
.stg-ov-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.18s;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.stg-ov-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}

/* Icon */
.stg-ov-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

/* Card text */
.stg-ov-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.015em;
  margin-bottom: 0.3rem;
  position: relative;
  z-index: 2;
}
.stg-ov-desc {
  font-size: 0.8rem;
  color: var(--mid);
  line-height: 1.55;
  flex: 1;
  position: relative;
  z-index: 2;
}

/* Arrow button */
.stg-ov-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  margin-top: 1rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: background 0.15s, color 0.15s;
  background: transparent;
}
.stg-ov-card:hover .stg-ov-arrow {
  filter: brightness(1.1);
}

/* Ghost art container */
.stg-ov-ghost {
  position: absolute;
  top: 0;
  right: 0;
  pointer-events: none;
  z-index: 1;
}

.stg-ov-illus {
  position: absolute;
  top: 0.7rem;
  right: 0.6rem;
  opacity: 0.1;
}
body:not(.light-mode) .stg-ov-illus { opacity: 0.09; }

.stg-ov-dots {
  position: absolute;
  top: 0.7rem;
  right: 5.8rem;
  opacity: 0.18;
}
body:not(.light-mode) .stg-ov-dots { opacity: 0.12; }

/* PIN badge on Activity Log */
.stg-pin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.67rem;
  font-weight: 600;
  color: #4F7CF5;
  background: rgba(79,124,245,0.1);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  position: relative;
  z-index: 2;
}

/* Security strip */
.stg-security-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 1.5rem;
  background: rgba(59,130,246,0.05);
  border: 1px solid rgba(59,130,246,0.18);
  border-radius: 14px;
  flex-wrap: wrap;
}
body:not(.light-mode) .stg-security-strip {
  background: rgba(59,130,246,0.07);
  border-color: rgba(59,130,246,0.22);
}

.stg-sec-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(59,130,246,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3B82F6;
  flex-shrink: 0;
}

.stg-sec-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.01em;
}

.stg-sec-sub {
  font-size: 0.775rem;
  color: var(--mid);
  margin-top: 0.1rem;
  line-height: 1.4;
}

.stg-sec-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border: 1.5px solid #3B82F6;
  border-radius: 9px;
  background: transparent;
  color: #3B82F6;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
}
.stg-sec-btn:hover { background: rgba(59,130,246,0.08); }

/* Report title accent — white in dark mode, black in light mode */
.rpt-accent { color: #FFFFFF; }
body.light-mode .rpt-accent { color: #18181B; }

/* Light mode card overrides */
body.light-mode .stg-ov-card       { background: #FFFFFF; border-color: #E8EAEF; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
body.light-mode .stg-ov-card:hover { box-shadow: 0 10px 32px rgba(0,0,0,0.10); border-color: #D8DAE5; transform: translateY(-2px); }
body.light-mode .stg-ov-name       { color: #18181B; }
body.light-mode .stg-ov-desc       { color: #6B7280; }
body.light-mode .stg-ov-title      { color: #111; }
body.light-mode .stg-ov-sub        { color: #6B7280; }

/* Back button in settings sidebar */
.stg-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #FFFFFF;
  padding: 0.5rem 0.75rem 0.75rem;
  margin-bottom: 0.25rem;
  letter-spacing: 0;
  transition: opacity 0.15s;
  width: 100%;
  text-align: left;
}
.stg-back-btn:hover { opacity: 0.75; }
body.light-mode .stg-back-btn { color: #18181B; }

/* Responsive — 2 columns on narrow screens */
@media (max-width: 860px) {
  .stg-ov-grid { grid-template-columns: repeat(2, 1fr); }
  #stg-overview { padding: 1.5rem 1.5rem 2rem; }
  .stg-security-strip { flex-direction: column; align-items: flex-start; gap: 0.9rem; }
}

/* ── Settings detail view: full-width, no sidebar ── */
.stg-detail-layout                   { display: block !important; }
.stg-detail-layout .settings-content { width: 100% !important; max-width: 1200px; }

/* Back button as top-left link */
.stg-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #FFFFFF;
  padding: 1.25rem 0 0.5rem;
  letter-spacing: 0;
  transition: opacity 0.15s;
}
.stg-back-btn:hover { opacity: 0.7; }
body.light-mode .stg-back-btn { color: #18181B; }

/* ── .drp-btn hover: white in dark mode, black in light mode ── */
.drp-btn:hover {
  border-color: #FFFFFF !important;
  color: #FFFFFF !important;
  background: var(--bg3) !important;
  box-shadow: none !important;
}
body.light-mode .drp-btn:hover {
  border-color: #18181B !important;
  color: #18181B !important;
  background: #F4F4F8 !important;
  box-shadow: none !important;
}

/* ── Salon Profile: stacked full-width cards ── */
.stg-profile-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.stg-profile-stack .card { margin-top: 0 !important; }

/* ── Sentence case: remove all uppercase text (inline styles too) ── */
[style*="text-transform:uppercase"],
[style*="text-transform: uppercase"] {
  text-transform: none !important;
}

/* ── Sentence case: remove all uppercase text ── */
.form-group label,
.settings-card-label,
.settings-panel-title,
.stat-label,
.report-section-title,
.report-sub-title,
.smod-lbl,
.pkg-kpi-label,
.pkg-modal-section-label,
.blt-label,
.brch-table th,
table thead th,
.tab,
.nav-label,
.sidebar .nav-section,
.dash-period-btn,
.section-title,
.kpi-label,
.invoice-field-label,
.exp-cat-label,
.mkt-stat-label,
.gift-stat-label,
.settings-toggle-label,
.settings-card-label {
  text-transform: none !important;
  letter-spacing: 0.01em !important;
}

/* ── Sentence case for dynamically rendered KPI labels ── */
.dash-kpi-label,
.dash-chart-summary div[style*="letter-spacing"],
.report-kpi-card div[style*="letter-spacing:0.14em"],
.stat-card .stat-label {
  text-transform: lowercase !important;
}
.dash-kpi-label::first-letter,
.dash-chart-summary div[style*="letter-spacing"]::first-letter,
.report-kpi-card div[style*="letter-spacing:0.14em"]::first-letter,
.stat-card .stat-label::first-letter {
  text-transform: uppercase !important;
}

/* ── Report KPI labels: match dashboard label font/size/spacing ── */
.report-kpi-card div[style*="letter-spacing:0.14em"] {
  font-size: 0.7rem !important;
  letter-spacing: 0.06em !important;
  font-weight: 600 !important;
}

/* ── Report KPI label colors: white in dark mode, black in light mode ── */
body:not(.light-mode) .report-kpi-card div[style*="letter-spacing:0.14em"] {
  color: rgba(255,255,255,0.85) !important;
}
body.light-mode .report-kpi-card div[style*="letter-spacing:0.14em"] {
  color: rgba(0,0,0,0.75) !important;
}

/* ── Report KPI values: match branches bold style (Sora, 2.1rem, var(--cream)) ── */
/* Targets value divs only — they are the only ones with font-weight:800 inline */
.report-kpi-card div[style*="font-weight:800"] {
  font-family: 'Sora','Inter',sans-serif !important;
  font-size: 2.1rem !important;
  color: var(--cream) !important;
  letter-spacing: -0.03em !important;
}


/* ══════════════════════════════════════════════════════════════════
   §MOBILE  —  Responsive layout  ≤ 768px
   ══════════════════════════════════════════════════════════════════ */

/* ── Mobile nav overlay ── */
#mobOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 8999;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
body.mob-nav-open #mobOverlay {
  display: block;
}
body.mob-nav-open .sidebar {
  transform: translateX(0) !important;
  box-shadow: 6px 0 40px rgba(0,0,0,0.5) !important;
}

/* ── Hamburger button — hidden on desktop ── */
.mob-hamburger {
  display: none;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: var(--cream);
  cursor: pointer;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: auto;
  transition: background 0.15s;
}
.mob-hamburger:hover { background: var(--bg3); }

@media (max-width: 768px) {

  /* ── Core layout ── */
  body {
    display: block !important;
    height: auto !important;
    overflow: auto !important;
    overflow-x: hidden !important;
  }

  .sidebar {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    height: 100dvh !important;
    z-index: 9000 !important;
    transform: translateX(-100%) !important;
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1) !important;
    overflow-y: auto !important;
    width: 240px !important;
    flex-shrink: 0 !important;
  }

  .main {
    width: 100% !important;
    min-height: 100dvh !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }

  /* ── Topbar ── */
  .topbar {
    justify-content: flex-end !important;
    padding: 0 0.75rem !important;
    gap: 0.1rem !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 200 !important;
  }
  .mob-hamburger {
    display: flex !important;
  }

  /* ── Demo banner ── */
  #demoBanner {
    font-size: 0.6rem !important;
    padding: 7px 40px 7px 12px !important;
    letter-spacing: 0.01em !important;
  }

  /* ── Page padding ── */
  .page {
    padding: 1rem !important;
  }

  /* ── KPI grids → 2 columns ── */
  .dash-kpi-grid,
  .stats-row,
  .brch-kpi-row,
  .mkt-kpi-row,
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* ── Loyalty tiers → 2 columns ── */
  .ltier-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* ── Marketing stats bar → 2 columns ── */
  .mkt-stats-bar {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* ── Single-column section layouts ── */
  .mkt-main-grid,
  .brch-mid-grid,
  .loy-layout {
    grid-template-columns: 1fr !important;
  }

  /* ── Form grids → single column ── */
  .form-grid,
  .form-grid-3 {
    grid-template-columns: 1fr !important;
  }

  /* ── Service card 3-metric row → 2 col ── */
  .scard-metrics {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* ── Settings overview → 1 column ── */
  .stg-ov-grid {
    grid-template-columns: 1fr !important;
  }

  /* ── Tables: horizontal scroll ── */
  .table-wrap,
  .brch-table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* ── Calendar: horizontal scroll wrapper ── */
  #page-calendar > div {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    min-height: 400px;
  }

  /* ── Report inline grids (set via JS inline styles) ── */
  #reportContent [style*="grid-template-columns:repeat(4"],
  #reportContent [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* ── Modals → bottom sheet ── */
  .modal {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 90dvh !important;
    border-radius: 20px 20px 0 0 !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    margin: 0 !important;
  }
  .modal-overlay.open {
    align-items: flex-end !important;
  }

  /* ── Search panel → fixed full-width ── */
  #globalSearchPanel {
    position: fixed !important;
    left: 1rem !important;
    right: 1rem !important;
    width: auto !important;
    top: 62px !important;
    transform: none !important;
  }

  /* ── Profile menu → full-width ── */
  #profileMenu {
    right: 0 !important;
    left: auto !important;
    width: calc(100vw - 2rem) !important;
    max-width: 320px !important;
  }

  /* ── KPI value sizes (prevent overflow) ── */
  .dash-kpi-value {
    font-size: 1.45rem !important;
  }
  .brch-kpi-value {
    font-size: 1.7rem !important;
  }
  .report-kpi-card div[style*="font-weight:800"] {
    font-size: 1.6rem !important;
  }

  /* ── Page-level header rows with flex-wrap ── */
  .page-header,
  .page-toolbar {
    flex-wrap: wrap !important;
    gap: 0.6rem !important;
  }

  /* ── Prevent overflow on card grids inside pages ── */
  .card {
    min-width: 0 !important;
  }

  /* ── Brch table force scroll ── */
  #page-branches .brch-table-wrap,
  #page-branches .table-wrap {
    overflow-x: auto !important;
  }
}

/* ════════════════════════════════════════════════════════════════
   NEW REPORT COMPONENTS — Service Mix / Peak Hours / Forecasting
════════════════════════════════════════════════════════════════ */

/* ── Reports overview grid (4-col for 7 cards) ── */
/* ── Reports overview redesign ── */

/* Header */
.rpt-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.rpt-hd-title {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--cream);
  margin: 0;
  line-height: 1.1;
}
.rpt-hd-sub {
  font-size: 0.8rem;
  color: var(--mid);
  margin: 0;
}
.rpt-hd-btns {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-shrink: 0;
}
.rpt-btn-custom {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  height: 38px;
  padding: 0 1rem;
  background: linear-gradient(135deg,#0D9488,#0F766E);
  border: none;
  border-radius: 9px;
  color: #fff !important;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.rpt-btn-custom:hover { opacity: 0.88; }
body.light-mode .rpt-btn-custom { background: linear-gradient(135deg,#0D9488,#0F766E); color: #fff !important; }

.rpt-btn-create {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  height: 38px;
  padding: 0 1.1rem;
  background: #0D9488;
  border: none;
  border-radius: 9px;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.rpt-btn-create:hover { background: #0F766E; }

/* Search + filter toolbar */
.rpt-toolbar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  align-items: stretch;
}
.rpt-search-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 1rem;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 10px;
  height: 44px;
  cursor: text;
  transition: border-color 0.15s;
}
.rpt-search-wrap:focus-within { border-color: #0D9488; }
.rpt-search-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.85rem;
  color: var(--cream);
  font-family: 'Inter', sans-serif;
}
.rpt-search-wrap input::placeholder { color: var(--mid); }
body.light-mode .rpt-search-wrap { background: #fff; border-color: #D1D5DB; }
body.light-mode .rpt-search-wrap:focus-within { border-color: #0D9488; }

.rpt-cat-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
  height: 44px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 10px;
  color: var(--cream);
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
body.light-mode .rpt-cat-pill { background: #fff; border-color: #D1D5DB; }

/* Section headers */
.rpt-section { margin-bottom: 1.75rem; }
.rpt-section-head {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
}
body.light-mode .rpt-section-head { color: #111; }

/* Report cards grid */
.rpt-ov-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* Individual report card */
.rpt-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.18s;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  min-height: 170px;
}
.rpt-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.16);
}
body.light-mode .rpt-card {
  background: #ffffff;
  border-color: #E8EAEF;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
body.light-mode .rpt-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.10);
  border-color: #D1D5DB;
  transform: translateY(-2px);
}

/* Ghost mini chart (bottom-right of card) */
.rpt-chart-ghost {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100px;
  height: auto;
  opacity: 0.13;
  pointer-events: none;
  z-index: 1;
}
body:not(.light-mode) .rpt-chart-ghost { opacity: 0.1; }

/* Card icon */
.rpt-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

/* Card name */
.rpt-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.015em;
  margin-bottom: 0.28rem;
  position: relative;
  z-index: 2;
}
body.light-mode .rpt-name { color: #18181B; }

/* Card description */
.rpt-desc {
  font-size: 0.775rem;
  color: var(--mid);
  line-height: 1.5;
  flex: 1;
  position: relative;
  z-index: 2;
}
body.light-mode .rpt-desc { color: #6B7280; }

/* Arrow button */
.rpt-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid currentColor !important;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  margin-top: 0.75rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.06);
  transition: background 0.15s;
}
body.light-mode .rpt-arrow { background: rgba(255,255,255,0.75); }
.rpt-card:hover .rpt-arrow { background: currentColor; color: #fff !important; }

/* Plan badges */
.rpt-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 3;
  border-radius: 6px;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 2px 7px;
  line-height: 1.6;
}
.rpt-badge-pro {
  background: rgba(99,102,241,0.12);
  color: #6366F1;
  border: 1px solid rgba(99,102,241,0.3);
}
.rpt-badge-biz {
  background: rgba(245,158,11,0.14);
  color: #D97706;
  border: 1px solid rgba(245,158,11,0.3);
}
body.light-mode .rpt-badge-pro { background: rgba(99,102,241,0.1); }
body.light-mode .rpt-badge-biz { background: rgba(245,158,11,0.1); }

/* Upgrade CTA card */
.rpt-cta-card {
  background: var(--bg2);
  border: 1.5px solid rgba(13,148,136,0.3);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 170px;
}
body.light-mode .rpt-cta-card {
  background: rgba(13,148,136,0.04);
  border-color: rgba(13,148,136,0.25);
}
.rpt-cta-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.01em;
}
body.light-mode .rpt-cta-title { color: #18181B; }
.rpt-cta-sub {
  font-size: 0.775rem;
  color: var(--mid);
  line-height: 1.5;
  margin: 0 0 1rem;
}
body.light-mode .rpt-cta-sub { color: #6B7280; }
.rpt-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border: 1.5px solid #0D9488;
  border-radius: 8px;
  background: transparent;
  color: #0D9488;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.15s;
  align-self: flex-start;
}
.rpt-cta-btn:hover { background: rgba(13,148,136,0.08); }

/* Responsive grid */
@media (max-width: 1100px) { .rpt-ov-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px)  { .rpt-ov-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .rpt-ov-grid { grid-template-columns: 1fr; } }

/* ── Branch compare: title top-center, icon+number below, bars bottom-right ── */
.bnvcmp-growth-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  padding: 22px 22px 22px 22px !important;
  position: relative !important;
  overflow: hidden !important;
}
.bnvcmp-growth-title {
  width: 100%;
  text-align: center;
  font-size: 13px !important;
}
.bnvcmp-growth-sub { white-space: nowrap; }

/* ── Insight callout card ── */
.rpt-insight {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.8125rem;
  color: var(--cream2);
  line-height: 1.55;
  margin-bottom: 0.6rem;
}
.rpt-insight svg { color: var(--gold); flex-shrink: 0; margin-top: 1px; }
body.light-mode .rpt-insight { background: #F8F8FB; border-color: #E4E4E7; color: #52525B; }

/* ── Service mix table rows ── */
.rpt-svc-row {
  display: grid;
  grid-template-columns: 2fr 70px 110px 70px 90px 140px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  transition: background 0.12s;
}
.rpt-svc-row:hover { background: var(--bg3); }
.rpt-svc-row-hdr {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--mid);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.2rem;
  border-radius: 0;
}
.rpt-svc-row-hdr:hover { background: transparent; }
body.light-mode .rpt-svc-row:hover { background: #F4F4F5; }

/* ── Heatmap ── */
/* No hover lift/shadow on specific report cards */
#reportContent .rpt-nohover:hover,
#reportContent .sm-nohover:hover,
#reportContent .ph-heatmap-card:hover {
  transform: none !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 4px 20px rgba(0,0,0,0.32), 0 1px 4px rgba(0,0,0,0.2) !important;
}
body.light-mode #reportContent .rpt-nohover:hover,
body.light-mode #reportContent .sm-nohover:hover,
body.light-mode #reportContent .ph-heatmap-card:hover {
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04) !important;
}

.rpt-hm-wrap { overflow-x: auto; }
.rpt-hm-grid { display: grid; gap: 3px; }
.rpt-hm-cell {
  border-radius: 5px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 600;
  cursor: default;
  transition: transform 0.12s;
}
.rpt-hm-cell:hover { transform: scale(1.18); z-index: 2; position: relative; }

/* ── Gauge / progress bars ── */
.rpt-gauge-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.rpt-gauge-bar {
  flex: 1;
  height: 6px;
  background: var(--bg4);
  border-radius: 99px;
  overflow: hidden;
}
.rpt-gauge-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.6s cubic-bezier(.4,0,.2,1);
}
body.light-mode .rpt-gauge-bar { background: #E4E4E7; }

/* ── Forecast monthly tiles ── */
.rpt-fc-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 0.65rem;
}
.rpt-fc-tile {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  text-align: center;
  transition: border-color 0.15s;
}
.rpt-fc-tile.projected {
  border-style: dashed;
  border-color: var(--gold);
  background: var(--gold-pale);
}
.rpt-fc-tile .fc-month { font-size: 0.7rem; color: var(--mid); margin-bottom: 0.25rem; font-weight: 500; }
.rpt-fc-tile .fc-val   { font-family: 'Sora','Inter',sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--cream); }
.rpt-fc-tile .fc-chg   { font-size: 0.68rem; margin-top: 0.2rem; font-weight: 600; }
body.light-mode .rpt-fc-tile { background: #FFFFFF; border-color: #E4E4E7; }
body.light-mode .rpt-fc-tile.projected { background: #EEF2FF; border-color: #5B85F5; }
body.light-mode .rpt-fc-tile .fc-val { color: #111; }

/* ── Status chips ── */
.rpt-chip-pos { display: inline-flex; align-items: center; gap: 3px; background: var(--green-bg); color: var(--green); border-radius: 99px; font-size: 0.7rem; font-weight: 600; padding: 2px 8px; white-space: nowrap; }
.rpt-chip-neg { display: inline-flex; align-items: center; gap: 3px; background: var(--red-bg);   color: var(--red);   border-radius: 99px; font-size: 0.7rem; font-weight: 600; padding: 2px 8px; white-space: nowrap; }
.rpt-chip-neu { display: inline-flex; align-items: center; gap: 3px; background: var(--bg4);      color: var(--cream2); border-radius: 99px; font-size: 0.7rem; font-weight: 600; padding: 2px 8px; white-space: nowrap; }

/* ── Rank badges ── */
.rpt-rank     { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; font-size: 0.7rem; font-weight: 700; flex-shrink: 0; }
.rpt-rank.rank-1 { background: rgba(255,215,0,0.15); color: #FFD700; }
.rpt-rank.rank-2 { background: rgba(192,192,192,0.15); color: #C0C0C0; }
.rpt-rank.rank-3 { background: rgba(205,127,50,0.15); color: #CD7F32; }
.rpt-rank.rank-n { background: var(--bg4); color: var(--mid); }

/* ── Very small screens (< 480px) ── */
@media (max-width: 480px) {
  .page {
    padding: 0.75rem !important;
  }
  .dash-kpi-value {
    font-size: 1.3rem !important;
  }
  .stat-value {
    font-size: 1.3rem !important;
  }
  .report-kpi-card div[style*="font-weight:800"] {
    font-size: 1.4rem !important;
  }
  #demoBanner span:first-of-type,
  #demoBanner span:last-of-type {
    display: none !important;
  }
}

/* ── Service Menu Layout ──────────────────────────────────────────── */
.svc-cat-sidebar {
  width: 210px;
  flex-shrink: 0;
  padding: 0;
  overflow: hidden;
}
#svcCatSidebar:hover, .svc-cat-sidebar:hover {
  transform: none !important;
  box-shadow: none !important;
}
/* Rota off badges */
.rota-off-solid { color: #ffffff; }
.rota-off-muted { color: var(--mid); }
body.light-mode .rota-off-solid { color: #111111; }
body.light-mode .rota-off-muted { color: var(--mid); }
.svc-cat-head {
  padding: 1rem 1.2rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--border2);
}
.svc-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.2rem;
  font-size: 0.82rem;
  color: var(--cream2);
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background 0.12s, border-color 0.12s;
  font-family: 'Inter', sans-serif;
}
.svc-cat-item:hover { background: var(--bg3); }
.svc-cat-item--active {
  background: var(--bg3);
  border-left-color: var(--gold);
  color: var(--cream);
  font-weight: 600;
}
.svc-cat-count {
  font-size: 0.72rem;
  background: var(--bg3);
  color: var(--mid);
  padding: 1px 7px;
  border-radius: 20px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}
.svc-cat-item--active .svc-cat-count {
  background: rgba(201,151,58,0.18);
  color: var(--gold);
}
.svc-cat-add-wrap {
  padding: 0.7rem 1.2rem;
  border-top: 1px solid var(--border2);
}
.svc-cat-add-btn {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 0.8rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  padding: 0;
  transition: opacity 0.12s;
}
.svc-cat-add-btn:hover { opacity: 0.75; }

/* ── Service Groups ───────────────────────────────────────────────── */
.svc-group { margin-bottom: 1.5rem; }
.svc-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  padding: 0 0.1rem;
}
.svc-group-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cream);
  font-family: 'Sora', sans-serif;
}
.svc-group-card { padding: 0 !important; overflow: hidden; }

/* ── Service Row ──────────────────────────────────────────────────── */
.svc-list-row {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid var(--border2);
  position: relative;
  transition: background 0.1s;
}
.svc-list-row:last-child { border-bottom: none; }
.svc-list-row:hover { background: var(--svc-row-hover-bg, var(--bg3)); }
.svc-list-accent {
  width: 4px;
  align-self: stretch;
  min-height: 54px;
  flex-shrink: 0;
  border-radius: 0;
}
.svc-list-info {
  flex: 1;
  padding: 0.85rem 1rem;
  min-width: 0;
}
.svc-list-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cream);
  font-family: 'Inter', sans-serif;
}
.svc-list-dur {
  font-size: 0.75rem;
  color: var(--mid);
  margin-top: 2px;
  font-family: 'Inter', sans-serif;
}
.svc-list-price {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cream2);
  font-family: 'Inter', sans-serif;
  padding: 0 1.1rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── 3-dot Menu ───────────────────────────────────────────────────── */
.svc-dots-wrap {
  position: relative;
  padding: 0 0.75rem;
  flex-shrink: 0;
}
.svc-dots-btn {
  background: none;
  border: none;
  color: var(--mid);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  line-height: 1;
  transition: background 0.12s, color 0.12s;
  font-family: 'Inter', sans-serif;
}
.svc-dots-btn:hover { background: var(--bg3); color: var(--cream); }
.svc-dots-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 5px;
  min-width: 170px;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.svc-dots-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: var(--cream2);
  cursor: pointer;
  border-radius: 7px;
  font-family: 'Inter', sans-serif;
  transition: background 0.1s;
}
.svc-dots-item:hover { background: var(--bg3); color: var(--cream); }
.svc-dots-item--danger { color: #F87171; }
.svc-dots-item--danger:hover { background: rgba(248,113,113,0.1); color: #F87171; }

/* ── Services v2 — Light KPI cards ───────────────────────────────── */
.svc2-kpi {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  transition: box-shadow 0.15s;
}
body.light-mode .svc2-kpi {
  background: #FFFFFF;
  border-color: #E4E4E7;
  box-shadow: 0 1px 8px rgba(0,0,0,0.07);
}
.svc2-kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.svc2-kpi-body {
  flex: 1;
  min-width: 0;
}
.svc2-kpi-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cream2);
  letter-spacing: 0.01em;
  font-family: 'Inter', sans-serif;
  margin-bottom: 0.25rem;
}
.svc2-kpi-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--cream);
  font-family: 'Sora', sans-serif;
  line-height: 1.1;
}
.svc2-kpi-sub {
  font-size: 0.72rem;
  color: var(--mid);
  font-family: 'Inter', sans-serif;
  margin-top: 0.2rem;
}
.svc2-kpi-growth {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px 7px;
  border-radius: 99px;
}
.svc2-kpi-growth--up {
  background: rgba(16,185,129,0.12);
  color: #10B981;
}
.svc2-kpi-growth--neutral {
  background: rgba(161,161,170,0.12);
  color: #A1A1AA;
}

/* ── Category sidebar icon circles ───────────────────────────────── */
.svc-cat-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: filter 0.12s;
}
.svc-cat-item--active .svc-cat-icon {
  filter: brightness(1.15);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.12);
}
/* Override cat-item to include gap for icon */
.svc-cat-item {
  gap: 0.6rem !important;
}
/* Add service button — dashed teal style */
.svc-cat-add-btn {
  width: 100% !important;
  border: 1.5px dashed #0D9488 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #0D9488 !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  padding: 0.5rem 0 !important;
  text-align: center !important;
  cursor: pointer !important;
  font-family: 'Inter', sans-serif !important;
  transition: background 0.12s !important;
}
.svc-cat-add-btn:hover {
  background: rgba(13,148,136,0.07) !important;
  opacity: 1 !important;
}

/* ── Service list — icon square + price pill ──────────────────────── */
.svc-list-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 0.75rem;
}
.svc-price-pill {
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  padding: 3px 10px;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Group header icon + count ────────────────────────────────────── */
.svc-group-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 0.5rem;
}
.svc-group-count {
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--bg3);
  color: var(--mid);
  padding: 1px 8px;
  border-radius: 99px;
  margin-left: 0.5rem;
  font-family: 'Inter', sans-serif;
}
/* Active category sidebar — teal accents */
.svc-cat-item--active {
  border-left-color: #0D9488 !important;
  color: #0D9488 !important;
}
.svc-cat-item--active .svc-cat-count {
  background: rgba(13,148,136,0.13) !important;
  color: #0D9488 !important;
}

.svc-cat-divider {
  height: 1px;
  background: var(--border2);
  margin: 6px 0;
}

/* ── Color swatches (category modal) ─────────────────────────────── */
.svc-color-swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: transform 0.12s, border-color 0.12s;
  flex-shrink: 0;
}
.svc-color-swatch:hover { transform: scale(1.15); }
.svc-color-swatch--active { border-color: var(--cream) !important; transform: scale(1.15); }

/* ── Filter chips ─────────────────────────────────────────────────── */
.svc-filter-chip {
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--border2);
  background: var(--bg3);
  color: var(--cream2);
  font-size: 0.78rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.12s;
}
.svc-filter-chip:not(.svc-filter-chip--active):hover { border-color: var(--cream2); color: var(--cream); }
.svc-filter-chip--active { background: #ffffff; border-color: #ffffff; color: #111111; font-weight: 600; }
.svc-filter-chip--active:hover { background: #ffffff; border-color: #ffffff; color: #111111; }
body.light-mode .svc-filter-chip--active { background: #0D9488; border-color: #0D9488; color: #ffffff; }
body.light-mode .svc-filter-chip--active:hover { background: #0F766E; border-color: #0F766E; color: #ffffff; }
body.light-mode .svc-filter-chip:not(.svc-filter-chip--active):hover { border-color: #111111; color: #111111; }

/* ── Services toolbar — filter button hover ── */
#svcFilterBtn:hover { color: var(--cream) !important; }
body.light-mode #svcFilterBtn { color: #6B6B80 !important; }
body.light-mode #svcFilterBtn:hover { color: #1A1A2E !important; background: rgba(0,0,0,0.05) !important; border-radius: 999px; }

/* ══════════════════════════════════════════════════════
   CUSTOMERS TABLE REDESIGN — div-based grid layout
   ═══════════════════════════════════════════════════ */

/* ── Header bar — completely separate shape ── */
.cust-hdr-bar {
  display: grid;
  grid-template-columns: 36px 1.8fr 1fr 1.4fr 0.5fr 0.8fr 0.7fr 0.8fr 0.8fr;
  align-items: center;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 0 1.2rem;
  margin-bottom: 0.6rem;
}
.cust-hdr-bar > div {
  font-size: 0.78rem;
  font-weight: 800;
  color: #000000;
  letter-spacing: 0;
  padding: 0.7rem 0.5rem;
  white-space: nowrap;
}
body:not(.light-mode) .cust-hdr-bar > div { color: #FFFFFF; }

/* ── Customer rows — separate container ── */
.cust-row {
  display: grid;
  grid-template-columns: 36px 1.8fr 1fr 1.4fr 0.5fr 0.8fr 0.7fr 0.8fr 0.8fr;
  align-items: center;
  padding: 0 1.2rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
.cust-row:last-child { border-bottom: none; }
.cust-row:hover { background: rgba(255,255,255,0.025); border-radius: 8px; }
.cust-row > div {
  padding: 0.85rem 0.5rem;
  font-size: 0.82rem;
  vertical-align: middle;
}

/* Card box behind all rows */
.cust-rows-card {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 12px;
  overflow: hidden;
}

/* ── Circular checkboxes — label+span pattern (::after on input doesn't work cross-browser) ── */
.cust-chk-wrap {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.cust-chk-wrap input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.cust-chk-ui {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border2);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
}
.cust-chk-wrap:hover .cust-chk-ui { border-color: var(--gold); }
.cust-chk-wrap input:checked + .cust-chk-ui {
  background: var(--gold);
  border-color: var(--gold);
}
.cust-chk-wrap input:checked + .cust-chk-ui::after {
  content: '';
  display: block;
  width: 5px;
  height: 8px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}
.cust-chk-wrap input:indeterminate + .cust-chk-ui {
  border-color: var(--gold);
}
.cust-chk-wrap input:indeterminate + .cust-chk-ui::after {
  content: '';
  display: block;
  width: 9px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
body.light-mode .cust-chk-ui { border-color: #C8C8D8; }

/* Light mode */
/* Strip global .search-bar styles from customers search input */
#page-customers #custSearchInput {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  height: 100% !important;
  max-width: none !important;
}
body.light-mode #page-customers #custSearchInput { background: transparent !important; border: none !important; box-shadow: none !important; }

body.light-mode #page-customers > div[style*="border-radius:999px"] { background: #FFFFFF !important; border-color: #E4E4E7 !important; }
body.light-mode #custSearchInput { color: #1A1A2E !important; }
body.light-mode #custFilterBtn { color: #6B6B80 !important; }
body.light-mode #custFilterBtn:hover { color: #1A1A2E !important; background: rgba(0,0,0,0.05) !important; border-radius: 999px; }
body.light-mode .cust-hdr-bar { background: #FFFFFF; border-color: #E4E4E7; }
body.light-mode .cust-hdr-bar > div { color: #000000 !important; }
body.light-mode .cust-rows-card { background: #FFFFFF; border-color: #E4E4E7; }
body.light-mode .cust-row { border-bottom-color: #F0F0F4; }
body.light-mode .cust-row:hover { background: rgba(0,0,0,0.02); border-radius: 0; }

/* ── Services toolbar bar — light mode background ── */
body.light-mode #page-services .svc-toolbar-bar,
body.light-mode #page-services > div[style*="border-radius:999px"]:first-child {
  background: #FFFFFF !important;
  border-color: #E4E4E7 !important;
}

/* ── Services page search pill — strip the global .search-bar styles so only the pill wrapper shows ── */
#page-services #svcSearchInput {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  height: 100% !important;
  max-width: none !important;
  padding-left: 2.6rem !important;
  padding-right: 1.1rem !important;
}
body.light-mode #page-services #svcSearchInput {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* ── Color portal (fixed-position dropdown for category color picker) ── */
#svcColorDdPortal {
  background: var(--bg2) !important;
  border: 1px solid rgba(255,255,255,0.13) !important;
  border-radius: 10px;
  padding: 5px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.55) !important;
}
body.light-mode #svcColorDdPortal {
  background: #fff !important;
  border: 1px solid #D8D8E0 !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.14) !important;
}

/* ══════════════════════════════════════════════════════════════════
   §FILTER DROPDOWNS  —  Styled select elements inside filter panels
   ══════════════════════════════════════════════════════════════════ */
.fdd-row { display: flex; flex-direction: column; gap: 0.35rem; }
.fdd-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--mid);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fdd-select {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 8px;
  color: var(--cream);
  font-size: 0.82rem;
  font-family: 'Inter', sans-serif;
  padding: 0.45rem 2rem 0.45rem 0.75rem;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888899' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  transition: border-color 0.15s;
}
.fdd-select:hover { border-color: var(--gold); }
.fdd-select option { background: var(--bg3); color: var(--cream); }
body.light-mode .fdd-select {
  background-color: #F5F5F5;
  border-color: #D4D4D8;
  color: #18181B;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666677' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
}
body.light-mode .fdd-select option { background: #F5F5F5; color: #18181B; }
body.light-mode .fdd-label { color: #71717A; }

/* ══════════════════════════════════════════════════════════════════
   §APPOINTMENTS  —  Header bar + rows card (mirrors customers style)
   ══════════════════════════════════════════════════════════════════ */

/* Strip global .search-bar styles from appointments search input */
#page-appointments #apptSearchInput {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  height: 100% !important;
  max-width: none !important;
}
body.light-mode #page-appointments #apptSearchInput { background: transparent !important; border: none !important; box-shadow: none !important; }
body.light-mode #page-appointments > div[style*="border-radius:999px"] { background: #FFFFFF !important; border-color: #E4E4E7 !important; }
body.light-mode #apptSearchInput { color: #1A1A2E !important; }
body.light-mode #apptFilterBtn { color: #6B6B80 !important; }
body.light-mode #apptFilterBtn:hover { color: #1A1A2E !important; background: rgba(0,0,0,0.05) !important; border-radius: 999px; }

/* ── Wrapper — transparent column with gap between cards ── */
.appt-rows-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: transparent;
  border: none;
  overflow: visible;
}

/* ── Header — its own standalone card ── */
.appt-hdr-bar {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.4fr 0.55fr 1.1fr 0.65fr 0.85fr 1.1fr;
  gap: 0;
  border-radius: 12px;
  border: 1px solid var(--border2);
  background: var(--bg3);
}
.appt-hdr-bar > div {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cream2);
  letter-spacing: 0;
  padding: 0.65rem 0.75rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.appt-hdr-bar > div:first-child { padding-left: 1.25rem; }
.appt-hdr-bar > div:last-child  { padding-right: 1.25rem; }
.appt-hdr-bar > div:nth-child(8) { justify-content: center; }
body:not(.light-mode) .appt-hdr-bar > div { color: #FFFFFF; }
body.light-mode .appt-hdr-bar { background: #FFFFFF; border-color: #E4E4E7; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
body.light-mode .appt-hdr-bar > div { color: #111111 !important; }

/* ── Each row — its own standalone card ── */
.appt-row-div {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.4fr 0.55fr 1.1fr 0.65fr 0.85fr 1.1fr;
  gap: 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg2);
  transition: box-shadow 0.15s, background 0.12s;
}
.appt-row-div:hover { background: rgba(255,255,255,0.035); }
.appt-row-div > div {
  padding: 0.85rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 0.82rem;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}
.appt-row-div > div:first-child { padding-left: 1.25rem; }
.appt-row-div > div:last-child  { padding-right: 1.25rem; }
.appt-row-div > div:nth-child(8) { justify-content: center; }
body.light-mode .appt-row-div { background: #FFFFFF; border-color: #E8E8EC; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
body.light-mode .appt-row-div:hover { box-shadow: 0 3px 10px rgba(0,0,0,0.08); background: #FFFFFF; }

/* Strip browser default margin from status select so it aligns with header */
.appt-status-pill { margin: 0 !important; }

/* ── Color option in category dropdown ───────────────────────────── */
.svc-color-opt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.75rem;
  border-radius: 7px;
  font-size: 0.82rem;
  color: var(--cream2);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.1s;
}
.svc-color-opt:hover { background: var(--bg3); color: var(--cream); }

/* ── Revenue Allocation month picker — active month button ──────── */
#revAllocMonthPicker button[data-active="1"] {
  background: #0D9488 !important;
  color: #FFFFFF !important;
}
body:not(.light-mode) #revAllocMonthPicker button[data-active="1"] {
  background: #FFFFFF !important;
  color: #18181B !important;
}

/* ── Auth screen left panel — always white text regardless of theme ── */
#authScreen .bkn-left .bkn-left-content,
body.light-mode #authScreen .bkn-left .bkn-left-content {
  color: #ffffff !important;
}
#authScreen .bkn-left .bkn-left-content *,
body.light-mode #authScreen .bkn-left .bkn-left-content * {
  color: #ffffff !important;
}
#authScreen .bkn-left .bkn-badge,
body.light-mode #authScreen .bkn-left .bkn-badge {
  color: #111827 !important;
}

/* ╔══════════════════════════════════════════════════════════════════╗
   ║  §TEAL PRIMARY  —  brand button color (light mode)               ║
   ║  Replaces every dark/black inverted button with brand teal.      ║
   ║  Source of truth: landing.html "Start Free Trial" (#0D9488).     ║
   ║  Hover: #0F766E. Text always white.                              ║
   ╚══════════════════════════════════════════════════════════════════╝ */

/* Class-based selectors */
body.light-mode .btn-invert,
body.light-mode #activatePlanTopbarBtn,
body.light-mode .dash-period-btn.active,
body.light-mode .staff-view-btn.staff-view-active,
body.light-mode .rota-btn-add,
body.light-mode .inv-tab-btn--active,
body.light-mode .inv-tbl-tab--active,
body.light-mode .inv-action-btn--primary,
body.light-mode .inv-add-btn,
body.light-mode #expAddBtn,
body.light-mode #svcAddBtn,
body.light-mode #invNewBtn,
body.light-mode #staffAddBtn,
body.light-mode .brch-tf-on,
body.light-mode .brch-pt-on,
body.light-mode .bnv-tab-on,
body.light-mode .bnv-cmp-sel-btn.active,
body.light-mode .bnv-drawer-edit-btn,
body.light-mode .appt-cust-tab--active,
body.light-mode .dcal-cell.dcal-selected,
body.light-mode .mcal-day--today,
body.light-mode .mcal-day--sel,
body.light-mode #paywallPayBtn,
body.light-mode #brActionBtn,
body.light-mode #notifTabAll {
  background: #0D9488 !important;
  color: #FFFFFF !important;
  border-color: #0D9488 !important;
}

body.light-mode .btn-invert:hover,
body.light-mode #activatePlanTopbarBtn:hover,
body.light-mode .dash-period-btn.active:hover,
body.light-mode .staff-view-btn.staff-view-active:hover,
body.light-mode .rota-btn-add:hover,
body.light-mode .inv-tab-btn--active:hover,
body.light-mode .inv-tbl-tab--active:hover,
body.light-mode .inv-action-btn--primary:hover,
body.light-mode .brch-tf-on:hover,
body.light-mode .brch-pt-on:hover,
body.light-mode .bnv-tab-on:hover,
body.light-mode .bnv-cmp-sel-btn.active:hover,
body.light-mode .bnv-drawer-edit-btn:hover,
body.light-mode #paywallPayBtn:hover,
body.light-mode #brActionBtn:hover {
  background: #0F766E !important;
  color: #FFFFFF !important;
  border-color: #0F766E !important;
}

/* Inline-style fallback — catches buttons using style="background:var(--cream)..."
   or hardcoded dark hex values inline */
body.light-mode [style*="background:var(--cream)"],
body.light-mode [style*="background: var(--cream)"],
body.light-mode [style*="background:#18181B"],
body.light-mode [style*="background: #18181B"],
body.light-mode [style*="background:#1A1A2E"],
body.light-mode [style*="background: #1A1A2E"],
body.light-mode [style*="background:#111827"],
body.light-mode [style*="background: #111827"],
body.light-mode [style*="background:#111;"],
body.light-mode [style*="background:#111 "],
body.light-mode [style*="background: #111;"],
body.light-mode [style*="background: #111 "],
body.light-mode [style*="background:#000"],
body.light-mode [style*="background: #000"] {
  background: #0D9488 !important;
  color: #FFFFFF !important;
}

/* Ensure SVG/icon strokes inside teal buttons stay white */
body.light-mode .btn-invert svg,
body.light-mode .btn-invert i,
body.light-mode #activatePlanTopbarBtn svg,
body.light-mode .inv-action-btn--primary svg,
body.light-mode .bnv-drawer-edit-btn svg,
body.light-mode #paywallPayBtn svg,
body.light-mode [style*="background:var(--cream)"] svg,
body.light-mode [style*="background: var(--cream)"] svg {
  color: #FFFFFF !important;
  stroke: currentColor !important;
}

/* ── Branches leaderboard rank badge ── */
.bnv-rank-badge { color: #fff !important; }

/* ── VAT Net Payable banner ── */
.vat-net-banner,
.vat-net-banner span,
.vat-net-banner div,
.vat-net-banner svg,
.vat-net-banner svg * {
  color: #ffffff !important;
}
.vat-net-banner { background: #0D9488 !important; }

/* ── VAT Go-to-Settings CTA button ── */
.vat-cta-btn {
  background: #0D9488 !important;
  color: #ffffff !important;
  border-color: #0D9488 !important;
  box-shadow: 0 4px 16px rgba(13,148,136,0.28) !important;
}
.vat-cta-btn:hover { background: #0F766E !important; }
.vat-cta-btn svg, .vat-cta-btn svg * { color: #ffffff !important; fill: white !important; }

/* ── VAT illustration badge ── */
.vat-badge-label { color: #ffffff !important; }

/* ── Plan nav lock indicators (Phase 6) ── */
.sidebar .nav-item.nav-item-locked { opacity: 0.55 !important; cursor: default !important; }
.sidebar .nav-item.nav-item-locked:hover:not(.active) { background: transparent !important; color: var(--cream2) !important; }
body.light-mode .sidebar .nav-item.nav-item-locked:hover:not(.active) { background: transparent !important; color: #71717A !important; }
.nav-lock-icon { margin-left: auto; display: flex; align-items: center; flex-shrink: 0; }
.nav-limited-badge { margin-left: auto; font-size: 0.58rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 1px 5px; border-radius: 4px; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.4); flex-shrink: 0; }
body.light-mode .nav-limited-badge { background: rgba(0,0,0,0.07); color: #9CA3AF; }

/* ── Plan upgrade modal ── */
#planUpgradeModal { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.6); display: none; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
#planUpgradeModal.open { display: flex; }
#planUpgradeModal .pum-box { background: var(--bg2); border: 1px solid rgba(13,148,136,0.25); border-radius: 20px; padding: 28px 28px 24px; width: 400px; max-width: 92vw; box-shadow: 0 32px 80px rgba(0,0,0,0.5); position: relative; overflow: hidden; }
#planUpgradeModal .pum-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(13,148,136,0.5), transparent); }
#planUpgradeModal .pum-icon { width: 48px; height: 48px; border-radius: 14px; background: rgba(13,148,136,0.12); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
#planUpgradeModal .pum-title { font-size: 17px; font-weight: 700; color: var(--cream); margin-bottom: 6px; }
#planUpgradeModal .pum-sub { font-size: 13px; color: var(--cream2); line-height: 1.55; margin-bottom: 20px; }
#planUpgradeModal .pum-footer { display: flex; justify-content: flex-end; gap: 10px; padding-top: 16px; border-top: 1px solid var(--border); }

/* ── Billing — Need Help card light-mode overrides ── */
body.light-mode .billing-help-hdr {
  background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 55%, #f5f3ff 100%) !important;
  border-bottom: 1px solid #ccfbf1;
}
body.light-mode .billing-help-hdr .billing-help-icon {
  background: rgba(13,148,136,0.12) !important;
  backdrop-filter: none;
}
body.light-mode .billing-help-hdr .billing-help-svg { stroke: #0D9488 !important; }
body.light-mode .billing-help-hdr .billing-help-title { color: #0f766e !important; }
body.light-mode .billing-help-hdr .billing-help-sub { color: #6b7280 !important; }
/* Glass glow circles — visible in light mode, not weird */
body.light-mode .billing-help-hdr .billing-help-circle-1 {
  background: rgba(13,148,136,0.15) !important;
  box-shadow: 0 0 22px rgba(13,148,136,0.22);
}
body.light-mode .billing-help-hdr .billing-help-circle-2 {
  background: rgba(8,145,178,0.1) !important;
  box-shadow: 0 0 16px rgba(8,145,178,0.16);
}
