/* ==========================================================================
   ARIADRA PATRON - EXECUTIVE DARK MOBILE SUITE
   Aesthetic: Obsidian Slate, Champagne Gold, Deep Glassmorphism, Defined Card Borders
   ========================================================================== */

:root {
    /* Executive Dark Palette */
    --bg-base: #0a0e1a;
    --bg-surface: #111827;
    --bg-card: #141c2e;
    --bg-card-elevated: #1a243a;
    --bg-card-glass: rgba(20, 28, 46, 0.95);
    --bg-header: rgba(10, 14, 26, 0.96);
    --bg-input: #0e1524;
    --bg-hover: #1f2b45;

    /* Luxury Gold & Metallic Accents */
    --gold-primary: #d4af37;
    --gold-accent: #f59e0b;
    --gold-light: rgba(212, 175, 55, 0.12);
    --gold-border: rgba(212, 175, 55, 0.35);
    --gold-border-subtle: rgba(212, 175, 55, 0.18);
    --gold-shadow: rgba(212, 175, 55, 0.2);
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #aa7c11 100%);
    --gold-gradient-soft: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);

    /* Typography & Neutral Colors */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #8492a6;
    --text-gold: #fbbf24;

    /* Status Colors */
    --emerald-primary: #10b981;
    --emerald-light: rgba(16, 185, 129, 0.12);
    --emerald-border: rgba(16, 185, 129, 0.35);
    --rose-primary: #f43f5e;
    --rose-light: rgba(244, 63, 94, 0.12);
    --rose-border: rgba(244, 63, 94, 0.35);
    --blue-primary: #38bdf8;
    --blue-light: rgba(56, 189, 248, 0.12);
    --blue-border: rgba(56, 189, 248, 0.35);
    --purple-primary: #a78bfa;
    --purple-light: rgba(167, 139, 250, 0.12);
    --purple-border: rgba(167, 139, 250, 0.35);
    --amber-primary: #f59e0b;
    --amber-light: rgba(245, 158, 11, 0.12);

    /* Defined Borders & Depth */
    --border-color: rgba(255, 255, 255, 0.09);
    --border-card: rgba(255, 255, 255, 0.11);
    --border-card-hover: rgba(212, 175, 55, 0.4);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.55);
    --shadow-gold: 0 8px 25px rgba(212, 175, 55, 0.25);

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-pill: 9999px;

    /* Safe Area & Navigation */
    --bottom-nav-height: 62px;
}

/* ==========================================================================
   RESET & GLOBAL TYPOGRAPHY
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    background-color: var(--bg-base);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.patron-body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* ==========================================================================
   PATRON AUTHENTICATION VISIBILITY TOGGLE (STRICT ISOLATION)
   ========================================================================== */
body.patron-auth-pending .patron-app-wrapper {
    display: none !important;
}

body.patron-auth-pending #patron-login-screen {
    display: flex !important;
}

body:not(.patron-auth-pending) #patron-login-screen {
    display: none !important;
}

body:not(.patron-auth-pending) .patron-app-wrapper {
    display: flex !important;
}

.patron-app-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    position: relative;
    background: var(--bg-base);
    box-sizing: border-box;
    overflow-x: hidden;
}

/* ==========================================================================
   PATRON LOGIN OVERLAY (EXECUTIVE GATEWAY)
   ========================================================================== */
.patron-login-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: radial-gradient(circle at top, #141c2e 0%, #070a12 100%);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: fadeIn 0.3s ease-out;
}

.patron-login-card {
    width: 100%;
    max-width: 380px;
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    box-shadow: var(--shadow-lg), 0 0 35px rgba(212, 175, 55, 0.15);
    text-align: center;
}

.login-crown-badge {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    background: var(--gold-gradient-soft);
    border: 1.5px solid var(--gold-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--gold-primary);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.login-brand-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    margin-bottom: 2px;
    line-height: 1.1;
}

.login-brand-sub {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--gold-primary);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.login-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.login-group {
    text-align: left;
    margin-bottom: 16px;
}

.login-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.login-group label i {
    color: var(--gold-primary);
    margin-right: 4px;
}

.login-input-wrap {
    position: relative;
}

.login-input {
    width: 100%;
    padding: 13px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}

.login-input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    background: #131b2e;
}

.login-error {
    background: var(--rose-light);
    border: 1px solid var(--rose-border);
    color: #fda4af;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    margin-bottom: 16px;
    text-align: left;
}

.btn-patron-login {
    width: 100%;
    padding: 14px;
    margin-top: 8px;
    background: var(--gold-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: #0b0f19;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
    transition: all 0.2s ease;
}

.btn-patron-login:active {
    transform: scale(0.98);
}

.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 18px 0 12px;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.login-divider span {
    padding: 0 10px;
}

.btn-biometric-login {
    width: 100%;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(22, 30, 49, 0.8) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-md);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    text-align: left;
}

.btn-biometric-login:active {
    transform: scale(0.98);
    background: rgba(212, 175, 55, 0.18);
    border-color: var(--gold-primary);
}

.bio-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.bio-text-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.bio-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.bio-sub {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.bio-arrow {
    color: var(--gold-primary);
    font-size: 0.85rem;
    opacity: 0.7;
}

.faceid-big-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px auto;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(56, 189, 248, 0.1) 100%);
    border: 1.5px solid var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--gold-primary);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.3);
}

.login-footer {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 0.72rem;
}

/* ==========================================================================
   HEADER & TOP STATUS BAR
   ========================================================================== */
.patron-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: var(--bg-header);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-card);
    padding-top: calc(env(safe-area-inset-top, 24px) + 20px);
    padding-bottom: 10px;
    padding-left: 16px;
    padding-right: 16px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 600px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--gold-border-subtle);
    padding: 5px 10px;
    border-radius: var(--radius-pill);
}

.gold-crown {
    color: var(--gold-primary);
    font-size: 0.85rem;
}

.brand-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 0.94rem;
    letter-spacing: 1.2px;
    color: #ffffff;
    line-height: 1;
}

.role-pill {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    background: var(--gold-gradient);
    color: #0b0f19;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    line-height: 1.2;
}

/* ==========================================================================
   SALON SELECTION DROPDOWN CARD (EXECUTIVE GLASS)
   ========================================================================== */
.patron-salon-dropdown-card {
    background: linear-gradient(135deg, rgba(22, 30, 49, 0.8) 0%, rgba(13, 19, 33, 0.9) 100%);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.salon-dd-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.salon-dd-select-wrap {
    position: relative;
    flex: 1;
    max-width: 240px;
}

.salon-dd-select {
    width: 100%;
    background: rgba(13, 19, 33, 0.95);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 8px 30px 8px 12px;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.2s ease;
}

.salon-dd-select:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.select-caret {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-primary);
    font-size: 0.75rem;
    pointer-events: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-icon-gold {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.btn-icon-gold:active {
    background: var(--gold-light);
    color: var(--gold-primary);
    border-color: var(--gold-border);
}

.tenant-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: #0b0f19;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* ==========================================================================
   MAIN CONTENT & TABS
   ========================================================================== */
.patron-main {
    flex: 1;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 12px 14px calc(80px + env(safe-area-inset-bottom, 12px) + 25px);
    box-sizing: border-box;
    overflow-x: hidden;
}

.patron-tab-content {
    display: none;
    animation: fadeIn 0.2s ease-out;
}

.patron-tab-content.active {
    display: block;
}

/* ==========================================================================
   COMPACT EXECUTIVE HERO CARD (BRANDING & VENUE HEADER)
   ========================================================================== */
.executive-hero-card {
    background: linear-gradient(135deg, #151d30 0%, #0d1424 100%);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-md), 0 0 20px rgba(212, 175, 55, 0.06);
}

.hero-brand-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-brand-info {
    flex-grow: 1;
    overflow: hidden;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.18rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.hero-os-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid var(--gold-border-subtle);
    padding: 2px 7px;
    border-radius: var(--radius-pill);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--gold-primary);
}

.hero-date-badge {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    padding: 3px 7px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-sub-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.hero-salon-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-indicator-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #64748b;
}

.status-indicator-dot.online {
    background: var(--emerald-primary);
    box-shadow: 0 0 8px var(--emerald-primary);
}

.hero-auth-user {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.hero-auth-user i {
    color: var(--gold-primary);
}

/* ==========================================================================
   SECTION HEADERS & LABELS
   ========================================================================== */
.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.section-title-row h3 {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.icon-gold { color: var(--gold-primary); }
.icon-sky { color: var(--blue-primary); }
.icon-purple { color: var(--purple-primary); }
.icon-emerald { color: var(--emerald-primary); }
.icon-rose { color: var(--rose-primary); }

.badge-count {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}

.year-pills {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
}

.year-pill-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    white-space: nowrap;
}

.year-pill-btn.active {
    background: var(--gold-gradient);
    border-color: var(--gold-primary);
    color: #0b0f19;
    font-weight: 800;
}

/* ==========================================================================
   KPI GRID & CARDS (DEFINED BORDER BOXES)
   ========================================================================== */
.patron-kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.patron-kpi-grid.daily-grid {
    grid-template-columns: 1fr 1fr;
}

.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.kpi-card.gold-border {
    border: 1px solid var(--gold-border);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.06) 0%, var(--bg-card) 100%);
}

.kpi-card.emerald-border {
    border: 1px solid var(--emerald-border);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.06) 0%, var(--bg-card) 100%);
}

.kpi-card.sky-border {
    border: 1px solid var(--blue-border);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.06) 0%, var(--bg-card) 100%);
}

.kpi-card.rose-border {
    border: 1px solid var(--rose-border);
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.06) 0%, var(--bg-card) 100%);
}

.kpi-icon-wrap {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.gold-light { background: var(--gold-light); color: var(--gold-primary); border: 1px solid var(--gold-border-subtle); }
.emerald-light { background: var(--emerald-light); color: var(--emerald-primary); border: 1px solid var(--emerald-border); }
.blue-light { background: var(--blue-light); color: var(--blue-primary); border: 1px solid var(--blue-border); }
.rose-light { background: var(--rose-light); color: var(--rose-primary); border: 1px solid var(--rose-border); }

.kpi-info {
    overflow: hidden;
}

.kpi-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 2px;
}

.kpi-val {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
}

.kpi-sub {
    font-size: 0.66rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 1px;
}

.text-emerald { color: var(--emerald-primary) !important; }
.text-rose { color: var(--rose-primary) !important; }
.text-gold { color: var(--gold-primary) !important; }

/* ==========================================================================
   PATRON CARDS (CONTAINERS & LISTS)
   ========================================================================== */
.patron-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.card-head-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-head-compact h4 {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-net {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--emerald-primary);
}

/* Today Events List */
.today-events-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.today-event-item {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-left: 3.5px solid var(--gold-primary);
    border-radius: var(--radius-md);
    padding: 11px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.te-info h4 {
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 2px;
}

.te-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.te-slot-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

.te-slot-badge.night {
    background: var(--purple-light);
    color: var(--purple-primary);
    border: 1px solid var(--purple-border);
}

.te-slot-badge.day {
    background: var(--blue-light);
    color: var(--blue-primary);
    border: 1px solid var(--blue-border);
}

/* Salon Breakdown */
.card-body-compact {
    margin-top: 8px;
}

.salon-breakdown-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
}

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

.sbr-name {
    font-weight: 600;
    color: var(--text-secondary);
}

.sbr-metrics {
    display: flex;
    gap: 10px;
    font-weight: 700;
}

.sbr-count {
    color: var(--gold-primary);
}

.sbr-rev {
    color: var(--emerald-primary);
}

/* ==========================================================================
   STICKY FILTER BAR & SEARCH (TAB 2)
   ========================================================================== */
.sticky-filter-bar {
    position: sticky;
    top: 55px;
    z-index: 80;
    background: var(--bg-base);
    padding: 6px 0 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.year-filter-scroll {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
}

.search-input-wrap {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--text-muted);
}

#contract-search-input {
    width: 100%;
    padding: 10px 12px 10px 34px;
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
}

#contract-search-input:focus {
    border-color: var(--gold-primary);
}

.quick-status-tabs {
    display: flex;
    gap: 6px;
}

.status-tab-btn {
    flex: 1;
    padding: 7px;
    font-size: 0.74rem;
    font-weight: 600;
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
}

.status-tab-btn.active {
    background: var(--gold-light);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    font-weight: 700;
}

/* Contracts List Cards */
.patron-contracts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.patron-contract-card {
    background: linear-gradient(135deg, rgba(22, 30, 49, 0.9) 0%, rgba(13, 19, 33, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 13px 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.patron-contract-card:active {
    background: rgba(30, 41, 65, 0.95);
    border-color: var(--gold-border);
    transform: scale(0.99);
}

.pcc-header-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pcc-date-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #ffffff;
}

.pcc-salon-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.pcc-owner-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    padding: 2px 0;
}

.pcc-owner-lbl {
    color: var(--text-muted);
    font-weight: 600;
}

.pcc-owner-name {
    color: #e2e8f0;
    font-weight: 700;
}

.pcc-couple-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.84rem;
    padding: 2px 0;
}

.pcc-couple-lbl {
    color: var(--text-muted);
    font-weight: 600;
}

.pcc-couple-names {
    color: #ffffff;
    font-weight: 800;
}

.pcc-chips-line {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 1px 0;
}

.pcc-chip {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pcc-chip.chip-gold {
    color: #f8df93;
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.3);
}

.pcc-chip.chip-sky {
    color: #7dd3fc;
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.3);
}

.pcc-price-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(11, 15, 25, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 2px;
}

.pcc-price-item {
    display: flex;
    flex-direction: column;
}

.pcc-price-item.right {
    align-items: flex-end;
    text-align: right;
}

.pcc-price-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.08);
}

.pcc-price-lbl {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 2px;
    text-transform: uppercase;
}

.pcc-price-val {
    font-size: 0.94rem;
    font-weight: 700;
    color: #ffffff;
}

.pcc-remain-val {
    font-size: 0.94rem;
    font-weight: 800;
    color: var(--rose-primary);
}

.pcc-paid-badge {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--emerald-primary);
    background: var(--emerald-light);
    border: 1px solid var(--emerald-border);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   CALENDAR TAB (TAB 3)
   ========================================================================== */
.calendar-month-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin-bottom: 10px;
}

.cal-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cal-current-month-wrap {
    text-align: center;
}

.cal-current-month-wrap h3 {
    font-size: 0.98rem;
    color: #ffffff;
}

.cal-month-sub {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.cal-legend-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.legend-chip {
    display: flex;
    align-items: center;
    gap: 4px;
}

.chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.day-dot { background: var(--blue-primary); }
.night-dot { background: var(--purple-primary); }
.full-dot { background: var(--gold-primary); }

.calendar-grid-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 10px;
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.cal-day-cell {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 7px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease;
}

.cal-day-cell.other-month {
    opacity: 0.25;
}

.cal-day-cell.today {
    border-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.1);
}

.cal-day-cell.selected {
    border: 1.5px solid #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.cal-day-cell .event-dots {
    display: flex;
    gap: 2px;
    margin-top: 2px;
}

.cal-day-cell .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

/* ==========================================================================
   CASHBOX (TAB 4)
   ========================================================================== */
.cashbox-date-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.date-picker-wrap {
    flex-grow: 1;
}

#cashbox-date-picker {
    width: 100%;
    padding: 8px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-size: 0.85rem;
    outline: none;
}

.btn-today-pill {
    padding: 8px 14px;
    background: var(--gold-gradient);
    border: none;
    border-radius: var(--radius-sm);
    color: #0b0f19;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.cashbox-tx-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tx-item-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tx-item-card.income { border-left: 3px solid var(--emerald-primary); }
.tx-item-card.expense { border-left: 3px solid var(--rose-primary); }

.tx-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
}

.tx-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.tx-amount {
    font-size: 0.92rem;
    font-weight: 700;
}

/* ==========================================================================
   STAFF MANAGEMENT (TAB 5)
   ========================================================================== */
.staff-head-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.staff-stats-chip {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
}

.btn-add-staff {
    padding: 8px 14px;
    background: var(--gold-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: #0b0f19;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.staff-summary-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, var(--bg-card) 100%);
    border: 1px solid var(--gold-border-subtle);
}

.staff-finance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    text-align: center;
}

.sfin-label {
    font-size: 0.66rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 3px;
}

.sfin-val {
    font-size: 0.86rem;
    font-weight: 700;
    color: #ffffff;
}

.patron-staff-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.staff-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    box-shadow: var(--shadow-sm);
}

.sc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.sc-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
}

.sc-role {
    font-size: 0.7rem;
    color: var(--text-gold);
    display: block;
}

.btn-quick-advance {
    padding: 5px 10px;
    background: var(--rose-light);
    border: 1px solid var(--rose-border);
    border-radius: var(--radius-sm);
    color: var(--rose-primary);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
}

.sc-body {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    background: rgba(255, 255, 255, 0.02);
    padding: 8px;
    border-radius: var(--radius-sm);
    font-size: 0.74rem;
    text-align: center;
}

/* ==========================================================================
   BOTTOM NAVIGATION BAR (SPACIOUS LUXURY DOCKED BAR)
   ========================================================================== */
.patron-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 1000 !important;
    width: 100% !important;
    max-width: 600px !important;
    margin: 0 auto !important;
    min-height: calc(72px + env(safe-area-inset-bottom, 8px)) !important;
    background: rgba(11, 16, 28, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    padding: 6px 4px calc(env(safe-area-inset-bottom, 6px) + 4px) 4px !important;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.85) !important;
    box-sizing: border-box !important;
}

.nav-item {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 6px 2px !important;
    background: transparent !important;
    border: none !important;
    color: var(--text-muted) !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: var(--radius-sm) !important;
}

.nav-item i {
    font-size: 1.25rem !important;
    line-height: 1 !important;
    display: block !important;
    margin: 0 auto 2px auto !important;
    transition: all 0.2s ease !important;
}

.nav-item span {
    font-size: 0.72rem !important;
    line-height: 1.15 !important;
    display: block !important;
    letter-spacing: -0.1px !important;
}

/* Distinct Exclusive Accent Colors on Bottom Menu Icons */
.nav-icon-gold { color: #d4af37 !important; }
.nav-icon-sky { color: #38bdf8 !important; }
.nav-icon-purple { color: #a78bfa !important; }
.nav-icon-emerald { color: #10b981 !important; }
.nav-icon-rose { color: #fb7185 !important; }

.nav-item:not(.active) i {
    opacity: 0.65;
}

.nav-item.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.04) !important;
}

.nav-item.active i {
    opacity: 1 !important;
    transform: translateY(-2px) scale(1.1) !important;
    filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.35));
}

.nav-item.active.nav-item[data-tab="tab-kokpit"] i { filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.6)); }
.nav-item.active.nav-item[data-tab="tab-contracts"] i { filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.6)); }
.nav-item.active.nav-item[data-tab="tab-calendar"] i { filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.6)); }
.nav-item.active.nav-item[data-tab="tab-cashbox"] i { filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.6)); }
.nav-item.active.nav-item[data-tab="tab-staff"] i { filter: drop-shadow(0 0 6px rgba(251, 113, 133, 0.6)); }

/* ==========================================================================
   MODALS & BOTTOM SHEETS
   ========================================================================== */
.patron-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.patron-modal-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease-out;
}

.bottom-sheet {
    width: 100%;
    max-width: 600px;
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-bottom: none;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 20px;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sheet-drag-handle {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-pill);
    margin: 0 auto 16px;
}

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

.sheet-subtitle {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--gold-primary);
    letter-spacing: 1px;
}

.sheet-title {
    font-size: 1.15rem;
    color: #ffffff;
}

.btn-close-sheet {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.sheet-form-group {
    margin-bottom: 14px;
}

.sheet-form-group label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.sheet-input {
    width: 100%;
    padding: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
}

.sheet-input:focus {
    border-color: var(--gold-primary);
}

.btn-sheet-confirm {
    width: 100%;
    padding: 14px;
    background: var(--gold-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: #0b0f19;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
}

/* ==========================================================================
   PWA INSTALL MODAL CARD
   ========================================================================== */
.pwa-sheet {
    background: #111827;
    border-top: 2px solid var(--gold-primary);
}

.pwa-install-card {
    text-align: center;
    padding: 10px 6px;
}

.pwa-badge {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--gold-gradient-soft);
    border: 1.5px solid var(--gold-primary);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
}

.pwa-install-card h3 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 6px;
}

.pwa-install-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.4;
}

.pwa-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 18px;
}

.pwa-step-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.pwa-step-num {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    background: var(--gold-primary);
    color: #0b0f19;
    font-weight: 800;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-pwa-dismiss {
    width: 100%;
    padding: 12px;
    background: var(--gold-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: #0b0f19;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
}

/* Privacy Blur Utility */
.privacy-blur-active .privacy-blur {
    filter: blur(7px);
    user-select: none;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}


/* ==========================================================================
   LIGHT MODE OVERRIDES FOR KOKPIT
   ========================================================================== */
body.kokpit-light-mode {
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-elevated: #f1f5f9;
    --bg-card-glass: rgba(255, 255, 255, 0.95);
    --bg-header: rgba(255, 255, 255, 0.96);
    --bg-input: #f1f5f9;
    --bg-hover: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-gold: #b4860b;
    --border-color: rgba(0, 0, 0, 0.09);
}

body.kokpit-light-mode .patron-header {
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

body.kokpit-light-mode .hero-brand-info h2 {
    color: var(--text-primary);
}

body.kokpit-light-mode .hero-date-badge {
    color: var(--text-secondary);
}

body.kokpit-light-mode .stat-card {
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

body.kokpit-light-mode .bottom-nav {
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.03);
}

body.kokpit-light-mode .btn-icon-gold {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}


/* Fixed text colors in light mode */
body.kokpit-light-mode .brand-title {
    color: var(--text-primary) !important;
}

body.kokpit-light-mode .hero-title {
    color: var(--text-primary) !important;
}

body.kokpit-light-mode .salon-dd-select {
    color: var(--text-primary) !important;
    background: var(--bg-surface) !important;
}
