/* ========================================
   Abbotsford Thai Massage - MVC Booking App
   Bootstrap 5 + Custom Brand Theme
   Brand Colors: #283618, #606C38, #FEFAE0, #FEFCF1
   ======================================== */

/* --- Bootstrap 5 CDN is loaded in the layout --- */

/* --- Custom Brand Overrides --- */
:root {
    --brand-dark: #283618;
    --brand-primary: #606C38;
    --brand-light: #97E45D;
    --brand-cream: #FEFAE0;
    --brand-cream-light: #FEFCF1;
    --brand-gold: #CCA20C;
    --brand-red: #B4190F;
}

/* Override Bootstrap primary colors */
.text-brand-dark { color: var(--brand-dark) !important; }
.text-brand-primary { color: var(--brand-primary) !important; }
.text-brand-cream { color: var(--brand-cream) !important; }

.bg-brand-dark { background-color: var(--brand-dark) !important; color: #fff !important; }
.bg-brand-primary { background-color: var(--brand-primary) !important; color: #fff !important; }
.bg-brand-cream { background-color: var(--brand-cream) !important; }
.bg-brand-cream-light { background-color: var(--brand-cream-light) !important; }

.btn-brand {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}
.btn-brand:hover {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}
.btn-brand-light {
    background-color: var(--brand-cream);
    border-color: var(--brand-cream);
    color: var(--brand-dark);
}
.btn-brand-light:hover {
    background-color: #e8dcc0;
    border-color: #e8dcc0;
    color: var(--brand-dark);
}
.btn-outline-brand {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}
.btn-outline-brand:hover {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}

/* --- Custom Styles --- */

/* Navbar brand */
.navbar-brand-custom {
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Modern App Navbar */
#appNav .nav-link:not(.dropdown-toggle):hover {
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
}
#appNav .dropdown-toggle:hover {
    background: rgba(255,255,255,0.15) !important;
}
/* User dropdown toggle — subtle active state */
#appNav .dropdown-toggle[aria-expanded="true"] {
    background: rgba(255,255,255,0.18) !important;
}
/* Mobile collapse — ensure dark bg for readability */
@media (max-width: 991.98px) {
    #appNav.collapse,
    #appNav.collapsing {
        background: #1a1f0d;
        border-radius: 0 0 16px 16px;
        padding: 0.5rem 1rem 1rem;
        margin-top: 0.5rem;
    }
    #appNav .dropdown-menu {
        background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.08);
    }
    #appNav .dropdown-menu .dropdown-item {
        color: rgba(255,255,255,0.85);
    }
    #appNav .dropdown-menu .dropdown-item:hover {
        background: rgba(255,255,255,0.1);
        color: #fff;
    }
    #appNav .dropdown-menu .dropdown-header {
        color: rgba(255,255,255,0.5);
    }
    #appNav .dropdown-divider {
        border-color: rgba(255,255,255,0.1);
    }
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, var(--brand-dark) 0%, #3a4a20 50%, var(--brand-primary) 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    border-radius: 50%;
}

/* Service cards */
.service-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(40, 54, 24, 0.1);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(40, 54, 24, 0.1);
}
.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Feature icons */
.feature-icon-lg {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* Auth section */
.auth-wrapper {
    min-height: 80vh;
}

/* Booking form sections */
.booking-step {
    border-left: 4px solid var(--brand-primary);
}

/* Admin sidebar */
.admin-sidebar {
    min-height: 100vh;
    position: sticky;
    top: 0;
}
.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    border-radius: 0.5rem;
    padding: 0.6rem 1rem;
    transition: all 0.2s ease;
}
.admin-sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}
.admin-sidebar .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}
.admin-sidebar .nav-link.logout-link:hover {
    background: rgba(180, 25, 15, 0.2);
    color: #fca5a5;
}

/* Stat cards */
.stat-card {
    border: 1px solid rgba(40, 54, 24, 0.1);
    transition: transform 0.2s ease;
}
.stat-card:hover {
    transform: translateY(-2px);
}

/* Status badges */
.badge-pending { background-color: #FEF3C7; color: #92400E; }
.badge-confirmed { background-color: #D1FAE5; color: #065F46; }
.badge-completed { background-color: #DBEAFE; color: #1E40AF; }
.badge-cancelled { background-color: #FEE2E2; color: #991B1B; }
.badge-no-show { background-color: #F3E8FF; color: #6B21A8; }

/* Confirmation icon */
.confirm-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* Detail rows */
.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid #e9ecef;
}
.detail-row:last-child {
    border-bottom: none;
}
.detail-label {
    color: #6c757d;
    font-weight: 500;
}
.detail-value {
    font-weight: 600;
    text-align: right;
}

/* Features section */
.features-section {
    background-color: var(--brand-cream-light);
}

/* Footer */
.site-footer a {
    color: var(--brand-light);
    text-decoration: none;
}
.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Flash message animations */
.flash-message {
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* 404 page */
.error-404 {
    font-size: 8rem;
    font-weight: 800;
    color: var(--brand-primary);
    opacity: 0.3;
    line-height: 1;
}

/* Responsive admin */
@media (max-width: 991.98px) {
    .admin-sidebar {
        min-height: auto;
        position: static;
    }
    .admin-sidebar .nav {
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 0.25rem;
    }
}

/* Service details preview */
#serviceDetails {
    display: none;
}
#serviceDetails.show {
    display: block;
}

/* ========================================
   MODERN BOOKING SYSTEM
   ======================================== */

/* --- Booking Page Background --- */
.booking-page {
    background: linear-gradient(180deg, #FEFCF1 0%, #F4F1EC 50%, #FEFAE0 100%);
    min-height: 100vh;
}
.confirmation-page {
    background: linear-gradient(180deg, #FEFCF1 0%, #F4F1EC 100%);
    min-height: 80vh;
}

/* --- STEP PROGRESS BAR --- */
.step-progress {
    position: relative;
    padding: 0 8px;
}
.step-progress-track {
    position: absolute;
    top: 22px;
    left: 8%;
    right: 8%;
    height: 3px;
    background: #e0dcd5;
    border-radius: 3px;
    z-index: 0;
}
.step-progress-fill {
    height: 100%;
    background: var(--brand-primary);
    border-radius: 3px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}
.step-items {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: default;
}
.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    background: #fff;
    border: 2px solid #d4cfc7;
    color: #999;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}
.step-item.active .step-circle {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
    box-shadow: 0 0 0 6px rgba(96, 108, 56, 0.12);
    transform: scale(1.08);
}
.step-item.done .step-circle {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}
.step-item.done .step-circle::after {
    content: '✓';
}
.step-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #999;
    transition: color 0.3s;
}
.step-item.active .step-label,
.step-item.done .step-label {
    color: var(--brand-dark);
}

/* --- BOOKING CARD --- */
.booking-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(40, 54, 24, 0.06), 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.booking-card:hover {
    box-shadow: 0 8px 32px rgba(40, 54, 24, 0.09), 0 2px 6px rgba(0,0,0,0.05);
}

/* --- STEP ICON WRAP --- */
.step-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--brand-cream);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* --- CATEGORY GRID (Step 1) --- */
.category-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.category-card {
    display: block;
    cursor: pointer;
    border-radius: 16px;
    border: 2px solid transparent;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
.category-card:hover {
    background: #fafaf7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}
.category-card.selected {
    border-color: var(--brand-primary);
    background: var(--brand-cream);
    box-shadow: 0 0 0 4px rgba(96, 108, 56, 0.08), 0 4px 16px rgba(0,0,0,0.06);
}
.category-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.category-card-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
}
.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--brand-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    flex-shrink: 0;
    transition: all 0.25s;
}
.category-card.selected .category-icon {
    background: var(--brand-primary);
    color: #fff;
}
.category-info {
    flex: 1;
    min-width: 0;
}
.category-name {
    display: block;
    font-size: 0.95rem;
    color: var(--brand-dark);
    line-height: 1.3;
}
.category-desc {
    display: block;
    font-size: 0.78rem;
    color: #888;
    margin-top: 2px;
    line-height: 1.4;
}
.category-check {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #d4cfc7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    flex-shrink: 0;
    transition: all 0.3s;
}
.category-card.selected .category-check {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}

/* --- THERAPIST GRID (Step 1) --- */
.therapist-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.therapist-card {
    cursor: pointer;
    border-radius: 12px;
    border: 2px solid transparent;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.25s;
    flex: 1 1 140px;
    min-width: 130px;
}
.therapist-card:hover {
    background: #fafaf7;
}
.therapist-card.selected {
    border-color: var(--brand-primary);
    background: var(--brand-cream);
}
.therapist-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.therapist-card-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
}
.therapist-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.therapist-name {
    display: block;
    font-size: 0.82rem;
    color: var(--brand-dark);
    line-height: 1.3;
}
.therapist-title {
    display: block;
    font-size: 0.7rem;
    color: #999;
}

/* --- SUMMARY BANNER --- */
.summary-banner {
    background: var(--brand-cream);
    border-radius: 12px;
    padding: 12px 16px;
    border-left: 4px solid var(--brand-primary);
}
.summary-badge {
    display: inline-block;
    background: var(--brand-primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.summary-badge.outline {
    background: transparent;
    color: var(--brand-primary);
    border: 1.5px solid var(--brand-primary);
}

/* --- SERVICE CARD SELECT (Step 2) --- */
.service-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.service-card-select {
    display: block;
    cursor: pointer;
    border-radius: 16px;
    border: 2px solid transparent;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
.service-card-select:hover {
    background: #fafaf7;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}
.service-card-select.selected {
    border-color: var(--brand-primary);
    background: var(--brand-cream);
    box-shadow: 0 0 0 4px rgba(96, 108, 56, 0.1), 0 6px 20px rgba(0,0,0,0.08);
}
.service-card-select input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.service-card-body {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
}
.service-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--brand-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    flex-shrink: 0;
    transition: all 0.25s;
}
.service-card-select.selected .service-card-icon {
    background: var(--brand-primary);
    color: #fff;
}
.service-card-info {
    flex: 1;
    min-width: 0;
}
.service-card-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin: 0;
    line-height: 1.3;
}
.service-card-desc {
    font-size: 0.78rem;
    color: #888;
    margin: 3px 0 0;
    line-height: 1.4;
}
.service-card-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
    min-width: 80px;
}
.service-card-duration {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand-primary);
}
.service-card-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--brand-dark);
    line-height: 1;
}

/* --- DATE INPUT --- */
.date-input-wrap {
    position: relative;
    display: block;
}
.date-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand-primary);
    pointer-events: none;
    z-index: 1;
}
.date-input-wrap input[type="date"] {
    display: block;
    width: 100%;
    padding: 14px 16px 14px 48px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--brand-dark);
    background: #fff;
    border: 2px solid #e0dcd5;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    min-height: 52px;
    -webkit-appearance: none;
    appearance: none;
}
.date-input-wrap input[type="date"]:hover {
    border-color: var(--brand-primary);
    background: var(--brand-cream);
}
.date-input-wrap input[type="date"]:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(96, 108, 56, 0.1);
}
/* Show the native picker indicator on the right for iOS */
.date-input-wrap input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    cursor: pointer;
    opacity: 0.7;
    color: var(--brand-primary);
}
/* Placeholder / empty state for date input */
.date-input-wrap input[type="date"]:invalid::-webkit-datetime-edit {
    color: #bbb;
}
.date-input-wrap input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
}
/* Ensure date value is visible on iOS */
.date-input-wrap input[type="date"]::-webkit-datetime-edit {
    color: var(--brand-dark);
    font-weight: 600;
}
/* Dark mode fix for iOS */
@supports (-webkit-touch-callout: none) {
    .date-input-wrap input[type="date"] {
        color-scheme: light;
        line-height: 1.4;
    }
}

/* --- TIME SLOT GRID (Step 3) --- */
.time-slot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.time-slot-btn {
    padding: 12px 8px;
    border: 2px solid #e0dcd5;
    border-radius: 12px;
    background: #fff;
    color: var(--brand-dark);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}
.time-slot-btn:hover {
    border-color: var(--brand-primary);
    background: var(--brand-cream);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.time-slot-btn.active {
    border-color: var(--brand-primary);
    background: var(--brand-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(96, 108, 56, 0.25);
    transform: translateY(-2px);
}
.time-slot-btn.time-slot-unavailable {
    border-color: #e8e4dc;
    background: #f5f3ef;
    color: #c4bfb4;
    cursor: not-allowed;
    opacity: 0.55;
    text-decoration: line-through;
}
.time-slot-btn.time-slot-unavailable:hover {
    border-color: #e8e4dc;
    background: #f5f3ef;
    transform: none;
    box-shadow: none;
}

/* --- BOOKING SUMMARY CARD (Step 4) --- */
.booking-summary-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8e4dc;
    overflow: hidden;
}
.summary-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: var(--brand-cream);
    border-bottom: 1px solid #e8e4dc;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-dark);
}
.summary-rows {
    padding: 4px 0;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    border-bottom: 1px solid #f3f0ea;
}
.summary-row:last-child {
    border-bottom: none;
}
.sr-label {
    font-size: 0.82rem;
    color: #888;
    font-weight: 500;
}
.sr-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-dark);
    text-align: right;
}
.summary-row.price-row {
    background: var(--brand-cream);
}
.summary-row.price-row .sr-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--brand-primary);
}

/* --- HOT OIL TOGGLE --- */
.hot-oil-toggle {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e8e4dc;
    overflow: hidden;
}
.hot-oil-label {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    cursor: pointer;
    margin: 0;
    transition: background 0.2s;
}
.hot-oil-label:hover {
    background: #fefefb;
}
.hot-oil-label input {
    position: absolute;
    opacity: 0;
}
.hot-oil-indicator {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    border: 2px solid #d4cfc7;
    flex-shrink: 0;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hot-oil-label input:checked + .hot-oil-indicator {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}
.hot-oil-label input:checked + .hot-oil-indicator::after {
    content: '✓';
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}
.hot-oil-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.3;
}
.hot-oil-text strong {
    font-size: 0.9rem;
    color: var(--brand-dark);
}
.hot-oil-text small {
    font-size: 0.75rem;
}

/* --- SUBMIT BUTTON --- */
.btn-xl {
    padding: 16px 24px;
    font-size: 1.15rem;
    border-radius: 16px;
    letter-spacing: 0.02em;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-xl:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(96, 108, 56, 0.3);
}

/* --- CONFIRMATION PAGE --- */
.confirmation-check {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.25);
}

.cancel-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #FEE2E2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.booking-detail-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(40, 54, 24, 0.07), 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
}
.detail-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 22px;
    background: var(--brand-dark);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.detail-list {
    padding: 0;
}
.detail-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 22px;
    border-bottom: 1px solid #f3f0ea;
    transition: background 0.15s;
}
.detail-item:hover {
    background: #fefefb;
}
.detail-item:last-child {
    border-bottom: none;
}
.detail-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--brand-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.detail-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 0;
    gap: 12px;
}
.detail-key {
    font-size: 0.82rem;
    color: #888;
    font-weight: 500;
}
.detail-val {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--brand-dark);
    text-align: right;
}
.detail-val.price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--brand-primary);
}

/* --- STATUS BADGES --- */
.status-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.status-confirmed { background: #D1FAE5; color: #065F46; }
.status-pending { background: #FEF3C7; color: #92400E; }
.status-completed { background: #DBEAFE; color: #1E40AF; }
.status-cancelled { background: #FEE2E2; color: #991B1B; }
.status-no-show { background: #F3E8FF; color: #6B21A8; }

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 767.98px) {
    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
    .step-progress-track {
        top: 18px;
    }
    .category-card-inner {
        padding: 14px;
        gap: 10px;
    }
    .category-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }
    .service-card-body {
        padding: 14px;
        gap: 10px;
    }
    .service-card-icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }
    .service-card-meta {
        min-width: 65px;
    }
    .service-card-price {
        font-size: 1rem;
    }
    .service-card-name {
        font-size: 0.88rem;
    }
    .time-slot-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .time-slot-btn {
        padding: 10px 6px;
        font-size: 0.82rem;
        border-radius: 10px;
    }
    .detail-item {
        padding: 12px 16px;
        gap: 10px;
    }
    .detail-card-header {
        padding: 14px 16px;
    }
    .booking-detail-card {
        border-radius: 16px;
    }
    .btn-xl {
        padding: 14px 20px;
        font-size: 1rem;
        border-radius: 14px;
    }
}

@media (max-width: 380px) {
    .time-slot-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .service-card-meta {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    .category-card-inner {
        padding: 12px;
    }
}

/* ========================================
   ADMIN PAGINATION
   ======================================== */
.pagination .page-link {
    color: var(--brand-primary);
    border-color: #e0dcd5;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    margin: 0 2px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.pagination .page-link:hover {
    background: var(--brand-cream);
    border-color: var(--brand-primary);
    color: var(--brand-dark);
}
.pagination .page-item.active .page-link {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
    font-weight: 700;
}
.pagination .page-item.disabled .page-link {
    color: #ccc;
    pointer-events: none;
    background: #fafaf7;
    border-color: #e8e4dc;
}

/* ========================================
   MODERN BOOKING CALENDAR
   ======================================== */

/* --- Calendar Card --- */
.calendar-card {
    border: none;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 4px 24px rgba(40, 54, 24, 0.06), 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
}

/* --- Calendar Navigation --- */
.cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.cal-nav-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand-dark);
    letter-spacing: -0.3px;
}
.cal-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 10px;
    background: #fff;
    border: 1.5px solid #e0dcd5;
    color: var(--brand-dark);
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.cal-nav-btn:hover {
    background: var(--brand-cream);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 54, 24, 0.06);
}

/* --- Day Headers --- */
.cal-day-headers {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding: 0 2px 10px;
    border-bottom: 1px solid #f0ede6;
    margin-bottom: 4px;
}
.cal-day-header {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999;
    padding: 6px 0;
}

/* --- Calendar Grid --- */
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding: 2px;
}

/* --- Day Cells --- */
.cal-day-cell {
    position: relative;
    min-height: 110px;
    padding: 6px;
    border-radius: 10px;
    background: #fafaf7;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.cal-day-cell:hover {
    background: #fff;
    border-color: var(--brand-primary);
    box-shadow: 0 4px 16px rgba(96, 108, 56, 0.1);
    transform: translateY(-2px);
    z-index: 2;
}
.cal-day-cell:active {
    transform: scale(0.98);
}
.cal-day-cell.empty {
    background: transparent;
    cursor: default;
    pointer-events: none;
}
.cal-day-cell.empty:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

/* Today cell */
.cal-day-cell.today {
    background: linear-gradient(135deg, #FEFAE0 0%, #F5F0D7 100%);
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(96, 108, 56, 0.1);
}
.cal-day-cell.today:hover {
    box-shadow: 0 4px 20px rgba(96, 108, 56, 0.18), 0 0 0 3px rgba(96, 108, 56, 0.1);
}

/* Day number badge */
.cal-day-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 4px;
    flex-shrink: 0;
    transition: all 0.2s;
}
.cal-day-cell.today .cal-day-num {
    background: var(--brand-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(96, 108, 56, 0.25);
    width: 30px;
    height: 30px;
}

/* Booking pills inside day cells */
.cal-booking-pill {
    display: block;
    width: 100%;
    padding: 3px 7px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    margin-bottom: 2px;
    transition: all 0.15s;
}
.cal-booking-pill:hover {
    filter: brightness(0.92);
    transform: translateX(2px);
}
.cal-booking-pill.confirmed {
    background: var(--brand-primary);
    color: #fff;
}
.cal-booking-pill.pending {
    background: #FEF3C7;
    color: #92400E;
}
.cal-booking-pill.completed {
    background: #DBEAFE;
    color: #1E40AF;
}

/* "+N more" link */
.cal-more-link {
    display: inline-block;
    margin-top: auto;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--brand-primary);
    cursor: pointer;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(96, 108, 56, 0.06);
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
}
.cal-more-link:hover {
    background: rgba(96, 108, 56, 0.12);
    color: var(--brand-dark);
}

/* Empty day placeholder */
.cal-day-empty {
    margin-top: auto;
    font-size: 0.6rem;
    color: #ccc;
    text-align: center;
}

/* --- Day Detail Modal (Offcanvas-style Slide-in) --- */
.cal-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(40, 54, 24, 0.35);
    backdrop-filter: blur(3px);
    z-index: 1055;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.cal-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.cal-modal {
    background: #fff;
    border-radius: 20px;
    width: 90%;
    max-width: 520px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(40, 54, 24, 0.2);
    transform: translateY(20px) scale(0.96);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
.cal-modal-overlay.active .cal-modal {
    transform: translateY(0) scale(1);
}
.cal-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: var(--brand-dark);
    color: #fff;
    flex-shrink: 0;
}
.cal-modal-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cal-modal-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    border-radius: 20px;
    background: rgba(255,255,255,0.2);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0 8px;
}
.cal-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.cal-modal-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}
.cal-modal-body {
    overflow-y: auto;
    padding: 8px 0;
    flex: 1;
}
.cal-modal-booking {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    border-bottom: 1px solid #f3f0ea;
    text-decoration: none;
    transition: all 0.15s;
    color: inherit;
}
.cal-modal-booking:hover {
    background: #fefefb;
}
.cal-modal-booking:last-child {
    border-bottom: none;
}
.cal-modal-booking-time {
    width: 60px;
    flex-shrink: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brand-dark);
}
.cal-modal-booking-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cal-modal-booking-service {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cal-modal-booking-client {
    font-size: 0.75rem;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cal-modal-booking-status {
    flex-shrink: 0;
}
.cal-modal-booking-arrow {
    color: #ccc;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* --- Legend Strip --- */
.cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.72rem;
    color: #888;
    padding-top: 4px;
}
.cal-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}
.cal-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}
.cal-legend-dot.confirmed { background: var(--brand-primary); }
.cal-legend-dot.pending { background: #F5D852; border: 1px solid #E5C810; }
.cal-legend-dot.completed { background: #93C5FD; border: 1px solid #60A5FA; }

/* --- Responsive Calendar --- */
@media (max-width: 991.98px) {
    .cal-day-cell {
        min-height: 80px;
        padding: 4px;
        border-radius: 8px;
    }
    .cal-day-num {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
        border-radius: 6px;
    }
    .cal-day-cell.today .cal-day-num {
        width: 26px;
        height: 26px;
    }
    .cal-booking-pill {
        font-size: 0.62rem;
        padding: 2px 5px;
        border-radius: 4px;
    }
    .cal-more-link {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
}

@media (max-width: 767.98px) {
    .cal-grid {
        gap: 1px;
    }
    .cal-day-headers {
        gap: 1px;
        padding: 0 1px 8px;
    }
    .cal-day-header {
        font-size: 0.6rem;
        letter-spacing: 0.03em;
        padding: 4px 0;
    }
    .cal-day-cell {
        min-height: 64px;
        padding: 3px;
        border-radius: 6px;
    }
    .cal-day-num {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
        border-radius: 5px;
        margin-bottom: 2px;
    }
    .cal-day-cell.today .cal-day-num {
        width: 22px;
        height: 22px;
    }
    .cal-booking-pill {
        font-size: 0.58rem;
        padding: 1px 4px;
        border-radius: 3px;
    }
    .cal-booking-pill:nth-child(n+4) {
        display: none;
    }
    .cal-more-link {
        font-size: 0.6rem;
        padding: 1px 5px;
    }
    .cal-modal {
        width: 95%;
        max-width: 95%;
        max-height: 90vh;
        border-radius: 16px;
    }
    .cal-modal-header {
        padding: 14px 16px;
    }
    .cal-modal-booking {
        padding: 10px 16px;
        gap: 8px;
    }
    .cal-modal-booking-time {
        width: 50px;
        font-size: 0.75rem;
    }
    .cal-modal-booking-service {
        font-size: 0.78rem;
    }
    .cal-modal-booking-client {
        font-size: 0.7rem;
    }
    .cal-nav-title {
        font-size: 1rem;
    }
    .cal-nav-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .cal-day-cell {
        min-height: 54px;
        padding: 2px;
        border-radius: 5px;
    }
    .cal-day-num {
        width: 18px;
        height: 18px;
        font-size: 0.65rem;
    }
    .cal-day-cell.today .cal-day-num {
        width: 20px;
        height: 20px;
    }
    .cal-booking-pill {
        font-size: 0.55rem;
        padding: 1px 3px;
    }
    .cal-booking-pill:nth-child(n+3) {
        display: none;
    }
    .cal-more-link {
        font-size: 0.58rem;
    }
    .cal-day-header {
        font-size: 0.55rem;
    }
}

/* ========================================
   MODERN BOOKING LIST (All Bookings Page)
   ======================================== */

/* --- Booking List Container --- */
.bklist-card {
    border: none;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 4px 24px rgba(40, 54, 24, 0.06), 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
}

/* --- Booking List Header Row (desktop table header) --- */
.bklist-header {
    display: grid;
    grid-template-columns: 130px 1fr 140px 120px 130px 120px;
    gap: 8px;
    padding: 16px 22px;
    background: #fafaf7;
    border-bottom: 2px solid #f0ede6;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999;
}
.bklist-header > span {
    white-space: nowrap;
}

/* --- Booking List Item --- */
.bklist-item {
    display: grid;
    grid-template-columns: 130px 1fr 140px 120px 130px 120px;
    gap: 8px;
    padding: 16px 22px;
    align-items: center;
    border-bottom: 1px solid #f5f2ec;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.bklist-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    transition: all 0.2s;
}
.bklist-item:hover {
    background: #fafaf7;
}
.bklist-item:hover::before {
    width: 5px;
}
.bklist-item:last-child {
    border-bottom: none;
}

/* Status accent bars (left edge) */
.bklist-item.status-pending::before    { background: #F59E0B; }
.bklist-item.status-confirmed::before  { background: var(--brand-primary); }
.bklist-item.status-completed::before  { background: #3B82F6; }
.bklist-item.status-cancelled::before  { background: #EF4444; }
.bklist-item.status-no-show::before    { background: #8B5CF6; }

/* Prevent generic .status-* rules from coloring the row background */
.bklist-item.status-pending,
.bklist-item.status-confirmed,
.bklist-item.status-completed,
.bklist-item.status-cancelled,
.bklist-item.status-no-show {
    background: transparent;
}

/* --- Booking List Item: Cell Content --- */
.bklist-cell-date {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.bklist-cell-date .bklist-date-month {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-dark);
    line-height: 1.2;
}
.bklist-cell-date .bklist-date-day {
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.bklist-cell-date .bklist-date-time {
    font-size: 0.7rem;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 4px;
}

.bklist-cell-client {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.bklist-cell-client .bklist-client-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bklist-cell-client .bklist-client-email {
    font-size: 0.72rem;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bklist-cell-client .bklist-client-phone {
    font-size: 0.7rem;
    color: #bbb;
}

.bklist-cell-service {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.bklist-cell-service .bklist-service-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-dark);
}
.bklist-cell-service .bklist-service-duration {
    font-size: 0.68rem;
    color: #aaa;
}

.bklist-cell-therapist {
    font-size: 0.82rem;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bklist-cell-status {
    display: flex;
    align-items: center;
}

/* Status badges — matching calendar style */
.bklist-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.bklist-status-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.bklist-status-badge.pending::before    { background: #F59E0B; }
.bklist-status-badge.confirmed::before  { background: #10B981; }
.bklist-status-badge.completed::before  { background: #3B82F6; }
.bklist-status-badge.cancelled::before  { background: #EF4444; }
.bklist-status-badge.no-show::before    { background: #8B5CF6; }
.bklist-status-badge.pending    { background: #FEF3C7; color: #92400E; }
.bklist-status-badge.confirmed  { background: #D1FAE5; color: #065F46; }
.bklist-status-badge.completed  { background: #DBEAFE; color: #1E40AF; }
.bklist-status-badge.cancelled  { background: #FEE2E2; color: #991B1B; }
.bklist-status-badge.no-show    { background: #F3E8FF; color: #6B21A8; }

/* --- Booking List Cell: Actions --- */
.bklist-cell-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}
.bklist-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid #e0dcd5;
    background: #fff;
    color: var(--brand-dark);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}
.bklist-action-btn:hover {
    background: var(--brand-cream);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 54, 24, 0.06);
}
.bklist-action-btn.danger:hover {
    background: #FEF2F2;
    border-color: #EF4444;
    color: #DC2626;
}

/* Hot Oil tag */
.bklist-hot-oil {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 6px;
    background: #FFF7ED;
    color: #C2410C;
    font-size: 0.65rem;
    font-weight: 700;
    margin-top: 2px;
}

/* --- Booking List: Empty State --- */
.bklist-empty {
    padding: 60px 24px;
    text-align: center;
    color: #bbb;
}
.bklist-empty svg {
    margin-bottom: 16px;
    opacity: 0.3;
}
.bklist-empty p {
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- Booking List Pagination --- */
.bklist-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 22px;
    background: #fafaf7;
    border-top: 2px solid #f0ede6;
}
.bklist-pagination-info {
    font-size: 0.78rem;
    color: #999;
    font-weight: 500;
}
.bklist-pagination-pages {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.bklist-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1.5px solid #e0dcd5;
    background: #fff;
    color: var(--brand-dark);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.bklist-page-link:hover {
    background: var(--brand-cream);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    transform: translateY(-1px);
}
.bklist-page-link.active {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(96, 108, 56, 0.25);
}
.bklist-page-link.disabled {
    opacity: 0.4;
    pointer-events: none;
}
.bklist-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    font-size: 0.8rem;
    color: #ccc;
    font-weight: 700;
}

/* --- Mobile Booking Cards (hidden on desktop) --- */
.bklist-mobile-cards {
    display: none;
}

/* ========================================
   RESPONSIVE — BOOKING LIST
   ======================================== */

@media (max-width: 991.98px) {
    /* Switch to card-based layout on tablet and below */
    .bklist-header {
        display: none;
    }
    .bklist-desktop-rows {
        display: none;
    }
    .bklist-mobile-cards {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 12px;
    }

    .bklist-mobile-card {
        background: #fff;
        border-radius: 14px;
        border: 1.5px solid #f0ede6;
        overflow: hidden;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
    }
    .bklist-mobile-card::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        border-radius: 0;
    }
    .bklist-mobile-card.status-pending::before    { background: #F59E0B; }
    .bklist-mobile-card.status-confirmed::before  { background: var(--brand-primary); }
    .bklist-mobile-card.status-completed::before  { background: #3B82F6; }
    .bklist-mobile-card.status-cancelled::before  { background: #EF4444; }
    .bklist-mobile-card.status-no-show::before    { background: #8B5CF6; }
    /* Prevent generic .status-* from coloring mobile cards */
    .bklist-mobile-card.status-pending,
    .bklist-mobile-card.status-confirmed,
    .bklist-mobile-card.status-completed,
    .bklist-mobile-card.status-cancelled,
    .bklist-mobile-card.status-no-show {
        background: #fff;
    }
    .bklist-mobile-card:hover {
        border-color: #d5d0c5;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
        transform: translateY(-2px);
    }

    .bklist-mobile-card-inner {
        padding: 14px 16px 14px 18px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .bklist-mobile-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }
    .bklist-mobile-date {
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--brand-dark);
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .bklist-mobile-date .date-icon {
        display: flex;
        align-items: center;
    }
    .bklist-mobile-time {
        font-size: 0.75rem;
        color: #999;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .bklist-mobile-mid {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    .bklist-mobile-client {
        font-size: 0.88rem;
        font-weight: 600;
        color: var(--brand-dark);
    }
    .bklist-mobile-contact {
        font-size: 0.72rem;
        color: #aaa;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .bklist-mobile-details {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }
    .bklist-mobile-service {
        font-size: 0.82rem;
        font-weight: 600;
        color: var(--brand-primary);
    }
    .bklist-mobile-therapist {
        font-size: 0.72rem;
        color: #aaa;
    }

    .bklist-mobile-bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        flex-wrap: wrap;
    }
    .bklist-mobile-actions {
        display: flex;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .bklist-mobile-card-inner {
        padding: 12px 14px 12px 16px;
        gap: 8px;
    }
    .bklist-mobile-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    .bklist-mobile-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .bklist-mobile-actions {
        width: 100%;
    }
    .bklist-action-btn {
        flex: 1;
        text-align: center;
        padding: 8px 12px;
        font-size: 0.72rem;
    }
    .bklist-pagination {
        flex-direction: column;
        gap: 10px;
        padding: 12px 16px;
    }
    .bklist-page-link {
        min-width: 32px;
        height: 32px;
        font-size: 0.72rem;
        border-radius: 8px;
    }
}

/* ========================================
   VIEW BOOKING — Detail Page
   ======================================== */

/* --- View Booking Card --- */
.vbk-card {
    border: none;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 4px 24px rgba(40, 54, 24, 0.06), 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
}

/* --- Status Banner at Top --- */
.vbk-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    gap: 12px;
    flex-wrap: wrap;
}
.vbk-status-bar.pending    { background: #FEF3C7; }
.vbk-status-bar.confirmed  { background: #D1FAE5; }
.vbk-status-bar.completed  { background: #DBEAFE; }
.vbk-status-bar.cancelled  { background: #FEE2E2; }
.vbk-status-bar.no-show    { background: #F3E8FF; }

.vbk-status-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.vbk-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.vbk-status-bar.pending .vbk-status-dot    { background: #F59E0B; }
.vbk-status-bar.confirmed .vbk-status-dot  { background: #10B981; }
.vbk-status-bar.completed .vbk-status-dot  { background: #3B82F6; }
.vbk-status-bar.cancelled .vbk-status-dot  { background: #EF4444; }
.vbk-status-bar.no-show .vbk-status-dot    { background: #8B5CF6; }

.vbk-status-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.vbk-status-bar.pending .vbk-status-label    { color: #92400E; }
.vbk-status-bar.confirmed .vbk-status-label  { color: #065F46; }
.vbk-status-bar.completed .vbk-status-label  { color: #1E40AF; }
.vbk-status-bar.cancelled .vbk-status-label  { color: #991B1B; }
.vbk-status-bar.no-show .vbk-status-label    { color: #6B21A8; }

.vbk-status-id {
    font-size: 0.72rem;
    color: #999;
    font-weight: 600;
}

/* --- Detail Body Grid --- */
.vbk-body {
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

/* --- Detail Section --- */
.vbk-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #bbb;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.vbk-section-title svg {
    flex-shrink: 0;
}

/* --- Detail Row --- */
.vbk-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f5f2ec;
    gap: 12px;
}
.vbk-detail-row:last-child {
    border-bottom: none;
}
.vbk-detail-label {
    font-size: 0.78rem;
    color: #999;
    font-weight: 500;
    flex-shrink: 0;
}
.vbk-detail-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-dark);
    text-align: right;
    word-break: break-word;
}
.vbk-detail-value a {
    color: var(--brand-primary);
    text-decoration: none;
}
.vbk-detail-value a:hover {
    text-decoration: underline;
}

/* --- Notes Section (full-width) --- */
.vbk-notes-section {
    grid-column: 1 / -1;
}
.vbk-notes-box {
    padding: 14px 18px;
    background: #fafaf7;
    border-radius: 12px;
    border: 1px solid #f0ede6;
    font-size: 0.82rem;
    color: #666;
    line-height: 1.6;
    font-style: italic;
}

/* --- Status Update Section (full-width) --- */
.vbk-update-section {
    grid-column: 1 / -1;
    padding-top: 20px;
    border-top: 2px solid #f0ede6;
    margin-top: 4px;
}

.vbk-update-form {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
.vbk-update-select {
    flex: 1;
    min-width: 180px;
    max-width: 260px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1.5px solid #e0dcd5;
    background: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand-dark);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
    transition: all 0.2s;
}
.vbk-update-select:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(96, 108, 56, 0.1);
}
.vbk-update-btn {
    padding: 10px 22px;
    border-radius: 12px;
    border: none;
    background: var(--brand-primary);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.vbk-update-btn:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 54, 24, 0.2);
}

/* --- Back Button --- */
.vbk-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    background: #fff;
    border: 1.5px solid #e0dcd5;
    color: var(--brand-dark);
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.vbk-back-btn:hover {
    background: var(--brand-cream);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 54, 24, 0.06);
}

/* --- Hot Oil Tag --- */
.vbk-hot-oil-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 8px;
    background: #FFF7ED;
    color: #C2410C;
    font-size: 0.72rem;
    font-weight: 700;
}

/* ========================================
   RESPONSIVE — VIEW BOOKING
   ======================================== */

@media (max-width: 767.98px) {
    .vbk-body {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 16px;
    }
    .vbk-status-bar {
        padding: 12px 16px;
    }
    .vbk-update-form {
        flex-direction: column;
        align-items: stretch;
    }
    .vbk-update-select {
        max-width: 100%;
    }
    .vbk-update-btn {
        width: 100%;
        text-align: center;
    }
    .vbk-detail-value {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .vbk-body {
        padding: 12px;
        gap: 16px;
    }
    .vbk-status-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .vbk-section-title {
        font-size: 0.65rem;
    }
    .vbk-detail-label {
        font-size: 0.72rem;
    }
    .vbk-detail-value {
        font-size: 0.76rem;
    }
}

/* ========================================
   SHARED ADMIN COMPONENTS
   Used across Dashboard, Services, Categories,
   Employees, Admins, and Settings views.
   ======================================== */

/* --- Generic Admin Card (same style as bklist/vbk cards) --- */
.adm-card {
    border: none;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 4px 24px rgba(40, 54, 24, 0.06), 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
}

/* --- Card Section Header --- */
.adm-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 24px;
    background: #fafaf7;
    border-bottom: 2px solid #f0ede6;
}
.adm-section-header-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}
.adm-section-header h5 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin: 0;
    flex: 1;
}
.adm-section-header .adm-badge-count {
    font-size: 0.7rem;
    font-weight: 700;
    color: #999;
}

/* --- Dashboard Stats --- */
.adm-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 24px;
}
.adm-stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 12px rgba(40, 54, 24, 0.04), 0 1px 2px rgba(0,0,0,0.03);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid transparent;
}
.adm-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 54, 24, 0.08);
    border-color: rgba(96, 108, 56, 0.12);
}
.adm-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.adm-stat-icon.today      { background: #D1FAE5; }
.adm-stat-icon.pending    { background: #FEF3C7; }
.adm-stat-icon.confirmed  { background: #D1FAE5; }
.adm-stat-icon.month      { background: #DBEAFE; }
.adm-stat-icon.total      { background: #F3E8FF; }
.adm-stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-dark);
    line-height: 1.1;
    letter-spacing: -0.5px;
}
.adm-stat-label {
    font-size: 0.7rem;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Modern Table --- */
.adm-table-wrap {
    overflow-x: auto;
}
.adm-table {
    width: 100%;
    border-collapse: collapse;
}
.adm-table thead th {
    padding: 12px 16px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999;
    text-align: left;
    background: #fafaf7;
    border-bottom: 2px solid #f0ede6;
    white-space: nowrap;
}
.adm-table thead th:first-child { padding-left: 24px; }
.adm-table thead th:last-child  { padding-right: 24px; text-align: right; }
.adm-table tbody td {
    padding: 14px 16px;
    font-size: 0.84rem;
    color: var(--brand-dark);
    border-bottom: 1px solid #f5f2ec;
    vertical-align: middle;
}
.adm-table tbody td:first-child { padding-left: 24px; }
.adm-table tbody td:last-child  { padding-right: 24px; text-align: right; }
.adm-table tbody tr {
    transition: background 0.15s;
}
.adm-table tbody tr:hover {
    background: #fefefb;
}
.adm-table tbody tr:last-child td {
    border-bottom: none;
}
.adm-table .adm-cell-strong {
    font-weight: 600;
    color: var(--brand-dark);
}
.adm-table .adm-cell-muted {
    color: #999;
    font-size: 0.78rem;
}

/* --- Action Buttons (shared) --- */
.adm-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid #e0dcd5;
    background: #fff;
    color: var(--brand-dark);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}
.adm-action-btn:hover {
    background: var(--brand-cream);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 54, 24, 0.06);
}
.adm-action-btn.danger:hover {
    background: #FEF2F2;
    border-color: #EF4444;
    color: #DC2626;
}
.adm-action-btn.primary {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}
.adm-action-btn.primary:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}
.adm-action-btn.warning {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #fff;
}
.adm-action-btn.warning:hover {
    background: #d97706;
    border-color: #d97706;
    color: #fff;
}

/* --- Back Button (shared) --- */
.adm-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    background: #fff;
    border: 1.5px solid #e0dcd5;
    color: var(--brand-dark);
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.adm-back-btn:hover {
    background: var(--brand-cream);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 54, 24, 0.06);
}

/* --- Page Header (shared) --- */
.adm-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.adm-page-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-dark);
    letter-spacing: -0.3px;
    margin-bottom: 2px;
}
.adm-page-subtitle {
    font-size: 0.78rem;
    color: #999;
    margin: 0;
}

/* --- Status Badge (shared) --- */
.adm-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.adm-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.adm-badge.success  { background: #D1FAE5; color: #065F46; }
.adm-badge.success::before  { background: #10B981; }
.adm-badge.warning  { background: #FEF3C7; color: #92400E; }
.adm-badge.warning::before  { background: #F59E0B; }
.adm-badge.danger   { background: #FEE2E2; color: #991B1B; }
.adm-badge.danger::before   { background: #EF4444; }
.adm-badge.neutral  { background: #F3F4F6; color: #6B7280; }
.adm-badge.neutral::before  { background: #9CA3AF; }
.adm-badge.brand    { background: rgba(96,108,56,0.1); color: var(--brand-primary); }
.adm-badge.brand::before    { background: var(--brand-primary); }

/* --- Inline Add Form Card --- */
.adm-add-card {
    background: #fafaf7;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 20px;
    border: 1.5px solid #f0ede6;
}
.adm-add-card-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #bbb;
    margin-bottom: 12px;
}
.adm-inline-form {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}
.adm-inline-form .adm-form-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 100px;
}

/* --- Form Elements --- */
.adm-form-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.adm-form-input,
.adm-form-select {
    padding: 9px 13px;
    border-radius: 10px;
    border: 1.5px solid #e0dcd5;
    background: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--brand-dark);
    transition: all 0.2s;
    font-family: inherit;
}
.adm-form-input:focus,
.adm-form-select:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(96, 108, 56, 0.08);
}
.adm-form-input::placeholder {
    color: #ccc;
}
.adm-form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}
.adm-form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.adm-form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.5px solid #d0ccc5;
    accent-color: var(--brand-primary);
    cursor: pointer;
}
.adm-form-check-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: #777;
}

/* --- Form Layout (for edit pages) --- */
.adm-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 24px;
}
.adm-form-full {
    grid-column: 1 / -1;
}
.adm-form-actions {
    grid-column: 1 / -1;
    padding-top: 8px;
}

/* --- Empty State --- */
.adm-empty {
    padding: 48px 24px;
    text-align: center;
    color: #bbb;
}
.adm-empty svg {
    margin-bottom: 12px;
    opacity: 0.25;
}
.adm-empty p {
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
}

/* --- Mobile List Cards (hidden on desktop) --- */
.adm-mobile-cards {
    display: none;
}

/* ========================================
   RESPONSIVE — SHARED ADMIN COMPONENTS
   ======================================== */

@media (max-width: 991.98px) {
    .adm-stat-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .adm-stat-card {
        padding: 14px 16px;
        gap: 10px;
    }
    .adm-stat-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 1.1rem;
    }
    .adm-stat-number {
        font-size: 1.25rem;
    }
}

@media (max-width: 767.98px) {
    /* Hide desktop table, show mobile cards */
    .adm-table-wrap {
        display: none;
    }
    .adm-mobile-cards {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 12px;
    }
    .adm-mobile-card {
        background: #fff;
        border-radius: 14px;
        border: 1.5px solid #f0ede6;
        padding: 14px 16px;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .adm-mobile-card:hover {
        border-color: #d5d0c5;
        box-shadow: 0 4px 16px rgba(0,0,0,0.05);
        transform: translateY(-1px);
    }
    .adm-mobile-card-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        flex-wrap: wrap;
    }
    .adm-mobile-card-title {
        font-size: 0.9rem;
        font-weight: 700;
        color: var(--brand-dark);
    }
    .adm-mobile-card-sub {
        font-size: 0.75rem;
        color: #999;
    }
    .adm-mobile-card-actions {
        display: flex;
        gap: 6px;
    }
    .adm-stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .adm-stat-card {
        padding: 12px 14px;
        gap: 8px;
    }
    .adm-stat-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        font-size: 1rem;
    }
    .adm-stat-number {
        font-size: 1.1rem;
    }
    .adm-form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }
    .adm-inline-form {
        flex-direction: column;
        align-items: stretch;
    }
    .adm-inline-form .adm-form-group {
        min-width: 0;
    }
    .adm-inline-form .adm-action-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .adm-stat-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .adm-stat-card {
        padding: 10px 12px;
        gap: 8px;
        border-radius: 12px;
    }
    .adm-stat-icon {
        width: 28px;
        height: 28px;
        border-radius: 7px;
        font-size: 0.9rem;
    }
    .adm-stat-number {
        font-size: 1rem;
    }
    .adm-stat-label {
        font-size: 0.62rem;
    }
    .adm-section-header {
        padding: 14px 16px;
    }
    .adm-section-header h5 {
        font-size: 0.82rem;
    }
    .adm-table thead th,
    .adm-table tbody td {
        padding: 10px 12px;
        font-size: 0.76rem;
    }
    .adm-table thead th:first-child,
    .adm-table tbody td:first-child { padding-left: 16px; }
    .adm-table thead th:last-child,
    .adm-table tbody td:last-child { padding-right: 16px; }
    .adm-action-btn {
        padding: 6px 12px;
        font-size: 0.7rem;
        border-radius: 8px;
    }
    .adm-form-input,
    .adm-form-select {
        padding: 8px 11px;
        font-size: 0.76rem;
        border-radius: 8px;
    }
    .adm-add-card {
        padding: 12px 14px;
    }
    .adm-mobile-card {
        padding: 12px 14px;
        gap: 8px;
    }
}

/* --- Responsive: Settings rows & edit-admin 2-col --- */
@media (max-width: 767.98px) {
    .adm-settings-row {
        grid-template-columns: 1fr !important;
    }
    .adm-form-grid-responsive {
        grid-template-columns: 1fr !important;
    }
}

/* ========================================
   PUBLIC-FACING PAGES
   Login, Home, Booking flow
   ======================================== */

/* --- Auth Card (Login) --- */
.auth-card {
    border: none;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 40px rgba(40, 54, 24, 0.08), 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
}
.auth-icon-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--brand-cream);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
.auth-input {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1.5px solid #e0dcd5;
    background: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--brand-dark);
    transition: all 0.2s;
    width: 100%;
    font-family: inherit;
}
.auth-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(96, 108, 56, 0.08);
}
.auth-input::placeholder {
    color: #ccc;
}
.auth-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
    margin-bottom: 5px;
}
.auth-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.auth-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    accent-color: var(--brand-primary);
    cursor: pointer;
}
.auth-check-label {
    font-size: 0.82rem;
    color: #888;
    font-weight: 500;
}
.auth-submit {
    width: 100%;
    padding: 13px;
    border-radius: 12px;
    border: none;
    background: var(--brand-primary);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.auth-submit:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(40, 54, 24, 0.2);
}

/* --- Home Page: Hero --- */
.pub-hero {
    background: linear-gradient(135deg, #283618 0%, #1a1f0d 100%);
    padding: 80px 24px 64px;
    text-align: center;
    color: #fff;
}
.pub-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
}
.pub-hero p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 550px;
    margin: 0 auto 24px;
}
.pub-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 14px;
    background: #fff;
    color: var(--brand-dark);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.pub-hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    color: var(--brand-primary);
}

/* --- Home Page: Service Cards --- */
.pub-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.pub-service-card {
    background: #fff;
    border-radius: 18px;
    padding: 28px 24px;
    text-align: center;
    border: 1.5px solid transparent;
    box-shadow: 0 2px 12px rgba(40, 54, 24, 0.04), 0 1px 2px rgba(0,0,0,0.03);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.pub-service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(40, 54, 24, 0.08);
    border-color: rgba(96, 108, 56, 0.12);
}
.pub-service-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--brand-cream);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}
.pub-service-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 6px;
}
.pub-service-card .pub-service-desc {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 16px;
    line-height: 1.5;
}
.pub-service-meta {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}
.pub-badge {
    display: inline-flex;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}
.pub-badge.dark {
    background: var(--brand-dark);
    color: #fff;
}
.pub-badge.primary {
    background: rgba(96, 108, 56, 0.1);
    color: var(--brand-primary);
}
.pub-service-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 10px;
    border: 1.5px solid #e0dcd5;
    background: #fff;
    color: var(--brand-dark);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.pub-service-btn:hover {
    background: var(--brand-cream);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

/* --- Home Page: Features --- */
.pub-features {
    background: linear-gradient(180deg, #FEFCF1 0%, #F4F1EC 100%);
    padding: 64px 24px;
}
.pub-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}
.pub-feature-card {
    text-align: center;
    padding: 32px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(40, 54, 24, 0.04);
    transition: all 0.2s;
}
.pub-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 54, 24, 0.07);
}
.pub-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--brand-cream);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}
.pub-feature-card h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 6px;
}
.pub-feature-card p {
    font-size: 0.82rem;
    color: #999;
    margin: 0;
    line-height: 1.5;
}

/* --- Section Title --- */
.pub-section-title {
    text-align: center;
    margin-bottom: 32px;
}
.pub-section-title h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--brand-dark);
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}
.pub-section-title p {
    font-size: 0.88rem;
    color: #999;
}

/* --- Responsive: Public Pages --- */
@media (max-width: 767.98px) {
    .pub-hero {
        padding: 48px 16px 40px;
    }
    .pub-hero h1 {
        font-size: 1.8rem;
    }
    .pub-hero p {
        font-size: 0.9rem;
    }
    .pub-service-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .pub-feature-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .pub-section-title h2 {
        font-size: 1.3rem;
    }
}
