/* ═══════════════════════════════════════════════
   Evan Beauty — Main Stylesheet
   Color palette: Deep plum + rose gold + cream
════════════════════════════════════════════════ */
:root {
    --primary: #8b5e83;
    --primary-d: #6d4a66;
    --accent: #c9a96e;
    --accent-l: #e8c99a;
    --dark: #0d0a0f;
    --card-bg: #1a1520;
    --surface: #221b28;
    --border: rgba(255, 255, 255, 0.08);
    --text: #e8e0ec;
    --muted: #9a8fa8;
    --gradient: linear-gradient(135deg, #8b5e83 0%, #c9a96e 100%);
    --gradient2: linear-gradient(135deg, #6d4a66 0%, #8b5e83 100%);
}

* {
    box-sizing: border-box;
}

body {
    background: var(--dark);
    color: var(--text);
    font-family: 'Segoe UI', system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

p {
    color: #d0c8d8;
}

.text-muted,
small,
.small {
    color: var(--muted) !important;
}

.table {
    color: #ddd !important;
}

.table> :not(caption)>*>* {
    background-color: transparent !important;
    color: #ddd;
}

select option {
    background: var(--surface);
    color: var(--text);
}

/* ── Navbar ── */
#mainNav {
    background: rgba(13, 10, 15, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    transition: all 0.3s;
}

.navbar-brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    font-size: 1.4rem;
    color: var(--accent);
}

.brand-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.brand-accent {
    color: var(--accent);
}

.nav-link {
    color: #ccc !important;
    font-size: 0.9rem;
    font-weight: 700 !important;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--accent) !important;
}

.btn-beauty {
    background: var(--gradient);
    border: none;
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(139, 94, 131, 0.3);
}

.btn-beauty::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    right: 100%;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s, right 0.5s;
}

.btn-beauty:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 8px 25px rgba(139, 94, 131, 0.5);
}

.btn-beauty:hover::before {
    left: 100%;
    right: -100%;
}

.btn-beauty:active {
    transform: translateY(0);
}

/* ── Hero ── */
.hero-section {
    background: var(--gradient2);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1560066984-138dadb4c035?w=1400&auto=format&fit=crop') center/cover;
    opacity: 0.1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201, 169, 110, 0.15);
    border: 1px solid rgba(201, 169, 110, 0.3);
    border-radius: 50px;
    padding: 6px 18px;
    font-size: 0.8rem;
    color: var(--accent-l);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
}

.hero-gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
}

/* ── Stats bar ── */
.stats-bar {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
}

.stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── Section ── */
.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 8px;
}

.section-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: #fff;
}

.section-sub {
    color: var(--muted);
    font-size: 0.95rem;
}

/* ── Service card ── */
.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(139, 94, 131, 0.35);
    border-color: rgba(201, 169, 110, 0.3);
}

.service-card .card-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.4s;
}

.service-card:hover .card-img {
    transform: scale(1.05);
}

.service-card .img-wrap {
    overflow: hidden;
    position: relative;
}

.service-cat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 0.72rem;
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
}

.service-card .card-body {
    padding: 20px;
}

.service-card .card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.service-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent);
}

.service-duration {
    font-size: 0.78rem;
    color: var(--muted);
}

/* ── Stylist card ── */
.stylist-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stylist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(139, 94, 131, 0.2);
}

.stylist-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    margin: 0 auto 14px;
    display: block;
}

.stylist-avatar-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 auto 14px;
    border: 3px solid var(--accent);
}

.stylist-name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.stylist-spec {
    font-size: 0.82rem;
    color: var(--accent);
    margin-top: 4px;
}

/* ── Booking form ── */
.booking-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
}

.form-control,
.form-select {
    background: var(--surface) !important;
    border: 2px solid var(--border) !important;
    color: var(--text) !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.15) !important;
    background: rgba(34, 27, 40, 0.9) !important;
    transform: translateY(-1px);
}

.form-control:hover:not(:focus),
.form-select:hover:not(:focus) {
    border-color: rgba(201, 169, 110, 0.3) !important;
}

.form-control::placeholder {
    color: var(--muted) !important;
}

.form-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #dde2ea;
    margin-bottom: 6px;
}

/* ── Time slots ── */
.time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.time-slot {
    padding: 12px 20px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 0.88rem;
    cursor: pointer;
    background: var(--surface);
    color: var(--text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-weight: 500;
}

.time-slot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s;
}

.time-slot:hover:not(.booked) {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 169, 110, 0.2);
}

.time-slot.selected {
    background: var(--gradient);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(139, 94, 131, 0.4);
}

.time-slot.selected::after {
    content: '✓';
    position: absolute;
    top: 2px;
    right: 6px;
    font-size: 0.7rem;
    color: #fff;
}

.time-slot.booked {
    opacity: 0.3;
    cursor: not-allowed;
    text-decoration: line-through;
    background: rgba(220, 53, 69, 0.05);
    border-color: rgba(220, 53, 69, 0.2);
}

/* ── Summary card ── */
.summary-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    color: #d0c8d8;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-total {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}

/* ── Ticket card ── */
.ticket-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
}

.ticket-id {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--accent);
    font-family: monospace;
}

.ticket-divider {
    border: none;
    border-top: 2px dashed rgba(255, 255, 255, 0.1);
    margin: 20px 0;
    position: relative;
}

.ticket-divider::before,
.ticket-divider::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--dark);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.ticket-divider::before {
    left: -12px;
}

.ticket-divider::after {
    right: -12px;
}

/* ── Badges ── */
.badge-status {
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-pending {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

.badge-confirmed {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.badge-completed {
    background: rgba(58, 134, 255, 0.15);
    color: #3a86ff;
}

.badge-cancelled {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

.badge-paid {
    background: rgba(32, 201, 151, 0.15);
    color: #20c997;
}

/* ── How it works ── */
.how-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 30px 24px;
    text-align: center;
    transition: transform 0.3s;
}

.how-card:hover {
    transform: translateY(-5px);
}

.how-num {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent);
    opacity: 0.15;
    position: absolute;
    top: 12px;
    right: 16px;
    line-height: 1;
}

.how-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 16px;
}

/* ── Review card ── */
.review-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.3s;
}

.review-card:hover {
    transform: translateY(-4px);
}

.review-stars {
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.review-text {
    color: #c0b8c8;
    font-size: 0.88rem;
    line-height: 1.6;
}

.review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.review-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #e0e0e0;
}

/* ── CTA section ── */
.cta-section {
    background: var(--gradient2);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1522337360788-8b13dee7a37e?w=1200&auto=format&fit=crop') center/cover;
    opacity: 0.08;
}

/* ── Footer ── */
.site-footer {
    background: #080609;
    border-top: 1px solid var(--border);
}

.footer-brand {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
}

.footer-heading {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #e0e0e0;
    margin-bottom: 14px;
}

.footer-link {
    color: var(--muted) !important;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--accent) !important;
}

.footer-social {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}

.footer-social:hover {
    background: var(--primary);
    color: #fff;
    border-color: transparent;
}

/* ── Admin ── */
.admin-sidebar {
    background: #100d14;
    border-right: 1px solid var(--border);
    width: 260px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
    overflow: hidden;
}

.admin-sidebar nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(139,94,131,0.4) transparent;
}

.admin-sidebar nav::-webkit-scrollbar { width: 3px; }
.admin-sidebar nav::-webkit-scrollbar-track { background: transparent; }
.admin-sidebar nav::-webkit-scrollbar-thumb { background: rgba(139,94,131,0.4); border-radius: 2px; }

.admin-content {
    margin-left: 260px;
    padding: 28px;
    min-height: 100vh;
}

.admin-topbar {
    background: rgba(16, 13, 20, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 14px 28px;
    margin-left: 260px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 150;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: #9a8fa8 !important;
    font-size: 0.82rem;
    border-radius: 10px;
    text-decoration: none;
    margin-bottom: 1px;
    transition: all 0.2s;
}

.admin-nav-link:hover {
    background: rgba(139, 94, 131, 0.1);
    color: #e0e0e0 !important;
}

.admin-nav-link.active {
    background: rgba(139, 94, 131, 0.2);
    color: #fff !important;
    box-shadow: inset 3px 0 0 var(--primary);
}

.admin-nav-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card .icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}

.stat-card .label {
    font-size: 0.82rem;
    color: var(--muted);
}

.table-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.table-card table {
    margin: 0;
}

.table-card thead th {
    background: var(--surface);
    color: #b8c2d0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    border-top: none;
}

.table-card tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: #e0e0e0;
    font-size: 0.88rem;
    vertical-align: middle;
}

.table-card tbody tr:last-child td {
    border-bottom: none;
}

.table-card tbody tr:hover {
    background: rgba(139, 94, 131, 0.06);
}

/* ── Misc ── */
.modal-content {
    background: var(--card-bg) !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
}

.modal-header {
    border-bottom: 1px solid var(--border) !important;
}

.modal-footer {
    border-top: 1px solid var(--border) !important;
}

.dropdown-menu {
    background: var(--card-bg);
    border-color: var(--border);
}

.dropdown-item {
    color: #ddd;
}

.dropdown-item:hover {
    background: rgba(139, 94, 131, 0.15);
    color: #fff;
}

.alert-custom {
    border-radius: 12px;
    border: none;
    padding: 14px 20px;
    font-size: 0.9rem;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.fade-in {
    animation: fadeInUp 0.5s ease both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .admin-content,
    .admin-topbar {
        margin-left: 0 !important;
    }
}

/* ═══════════════════════════════════════════════
   Enhanced Interactive UI — Additional Styles
════════════════════════════════════════════════ */

/* ── Floating label inputs ── */
.input-float {
    position: relative;
    margin-bottom: 0;
}

.input-float .form-control,
.input-float .form-select {
    padding-top: 22px !important;
    padding-bottom: 8px !important;
}

.input-float label {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    font-size: 0.95rem;
    color: var(--muted);
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    font-weight: 400;
}

.input-float .form-control:focus~label,
.input-float .form-control:not(:placeholder-shown)~label,
.input-float .form-select:focus~label,
.input-float .form-select.has-value~label {
    top: 12px;
    transform: translateY(0);
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ── Step progress indicator ── */
.booking-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 160px;
}

.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--muted);
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    position: relative;
}

.step-item.active .step-circle {
    background: var(--gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 0 6px rgba(139, 94, 131, 0.2);
    transform: scale(1.1);
}

.step-item.done .step-circle {
    background: rgba(40, 167, 69, 0.2);
    border-color: #28a745;
    color: #28a745;
}

.step-label {
    font-size: 0.72rem;
    color: var(--muted);
    margin-top: 8px;
    text-align: center;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.step-item.active .step-label {
    color: var(--accent);
}

.step-item.done .step-label {
    color: #28a745;
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin-top: -22px;
    transition: background 0.4s;
    max-width: 80px;
}

.step-line.done {
    background: linear-gradient(90deg, #28a745, var(--primary));
}

/* ── Booking form sections (multi-step) ── */
.form-section {
    display: none;
    animation: fadeInUp 0.4s ease both;
}

.form-section.active {
    display: block;
}

/* ── Payment method cards ── */
.payment-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.payment-option {
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--surface);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.payment-option:hover {
    border-color: rgba(201, 169, 110, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.payment-option.selected {
    border-color: var(--accent);
    background: rgba(201, 169, 110, 0.08);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

.payment-option.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
}

.payment-icon {
    font-size: 1.8rem;
    margin-bottom: 6px;
    display: block;
}

.payment-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #e0e0e0;
}

.payment-sub {
    font-size: 0.72rem;
    color: var(--muted);
    margin-top: 2px;
}

.payment-option input[type="radio"] {
    display: none;
}

/* ── Stylist selector cards ── */
.stylist-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.stylist-option {
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 16px 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--surface);
    text-align: center;
    position: relative;
}

.stylist-option:hover {
    border-color: rgba(201, 169, 110, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 94, 131, 0.2);
}

.stylist-option.selected {
    border-color: var(--accent);
    background: rgba(201, 169, 110, 0.08);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

.stylist-option.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
}

.stylist-option .s-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin: 0 auto 10px;
    border: 2px solid var(--border);
    transition: border-color 0.3s;
}

.stylist-option.selected .s-avatar {
    border-color: var(--accent);
}

.stylist-option .s-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #e0e0e0;
}

.stylist-option .s-spec {
    font-size: 0.7rem;
    color: var(--muted);
    margin-top: 3px;
}

.stylist-option input[type="radio"] {
    display: none;
}

/* ── Service selector cards ── */
.service-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.service-option {
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--surface);
    position: relative;
}

.service-option:hover {
    border-color: rgba(201, 169, 110, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 94, 131, 0.2);
}

.service-option.selected {
    border-color: var(--accent);
    background: rgba(201, 169, 110, 0.08);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

.service-option.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 700;
}

.service-option .svc-cat {
    font-size: 0.68rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 6px;
}

.service-option .svc-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.service-option .svc-meta {
    font-size: 0.78rem;
    color: var(--muted);
}

.service-option .svc-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent);
    margin-top: 8px;
}

.service-option input[type="radio"] {
    display: none;
}

/* ── Category filter tabs ── */
.cat-filter-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.cat-tab {
    padding: 6px 18px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
}

.cat-tab:hover {
    border-color: rgba(201, 169, 110, 0.4);
    color: var(--accent-l);
}

.cat-tab.active {
    background: var(--gradient);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
}

/* ── Animated summary values ── */
.summary-value-change {
    animation: valuePop 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes valuePop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
        color: var(--accent);
    }

    100% {
        transform: scale(1);
    }
}

/* ── Slot loading skeleton ── */
.slot-skeleton {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.slot-skeleton-item {
    width: 90px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--surface) 25%, rgba(255, 255, 255, 0.04) 50%, var(--surface) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ── Floating action button ── */
.fab-book {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    border: none;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(139, 94, 131, 0.5);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    text-decoration: none;
}

.fab-book:hover {
    transform: scale(1.12) translateY(-3px);
    box-shadow: 0 12px 40px rgba(139, 94, 131, 0.7);
    color: #fff;
}

.fab-book .fab-tooltip {
    position: absolute;
    right: 70px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.fab-book:hover .fab-tooltip {
    opacity: 1;
}

/* ── Navbar active link indicator ── */
.nav-link.active-page {
    color: var(--accent) !important;
    position: relative;
}

.nav-link.active-page::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    right: 50%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: left 0.3s, right 0.3s;
}

.nav-link.active-page:hover::after,
.nav-link.active-page::after {
    left: 10%;
    right: 10%;
}

/* ── Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* ── Booking card enhanced ── */
.booking-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    transition: border-color 0.3s;
}

.booking-card:focus-within {
    border-color: rgba(201, 169, 110, 0.2);
}

/* ── Form section header ── */
.form-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.form-section-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(201, 169, 110, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent);
    flex-shrink: 0;
}

.form-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.form-section-sub {
    font-size: 0.78rem;
    color: var(--muted);
    margin: 0;
}

/* ── Next/Back step buttons ── */
.step-nav {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.btn-step-next {
    flex: 1;
    padding: 14px;
    background: var(--gradient);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(139, 94, 131, 0.3);
}

.btn-step-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 94, 131, 0.5);
}

.btn-step-back {
    padding: 14px 24px;
    background: transparent;
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--muted);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-step-back:hover {
    border-color: rgba(201, 169, 110, 0.4);
    color: var(--accent-l);
}

/* ── Confirmation animation ── */
.success-ring {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745, #20c997);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #fff;
    margin: 0 auto 24px;
    animation: successPop 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    60% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 20px rgba(40, 167, 69, 0);
    }
}

/* ── Tooltip on time slots ── */
.time-slot[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: #e0e0e0;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
}

/* ── Input icon wrapper ── */
.input-icon-wrap {
    position: relative;
}

.input-icon-wrap .form-control {
    padding-left: 44px !important;
}

.input-icon-wrap .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.2s;
}

.input-icon-wrap .form-control:focus~.input-icon,
.input-icon-wrap:focus-within .input-icon {
    color: var(--accent);
}

/* ── Password toggle ── */
.pass-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    transition: color 0.2s;
}

.pass-toggle:hover {
    color: var(--accent);
}

/* ── Smooth page transitions ── */
.page-enter {
    animation: pageEnter 0.4s ease both;
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive tweaks ── */
@media (max-width: 576px) {
    .booking-card {
        padding: 20px;
    }

    .payment-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .stylist-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-options {
        grid-template-columns: 1fr;
    }

    .booking-steps {
        gap: 0;
    }

    .step-label {
        font-size: 0.65rem;
    }

    .fab-book {
        bottom: 16px;
        right: 16px;
        width: 52px;
        height: 52px;
        font-size: 1.2rem;
    }
}

/* ── Count-up highlight — Happy Clients ── */
.stat-num.count-up[data-target] {
    transition: color 0.3s;
}
/* Make the hero inline stats bigger for Happy Clients (first child) */
.d-flex.gap-4 > div:first-child .stat-num {
    font-size: 2.4rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — Full breakpoint system
══════════════════════════════════════════════════════════════ */

/* ── Medium screens (tablets) ── */
@media (max-width: 768px) {
    /* Navbar */
    #mainNav .container { padding: 0 16px; }
    .navbar-collapse { padding: 12px 0; }
    .navbar-nav .nav-item { border-bottom: 1px solid rgba(255,255,255,0.06); }
    .navbar-nav .nav-link { padding: 10px 4px !important; }
    .navbar-nav .btn-beauty { width: 100%; text-align: center; margin-top: 8px; }
    #themeToggle { margin: 8px 0 4px; }

    /* Hero */
    .hero-section { min-height: 70vh; padding: 60px 0 40px; }
    .hero-section h1 { font-size: clamp(1.8rem, 6vw, 3rem); }
    .hero-cta { flex-direction: column; gap: 10px; }
    .hero-cta .btn { width: 100%; }

    /* Stats bar */
    .stats-bar .container > div {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
    }

    /* Section titles */
    .section-title { font-size: clamp(1.4rem, 5vw, 2.2rem); }

    /* Summary card in booking — stack below form */
    .summary-card { position: static !important; margin-top: 24px; }

    /* Admin/Staff/Receptionist tables — allow horizontal scroll */
    .table-responsive { -webkit-overflow-scrolling: touch; }
    .table-card { border-radius: 12px; }

    /* HR cards */
    .stat-card { padding: 14px; }
    .stat-card .value { font-size: 1.3rem; }

    /* Modals full-width on mobile */
    .modal-dialog { margin: 8px; max-width: calc(100% - 16px) !important; }
}

/* ── Small screens (phones) ── */
@media (max-width: 576px) {
    /* Booking form */
    .booking-card { padding: 16px; }
    .form-section-title { font-size: 1rem; }
    .form-section-sub { font-size: 0.78rem; }

    /* Steps bar */
    .booking-steps { gap: 0; overflow: hidden; }
    .step-circle { width: 36px; height: 36px; font-size: 0.9rem; }
    .step-label { font-size: 0.62rem; }
    .step-line { max-width: 40px; }

    /* Service/stylist/payment grids */
    .service-options { grid-template-columns: 1fr; }
    .stylist-options { grid-template-columns: repeat(2, 1fr); }
    .payment-options { grid-template-columns: repeat(2, 1fr); }

    /* Stats bar — 2 columns on phone */
    .stats-bar .container > div {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .stats-bar .stat-num { font-size: 1.4rem !important; }

    /* FAB + Telegram offset */
    .fab-book { bottom: 16px; right: 16px; width: 52px; height: 52px; font-size: 1.2rem; }
    #tgWidget { bottom: 74px !important; right: 14px !important; }
    #tgPanel { width: calc(100vw - 28px) !important; max-width: 300px; }

    /* Footer */
    .site-footer .container > .row > div { text-align: center; }
    .site-footer .d-flex.gap-3 { justify-content: center; }
    .footer-brand { font-size: 1.3rem; }

    /* Hero */
    .hero-section { min-height: 60vh; padding: 50px 0 30px; }
    .hero-section h1 { font-size: clamp(1.6rem, 7vw, 2.4rem); }

    /* My account, confirmation, check-booking pages */
    .booking-summary-box { padding: 16px !important; }

    /* Reduce table font on phone */
    .table-card thead th { font-size: 0.68rem; padding: 10px 10px; }
    .table-card tbody td { font-size: 0.82rem; padding: 10px 10px; }

    /* Admin/staff stat cards 2-col */
    .row.g-3 > [class*="col-xl-2"],
    .row.g-3 > [class*="col-lg-4"] { flex: 0 0 50%; max-width: 50%; }
}

/* ── Extra small (320px) ── */
@media (max-width: 360px) {
    .stylist-options { grid-template-columns: 1fr; }
    .payment-options { grid-template-columns: 1fr; }
    .step-line { display: none; }
    .navbar-brand .brand-text { font-size: 0.95rem; }
}

/* ══════════════════════════════════════════════════════════════
   ADMIN / STAFF / RECEPTIONIST — Mobile sidebar fix
══════════════════════════════════════════════════════════════ */

/* Overlay when sidebar is open on mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 99;
    backdrop-filter: blur(2px);
}
.sidebar-overlay.active { display: block; }

@media (max-width: 991px) {
    /* Staff sidebar — full slide-in panel */
    #staffSidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        height: 100vh !important;
        width: 260px !important;
        z-index: 200 !important;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        display: block !important;
        overflow-y: auto;
    }
    #staffSidebar.open { transform: translateX(0); }

    /* Staff main content full width */
    .staff-main {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 16px !important;
    }

    /* Receptionist portal */
    .recep-sidebar {
        width: 260px !important;
    }
    .recep-content {
        margin-left: 0 !important;
        padding: 16px !important;
    }
    .recep-topbar {
        margin-left: 0 !important;
        padding: 12px 16px !important;
    }
}

@media (max-width: 576px) {
    /* Admin topbar */
    .admin-topbar { padding: 10px 14px !important; }
    .admin-content { padding: 14px !important; }

    /* Staff navbar */
    #mainNav .container-fluid { padding: 0 12px; }
}

/* ══════════════════════════════════════════════════════════════
   LIGHT MODE — moved from header.php inline style
══════════════════════════════════════════════════════════════ */
body.light-mode {
    --dark:    #f5f0fa;
    --card-bg: #ffffff;
    --surface: #f0eaf6;
    --border:  rgba(139,94,131,0.15);
    --text:    #2a1f30;
    --muted:   #7a6888;
    background: #f5f0fa !important;
    color: #2a1f30 !important;
}
body.light-mode .navbar#mainNav {
    background: rgba(245,240,250,0.97) !important;
    border-bottom: 1px solid rgba(139,94,131,0.15) !important;
}
body.light-mode .nav-link { color: #4a3558 !important; }
body.light-mode .nav-link:hover { color: var(--primary) !important; }
body.light-mode .hero-section::before { opacity: 0.15; }
body.light-mode .table > :not(caption) > * > * { color: #2a1f30 !important; }
body.light-mode .text-muted,
body.light-mode small,
body.light-mode .small { color: #7a6888 !important; }
body.light-mode p { color: #4a3558; }
body.light-mode .booking-card,
body.light-mode .service-card,
body.light-mode .review-card,
body.light-mode .how-card,
body.light-mode .stylist-card,
body.light-mode .stat-card,
body.light-mode .table-card { background: #ffffff !important; border-color: rgba(139,94,131,0.15) !important; }
body.light-mode .form-control,
body.light-mode .form-select { background: #f0eaf6 !important; color: #2a1f30 !important; border-color: rgba(139,94,131,0.2) !important; }
body.light-mode .form-control::placeholder { color: #9a8fa8 !important; }
body.light-mode select option { background: #f0eaf6; color: #2a1f30; }
body.light-mode .site-footer { background: #ece4f5 !important; }
body.light-mode .dropdown-menu { background: #ffffff; border-color: rgba(139,94,131,0.15); }
body.light-mode .dropdown-item { color: #2a1f30; }
body.light-mode .modal-content { background: #ffffff !important; }
body.light-mode h1, body.light-mode h2, body.light-mode h3,
body.light-mode h4, body.light-mode h5, body.light-mode h6,
body.light-mode .fw-bold,
body.light-mode .section-title { color: #1a0f22 !important; }
body.light-mode .stats-bar { background: #ece4f5 !important; }
body.light-mode ::-webkit-scrollbar-track { background: #f0eaf6; }
#themeToggle:hover { transform: scale(1.1); box-shadow: 0 4px 16px rgba(201,169,110,0.3); }
