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

/* ==========================================================================
   1. DESIGN TOKENS & VARIABLES
   ========================================================================== */
:root {
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Color Palette (Dark - default) */
    --bg-main: #0b0d13;
    --bg-card: rgba(20, 24, 38, 0.7);
    --bg-card-hover: rgba(28, 33, 53, 0.85);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-color-hover: rgba(224, 169, 109, 0.3);

    /* Luxury Accent Colors */
    --accent-gold: #e0a96d;
    --accent-gold-dark: #b38728;
    --accent-gold-glow: rgba(224, 169, 109, 0.25);
    --accent-gradient: linear-gradient(135deg, #f5d6b3 0%, #e0a96d 50%, #b8864b 100%);
    
    /* Text Colors */
    --text-primary: #f0f2f7;
    --text-muted: #9ba3b8;
    --text-dark: #0f121a;

    /* Statuses */
    --color-pending: #3b82f6;
    --color-confirmed: #f59e0b;
    --color-completed: #10b981;
    --color-cancelled: #ef4444;
    
    /* Transitions & Shadows */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-luxury: 0 15px 35px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(224, 169, 109, 0.15);
}

/* ─── Light Theme ─── */
[data-theme="light"] {
    --bg-main: #f5f2ed;
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-card-hover: rgba(255, 255, 255, 0.92);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-color-hover: rgba(224, 169, 109, 0.4);
    --accent-gold: #b8864b;
    --accent-gold-dark: #8a6937;
    --accent-gold-glow: rgba(184, 134, 75, 0.2);
    --accent-gradient: linear-gradient(135deg, #d4a34a 0%, #b8864b 50%, #9a6f3a 100%);
    --text-primary: #1a1a2e;
    --text-muted: #6b7280;
    --text-dark: #f5f2ed;
    --shadow-luxury: 0 15px 35px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 20px rgba(184, 134, 75, 0.12);
}

[data-theme="light"] body {
    background-image:
        radial-gradient(circle at 10% 20%, rgba(184, 134, 75, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.03) 0%, transparent 40%);
}

[data-theme="light"] .header {
    background: rgba(245, 242, 237, 0.85);
}

[data-theme="light"] .staff-header,
[data-theme="light"] .customer-header {
    background: rgba(245, 242, 237, 0.85);
}

[data-theme="light"] .staff-sidebar,
[data-theme="light"] .customer-sidebar {
    background: #ece8e0;
}

[data-theme="light"] .form-control {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.12);
    color: #1a1a2e;
}

[data-theme="light"] .sidebar {
    background: #ece8e0;
}

[data-theme="light"] .dashboard-content {
    background: #f5f2ed;
}

[data-theme="light"] .booking-steps {
    background: #f5f2ed;
}

[data-theme="light"] .step-num {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] footer {
    background: #e8e4dc !important;
    border-top-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .staff-toast {
    background: #ffffff !important;
}

[data-theme="light"] #staff-notif-dropdown,
[data-theme="light"] #admin-notif-dropdown,
[data-theme="light"] #admin-toast-container > div {
    background: #ffffff !important;
}

[data-theme="light"] .table th {
    background: #ece8e0;
}

[data-theme="light"] .table td {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .table-responsive {
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .table {
    background: var(--bg-card);
}

[data-theme="light"] .nav-links li {
    color: var(--text-primary);
}

[data-theme="light"] .admin-hamburger {
    background: rgba(245, 242, 237, 0.9) !important;
}

[data-theme="light"] .booking-step-progress,
[data-theme="light"] .step-item .step-num {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .staff-toast-container .staff-toast {
    background: #ffffff !important;
    border-color: var(--accent-gold);
}

[data-theme="light"] .stylist-avatar-fallback {
    background: #e3dfd8;
}

[data-theme="light"] .slot-item {
    background: rgba(245, 242, 237, 0.8);
    border-color: rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   2. GENERAL RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(224, 169, 109, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.02) 0%, transparent 40%);
}

main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

button, input, select, textarea {
    font-family: inherit;
    color: inherit;
}

/* ==========================================================================
   3. TYPOGRAPHY & GRADIENT TEXT
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ==========================================================================
   4. LUXURY LAYOUT COMPONENTS
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header / Navigation */
.header {
    background: rgba(11, 13, 19, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--accent-gold);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    list-style: none;
}

.nav-link {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-gold);
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-luxury);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--border-color-hover);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-luxury), var(--shadow-glow);
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(224, 169, 109, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(224, 169, 109, 0.45);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color-hover);
    color: var(--accent-gold);
}

.btn-secondary:hover {
    background: rgba(224, 169, 109, 0.05);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

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

.btn-danger:hover {
    background: var(--color-cancelled);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   5. LANDING PAGE SPECIFICS
   ========================================================================== */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
}

.hero-tagline {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.15;
    max-width: 800px;
    margin: 0 auto 24px;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Services Grid Section */
.section-title-area {
    text-align: center;
    margin-bottom: 50px;
}

.section-subtitle {
    color: var(--accent-gold);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.15em;
    font-weight: 600;
    margin-bottom: 8px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
}

.services-tabs-container {
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.service-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-gold);
}

.service-duration {
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Stylists Section */
.stylist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.stylist-card {
    text-align: center;
}

.stylist-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(224, 169, 109, 0.2) 0%, rgba(224, 169, 109, 0.05) 100%);
    border: 2px solid var(--border-color-hover);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stylist-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.stylist-avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #171c2a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-gold);
}

.stylist-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
}

.stylist-role {
    font-size: 13px;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    margin-bottom: 12px;
}

.stylist-bio {
    font-size: 14px;
    color: var(--text-muted);
}

/* Testimonials Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.review-stars {
    color: #fbbf24;
    margin-bottom: 12px;
    display: flex;
    gap: 4px;
}

.review-text {
    font-style: italic;
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 20px;
}

.review-author {
    font-weight: 600;
    font-size: 14px;
}

/* ==========================================================================
   6. BOOKING WIZARD FLOW
   ========================================================================== */
.booking-wizard {
    max-width: 900px;
    margin: 40px auto 80px;
}

/* Step Progress Indicator */
.booking-steps {
    display: flex;
    justify-content: space-between;
    position: sticky;
    top: 80px;
    z-index: 99;
    margin-bottom: 40px;
    background: var(--bg-main);
    padding: 16px 0;
}

.booking-steps::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.step-item {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #171c2a;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 8px;
    transition: var(--transition-smooth);
}

.step-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.step-item.active .step-num {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--text-dark);
    box-shadow: 0 0 15px var(--accent-gold-glow);
}

.step-item.active .step-label {
    color: var(--accent-gold);
}

.step-item.completed .step-num {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}

/* Selection Cards Grid */
.booking-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.selection-card {
    background: rgba(23, 28, 41, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

.selection-card:hover {
    border-color: var(--border-color-hover);
    background: rgba(28, 33, 53, 0.6);
}

.selection-card.selected {
    border-color: var(--accent-gold);
    background: rgba(224, 169, 109, 0.08);
    box-shadow: 0 0 15px rgba(224, 169, 109, 0.1);
}

/* Time Slot Selection */
.slots-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.slot-item {
    background: rgba(23, 28, 41, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.slot-item:hover:not(.disabled) {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.slot-item.selected {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--text-dark);
}

.slot-item.disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

/* ==========================================================================
   7. BOOKING CATEGORY PILLS
   ========================================================================== */
.cat-pill {
    display:inline-block;
    padding:8px 22px;
    margin-right:8px;
    border-radius:50px;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    background:rgba(255,255,255,0.05);
    color:var(--text-muted);
    transition:var(--transition-smooth);
    border:1px solid var(--border-color);
    white-space:nowrap;
    user-select:none;
}
.cat-pill.active {
    background:var(--accent-gold);
    color:var(--text-dark);
    border-color:transparent;
}
.cat-pills-wrap {
    overflow-x:auto;
    white-space:nowrap;
    padding-bottom:8px;
    margin-bottom:20px;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    scroll-snap-type:x mandatory;
    display:flex;
    gap:6px;
    padding-left:2px;
    padding-right:2px;
}
.cat-pills-wrap::-webkit-scrollbar { display:none; }
.cat-pills-wrap .cat-pill {
    scroll-snap-align:start;
    flex:0 0 auto;
    margin-right:0;
}

/* ==========================================================================
   8. FORM CONTROLS & INPUTS
   ========================================================================== */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    background: #171c2a;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 15px;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(224, 169, 109, 0.1);
}

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

/* ==========================================================================
   8. DASHBOARDS (ADMIN & STAFF & CLIENT)
   ========================================================================== */
.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 80px);
}

.sidebar {
    width: 280px;
    background: #0f121a;
    border-right: 1px solid var(--border-color);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    align-self: flex-start;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.sidebar-link:hover, .sidebar-link.active {
    background: rgba(224, 169, 109, 0.08);
    color: var(--accent-gold);
}

.dashboard-content {
    flex: 1;
    padding: 40px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    background: #0b0d13;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

/* Metric Cards */
.metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.metric-card {
    padding: 24px;
}

.metric-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.metric-value {
    font-size: 32px;
    font-weight: 800;
    font-family: var(--font-heading);
}

/* Glowing Status Pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.status-pending {
    background: rgba(59, 130, 246, 0.15);
    color: var(--color-pending);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-confirmed {
    background: rgba(245, 158, 11, 0.15);
    color: var(--color-confirmed);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-completed {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-completed);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-cancelled);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Premium Tables */
.table-responsive {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background: var(--bg-card);
}

.table th {
    background: #171c2a;
    padding: 16px 20px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.table td {
    padding: 18px 20px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   9. UTILITIES & HELPER CLASSES
   ========================================================================== */
.alert {
    padding: 16px 24px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-weight: 500;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--color-completed);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--color-cancelled);
}

.text-muted {
    color: var(--text-muted) !important;
}

.mt-4 { margin-top: 24px; }
.mb-4 { margin-bottom: 24px; }

/* Responsive adjustments */
@media (max-width: 992px) {
    .dashboard-layout {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
    }
    .hero-btns .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    .nav-links {
        display: none; /* Add responsive mobile menu toggle in views if needed */
    }

    /* ─── Booking Wizard Mobile ─── */
    body { overflow-x: hidden; }
    main { overflow-x: hidden; }
    .booking-wizard {
        margin: 20px auto 40px;
        overflow-x: hidden;
    }
    .booking-steps {
        top: 70px;
        padding: 12px 0;
        gap: 2px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .booking-steps::after { display: none; }
    .step-item { flex: 0 0 auto; min-width: 50px; }
    .step-num { width: 32px; height: 32px; font-size: 12px; margin-bottom: 4px; }
    .step-label { font-size: 9px; white-space: nowrap; }
    .step-content { padding: 0 4px; }
    .step-content h2 { font-size: 20px !important; }
    .step-content h2 + p { font-size: 13px !important; }

    .booking-card-grid { grid-template-columns: 1fr; gap: 12px; overflow-wrap: break-word; }
    .selection-card { padding: 16px; word-break: break-word; }

    .slots-container { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px; }
    .slot-item { padding: 10px; font-size: 12px; }

    #services-total-bar { flex-direction: column; gap: 12px; align-items: stretch !important; padding: 12px 16px !important; max-width: 100%; }
    #services-total-bar > div:first-child { text-align: center; }
    #services-total-bar > div:last-child { justify-content: center !important; gap: 12px !important; flex-wrap: wrap !important; max-width: 100% !important; }
    #services-total-bar .summary-text-align { text-align: center !important; }

    #services-total-bar strong:not(#selected-services-count) { font-size: 16px !important; }

    /* Ensure step content doesn't cause overflow */
    .step-content { overflow-x: hidden; }

    .booking-wizard .glass-card { padding: 16px; }

    .sticky-side-info { position: static; }

    /* Sticky category pills */
    .cat-pills-wrap {
        position: sticky;
        top: 0;
        z-index: 3;
        background: var(--bg-main);
        padding-top: 12px;
        padding-bottom: 12px;
        margin-bottom: 0;
    }

    /* Service cards more compact on mobile */
    .selection-card.service-select-card { padding: 14px; }
    .service-select-card h4 { font-size: 15px !important; }
    .service-select-card p { font-size: 12px !important; margin-bottom: 10px !important; }

    /* Card header row: prevent checkbox from being squeezed */
    .selection-card.service-select-card > div:first-of-type {
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        gap: 8px !important;
        margin-bottom: 10px !important;
    }
    .selection-card.service-select-card > div:first-of-type h4 {
        flex: 1;
        min-width: 0;
        word-break: break-word;
    }
    .selection-card.service-select-card > div:first-of-type .checkbox-indicator {
        flex-shrink: 0;
    }

    /* Card price row: allow wrapping */
    .selection-card.service-select-card > div:last-child {
        font-size: 12px !important;
        padding-top: 8px !important;
        flex-wrap: wrap !important;
        gap: 4px 8px !important;
    }
    .checkbox-indicator { width: 18px !important; height: 18px !important; }

    /* Card description clamp */
    .service-select-card p {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-clamp: 2;
    }

    /* Step 3 stylist grid */
    .step-content#step-3 > div:last-child { grid-template-columns: repeat(2, 1fr) !important; }

    /* Step 4 date/time */
    .step-content#step-4 > div:first-of-type { flex-direction: column; gap: 16px !important; }
    .step-content#step-4 > div:first-of-type > div { min-width: 0 !important; width: 100%; }

    /* Step 5 personal details grid */
    .step-content#step-5 > div:first-of-type { grid-template-columns: 1fr !important; }

    /* Step 6 review summary */
    .step-content#step-6 > div:first-of-type > div:first-of-type { grid-template-columns: 1fr 1fr !important; gap: 16px !important; }
    .step-content#step-6 h3 { font-size: 15px !important; }

    /* Step 6: tighter review box on mobile */
    #step-6 > div:first-of-type { padding: 16px !important; }
    /* Step 6: total row stack */
    #step-6 > div:first-of-type > div:last-child {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: stretch !important;
        text-align: center;
    }
    #step-6 > div:first-of-type > div:last-child .summary-text-align {
        text-align: center !important;
    }
    #step-6 > div:first-of-type > div:last-child h3 { font-size: 20px !important; }

    /* Step 1: branch grid single column */
    #step-1 > div:first-of-type { grid-template-columns: 1fr !important; }

    /* Step 3: stylist selected state */
    .stylist-select-card.selected { border-color: var(--accent-gold); box-shadow: 0 0 12px rgba(224,169,109,0.12); }

    /* Step 4: form control full width */
    #step-4 .form-control { width: 100%; }

    /* Wizard controls */
    .step-content + div { flex-direction: column; gap: 10px; align-items: stretch !important; }
    .step-content + div .btn { width: 100%; }
}

@media (max-width: 480px) {
    .hero-btns .btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    /* ─── Booking Wizard Small Mobile ─── */
    .booking-wizard { margin: 12px auto 30px; }
    .booking-steps { gap: 0; }
    .step-num { width: 26px; height: 26px; font-size: 10px; }
    .step-label { font-size: 8px; }
    .step-content h2 { font-size: 18px !important; }
    .step-content h2 + p { font-size: 12px !important; }
    .selection-card { padding: 12px; }

    .slots-container { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .slot-item { padding: 8px; font-size: 11px; }

    #services-total-bar > div:last-child { flex-direction: column; gap: 6px !important; align-items: center; }
    #services-total-bar .summary-text-align strong { font-size: 14px !important; }

    #summary-services-list > div { flex-direction: column; gap: 4px; text-align: center; }

    .service-select-card h4 { font-size: 14px !important; }

    /* Tighter card spacing on small mobile */
    .selection-card.service-select-card > div:first-of-type {
        margin-bottom: 6px !important;
    }
    .service-select-card p {
        -webkit-line-clamp: 1;
        line-clamp: 1;
        margin-bottom: 8px !important;
    }
    .selection-card.service-select-card > div:last-child {
        font-size: 11px !important;
        padding-top: 6px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 2px !important;
    }

    .step-content#step-3 > div:last-child { grid-template-columns: 1fr !important; }
    .step-content#step-6 > div:first-of-type > div:first-of-type { grid-template-columns: 1fr !important; }

    /* Step 6: ultra-compact review box */
    #step-6 > div:first-of-type { padding: 12px !important; }
    #step-6 > div:first-of-type h4 { font-size: 13px !important; }
    #step-6 > div:first-of-type > div:last-child h3 { font-size: 18px !important; }

    /* Step 5: tighter form spacing */
    #step-5 > div:first-of-type { gap: 12px !important; }

    .cat-pills-wrap .cat-pill {
        font-size: 12px;
        padding: 6px 14px;
    }
}

/* ─── Extra Small Mobile (≤376px) ─── */
@media (max-width: 376px) {
    .selection-card.service-select-card { padding: 10px; }
    .service-select-card h4 { font-size: 13px !important; }
    .selection-card.service-select-card > div:last-child {
        font-size: 10px !important;
    }
    .cat-pills-wrap .cat-pill {
        font-size: 11px;
        padding: 5px 12px;
    }
    #services-total-bar { padding: 10px 12px !important; }
    #services-total-bar strong { font-size: 14px !important; }
}

/* ==========================================================================
   10. RIGHT-TO-LEFT (RTL) STYLING FOR BILINGUAL SUPPORT
   ========================================================================== */
html[dir="rtl"] {
    text-align: right;
}

html[dir="rtl"] body {
    text-align: right;
}

/* Flexbox and direction flows adjust automatically, but let's reverse borders and directional margins */
html[dir="rtl"] .sidebar {
    border-right: none;
    border-left: 1px solid var(--border-color);
}

html[dir="rtl"] .sidebar-link svg {
    margin-right: 0;
}

html[dir="rtl"] .logo-dot {
    box-shadow: 0 0 10px var(--accent-gold);
}

html[dir="rtl"] .table th,
html[dir="rtl"] .table td {
    text-align: right;
}

/* Reverse cell alignments that are hardcoded to align right in LTR */
html[dir="rtl"] .table th[style*="text-align: right"],
html[dir="rtl"] .table td[style*="text-align: right"],
html[dir="rtl"] .table th[style*="text-align:right"],
html[dir="rtl"] .table td[style*="text-align:right"],
html[dir="rtl"] td[style*="text-align: right"],
html[dir="rtl"] th[style*="text-align: right"],
html[dir="rtl"] td[style*="text-align:right"],
html[dir="rtl"] th[style*="text-align:right"],
html[dir="rtl"] .table-responsive th[style*="text-align: right"],
html[dir="rtl"] .table-responsive td[style*="text-align: right"] {
    text-align: left !important;
}

html[dir="rtl"] .table-responsive th[style*="justify-content: flex-end"],
html[dir="rtl"] .table-responsive td[style*="justify-content: flex-end"],
html[dir="rtl"] div[style*="justify-content: flex-end"],
html[dir="rtl"] div[style*="justify-content:flex-end"] {
    justify-content: flex-start !important;
}

html[dir="rtl"] label input[type="checkbox"],
html[dir="rtl"] input[type="checkbox"] {
    margin-right: 0;
    margin-left: 8px;
}

html[dir="rtl"] .form-label {
    text-align: right;
}

html[dir="rtl"] .alert {
    text-align: right;
}

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

/* ==========================================================================
   11. THEME TOGGLE BUTTON
   ========================================================================== */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    position: relative;
}

.theme-toggle:hover {
    color: var(--accent-gold);
    background: rgba(224, 169, 109, 0.1);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.4s ease;
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .moon-icon {
    display: none;
}

.theme-toggle:active svg {
    transform: scale(0.8);
}

/* Smooth theme transition */
html {
    transition: background-color 0.3s ease, color 0.3s ease;
}

body,
.header,
.staff-header,
.customer-header,
.staff-sidebar,
.customer-sidebar,
.sidebar,
.dashboard-content,
.form-control,
.glass-card,
footer,
.staff-toast,
.table th,
.table td,
.table-responsive,
.nav-links,
.booking-steps,
.step-num {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* Welcome page specific animations */
.animate-fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-in-delay-1 {
    animation-delay: 0.1s;
}

.animate-fade-in-delay-2 {
    animation-delay: 0.2s;
}

.animate-fade-in-delay-3 {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover lift effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Pulse glow for accent elements */
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 10px var(--accent-gold-glow); }
    50% { box-shadow: 0 0 25px var(--accent-gold-glow); }
}

.pulse-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}

