/* ================================================================
   Epong Barbershop – Main Stylesheet (Mobile-First)
   Matches the Figma/React design (dark navy + white + gold accents)
   ================================================================ */

/* ── CSS Variables (mirrors Figma theme.css) ───────────────────── */
:root {
  --font-size: 16px;
  --background: #ffffff;
  --foreground: #030213;
  --card: #ffffff;
  --card-foreground: #030213;
  --primary: #1e293b;
  --primary-hover: #334155;
  --secondary: #f1f5f9;
  --muted: #ececf0;
  --muted-foreground: #717182;
  --accent: #e9ebef;
  --destructive: #d4183d;
  --border: rgba(0, 0, 0, 0.1);
  --input-bg: #f3f3f5;
  --radius: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --ring: rgba(0,0,0,0.2);
  --gold: #D4AF37;
  --sidebar-bg: #0f172a;
  --sidebar-text: #94a3b8;
  --sidebar-active: #ffffff;
  --sidebar-active-bg: rgba(255,255,255,0.08);
  --sidebar-hover-bg: rgba(255,255,255,0.05);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
}

/* ── Reset & base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: var(--font-size); scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

/* ── Typography ─────────────────────────────────────────────────── */
h1 { font-size: 1.5rem; font-weight: 700; line-height: 1.2; margin-bottom: 0.5rem; }
h2 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; margin-bottom: 0.5rem; }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.4; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ── Layout & Spacing ───────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.5rem 1rem; border-radius: var(--radius); font-size: 0.875rem; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; transition: all 0.15s;
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--secondary); color: var(--foreground); }
.btn-secondary:hover { background: var(--muted); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--foreground); }
.btn-outline:hover { background: var(--accent); }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Forms ──────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.25rem; color: var(--foreground); }
.form-control {
  width: 100%; padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--input-bg); font-size: 1rem; transition: border-color 0.15s;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.1); }
.form-control::placeholder { color: var(--muted-foreground); }
.form-control:disabled { background: var(--muted); cursor: not-allowed; }
.form-control.error { border-color: var(--destructive); }
.form-error { font-size: 0.8125rem; color: var(--destructive); margin-top: 0.25rem; }

/* ── Cards ──────────────────────────────────────────────────────── */
.card {
  background: var(--card); border-radius: var(--radius-lg); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.card-body { padding: 1rem; }
.card-header { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
.card-footer { padding: 0.75rem 1rem; border-top: 1px solid var(--border); background: #fafafa; }

/* ── Tables ─────────────────────────────────────────────────────── */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
.table th { font-weight: 600; background: var(--secondary); }
.table-responsive { width: 100%; overflow-x: auto; }
.table-responsive table { min-width: 600px; }

/* ── Grids ──────────────────────────────────────────────────────── */
.grid { display: grid; gap: 1rem; }
.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Sidebar Layout (Mobile-First: Hidden by default) ───────────── */
.dashboard-layout { display: flex; flex-direction: column; min-height: 100vh; }
.sidebar {
  width: 100%; background: var(--sidebar-bg);
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
  transform: translateX(-100%); transition: transform 0.25s;
}
.sidebar.open { transform: translateX(0); }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 90; }
.sidebar-overlay.show { display: block; }
.main-content { flex: 1; background: #f8fafc; }
.page-content { padding: 1rem; }
.page-header { margin-bottom: 1rem; }
.page-header h1 { font-size: 1.5rem; }
.page-header p { color: var(--muted-foreground); margin: 0; }

/* ── Stats Grid ─────────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin-bottom: 1rem; }
.stat-card { background: #fff; border-radius: var(--radius-lg); padding: 1rem; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.stat-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 0.5rem; }
.stat-icon { width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; background: #f0f4f8; display: flex; align-items: center; justify-content: center; }
.stat-value { font-size: 1.5rem; font-weight: 700; color: var(--foreground); margin-bottom: 0.125rem; }
.stat-change { font-size: 0.8125rem; font-weight: 600; color: #16a34a; }

/* ── Modals ─────────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.hidden { display: none; }
.modal { background: #fff; border-radius: var(--radius-xl); padding: 1.5rem; width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.modal-title { font-size: 1.125rem; font-weight: 600; }
.modal-close { background: none; border: none; cursor: pointer; color: var(--muted-foreground); padding: 0.25rem; border-radius: 50%; }
.modal-close:hover { color: var(--foreground); background: var(--accent); }
.modal-footer { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1rem; }

/* ── Alerts ─────────────────────────────────────────────────────── */
.alert { padding: 0.75rem 1rem; border-radius: var(--radius); border: 1px solid; }
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.alert-error { background: #fef2f2; border-color: #fecaca; color: #dc2626; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #d97706; }
.alert-info { background: #eff6ff; border-color: #bfdbfe; color: #2563eb; }

/* ── Topbar ─────────────────────────────────────────────────────── */
.topbar { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; }
.topbar-brand { font-size: 1.125rem; font-weight: 700; color: var(--primary); }
.topbar-nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; flex: 1; }
.topbar-nav-links { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.topbar-nav a, .topbar-nav button {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.875rem; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground);
  background: none; border: none; cursor: pointer; transition: background 0.15s, color 0.15s; text-decoration: none;
  white-space: nowrap;
}
.topbar-nav a:hover, .topbar-nav button:hover { background: var(--accent); color: var(--foreground); }
.topbar-nav a.active, .topbar-nav button.active { color: var(--foreground); }
.topbar-nav .logout-btn { color: #dc2626; }
.topbar-nav .logout-btn:hover { background: #fee2e2; color: #b91c1c; }
.mobile-menu-btn { display: block; background: none; border: none; cursor: pointer; padding: 0.25rem; color: var(--foreground); border-radius: var(--radius); transition: background 0.15s; }
.mobile-menu-btn:hover { background: var(--accent); }

/* ── Sidebar Navigation ─────────────────────────────────────────── */
.sidebar-header { padding: 1.5rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.07); }
.sidebar-logo { display: flex; align-items: center; gap: 0.75rem; color: #fff; font-size: 1.125rem; font-weight: 700; }
.sidebar-logo .logo-icon { width: 2.5rem; height: 2.5rem; background: var(--gold); border-radius: 0.625rem; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 700; color: #1e293b; }
.sidebar-nav { flex: 1; padding: 0.75rem 0.5rem; overflow-y: auto; }
.sidebar-nav-section { margin-bottom: 1.5rem; }
.sidebar-nav-label { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: #475569; padding: 0 0.5rem; margin-bottom: 0.375rem; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 0.75rem; border-radius: 0.5rem;
  color: var(--sidebar-text); font-size: 0.875rem; font-weight: 500;
  transition: background 0.15s, color 0.15s; margin-bottom: 0.125rem;
}
.sidebar-nav a:hover { background: var(--sidebar-hover-bg); color: var(--sidebar-active); }
.sidebar-nav a.active { background: var(--sidebar-active-bg); color: var(--sidebar-active); }
.sidebar-nav a svg { width: 1.125rem; height: 1.125rem; flex-shrink: 0; }
.sidebar-footer { padding: 1rem 0.5rem; border-top: 1px solid rgba(255,255,255,0.07); }
.sidebar-footer a {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 0.75rem; border-radius: 0.5rem;
  color: #ef4444; font-size: 0.875rem; font-weight: 500;
  transition: background 0.15s;
}
.sidebar-footer a:hover { background: rgba(239,68,68,0.08); }

/* ── Customer Layout ────────────────────────────────────────────── */
.customer-layout { min-height: 100vh; background: #f8fafc; }
.customer-hero { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); color: #fff; padding: 3rem 1rem; text-align: center; }
.customer-hero h1 { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.customer-hero p { color: #94a3b8; font-size: 1rem; margin-bottom: 2rem; }

/* ── Responsive Enhancements ────────────────────────────────────── */
@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
  .page-content { padding: 1.25rem; }
  .page-header h1 { font-size: 1.75rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .modal { padding: 2rem; max-width: 520px; }
  .topbar-user { display: flex; align-items: center; gap: 0.625rem; }
  .topbar-user-info { display: block; }
  .topbar-user-info .user-name { font-weight: 600; font-size: 0.875rem; color: var(--foreground); }
  .topbar-user-info .user-role { font-size: 0.75rem; color: var(--muted-foreground); }
  .mobile-menu-btn { display: none; }
}

@media (min-width: 768px) {
  .grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .page-content { padding: 1.5rem; }
  .customer-hero h1 { font-size: 2.5rem; }
  .customer-hero p { font-size: 1.0625rem; }
}

@media (min-width: 1024px) {
  .dashboard-layout { flex-direction: row; }
  .sidebar { width: 260px; position: fixed; transform: none; }
  .sidebar.open { transform: none; }
  .main-content { margin-left: 260px; }
  .page-content { padding: 1.5rem; }
  .stats-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
  .grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .customer-hero { padding: 3rem 2rem; }
}

@media (min-width: 1200px) {
  .page-content { padding: 2rem; }
  .stats-grid { gap: 1.25rem; }
}

/* ── Utilities ─────────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 480px; margin: 0 auto; padding: 0 24px; }
.grid-2-12 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-2-14 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-2-16 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-2-24 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-1-2  { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; }
.grid-1-3  { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; }
.grid-max-wide  { max-width: 1100px; }
.grid-max-large { max-width: 900px; }

  .profile-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
    justify-content: center;
    grid-template-columns: minmax(280px, 340px);
  }
  .profile-summary-card {
    display: grid;
    gap: 1rem;
    text-align: center;
    padding: 1.5rem;
    align-items: center;
    width: 100%;
    max-width: 340px;
  }
  .profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--muted);
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
  }
  .profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .profile-summary-body {
    display: grid;
    gap: 0.5rem;
  }
  .profile-summary-actions {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
  }
  .profile-summary-actions .btn {
    min-width: 140px;
  }
  .profile-name {
    font-size: 1.25rem;
    font-weight: 700;
  }
  .profile-email {
    color: var(--muted-foreground);
    font-size: 0.95rem;
  }
  .profile-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: #dbeafe;
    color: #1e40af;
    font-size: 0.75rem;
    font-weight: 700;
    margin: 0.5rem auto 0;
  }
  .profile-meta {
    color: var(--muted-foreground);
    font-size: 0.95rem;
  }
  .profile-rating {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f59e0b;
  }
  .profile-form-title { font-size: 1.125rem; margin: 0; }
  .profile-avatar-upload {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
  }
  .profile-avatar-upload-button {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--muted);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .profile-avatar-upload-button label {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: 2px solid #fff;
    cursor: pointer;
    font-size: 0.9rem;
  }
  .profile-avatar-upload-text .label {
    font-weight: 600;
  }
  .profile-avatar-upload-text .hint {
    color: var(--muted-foreground);
    font-size: 0.9rem;
  }
  .profile-form-divider {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
  }

  @media (max-width: 900px) {
    .profile-grid {
      grid-template-columns: 1fr;
      justify-items: center;
    }
    .profile-avatar-upload {
      flex-direction: column;
      align-items: flex-start;
    }
    .profile-avatar-upload-button {
      width: 72px;
      height: 72px;
    }
  }

  @media (max-width: 768px) {
    .grid-2-14,
    .grid-1-2,
    .grid-2-12,
    .grid-2-16,
    .grid-2-24,
    .grid-1-3 {
      grid-template-columns: 1fr !important;
    }
    .page-content {
      padding: 1rem;
    }
  }

/* ── Cards ──────────────────────────────────────────────────────── */
.card {
  background: var(--card); border-radius: var(--radius-lg); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.card-body { padding: 20px; }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--border); background: #fafafa; }

.about-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.about-card-media {
  background: linear-gradient(180deg, rgba(59,130,246,0.12), rgba(15,23,42,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.about-profile-image {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.about-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-card-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
}

.about-card-subtitle {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
}

.about-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

.about-card-text {
  color: var(--foreground);
  line-height: 1.8;
  max-width: 860px;
}

.about-card-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 9999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 0.9rem;
  font-weight: 600;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  color: var(--foreground);
  text-decoration: none;
  background: #fff;
  transition: all 0.15s ease;
}

.social-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(59,130,246,0.08);
}

@media (max-width: 900px) {
  .about-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .about-card-body {
    padding: 20px;
  }
}

/* ── Form controls ──────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.9375rem; font-weight: 500; margin-bottom: 6px; color: var(--foreground); }
.form-label span.req { color: var(--destructive); margin-left: 2px; }
.form-control {
  width: 100%; min-width: 0; padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius); background: var(--input-bg); color: var(--foreground);
  transition: border-color 0.15s, box-shadow 0.15s; font-size: 0.9375rem;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); background: #fff; }
.form-control.is-invalid { border-color: var(--destructive); }
.form-error { color: var(--destructive); font-size: 0.8125rem; margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.form-hint { color: var(--muted-foreground); font-size: 0.8125rem; margin-top: 4px; }
.input-group { position: relative; }
.input-group .form-control { padding-right: 44px; }
.input-group-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted-foreground); cursor: pointer; background: none; border: none; padding: 0; display: flex; }
.input-group-icon:hover { color: var(--foreground); }

select.form-control { 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='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

.weekly-schedule-list { display: flex; flex-direction: column; gap: 12px; }
.weekly-schedule-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  flex-wrap: wrap;
}
.weekly-schedule-label { display: flex; align-items: center; gap: 10px; min-width: 140px; flex: 1 1 180px; cursor: pointer; }
.weekly-schedule-time-inputs { display: flex; align-items: center; gap: 10px; flex: 1 1 320px; min-width: 220px; }
.weekly-schedule-time { width: 130px; max-width: 100%; }
.weekly-schedule-off-text { margin-left: auto; color: var(--muted-foreground); font-size: 0.875rem; }

@media (max-width: 768px) {
  .weekly-schedule-row { flex-direction: column; align-items: flex-start; }
  .weekly-schedule-label { width: 100%; min-width: 0; }
  .weekly-schedule-time-inputs { width: 100%; flex-wrap: wrap; }
  .weekly-schedule-time { width: 100%; }
  .weekly-schedule-off-text { margin-left: 0; }
}

/* ── Alerts & flash ─────────────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 0.9375rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fef9c3; color: #854d0e; border: 1px solid #fef08a; }
.alert-info    { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

/* ── Badges ─────────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 9999px; font-size: 0.75rem; font-weight: 500; }
.badge-pending   { background: #fef9c3; color: #854d0e; }
.badge-confirmed { background: #dbeafe; color: #1e40af; }
.badge-completed { background: #dcfce7; color: #166534; }
.badge-cancelled { background: #f3f4f6; color: #6b7280; }

/* ================================================================
   LANDING PAGE
   ================================================================ */
.landing {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  position: relative; padding: 40px 24px;
}
.landing::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(212,175,55,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.landing-content { position: relative; z-index: 1; text-align: center; color: #fff; max-width: 900px; width: 100%; }
.landing-logo { font-size: 3.5rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.landing-tagline { font-size: 1.125rem; font-style: italic; color: #94a3b8; margin-bottom: 24px; }
.landing-desc { font-size: 1.0625rem; color: #cbd5e1; max-width: 560px; margin: 0 auto 48px; }
.landing-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 720px; margin: 0 auto 48px; }
.landing-feature {
  background: rgba(255,255,255,0.06); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-xl); padding: 28px 20px;
  transition: background 0.2s;
}
.landing-feature:hover { background: rgba(255,255,255,0.1); }
.landing-feature-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 1.5rem;
}
.landing-feature h3 { font-size: 1rem; color: #f1f5f9; }
.landing-cta-area { margin-bottom: 48px; }
.landing-testimonial {
  background: rgba(255,255,255,0.06); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-xl);
  padding: 28px 32px; max-width: 560px; margin: 0 auto 40px;
}
.landing-testimonial p { font-style: italic; font-size: 1.0625rem; color: #e2e8f0; margin-bottom: 8px; }
.stars { color: #fbbf24; font-size: 1.25rem; letter-spacing: 2px; }
.landing-footer { color: #475569; font-size: 0.875rem; }

/* ================================================================
   AUTH MODALS / PAGES
   ================================================================ */
.auth-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  z-index: 900; display: flex; align-items: center; justify-content: center; padding: 24px;
}
.auth-overlay.hidden { display: none; }
.auth-modal {
  background: #fff; border-radius: var(--radius-xl); padding: 40px; max-width: 440px; width: 100%;
  position: relative; box-shadow: 0 25px 50px rgba(0,0,0,0.25); animation: slideUp 0.2s ease;
}
@keyframes slideUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.auth-modal-close {
  position: absolute; top: 16px; right: 16px; background: none; border: none;
  cursor: pointer; color: #9ca3af; padding: 4px; border-radius: 50%; transition: color 0.15s;
  display: flex;
}
.auth-modal-close:hover { color: var(--foreground); }
.auth-modal-title { font-size: 1.5rem; font-weight: 600; text-align: center; margin-bottom: 4px; }
.auth-modal-subtitle { color: var(--muted-foreground); text-align: center; margin-bottom: 28px; }
.auth-modal-footer { text-align: center; margin-top: 16px; font-size: 0.9375rem; color: var(--muted-foreground); }
.auth-modal-footer a, .auth-modal-footer button { font-weight: 600; color: var(--foreground); background: none; border: none; cursor: pointer; padding: 0; }
.auth-modal-footer a:hover, .auth-modal-footer button:hover { text-decoration: underline; }
.auth-divider { display: flex; align-items: center; gap: 16px; margin: 20px 0; color: var(--muted-foreground); font-size: 0.875rem; }
.auth-divider::before, .auth-divider::after { content:''; flex:1; height:1px; background:var(--border); }

/* Standalone auth page (for register / forgot / reset) */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); padding: 40px 24px;
}
.auth-page-card { background: #fff; border-radius: var(--radius-xl); padding: 40px; max-width: 480px; width: 100%; box-shadow: var(--shadow-lg); }
.auth-page-logo { text-align: center; margin-bottom: 28px; }
.auth-page-logo h1 { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.auth-page-logo p { color: var(--muted-foreground); font-size: 0.875rem; }

/* ================================================================
   TOPBAR (shared across dashboards)
   ================================================================ */
.topbar {
  background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50;
  height: 64px; display: flex; align-items: center;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0 24px; gap: 16px; }
.topbar-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.125rem; color: var(--primary); text-decoration: none; }
.topbar-brand .scissors-icon { width: 32px; height: 32px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-size: 0.875rem; }
.topbar-nav { display: flex; align-items: center; gap: 4px; }
.topbar-nav a, .topbar-nav button {
  display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--radius);
  font-size: 0.9375rem; font-weight: 500; color: var(--muted-foreground);
  background: none; border: none; cursor: pointer; transition: background 0.15s, color 0.15s; text-decoration: none;
}
.topbar-nav a:hover, .topbar-nav button:hover { background: var(--accent); color: var(--foreground); }
.topbar-nav a.active, .topbar-nav button.active { color: var(--foreground); }
.topbar-nav .logout-btn { color: #dc2626; }
.topbar-nav .logout-btn:hover { background: #fee2e2; color: #b91c1c; }
.topbar-nav-footer { display: flex; align-items: center; gap: 0.75rem; margin: 0; border-top: none; padding: 0; }
.topbar-nav-footer a { display: inline-flex; align-items: center; justify-content: center; width: auto; }
@media (max-width: 640px) {
  .topbar-nav-footer { width: 100%; margin-top: 0.75rem; border-top: 1px solid var(--border); padding-top: 0.75rem; }
  .topbar-nav-footer a { width: 100%; justify-content: center; }
}
.topbar-user { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.topbar-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--muted); display: flex; align-items: center; justify-content: center; overflow: hidden; border: 2px solid var(--border); }
.topbar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.topbar-user-info { display: none; }
@media (min-width: 640px) { .topbar-user-info { display: block; } }
.topbar-user-info .user-name { font-weight: 600; font-size: 0.9375rem; color: var(--foreground); }
.topbar-user-info .user-role { font-size: 0.75rem; color: var(--muted-foreground); }

/* Mobile menu button - hidden by default */
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 4px; color: var(--foreground); border-radius: var(--radius); transition: background 0.15s; }
.mobile-menu-btn:hover { background: var(--accent); }

@media (min-width: 1024px) {
  /* ================================================================
     SIDEBAR LAYOUT (Barber / Admin dashboards)
     ================================================================ */
  button[onclick*="toggleSidebar"],
  button[data-toggle-sidebar] { display: none !important; }
  .dashboard-layout { display: flex; min-height: 100vh; }
  .sidebar {
    width: 260px; flex-shrink: 0; background: var(--sidebar-bg);
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 40;
    transition: transform 0.25s;
  }
  .sidebar-header { padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .sidebar-logo { display: flex; align-items: center; gap: 12px; color: #fff; font-size: 1.125rem; font-weight: 700; }
  .sidebar-logo .logo-icon { width: 40px; height: 40px; background: var(--gold); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 700; color: #1e293b; }
  .sidebar-nav { flex: 1; padding: 12px 10px; overflow-y: auto; }
  .sidebar-nav-section { margin-bottom: 24px; }
  .sidebar-nav-label { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: #475569; padding: 0 10px; margin-bottom: 6px; }
  .sidebar-nav a {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px;
    color: var(--sidebar-text); text-decoration: none; font-size: 0.9375rem; font-weight: 500;
    transition: background 0.15s, color 0.15s; margin-bottom: 2px;
  }
  .sidebar-nav a:hover { background: var(--sidebar-hover-bg); color: var(--sidebar-active); }
  .sidebar-nav a.active { background: var(--sidebar-active-bg); color: var(--sidebar-active); }
  .sidebar-nav a svg { width: 18px; height: 18px; flex-shrink: 0; }
  .sidebar-footer { padding: 16px 10px; border-top: 1px solid rgba(255,255,255,0.07); }
  .sidebar-footer a {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px;
    color: #ef4444; text-decoration: none; font-size: 0.9375rem; font-weight: 500;
    transition: background 0.15s;
  }
  .sidebar-footer a:hover { background: rgba(239,68,68,0.08); }
  .main-content { margin-left: 260px; flex: 1; min-height: 100vh; background: #f8fafc; }
  .page-content { padding: 1.5rem; }
  .page-header { margin-bottom: 1.25rem; display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
  .page-header > * { flex: 1 1 320px; min-width: 0; }
  .page-header h1 { font-size: 1.75rem; font-weight: 700; color: var(--foreground); margin-bottom: 0.25rem; }
  .page-header p { color: var(--muted-foreground); margin: 0; }

  .table-responsive { width: 100%; overflow-x: auto; }
  .table-responsive table { width: 100%; min-width: 700px; }

  /* ================================================================
     STAT CARDS
     ================================================================ */
  .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
  .stat-card { background: #fff; border-radius: var(--radius-lg); padding: 1.25rem; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
  .stat-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1rem; }
  .stat-icon { width: 3rem; height: 3rem; border-radius: 0.625rem; background: #f0f4f8; display: flex; align-items: center; justify-content: center; }
  .stat-change { font-size: 0.8125rem; font-weight: 600; color: #16a34a; }
  .stat-value { font-size: 1.875rem; font-weight: 700; color: var(--foreground); margin-bottom: 0.125rem; }
  .stat-label { font-size: 0.875rem; color: var(--muted-foreground); }
}

/* ================================================================
   TABLES
   ================================================================ */
.table-wrapper { min-width: 0; overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow-sm); }
table { min-width: 100%; width: 100%; border-collapse: collapse; }
thead { background: #f8fafc; }
th { padding: 12px 16px; text-align: left; font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-foreground); border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 14px 16px; font-size: 0.9375rem; color: var(--foreground); border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f9fafb; }
.table-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ================================================================
   BOOKING FLOW (Customer)
   ================================================================ */
.booking-header { background: #fff; border-bottom: 1px solid var(--border); padding: 16px 24px; display: flex; align-items: center; gap: 16px; }
.booking-steps { display: flex; align-items: center; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.booking-step { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--muted-foreground); }
.booking-step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 600; }
.booking-step.active .booking-step-num { background: var(--primary); color: #fff; }
.booking-step.active { color: var(--foreground); font-weight: 500; }
.booking-step.done .booking-step-num { background: #16a34a; color: #fff; }
.booking-step-divider { width: 32px; height: 1px; background: var(--border); }

.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.service-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0; cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s; position: relative; box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.service-card > * { padding: 0 20px; }
.service-card > div:first-of-type { padding: 0; }
.service-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.service-card.selected { border-color: var(--primary); background: var(--card); }
.service-card .selected-check { position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; background: var(--primary); border-radius: 50%; display: none; align-items: center; justify-content: center; z-index: 10; }
.service-card.selected .selected-check { display: flex; }
.service-icon { width: 100%; height: 200px; background: var(--muted); border-radius: 0; display: flex; align-items: center; justify-content: center; margin-bottom: 0; font-size: 3rem; }
.service-card-image { width: 100%; height: 200px; border-radius: 0; overflow: hidden; margin-bottom: 0; background: var(--muted); display: flex; align-items: center; justify-content: center; }
.service-card-image img { width: 100%; height: 100%; object-fit: cover; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 4px; font-size: 0.75rem; font-weight: 500; }
.service-name { font-size: 1.0625rem; font-weight: 600; margin-bottom: 6px; padding: 0 20px !important; }
.service-desc { color: var(--muted-foreground); font-size: 0.875rem; margin-bottom: 12px; line-height: 1.3; padding: 0 20px !important; }
.service-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 20px 20px 20px !important; }
.service-price { font-size: 1.0625rem; font-weight: 700; color: var(--primary); }
.service-duration { font-size: 0.8125rem; color: var(--muted-foreground); }

.barber-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.barber-card { background: #fff; border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 24px; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; display: flex; gap: 16px; }
.barber-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.barber-card.selected { border-color: var(--primary); background: #f8fafc; }
.barber-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--muted); flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.barber-avatar img { width: 100%; height: 100%; object-fit: cover; }
.barber-info { flex: 1; }
.barber-name { font-size: 1.125rem; font-weight: 600; margin-bottom: 4px; }
.barber-specialty { font-size: 0.875rem; color: var(--muted-foreground); margin-bottom: 8px; }
.barber-meta { display: flex; align-items: center; gap: 16px; font-size: 0.875rem; }
.barber-rating { display: flex; align-items: center; gap: 4px; color: #f59e0b; }

/* Calendar grid */
.cal-wrapper { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 24px; }
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-title { font-size: 1rem; font-weight: 600; }
.cal-nav { display: flex; gap: 8px; }
.cal-nav button { background: var(--secondary); border: none; border-radius: var(--radius); padding: 6px 12px; cursor: pointer; transition: background 0.15s; }
.cal-nav button:hover { background: var(--muted); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day-label { text-align: center; font-size: 0.75rem; font-weight: 600; color: var(--muted-foreground); padding: 8px 0; }
.cal-day { text-align: center; padding: 8px 4px; border-radius: 8px; font-size: 0.9375rem; cursor: pointer; transition: background 0.15s, color 0.15s; }
.cal-day:hover:not(.cal-day-disabled):not(.cal-day-empty) { background: var(--muted); }
.cal-day.cal-day-today { font-weight: 700; color: var(--primary); }
.cal-day.cal-day-selected { background: var(--primary); color: #fff; }
.cal-day.cal-day-disabled { color: var(--muted-foreground); cursor: not-allowed; opacity: 0.4; }
.cal-day.cal-day-empty { cursor: default; }

.time-slots-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 8px; }
.time-slot { padding: 12px; border: 1.5px solid var(--border); border-radius: var(--radius); text-align: center; cursor: pointer; font-size: 0.9375rem; transition: border-color 0.15s, background 0.15s; }
.time-slot:hover:not(.time-slot-taken) { border-color: var(--primary); background: var(--secondary); }
.time-slot.selected { border-color: var(--primary); background: var(--primary); color: #fff; }
.time-slot.time-slot-taken { background: var(--muted); color: var(--muted-foreground); cursor: not-allowed; text-decoration: line-through; }

/* Booking summary card */
.summary-card { background: #f8fafc; border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 20px; }
.summary-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.summary-row:last-child { border-bottom: none; }
.summary-label { color: var(--muted-foreground); font-size: 0.9375rem; }
.summary-value { font-weight: 500; }
.summary-total .summary-value { font-size: 1.125rem; font-weight: 700; color: var(--primary); }

/* ================================================================
   CUSTOMER DASHBOARD
   ================================================================ */
.customer-layout { min-height: 100vh; background: #f8fafc; }
.customer-hero { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); color: #fff; padding: 48px 24px; text-align: center; }
.customer-hero h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 8px; }
.customer-hero p { color: #94a3b8; font-size: 1.0625rem; margin-bottom: 32px; }

@media (min-width: 900px) {
  .customer-topbar .topbar-brand { display: block; }
  .customer-layout { padding-left: 0; }
}

/* Customer home content grid */
.home-content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.home-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.select-schedule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.calendar-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }

/* ================================================================
   MODALS (generic)
   ================================================================ */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.hidden { display: none; }
.modal { background: #fff; border-radius: var(--radius-xl); padding: 32px; max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; box-shadow: var(--shadow-lg); animation: slideUp 0.2s ease; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-title { font-size: 1.25rem; font-weight: 600; }
.modal-close { background: none; border: none; cursor: pointer; color: var(--muted-foreground); padding: 4px; border-radius: 50%; display: flex; }
.modal-close:hover { color: var(--foreground); background: var(--accent); }
.modal-footer { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }

/* ================================================================
   PROFILE SECTION
   ================================================================ */
.profile-pic-wrap { position: relative; width: 96px; height: 96px; }
.profile-pic { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--muted); display: flex; align-items: center; justify-content: center; border: 3px solid var(--border); overflow: hidden; }
.profile-pic-change { position: absolute; bottom: 0; right: 0; width: 30px; height: 30px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #fff; border: 2px solid #fff; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  button[onclick*="toggleSidebar"],
  button[data-toggle-sidebar] { display: flex !important; align-items: center; gap: 8px; }
  .dashboard-layout { display: block; }
  .topbar-inner { flex-wrap: wrap; gap: 12px; }
  .topbar-nav { width: 100%; justify-content: flex-end; flex-wrap: wrap; }
  .topbar-nav a, .topbar-nav button { flex: 1 1 150px; min-width: 120px; }
  .sidebar {
    width: min(260px, 90vw);
    transform: translateX(-100%);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
  }
  .sidebar.open { transform: translateX(0) !important; }
  .main-content { margin-left: 0; }
  .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 90; }
  .sidebar-overlay.show { display: block; }
  .page-content { padding: 18px 14px; }
  .page-header, .card-header, .booking-header, .cal-header, .modal-header { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
  .page-header h1 { font-size: 1.75rem; }
  .table-wrapper, .table-responsive { min-width: 0; overflow-x: auto; }
  .table-responsive table { min-width: 100%; }
  .form-control { min-width: 0; width: 100%; }
  .page-content form, .card-header form, .booking-header form { flex-wrap: wrap !important; align-items: center; gap: 12px; }
  .table-actions { display: flex; flex-wrap: wrap; gap: 10px; }
  .table-actions button, .table-actions a { min-width: 120px; }

  .stats-grid, .service-grid, .barber-grid, .home-content-grid, .home-features-grid, .calendar-layout, .select-schedule-grid, .about-card { grid-template-columns: 1fr !important; }
  .profile-grid-1-2, .profile-grid-1-1, .reports-grid, .manage-services-grid, .select-schedule-grid { grid-template-columns: 1fr !important; }
  .service-card, .barber-card { flex-direction: column; }
  .service-card .service-meta { flex-direction: column; align-items: flex-start; }
  .summary-card { width: 100%; }
  .container, .container-sm { padding: 0 18px; }
}
@media (max-width: 900px) {
  .table-wrapper { font-size: 0.95rem; }
  table { min-width: 100%; }
  th, td { white-space: normal; word-break: break-word; }
  th:nth-child(6), td:nth-child(6),
  th:nth-child(7), td:nth-child(7) {
    display: none;
  }
  .table-actions { flex-direction: column; gap: 6px; }
  .table-actions button, .table-actions a {
    font-size: 0.85rem;
    padding: 6px 10px;
  }
}
@media (max-width: 768px) {
  .page-content { padding: 16px 14px; }
  .page-header { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 0.75rem; }
  .page-header h1 { font-size: 1.5rem; }
  .table-wrapper { font-size: 0.9rem; }
  th, td { white-space: normal; }
  th:nth-child(4), td:nth-child(4),
  th:nth-child(5), td:nth-child(5),
  th:nth-child(6), td:nth-child(6),
  th:nth-child(7), td:nth-child(7) {
    display: none;
  }
  .card-body { padding: 16px; }
  .card-header, .card-footer { padding: 14px 16px; }
  .service-card, .barber-card { gap: 12px; }
  .booking-steps { gap: 10px; }
  .cal-grid { gap: 3px; }
}
@media (max-width: 640px) {
  .mobile-menu-btn { display: flex !important; }
  .topbar-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); flex-direction: column; padding: 16px; box-shadow: var(--shadow); z-index: 50; }
  .topbar-nav.open { display: flex; }
  .topbar-user-info { display: none !important; }

  .landing-features { grid-template-columns: 1fr; max-width: 320px; }
  .page-content { padding: 16px 14px; }
  .stats-grid { grid-template-columns: 1fr; }
  .service-grid, .barber-grid { grid-template-columns: 1fr; }
  .auth-modal { padding: 28px 20px; }

  .table-wrapper { font-size: 0.875rem; }
  th, td { padding: 10px 8px; }
  .table-actions { flex-direction: column; gap: 4px; }
  .table-actions button, .table-actions a { font-size: 0.8125rem; padding: 4px 8px; }

  .page-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .page-header h1 { font-size: 1.5rem; }

  .modal { padding: 24px 16px; margin: 16px; max-width: none; width: calc(100vw - 32px); }
  .modal-header { margin-bottom: 16px; }
  .modal-title { font-size: 1.125rem; }
  .modal-footer { flex-direction: column; gap: 8px; }
  .modal-footer button { width: 100%; }

  .form-group { margin-bottom: 20px; }
  .form-control { font-size: 16px; }

  .booking-steps { flex-wrap: wrap; gap: 12px; }
  .booking-step { flex: 1; min-width: 120px; }
  .booking-step-divider { display: none; }

  .customer-hero h1 { font-size: 2rem; }
  .customer-hero p { font-size: 1rem; }

  .home-content-grid { grid-template-columns: 1fr; }
  .home-features-grid { grid-template-columns: 1fr; }

  .cal-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cal-nav { align-self: stretch; justify-content: space-between; }
  .cal-grid { font-size: 0.8125rem; }
  .cal-day { padding: 6px 2px; font-size: 0.8125rem; }

  .container { padding: 0 16px; }
  .container-sm { padding: 0 16px; }

  .landing { padding: 20px 16px; }
  .landing-content { max-width: none; }
  .landing-logo { font-size: 2.5rem; }
  .landing-tagline { font-size: 1rem; margin-bottom: 16px; }
  .landing-desc { font-size: 1rem; margin-bottom: 32px; }
  .landing-features { margin-bottom: 32px; }
  .landing-cta-area { margin-bottom: 32px; }
  .landing-testimonial { margin-bottom: 24px; padding: 20px 24px; }

  .auth-page { padding: 20px 16px; }
  .auth-page-card { padding: 24px 20px; }

  .topbar-brand { font-size: 1rem; }
  .topbar-inner { padding: 0 16px; }

  .card-body { padding: 16px; }
  .card-header, .card-footer { padding: 12px 16px; }

  .btn { padding: 8px 16px; font-size: 0.875rem; }
  .btn-sm { padding: 6px 12px; }
  .btn-lg { padding: 12px 24px; }

  .form-label { font-size: 0.875rem; }
  .form-control { padding: 8px 12px; }

  .alert { padding: 10px 12px; font-size: 0.875rem; }
}
@media (max-width: 480px) {
  th:nth-child(4), td:nth-child(4),
  th:nth-child(5), td:nth-child(5),
  th:nth-child(6), td:nth-child(6) { display: none; }

  .page-content { padding: 14px 10px; }
  .table-actions { flex-direction: column; align-items: stretch; gap: 6px; }
  .table-actions button, .table-actions a {
    text-align: center;
    padding: 8px 12px;
    font-size: 0.875rem;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .modal { padding: 16px; width: calc(100vw - 16px); margin: 8px; }
  .time-slots-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .table-responsive table,
  .table-responsive thead,
  .table-responsive tbody,
  .table-responsive th,
  .table-responsive td,
  .table-responsive tr {
    display: block;
  }
  .table-responsive thead {
    display: none;
  }
  .table-responsive tr {
    background: #fff;
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-bottom: 1rem;
  }
  .table-responsive td {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    align-items: baseline;
    flex-wrap: wrap;
  }
  .table-responsive td span.badge {
    white-space: nowrap;
  }
  .table-responsive td select,
  .table-responsive td button {
    min-width: 100%;
  }
  .table-responsive td::before {
    content: attr(data-label);
    color: var(--muted-foreground);
    font-size: 0.85rem;
    font-weight: 600;
    width: 40%;
    flex: 0 0 40%;
  }
  .table-responsive td:last-child {
    border-bottom: none;
    padding-top: 0.5rem;
  }
  .table-responsive td[data-label="#"]::before {
    content: "Appointment";
  }
  .table-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .table-actions button, .table-actions a {
    width: 100%;
    justify-content: center;
  }
}

/* ================================================================
   LOADING / SPINNER
   ================================================================ */
.spinner { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.6s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ================================================================
   TOAST NOTIFICATIONS
   ================================================================ */
#toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: #fff; border-radius: var(--radius); padding: 14px 20px 14px 16px; box-shadow: var(--shadow-lg); border-left: 4px solid; display: flex; align-items: center; gap: 10px; min-width: 280px; max-width: 380px; animation: toastIn 0.25s ease; font-size: 0.9375rem; }
.toast-success { border-color: #16a34a; }
.toast-error   { border-color: #dc2626; }
.toast-info    { border-color: #2563eb; }
@keyframes toastIn { from { opacity:0; transform:translateX(30px); } to { opacity:1; transform:translateX(0); } }
.toast-fadeout { animation: toastOut 0.3s ease forwards; }
@keyframes toastOut { to { opacity:0; transform:translateX(30px); } }
