/**
 * BookFlow.SaaS Premium Global CSS Styling Sheet
 * Supports dynamic CSS variables, glassmorphism, fluid responsive layouts, and rich modern aesthetics.
 */

/* =========================================================================
   1. Reset & Global Base Configuration
   ========================================================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Platform Global defaults (when not overridden by tenant config) */
    --brand-primary: #6366f1;
    --brand-secondary: #4f46e5;
    --brand-bg: #0f172a;
    --brand-text: #f8fafc;
    --brand-font: 'Outfit', sans-serif;
    
    /* Global design constants */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Feedback semantic coloring */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-info: #3b82f6;
    
    /* Text variants */
    --text-muted: #94a3b8;
    --border-light: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(30, 41, 59, 0.5);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--brand-font), 'Inter', sans-serif;
    background-color: var(--brand-bg);
    color: var(--brand-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Base style adjustments for tenant sites (light mode defaults) */
body.tenant-site {
    --card-bg: rgba(255, 255, 255, 0.85);
    --border-light: rgba(0, 0, 0, 0.08);
    background-color: var(--brand-bg);
    color: var(--brand-text);
}

code {
    font-family: 'Fira Code', monospace;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
}

.text-indigo {
    color: var(--brand-primary);
}

.text-gradient {
    background: linear-gradient(135deg, #a5b4fc 0%, var(--brand-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.font-outfit {
    font-family: 'Outfit', sans-serif;
}

.font-bold {
    font-weight: 700;
}

.text-right {
    text-align: right;
}

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

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

/* =========================================================================
   2. Header & Main Navigation Bar
   ========================================================================= */
.main-header {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    border-bottom: var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition-fast);
}

body.tenant-site .main-header {
    background: rgba(255, 255, 255, 0.7);
    border-bottom: var(--border-light);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    font-weight: 700;
    font-size: 22px;
}

.brand-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
}

.logo-icon {
    font-size: 28px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-item {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition-fast);
}

body.tenant-site .nav-item {
    color: var(--brand-text);
    opacity: 0.8;
}

.nav-item:hover, .nav-item.badge-active {
    color: var(--brand-primary);
    opacity: 1;
}

/* =========================================================================
   3. Buttons & Interaction States
   ========================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    text-decoration: none;
    gap: 8px;
    line-height: 1.2;
}

.btn-primary {
    background: var(--brand-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

body.tenant-site .btn-primary {
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(var(--brand-primary), 0.3);
}

.btn-primary:hover {
    background: var(--brand-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--brand-text);
}

body.tenant-site .btn-secondary {
    background: rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

body.tenant-site .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--brand-primary);
    color: var(--brand-primary);
}

.btn-outline:hover {
    background: var(--brand-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-nav {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: var(--radius-sm);
}

.btn-block {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

.btn-success {
    background: var(--color-success);
    color: white;
}
.btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--color-danger);
    color: white;
}
.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.btn-text-danger {
    background: transparent;
    color: var(--color-danger);
    border: none;
    font-weight: 500;
    cursor: pointer;
}
.btn-text-danger:hover {
    text-decoration: underline;
}

/* =========================================================================
   4. Grid & Layout System
   ========================================================================= */
.page-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 24px;
}

/* =========================================================================
   5. Card Components
   ========================================================================= */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin-bottom: 30px;
}

body.tenant-site .card {
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.card h3 {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
}

/* =========================================================================
   6. Alerts and Notifications
   ========================================================================= */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

body.tenant-site .alert-danger {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

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

body.tenant-site .alert-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

/* =========================================================================
   7. Form Controls
   ========================================================================= */
.standard-form, .auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-text);
}

.form-group input, 
.form-group textarea, 
.form-group select,
.filter-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--brand-text);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: var(--transition-fast);
    font-family: inherit;
    outline: none;
}

body.tenant-site .form-group input, 
body.tenant-site .form-group textarea, 
body.tenant-site .form-group select {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.12);
}

.form-group input:focus, 
.form-group textarea:focus, 
.form-group select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
    background: rgba(255, 255, 255, 0.08);
}

body.tenant-site .form-group input:focus, 
body.tenant-site .form-group textarea:focus, 
body.tenant-site .form-group select:focus {
    background: #ffffff;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-group-row {
        grid-template-columns: 1fr;
    }
}

.form-section-title {
    font-size: 16px;
    font-weight: 700;
    margin-top: 15px;
    padding-bottom: 8px;
    border-bottom: var(--border-light);
    color: var(--brand-primary);
}

.form-tip {
    font-size: 12px;
    color: var(--text-muted);
}

/* =========================================================================
   8. Subdomain input decoration
   ========================================================================= */
.subdomain-input-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

.subdomain-input-wrapper input {
    flex: 1;
    padding-right: 150px;
}

.subdomain-suffix {
    position: absolute;
    right: 18px;
    color: var(--text-muted);
    font-weight: 600;
    pointer-events: none;
    font-size: 14px;
}

/* =========================================================================
   9. Auth Specific Design
   ========================================================================= */
.auth-card-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 250px);
}

.auth-card {
    width: 100%;
    max-width: 550px;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-muted);
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer p {
    margin-bottom: 8px;
}

/* =========================================================================
   10. Business Dashboard Layout
   ========================================================================= */
.dashboard-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 4px;
}

.dashboard-subtitle {
    color: var(--text-muted);
}

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

@media (max-width: 768px) {
    .dashboard-header-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.metric-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.bg-indigo-glass { background: rgba(99, 102, 241, 0.1); border-color: rgba(99, 102, 241, 0.2); }
.bg-yellow-glass { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.2); }
.bg-green-glass { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.2); }
.bg-blue-glass { background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.2); }
.bg-red-glass { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.2); }

.text-red {
    color: var(--color-danger);
}

.metric-icon {
    font-size: 32px;
    opacity: 0.9;
}

.metric-details {
    display: flex;
    flex-direction: column;
}

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

.metric-value {
    font-size: 28px;
    font-weight: 800;
}

.dashboard-main-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
}

.dashboard-col-left-small {
    grid-column: span 1;
}

.dashboard-col-right-large {
    grid-column: span 1;
}

@media (max-width: 1024px) {
    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-col-left-small, .dashboard-col-right-large {
        grid-column: span 1;
    }
}

/* =========================================================================
   11. Appointments Table Component
   ========================================================================= */
.card-table {
    padding: 0;
    overflow: hidden;
}

.card-header-row {
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: var(--border-light);
    flex-wrap: wrap;
    gap: 16px;
}

.filter-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-input {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.btn-filter {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.table-container {
    width: 100%;
    overflow-x: auto;
}

.appointments-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.appointments-table th, .appointments-table td {
    padding: 18px 32px;
    border-bottom: var(--border-light);
}

.appointments-table th {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.client-name {
    font-weight: 600;
    font-size: 15px;
}

.client-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.service-name {
    font-weight: 600;
}

.service-price {
    font-size: 13px;
    color: var(--brand-primary);
    font-weight: 600;
}

.slot-date {
    font-weight: 600;
}

.slot-time {
    font-size: 13px;
    color: var(--text-muted);
}

.status-tag {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
}

.status-pending { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.status-confirmed { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.status-completed { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.status-cancelled { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

.otp-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    font-family: monospace;
}

.action-buttons-group {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.inline-form {
    display: inline;
}

.empty-table-message {
    text-align: center;
    padding: 60px !important;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

/* =========================================================================
   12. Dashboard Sidebar Panel
   ========================================================================= */
.card-sidebar {
    padding: 24px;
}

.shortcut-menu {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

body.tenant-site .shortcut-item {
    background: rgba(0, 0, 0, 0.02);
}

.shortcut-item:hover {
    border-color: var(--brand-primary);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.shortcut-icon {
    font-size: 24px;
}

.shortcut-details {
    display: flex;
    flex-direction: column;
}

.shortcut-details strong {
    font-size: 14px;
}

.shortcut-details span {
    font-size: 12px;
    color: var(--text-muted);
}

/* =========================================================================
   13. Services Setup Layout
   ========================================================================= */
.services-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-manage-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
}

.service-inactive {
    opacity: 0.6;
}

.service-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.badge-price {
    font-weight: 700;
    font-size: 16px;
    color: var(--brand-primary);
    margin-right: 12px;
}

.badge-duration {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.service-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.service-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex: 1;
}

/* Dynamic Disclosure HTML widget details */
.edit-service-details {
    margin-top: 15px;
    border-top: 1px solid var(--border-light);
    padding-top: 15px;
}

.btn-summary {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-primary);
    cursor: pointer;
    outline: none;
    list-style: none;
}

.btn-summary::-webkit-details-marker {
    display: none;
}

.edit-service-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.edit-service-form label {
    font-size: 12px;
    font-weight: 600;
}

.edit-service-form input, .edit-service-form textarea {
    padding: 8px 12px;
    font-size: 13px;
}

.edit-actions-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.delete-service-row {
    margin-top: 15px;
    text-align: left;
}

/* =========================================================================
   14. Weekly Hours Layout
   ========================================================================= */
.hours-table-header {
    display: grid;
    grid-template-columns: 2fr 2fr 3fr 3fr;
    padding: 16px 24px;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 13px;
    border-bottom: 1px solid var(--border-light);
    text-transform: uppercase;
}

.hours-row {
    display: grid;
    grid-template-columns: 2fr 2fr 3fr 3fr;
    padding: 20px 24px;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-fast);
}

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

.row-closed {
    opacity: 0.5;
}

.row-weekend {
    background: rgba(255, 255, 255, 0.01);
}

body.tenant-site .row-weekend {
    background: rgba(0, 0, 0, 0.01);
}

.time-range-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-input {
    padding: 8px 12px !important;
    font-size: 13px !important;
    text-align: center;
}

.time-sep {
    font-size: 12px;
    color: var(--text-muted);
}

.hours-form-footer {
    padding: 24px;
    border-top: 1px solid var(--border-light);
    text-align: right;
}

/* Custom CSS Switch Component */
.toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: relative;
    width: 44px;
    height: 22px;
    background-color: rgba(255, 255, 255, 0.15);
    transition: .4s;
    border-radius: 34px;
}

body.tenant-site .slider {
    background-color: rgba(0, 0, 0, 0.1);
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .slider {
    background-color: var(--brand-primary);
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(22px);
}

.toggle-label {
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .hours-table-header {
        display: none;
    }
    .hours-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 20px 16px;
    }
    .col-timings, .col-breaks {
        display: flex;
        justify-content: space-between;
    }
    .col-timings::before {
        content: "Hours:";
        font-weight: 600;
        font-size: 13px;
    }
    .col-breaks::before {
        content: "Break:";
        font-weight: 600;
        font-size: 13px;
    }
}

/* =========================================================================
   15. Customize Panel Styling Details
   ========================================================================= */
.color-picker-row {
    gap: 30px;
}

.color-picker-group {
    flex: 1;
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-picker-wrapper input[type="color"] {
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    background: none;
}

.color-text-input {
    flex: 1;
    font-family: monospace !important;
}

.sticky-preview-card {
    position: sticky;
    top: 100px;
}

.preview-simulator {
    margin-top: 20px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: var(--transition-fast);
}

.sim-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 16px;
}

.sim-logo {
    font-size: 20px;
}

.sim-img-logo {
    height: 24px;
    width: auto;
}

.sim-title {
    font-weight: 700;
    font-size: 16px;
}

.sim-text {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 16px;
}

.sim-service-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 12px;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.sim-service-item strong {
    font-size: 13px;
}

.sim-service-item p {
    font-size: 11px;
    opacity: 0.6;
}

.sim-btn-select {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    background: var(--brand-primary);
    color: white;
    border: none;
}

.sim-calendar {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 12px;
}

.sim-cal-header {
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.sim-cal-days {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.sim-cal-days span {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
}

.sim-cal-active {
    background: var(--brand-primary) !important;
    color: white;
}

/* =========================================================================
   16. Customer Scheduling Calendar Wizard
   ========================================================================= */
.booking-wizard-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.booking-tenant-card {
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 40px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.booking-tenant-logo {
    height: 64px;
    width: auto;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 16px;
}

.booking-tenant-name {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
}

.booking-tenant-desc {
    color: var(--text-muted);
    font-size: 15px;
    max-width: 600px;
    margin: 0 auto 20px;
}

.booking-contact-quick {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    gap: 20px;
}

.wizard-steps-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.wizard-step-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    transition: var(--transition-smooth);
}

.wizard-step-card.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.step-badge {
    position: absolute;
    left: -16px;
    top: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.4);
}

.wizard-step-card.disabled .step-badge {
    background: #64748b;
    box-shadow: none;
}

.wizard-step-card h3 {
    margin-left: 20px;
    font-size: 22px;
}

.step-instruction {
    color: var(--text-muted);
    font-size: 14px;
    margin-left: 20px;
    margin-bottom: 24px;
}

/* Service Card Booking Selection */
.services-booking-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.service-booking-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    position: relative;
}

.service-booking-card:hover {
    border-color: var(--brand-primary);
    background: rgba(255, 255, 255, 0.02);
}

body.tenant-site .service-booking-card:hover {
    background: rgba(0, 0, 0, 0.01);
}

.service-booking-card.selected {
    border-color: var(--brand-primary);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}

.card-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: transparent;
    transition: var(--transition-fast);
}

.service-booking-card.selected .card-check {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white;
}

.service-details-column {
    flex: 1;
}

.service-title {
    font-size: 16px;
    font-weight: 700;
}

.service-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.service-meta-badges {
    display: flex;
    gap: 12px;
}

.meta-badge-duration {
    background: rgba(255,255,255,0.05);
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 6px;
    color: var(--text-muted);
}

body.tenant-site .meta-badge-duration {
    background: rgba(0,0,0,0.05);
}

.meta-badge-price {
    font-weight: 700;
    font-size: 13px;
    color: var(--brand-primary);
}

/* Calendar & Slots Split View */
.calendar-and-slots-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
}

@media (max-width: 768px) {
    .calendar-and-slots-layout {
        grid-template-columns: 1fr;
    }
}

.calendar-widget-container {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
}

.calendar-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.btn-cal-nav {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-light);
    color: var(--brand-text);
    cursor: pointer;
    font-weight: 700;
}

body.tenant-site .btn-cal-nav {
    background: rgba(0,0,0,0.05);
}

.btn-cal-nav:hover {
    background: var(--brand-primary);
    color: white;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

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

.calendar-days-grid button, .calendar-days-grid span {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 500;
    transition: var(--transition-fast);
}

.calendar-days-grid button {
    background: transparent;
    border: none;
    color: var(--brand-text);
    cursor: pointer;
}

.calendar-days-grid button:hover:not(:disabled) {
    background: rgba(99, 102, 241, 0.15);
    color: var(--brand-primary);
}

.calendar-days-grid button:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.calendar-days-grid button.today-highlight {
    border: 1px dashed var(--brand-primary);
}

.calendar-days-grid button.selected-day {
    background: var(--brand-primary) !important;
    color: white !important;
}

/* Slots section */
.slots-widget-container {
    display: flex;
    flex-direction: column;
}

.slots-heading {
    font-size: 16px;
    margin-bottom: 2px;
}

.slots-subheading {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    max-height: 280px;
    overflow-y: auto;
}

.slot-item-btn {
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--brand-text);
    cursor: pointer;
    text-align: center;
    transition: var(--transition-fast);
}

.slot-item-btn:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: rgba(99, 102, 241, 0.05);
}

.slot-item-btn.selected {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white !important;
}

.slot-item-btn:disabled, .slot-item-btn.booked {
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.03) !important;
    color: var(--text-muted) !important;
    cursor: not-allowed !important;
    text-decoration: line-through;
    opacity: 0.45;
}

body.tenant-site .slot-item-btn:disabled, body.tenant-site .slot-item-btn.booked {
    background: rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(0, 0, 0, 0.04) !important;
    color: #94a3b8 !important;
}

.slots-placeholder {
    grid-column: span 12;
    text-align: center;
    color: var(--text-muted);
    padding: 40px 20px;
    font-size: 13px;
}

.slots-spinner {
    grid-column: span 12;
    text-align: center;
    padding: 30px 20px;
    color: var(--text-muted);
}

.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--brand-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

/* Step 3 summary box */
.booking-summary-banner {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

body.tenant-site .booking-summary-banner {
    background: rgba(0, 0, 0, 0.02);
}

.summary-item {
    display: flex;
    flex-direction: column;
}

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

.summary-val {
    font-size: 15px;
    font-weight: 700;
}

/* =========================================================================
   17. OTP verification specific items
   ========================================================================= */
.verify-card {
    max-width: 500px;
}

.verify-icon {
    font-size: 48px;
    color: var(--brand-primary);
    display: block;
    margin-bottom: 12px;
}

.verify-summary-box {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 24px;
    text-align: left;
}

body.tenant-site .verify-summary-box {
    background: rgba(0,0,0,0.02);
}

.verify-summary-box h4 {
    font-size: 13px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.verify-details-list li {
    font-size: 14px;
    margin-bottom: 6px;
    list-style: none;
}

.verify-code-label {
    font-size: 16px !important;
}

.verify-code-input {
    font-size: 28px !important;
    text-align: center;
    letter-spacing: 8px;
    font-weight: 700;
    max-width: 240px;
    margin: 0 auto;
    font-family: monospace;
}

/* =========================================================================
   18. Success & Receipt Checkout Screens
   ========================================================================= */
.success-card-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 250px);
    padding: 20px 0;
}

.success-card {
    width: 100%;
    max-width: 600px;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.success-icon-badge {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    border: 2px solid var(--color-success);
    color: var(--color-success);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.checkmark-icon {
    font-size: 32px;
    font-weight: 700;
}

.success-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
}

.success-subtitle {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 32px;
}

.receipt-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 32px;
    text-align: left;
}

body.tenant-site .receipt-card {
    background: rgba(0,0,0,0.015);
}

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

.receipt-header h3 {
    margin-bottom: 0;
    font-size: 16px;
}

.receipt-badge {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-success);
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.receipt-label {
    color: var(--text-muted);
}

.receipt-value {
    font-weight: 600;
}

.receipt-divider {
    border: none;
    border-top: 1px dashed var(--border-light);
    margin: 16px 0;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* =========================================================================
   19. SaaS Landing Layout Specifics
   ========================================================================= */
.hero-section {
    text-align: center;
    padding: 80px 24px 60px;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    background: rgba(99, 102, 241, 0.15);
    color: var(--brand-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 38px;
    }
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 36px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 14px 32px;
    font-size: 16px;
}

/* Mockup Simulator in Landing */
.hero-mockup-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,0.12);
    background: #1e293b;
    border-radius: var(--radius-md);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    overflow: hidden;
    text-align: left;
}

.mockup-header {
    background: #0f172a;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    display: inline-block;
}

.mockup-dot.red { background: #ef4444; }
.mockup-dot.yellow { background: #f59e0b; }
.mockup-dot.green { background: #10b981; }

.mockup-address {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    margin-left: 20px;
    padding: 4px 12px;
    font-size: 11px;
    color: var(--text-muted);
    font-family: monospace;
}

.mockup-body {
    padding: 20px;
}

.mockup-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 20px;
}

@media (max-width: 580px) {
    .mockup-grid {
        grid-template-columns: 1fr;
    }
    .mockup-sidebar {
        display: none;
    }
}

.mockup-sidebar {
    border-right: 1px solid rgba(255,255,255,0.05);
    padding-right: 15px;
}

.mockup-logo {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 20px;
}

.mockup-nav-item {
    font-size: 12px;
    padding: 8px 12px;
    color: var(--text-muted);
    border-radius: 6px;
    margin-bottom: 4px;
}

.mockup-nav-item.active {
    background: rgba(99,102,241,0.1);
    color: var(--brand-primary);
}

.mockup-step {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.mockup-services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.mockup-service-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
}

.mockup-service-card.active {
    border-color: var(--brand-primary);
    background: rgba(99,102,241,0.05);
    position: relative;
}

.mockup-check {
    position: absolute;
    right: 8px;
    top: 8px;
    color: var(--brand-primary);
    font-weight: 700;
}

.mockup-calendar-placeholder {
    background: rgba(255,255,255,0.02);
    padding: 15px;
    border-radius: 8px;
}

.mockup-cal-grid {
    display: flex;
    gap: 8px;
    justify-content: space-around;
    margin-bottom: 12px;
}

.mockup-cal-grid span {
    font-size: 11px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-active {
    background: var(--brand-primary);
    color: white;
    border-radius: 6px;
}

.mockup-slots-grid {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.mockup-slots-grid span {
    padding: 4px 8px;
    font-size: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}

.slot-active {
    border: 1px solid var(--brand-primary);
    color: var(--brand-primary);
}

/* Features Grid section */
.features-section, .pricing-section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.04);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Pricing Grid details */
.pricing-card-wrapper {
    display: flex;
    justify-content: center;
}

.pricing-card {
    background: rgba(30, 41, 59, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 48px;
    width: 100%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.premium-card {
    border-color: var(--brand-primary);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.pricing-badge {
    background: var(--brand-primary);
    color: white;
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    display: inline-block;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.pricing-card h3 {
    font-size: 24px;
}

.pricing-price {
    font-size: 64px;
    font-weight: 800;
    margin: 12px 0 20px;
}

.pricing-price .period {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-desc {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.pricing-features {
    text-align: left;
    list-style: none;
    margin-bottom: 40px;
}

.pricing-features li {
    font-size: 15px;
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: 700;
}

/* Callout Section */
.cta-callout {
    background: linear-gradient(135deg, rgba(99,102,241,0.2) 0%, rgba(79,70,229,0.2) 100%);
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    margin: 40px 0;
}

.cta-callout h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

.cta-callout p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* =========================================================================
   20. Footer styling
   ========================================================================= */
.main-footer {
    border-top: var(--border-light);
    padding: 60px 24px;
    background: rgba(15, 23, 42, 0.4);
    margin-top: auto;
    font-size: 14px;
}

body.tenant-site .main-footer {
    background: rgba(0, 0, 0, 0.02);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.footer-info h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.footer-info p {
    color: var(--text-muted);
    max-width: 500px;
}

.contact-details {
    margin-top: 12px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.footer-links a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 12px;
}

/* =========================================================================
   21. Animations & Micro-interactions
   ========================================================================= */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-scale-up {
    animation: scaleUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes scaleUp {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

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

/* =========================================================================
   22. Iframe Embed Mode overrides
   ========================================================================= */
body.iframe-embed {
    background-color: transparent !important;
    background-image: none !important;
}

body.iframe-embed .page-wrapper {
    padding: 0 !important;
    margin: 0 !important;
}

body.iframe-embed .content-container {
    padding: 10px 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

body.iframe-embed .booking-tenant-card {
    display: none !important;
}

body.iframe-embed .wizard-steps-container {
    gap: 16px !important;
}

/* =========================================================================
   23. Unified Theme Switcher UI Component & Mobile Responsive Adjustments
   ========================================================================= */

.theme-toggler {
    position: relative;
    display: inline-block;
    z-index: 150;
    margin-left: 8px;
}

.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-light);
    color: var(--brand-text);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    aria-haspopup: true;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 16px;
    outline: none;
    padding: 0;
}

body.tenant-site .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.05);
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

body.tenant-site .theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Theme Selector Dropdown Menu */
.theme-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 2px;
    min-width: 140px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    animation: scaleUp 0.18s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

html[data-resolved-theme="light"] .theme-dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.theme-dropdown-menu.show {
    display: flex;
}

.theme-dropdown-item {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    transition: var(--transition-fast);
    width: 100%;
}

html[data-resolved-theme="light"] .theme-dropdown-item {
    color: #64748b;
}

.theme-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

html[data-resolved-theme="light"] .theme-dropdown-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #0f172a;
}

.theme-dropdown-item.active {
    background: var(--brand-primary);
    color: #ffffff !important;
}

/* =========================================================================
   24. Theme Overrides (Light Mode & Dark Mode Resolution)
   ========================================================================= */

/* A. Dark Mode Settings (Overrides Light Mode defaults on tenant sites) */
html[data-resolved-theme="dark"] {
    --brand-bg: #0f172a;
    --brand-text: #f8fafc;
    --text-muted: #94a3b8;
    --border-light: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(30, 41, 59, 0.6);
    --input-bg: rgba(15, 23, 42, 0.5);
    --input-border: rgba(255, 255, 255, 0.1);
}

html[data-resolved-theme="dark"] body.tenant-site {
    background-color: var(--brand-bg);
    color: var(--brand-text);
    --card-bg: rgba(30, 41, 59, 0.6);
    --border-light: rgba(255, 255, 255, 0.08);
}

html[data-resolved-theme="dark"] body.tenant-site .main-header {
    background: rgba(15, 23, 42, 0.7);
    border-bottom: var(--border-light);
}

html[data-resolved-theme="dark"] body.tenant-site .nav-item {
    color: var(--text-muted);
    opacity: 0.9;
}

html[data-resolved-theme="dark"] body.tenant-site .nav-item:hover,
html[data-resolved-theme="dark"] body.tenant-site .nav-item.badge-active {
    color: var(--brand-primary);
    opacity: 1;
}

html[data-resolved-theme="dark"] body.tenant-site .btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--brand-text);
}

html[data-resolved-theme="dark"] body.tenant-site .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

html[data-resolved-theme="dark"] body.tenant-site .card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

html[data-resolved-theme="dark"] body.tenant-site .alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

html[data-resolved-theme="dark"] body.tenant-site .alert-success {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: #a7f3d0;
}

html[data-resolved-theme="dark"] body.tenant-site .form-group input,
html[data-resolved-theme="dark"] body.tenant-site .form-group textarea,
html[data-resolved-theme="dark"] body.tenant-site .form-group select,
html[data-resolved-theme="dark"] .filter-input {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-light);
    color: var(--brand-text);
}

html[data-resolved-theme="dark"] body.tenant-site .form-group input:focus,
html[data-resolved-theme="dark"] body.tenant-site .form-group textarea:focus,
html[data-resolved-theme="dark"] body.tenant-site .form-group select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--brand-primary);
}

html[data-resolved-theme="dark"] body.tenant-site .shortcut-item {
    background: rgba(255, 255, 255, 0.02);
}

html[data-resolved-theme="dark"] body.tenant-site .row-weekend {
    background: rgba(255, 255, 255, 0.01);
}

html[data-resolved-theme="dark"] body.tenant-site .slider {
    background-color: rgba(255, 255, 255, 0.1);
}

html[data-resolved-theme="dark"] body.tenant-site .service-booking-card:hover {
    background: rgba(255, 255, 255, 0.02);
}

html[data-resolved-theme="dark"] body.tenant-site .meta-badge-duration {
    background: rgba(255, 255, 255, 0.08);
}

html[data-resolved-theme="dark"] body.tenant-site .btn-cal-nav {
    background: rgba(255, 255, 255, 0.08);
    color: var(--brand-text);
}

html[data-resolved-theme="dark"] body.tenant-site .booking-summary-banner {
    background: rgba(255, 255, 255, 0.02);
}

html[data-resolved-theme="dark"] body.tenant-site .verify-summary-box {
    background: rgba(255, 255, 255, 0.02);
}

html[data-resolved-theme="dark"] body.tenant-site .receipt-card {
    background: rgba(255, 255, 255, 0.02);
}

html[data-resolved-theme="dark"] body.tenant-site .main-footer {
    background: rgba(15, 23, 42, 0.4);
}

/* B. Light Mode Settings (Overrides Dark Mode defaults on platform global site) */
html[data-resolved-theme="light"] body.platform-site {
    background-color: #f8fafc;
    color: #0f172a;
    --brand-bg: #f8fafc;
    --brand-text: #0f172a;
    --text-muted: #64748b;
    --border-light: rgba(0, 0, 0, 0.08);
    --card-bg: rgba(255, 255, 255, 0.85);
}

html[data-resolved-theme="light"] body.platform-site .main-header {
    background: rgba(255, 255, 255, 0.75);
    border-bottom: var(--border-light);
}

html[data-resolved-theme="light"] body.platform-site .nav-item {
    color: #64748b;
}

html[data-resolved-theme="light"] body.platform-site .nav-item:hover,
html[data-resolved-theme="light"] body.platform-site .nav-item.badge-active {
    color: var(--brand-primary);
}

html[data-resolved-theme="light"] body.platform-site .btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: #0f172a;
}

html[data-resolved-theme="light"] body.platform-site .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
}

html[data-resolved-theme="light"] body.platform-site .card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.08);
}

html[data-resolved-theme="light"] body.platform-site .form-group input,
html[data-resolved-theme="light"] body.platform-site .form-group textarea,
html[data-resolved-theme="light"] body.platform-site .form-group select,
html[data-resolved-theme="light"] body.platform-site .filter-input {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.12);
    color: #0f172a;
}

html[data-resolved-theme="light"] body.platform-site .form-group input:focus,
html[data-resolved-theme="light"] body.platform-site .form-group textarea:focus,
html[data-resolved-theme="light"] body.platform-site .form-group select:focus {
    background: #ffffff;
    border-color: var(--brand-primary);
}

html[data-resolved-theme="light"] body.platform-site .main-footer {
    background: rgba(0, 0, 0, 0.02);
    border-top: var(--border-light);
}

html[data-resolved-theme="light"] body.platform-site .feature-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.08);
}

html[data-resolved-theme="light"] body.platform-site .pricing-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

html[data-resolved-theme="light"] body.platform-site .pricing-card.premium-card {
    border-color: var(--brand-primary);
}

html[data-resolved-theme="light"] body.platform-site .text-gradient {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .header-container {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 12px;
    }
    .nav-menu {
        gap: 12px;
        flex-wrap: wrap;
        font-size: 14px;
    }
    .btn-nav {
        padding: 6px 12px;
        font-size: 13px;
    }
}

