/* =============================================================================
   ZINEPH SPA & SALON — Design System
   A refined, editorial aesthetic for a luxury Nairobi spa.
   ============================================================================= */

/* ----------------------------------------------------------------------------
   Design tokens — light (default)
   ---------------------------------------------------------------------------- */
:root {
  /* Surfaces — warm off-white palette */
  --bg:          #f8f5ef;
  --bg-2:        #f1ece2;
  --surface:     #ffffff;
  --surface-2:   #fdfaf4;
  --surface-3:   #f5efe4;

  /* Ink — warm charcoals */
  --ink:         #1a1612;
  --ink-2:       #3d342b;
  --ink-3:       #6b5d4f;
  --ink-4:       #a89680;
  --ink-muted:   #8a7a65;

  /* Brand — champagne gold */
  --brand:       #b8956a;
  --brand-dark:  #8a6d47;
  --brand-light: #d4b88a;
  --brand-soft:  #f0e5d0;
  --brand-tint:  #faf3e6;

  /* States */
  --success:     #4a7c59;
  --success-soft:#e8f0ea;
  --warning:     #b8863a;
  --warning-soft:#faf0db;
  --danger:      #a84848;
  --danger-soft: #f5e6e6;
  --info:        #4a6b82;
  --info-soft:   #e6edf2;

  /* Strokes */
  --border:      #e8ddc9;
  --border-2:    #d9ccb2;
  --divider:     #eee5d2;

  /* Effects */
  --shadow-sm:   0 1px 2px rgba(60, 40, 20, 0.04), 0 1px 1px rgba(60, 40, 20, 0.02);
  --shadow-md:   0 2px 4px rgba(60, 40, 20, 0.06), 0 4px 12px rgba(60, 40, 20, 0.04);
  --shadow-lg:   0 8px 16px rgba(60, 40, 20, 0.08), 0 16px 32px rgba(60, 40, 20, 0.06);
  --shadow-brand:0 4px 20px rgba(184, 149, 106, 0.25);

  /* Typography */
  --font-display: 'Fraunces', 'Cormorant Garamond', ui-serif, Georgia, serif;
  --font-body:    'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   18px;
  --radius-xl:   28px;
  --radius-pill: 999px;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  --sidebar-w:  260px;
  --header-h:   68px;
}

/* ----------------------------------------------------------------------------
   Dark theme — warm, not cold
   ---------------------------------------------------------------------------- */
[data-theme="dark"] {
  --bg:          #12100d;
  --bg-2:        #1a1713;
  --surface:     #1e1a15;
  --surface-2:   #25201b;
  --surface-3:   #2e2820;

  --ink:         #f5ede0;
  --ink-2:       #e0d5c2;
  --ink-3:       #b8aa92;
  --ink-4:       #897c66;
  --ink-muted:   #9c8d75;

  --brand:       #d4b88a;
  --brand-dark:  #b8956a;
  --brand-light: #e8d4ad;
  --brand-soft:  #3d3223;
  --brand-tint:  #2a231a;

  --success:     #7ab089;
  --success-soft:#1f2d23;
  --warning:     #e0a860;
  --warning-soft:#332a1c;
  --danger:      #d47878;
  --danger-soft: #332020;
  --info:        #8aa8c0;
  --info-soft:   #1f2830;

  --border:      #2e2820;
  --border-2:    #3d3628;
  --divider:     #28231c;

  --shadow-sm:   0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md:   0 2px 4px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-lg:   0 8px 16px rgba(0, 0, 0, 0.35), 0 16px 32px rgba(0, 0, 0, 0.25);
  --shadow-brand:0 4px 20px rgba(212, 184, 138, 0.15);
}

/* ----------------------------------------------------------------------------
   Reset + base
   ---------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
}

/* Subtle grain overlay for texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
[data-theme="dark"] body::before { mix-blend-mode: overlay; opacity: 0.04; }

img, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: var(--brand-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brand); }
[data-theme="dark"] a { color: var(--brand); }
[data-theme="dark"] a:hover { color: var(--brand-light); }

h1,h2,h3,h4,h5 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 300; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 300; }
h3 { font-size: 1.25rem; font-weight: 400; }
h4 { font-size: 1.05rem; font-weight: 500; }
small, .small { font-size: 0.8125rem; color: var(--ink-muted); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-dark);
}
[data-theme="dark"] .eyebrow { color: var(--brand); }

/* ----------------------------------------------------------------------------
   Layout — app shell
   ---------------------------------------------------------------------------- */
.app { display: flex; min-height: 100vh; position: relative; z-index: 2; }

.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  position: fixed; inset: 0 auto 0 0;
  display: flex; flex-direction: column;
  z-index: 30;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar__brand {
  padding: 1.5rem 1.5rem 1.25rem;
  border-bottom: 1px solid var(--divider);
}
.sidebar__brand .logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.sidebar__brand .logo em {
  font-style: italic;
  color: var(--brand);
  font-weight: 400;
}
.sidebar__brand .tag {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 2px;
}

.sidebar__nav { flex: 1; padding: 1rem 0.75rem; overflow-y: auto; }
.sidebar__section { margin-bottom: 1.5rem; }
.sidebar__label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.25rem;
}

.nav-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  position: relative;
}
.nav-link:hover { background: var(--surface-3); color: var(--ink); }
.nav-link.active {
  background: var(--brand-tint);
  color: var(--brand-dark);
}
[data-theme="dark"] .nav-link.active { color: var(--brand-light); }
.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: var(--brand);
  border-radius: 0 3px 3px 0;
}
.nav-link svg { width: 18px; height: 18px; stroke-width: 1.75; flex-shrink: 0; }
.nav-link .badge {
  margin-left: auto;
  background: var(--brand);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  min-width: 18px;
  text-align: center;
}

.sidebar__footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--divider);
  display: flex; align-items: center; gap: 0.75rem;
}

/* Main area */
.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
  display: flex; flex-direction: column;
}

.topbar {
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex; align-items: center; gap: 1rem;
  position: sticky; top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
}

.topbar__title { flex: 1; min-width: 0; }
.topbar__title h1 {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__actions { display: flex; align-items: center; gap: 0.5rem; }

.content { flex: 1; padding: 2rem; min-height: 0; }
.content--narrow { max-width: 1200px; margin: 0 auto; }

.burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  align-items: center; justify-content: center;
  color: var(--ink-2);
}
.burger:hover { background: var(--surface-3); color: var(--ink); }

/* ----------------------------------------------------------------------------
   Components — buttons
   ---------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.2s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; stroke-width: 2; }

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover:not(:disabled) {
  background: var(--ink-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
[data-theme="dark"] .btn-primary { background: var(--brand); color: var(--ink); }
[data-theme="dark"] .btn-primary:hover:not(:disabled) { background: var(--brand-light); }

.btn-gold {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: white;
  border: none;
}
.btn-gold:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  transform: translateY(-1px);
  box-shadow: var(--shadow-brand);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--border-2);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--surface-3);
  color: var(--ink);
  border-color: var(--ink-4);
}

.btn-soft {
  background: var(--surface-3);
  color: var(--ink);
}
.btn-soft:hover:not(:disabled) { background: var(--brand-soft); color: var(--brand-dark); }
[data-theme="dark"] .btn-soft:hover:not(:disabled) { color: var(--brand); }

.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-danger:hover:not(:disabled) { background: #8a3a3a; transform: translateY(-1px); }

.btn-wa {
  background: #25d366;
  color: white;
}
.btn-wa:hover:not(:disabled) { background: #128c7e; transform: translateY(-1px); color: white; }

.btn-sm { padding: 0.4rem 0.875rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.875rem 2rem; font-size: 0.95rem; }
.btn-icon { padding: 0.5rem; width: 36px; height: 36px; border-radius: var(--radius-sm); }
.btn-block { width: 100%; }

/* Icon button for top bar etc */
.icon-btn {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  transition: all 0.2s;
  position: relative;
}
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; stroke-width: 1.75; }
.icon-btn .dot {
  position: absolute; top: 8px; right: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--danger);
  border: 2px solid var(--surface);
}

/* ----------------------------------------------------------------------------
   Cards
   ---------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.card__body { padding: 1.5rem; }
.card__head {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--divider);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.card__head h3 { font-size: 1.1rem; font-weight: 400; }
.card__foot {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--divider);
  background: var(--surface-2);
}

/* Stat card — for dashboard */
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.stat__label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}
.stat__value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.stat__value small {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-left: 0.25rem;
  font-weight: 400;
}
.stat__delta {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-top: 0.5rem;
}
.stat__delta.up { color: var(--success); }
.stat__delta.down { color: var(--danger); }
.stat__icon {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--brand-tint);
  color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
}
[data-theme="dark"] .stat__icon { color: var(--brand); }
.stat__icon svg { width: 20px; height: 20px; }

/* ----------------------------------------------------------------------------
   Forms
   ---------------------------------------------------------------------------- */
.field { margin-bottom: 1.25rem; }
.field__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 0.375rem;
  letter-spacing: 0.01em;
}
.field__hint {
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 0.25rem;
}
.field__error {
  font-size: 0.75rem;
  color: var(--danger);
  margin-top: 0.25rem;
}
.field--inline { display: flex; gap: 1rem; align-items: center; }

.input, .select, .textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.input::placeholder { color: var(--ink-4); }
.textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23897c66'%3E%3Cpath d='M5 8l5 5 5-5H5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
}

.checkbox, .radio {
  display: inline-flex; align-items: center; gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
}
.checkbox input, .radio input {
  width: 16px; height: 16px;
  accent-color: var(--brand);
}

/* ----------------------------------------------------------------------------
   Tables
   ---------------------------------------------------------------------------- */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left;
  padding: 0.875rem 1rem;
  background: var(--surface-2);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td {
  padding: 1rem;
  border-bottom: 1px solid var(--divider);
  font-size: 0.9rem;
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background 0.15s; }
.table tbody tr:hover { background: var(--surface-2); }

/* ----------------------------------------------------------------------------
   Badges / pills
   ---------------------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.2rem 0.625rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge-pending  { background: var(--warning-soft); color: var(--warning); }
.badge-confirmed{ background: var(--info-soft);    color: var(--info); }
.badge-checked  { background: var(--brand-soft);   color: var(--brand-dark); }
[data-theme="dark"] .badge-checked { color: var(--brand-light); }
.badge-progress { background: var(--brand-soft);   color: var(--brand-dark); }
.badge-completed{ background: var(--success-soft); color: var(--success); }
.badge-cancelled{ background: var(--danger-soft);  color: var(--danger); }
.badge-noshow   { background: var(--surface-3);    color: var(--ink-muted); }

/* ----------------------------------------------------------------------------
   Avatar
   ---------------------------------------------------------------------------- */
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 500;
  font-size: 0.85rem;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--surface);
}
[data-theme="dark"] .avatar { color: var(--brand-light); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 28px; height: 28px; font-size: 0.75rem; }
.avatar-lg { width: 52px; height: 52px; font-size: 1.1rem; }
.avatar-xl { width: 72px; height: 72px; font-size: 1.4rem; border-width: 3px; }

.avatar-stack { display: inline-flex; }
.avatar-stack .avatar + .avatar { margin-left: -10px; }

/* ----------------------------------------------------------------------------
   Grid utilities
   ---------------------------------------------------------------------------- */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.flex { display: flex; gap: 0.75rem; align-items: center; }
.flex-col { display: flex; flex-direction: column; gap: 0.75rem; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }

/* ----------------------------------------------------------------------------
   Alerts / flash
   ---------------------------------------------------------------------------- */
.alert {
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  border-left: 3px solid;
  display: flex; align-items: flex-start; gap: 0.625rem;
}
.alert-success { background: var(--success-soft); color: var(--success); border-color: var(--success); }
.alert-danger  { background: var(--danger-soft);  color: var(--danger);  border-color: var(--danger); }
.alert-warning { background: var(--warning-soft); color: var(--warning); border-color: var(--warning); }
.alert-info    { background: var(--info-soft);    color: var(--info);    border-color: var(--info); }

/* ----------------------------------------------------------------------------
   Public-facing pages (booking, landing, client portal)
   ---------------------------------------------------------------------------- */
.public {
  min-height: 100vh;
  position: relative;
  z-index: 2;
}

.public__header {
  padding: 1.25rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1400px; margin: 0 auto;
}
.public__logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.public__logo em {
  font-style: italic;
  color: var(--brand);
  font-weight: 400;
}

.hero {
  padding: 3rem 2rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.hero__title em {
  font-style: italic;
  color: var(--brand);
  font-weight: 400;
}
.hero__subtitle {
  font-size: 1.125rem;
  color: var(--ink-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* ----------------------------------------------------------------------------
   Service card (public booking)
   ---------------------------------------------------------------------------- */
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}
.service-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.service-card.selected {
  border-color: var(--brand);
  background: var(--brand-tint);
  box-shadow: var(--shadow-brand);
}
.service-card__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}
.service-card__desc {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
  min-height: 2.25rem;
}
.service-card__meta {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--divider);
  font-size: 0.85rem;
}
.service-card__duration {
  color: var(--ink-muted);
  display: flex; align-items: center; gap: 0.3rem;
}
.service-card__price {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
}

/* Category chips */
.chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.chip {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.2s;
}
.chip:hover { border-color: var(--brand); color: var(--brand-dark); }
.chip.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
[data-theme="dark"] .chip.active { background: var(--brand); color: var(--ink); border-color: var(--brand); }

/* ----------------------------------------------------------------------------
   Calendar
   ---------------------------------------------------------------------------- */
.calendar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.calendar__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--divider);
}
.calendar__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
}

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.calendar__dow {
  padding: 0.75rem 0.5rem;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--divider);
}
.calendar__day {
  aspect-ratio: 1/1;
  min-height: 40px;
  padding: 0.5rem;
  border-right: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
  color: var(--ink-2);
}
.calendar__day:nth-child(7n) { border-right: none; }
.calendar__day:hover:not(.disabled) { background: var(--surface-3); }
.calendar__day.disabled { color: var(--ink-4); cursor: not-allowed; opacity: 0.4; }
.calendar__day.other { color: var(--ink-4); opacity: 0.4; }
.calendar__day.today { font-weight: 600; color: var(--brand-dark); }
[data-theme="dark"] .calendar__day.today { color: var(--brand); }
.calendar__day.selected {
  background: var(--ink);
  color: var(--bg);
  font-weight: 500;
}
[data-theme="dark"] .calendar__day.selected { background: var(--brand); color: var(--ink); }
.calendar__day.has-bookings::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--brand);
}

/* Time-slot grid */
.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.5rem;
}
.slot {
  padding: 0.625rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--ink-2);
}
.slot:hover:not(.disabled) {
  border-color: var(--brand);
  color: var(--brand-dark);
}
[data-theme="dark"] .slot:hover:not(.disabled) { color: var(--brand); }
.slot.selected {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
[data-theme="dark"] .slot.selected { background: var(--brand); color: var(--ink); border-color: var(--brand); }
.slot.disabled { opacity: 0.3; cursor: not-allowed; }

/* ----------------------------------------------------------------------------
   Stepper (multi-step booking flow)
   ---------------------------------------------------------------------------- */
.stepper {
  display: flex; gap: 0;
  margin-bottom: 2rem;
  overflow-x: auto;
}
.step {
  flex: 1;
  min-width: 120px;
  padding: 1rem 0.5rem;
  text-align: center;
  position: relative;
  color: var(--ink-muted);
  font-size: 0.85rem;
}
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--ink-muted);
  font-weight: 500;
  margin-bottom: 0.375rem;
  border: 2px solid transparent;
  transition: all 0.2s;
}
.step.done .step__num { background: var(--success); color: white; }
.step.current .step__num {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--brand);
}
[data-theme="dark"] .step.current .step__num { background: var(--brand); color: var(--ink); }
.step.current { color: var(--ink); font-weight: 500; }
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: calc(1rem + 15px);
  left: calc(50% + 20px);
  right: calc(-50% + 20px);
  height: 2px;
  background: var(--divider);
}
.step.done:not(:last-child)::after { background: var(--success); }

/* ----------------------------------------------------------------------------
   Modal
   ---------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(20, 15, 10, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s;
}
.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  animation: slideUp 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal__head {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--divider);
  display: flex; align-items: center; justify-content: space-between;
}
.modal__body { padding: 1.5rem; }
.modal__foot {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--divider);
  display: flex; gap: 0.75rem; justify-content: flex-end;
  background: var(--surface-2);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ----------------------------------------------------------------------------
   WhatsApp floating button
   ---------------------------------------------------------------------------- */
.wa-float {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 40;
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
  color: white;
}
.wa-float svg { width: 28px; height: 28px; }

/* ----------------------------------------------------------------------------
   Utility classes
   ---------------------------------------------------------------------------- */
.muted { color: var(--ink-muted); }
.gold  { color: var(--brand-dark); }
[data-theme="dark"] .gold { color: var(--brand); }
.mono  { font-family: var(--font-mono); font-size: 0.85rem; }
.center { text-align: center; }
.right { text-align: right; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.divider { height: 1px; background: var(--divider); margin: 1.5rem 0; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }

/* ----------------------------------------------------------------------------
   Mobile
   ---------------------------------------------------------------------------- */
@media (max-width: 900px) {
  :root { --sidebar-w: 260px; }
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .burger { display: flex; }
  .content { padding: 1.25rem; }
  .topbar { padding: 0 1rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-auto { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .stat__value { font-size: 1.75rem; }
  .hero { padding: 2rem 1rem 3rem; }
  .public__header { padding: 1rem; }
  .stepper { padding: 0 0.5rem; }
  .step { min-width: 80px; font-size: 0.75rem; }
  .step__num { width: 28px; height: 28px; font-size: 0.85rem; }
}

/* Sidebar overlay on mobile */
.sidebar-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 25;
}
.sidebar-backdrop.show { display: block; }

/* Smooth transitions on theme toggle */
@media (prefers-reduced-motion: no-preference) {
  body, .card, .sidebar, .topbar, .btn, .input, .stat {
    transition: background-color 0.25s, border-color 0.25s, color 0.25s;
  }
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--surface-3) 0%, var(--surface-2) 50%, var(--surface-3) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Print */
@media print {
  .sidebar, .topbar, .btn, .wa-float { display: none !important; }
  .main { margin-left: 0; }
  .card { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
}
