/* ═══════════════════════════════════════════════
   BYTWANA SALON — Design System
   Warm, modern, premium aesthetic
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

/* RTL & Kurdish font styling */
[dir="rtl"], body.lang-ku {
  font-family: 'Vazirmatn', 'Segoe UI', sans-serif !important;
}
[dir="rtl"] .sidebar {
  border-right: none !important;
  border-left: 1px solid var(--border-subtle) !important;
}


/* ── CSS Variables ── */
:root {
  /* Warm color palette */
  --gold-50: #FFF9E6;
  --gold-100: #FFF0BF;
  --gold-200: #FFE599;
  --gold-300: #FFD666;
  --gold-400: #FFC833;
  --gold-500: #D4A843;
  --gold-600: #B8922E;
  --gold-700: #8B6914;
  --gold-800: #5E4700;

  --warm-50: #FDF8F0;
  --warm-100: #F5EDE0;
  --warm-200: #E8D9C5;
  --warm-300: #D4BFA6;
  --warm-400: #BFA488;

  --dark-900: #0F0E0C;
  --dark-800: #1A1816;
  --dark-700: #252320;
  --dark-600: #302D2A;
  --dark-500: #3D3A36;
  --dark-400: #4A4642;
  --dark-300: #6B6660;
  --dark-200: #8C867F;
  --dark-100: #ADA69E;

  --rose-500: #E8786B;
  --rose-400: #F09488;
  --emerald-500: #4ADE80;
  --emerald-600: #22C55E;
  --sky-500: #6B8EE8;
  --red-500: #EF4444;
  --amber-500: #F59E0B;

  /* Semantic */
  --bg-primary: var(--dark-900);
  --bg-secondary: var(--dark-800);
  --bg-card: rgba(26, 24, 22, 0.85);
  --bg-card-hover: rgba(37, 35, 32, 0.95);
  --bg-glass: rgba(212, 168, 67, 0.06);
  --border-subtle: rgba(212, 168, 67, 0.12);
  --border-medium: rgba(212, 168, 67, 0.2);
  --text-primary: #F5EDE0;
  --text-secondary: #ADA69E;
  --text-muted: #6B6660;
  --accent: var(--gold-500);
  --accent-hover: var(--gold-400);
  --accent-glow: rgba(212, 168, 67, 0.25);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --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 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 20px var(--accent-glow);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--dark-400); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--dark-300); }

/* ── Background Effects ── */
.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(212,168,67,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 80% 50% at 80% 100%, rgba(232,120,107,0.04) 0%, transparent 50%),
    var(--bg-primary);
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

.text-gradient {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--text-secondary); }
.text-accent { color: var(--accent); }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: 800px;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--space-md) 0;
  background: rgba(15, 14, 12, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

.nav-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-glow);
}

.nav-brand-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.nav-link.active {
  color: var(--accent);
  background: rgba(212, 168, 67, 0.1);
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  backdrop-filter: blur(10px);
  transition: var(--transition-normal);
}

.card:hover {
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
}

.card-glass {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  backdrop-filter: blur(20px);
}

.card-highlight {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
  color: var(--dark-900);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--dark-600);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--dark-500);
  border-color: var(--border-medium);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--bg-glass);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red-500);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.25);
}

.btn-success {
  background: rgba(34, 197, 94, 0.15);
  color: var(--emerald-500);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.btn-success:hover:not(:disabled) {
  background: rgba(34, 197, 94, 0.25);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-sm);
}

/* ── Form Elements ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--dark-700);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder {
  color: var(--dark-300);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ADA69E' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-select option {
  background: var(--dark-700);
  color: var(--text-primary);
}

.form-textarea {
  min-height: 80px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-check {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
}

.badge-gold {
  background: rgba(212, 168, 67, 0.15);
  color: var(--gold-400);
  border: 1px solid rgba(212, 168, 67, 0.2);
}

.badge-green {
  background: rgba(34, 197, 94, 0.15);
  color: var(--emerald-500);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-red {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red-500);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-blue {
  background: rgba(107, 142, 232, 0.15);
  color: var(--sky-500);
  border: 1px solid rgba(107, 142, 232, 0.2);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber-500);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-gray {
  background: rgba(107, 102, 96, 0.2);
  color: var(--dark-100);
  border: 1px solid rgba(107, 102, 96, 0.3);
}

/* ── Tables ── */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  background: var(--dark-700);
  border-bottom: 1px solid var(--border-subtle);
}

td {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-glass); }

/* ── Tabs ── */
.tabs {
  display: flex;
  gap: 2px;
  background: var(--dark-700);
  border-radius: var(--radius-md);
  padding: 4px;
  overflow-x: auto;
}

.tab {
  flex: 1;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  text-align: center;
}

.tab:hover { color: var(--text-primary); background: var(--dark-600); }
.tab.active {
  color: var(--dark-900);
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  font-weight: 600;
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  padding: var(--space-lg);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--dark-800);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  transition: var(--transition-normal);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
}

.modal-title {
  font-size: 1.3rem;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-600);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: var(--dark-500);
  color: var(--text-primary);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.modal-footer {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
  margin-top: var(--space-xl);
}

/* ── Toast Notifications ── */
.toast-container {
  position: fixed;
  top: var(--space-xl);
  right: var(--space-xl);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--dark-700);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  min-width: 320px;
  max-width: 440px;
  animation: slideIn 0.3s ease-out;
}

.toast-success { border-left: 3px solid var(--emerald-500); }
.toast-error { border-left: 3px solid var(--red-500); }
.toast-info { border-left: 3px solid var(--sky-500); }
.toast-warning { border-left: 3px solid var(--amber-500); }

.toast-icon { font-size: 1.2rem; flex-shrink: 0; }
.toast-message { flex: 1; font-size: 0.9rem; }
.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

/* ── Avatar ── */
.avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark-900);
  flex-shrink: 0;
}

.avatar-sm { width: 32px; height: 32px; font-size: 0.8rem; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.3rem; }

/* ── Stat Cards ── */
.stat-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-change {
  font-size: 0.8rem;
  font-weight: 500;
}

.stat-change.positive { color: var(--emerald-500); }
.stat-change.negative { color: var(--red-500); }

/* ── Grid layouts ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }

/* ── Section styling ── */
.section {
  padding: var(--space-3xl) 0;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: var(--space-2xl);
}

/* ── Hero ── */
.hero {
  padding: var(--space-3xl) 0;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
}

/* ── Service Card ── */
.service-card {
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-700));
  opacity: 0;
  transition: var(--transition-normal);
}

.service-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.service-card:hover::before { opacity: 1; }

.service-card.selected {
  border-color: var(--accent);
  background: rgba(212, 168, 67, 0.06);
  box-shadow: var(--shadow-glow);
}

.service-card.selected::before { opacity: 1; }

.service-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.16), rgba(212, 168, 67, 0.04));
  border: 1px solid rgba(212, 168, 67, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--accent);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.service-card:hover .service-icon {
  transform: translateY(-2px) scale(1.06);
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.25), rgba(212, 168, 67, 0.08));
  box-shadow: 0 0 20px rgba(212, 168, 67, 0.35);
}

.service-card.selected .service-icon {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600)) !important;
  color: #111 !important;
  border-color: transparent !important;
  box-shadow: 0 0 22px rgba(212, 168, 67, 0.55);
}

.service-icon svg.custom-service-svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.inline-service-svg {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: -3px;
  margin-right: 6px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

[dir="rtl"] .inline-service-svg {
  margin-right: 0;
  margin-left: 6px;
}

.service-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.service-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.5;
}

.service-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
}

.service-duration {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Barber Card ── */
.barber-card {
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.barber-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.barber-card.selected {
  border-color: var(--accent);
  background: rgba(212, 168, 67, 0.06);
  box-shadow: var(--shadow-glow);
}

.barber-avatar {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark-900);
  flex-shrink: 0;
}

.barber-info h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.barber-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ── Time Slots ── */
.time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: var(--space-sm);
}

.time-slot {
  padding: 0.6rem 0.8rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
  background: var(--dark-700);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-primary);
}

.time-slot:hover {
  border-color: var(--accent);
  background: rgba(212, 168, 67, 0.08);
}

.time-slot.selected {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
  color: var(--dark-900);
  border-color: transparent;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
}

/* ── Stepper ── */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

.step {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--dark-600);
  color: var(--text-muted);
  border: 2px solid var(--dark-500);
  transition: var(--transition-normal);
}

.step-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition-normal);
}

.step.active .step-number {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
  color: var(--dark-900);
  border-color: var(--gold-500);
  box-shadow: var(--shadow-glow);
}

.step.active .step-label { color: var(--text-primary); }

.step.completed .step-number {
  background: var(--emerald-600);
  color: white;
  border-color: var(--emerald-600);
}

.step.completed .step-label { color: var(--emerald-500); }

.step-divider {
  width: 40px;
  height: 2px;
  background: var(--dark-500);
  border-radius: 1px;
}

.step-divider.completed {
  background: var(--emerald-600);
}

/* ── Notification Bell ── */
.notif-bell {
  position: relative;
  cursor: pointer;
}

.notif-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background: var(--red-500);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ── Notification Panel ── */
.notif-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  max-height: 400px;
  overflow-y: auto;
  background: var(--dark-800);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 200;
}

.notif-panel.open { display: block; }

.notif-panel-header {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notif-item {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.notif-item:hover { background: var(--bg-glass); }
.notif-item.unread { background: rgba(212, 168, 67, 0.05); border-left: 3px solid var(--accent); }
.notif-item:last-child { border-bottom: none; }

.notif-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Empty State ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl);
  text-align: center;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.empty-state-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ── Loading Spinner ── */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--dark-500);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl);
}

/* ── Dashboard Layout ── */
.dashboard {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--dark-800);
  border-right: 1px solid var(--border-subtle);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-xl);
  text-decoration: none;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.65rem var(--space-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  background: none;
  text-align: left;
  width: 100%;
}

.sidebar-link:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.sidebar-link.active {
  color: var(--accent);
  background: rgba(212, 168, 67, 0.1);
}

.sidebar-link-icon {
  width: 20px;
  text-align: center;
  font-size: 1rem;
}

.sidebar-footer {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
}

.main-content {
  padding: var(--space-2xl);
  overflow-y: auto;
  min-height: 100vh;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.page-title {
  font-size: 1.6rem;
}

.page-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ── Appointment List ── */
.appointment-card {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.appointment-card:hover {
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
}

.appointment-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  min-width: 60px;
  text-align: center;
  padding: var(--space-sm) var(--space-md);
  background: rgba(212, 168, 67, 0.08);
  border-radius: var(--radius-sm);
}

.appointment-details {
  flex: 1;
}

.appointment-customer {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.appointment-service {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.appointment-actions {
  display: flex;
  gap: var(--space-sm);
}

/* ── Switch Toggle ── */
.switch {
  position: relative;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.switch input { display: none; }

.switch-slider {
  position: absolute;
  inset: 0;
  background: var(--dark-500);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.switch-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--text-primary);
  border-radius: 50%;
  transition: var(--transition-fast);
}

.switch input:checked + .switch-slider {
  background: var(--accent);
}

.switch input:checked + .switch-slider::before {
  transform: translateX(20px);
  background: var(--dark-900);
}

/* ── Hours Editor ── */
.hours-row {
  display: grid;
  grid-template-columns: 100px auto 130px 130px;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.hours-row:last-child { border-bottom: none; }

.day-name {
  font-weight: 500;
  font-size: 0.9rem;
}

/* ── Confirmation/Success ── */
.success-checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto var(--space-xl);
  animation: scaleIn 0.4s ease-out;
}

@keyframes scaleIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

/* ── Revenue Chart Bars ── */
.chart-bar-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.chart-bar-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.chart-bar-label {
  width: 120px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  flex-shrink: 0;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.chart-bar-track {
  flex: 1;
  height: 28px;
  background: var(--dark-700);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.chart-bar-fill {
  height: 100%;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
  display: flex;
  align-items: center;
  padding-left: var(--space-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dark-900);
  min-width: fit-content;
  transition: width 0.6s ease-out;
}

.chart-bar-value {
  width: 80px;
  text-align: right;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  flex-shrink: 0;
}

/* ── Login Page ── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.login-card {
  width: 100%;
  max-width: 420px;
}

.login-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.login-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto var(--space-lg);
  box-shadow: var(--shadow-glow);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .dashboard { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: -280px;
    z-index: 500;
    width: 260px;
    transition: var(--transition-normal);
  }
  .sidebar.open { left: 0; }
  .mobile-toggle {
    display: block !important;
  }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stepper { flex-wrap: wrap; }
  .step-label { display: none; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .hours-row { grid-template-columns: 80px auto 1fr 1fr; font-size: 0.8rem; }
  .appointment-card { flex-direction: column; text-align: center; }
  .time-grid { grid-template-columns: repeat(auto-fill, minmax(75px, 1fr)); }
  .container { padding: 0 var(--space-md); }
  .card { padding: var(--space-lg); }
  .main-content { padding: var(--space-lg); }
  .nav-links { display: none; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 1rem; }
  .service-card { padding: var(--space-lg); }
}

/* Mobile menu toggle - hidden on desktop */
.mobile-toggle { display: none; }
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 499;
  display: none;
}
.sidebar-overlay.open { display: block; }

/* ── Utilities ── */
.hidden { display: none !important; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

/* ══════════════════════════════════════════════════════
   LUXURY CALENDAR & INTERACTIVE DATE PICKER
   ══════════════════════════════════════════════════════ */
.luxury-booking-card {
  background: rgba(18, 18, 20, 0.75);
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.calendar-view-toggle button {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.calendar-view-toggle button.active-mode {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600)) !important;
  color: #111 !important;
  box-shadow: 0 2px 10px rgba(212, 168, 67, 0.35);
}

/* Quick Dates Strip (Horizontal Carousel) */
.quick-dates-wrapper {
  position: relative;
}

.quick-dates-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 4px 12px 4px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--dark-600) transparent;
}

.quick-dates-scroll::-webkit-scrollbar {
  height: 6px;
}
.quick-dates-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.quick-dates-scroll::-webkit-scrollbar-thumb {
  background: var(--dark-600);
  border-radius: 4px;
}

.quick-date-card {
  min-width: 82px;
  height: 102px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--dark-800);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  position: relative;
  flex-shrink: 0;
}

.quick-date-card:hover {
  border-color: var(--accent);
  background: rgba(212, 168, 67, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.quick-date-card .qd-day {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.quick-date-card .qd-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.quick-date-card .qd-month {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 3px;
  font-weight: 500;
}

.quick-date-card .qd-indicator {
  position: absolute;
  bottom: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

.quick-date-card.selected {
  background: linear-gradient(135deg, #E2B955, #C69528) !important;
  border-color: #E2B955 !important;
  box-shadow: 0 0 22px rgba(212, 168, 67, 0.5) !important;
  transform: translateY(-3px) scale(1.03);
}

.quick-date-card.selected .qd-day,
.quick-date-card.selected .qd-num,
.quick-date-card.selected .qd-month {
  color: #111 !important;
}

.quick-date-card.selected .qd-indicator {
  background: #111 !important;
  opacity: 0.9;
}

/* Full Month In-line Calendar */
.full-calendar-wrapper {
  background: var(--dark-800);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  max-width: 480px;
  margin: 0 auto;
}

.calendar-month-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  padding: 0 var(--space-xs);
}

.calendar-month-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-day-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--dark-700);
  border: 1px solid transparent;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  user-select: none;
}

.cal-day-cell:hover:not(.is-disabled) {
  border-color: var(--accent);
  background: rgba(212, 168, 67, 0.12);
  transform: scale(1.06);
}

.cal-day-cell.is-today {
  border-color: rgba(212, 168, 67, 0.5);
  font-weight: 800;
}

.cal-day-cell.is-disabled {
  opacity: 0.22;
  cursor: not-allowed;
  background: transparent;
  pointer-events: none;
}

.cal-day-cell.is-selected {
  background: linear-gradient(135deg, #E2B955, #C69528) !important;
  color: #111 !important;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(212, 168, 67, 0.45);
  border-color: transparent;
  transform: scale(1.08);
}

/* Time Slot Groups */
.time-period-group {
  margin-bottom: var(--space-lg);
}

.period-header {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.slot-confirmation-bar {
  animation: slideUp 0.3s ease-out forwards;
}

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

