/**
 * AirHost — Global Theme Tokens
 * Single source of truth loaded on EVERY page (landing + dashboard).
 * JS writes to data-theme="" on <html> and optionally injects custom
 * property overrides from saved WordPress options.
 */

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

/* ─── Light Mode Tokens ──────────────────────────────────────── */
:root,
[data-theme="light"] {
    --air-mode: light;

    /* Brand */
    --air-brand:        #FF385C;
    --air-brand-dark:   #D70466;
    --air-brand-light:  #ff6b81;
    --air-brand-glow:   rgba(255, 56, 92, 0.15);

    /* Backgrounds */
    --air-bg:           #F7F7F9;
    --air-bg2:          #EFEFEF;
    --air-bg3:          #E8E8EC;
    --air-surface:      #FFFFFF;
    --air-surface2:     #F0F0F4;

    /* Borders */
    --air-border:       #E2E2E8;

    /* Text */
    --air-text:         #1A1A27;
    --air-text-light:   #717171;
    --air-text-faint:   rgba(26, 26, 39, 0.35);
    --badge-manual-bg:  rgba(0, 0, 0, 0.07);
    --badge-manual-text: #717171;
    --badge-ics-bg:     rgba(86, 43, 157, 0.1);
    --badge-ics-text:    #562B9D;
    --status-confirmed-text: #00A699;
    --status-confirmed-bg: rgba(0, 166, 153, 0.12);
    --status-pending-text: #D97706;
    --status-pending-bg: rgba(217, 119, 6, 0.12);
    --status-cancelled-text: #DC2626;
    --status-cancelled-bg: rgba(220, 38, 38, 0.12);
    --res-checkout-color: #FF385C;
    --res-checkout-bg: rgba(255, 56, 92, 0.05);
    --res-checkout-icon-bg: rgba(255, 56, 92, 0.13);
    --res-hosting-color: #562B9D;
    --res-hosting-bg: rgba(86, 43, 157, 0.05);
    --res-hosting-icon-bg: rgba(86, 43, 157, 0.13);
    --res-arriving-color: #00A699;
    --res-arriving-bg: rgba(0, 166, 153, 0.05);
    --res-arriving-icon-bg: rgba(0, 166, 153, 0.13);

    /* Status */
    --air-green:        #16A34A;
    --air-gold:         #D97706;
    --air-red:          #DC2626;

    /* Shadows */
    --air-shadow-sm:    0 2px 6px rgba(0,0,0,0.05);
    --air-shadow:       0 6px 20px rgba(0,0,0,0.08);
    --air-shadow-lg:    0 16px 40px rgba(0,0,0,0.12);
    --air-shadow-card:  0 4px 20px rgba(0,0,0,0.07);

    /* Radius */
    --air-radius:       12px;
    --air-radius-lg:    20px;

    /* Transitions */
    --air-transition:   0.25s cubic-bezier(0.4, 0, 0.2, 1);

    /* Scrollbar */
    --air-scrollbar-track: var(--air-bg);
    --air-scrollbar-thumb: var(--air-border);

    /* Chat / WhatsApp Simulation */
    --chat-sidebar-bg: #ffffff;
    --chat-item-hover: #f5f6f6;
    --chat-item-active: #eaebeb;
    --chat-name-color: #111b21;
    --chat-preview-color: #667781;
    --chat-pane-bg: #efeae2;
    --chat-bubble-host-bg: #d9fdd3;
    --chat-bubble-host-text: #111b21;
    --chat-bubble-guest-bg: #ffffff;
    --chat-bubble-guest-text: #111b21;
    --chat-border: #f0f2f5;
    --chat-grid-dot: #dfdcd6;
}

/* ─── Dark Mode Tokens ───────────────────────────────────────── */
[data-theme="dark"] {
    --air-mode: dark;

    /* Brand stays same */
    --air-brand:        #FF385C;
    --air-brand-dark:   #D70466;
    --air-brand-light:  #ff6b81;
    --air-brand-glow:   rgba(255, 56, 92, 0.18);

    /* Backgrounds */
    --air-bg:           #0D0D12;
    --air-bg2:          #13131A;
    --air-bg3:          #1A1A25;
    --air-surface:      #1E1E2E;
    --air-surface2:     #252538;

    /* Borders */
    --air-border:       rgba(255, 255, 255, 0.09);

    /* Text */
    --air-text:         #F1F0F5;
    --air-text-light:   rgba(241, 240, 245, 0.60);
    --air-text-faint:   rgba(241, 240, 245, 0.30);
    --badge-manual-bg:  rgba(255, 255, 255, 0.07);
    --badge-manual-text: rgba(241, 240, 245, 0.60);
    --badge-ics-bg:     rgba(168, 85, 247, 0.15);
    --badge-ics-text:    #c084fc;
    --status-confirmed-text: #22C55E;
    --status-confirmed-bg: rgba(34, 197, 110, 0.15);
    --status-pending-text: #FBBF24;
    --status-pending-bg: rgba(251, 191, 36, 0.15);
    --status-cancelled-text: #F87171;
    --status-cancelled-bg: rgba(248, 113, 113, 0.15);
    --res-checkout-color: #F87171;
    --res-checkout-bg: rgba(248, 113, 113, 0.1);
    --res-checkout-icon-bg: rgba(248, 113, 113, 0.18);
    --res-hosting-color: #c084fc;
    --res-hosting-bg: rgba(168, 85, 247, 0.1);
    --res-hosting-icon-bg: rgba(168, 85, 247, 0.18);
    --res-arriving-color: #22C55E;
    --res-arriving-bg: rgba(34, 197, 94, 0.1);
    --res-arriving-icon-bg: rgba(34, 197, 94, 0.18);

    /* Status */
    --air-green:        #22C55E;
    --air-gold:         #FBBF24;
    --air-red:          #F87171;

    /* Shadows */
    --air-shadow-sm:    0 2px 6px rgba(0,0,0,0.3);
    --air-shadow:       0 8px 24px rgba(0,0,0,0.5);
    --air-shadow-lg:    0 16px 48px rgba(0,0,0,0.6);
    --air-shadow-card:  0 4px 24px rgba(0,0,0,0.45);

    /* Scrollbar */
    --air-scrollbar-track: var(--air-bg);
    --air-scrollbar-thumb: var(--air-surface2);

    /* Chat / WhatsApp Simulation */
    --chat-sidebar-bg: #1e1e2e;
    --chat-item-hover: #252538;
    --chat-item-active: #2f2f47;
    --chat-name-color: #f1f0f5;
    --chat-preview-color: rgba(241, 240, 245, 0.60);
    --chat-pane-bg: #0d0d12;
    --chat-bubble-host-bg: #005c4b;
    --chat-bubble-host-text: #e9edef;
    --chat-bubble-guest-bg: #252538;
    --chat-bubble-guest-text: #f1f0f5;
    --chat-border: rgba(255, 255, 255, 0.09);
    --chat-grid-dot: rgba(255, 255, 255, 0.08);
}

/* ─── System Preference Fallback (when no data-theme set) ─────── */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --air-mode: dark;
        --air-brand:        #FF385C;
        --air-brand-dark:   #D70466;
        --air-brand-light:  #ff6b81;
        --air-brand-glow:   rgba(255, 56, 92, 0.18);
        --air-bg:           #0D0D12;
        --air-bg2:          #13131A;
        --air-bg3:          #1A1A25;
        --air-surface:      #1E1E2E;
        --air-surface2:     #252538;
        --air-border:       rgba(255, 255, 255, 0.09);
        --air-text:         #F1F0F5;
        --air-text-light:   rgba(241, 240, 245, 0.60);
        --air-text-faint:   rgba(241, 240, 245, 0.30);
        --badge-manual-bg:  rgba(255, 255, 255, 0.07);
        --badge-manual-text: rgba(241, 240, 245, 0.60);
        --badge-ics-bg:     rgba(168, 85, 247, 0.15);
        --badge-ics-text:    #c084fc;
        --status-confirmed-text: #22C55E;
        --status-confirmed-bg: rgba(34, 197, 110, 0.15);
        --status-pending-text: #FBBF24;
        --status-pending-bg: rgba(251, 191, 36, 0.15);
        --status-cancelled-text: #F87171;
        --status-cancelled-bg: rgba(248, 113, 113, 0.15);
        --res-checkout-color: #F87171;
        --res-checkout-bg: rgba(248, 113, 113, 0.1);
        --res-checkout-icon-bg: rgba(248, 113, 113, 0.18);
        --res-hosting-color: #c084fc;
        --res-hosting-bg: rgba(168, 85, 247, 0.1);
        --res-hosting-icon-bg: rgba(168, 85, 247, 0.18);
        --res-arriving-color: #22C55E;
        --res-arriving-bg: rgba(34, 197, 94, 0.1);
        --res-arriving-icon-bg: rgba(34, 197, 94, 0.18);
        --air-green:        #22C55E;
        --air-gold:         #FBBF24;
        --air-red:          #F87171;
        --air-shadow-sm:    0 2px 6px rgba(0,0,0,0.3);
        --air-shadow:       0 8px 24px rgba(0,0,0,0.5);
        --air-shadow-lg:    0 16px 48px rgba(0,0,0,0.6);
        --air-shadow-card:  0 4px 24px rgba(0,0,0,0.45);
        --air-scrollbar-track: var(--air-bg);
        --air-scrollbar-thumb: var(--air-surface2);

        /* Chat / WhatsApp Simulation */
        --chat-sidebar-bg: #1e1e2e;
        --chat-item-hover: #252538;
        --chat-item-active: #2f2f47;
        --chat-name-color: #f1f0f5;
        --chat-preview-color: rgba(241, 240, 245, 0.60);
        --chat-pane-bg: #0d0d12;
        --chat-bubble-host-bg: #005c4b;
        --chat-bubble-host-text: #e9edef;
        --chat-bubble-guest-bg: #252538;
        --chat-bubble-guest-text: #f1f0f5;
        --chat-border: rgba(255, 255, 255, 0.09);
        --chat-grid-dot: rgba(255, 255, 255, 0.08);
    }
}

/* ─── Global Base Styles ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; color-scheme: light dark; }

body {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    background-color: var(--air-bg) !important;
    color: var(--air-text) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    transition: background-color 0.35s ease, color 0.35s ease;
}

/* Force all heading elements to use theme tokens */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif !important;
    color: var(--air-text) !important;
    font-weight: 700;
}

/* Links */
a { color: inherit; text-decoration: none; }

/* Buttons inherit font */
button, input, select, textarea {
    font-family: inherit !important;
}

/* ─── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--air-scrollbar-track); }
::-webkit-scrollbar-thumb {
    background: var(--air-scrollbar-thumb);
    border-radius: 99px;
}

/* ─── Bootstrap Class Remapping ──────────────────────────────── */
/* Allows Bootstrap utility classes to honour our token system   */
.bg-white                       { background-color: var(--air-surface)  !important; }
.bg-light                       { background-color: var(--air-bg)        !important; }
.text-dark, .text-body          { color: var(--air-text)                 !important; }
.text-muted, .text-secondary    { color: var(--air-text-light)           !important; }
.text-primary                   { color: var(--air-brand)                !important; }
.border,
.border-top,
.border-bottom,
.border-end,
.border-start                   { border-color: var(--air-border)        !important; }

/* Backgrounds */
.bg-transparent                 { background-color: transparent          !important; }
.bg-primary                     { background-color: var(--air-brand)     !important; }
.bg-success                     { background-color: var(--air-green)     !important; }
.bg-danger                      { background-color: var(--air-red)       !important; }
.bg-warning                     { background-color: var(--air-gold)      !important; }

/* Text colors */
.text-white                     { color: #ffffff                         !important; }
.text-success                   { color: var(--air-green)                !important; }
.text-danger                    { color: var(--air-red)                  !important; }
.text-warning                   { color: var(--air-gold)                 !important; }
.text-info                      { color: var(--air-brand-light)          !important; }

/* Dynamic Dark-mode responsive link-dark style */
.link-dark, .btn-link.link-dark {
    color: var(--air-text) !important;
    transition: color var(--air-transition);
}
.link-dark:hover, .link-dark:focus, .btn-link.link-dark:hover, .btn-link.link-dark:focus {
    color: var(--air-brand) !important;
}

/* Cards */
.card                           { background-color: var(--air-surface)   !important;
                                  border-color: var(--air-border)         !important;
                                  color: var(--air-text)                  !important; 
                                  box-shadow: var(--air-shadow-sm)       !important; }
.card-header, .card-footer      { background-color: var(--air-surface)   !important;
                                  border-color: var(--air-border)         !important; }
.card-title                     { color: var(--air-text)                 !important; }
.card-body                      { color: var(--air-text)                 !important; }

/* Navbar */
.navbar-light .navbar-brand,
.navbar-light .navbar-nav .nav-link { color: var(--air-text) !important; }

/* Dropdowns */
.dropdown-menu {
    background-color: var(--air-surface) !important;
    border-color: var(--air-border)      !important;
    color: var(--air-text)               !important;
}
.dropdown-item                  { color: var(--air-text)                 !important; }
.dropdown-item:hover,
.dropdown-item:focus            { background-color: var(--air-bg)        !important; }
.dropdown-divider               { border-color: var(--air-border)        !important; }

/* Modals */
.modal-content                  { background-color: var(--air-surface)   !important;
                                  border-color: var(--air-border)         !important;
                                  color: var(--air-text)                  !important; }
.modal-header,
.modal-footer                   { border-color: var(--air-border)        !important; }

/* Offcanvas */
.offcanvas,
.offcanvas-header,
.offcanvas-body                 { background-color: var(--air-surface)   !important;
                                  color: var(--air-text)                  !important; }
.offcanvas-header               { border-color: var(--air-border)        !important; }

/* Forms */
.form-control,
.form-select                    { background-color: var(--air-bg)        !important;
                                  border-color: var(--air-border)         !important;
                                  color: var(--air-text)                  !important; }
.form-control:focus,
.form-select:focus              { background-color: var(--air-surface)   !important;
                                  border-color: var(--air-brand)          !important;
                                  box-shadow: 0 0 0 3px var(--air-brand-glow) !important; }
.form-control::placeholder      { color: var(--air-text-faint)           !important; }
.form-label                     { color: var(--air-text)                 !important; }
.form-text                      { color: var(--air-text-light)           !important; }

/* Input Groups */
.input-group-text               { background-color: var(--air-surface2)  !important;
                                  border-color: var(--air-border)         !important;
                                  color: var(--air-text-light)            !important; }

/* Badges */
.badge.bg-light                 { background-color: var(--air-surface2)  !important;
                                  color: var(--air-text)                  !important; }

/* Tables */
.table                          { color: var(--air-text)                 !important; }
.table th, .table td            { color: var(--air-text)                 !important; }
.table-striped > tbody > tr:nth-of-type(odd) > * { background-color: var(--air-bg2) !important; }
.table > :not(caption) > * > * { border-color: var(--air-border)        !important; 
                                  color: var(--air-text)                 !important; }

/* In case of deep nesting or specific Bootstrap utility conflicts */
.text-dark { color: var(--air-text) !important; }
.text-muted { color: var(--air-text-light) !important; }
label { color: var(--air-text) !important; }

/* Alerts */
.alert                          { border-color: var(--air-border)        !important; }
.alert-success                  { background-color: rgba(22, 163, 74, 0.1) !important; color: var(--air-green) !important; border-color: rgba(22, 163, 74, 0.2) !important; }
.alert-danger                   { background-color: rgba(220, 38, 38, 0.1) !important; color: var(--air-red) !important; border-color: rgba(220, 38, 38, 0.2) !important; }

/* ─── Dashboard Responsive Wrapper ───────────────────────────── */
@media (max-width: 991.98px) {
    .main-content-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
@media (max-width: 575.98px) {
    .tab-pane { padding: 12px 14px !important; }
    .container-fluid { padding: 0 !important; }
    h1.h4 { font-size: 1.1rem; }
    body { overflow-x: hidden; width: 100%; position: relative; }
}

/* ─── Dashicons fix (WordPress icon font) ────────────────────── */
/* Dashicons inherit color from parent — ensure parent is visible */
.dashicons {
    color: inherit !important;
    line-height: 1 !important;
}

/* ─── Animated Theme Toggle Button ──────────────────────────── */
.air-theme-toggle {
    position: relative;
    width: 52px;
    height: 28px;
    border-radius: 99px;
    border: none;
    cursor: pointer;
    background: var(--air-surface2);
    border: 1.5px solid var(--air-border);
    transition: background var(--air-transition), border-color var(--air-transition);
    flex-shrink: 0;
}

.air-theme-toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--air-brand);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] .air-theme-toggle::after,
:root:not([data-theme]) .air-theme-toggle::after {
    transform: translateX(22px);
}

.air-theme-toggle-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    pointer-events: none;
    line-height: 1;
}
.air-theme-toggle-icon.sun { left: 5px; }
.air-theme-toggle-icon.moon { right: 5px; }

/* ─── Theme Settings Panel (Admin Only) ─────────────────────── */
#theme-settings-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    background: var(--air-surface);
    border-left: 1px solid var(--air-border);
    z-index: 9999;
    overflow-y: auto;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--air-shadow-lg);
    padding: 0;
}

#theme-settings-panel.open { right: 0; }

#theme-settings-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
#theme-settings-overlay.show { display: block; opacity: 1; }

.theme-panel-header {
    position: sticky;
    top: 0;
    background: var(--air-surface);
    border-bottom: 1px solid var(--air-border);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1;
}

.theme-panel-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--air-text);
}

.theme-panel-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--air-border);
    background: var(--air-bg);
    color: var(--air-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: var(--air-transition);
}
.theme-panel-close:hover { background: var(--air-border); color: var(--air-text); }

.theme-panel-body { padding: 24px; }

.theme-section { margin-bottom: 32px; }
.theme-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--air-text-light);
    margin-bottom: 12px;
}

/* Color Swatch Pickers */
.color-swatch-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}
.color-swatch {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.selected { border-color: var(--air-text) !important; transform: scale(1.1); }

/* Radius Picker */
.radius-options { display: flex; gap: 8px; flex-wrap: wrap; }
.radius-option {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1.5px solid var(--air-border);
    background: var(--air-bg);
    color: var(--air-text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--air-transition);
}
.radius-option:hover, .radius-option.selected {
    border-color: var(--air-brand);
    background: var(--air-brand-glow);
    color: var(--air-brand);
}

/* Font Picker */
.font-options { display: flex; flex-direction: column; gap: 8px; }
.font-option {
    padding: 12px 16px;
    border-radius: 10px;
    border: 1.5px solid var(--air-border);
    background: var(--air-bg);
    color: var(--air-text);
    font-size: 14px;
    cursor: pointer;
    transition: var(--air-transition);
    text-align: left;
}
.font-option:hover, .font-option.selected {
    border-color: var(--air-brand);
    background: var(--air-brand-glow);
}

/* Save Button */
.theme-save-btn {
    width: 100%;
    padding: 14px;
    border-radius: var(--air-radius);
    background: var(--air-brand);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--air-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.theme-save-btn:hover {
    background: var(--air-brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--air-brand-glow);
}

/* Reset Button */
.theme-reset-btn {
    width: 100%;
    padding: 11px;
    border-radius: var(--air-radius);
    background: transparent;
    color: var(--air-text-light);
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid var(--air-border);
    cursor: pointer;
    margin-top: 8px;
    transition: var(--air-transition);
}
.theme-reset-btn:hover { border-color: var(--air-red); color: var(--air-red); }

/* ─── Global Toast Notifications ────────────────────────────── */
#airhost-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 360px;
}

.air-toast {
    background: var(--air-surface);
    color: var(--air-text);
    border-left: 4px solid var(--air-brand);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: var(--air-shadow-lg);
    font-size: 14px;
    font-weight: 600;
    pointer-events: all;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    cursor: pointer;
}
.air-toast.show { opacity: 1; transform: translateY(0); }
.air-toast.error   { border-left-color: var(--air-red); }
.air-toast.success { border-left-color: var(--air-green); }
.air-toast.warning { border-left-color: var(--air-gold); }

/* ─── Global Confirm Modal ──────────────────────────────────── */
.air-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.air-confirm-overlay.show { opacity: 1; }

.air-confirm-modal {
    background: var(--air-surface);
    border-radius: 20px;
    padding: 32px;
    max-width: 420px;
    width: 90%;
    box-shadow: var(--air-shadow-lg);
    border: 1px solid var(--air-border);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.air-confirm-overlay.show .air-confirm-modal { transform: scale(1); opacity: 1; }

.air-confirm-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--air-text);
    margin-bottom: 12px;
    line-height: 1.4;
}
.air-confirm-body {
    font-size: 15px;
    color: var(--air-text-light);
    margin-bottom: 24px;
}
.air-confirm-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}
.air-confirm-btn {
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--air-transition);
    border: none;
}
.air-confirm-btn-cancel {
    background: var(--air-bg);
    color: var(--air-text-light);
    border: 1.5px solid var(--air-border);
}
.air-confirm-btn-cancel:hover { background: var(--air-border); color: var(--air-text); }
.air-confirm-btn-ok {
    background: var(--air-brand);
    color: #fff;
}
.air-confirm-btn-ok:hover { background: var(--air-brand-dark); transform: translateY(-1px); }
.air-confirm-btn-danger {
    background: var(--air-red);
}
.air-confirm-btn-danger:hover { background: #b91c1c; }

@keyframes air-toast-in {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ─── Universal WhatsApp Floating Widget Styles ─────────────── */

@keyframes pulse-fab {
    0% { transform: scale(1); filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15)); }
    70% { transform: scale(1.04); filter: drop-shadow(0 4px 10px rgba(37, 211, 102, 0.5)); }
    100% { transform: scale(1); filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15)); }
}

.animate-fab {
    animation: pulse-fab 2s infinite;
}

#airhost-whatsapp-fab {
    width: 60px;
    height: 60px;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    cursor: pointer;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, filter 0.2s ease;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

#airhost-whatsapp-fab:hover {
    transform: scale(1.08) rotate(5deg) !important;
    filter: drop-shadow(0 6px 14px rgba(37, 211, 102, 0.6)) !important;
}

#airhost-guest-chat-card {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 360px;
    height: 500px;
    background-color: #f0f2f5;
    display: flex !important;
    flex-direction: column;
    z-index: 9999;
    
    /* Slide up & Fade transitions */
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px) scale(0.95);
    transform-origin: bottom right;
    transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                visibility 0s linear 0.3s;
}

#airhost-guest-chat-card.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                visibility 0s linear 0s;
}

#guest-chat-messages::-webkit-scrollbar {
    width: 5px;
}

#guest-chat-messages::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

/* Bubbles inside Guest Widget */
.guest-message-wrapper {
    display: flex;
    margin-bottom: 12px;
    width: 100%;
}

.guest-message-wrapper.host {
    justify-content: flex-start;
}

.guest-message-wrapper.guest {
    justify-content: flex-end;
}

.guest-chat-bubble {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.4;
    box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
    word-wrap: break-word;
    display: flex;
    flex-direction: column;
}

.guest-message-wrapper.host .guest-chat-bubble {
    background-color: #ffffff;
    color: #111b21;
    border-top-left-radius: 0;
}

.guest-message-wrapper.guest .guest-chat-bubble {
    background-color: #d9fdd3;
    color: #111b21;
    border-top-right-radius: 0;
}

.guest-chat-bubble .msg-text {
    margin: 0 0 2px 0;
    white-space: pre-wrap;
}

.guest-chat-bubble .msg-meta {
    align-self: flex-end;
    font-size: 9px;
    color: #667781;
    display: flex;
    align-items: center;
    gap: 4px;
}

.guest-chat-bubble .msg-status {
    font-size: 11px;
    color: #53bdeb; /* read status */
}

/* Close button dark mode filters */
[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%) !important;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .btn-close {
        filter: invert(1) grayscale(100%) brightness(200%) !important;
    }
}

