/* ═══════════════════════════════════════════════════════════════
   BOOKR — Premium Appointment Booking Platform
   Design System CSS  |  v1.0.0
   Fonts: Cormorant Garamond (display) · Plus Jakarta Sans (body)
═══════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables: Dark Mode (default) ─────────────────────── */
:root {
  /* Backgrounds */
  --bg:            #080C12;
  --bg2:           #0B0F17;
  --bg3:           #0E131C;
  --surface:       #111620;
  --surface2:      #161C28;
  --surface3:      #1B2232;
  --surface-hover: #202840;

  /* Borders */
  --border:        rgba(99, 179, 237, 0.10);
  --border2:       rgba(99, 179, 237, 0.20);
  --border-accent: rgba(99, 179, 237, 0.40);

  /* Accent: Electric indigo → sapphire */
  --accent:        #5B8DEF;
  --accent-light:  #7BA7F5;
  --accent-dark:   #3D6FD6;
  --accent-glow:   rgba(91, 141, 239, 0.18);
  --accent-soft:   rgba(91, 141, 239, 0.08);

  /* Second accent: teal */
  --teal:          #36D6C6;
  --teal-soft:     rgba(54, 214, 198, 0.12);

  /* Status colors */
  --green:         #34C97B;
  --green-soft:    rgba(52, 201, 123, 0.12);
  --amber:         #F5A623;
  --amber-soft:    rgba(245, 166, 35, 0.12);
  --red:           #F55B5B;
  --red-soft:      rgba(245, 91, 91, 0.12);
  --purple:        #A78BFA;
  --purple-soft:   rgba(167, 139, 250, 0.12);

  /* Text */
  --ink:           #EEF2FF;
  --ink2:          rgba(238, 242, 255, 0.72);
  --ink3:          rgba(238, 242, 255, 0.40);
  --muted:         rgba(238, 242, 255, 0.30);

  /* Gradients */
  --gradient:        linear-gradient(135deg, #5B8DEF 0%, #3D6FD6 100%);
  --gradient-teal:   linear-gradient(135deg, #36D6C6 0%, #2AB8A8 100%);
  --gradient-soft:   linear-gradient(135deg, rgba(91,141,239,0.12), rgba(61,111,214,0.04));
  --gradient-hero:   linear-gradient(135deg, #0B1220 0%, #0D1830 50%, #081428 100%);

  /* Shadows */
  --shadow:       0 2px 16px rgba(0,0,0,0.50);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.65);
  --shadow-blue:  0 4px 24px rgba(91,141,239,0.22);
  --shadow-card:  0 2px 16px rgba(0,0,0,0.45), inset 0 1px 0 rgba(99,179,237,0.06);
  --shadow-float: 0 8px 32px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.30);

  /* Shape */
  --radius:    12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-sm: 8px;
  --radius-xs: 6px;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-sans:    'Plus Jakarta Sans', system-ui, sans-serif;

  /* Sidebar width */
  --sidebar-w: 240px;
}

/* ── CSS Variables: Lite Mode ───────────────────────────────── */
[data-theme="lite"] {
  --bg:            #F0EDE8;
  --bg2:           #EAE6DF;
  --bg3:           #E4DFD7;
  --surface:       #FAF8F5;
  --surface2:      #F5F1EB;
  --surface3:      #EDE8DF;
  --surface-hover: #E8E2D8;

  --border:        rgba(91, 141, 239, 0.12);
  --border2:       rgba(91, 141, 239, 0.22);
  --border-accent: rgba(91, 141, 239, 0.42);

  --accent:        #3D6FD6;
  --accent-light:  #5B8DEF;
  --accent-dark:   #2A55B8;
  --accent-glow:   rgba(61, 111, 214, 0.14);
  --accent-soft:   rgba(61, 111, 214, 0.07);

  --teal:          #2AB8A8;
  --teal-soft:     rgba(42, 184, 168, 0.10);

  --green:         #16A864;
  --green-soft:    rgba(22, 168, 100, 0.10);
  --amber:         #D4891A;
  --amber-soft:    rgba(212, 137, 26, 0.10);
  --red:           #D9363E;
  --red-soft:      rgba(217, 54, 62, 0.10);
  --purple:        #7C5CDB;
  --purple-soft:   rgba(124, 92, 219, 0.10);

  --ink:           #1A1F2E;
  --ink2:          rgba(26, 31, 46, 0.72);
  --ink3:          rgba(26, 31, 46, 0.42);
  --muted:         rgba(26, 31, 46, 0.32);

  --gradient:        linear-gradient(135deg, #3D6FD6 0%, #2A55B8 100%);
  --gradient-teal:   linear-gradient(135deg, #2AB8A8 0%, #1E9888 100%);
  --gradient-soft:   linear-gradient(135deg, rgba(61,111,214,0.08), rgba(42,85,184,0.03));
  --gradient-hero:   linear-gradient(135deg, #E8E4DD 0%, #EDE9E1 50%, #E4E0D8 100%);

  --shadow:       0 2px 12px rgba(80,80,120,0.10);
  --shadow-lg:    0 8px 32px rgba(80,80,120,0.15);
  --shadow-blue:  0 4px 20px rgba(61,111,214,0.16);
  --shadow-card:  0 2px 12px rgba(80,80,120,0.08), inset 0 1px 0 rgba(255,255,255,0.80);
  --shadow-float: 0 8px 32px rgba(80,80,120,0.14), 0 2px 8px rgba(80,80,120,0.08);
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
[data-theme="lite"] body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 40% at 15% 0%, rgba(91,141,239,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 30% at 90% 100%, rgba(42,184,168,0.05) 0%, transparent 55%);
}
a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-light); }
button { font-family: var(--font-sans); cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: var(--font-sans); }

/* ── Layout ─────────────────────────────────────────────────── */
.app-layout {
  display: flex;
  min-height: 100vh;
}
.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
  box-shadow: 2px 0 24px rgba(0,0,0,0.30);
}
[data-theme="lite"] .sidebar {
  background: #FAF8F5;
  box-shadow: 2px 0 20px rgba(80,80,120,0.08);
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

/* Brand */
.sidebar-brand {
  padding: 22px 18px 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 0.02em;
  line-height: 1;
}
.sidebar-tagline {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 3px;
}

/* Business card in sidebar */
.sidebar-business {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-business-icon {
  width: 34px; height: 34px;
  background: var(--accent-soft);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.sidebar-business-name {
  font-family: var(--font-display);
  font-size: 0.88rem; font-weight: 600;
  color: var(--ink); line-height: 1.2;
}
.sidebar-business-type {
  font-size: 10.5px; color: var(--muted);
  letter-spacing: 0.05em;
}

/* Nav */
.sidebar-nav { padding: 10px 0; flex: 1; }
.nav-section-label {
  padding: 10px 18px 4px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 18px;
  color: var(--ink3);
  font-size: 13px; font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
  border-left: 3px solid transparent;
  position: relative;
}
.nav-item:hover {
  background: var(--accent-soft);
  color: var(--ink2);
}
.nav-item.active {
  background: linear-gradient(90deg, rgba(91,141,239,0.14) 0%, rgba(91,141,239,0.03) 100%);
  color: var(--accent-light);
  border-left-color: var(--accent);
}
[data-theme="lite"] .nav-item.active {
  background: linear-gradient(90deg, rgba(61,111,214,0.10) 0%, rgba(61,111,214,0.02) 100%);
  color: var(--accent-dark);
  border-left-color: var(--accent);
}
.nav-icon { font-size: 0.95rem; width: 18px; text-align: center; flex-shrink: 0; }
.nav-badge {
  margin-left: auto;
  background: var(--accent);
  color: white;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  line-height: 1.5;
}
.nav-badge-red { background: var(--red); }

/* Sidebar footer */
.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* ── Topbar ───────────────────────────────────────────────────── */
.topbar {
  height: 58px;
  background: rgba(11, 15, 23, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  position: sticky; top: 0; z-index: 50;
  flex-shrink: 0;
}
[data-theme="lite"] .topbar {
  background: rgba(250, 248, 245, 0.92);
  border-bottom-color: rgba(91,141,239,0.10);
  box-shadow: 0 1px 10px rgba(80,80,120,0.06);
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-breadcrumb {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.topbar-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink2);
  font-weight: 600;
}
.topbar-icon-btn {
  width: 36px; height: 36px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  color: var(--ink3);
  cursor: pointer;
  transition: all 0.15s;
}
.topbar-icon-btn:hover {
  background: rgba(91,141,239,0.14);
  border-color: var(--border2);
  color: var(--accent-light);
}
.user-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 4px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.15s;
}
.user-pill:hover { border-color: var(--border2); }
.user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: white;
  flex-shrink: 0;
}
.user-name { font-size: 12.5px; font-weight: 500; color: var(--ink2); }

/* ── Page body ───────────────────────────────────────────────── */
.page-body { padding: 24px 28px; flex: 1; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; gap: 16px; }
.page-title { font-family: var(--font-display); font-size: 1.65rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
.page-subtitle { font-size: 13px; color: var(--ink3); margin-top: 3px; }
.section-heading {
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 600;
  color: var(--ink2);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px; margin-top: 22px;
  letter-spacing: 0.02em;
}

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91,141,239,0.28), transparent);
  pointer-events: none;
}
[data-theme="lite"] .card::before {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.90), transparent);
}
.card:hover { border-color: var(--border2); box-shadow: var(--shadow-float); }
.card-body  { padding: 20px 22px; }
.card-title { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; color: var(--ink2); margin-bottom: 12px; }

/* Stat cards */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  position: relative; overflow: hidden;
  transition: all 0.2s;
}
.stat-card:hover { border-color: var(--border-accent); box-shadow: var(--shadow-blue); }
.stat-icon { font-size: 1.5rem; margin-bottom: 8px; }
.stat-value { font-family: var(--font-display); font-size: 2.0rem; font-weight: 700; color: var(--ink); line-height: 1; }
.stat-label { font-size: 11.5px; color: var(--ink3); margin-top: 4px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.stat-sub   { font-size: 12px; color: var(--ink3); margin-top: 6px; }
.stat-delta { font-size: 11.5px; margin-top: 4px; font-weight: 600; }
.stat-delta.up   { color: var(--green); }
.stat-delta.down { color: var(--red); }
.stat-progress { margin-top: 10px; }
.progress-track { height: 4px; background: var(--surface2); border-radius: 2px; overflow: hidden; }
.progress-fill  { height: 100%; background: var(--gradient); border-radius: 2px; transition: width 0.6s ease; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: all 0.18s;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.3;
}
.btn-primary {
  background: var(--gradient);
  color: white;
  border-color: var(--accent-dark);
  box-shadow: 0 2px 10px var(--accent-glow);
}
.btn-primary:hover {
  filter: brightness(1.10);
  box-shadow: 0 4px 18px rgba(91,141,239,0.35);
  transform: translateY(-1px);
  color: white;
}
.btn-secondary {
  background: var(--accent-soft);
  color: var(--accent-light);
  border-color: var(--border2);
}
.btn-secondary:hover { background: rgba(91,141,239,0.14); border-color: var(--border-accent); }
.btn-ghost { background: transparent; color: var(--ink3); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface2); color: var(--ink2); border-color: var(--border2); }
.btn-danger { background: var(--red-soft); color: var(--red); border-color: rgba(245,91,91,0.25); }
.btn-danger:hover { background: rgba(245,91,91,0.20); }
.btn-success { background: var(--green-soft); color: var(--green); border-color: rgba(52,201,123,0.25); }
.btn-teal { background: var(--teal-soft); color: var(--teal); border-color: rgba(54,214,198,0.25); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 12px 28px; font-size: 15px; border-radius: var(--radius); }
.btn-pill { border-radius: 50px; }
.btn-icon { padding: 8px; border-radius: var(--radius-sm); aspect-ratio: 1; justify-content: center; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ── Forms ───────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--ink3); margin-bottom: 6px; letter-spacing: 0.04em; text-transform: uppercase; }
.form-control {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 13.5px;
  padding: 10px 13px;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.form-control::placeholder { color: var(--muted); }
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
[data-theme="lite"] .form-control { background: rgba(250,248,245,0.90); border-color: rgba(91,141,239,0.18); color: var(--ink); }
[data-theme="lite"] .form-control:focus { background: #FFFFFF; }
textarea.form-control { resize: vertical; min-height: 90px; }
select.form-control { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
[data-theme="lite"] select.form-control option { background: #FAF8F5; color: var(--ink); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; }
.form-check input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); }
.form-hint { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.form-error { font-size: 11.5px; color: var(--red); margin-top: 4px; }
.error-msg { background: var(--red-soft); border: 1px solid rgba(245,91,91,0.25); color: var(--red); padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 14px; }
.success-msg { background: var(--green-soft); border: 1px solid rgba(52,201,123,0.25); color: var(--green); padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 14px; }

/* ── Tables ──────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead tr { border-bottom: 1px solid var(--border); }
th { text-align: left; padding: 10px 14px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
td { padding: 13px 14px; font-size: 13px; color: var(--ink2); vertical-align: middle; border-bottom: 1px solid var(--border); }
.data-table tbody tr:hover td { background: var(--accent-soft); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px;
  border-radius: 50px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge::before { content: '●'; font-size: 7px; }
.badge-pending   { background: var(--amber-soft); color: var(--amber); }
.badge-confirmed { background: var(--green-soft);  color: var(--green); }
.badge-completed { background: var(--teal-soft);   color: var(--teal); }
.badge-cancelled { background: var(--red-soft);    color: var(--red); }
.badge-noshow    { background: var(--purple-soft);  color: var(--purple); }
.badge-neutral   { background: var(--accent-soft);  color: var(--accent); border: 1px solid var(--border); }
.badge-admin     { background: rgba(167,139,250,0.12); color: var(--purple); }
.badge-provider  { background: var(--teal-soft); color: var(--teal); }
.badge-customer  { background: var(--green-soft); color: var(--green); }
.badge-super     { background: linear-gradient(135deg,rgba(245,166,35,0.18),rgba(245,91,91,0.10)); color: var(--amber); }

/* ── Modal ───────────────────────────────────────────────────── */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.70); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
.modal { background: var(--surface); border: 1px solid var(--border2); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; position: relative; }
[data-theme="lite"] .modal { background: rgba(250,248,245,0.97); box-shadow: 0 16px 60px rgba(80,80,120,0.20); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.modal-close { width: 30px; height: 30px; background: var(--surface2); border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; color: var(--ink3); cursor: pointer; transition: all 0.15s; }
.modal-close:hover { background: var(--red-soft); color: var(--red); border-color: rgba(245,91,91,0.25); }
.modal-body { padding: 20px 22px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--border); }

/* ── Toast notifications ──────────────────────────────────────── */
.toast-stack { position: fixed; bottom: 20px; right: 20px; z-index: 500; display: flex; flex-direction: column; gap: 8px; }
.toast {
  padding: 12px 18px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-float);
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--ink2);
  min-width: 260px; max-width: 380px;
  animation: toast-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.toast.success { border-color: rgba(52,201,123,0.30); }
.toast.error   { border-color: rgba(245,91,91,0.30); }
@keyframes toast-in { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:translateX(0); } }

/* ── Calendar ────────────────────────────────────────────────── */
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 6px; }
.cal-day {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  min-height: 80px;
  transition: all 0.15s;
  cursor: pointer;
  position: relative;
}
.cal-day:hover { border-color: var(--border-accent); background: var(--accent-soft); }
.cal-day.today { border-color: var(--accent); background: var(--accent-soft); }
.cal-day.selected { background: var(--gradient); border-color: var(--accent-dark); }
.cal-day.selected .cal-day-num { color: white; }
.cal-day-num { font-weight: 700; font-size: 13px; color: var(--ink2); }
.cal-day.other-month .cal-day-num { color: var(--muted); }
.cal-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; margin: 1px; }

/* ── Slot picker ──────────────────────────────────────────────── */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
.slot-btn {
  padding: 10px 8px; text-align: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; color: var(--ink2);
  cursor: pointer; transition: all 0.15s;
}
.slot-btn:hover:not(.slot-taken) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-light); }
.slot-btn.selected { background: var(--gradient); border-color: var(--accent-dark); color: white; }
.slot-btn.slot-taken { opacity: 0.38; cursor: not-allowed; text-decoration: line-through; }

/* ── Provider / service cards ─────────────────────────────────── */
.provider-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.provider-card:hover { border-color: var(--border2); transform: translateY(-2px); box-shadow: var(--shadow-float); }
.provider-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  object-fit: cover; background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700; color: white;
  flex-shrink: 0;
}
.provider-name { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--ink); }
.provider-spec { font-size: 12px; color: var(--ink3); }
.star-rating { color: var(--amber); font-size: 12px; }

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: all 0.2s;
  cursor: pointer;
}
.service-card:hover { border-color: var(--accent); background: var(--accent-soft); }
.service-card.selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent-glow); }
.service-price { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--accent-light); }
.service-duration { font-size: 11.5px; color: var(--muted); }

/* ── Auth pages ───────────────────────────────────────────────── */
.auth-wrap { min-height: 100vh; display: flex; }
.auth-left {
  width: 420px; flex-shrink: 0;
  background: linear-gradient(160deg, #0A1020 0%, #0D1630 60%, #080E1C 100%);
  padding: 48px 40px;
  display: flex; flex-direction: column; justify-content: center;
  border-right: 1px solid var(--border);
  position: relative; overflow: hidden;
}
[data-theme="lite"] .auth-left {
  background: linear-gradient(160deg, #E8E4DD 0%, #EDE8DF 60%, #E4DFD6 100%);
}
.auth-left::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91,141,239,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.auth-logo-display {
  font-family: var(--font-display);
  font-size: 2.8rem; font-weight: 700;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 6px;
}
[data-theme="lite"] .auth-logo-display { color: var(--accent-dark); }
.auth-logo-sub { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.auth-right {
  flex: 1;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
}
[data-theme="lite"] .auth-right { background: var(--bg); }
.auth-form-wrap {
  width: 100%; max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-float);
  position: relative; overflow: hidden;
}
.auth-form-wrap::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91,141,239,0.35), transparent);
}
[data-theme="lite"] .auth-form-wrap {
  background: rgba(250,248,245,0.96);
  box-shadow: 0 8px 40px rgba(80,80,120,0.12);
}
[data-theme="lite"] .auth-form-wrap::before {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.90), transparent);
}
.auth-form-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.auth-form-sub   { font-size: 13px; color: var(--ink3); margin-bottom: 22px; }
.auth-footer     { text-align: center; margin-top: 18px; font-size: 13px; color: var(--ink3); }
.auth-link       { color: var(--accent-light); font-weight: 600; }
.auth-link:hover { color: var(--teal); }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: var(--muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── Booking flow ─────────────────────────────────────────────── */
.booking-steps { display: flex; align-items: center; gap: 0; margin-bottom: 28px; }
.step { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.step.active { color: var(--accent-light); }
.step.done   { color: var(--green); }
.step-num { width: 26px; height: 26px; border-radius: 50%; background: var(--surface2); border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.step.active .step-num { background: var(--accent); border-color: var(--accent-dark); color: white; }
.step.done .step-num   { background: var(--green); border-color: var(--green); color: white; }
.step-connector { flex: 1; height: 1px; background: var(--border); margin: 0 6px; max-width: 40px; }

/* ── Appointment card ─────────────────────────────────────────── */
.appt-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 8px;
  transition: all 0.15s;
  box-shadow: var(--shadow-card);
}
.appt-card:hover { border-color: var(--border2); box-shadow: var(--shadow-float); }
[data-theme="lite"] .appt-card { background: var(--surface); }
.appt-time-box {
  width: 54px; height: 54px;
  background: var(--accent-soft);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.appt-time-hour  { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--accent-light); line-height: 1; }
.appt-time-ampm  { font-size: 9.5px; color: var(--muted); letter-spacing: 0.06em; margin-top: 2px; }
.appt-info { flex: 1; min-width: 0; }
.appt-name       { font-weight: 600; font-size: 13.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt-meta       { font-size: 11.5px; color: var(--ink3); margin-top: 2px; }

/* ── Schedule grid ────────────────────────────────────────────── */
.schedule-day { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 8px; display: flex; align-items: center; gap: 14px; }
.schedule-day-name { width: 90px; font-weight: 600; font-size: 13px; flex-shrink: 0; }
.schedule-active { color: var(--green); }
.schedule-inactive { color: var(--muted); }

/* ── Rating stars ─────────────────────────────────────────────── */
.stars { display: inline-flex; gap: 2px; }
.star { font-size: 14px; cursor: pointer; transition: transform 0.1s; }
.star:hover { transform: scale(1.2); }
.star.filled { color: var(--amber); }
.star.empty  { color: var(--border2); }

/* ── Empty state ──────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 48px 20px; }
.empty-icon  { font-size: 3rem; opacity: 0.5; display: block; margin-bottom: 12px; }
.empty-state h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink2); margin-bottom: 6px; }
.empty-state p  { font-size: 13px; color: var(--muted); }

/* ── Utility ──────────────────────────────────────────────────── */
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.gap-2  { gap: 8px; }
.gap-3  { gap: 12px; }
.gap-4  { gap: 16px; }
.mb-2   { margin-bottom: 8px; }
.mb-3   { margin-bottom: 12px; }
.mb-4   { margin-bottom: 16px; }
.mt-4   { margin-top: 16px; }
.text-muted { color: var(--muted); }
.text-sm    { font-size: 12px; }
.text-xs    { font-size: 11px; }
.font-display { font-family: var(--font-display); }
.hidden { display: none !important; }
.w-full { width: 100%; }

/* ── Theme toggle button ──────────────────────────────────────── */
.theme-toggle-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-soft); border: 1px solid var(--border2);
  border-radius: 20px; padding: 6px 14px;
  font-size: 12px; font-family: var(--font-sans);
  color: var(--ink3); cursor: pointer;
  transition: all 0.2s; white-space: nowrap; height: 34px;
}
.theme-toggle-btn:hover { background: rgba(91,141,239,0.14); border-color: var(--border-accent); color: var(--accent-light); }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --sidebar-w: 200px; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.3s; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .auth-left { display: none; }
  .page-body { padding: 16px; }
}

/* ── Animations ───────────────────────────────────────────────── */
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fade-in 0.3s ease forwards; }

/* ── Scrollbar ────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-accent); }

/* ── Glow accents for dark mode ───────────────────────────────── */
.glow-card::after {
  content: '';
  position: absolute;
  bottom: -20px; left: 50%;
  transform: translateX(-50%);
  width: 60%; height: 30px;
  background: radial-gradient(ellipse, rgba(91,141,239,0.18) 0%, transparent 70%);
  pointer-events: none;
}
