/* =============================================
   BLACKLINE — Panel Styles (Admin & Client)
   ============================================= */

/* === Base === */
.panel-body {
    background: #0a0e17;
    color: #e0e0e0;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    margin: 0;
}

/* === Login Page === */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-box {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 16px;
    padding: 50px 40px;
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.login-logo { margin-bottom: 30px; }
.login-box h2 { color: #fff; font-family: 'Barlow Condensed', sans-serif; font-size: 32px; letter-spacing: 2px; margin-bottom: 8px; }
.login-subtitle { color: #9ca3af; font-size: 14px; margin-bottom: 30px; }

.login-title {
    margin: 0 0 10px;
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 36px;
    line-height: 1;
    letter-spacing: 2px;
}

.login-language-select {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto 20px;
    padding: 8px 11px;
    border: 1px solid #374151;
    border-radius: 999px;
    color: #0CB2DB;
}

.login-language-select select {
    border: 0;
    outline: 0;
    background: transparent;
    color: #e5e7eb;
    font-size: 13px;
    cursor: pointer;
}

.login-language-select option {
    background: #111827;
    color: #fff;
}

.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; color: #9ca3af; font-size: 13px; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; }

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: #1a1f2e;
    border: 1px solid #374151;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-input:focus { border-color: #0CB2DB; outline: none; }

.password-toggle-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-toggle-wrapper .form-input,
.password-toggle-wrapper input {
    width: 100%;
    padding-right: 44px !important;
}

.password-toggle-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 8px 10px;
    font-size: 15px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.15s ease;
    z-index: 2;
    border-radius: 6px;
}

.password-toggle-btn:hover {
    color: #0CB2DB;
}

.password-toggle-btn:focus-visible {
    outline: 2px solid #0CB2DB;
    outline-offset: 2px;
}

:root[data-theme="light"] .password-toggle-btn,
html[data-theme="light"] .password-toggle-btn,
body.theme-light .password-toggle-btn {
    color: #64748b;
}

:root[data-theme="light"] .password-toggle-btn:hover,
html[data-theme="light"] .password-toggle-btn:hover,
body.theme-light .password-toggle-btn:hover {
    color: #0284c7;
}

.btn-primary-full {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #0CB2DB, #0891b2);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
}

.btn-primary-full:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(12, 178, 219, 0.3); }

.login-footer { margin-top: 25px; }
.login-footer a { color: #0CB2DB; text-decoration: none; font-size: 14px; }
.login-footer { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.login-inline-link { display:flex; justify-content:flex-end; margin:-5px 0 16px; }
.login-inline-link a { color:#67d9f3; font-size:13px; text-decoration:none; }
.login-inline-link a:hover, .login-footer a:hover { text-decoration:underline; }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.alert-danger { background: rgba(239, 68, 68, 0.15); border: 1px solid #ef4444; color: #fca5a5; }
.alert-success { background: rgba(34, 197, 94, 0.15); border: 1px solid #22c55e; color: #86efac; }
.alert-info { background: rgba(12, 178, 219, 0.12); border: 1px solid rgba(12, 178, 219, 0.6); color: #b9effb; }

/* === Register toggle === */
.login-tabs { display: flex; gap: 0; margin-bottom: 30px; border-radius: 8px; overflow: hidden; border: 1px solid #374151; }
.login-tab { flex: 1; padding: 12px; text-align: center; cursor: pointer; background: transparent; color: #9ca3af; font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; border: none; transition: all 0.3s; }
.login-tab.active { background: #0CB2DB; color: #fff; }

/* === Panel Layout === */
.panel-layout { display: flex; min-height: 100vh; }

.panel-sidebar {
    width: 260px;
    background: #111827;
    border-right: 1px solid #1f2937;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
}

.sidebar-logo { padding: 30px 24px; text-align: center; border-bottom: 1px solid #1f2937; }
.badge-admin { display: inline-block; background: #0CB2DB; color: #fff; padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; letter-spacing: 2px; margin-top: 10px; }
.badge-client { display: inline-block; background: #8b5cf6; color: #fff; padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; letter-spacing: 2px; margin-top: 10px; }

.sidebar-nav {
    flex: 1;
    min-height: 0;
    padding: 20px 12px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #303030 #050505;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: #9ca3af;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 4px;
    font-size: 13.5px;
    transition: all 0.2s;
    position: relative;
}

.nav-item:hover { background: #1a1f2e; color: #fff; }
.nav-item.active { background: rgba(12, 178, 219, 0.15); color: #0CB2DB; font-weight: 600; }
.nav-item i { width: 18px; text-align: center; flex-shrink: 0; }
.nav-item > span { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-item.logout:hover { color: #ef4444; }

.badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    flex-shrink: 0;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    line-height: 1.3;
    white-space: nowrap;
}
.badge-count.warning { background: #d97706; }
.badge-count.info { background: #0284c7; }

.sidebar-footer { padding: 12px; border-top: 1px solid #1f2937; }

.context-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 100%;
    margin: -8px 0 24px;
    padding: 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    background: rgba(5, 5, 5, .96);
    scrollbar-width: thin;
    scrollbar-color: #303030 #050505;
}

.context-tab {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.context-tab:hover {
    border-color: #303030;
    background: #0c0c0c;
    color: #fff;
}

.context-tab.active {
    border-color: rgba(12, 178, 219, .38);
    background: rgba(12, 178, 219, .12);
    color: var(--panel-accent);
}

.context-tab i { width: 16px; text-align: center; }
.context-count {
    display: inline-flex;
    min-width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
}

/* === Main Content === */
.panel-main { flex: 1; margin-left: 260px; padding: 30px 40px; }

.panel-header { margin-bottom: 30px; }
.panel-header h1 { font-family: 'Barlow Condensed', sans-serif; font-size: 36px; color: #fff; letter-spacing: 2px; margin: 0; }
.panel-header p { color: #9ca3af; font-size: 14px; margin-top: 4px; }

/* === Stats === */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 30px; }

.stat-card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: border-color 0.3s;
}

.stat-card:hover { border-color: #374151; }

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-icon.pending { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.stat-icon.confirmed { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.stat-icon.completed { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.stat-icon.revenue { background: rgba(12, 178, 219, 0.15); color: #0CB2DB; }

.stat-info h3 { color: #fff; font-size: 28px; font-weight: 700; margin: 0; }
.stat-info p { color: #9ca3af; font-size: 13px; margin: 4px 0 0; text-transform: uppercase; letter-spacing: 1px; }

/* === Cards === */
.panel-card { background: #111827; border: 1px solid #1f2937; border-radius: 12px; overflow: hidden; margin-bottom: 30px; }
.card-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid #1f2937; }
.card-header h2 { color: #fff; font-size: 18px; margin: 0; }
.card-body { padding: 24px; }

.btn-small { padding: 8px 16px; background: rgba(12, 178, 219, 0.15); color: #0CB2DB; border: 1px solid rgba(12, 178, 219, 0.3); border-radius: 6px; text-decoration: none; font-size: 13px; transition: all 0.2s; }
.btn-small:hover { background: #0CB2DB; color: #fff; }

/* === Tables === */
.table-responsive { overflow-x: auto; }

.panel-table { width: 100%; border-collapse: collapse; }
.panel-table th { padding: 14px 16px; color: #9ca3af; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; text-align: left; font-weight: 600; border-bottom: 1px solid #1f2937; }
.panel-table td { padding: 14px 16px; font-size: 14px; border-bottom: 1px solid #111827; color: #d1d5db; }
.panel-table tbody tr:hover { background: #1a1f2e; }

.status-badge { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.status-badge.pending { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.status-badge.confirmed { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.status-badge.approved { background: rgba(6, 182, 212, 0.15); color: #67e8f9; }
.status-badge.details_submitted { background: rgba(139, 92, 246, 0.16); color: #c4b5fd; }
.status-badge.rejected { background: rgba(244, 63, 94, 0.15); color: #fda4af; }
.status-badge.expired { background: rgba(148, 163, 184, 0.14); color: #cbd5e1; }

.tour-location-editor{margin:24px 0;padding:20px;border:1px solid rgba(12,178,219,.2);border-radius:14px;background:rgba(12,178,219,.035)}
.tour-location-editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}
.tour-location-editor-head h3{margin:0 0 5px;color:#fff;font-size:16px}
.tour-location-editor-head h3 i{margin-right:7px;color:var(--panel-accent,#0cb2db)}
.tour-location-editor-head p{margin:0;color:#91a0aa;font-size:12px}
.tour-location-rows{display:grid;gap:10px}
.tour-location-row{display:grid;grid-template-columns:74px repeat(3,minmax(0,1fr)) auto;gap:10px;align-items:end;padding:12px;border:1px solid rgba(255,255,255,.09);border-radius:11px;background:#070707}
.tour-location-row .field{margin:0}
.tour-location-position{display:flex;flex-direction:column;align-items:center;justify-content:center;align-self:stretch;border-right:1px solid rgba(255,255,255,.09);color:#fff}
.tour-location-position span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#0cb2db;color:#001016;font-weight:900}
.tour-location-position small{margin-top:4px;color:#7f8d96;font-size:9px;text-transform:uppercase;letter-spacing:.08em}
.tour-location-actions{display:flex;gap:5px;padding-bottom:2px}
.tour-location-actions .btn-action:disabled{opacity:.28;cursor:not-allowed}
@media(max-width:900px){.tour-location-row{grid-template-columns:54px 1fr 1fr}.tour-location-row .field:nth-of-type(3){grid-column:2/4}.tour-location-actions{grid-column:2/4}.tour-location-editor-head{align-items:stretch;flex-direction:column}.tour-location-editor-head .btn-admin{align-self:flex-start}}
@media(max-width:560px){.tour-location-editor{padding:14px}.tour-location-row{grid-template-columns:44px 1fr}.tour-location-row .field,.tour-location-row .field:nth-of-type(3),.tour-location-actions{grid-column:2}.tour-location-position{grid-row:1/5}.tour-location-actions{flex-wrap:wrap}}
.status-badge.cancelled { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.status-badge.completed { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }

.empty-state { text-align: center; color: #6b7280; padding: 40px !important; font-style: italic; }

/* === Action buttons === */
.actions { white-space: nowrap; }
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.09);
    color: #f1f5f9;
    cursor: pointer;
    font-size: 13px;
    margin: 0 2px;
    transition: all 0.2s ease;
}
.btn-action:hover:not(:disabled) { transform: translateY(-1px); background: rgba(12, 178, 219, 0.25); border-color: var(--panel-accent, #0cb2db); color: #fff; }
.btn-action.location-up, .btn-action.location-down { background: rgba(12, 178, 219, 0.16); border-color: rgba(12, 178, 219, 0.35); color: #38bdf8; }
.btn-action.location-up:hover:not(:disabled), .btn-action.location-down:hover:not(:disabled) { background: rgba(12, 178, 219, 0.35); color: #fff; }
.tour-location-actions .btn-action:disabled { opacity: 0.25; background: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.06); color: #64748b; cursor: not-allowed; transform: none; }
.btn-action.confirm { background: rgba(34, 197, 94, 0.2); color: #22c55e; border-color: rgba(34, 197, 94, 0.35); }
.btn-action.cancel { background: rgba(239, 68, 68, 0.2); color: #ef4444; border-color: rgba(239, 68, 68, 0.35); }
.btn-action.complete { background: rgba(59, 130, 246, 0.2); color: #3b82f6; border-color: rgba(59, 130, 246, 0.35); }
.btn-action.view { background: rgba(14, 116, 144, 0.25); color: #38bdf8; border-color: rgba(56, 189, 248, 0.4); }
.btn-action.view:hover:not(:disabled) { background: #0284c7; color: #fff; border-color: #0284c7; }

/* === Language Switcher === */
.lang-switcher { display: flex; gap: 6px; align-items: center; }
.lang-btn {
    width: 32px; height: 22px;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s;
    font-size: 16px;
    background: none;
    line-height: 22px;
    text-align: center;
}
.lang-btn:hover { opacity: 0.8; }
.lang-btn.active { opacity: 1; border-color: #0CB2DB; }

/* === Responsive === */
@media (max-width: 768px) {
    .panel-sidebar { width: 70px; }
    .panel-sidebar .nav-item span, .sidebar-logo img, .badge-admin, .badge-client, .sidebar-footer span { display: none; }
    .panel-main { margin-left: 70px; padding: 20px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* === Admin workspace redesign === */
:root {
    --title-font: "Barlow Condensed", sans-serif;
    --text-font: "Inter", sans-serif;
    --panel-bg:#080c14; --panel-surface:#111827; --panel-raised:#171f2e; --panel-border:#263244; --panel-muted:#8b98aa; --panel-text:#edf2f7; --panel-accent:#0cb2db; --panel-green:#22c55e; --panel-yellow:#fbbf24; --panel-red:#ef4444;
}
.panel-body { background:radial-gradient(circle at 80% -20%, rgba(12,178,219,.10), transparent 34%), var(--panel-bg); color:var(--panel-text); font-family:var(--text-font); }
.panel-sidebar { width:248px; background:rgba(12,18,29,.98); border-color:var(--panel-border); transition:width 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1); }
.sidebar-logo { min-height:104px; padding:22px; display:flex; flex-direction:column; align-items:center; justify-content:center; position:relative; box-sizing:border-box; border-bottom:1px solid var(--panel-border); }
.sidebar-logo .logo-full { display:block; width:142px; height:auto; transition:opacity 0.2s ease; }
.sidebar-logo .logo-compact { display:none; width:34px; height:34px; object-fit:contain; transition:opacity 0.2s ease; }
.sidebar-logo img:not(.logo-full):not(.logo-compact) { width:142px; height:auto; }
.sidebar-close { display:none; position:absolute; right:14px; top:14px; border:0; background:transparent; color:#fff; font-size:18px; }
.sidebar-nav { padding:18px 12px; }
.sidebar-nav .nav-item { min-height:44px; font-weight:600; font-family:var(--text-font); }
.sidebar-footer form { margin:0; }
.sidebar-footer button.nav-item { width:100%; border:0; background:transparent; text-align:left; cursor:pointer; }
.sidebar-collapse-btn { display:flex; align-items:center; gap:10px; width:100%; padding:10px 14px; margin-bottom:6px; background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08); border-radius:8px; color:var(--panel-muted); font-size:13px; font-weight:600; cursor:pointer; transition:all 0.2s ease; }
.sidebar-collapse-btn:hover { background:rgba(12,178,219,0.12); border-color:var(--panel-accent); color:#fff; }
.sidebar-collapse-btn i { width:18px; text-align:center; flex-shrink:0; transition:transform 0.25s ease; }
.panel-main { margin-left:248px; padding:0 32px 40px; min-width:0; transition:margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1); }
.panel-topbar { min-height:104px; margin:0 -32px 28px -32px; padding:0 32px; display:flex; align-items:center; justify-content:space-between; gap:16px; border-bottom:1px solid var(--panel-border); position:relative; box-sizing:border-box; }
.panel-header { margin:0; flex:1 1 0; min-width:0; }
.panel-header h1 { font-family:var(--title-font); letter-spacing:.02em; font-size:32px; font-weight:800; text-transform:uppercase; }
.panel-header p { margin:5px 0 0; }
.panel-topbar-center { flex:0 1 auto; display:flex; align-items:center; justify-content:center; }
.cmd-palette-trigger-btn { display:inline-flex; align-items:center; gap:10px; background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.12); border-radius:12px; padding:8px 16px; color:#94a3b8; font-size:13.5px; font-weight:500; cursor:pointer; transition:all .2s cubic-bezier(0.4,0,0.2,1); min-width:260px; justify-content:space-between; box-shadow:0 2px 8px rgba(0,0,0,.25); }
.cmd-palette-trigger-btn:hover { background:rgba(12,178,219,.08); border-color:rgba(12,178,219,.45); color:#f8fafc; box-shadow:0 0 18px rgba(12,178,219,.25); transform:translateY(-1px); }
.cmd-palette-trigger-btn i { color:#0cb2db; font-size:14px; }
.cmd-palette-trigger-btn kbd { background:rgba(0,0,0,.35); border:1px solid rgba(255,255,255,.15); border-radius:6px; padding:3px 7px; font-size:10.5px; color:#94a3b8; font-weight:700; font-family:inherit; }
.panel-topbar-right { flex:1 1 0; display:flex; align-items:center; justify-content:flex-end; gap:14px; }
.sidebar-toggle { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:10px; border:1px solid var(--panel-border); color:#fff; background:var(--panel-surface); cursor:pointer; transition:all 0.2s ease; flex-shrink:0; }
.sidebar-toggle:hover { background:rgba(12,178,219,0.12); border-color:var(--panel-accent); color:var(--panel-accent); transform:scale(1.04); }
.admin-user { display:flex; align-items:center; gap:10px; }
.admin-user small,.admin-user strong { display:block; line-height:1.2; }
.admin-user small { color:var(--panel-muted); font-size:11px; margin-top:3px; }
.admin-avatar { width:40px; height:40px; border-radius:11px; display:grid; place-items:center; color:#06131a; font-weight:900; background:linear-gradient(135deg,#67e8f9,var(--panel-accent)); }
.admin-languages { display:flex; gap:3px; padding:4px; border:1px solid var(--panel-border); border-radius:999px; background:#0c1320; }
.admin-languages a { padding:4px 9px; border-radius:999px; color:var(--panel-muted); font-size:11px; font-weight:800; text-decoration:none; }
.admin-languages a.active { background:var(--panel-accent); color:#041118; }
.admin-theme-toggle { display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; padding:0; border:1px solid var(--panel-border); border-radius:9px; background:var(--panel-surface); color:var(--panel-accent); cursor:pointer; transition:all 0.2s ease; }
.admin-theme-toggle:hover { transform:scale(1.06); border-color:var(--panel-accent); box-shadow:0 0 12px rgba(12,178,219,.25); }
.admin-theme-toggle .sun-icon { display:none; color:#f59e0b; font-size:16px; }
.admin-theme-toggle .moon-icon { display:inline-block; color:#38bdf8; font-size:16px; }
[data-theme="light"] .admin-theme-toggle .sun-icon { display:inline-block; }
[data-theme="light"] .admin-theme-toggle .moon-icon { display:none; }

/* === Desktop Collapsible Sidebar System === */
@media (min-width: 769px) {
    html.sidebar-collapsed .panel-sidebar,
    body.sidebar-collapsed .panel-sidebar {
        width: 72px !important;
    }
    html.sidebar-collapsed .panel-main,
    body.sidebar-collapsed .panel-main {
        margin-left: 72px !important;
    }
    html.sidebar-collapsed .sidebar-logo,
    body.sidebar-collapsed .sidebar-logo {
        padding: 18px 8px;
        min-height: 76px;
    }
    html.sidebar-collapsed .sidebar-logo .logo-full,
    body.sidebar-collapsed .sidebar-logo .logo-full {
        display: none !important;
    }
    html.sidebar-collapsed .sidebar-logo .logo-compact,
    body.sidebar-collapsed .sidebar-logo .logo-compact {
        display: block !important;
    }
    html.sidebar-collapsed .sidebar-logo .badge-admin,
    body.sidebar-collapsed .sidebar-logo .badge-admin,
    html.sidebar-collapsed .sidebar-logo .badge-client,
    body.sidebar-collapsed .sidebar-logo .badge-client {
        display: none !important;
    }
    html.sidebar-collapsed .sidebar-nav,
    body.sidebar-collapsed .sidebar-nav {
        padding: 14px 6px;
    }
    html.sidebar-collapsed .nav-item,
    body.sidebar-collapsed .nav-item {
        justify-content: center;
        padding: 11px 0;
        margin: 4px 0;
        position: relative;
    }
    html.sidebar-collapsed .nav-item i,
    body.sidebar-collapsed .nav-item i {
        font-size: 16px;
        width: auto;
        margin: 0;
    }
    html.sidebar-collapsed .nav-item > span,
    body.sidebar-collapsed .nav-item > span {
        display: none !important;
    }
    html.sidebar-collapsed .nav-item b.badge-count,
    body.sidebar-collapsed .nav-item b.badge-count {
        position: absolute;
        top: 3px;
        right: 6px;
        margin: 0;
        padding: 1px 5px;
        font-size: 9px;
        min-width: 16px;
        height: 16px;
        line-height: 14px;
        border-radius: 8px;
    }
    html.sidebar-collapsed .client-nav-label,
    body.sidebar-collapsed .client-nav-label {
        height: 1px;
        margin: 10px 8px;
        background: rgba(255, 255, 255, 0.08);
        color: transparent;
        font-size: 0;
        line-height: 0;
        overflow: hidden;
        display: block;
    }
    html.sidebar-collapsed .sidebar-footer,
    body.sidebar-collapsed .sidebar-footer {
        padding: 10px 6px;
    }
    html.sidebar-collapsed .sidebar-footer .nav-item,
    body.sidebar-collapsed .sidebar-footer .nav-item,
    html.sidebar-collapsed .sidebar-footer .sidebar-collapse-btn,
    body.sidebar-collapsed .sidebar-footer .sidebar-collapse-btn {
        justify-content: center;
        padding: 11px 0;
    }
    html.sidebar-collapsed .sidebar-footer .nav-item span,
    body.sidebar-collapsed .sidebar-footer .nav-item span,
    html.sidebar-collapsed .sidebar-footer .sidebar-collapse-btn span,
    body.sidebar-collapsed .sidebar-footer .sidebar-collapse-btn span {
        display: none !important;
    }
    html.sidebar-collapsed .sidebar-collapse-btn i,
    body.sidebar-collapsed .sidebar-collapse-btn i {
        transform: rotate(180deg);
    }
}
@media (max-width: 768px) {
    .sidebar-collapse-btn {
        display: none !important;
    }
    .sidebar-logo .logo-full {
        display: block !important;
    }
    .sidebar-logo .logo-compact {
        display: none !important;
    }
}
:root[data-theme="light"] .sidebar-collapse-btn {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #475569;
}
:root[data-theme="light"] .sidebar-collapse-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}
:root[data-theme="light"] .sidebar-collapsed .client-nav-label {
    background: #e2e8f0;
}
[data-theme="light"] .cmd-palette-trigger-btn { background:#f1f5f9; border-color:#cbd5e1; color:#475569; box-shadow:0 1px 3px rgba(0,0,0,.08); }
[data-theme="light"] .cmd-palette-trigger-btn:hover { background:#e2e8f0; border-color:#0cb2db; color:#0f172a; }
[data-theme="light"] .cmd-palette-trigger-btn kbd { background:#e2e8f0; border-color:#cbd5e1; color:#64748b; }
.admin-operations { position:relative; flex:0 0 auto; }
@keyframes bellRing {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(14deg); }
    30% { transform: rotate(-12deg); }
    45% { transform: rotate(10deg); }
    60% { transform: rotate(-8deg); }
    75% { transform: rotate(4deg); }
    85% { transform: rotate(-2deg); }
}
.admin-operation-button { position:relative; display:grid; place-items:center; width:40px; height:40px; padding:0; border:1px solid var(--panel-border); border-radius:11px; background:var(--panel-surface); color:#dbe7f3; cursor:pointer; }
.admin-operation-button.ringing i { animation: bellRing 0.8s ease-in-out; color: var(--panel-accent); }
.admin-operation-button:hover,.admin-operation-button[aria-expanded="true"] { border-color:var(--panel-accent); color:#67e8f9; }
.admin-operation-button b { position:absolute; top:-5px; right:-5px; display:inline-flex; align-items:center; justify-content:center; min-width:18px; height:18px; padding:0 4px; border:2px solid #000; border-radius:999px; background:#ef4444; color:#fff; font-size:10px; font-weight:800; line-height:1; box-shadow:0 0 10px rgba(239,68,68,0.6); pointer-events:none; }
.admin-operation-menu { position:absolute; top:calc(100% + 10px); right:0; z-index:80; width:min(420px,calc(100vw - 24px)); overflow:hidden; border:1px solid var(--panel-border); border-radius:15px; background:#050505; box-shadow:0 24px 70px rgba(0,0,0,.72); }
.admin-operation-menu > header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 16px; border-bottom:1px solid var(--panel-border); background:#090909; }
.admin-op-head-title strong { display:block; color:#fff; font-size:14px; font-weight:700; }
.admin-op-head-title small { display:block; margin-top:3px; color:var(--panel-muted); font-size:10px; }
.admin-op-head-title small i { margin-right:4px; color:#22c55e; font-size:7px; }
.admin-op-head-actions { display:flex; align-items:center; gap:6px; }
.btn-op-action { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:8px; border:1px solid var(--panel-border); background:rgba(255,255,255,0.04); color:var(--panel-muted); cursor:pointer; font-size:12px; transition:all .2s ease; }
.btn-op-action:hover { background:rgba(12,178,219,0.15); color:#67e8f9; border-color:var(--panel-accent); }
.btn-op-action.danger:hover { background:rgba(239,68,68,0.15); color:#f87171; border-color:#ef4444; }
.admin-operation-filters { display:flex; gap:8px; padding:8px 16px; background:#080808; border-bottom:1px solid var(--panel-border); }
.admin-op-filter { padding:4px 10px; border-radius:6px; border:1px solid transparent; background:none; color:var(--panel-muted); font-size:11px; font-weight:700; cursor:pointer; transition:all .15s ease; }
.admin-op-filter.active { background:rgba(12,178,219,0.14); color:#67e8f9; border-color:rgba(12,178,219,0.35); }
.admin-op-filter:hover:not(.active) { color:#fff; background:rgba(255,255,255,0.04); }
.admin-operation-list { max-height:min(420px,56vh); overflow:auto; overscroll-behavior:contain; }
.admin-operation-empty { margin:0; padding:28px 18px; color:var(--panel-muted); text-align:center; font-size:12px; }
.admin-operation-item { display:grid; grid-template-columns:36px minmax(0,1fr) auto auto; gap:10px; align-items:center; padding:12px 16px; border-bottom:1px solid #1c1c1c; color:#dfe7ef; text-decoration:none; transition:background .18s ease; position:relative; }
.admin-operation-item:hover { background:#0d0d0d; color:#fff; text-decoration:none; }
.admin-operation-item.unread { background:rgba(12,178,219,0.06); }
.admin-operation-item.unread::before { content:''; position:absolute; left:0; top:0; bottom:0; width:3px; background:#0cb2db; }
.admin-operation-icon { display:grid; place-items:center; width:36px; height:36px; border-radius:10px; background:rgba(12,178,219,.12); color:#32d4f4; flex-shrink:0; }
.admin-operation-item.booking_requested .admin-operation-icon { background:rgba(12,178,219,.18); color:#38bdf8; }
.admin-operation-item.client_registered .admin-operation-icon { background:rgba(168,85,247,.16); color:#c084fc; }
.admin-operation-item.payment_submitted .admin-operation-icon { background:rgba(34,197,94,.16); color:#4ade80; }
.admin-operation-item.privacy_requested .admin-operation-icon { background:rgba(234,179,8,.16); color:#facc15; }
.admin-operation-item.started .admin-operation-icon { background:rgba(251,191,36,.11); color:#fbbf24; }
.admin-operation-item.completed .admin-operation-icon { background:rgba(34,197,94,.12); color:#86efac; }
.admin-operation-item.no_show .admin-operation-icon { background:rgba(239,68,68,.12); color:#fca5a5; }
.admin-operation-copy { min-width:0; }
.admin-operation-copy strong,.admin-operation-copy span,.admin-operation-copy small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.admin-operation-copy strong { color:#f4f7fb; font-size:12px; font-weight:700; }
.admin-operation-copy span { margin-top:2px; color:#aab4c0; font-size:11px; }
.admin-operation-copy small { margin-top:3px; color:#798593; font-size:10px; }
.admin-operation-meta { display:flex; flex-direction:column; align-items:flex-end; gap:4px; }
.admin-operation-time { color:#77828f; font-size:9px; white-space:nowrap; }
.admin-op-unread-dot { width:7px; height:7px; border-radius:50%; background:#0cb2db; box-shadow:0 0 6px #0cb2db; }
.admin-op-item-dismiss { display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; border-radius:6px; border:none; background:none; color:#556577; cursor:pointer; opacity:0; transition:opacity .15s ease, color .15s ease; }
.admin-operation-item:hover .admin-op-item-dismiss { opacity:1; }
.admin-op-item-dismiss:hover { color:#ef4444; background:rgba(239,68,68,0.1); }
.admin-operation-footer-wrap { display:flex; align-items:center; justify-content:space-between; padding:11px 16px; border-top:1px solid var(--panel-border); background:#090909; font-size:11px; }
.admin-op-limit-note { color:var(--panel-muted); font-size:10px; font-weight:600; }
.admin-operation-footer-link { color:#67e8f9; font-size:11px; font-weight:800; text-decoration:none; text-transform:uppercase; letter-spacing:.04em; display:inline-flex; align-items:center; gap:5px; }
.admin-operation-footer-link:hover { color:#fff; text-decoration:none; }
.toast-stack { position:fixed; right:20px; bottom:20px; z-index:1400; display:grid; width:min(390px,calc(100vw - 30px)); gap:9px; pointer-events:none; }
.toast-stack .alert { margin:0; box-shadow:0 18px 50px rgba(0,0,0,.55); pointer-events:auto; }
.admin-live-toast { display:flex; align-items:flex-start; gap:10px; color:#dcfce7; text-decoration:none; animation:adminToastIn .24s ease-out; }
.admin-live-toast:hover { color:#fff; text-decoration:none; }
.admin-live-toast i { margin-top:2px; }
@keyframes adminToastIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
.stats-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin-bottom:24px; }
.stat-card { min-width:0; border-color:var(--panel-border); padding:20px; background:linear-gradient(145deg,rgba(23,31,46,.98),rgba(13,20,32,.98)); }
.stat-icon { flex:0 0 50px; }
.stat-info { min-width:0; flex:1 1 0; overflow:hidden; }
.stat-info h3 { font-size:24px; }
.stat-info p { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.panel-card { border-color:var(--panel-border); background:rgba(17,24,39,.95); box-shadow:0 18px 45px rgba(0,0,0,.12); }
.card-header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; border-bottom:1px solid var(--panel-border); gap:16px; padding:18px 22px; }
.card-header-copy { flex:1 1 auto; min-width:200px; }
.card-header-copy h2 { margin:0; font-size:18px; font-weight:700; color:#f1f5f9; display:flex; align-items:center; }
.card-header-copy p { margin:5px 0 0; color:var(--panel-muted); font-size:13px; }
.card-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-left:auto; }
.page-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-bottom:20px; }
.filter-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.admin-grid { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(300px,.75fr); gap:20px; align-items:start; }
.admin-grid.equal { grid-template-columns:repeat(2,minmax(0,1fr)); }
.btn-admin { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:40px; padding:9px 15px; border:1px solid transparent; border-radius:9px; font-family:var(--title-font); font-weight:800; font-size:14px; letter-spacing:.04em; text-transform:uppercase; text-decoration:none; cursor:pointer; transition:.2s ease; }
.btn-admin:hover { transform:translateY(-1px); text-decoration:none; }
.btn-admin.primary { background:var(--panel-accent); color:#ffffff !important; }
.btn-admin.secondary { background:var(--panel-raised); border-color:var(--panel-border); color:#dce5ef; }
.btn-admin.danger { background:rgba(239,68,68,.12); border-color:rgba(239,68,68,.35); color:#fca5a5; }
.account-security-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.account-security-card { display:flex; flex-direction:column; gap:14px; min-width:0; padding:22px; border:1px solid #253036; border-radius:18px; background:#050708; }
.account-security-card h3 { display:flex; align-items:center; gap:10px; margin:0; color:#fff; font-size:19px; }
.account-security-card h3 i { color:#11b5db; }
.account-security-card > p { margin:0; color:#9aa8ae; line-height:1.65; }
.account-security-card .btn-admin { align-self:flex-start; margin-top:auto; }
.account-security-card.danger-zone { border-color:rgba(239,68,68,.35); background:linear-gradient(145deg,rgba(70,10,10,.18),#050708 52%); }
.account-security-card.danger-zone h3 i { color:#f87171; }
@media (max-width:860px) { .account-security-grid { grid-template-columns:1fr; } }
.btn-admin.ghost { background:transparent; border-color:var(--panel-border); color:#bac5d3; }
.btn-admin.small { min-height:34px; padding:6px 10px; font-size:12px; }
.filter-panel { padding:18px; margin-bottom:20px; }
.filter-grid { display:grid; grid-template-columns:1.3fr repeat(4,minmax(130px,.75fr)); gap:12px; align-items:end; }
.field { min-width:0; }
.field > label:not(.toggle):not(.day-pill-check):not(.legal-checkbox) { display:block; color:#aeb9c8; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; margin-bottom:6px; }
.field input,.field select,.field textarea,.admin-form input,.admin-form select,.admin-form textarea,.panel-card input:not([type="checkbox"]):not([type="radio"]),.panel-card select,.panel-card textarea { width:100%; box-sizing:border-box; color:#f8fafc; background:#0c1320; border:1px solid #344154; border-radius:9px; min-height:42px; padding:9px 11px; outline:0; }
.field input[type="checkbox"],.field input[type="radio"],.admin-form input[type="checkbox"],.admin-form input[type="radio"] { width:18px; height:18px; min-height:18px; padding:0; border-radius:4px; accent-color:var(--panel-accent); }
.field label.toggle, label.toggle { display:inline-flex !important; align-items:center !important; gap:10px !important; min-height:28px !important; margin:0 !important; cursor:pointer !important; text-transform:none !important; font-size:13px !important; font-weight:600 !important; color:#dbe4ef !important; user-select:none !important; }
.field label.toggle input[type="checkbox"], label.toggle input[type="checkbox"] { margin:0 !important; width:18px !important; height:18px !important; min-height:18px !important; accent-color:var(--panel-accent) !important; cursor:pointer !important; flex-shrink:0 !important; }
.field textarea,.admin-form textarea { min-height:94px; resize:vertical; }
.field input:focus,.field select:focus,.field textarea:focus,.admin-form input:focus,.admin-form select:focus,.admin-form textarea:focus { border-color:var(--panel-accent); box-shadow:0 0 0 3px rgba(12,178,219,.12); }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.form-grid.cols-3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
.field.full { grid-column:1/-1; }
.toggle-row { display:flex; flex-wrap:wrap; gap:10px 18px; padding:8px 0; align-items:center; }
.toggle-row label { display:inline-flex !important; align-items:center !important; gap:8px !important; color:#d5dce6 !important; font-size:13px !important; font-weight:600 !important; margin:0 !important; cursor:pointer !important; text-transform:none !important; }
.toggle-row input { margin:0 !important; accent-color:var(--panel-accent); flex-shrink:0; }

.legal-checkbox, label.legal-checkbox { display:flex !important; align-items:flex-start !important; gap:12px !important; margin:0 !important; cursor:pointer !important; text-transform:none !important; font-size:13px !important; color:#cbd5e1 !important; user-select:none !important; }
.legal-checkbox input[type="checkbox"], label.legal-checkbox input[type="checkbox"] { margin:3px 0 0 0 !important; width:18px !important; height:18px !important; min-height:18px !important; accent-color:var(--panel-accent) !important; cursor:pointer !important; flex-shrink:0 !important; }
.legal-checkbox span { flex:1; }

/* Day Pills Checkboxes (Días Habituales de Operación y Programación) */
.days-operating-card { margin-top:16px; padding:16px 18px; background:rgba(12,178,219,0.04); border:1px solid rgba(12,178,219,0.18); border-radius:12px; }
.days-operating-header { display:flex; align-items:center; gap:9px; margin-bottom:12px; }
.days-operating-header i { color:var(--panel-accent,#0cb2db); font-size:16px; }
.days-operating-header strong { color:#fff; font-size:13.5px; font-weight:700; }
.days-operating-hint { color:var(--panel-muted,#94a3b8); display:block; margin-top:6px; font-size:11.5px; }

.days-pills-row { display:flex !important; flex-direction:row !important; flex-wrap:wrap !important; gap:8px !important; align-items:center !important; margin:8px 0 10px !important; }
.day-pill-check, label.day-pill-check { display:inline-flex !important; flex-direction:row !important; align-items:center !important; justify-content:center !important; gap:7px !important; padding:7px 13px !important; margin:0 !important; background:rgba(255,255,255,0.04) !important; border:1px solid var(--panel-border, #2d3748) !important; border-radius:9px !important; color:#cbd5e1 !important; font-size:12.5px !important; font-weight:700 !important; text-transform:none !important; letter-spacing:.02em !important; cursor:pointer !important; transition:all .18s ease !important; user-select:none !important; line-height:1 !important; white-space:nowrap !important; box-sizing:border-box !important; }
.day-pill-check:hover, label.day-pill-check:hover { background:rgba(12,178,219,0.1) !important; border-color:rgba(12,178,219,0.4) !important; color:#fff !important; }
.day-pill-check:has(input:checked), label.day-pill-check:has(input:checked) { background:rgba(12,178,219,0.18) !important; border-color:var(--panel-accent,#0cb2db) !important; color:#38bdf8 !important; box-shadow:0 0 10px rgba(12,178,219,0.25) !important; }
.day-pill-check input[type="checkbox"], label.day-pill-check input[type="checkbox"] { margin:0 !important; padding:0 !important; width:16px !important; height:16px !important; min-height:16px !important; accent-color:var(--panel-accent,#0cb2db) !important; cursor:pointer !important; flex-shrink:0 !important; vertical-align:middle !important; display:inline-block !important; }
.day-pill-check span, label.day-pill-check span { margin:0 !important; padding:0 !important; line-height:1 !important; vertical-align:middle !important; display:inline-block !important; }
.panel-table { min-width:760px; }
.panel-table th { background:rgba(8,13,22,.62); border-color:var(--panel-border); position:sticky; top:0; z-index:1; }
.panel-table td { border-color:rgba(38,50,68,.65); vertical-align:middle; }
.panel-table tbody tr:hover { background:rgba(24,35,51,.86); }
.cell-primary { color:#fff; font-weight:700; }
.cell-secondary { color:var(--panel-muted); font-size:12px; margin-top:3px; }
.table-link { color:#e9f7fb; text-decoration:none; font-weight:700; }
.table-link:hover { color:var(--panel-accent); }
.status-badge { display:inline-flex; align-items:center; padding:5px 9px; letter-spacing:.04em; font-size:10px; }
.status-badge.open,.status-badge.active { background:rgba(34,197,94,.14); color:#86efac; }
.status-badge.closed,.status-badge.inactive { background:rgba(148,163,184,.14); color:#cbd5e1; }
.status-badge.verified { background:rgba(34,197,94,.14); color:#86efac; }
.status-badge.rejected { background:rgba(239,68,68,.14); color:#fca5a5; }
.capacity { min-width:120px; }
.capacity-head { display:flex; justify-content:space-between; gap:10px; font-size:12px; margin-bottom:6px; }
.capacity-track { height:6px; overflow:hidden; background:#293446; border-radius:99px; }
.capacity-fill { height:100%; background:var(--panel-green); border-radius:inherit; }
.capacity-fill.warning { background:var(--panel-yellow); }
.capacity-fill.full { background:var(--panel-red); }
/* === Tour Modal Multi-Step Wizard === */
.tour-wizard-steps { display:flex; justify-content:center; align-items:center; gap:12px; margin-bottom:20px; border-bottom:1px solid rgba(255,255,255,0.1); padding-bottom:14px; overflow-x:auto; }
.wizard-step-tab { display:inline-flex; align-items:center; gap:8px; background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.1); border-radius:99px; padding:7px 16px; color:#94a3b8; font-size:13px; font-weight:600; cursor:pointer; white-space:nowrap; transition:all 0.2s ease; user-select:none; }
.wizard-step-tab:hover { background:rgba(12,178,219,0.12); color:#e2e8f0; border-color:rgba(12,178,219,0.3); }
.wizard-step-tab.active { background:var(--panel-accent,#0cb2db); color:#001016; border-color:var(--panel-accent,#0cb2db); font-weight:700; }
.wizard-step-tab.completed { background:rgba(34,197,94,0.14); color:#86efac; border-color:rgba(34,197,94,0.3); }
.wizard-step-tab .step-num { display:grid; place-items:center; width:20px; height:20px; border-radius:50%; background:rgba(255,255,255,0.15); font-size:11px; font-weight:800; }
.wizard-step-tab.active .step-num { background:#001016; color:var(--panel-accent,#0cb2db); }
.wizard-step-tab.completed .step-num { background:rgba(34,197,94,0.25); color:#86efac; }
.wizard-context-banner { display:flex; align-items:flex-start; gap:14px; background:rgba(12,178,219,0.06); border:1px solid rgba(12,178,219,0.2); border-radius:10px; padding:14px 16px; margin-bottom:20px; color:#e2e8f0; }
.wizard-context-banner i { color:var(--panel-accent,#0cb2db); font-size:20px; margin-top:2px; }
.wizard-context-banner strong { display:block; color:#fff; font-size:14px; margin-bottom:3px; }
.wizard-context-banner p { margin:0; color:#94a3b8; font-size:12px; line-height:1.4; }
.wizard-draft-alert { display:flex; align-items:center; justify-content:space-between; gap:16px; background:rgba(12,178,219,0.1); border:1px solid rgba(12,178,219,0.3); border-radius:10px; padding:12px 16px; margin-bottom:18px; color:#e2e8f0; flex-wrap:wrap; }
.wizard-draft-alert p { margin:2px 0 0 0; color:#94a3b8; font-size:12px; }
.wizard-draft-alert strong { color:#fff; font-size:13px; }
.wizard-validation-alert { display:flex; align-items:center; justify-content:space-between; gap:16px; border-radius:10px; padding:12px 16px; margin-bottom:18px; flex-wrap:wrap; }
.wizard-validation-alert p { margin:2px 0 0 0; font-size:12px; }
.wizard-validation-alert strong { font-size:13px; }
.tour-wizard-panel { display:none; }
.tour-wizard-panel.active { display:block; }
.admin-form .is-invalid, input.is-invalid, select.is-invalid, textarea.is-invalid { border-color:#ef4444 !important; box-shadow:0 0 0 2px rgba(239,68,68,0.25) !important; }

.summary-list { list-style:none; margin:0; padding:0; }
.summary-list li { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:13px 0; border-bottom:1px solid var(--panel-border); }
.summary-list li:last-child { border:0; }
.summary-list small { color:var(--panel-muted); display:block; margin-top:2px; }
.quick-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.quick-action { min-height:86px; display:flex; flex-direction:column; justify-content:center; align-items:flex-start; gap:9px; padding:15px; border:1px solid var(--panel-border); border-radius:11px; background:#0d1522; color:#dce6f2; text-decoration:none; }
.quick-action i { color:var(--panel-accent); font-size:18px; }
.quick-action:hover { border-color:var(--panel-accent); color:#fff; }
.calendar-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:18px 20px; border-bottom:1px solid var(--panel-border); }
.calendar-toolbar h2 { font-size:18px; margin:0; color:#fff; text-transform:capitalize; }
.calendar-nav { display:flex; gap:7px; }
.calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); }
.calendar-weekday { padding:10px; color:#8491a3; text-align:center; text-transform:uppercase; font-size:10px; font-weight:800; border-bottom:1px solid var(--panel-border); }
.calendar-day { min-height:112px; border-right:1px solid var(--panel-border); border-bottom:1px solid var(--panel-border); padding:8px; background:rgba(9,15,25,.4); }
.calendar-day:nth-child(7n) { border-right:0; }
.calendar-day.outside { opacity:.35; }
.calendar-day.today { box-shadow:inset 0 0 0 1px var(--panel-accent); }
.calendar-number { display:flex; justify-content:space-between; font-size:12px; color:#b7c1cd; margin-bottom:6px; }
.calendar-event { display:block; margin:4px 0; padding:5px 6px; border-left:3px solid var(--panel-accent); border-radius:4px; background:rgba(12,178,219,.10); color:#dff8ff; font-size:10px; line-height:1.25; text-decoration:none; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.calendar-event.closed,.calendar-event.cancelled { border-color:var(--panel-red); background:rgba(239,68,68,.1); color:#fecaca; }
.admin-modal { display:none; position:fixed; inset:0; z-index:1000; background:rgba(2,6,12,.78); padding:24px; align-items:center; justify-content:center; backdrop-filter:blur(7px); overscroll-behavior:contain; }
.admin-modal.is-open { display:flex; }
.modal-open { overflow:hidden; }
.admin-modal-dialog { display:flex; flex-direction:column; width:min(700px,100%); max-height:calc(100dvh - 48px); overflow:hidden; border:1px solid #303b4c; border-radius:18px; background:#111927; box-shadow:0 32px 100px rgba(0,0,0,.72); }
.admin-modal-dialog.wide { width:min(1040px,96vw); }
.admin-modal-dialog.extra-wide { width:min(1560px,96vw); max-height:calc(100dvh - 32px); }
@keyframes modalShake {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.015); }
    50% { transform: scale(0.995); }
    75% { transform: scale(1.008); }
}
.modal-shake { animation: modalShake 0.28s ease-in-out; }
.admin-modal-dialog > form,.admin-modal-dialog > .admin-form { display:flex; flex:1 1 auto; min-height:0; max-height:inherit; flex-direction:column; }
.admin-modal-header,.admin-modal-footer { position:relative; z-index:2; flex:0 0 auto; padding:18px 22px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid var(--panel-border); background:rgba(7,10,15,.97); }
.admin-modal-header::before { position:absolute; content:""; left:22px; bottom:-1px; width:56px; height:2px; background:var(--panel-accent); border-radius:99px; }
.admin-modal-header h2 { margin:0; color:#fff; font-size:19px; line-height:1.25; letter-spacing:-.01em; }
.admin-modal-footer { border-top:1px solid var(--panel-border); border-bottom:0; justify-content:flex-end; background:rgba(4,6,10,.98); }
.admin-modal-body { flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:22px; scrollbar-color:#344154 #080b10; scrollbar-width:thin; }
.modal-close { flex:0 0 38px; width:38px; height:38px; display:grid; place-items:center; border:1px solid #303a49; border-radius:10px; background:#202a3a; color:#cdd6e1; cursor:pointer; transition:.2s ease; }
.modal-close:hover,.modal-close:focus-visible { border-color:var(--panel-accent) !important; color:#fff; box-shadow:0 0 0 3px rgba(12,178,219,.12); outline:0; }
.modal-validation-summary { display:flex; align-items:flex-start; gap:10px; margin:0 0 18px; padding:12px 14px; border:1px solid rgba(239,68,68,.42); border-radius:10px; background:rgba(127,29,29,.18); color:#fecaca; font-size:12px; line-height:1.45; }
.modal-validation-summary[hidden] { display:none; }
.modal-validation-summary i { margin-top:2px; color:#f87171; }
.field > label[data-required="true"]::after { content:" *"; color:#fb7185; }
.field input.is-invalid,.field select.is-invalid,.field textarea.is-invalid,.admin-form input.is-invalid,.admin-form select.is-invalid,.admin-form textarea.is-invalid { border-color:#ef4444 !important; box-shadow:0 0 0 3px rgba(239,68,68,.12) !important; }
.admin-modal .field input[readonly] { border-style:dashed; color:#aeb8c5 !important; background:#090d13 !important; cursor:default; }
.admin-modal .field input[type="date"],.admin-modal .field input[type="time"] { color-scheme:dark; }
.admin-modal .field select { padding-right:38px; }
.admin-modal .field input[type="file"] { min-height:48px; padding:7px; }
.admin-modal .field input[type="file"]::file-selector-button { min-height:32px; margin-right:10px; padding:6px 11px; border:1px solid #344154; border-radius:7px; background:#121b28; color:#dce7f1; cursor:pointer; }
.detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 24px; }
.detail-item { min-width:0; padding:12px 0; border-bottom:1px solid var(--panel-border); color:#dbe3ec; overflow-wrap:anywhere; }
.detail-item span { color:var(--panel-muted); display:block; font-size:11px; text-transform:uppercase; margin-bottom:4px; }
.detail-item.full { grid-column:1/-1; }
.modal-field-spaced { margin-top:14px; }
.modal-section-heading { display:flex; align-items:center; gap:8px; margin:22px 0 12px; padding-top:18px; border-top:1px solid var(--panel-border); color:#fff; font-size:14px; text-transform:uppercase; letter-spacing:.055em; }
.modal-section-heading i { color:var(--panel-accent); }
.lang-tabs { display:flex; gap:5px; margin:8px 0 0; }
.lang-tab { border:1px solid var(--panel-border); border-radius:8px 8px 0 0; background:#0d1420; color:#8996a8; padding:8px 15px; cursor:pointer; }
.lang-tab.active { color:var(--panel-accent); border-bottom-color:#17202f; background:#17202f; }
.lang-panel { display:none; padding:16px; border:1px solid var(--panel-border); border-radius:0 10px 10px 10px; }
.lang-panel.active { display:block; }
.muted { color:var(--panel-muted); }
.nowrap { white-space:nowrap; }
.mobile-only { display:none; }

/* Administrator access management */
.admin-account-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
.administrators-table { min-width:820px; }
.administrator-identity { display:flex; align-items:center; gap:11px; min-width:230px; }
.administrator-identity .admin-avatar { flex:0 0 38px; width:38px; height:38px; border-radius:10px; }
.current-admin-badge { display:inline-flex; margin-left:6px; padding:2px 6px; border-radius:99px; background:rgba(12,178,219,.14); color:#67e8f9; font-size:9px; font-weight:800; text-transform:uppercase; vertical-align:middle; }
.language-code { display:inline-grid; place-items:center; min-width:34px; height:27px; padding:0 7px; border:1px solid var(--panel-border); border-radius:7px; background:#0c1320; color:#dbe7f3; font-size:10px; font-weight:800; letter-spacing:.08em; }
.modal-hint { margin:2px 0 0; color:var(--panel-muted); font-size:12px; }
.create-password-field[hidden] { display:none !important; }

/* Client records, policies and protected documents */
.privacy-notice { display:flex; gap:15px; align-items:flex-start; margin:0 0 20px; padding:17px 19px; border:1px solid rgba(251,191,36,.3); border-radius:12px; background:rgba(251,191,36,.08); color:#f8e8b4; }
.privacy-notice > i { margin-top:3px; color:#fbbf24; font-size:20px; }
.privacy-notice strong { display:block; color:#fff3c4; }
.privacy-notice p { margin:4px 0 0; color:#d8cda9; font-size:13px; line-height:1.55; }
.privacy-notice.compact { margin:0 0 18px; }
.policy-admin-list { display:grid; gap:20px; }
.policy-editor { overflow:visible; }
.policy-editor .admin-modal-footer { background:rgba(8,13,22,.35); border-radius:0 0 12px 12px; }
.policy-meta { margin-bottom:18px; }
.client-filter-grid { grid-template-columns:minmax(260px,1.5fr) minmax(150px,.6fr) minmax(170px,.7fr) auto; }
.clients-table { min-width:980px; }
.client-detail { margin-top:24px; scroll-margin-top:16px; }
.section-title { margin:0 0 12px; color:#fff; font-size:15px; text-transform:uppercase; letter-spacing:.06em; }
.document-actions { display:flex; flex-wrap:wrap; gap:6px; }
.documents-table { min-width:920px; }
.text-warning { color:#fbbf24 !important; }
.client-stats { grid-template-columns:repeat(4,minmax(0,1fr)); }
.panel-card[id] { scroll-margin-top:16px; }
.panel-card + .panel-card { margin-top:22px; }
.panel-sidebar button.nav-item { width:100%; border:0; background:transparent; text-align:left; }
.field small { display:block; margin-top:7px; color:var(--panel-muted); font-size:11px; line-height:1.45; }
.policy-client-list { display:grid; gap:10px; }
.policy-disclosure { border:1px solid var(--panel-border); border-radius:11px; background:#0c1320; overflow:hidden; }
.policy-disclosure summary { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:15px 17px; cursor:pointer; list-style:none; }
.policy-disclosure summary::-webkit-details-marker { display:none; }
.policy-disclosure summary span:first-child { display:flex; flex-direction:column; gap:3px; }
.policy-disclosure summary small { color:var(--panel-muted); }
.policy-content { padding:0 17px 17px; color:#c7d0dc; line-height:1.7; font-size:13px; white-space:normal; }
.acceptance-time { margin:0; padding:12px 17px; border-top:1px solid var(--panel-border); color:#86efac; font-size:12px; }
.policy-accept-form { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:16px; margin-top:16px; padding:16px; border:1px solid rgba(12,178,219,.3); border-radius:11px; background:rgba(12,178,219,.06); }
.policy-accept-form label { display:flex; align-items:flex-start; gap:9px; flex:1 1 420px; color:#e1e8f0; line-height:1.5; }
.policy-accept-form input { margin-top:4px; accent-color:var(--panel-accent); }
.document-upload-form { margin-bottom:20px; padding-bottom:20px; border-bottom:1px solid var(--panel-border); }
.document-client-list { display:grid; gap:10px; }
.document-client-item { display:grid; grid-template-columns:auto minmax(0,1fr) auto auto; align-items:center; gap:13px; padding:14px; border:1px solid var(--panel-border); border-radius:11px; background:#0d1522; }
.document-file-icon { width:42px; height:42px; display:grid; place-items:center; border-radius:10px; background:rgba(12,178,219,.1); color:#67e8f9; font-size:18px; }
.document-file-copy { min-width:0; }
.document-file-copy strong,.document-file-copy small { display:block; overflow:hidden; text-overflow:ellipsis; }
.document-file-copy strong { color:#f3f7fb; white-space:nowrap; }
.document-file-copy small { margin-top:4px; color:var(--panel-muted); font-size:11px; line-height:1.45; }
.document-file-copy p { margin:5px 0 0; color:#fca5a5; font-size:12px; }

@media (max-width:1100px) {
    .stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .admin-account-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .filter-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .admin-grid,.admin-grid.equal { grid-template-columns:1fr; }
    .client-filter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:768px) {
    .panel-sidebar { width:min(86vw,290px); transform:translateX(-105%); transition:transform .25s ease; box-shadow:25px 0 60px rgba(0,0,0,.45); }
    .sidebar-open .panel-sidebar { transform:translateX(0); }
    .panel-sidebar .nav-item span,.sidebar-logo img,.badge-admin,.sidebar-footer span { display:inline; }
    .sidebar-logo img { display:block; }
    .sidebar-close,.sidebar-toggle { display:block; }
    .sidebar-backdrop { display:none; position:fixed; inset:0; z-index:90; background:rgba(0,0,0,.58); }
    .sidebar-open .sidebar-backdrop { display:block; }
    .panel-main { margin-left:0; padding:0 15px 28px; }
    .panel-topbar { min-height:82px; margin:0 -15px 20px -15px; padding:0 15px; gap:9px; box-sizing:border-box; }
    .context-tabs {
        width: calc(100vw - 30px);
        justify-content: center;
        margin: -6px 0 18px;
        padding: 5px;
        border-radius: 12px;
    }
    .context-tab { min-height:44px; padding:9px 12px; font-size:12px; }
    .panel-header h1 { font-size:22px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .panel-header p { display:none; }
    .admin-user div { display:none; }
    .admin-operation-menu { position:fixed; top:76px; right:12px; }
    .admin-languages a { padding:5px; }
    .stats-grid { gap:10px; }
    .admin-account-stats { grid-template-columns:1fr; }
    .stat-card { padding:14px; gap:10px; }
    .stat-icon { width:42px; height:42px; }
    .stat-icon { flex-basis:42px; }
    .stat-info h3 { font-size:20px; }
    .stat-info p { font-size:9px; }
    .filter-grid,.form-grid,.form-grid.cols-3,.detail-grid { grid-template-columns:1fr; }
    .client-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .filter-actions { grid-column:1/-1; }
    .card-header { padding:16px; align-items:flex-start; }
    .calendar-day { min-height:82px; padding:4px; }
    .calendar-number { font-size:10px; }
    .calendar-event { font-size:0; min-height:10px; padding:2px; border-left-width:2px; }
    .calendar-event::after { content:'•'; font-size:11px; }
    .admin-modal { padding:10px; align-items:flex-end; }
    .admin-modal-dialog { width:100%; max-height:calc(100dvh - 20px); border-radius:16px; }
    .admin-modal-header,.admin-modal-footer { padding:15px 16px; }
    .admin-modal-body { padding:16px; }
    .document-client-item { grid-template-columns:auto minmax(0,1fr) auto; }
    .document-client-item form { grid-column:3; }
    .policy-disclosure summary { align-items:flex-start; }
}

@media (max-width:480px) {
    .login-container { padding:20px; align-items:flex-start; }
    .login-box { padding:34px 20px; }
    .login-tab {
        padding:11px 6px;
        font-size:11px;
        letter-spacing:.35px;
        white-space:nowrap;
    }
    .client-stats { grid-template-columns:1fr; }
    .document-client-item { grid-template-columns:auto minmax(0,1fr); align-items:start; }
    .document-client-item .status-badge,.document-client-item form { grid-column:2; justify-self:start; }
    .admin-languages { flex:0 0 auto; }
    .admin-operation-button { width:36px; height:36px; border-radius:9px; }
    .toast-stack { right:10px; bottom:10px; width:calc(100vw - 20px); }
    .admin-modal { padding:0; }
    .admin-modal-dialog,.admin-modal-dialog.wide { max-height:100dvh; min-height:100dvh; border-width:0; border-radius:0; }
    .admin-modal-header { padding-top:max(15px,env(safe-area-inset-top)); }
    .admin-modal-footer { display:grid; grid-template-columns:1fr; padding-bottom:max(15px,env(safe-area-inset-bottom)); }
    .admin-modal-footer .btn-admin { width:100%; }
    .admin-modal-footer .field { width:100%; min-width:0 !important; margin:0 !important; }
}

/* =============================================
   BLACK SURFACE SYSTEM — LOGIN, ADMIN & CLIENT
   (only active when NOT in light mode)
   ============================================= */
:root:not([data-theme="light"]) {
    --panel-bg: #000;
    --panel-surface: #050505;
    --panel-raised: #0b0b0b;
    --panel-border: #262626;
    --panel-muted: #9b9b9b;
    --panel-text: #f2f2f2;
}

:root:not([data-theme="light"]) .panel-body {
    background: #000 !important;
}

:root:not([data-theme="light"]) .login-container {
    background: radial-gradient(circle at 50% 0%, #121212 0%, #030303 38%, #000 72%) !important;
}

:root:not([data-theme="light"]) .login-box {
    background: rgba(0, 0, 0, .94) !important;
    border-color: #292929 !important;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .82);
    backdrop-filter: blur(22px);
}

:root:not([data-theme="light"]) .login-language-select,
:root:not([data-theme="light"]) .login-tabs,
:root:not([data-theme="light"]) .admin-languages {
    background: rgba(0, 0, 0, .78) !important;
    border-color: #2d2d2d !important;
}

:root:not([data-theme="light"]) .login-language-select option,
:root:not([data-theme="light"]) .form-input,
:root:not([data-theme="light"]) .field input,
:root:not([data-theme="light"]) .field select,
:root:not([data-theme="light"]) .field textarea,
:root:not([data-theme="light"]) .admin-form input,
:root:not([data-theme="light"]) .admin-form select,
:root:not([data-theme="light"]) .admin-form textarea {
    background-color: #050505 !important;
    border-color: #303030 !important;
    color: #f5f5f5 !important;
}

:root:not([data-theme="light"]) .form-input::placeholder,
:root:not([data-theme="light"]) .field input::placeholder,
:root:not([data-theme="light"]) .field textarea::placeholder,
:root:not([data-theme="light"]) .admin-form input::placeholder,
:root:not([data-theme="light"]) .admin-form textarea::placeholder {
    color: #858585 !important;
}

:root:not([data-theme="light"]) .form-input option,
:root:not([data-theme="light"]) .field select option,
:root:not([data-theme="light"]) .admin-form select option {
    background: #000;
    color: #fff;
}

:root:not([data-theme="light"]) .panel-sidebar,
:root:not([data-theme="light"]) .sidebar-logo,
:root:not([data-theme="light"]) .panel-topbar {
    background: rgba(0, 0, 0, .98) !important;
    border-color: var(--panel-border) !important;
}

:root:not([data-theme="light"]) .nav-item:hover,
:root:not([data-theme="light"]) .panel-table tbody tr:hover {
    background: #0c0c0c !important;
}

:root:not([data-theme="light"]) .nav-item.active {
    background: rgba(0, 0, 0, .72) !important;
    box-shadow: inset 3px 0 0 var(--panel-accent);
}

:root:not([data-theme="light"]) .stat-card {
    background: linear-gradient(145deg, rgba(12, 12, 12, .98), rgba(0, 0, 0, .98)) !important;
    border-color: var(--panel-border) !important;
}

:root:not([data-theme="light"]) .panel-card,
:root:not([data-theme="light"]) .quick-action,
:root:not([data-theme="light"]) .policy-disclosure,
:root:not([data-theme="light"]) .document-client-item,
:root:not([data-theme="light"]) .language-code,
:root:not([data-theme="light"]) .calendar-day,
:root:not([data-theme="light"]) .admin-modal-dialog,
:root:not([data-theme="light"]) .lang-tab,
:root:not([data-theme="light"]) .lang-panel {
    background-color: rgba(5, 5, 5, .97) !important;
    border-color: var(--panel-border) !important;
}

:root:not([data-theme="light"]) .panel-table th,
:root:not([data-theme="light"]) .policy-editor .admin-modal-footer {
    background: rgba(0, 0, 0, .72) !important;
}

:root:not([data-theme="light"]) .admin-modal,
:root:not([data-theme="light"]) .sidebar-backdrop {
    background: rgba(0, 0, 0, .86) !important;
}

:root:not([data-theme="light"]) .modal-close,
:root:not([data-theme="light"]) .sidebar-toggle,
:root:not([data-theme="light"]) .btn-admin.secondary,
:root:not([data-theme="light"]) .btn-admin.ghost {
    background-color: #0b0b0b !important;
    border-color: #303030 !important;
}

:root:not([data-theme="light"]) .calendar-event,
:root:not([data-theme="light"]) .policy-accept-form,
:root:not([data-theme="light"]) .document-file-icon,
:root:not([data-theme="light"]) .current-admin-badge {
    background-color: rgba(0, 0, 0, .7) !important;
}

/* Relational tour catalogue: reusable services, policies and secure imagery. */
.service-admin-name { display:flex; align-items:center; gap:12px; min-width:260px; }
.service-admin-name > div { min-width:0; }
.service-admin-name strong,.service-admin-name small { display:block; }
.service-admin-name small { margin-top:4px; color:var(--panel-muted); font-size:11px; white-space:normal; }
.service-admin-icon { width:40px; height:40px; flex:0 0 40px; display:grid; place-items:center; border:1px solid rgba(12,178,219,.28); border-radius:10px; background:rgba(12,178,219,.08); color:var(--panel-accent); }
.toggle-card { display:flex; gap:12px; align-items:center; margin:16px 0; padding:14px; border:1px solid var(--panel-border); border-radius:11px; background:#070707; cursor:pointer; }
.toggle-card input { margin:0; accent-color:var(--panel-accent); flex-shrink:0; width:18px; height:18px; }
.toggle-card strong,.toggle-card small { display:block; }
.toggle-card small { margin-top:3px; color:var(--panel-muted); font-size:11px; }
.assignment-grid { display:grid; grid-template-columns:1fr; gap:18px; margin-top:20px; width:100%; }
.assignment-panel { margin-top:18px; padding:18px; border:1px solid var(--panel-border); border-radius:12px; background:#030303; width:100%; box-sizing:border-box; }
.assignment-panel h3 { margin:0; color:#fff; font-size:17px; }
.assignment-panel h3 i { margin-right:7px; color:var(--panel-accent); }
.assignment-panel > p { margin:6px 0 15px; color:var(--panel-muted); font-size:12px; line-height:1.5; }
.check-card-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(280px, 1fr)); gap:10px; width:100%; }
.check-card { display:grid; grid-template-columns:20px 32px minmax(0,1fr); gap:12px; align-items:center; padding:12px 14px; border:1px solid var(--panel-border); border-radius:10px; background:#080808; cursor:pointer; transition:all .2s ease; user-select:none; }
.check-card:hover { border-color:rgba(12,178,219,.5); background:rgba(255,255,255,0.03); }
.check-card:has(input:checked) { border-color:var(--panel-accent); background:rgba(12,178,219,0.08); box-shadow:0 0 12px rgba(12,178,219,0.15); }
.check-card.is-global { opacity:.72; cursor:default; }
.check-card input[type="checkbox"] { margin:0 !important; width:18px !important; height:18px !important; min-height:18px !important; accent-color:var(--panel-accent) !important; cursor:pointer !important; align-self:center !important; justify-self:center !important; }
.check-card-icon { width:32px; height:32px; display:grid; place-items:center; border-radius:8px; background:rgba(12,178,219,.1); color:var(--panel-accent); flex-shrink:0; }
.check-card strong,.check-card small { display:block; }
.check-card strong { color:#f8fafc; font-size:12.5px; font-weight:700; }
.check-card small { margin-top:3px; color:var(--panel-muted); font-size:10.5px; line-height:1.35; }
.upload-panel { margin-top:18px; }

.media-quota-card {
    display:flex;
    align-items:center;
    gap:18px;
    margin:0 0 22px;
    padding:18px 20px;
    color:#dbeafe;
    background:linear-gradient(135deg,rgba(8,15,25,.98),rgba(10,24,35,.98));
    border:1px solid rgba(12,178,219,.3);
    border-radius:14px;
    box-shadow:0 14px 34px rgba(0,0,0,.18);
}
.media-quota-icon {
    flex:0 0 48px;
    width:48px;
    height:48px;
    display:grid;
    place-items:center;
    border-radius:12px;
    color:#22d3ee;
    background:rgba(12,178,219,.14);
    font-size:20px;
}
.media-quota-content { min-width:0; flex:1; }
.media-quota-head,.media-quota-foot { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.media-quota-head strong { display:block; color:#fff; font-size:15px; }
.media-quota-head small { display:block; margin-top:3px; color:#94a3b8; line-height:1.4; }
.media-quota-head b { flex:0 0 auto; color:#67e8f9; font-size:14px; }
.media-quota-track { height:8px; margin:12px 0 8px; overflow:hidden; background:#253041; border-radius:999px; }
.media-quota-track span { display:block; min-width:0; height:100%; background:linear-gradient(90deg,#0891b2,#22d3ee); border-radius:inherit; transition:width .25s ease; }
.media-quota-foot { color:#94a3b8; font-size:12px; }

@media (max-width:640px) {
    .media-quota-card { align-items:flex-start; padding:16px; }
    .media-quota-icon { flex-basis:42px; width:42px; height:42px; }
    .media-quota-head { align-items:flex-start; flex-direction:column; gap:8px; }
    .media-quota-foot { align-items:flex-start; flex-direction:column; gap:3px; }
}
.tour-admin-thumb,.tour-admin-placeholder { width:76px; height:58px; display:grid; place-items:center; border-radius:9px; object-fit:cover; background:#0d0d0d; color:#666; }
.tours-management-table { min-width:1120px; }
.tour-image-admin-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-top:20px; }
.tour-image-admin-card { overflow:hidden; border:1px solid var(--panel-border); border-radius:12px; background:#070707; }
.tour-image-admin-card > img { width:100%; height:170px; object-fit:cover; display:block; }
.tour-image-admin-card > div { padding:11px 12px; }
.tour-image-admin-card strong,.tour-image-admin-card small { display:block; overflow:hidden; text-overflow:ellipsis; }
.tour-image-admin-card strong { color:#fff; white-space:nowrap; font-size:12px; }
.tour-image-admin-card small { margin-top:4px; color:var(--panel-muted); font-size:10px; }
.tour-image-actions { display:flex; gap:7px; flex-wrap:wrap; align-items:center; padding-top:0 !important; }
.tour-image-actions form { margin:0; }

/* Large reusable service catalogue. */
.catalog-filter { min-width:220px; height:42px; box-sizing:border-box; display:flex; align-items:center; gap:9px; overflow:hidden; padding:0 12px; border:1px solid var(--panel-border); border-radius:10px; background:#080d15; color:var(--panel-muted); }
.catalog-filter input { width:100%; min-width:0; padding:0; border:0; outline:0; background:transparent; color:#fff; }
.admin-form .catalog-filter > input {
    height:100%;
    min-height:0;
    padding:0;
    border:0 !important;
    border-radius:0;
    background:transparent !important;
    box-shadow:none !important;
}
.admin-form .catalog-filter > input:focus {
    border:0 !important;
    box-shadow:none !important;
}
.catalog-filter:focus-within {
    border-color:var(--panel-accent);
    box-shadow:0 0 0 3px rgba(12,178,219,.12);
}
.catalog-category-select { min-width:220px; height:42px; padding:0 12px; border:1px solid var(--panel-border); border-radius:10px; background:#080d15; color:#dce5ed; }
.category-pill { display:inline-flex; padding:5px 9px; border:1px solid rgba(12,178,219,.24); border-radius:999px; background:rgba(12,178,219,.08); color:#9be8f8; font-size:11px; white-space:nowrap; }
.visual-content-toolbar { display:grid; grid-template-columns:auto auto minmax(220px,1fr) minmax(180px,.55fr) minmax(160px,.5fr); align-items:center; margin-bottom:20px; }
.visual-content-toolbar > * { width:100%; min-width:0; }
.visual-content-toolbar .btn-admin { justify-content:center; white-space:nowrap; }
.visual-content-table { min-width:1050px; }
.visual-content-thumb { display:block; width:94px; height:68px; border:1px solid var(--panel-border); border-radius:9px; object-fit:cover; background:#080808; }
.visual-description-cell { width:min(300px,25vw); color:#b9c4d1; font-size:12px; line-height:1.5; }
.content-section-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:0 0 20px; padding:6px; border:1px solid var(--panel-border); border-radius:14px; background:#05080d; }
.content-section-tab { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:11px; min-height:58px; padding:10px 14px; border:1px solid transparent; border-radius:10px; background:transparent; color:#98a5b5; font-weight:700; text-align:left; cursor:pointer; transition:.2s ease; }
.content-section-tab i { color:#5e6c7d; }
.content-section-tab b,.content-section-count { display:inline-grid; place-items:center; min-width:30px; height:28px; padding:0 8px; border-radius:999px; background:#192230; color:#b8c5d4; font-size:11px; white-space:nowrap; }
.content-section-tab:hover { background:#0c121d; color:#e7edf4; }
.content-section-tab.active { border-color:rgba(12,178,219,.38); background:rgba(12,178,219,.11); color:#fff; box-shadow:inset 0 0 0 1px rgba(12,178,219,.05); }
.content-section-tab.active i { color:var(--panel-accent); }
.content-section-tab.active b { background:var(--panel-accent); color:#031016; }
.content-section-panel[hidden] { display:none; }
.visual-section-toolbar { display:grid; grid-template-columns:auto minmax(220px,1fr) minmax(170px,.45fr); gap:9px; align-items:center; margin-bottom:14px; }
.visual-section-toolbar > * { width:100%; min-width:0; }
.visual-section-toolbar .btn-admin { white-space:nowrap; }
.locked-section-field { display:flex; align-items:center; min-height:42px; padding:9px 12px; border:1px solid rgba(12,178,219,.28); border-radius:9px; background:rgba(12,178,219,.07); color:#b8ecf6; font-weight:700; }
.visual-image-field { display:grid; grid-template-columns:minmax(0,1fr) 180px; gap:18px; align-items:center; margin:18px 0; padding:16px; border:1px dashed rgba(12,178,219,.35); border-radius:11px; background:rgba(12,178,219,.045); }
.visual-image-field input[type="file"] { width:100%; }
.visual-image-preview { display:block; width:180px; height:120px; border:1px solid var(--panel-border); border-radius:10px; object-fit:cover; background:#050505; }
.visual-image-preview[hidden] { display:none; }
.component-filter-bar { display:grid; grid-template-columns:minmax(180px,1fr) minmax(180px,.7fr); gap:10px; margin:14px 0; }
.component-filter-bar .catalog-filter,.component-filter-bar .catalog-category-select { width:100%; min-width:0; }
.service-catalog-grid { max-height:520px; overflow:auto; padding-right:5px; align-content:start; }
.service-catalog-grid .check-card { min-height:76px; }
.selection-counter { display:inline-grid; place-items:center; min-width:27px; height:25px; margin-left:6px; padding:0 7px; border-radius:999px; background:rgba(12,178,219,.15); color:#7ce9ff; font-size:12px; }

@media (max-width:700px) {
    .component-filter-bar { grid-template-columns:1fr; }
    .page-actions .catalog-filter,.page-actions .catalog-category-select { width:100%; min-width:0; }
    .service-catalog-grid { max-height:430px; }
}
@media (max-width:1150px) {
    .visual-content-toolbar { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .visual-content-toolbar .catalog-filter { grid-column:1/-1; }
    .visual-section-toolbar { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .visual-section-toolbar .catalog-filter { grid-column:1/-1; }
}
@media (max-width:600px) {
    .visual-content-toolbar { grid-template-columns:1fr; }
    .visual-content-toolbar .catalog-filter { grid-column:auto; }
    .content-section-tabs { grid-template-columns:1fr; }
    .content-section-tab { min-height:52px; }
    .visual-section-toolbar { grid-template-columns:1fr; }
    .visual-section-toolbar .catalog-filter { grid-column:auto; }
    .visual-image-field { grid-template-columns:1fr; }
    .visual-image-preview { width:100%; height:180px; }
}
.image-upload-inline { padding-bottom:18px; border-bottom:1px solid var(--panel-border); }
.header-statuses { display:flex; gap:7px; flex-wrap:wrap; justify-content:flex-end; }
.policy-toggles { margin-top:18px; }
.policy-filter-bar { display:grid; grid-template-columns:minmax(160px,1.2fr) repeat(6,minmax(115px,1fr)); gap:8px; margin-bottom:20px; align-items:center; }
.policy-filter-bar > * { min-width:0; width:100%; }
.policy-filter-bar .catalog-category-select { min-width:0; height:38px; padding:0 8px; font-size:0.8125rem; text-overflow:ellipsis; white-space:nowrap; }
.policy-filter-bar .catalog-filter { min-width:0; height:38px; margin:0; }
.policy-filter-bar .catalog-filter input { height:38px; font-size:0.8125rem; }
.policies-management-table { min-width:1240px; }
.policy-admin-name { min-width:280px; }
.version-pill { display:inline-flex; align-items:center; padding:5px 9px; border:1px solid var(--panel-border); border-radius:7px; background:#080808; color:#dce7f1; font-weight:700; font-size:12px; }
.policy-tour-list { display:flex; flex-wrap:wrap; gap:5px; max-width:320px; }
.policy-tour-list span { display:inline-flex; max-width:190px; overflow:hidden; padding:4px 7px; border:1px solid rgba(12,178,219,.22); border-radius:999px; background:rgba(12,178,219,.07); color:#a5edf9; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.policy-content-title { margin-top:22px; }
.policy-tour-assignment { margin-top:20px; }
.policy-tour-search { width:min(100%,420px); min-width:0; margin-bottom:12px; }
.policy-tour-grid { max-height:310px; overflow:auto; padding-right:5px; align-content:start; }
.policy-tour-grid .check-card.is-global { opacity:.48; }

@media (max-width:1400px) {
    .policy-filter-bar { grid-template-columns:repeat(4,1fr); }
    .policy-filter-bar > :first-child { grid-column:span 2; }
}
@media (max-width:900px) {
    .policy-filter-bar { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .policy-filter-bar > :first-child { grid-column:span 2; }
    .policy-filter-bar .btn-admin { justify-content:center; }
}
@media (max-width:600px) {
    .policy-filter-bar { grid-template-columns:1fr; }
    .policy-filter-bar > :first-child { grid-column:span 1; }
    .policy-tour-grid { max-height:360px; }
}
.status-badge.scheduled,.calendar-event.scheduled { background:rgba(99,102,241,.13); color:#a5b4fc; border-color:rgba(99,102,241,.32); }
.status-badge.full,.calendar-event.full { background:rgba(245,158,11,.13); color:#fcd34d; border-color:rgba(245,158,11,.35); }
.status-badge.in_progress,.calendar-event.in_progress { background:rgba(6,182,212,.13); color:#67e8f9; border-color:rgba(6,182,212,.35); }
.status-badge.delayed,.calendar-event.delayed { background:rgba(249,115,22,.14); color:#fdba74; border-color:rgba(249,115,22,.36); }
.status-badge.draft,.status-badge.paused { background:rgba(148,163,184,.13); color:#cbd5e1; border-color:rgba(148,163,184,.3); }
.status-badge.published { background:rgba(34,197,94,.13); color:#86efac; border-color:rgba(34,197,94,.3); }
.status-badge.retired { background:rgba(239,68,68,.12); color:#fca5a5; border-color:rgba(239,68,68,.3); }

@media (max-width:1100px) {
    .assignment-grid { grid-template-columns:1fr; }
    .tour-image-admin-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:600px) {
    .check-card-grid,.tour-image-admin-grid { grid-template-columns:1fr; }
}
/* Secure approved-booking traveller form */
.booking-details-page{min-height:100vh;background:#000;color:#eef4f6}.booking-details-shell{width:min(1080px,calc(100% - 32px));margin:0 auto;padding:36px 0 72px}.booking-details-logo{display:block;width:150px;height:auto;margin:0 auto 28px}.booking-details-shell>.panel-card{padding:clamp(20px,4vw,42px);border-radius:24px}.passenger-fieldset{border:1px solid #27343a;border-radius:18px;padding:20px;margin:22px 0;background:#050505}.passenger-fieldset legend{width:auto;padding:0 10px;color:#0cb2db;font-weight:800}.coupon-field{max-width:420px;margin:28px 0}.booking-details-success{text-align:center}.booking-details-success>i{font-size:52px;color:#0cb2db}.booking-details-success h1{margin-top:16px}.booking-details-issued-code{display:inline-flex;margin:6px 0 16px;padding:12px 18px;border:1px solid rgba(12,178,219,.45);border-radius:12px;background:rgba(12,178,219,.1);color:#7be5fa;font-size:clamp(28px,7vw,42px);letter-spacing:.18em}@media(max-width:640px){.booking-details-shell{width:min(100% - 18px,1080px);padding-top:18px}.passenger-fieldset{padding:14px}.booking-details-shell>.panel-card{border-radius:18px}}
.booking-link-state{position:relative;max-width:820px;margin-inline:auto;text-align:center;background:linear-gradient(145deg,#050505 0%,#071116 100%)!important}.booking-state-languages{position:absolute;top:18px;right:18px;display:flex;gap:4px;padding:4px;border:1px solid #243038;border-radius:999px;background:#000}.booking-state-languages a{display:grid;place-items:center;min-width:34px;height:30px;border-radius:999px;color:#819099;font-size:10px;font-weight:900;text-decoration:none}.booking-state-languages a:hover,.booking-state-languages a[aria-current=page]{background:#0cb2db;color:#001018}.booking-link-state-icon{display:grid;place-items:center;width:68px;height:68px;margin:4px auto 18px;border:1px solid rgba(12,178,219,.35);border-radius:20px;background:rgba(12,178,219,.09);color:#37d6f4;font-size:27px}.booking-link-state-eyebrow{margin:0 0 8px;color:#2cc9e9;font-size:10px;font-weight:900;letter-spacing:.16em;text-transform:uppercase}.booking-link-state h1{margin:0;color:#fff;font-size:clamp(27px,5vw,42px);line-height:1.12}.booking-link-state-copy{max-width:650px;margin:15px auto 0;color:#aab6bc;font-size:14px;line-height:1.75}.booking-link-flow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:30px 0 0;padding:0;list-style:none;text-align:left}.booking-link-flow li{display:flex;gap:12px;min-height:102px;padding:17px;border:1px solid #202d33;border-radius:16px;background:rgba(0,0,0,.62)}.booking-link-flow li>span{flex:0 0 28px;width:28px;height:28px;display:grid;place-items:center;border-radius:9px;background:#0cb2db;color:#001018;font-size:11px;font-weight:900}.booking-link-flow div{display:flex;min-width:0;flex-direction:column;gap:6px}.booking-link-flow strong{color:#fff;font-size:12px}.booking-link-flow small{color:#839198;font-size:10px;line-height:1.5}.booking-link-state-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:28px}.booking-link-state-actions .btn-admin{min-height:46px;border-radius:999px;padding-inline:20px}@media(max-width:700px){.booking-link-flow{grid-template-columns:1fr}.booking-link-flow li{min-height:0}.booking-state-languages{position:static;width:max-content;margin:0 0 22px auto}.booking-link-state-icon{margin-top:0}}@media(max-width:430px){.booking-link-state-actions{align-items:stretch;flex-direction:column}.booking-link-state-actions .btn-admin{width:100%}}
/* Driver-only mobile operations portal */
.driver-body{background:#000;color:#fff;min-height:100vh}
.driver-login-shell,.driver-shell{width:min(760px,calc(100% - 28px));margin:0 auto;padding:32px 0 60px}
.driver-login-shell{min-height:100vh;display:grid;place-items:center}
.driver-login-card{width:min(460px,100%);padding:34px;border-radius:28px;text-align:center}
.driver-login-card h1{margin:22px 0 8px}.driver-login-card p{color:#9aa7ad}
.driver-login-card .admin-form{text-align:left;margin-top:24px}
.driver-primary{width:100%;justify-content:center}
.driver-language{display:flex;justify-content:center;gap:6px;margin-top:20px}
.driver-language a{color:#8d9ba1;border:1px solid #28363b;border-radius:999px;padding:5px 10px;text-decoration:none}
.driver-language a.active{color:#fff;border-color:#10b9df;background:#063642}
.driver-topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:12px;min-height:74px;padding:12px max(16px,calc((100% - 760px)/2));background:rgba(0,0,0,.96);border-bottom:1px solid #172126}
.driver-topbar img{width:112px;height:auto}.driver-topbar>div{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end}.driver-topbar small{color:#7f9199}
.driver-hero{padding:18px 4px 24px}.driver-hero span{color:#13b7dc;font-size:.82rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em}.driver-hero h1{margin:10px 0 6px}.driver-hero p{color:#9aabb2;margin:0}
.driver-validator{padding:22px;margin-bottom:20px}.driver-code-form{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:end}.driver-code-form .field{margin:0}
.driver-code-form input[name="code"]{text-transform:uppercase;letter-spacing:.18em;font-weight:800}
.driver-scan-button{width:100%;justify-content:center;margin-top:14px}.driver-qr-reader{overflow:hidden;border-radius:20px;margin-top:16px;background:#050505}.driver-qr-reader video{border-radius:16px}
.driver-assignment-list{display:grid;gap:1px}.driver-assignment{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 22px;border-top:1px solid #1b272c;color:#fff;text-decoration:none}.driver-assignment div{display:flex;flex-direction:column;gap:3px}.driver-assignment div span,.driver-assignment small{color:#87969d}.driver-assignment:hover{background:#071318}
.driver-result-card{padding:26px}.driver-result-card>.status-badge{display:table;margin:8px auto 22px}.driver-result-card>.ticket-code-label{text-align:center;color:#84949b;text-transform:uppercase;letter-spacing:.1em}.driver-result-card>.ticket-code{text-align:center;font-size:clamp(2rem,10vw,3.8rem);font-weight:800;letter-spacing:.12em;color:#13b7dc}.driver-result-card>.result-icon{display:block;text-align:center;font-size:3rem;margin-bottom:14px}.result-icon.danger{color:#ef5b68}
.driver-passenger-list{list-style:none;padding:8px 0 0;margin:0;display:grid;gap:8px}.driver-passenger-list i{color:#12b6dc;width:22px}.driver-operation-form{margin-top:22px;border-top:1px solid #213036;padding-top:22px}.driver-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.driver-action-grid .btn-admin{justify-content:center}
@media (max-width:620px){.driver-login-shell,.driver-shell{width:min(100% - 18px,760px);padding-top:18px}.driver-login-card,.driver-result-card{padding:20px;border-radius:22px}.driver-code-form,.driver-action-grid{grid-template-columns:1fr}.driver-topbar{padding-inline:12px}.driver-assignment{align-items:flex-start;flex-direction:column}.driver-assignment>.status-badge{align-self:flex-start}}
.ticket-body{background:#000}.booking-ticket-shell{width:min(860px,calc(100% - 24px));margin:0 auto;padding:30px 0 70px}.ticket-toolbar{display:flex;justify-content:space-between;gap:12px;margin-bottom:18px}.booking-ticket{overflow:hidden;border:1px solid #25333a;border-radius:30px;background:#050505;color:#fff;box-shadow:0 28px 80px rgba(0,0,0,.45)}.booking-ticket>header{display:flex;justify-content:space-between;align-items:center;padding:22px 28px;border-bottom:1px solid #1b282e;background:#020202}.booking-ticket>header img{width:150px}.booking-ticket>header span{color:#13b7dc;font-weight:800;letter-spacing:.1em}.booking-ticket-main{display:grid;grid-template-columns:1fr 240px;align-items:center;gap:28px;padding:34px}.booking-ticket-main>div:first-child{display:flex;flex-direction:column;gap:8px}.booking-ticket-main span,.booking-ticket-details span{color:#86969d;font-size:.78rem;text-transform:uppercase;letter-spacing:.08em}.booking-ticket-main .ticket-code{text-align:left;font-size:clamp(2.2rem,9vw,4.6rem)}.ticket-qr{width:240px;height:240px;padding:10px;border-radius:18px;background:#fff}.ticket-qr img,.ticket-qr canvas{width:220px!important;height:220px!important}.ticket-qr-pending{min-height:220px;border:1px dashed #33444b;border-radius:18px;display:grid;place-items:center;text-align:center;padding:24px;color:#91a1a8}.ticket-qr-pending i{font-size:2rem;color:#13b7dc}.booking-ticket-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:#1a252a;border-top:1px solid #1a252a}.booking-ticket-details>div{background:#070707;padding:20px 28px;display:flex;flex-direction:column;gap:5px}.booking-ticket footer{padding:20px 28px;color:#8ea0a7;border-top:1px solid #1a252a}.booking-ticket footer i{color:#13b7dc;margin-right:8px}@media(max-width:650px){.booking-ticket-main{grid-template-columns:1fr;justify-items:center;text-align:center;padding:24px}.booking-ticket-main .ticket-code{text-align:center}.booking-ticket-details{grid-template-columns:1fr}.booking-ticket>header{align-items:flex-start;gap:16px}.booking-ticket>header span{text-align:right;font-size:.72rem}.ticket-toolbar{flex-direction:column}.ticket-toolbar .btn-admin{justify-content:center}}@media print{.ticket-toolbar{display:none}.booking-ticket-shell{width:100%;padding:0}.booking-ticket{box-shadow:none}.ticket-body{background:#fff}}
.report-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.report-card{padding:24px}.report-card h2{margin:16px 0 8px}.report-card p{color:#91a0a7;min-height:66px}.status-badge.awaiting_validation{background:rgba(245,158,11,.14);color:#fcd34d}.status-badge.validated{background:rgba(34,197,94,.14);color:#86efac}.status-badge.no_show{background:rgba(239,68,68,.14);color:#fca5a5}@media(max-width:900px){.report-grid{grid-template-columns:1fr}}

/* ROOT email template center */
/* ROOT email template center - WYSIWYG & Visual Editor */
.email-template-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
.email-layout-card{margin-bottom:22px}
.email-template-table{min-width:980px}
.email-template-name{display:flex;align-items:center;gap:12px;min-width:280px}
.email-template-name>span{flex:0 0 42px;width:42px;height:42px;display:grid;place-items:center;border:1px solid rgba(12,178,219,.28);border-radius:11px;background:rgba(12,178,219,.08);color:var(--panel-accent)}
.email-template-name strong,.email-template-name small{display:block}.email-template-name small{max-width:330px;margin-top:4px;overflow:hidden;color:var(--panel-muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.email-template-dialog{width:min(1480px,100%)}
.email-editor-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(380px,.85fr);gap:20px;align-items:start}

/* Mode Switcher */
.email-mode-switcher{display:inline-flex;align-items:center;gap:4px;padding:3px;background:#050a0e;border:1px solid var(--panel-border);border-radius:10px;margin-bottom:14px}
.email-mode-btn{display:inline-flex;align-items:center;gap:6px;padding:6px 13px;border:none;border-radius:7px;background:transparent;color:#94a3b8;font-size:12px;font-weight:600;cursor:pointer;transition:all .18s ease}
.email-mode-btn:hover{color:#fff}
.email-mode-btn.active{background:rgba(12,178,219,.15);border:1px solid rgba(12,178,219,.35);color:#38bdf8;box-shadow:0 1px 4px rgba(0,0,0,.3)}

/* Variable Pills */
.email-variables-card{margin:0 0 16px;padding:14px 16px;border:1px solid var(--panel-border);border-radius:12px;background:#04070a}
.email-variables-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.email-variables-header strong{font-size:12px;color:#e2e8f0;text-transform:uppercase;letter-spacing:.05em}
.email-variables-header small{font-size:11px;color:var(--panel-muted)}
.email-variable-pills{display:flex;flex-wrap:wrap;gap:6px}
.email-variable-pill{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:4px 10px;border:1px solid rgba(12,178,219,.22);border-radius:999px;background:rgba(12,178,219,.06);color:#bae6fd;font-size:11.5px;font-weight:600;cursor:pointer;transition:all .15s ease}
.email-variable-pill:hover{background:rgba(12,178,219,.18);border-color:#38bdf8;color:#fff;transform:translateY(-1px);box-shadow:0 2px 8px rgba(12,178,219,.2)}
.email-variable-pill code{padding:1px 5px;border-radius:4px;background:rgba(0,0,0,.4);color:#7dd3fc;font-size:10px;font-weight:700}
.email-variable-pill.block-pill{border-color:rgba(245,158,11,.3);background:rgba(245,158,11,.08);color:#fde68a}
.email-variable-pill.block-pill:hover{background:rgba(245,158,11,.2);border-color:#f59e0b;color:#fff;box-shadow:0 2px 8px rgba(245,158,11,.2)}
.email-variable-pill.block-pill code{color:#fcd34d}

/* Visual WYSIWYG Toolbar */
.email-visual-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:5px;padding:8px 12px;border:1px solid var(--panel-border);border-bottom:none;border-radius:12px 12px 0 0;background:#090d12}
.email-visual-btn{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;padding:0 8px;border:1px solid rgba(255,255,255,.08);border-radius:7px;background:rgba(255,255,255,.03);color:#cbd5e1;font-size:12px;font-weight:700;cursor:pointer;transition:all .15s}
.email-visual-btn:hover{background:rgba(12,178,219,.12);border-color:rgba(12,178,219,.3);color:#38bdf8}
.email-visual-btn.active{background:var(--panel-accent);color:#03131a;border-color:var(--panel-accent)}
.email-visual-divider{width:1px;height:20px;margin:0 4px;background:rgba(255,255,255,.1)}

/* Visual Editor Canvas */
.email-visual-canvas{min-height:280px;max-height:480px;padding:20px;overflow-y:auto;border:1px solid var(--panel-border);border-radius:0 0 12px 12px;background:#05070a;color:#f1f5f9;font-family:Inter,system-ui,sans-serif;font-size:14px;line-height:1.7;outline:none;transition:border-color .2s}
.email-visual-canvas:focus{border-color:rgba(12,178,219,.5);box-shadow:0 0 0 3px rgba(12,178,219,.12)}
.email-visual-canvas h2{margin:0 0 14px;color:#fff;font-size:20px;font-weight:700;letter-spacing:-.02em}
.email-visual-canvas p{margin:0 0 14px;color:#cbd5e1}
.email-visual-canvas strong{color:#fff;font-weight:700}
.email-visual-canvas ul{margin:0 0 14px 22px;padding:0}
.email-visual-canvas li{margin-bottom:6px;color:#cbd5e1}
.email-visual-canvas a{color:#38bdf8;text-decoration:underline}
.email-visual-canvas .visual-var-chip{display:inline-flex;align-items:center;padding:2px 7px;border-radius:5px;background:rgba(12,178,219,.15);border:1px solid rgba(12,178,219,.35);color:#7dd3fc;font-family:Consolas,monospace;font-size:11.5px;font-weight:600;vertical-align:middle;margin:0 2px;user-select:all}
.email-visual-canvas .visual-block-card{display:block;margin:16px 0;padding:12px 16px;border-radius:8px;background:rgba(245,158,11,.1);border:1px dashed rgba(245,158,11,.4);color:#fcd34d;font-size:12px;font-weight:600;text-align:center}

/* Code Editor & Fallback */
.email-code-editor{min-height:310px!important;padding:15px!important;border-radius:12px!important;background:#030609!important;color:#bfeef7!important;font:12.5px/1.65 Consolas,"Courier New",monospace!important;tab-size:2;white-space:pre;overflow:auto}
.email-text-fallback{margin-top:14px}
.email-text-fallback textarea{min-height:95px;padding:10px 14px;border-radius:9px;background:#04070a;color:#94a3b8;font:12px/1.55 Consolas,"Courier New",monospace}

/* Live Preview */
.email-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;color:#fff}
.email-preview-heading .btn-admin{min-height:32px;padding:6px 12px;font-size:12px}
.email-preview-frame{display:block;width:100%;height:520px;border:1px solid var(--panel-border);border-radius:14px;background:#000;box-shadow:0 8px 30px rgba(0,0,0,.5)}

/* Light Mode Overrides */
[data-theme="light"] .email-variables-card{background:#f8fafc;border-color:#e2e8f0}
[data-theme="light"] .email-variables-header strong{color:#0f172a}
[data-theme="light"] .email-variable-pill{background:#f0f9ff;border-color:#bae6fd;color:#0284c7}
[data-theme="light"] .email-variable-pill:hover{background:#e0f2fe;color:#0369a1}
[data-theme="light"] .email-variable-pill code{background:#e0f2fe;color:#0284c7}
[data-theme="light"] .email-variable-pill.block-pill{background:#fefce8;border-color:#fde047;color:#b45309}
[data-theme="light"] .email-visual-toolbar{background:#f1f5f9;border-color:#cbd5e1}
[data-theme="light"] .email-visual-btn{background:#fff;border-color:#cbd5e1;color:#475569}
[data-theme="light"] .email-visual-btn:hover{background:#e2e8f0;color:#0284c7}
[data-theme="light"] .email-visual-canvas{background:#ffffff;border-color:#cbd5e1;color:#1e293b}
[data-theme="light"] .email-visual-canvas h2{color:#0f172a}
[data-theme="light"] .email-visual-canvas p,[data-theme="light"] .email-visual-canvas li{color:#334155}
[data-theme="light"] .email-code-editor{background:#f8fafc!important;border-color:#cbd5e1!important;color:#0f172a!important}
[data-theme="light"] .email-preview-frame{background:#ffffff;border-color:#cbd5e1;box-shadow:0 4px 20px rgba(0,0,0,.08)}

@media(max-width:1050px){.email-editor-grid{grid-template-columns:1fr}.email-preview-frame{height:420px}}
@media(max-width:700px){.email-template-stats{grid-template-columns:1fr}.email-code-editor{min-height:260px!important}.email-preview-frame{height:360px}.email-template-name{min-width:230px}}

/* Temporary ROOT database migration utility */
.migration-check-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.migration-check{display:flex;align-items:center;gap:9px;min-width:0;padding:11px 12px;border:1px solid var(--panel-border);border-radius:9px;background:#050505;color:#9ba8b3}
.migration-check i{flex:0 0 18px;text-align:center}.migration-check code{overflow:hidden;color:inherit;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.migration-check.passed{border-color:rgba(34,197,94,.24);background:rgba(34,197,94,.06);color:#86efac}.migration-check.missing{border-color:rgba(245,158,11,.25);background:rgba(245,158,11,.06);color:#fcd34d}
.migration-check.pending{border-color:rgba(12,178,219,.25);background:rgba(12,178,219,.06);color:#8cecff}.migration-baseline-grid{margin-bottom:24px}.migration-result-title{padding-top:20px;border-top:1px solid var(--panel-border)}
.migration-apply-form{margin-top:22px}.migration-apply-form .admin-modal-footer{border-radius:0 0 14px 14px}.migration-apply-form button:disabled{opacity:.45;cursor:not-allowed}
.migration-standalone-body{min-height:100vh;padding:0;background:#000}.migration-standalone-shell{width:min(1180px,calc(100% - 32px));margin:0 auto;padding:32px 0 70px}.migration-standalone-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:22px;margin-bottom:26px;padding:18px 20px;border:1px solid var(--panel-border);border-radius:16px;background:#050505}.migration-standalone-header img{width:132px;height:auto}.migration-standalone-header h1{margin:0;color:#fff;font-size:clamp(20px,3vw,30px)}.migration-standalone-header p{margin:5px 0 0;color:var(--panel-muted);font-size:12px}.migration-standalone-shell>.panel-card{margin-top:22px}
@media(max-width:950px){.migration-check-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:580px){.migration-check-grid{grid-template-columns:1fr}}
@media(max-width:700px){.migration-standalone-shell{width:min(100% - 18px,1180px);padding-top:12px}.migration-standalone-header{grid-template-columns:1fr;gap:12px}.migration-standalone-header img{width:112px}.migration-standalone-header .admin-languages{justify-self:start}}

/* Complete operations dashboard */
.operations-dashboard{display:grid;gap:20px}
.dashboard-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 22px;border:1px solid var(--panel-border);border-radius:16px;background:linear-gradient(135deg,#050505 0%,#071116 100%)}
.dashboard-toolbar h2,.dashboard-quick-panel h2{margin:5px 0 2px;color:#fff;font-size:clamp(20px,2vw,27px)}
.dashboard-toolbar p{margin:0;color:var(--panel-muted);font-size:12px}
.dashboard-eyebrow{display:inline-flex;align-items:center;gap:7px;color:var(--panel-accent);font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.dashboard-toolbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}
.dashboard-periods{display:flex;align-items:center;padding:4px;border:1px solid var(--panel-border);border-radius:10px;background:#000}
.dashboard-periods a{min-width:42px;padding:8px 9px;border-radius:7px;color:#82909a;font-size:11px;font-weight:800;text-align:center;text-decoration:none;transition:.2s ease}
.dashboard-periods a:hover{color:#fff}.dashboard-periods a.active{background:var(--panel-accent);color:#001015}
.dashboard-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.dashboard-kpi-card{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);gap:13px;min-height:144px;padding:20px;border:1px solid var(--panel-border);border-radius:16px;background:#050505;color:#fff;text-decoration:none;transition:border-color .2s ease,transform .2s ease,background .2s ease}
.dashboard-kpi-card:hover{border-color:rgba(18,184,220,.45);background:#071014;transform:translateY(-2px)}
.dashboard-kpi-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:13px;font-size:18px}
.dashboard-kpi-icon.blue{background:rgba(18,184,220,.13);color:#4fd8f5}.dashboard-kpi-icon.green{background:rgba(48,213,138,.12);color:#61e7a7}.dashboard-kpi-icon.violet{background:rgba(183,131,255,.13);color:#cda8ff}.dashboard-kpi-icon.orange{background:rgba(255,143,82,.13);color:#ffad7d}
.dashboard-kpi-copy{display:flex;min-width:0;flex-direction:column}.dashboard-kpi-copy strong{font-size:clamp(23px,2.4vw,32px);line-height:1.1;letter-spacing:-.03em}.dashboard-kpi-copy small{margin-top:6px;color:#97a4ad;font-size:12px}
.dashboard-delta{grid-column:1/-1;display:flex;align-items:center;gap:5px;color:#8e9ba4;font-size:11px;font-weight:800}.dashboard-delta small{margin-left:2px;color:#69757e;font-weight:500}.dashboard-delta.positive{color:#30d58a}.dashboard-delta.negative{color:#ff687c}.dashboard-delta.neutral{color:#86939c}
.dashboard-indicator-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));overflow:hidden;border:1px solid var(--panel-border);border-radius:16px;background:#050505}
.dashboard-indicator-strip>a{display:flex;min-width:0;min-height:112px;flex-direction:column;justify-content:center;padding:17px 19px;border-right:1px solid var(--panel-border);color:#fff;text-decoration:none;transition:background .2s ease}
.dashboard-indicator-strip>a:last-child{border-right:0}.dashboard-indicator-strip>a:hover{background:#081216}
.dashboard-indicator-strip span{overflow:hidden;color:#9ba7af;font-size:10px;font-weight:800;letter-spacing:.04em;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.dashboard-indicator-strip span i{width:19px;color:var(--panel-accent)}
.dashboard-indicator-strip strong{margin-top:7px;font-size:24px;line-height:1}.dashboard-indicator-strip small{margin-top:7px;overflow:hidden;color:#74818a;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.dashboard-main-grid{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(310px,.75fr);gap:20px;align-items:stretch}
.dashboard-content-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
.dashboard-chart-card,.dashboard-status-card,.dashboard-capacity-card,.dashboard-alert-card,.dashboard-top-tours{margin:0;height:100%}
.dashboard-chart-legend{display:flex;align-items:center;gap:14px;color:#89959e;font-size:10px;font-weight:700;text-transform:uppercase}
.dashboard-chart-legend span{display:flex;align-items:center;gap:6px}.dashboard-chart-legend i{width:15px;height:4px;border-radius:999px}.dashboard-chart-legend i.bookings{background:#18bfe8}.dashboard-chart-legend i.revenue{background:#30d58a}
.dashboard-chart-wrap{position:relative;min-height:310px;padding:4px 18px 0}.dashboard-chart-wrap canvas{display:block;max-width:100%}
.dashboard-chart-empty{position:absolute;inset:35px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;border:1px dashed #213039;border-radius:14px;background:rgba(0,0,0,.78);color:#84939c;text-align:center}.dashboard-chart-empty[hidden]{display:none}.dashboard-chart-empty i{font-size:28px;color:#284650}.dashboard-chart-empty strong{color:#d5dee3}.dashboard-chart-empty span{font-size:11px}
.dashboard-chart-summary{display:flex;gap:22px;flex-wrap:wrap;padding:14px 22px 20px;border-top:1px solid var(--panel-border);color:#7f8d96;font-size:11px}.dashboard-chart-summary b{margin-right:4px;color:#fff;font-size:13px}
.dashboard-donut-layout{display:grid;grid-template-columns:150px minmax(0,1fr);gap:22px;align-items:center;padding:22px}
.dashboard-donut{position:relative;width:150px;height:150px;border-radius:50%;box-shadow:0 0 35px rgba(0,0,0,.45)}
.dashboard-donut:after{position:absolute;inset:25px;border:1px solid #1e2a30;border-radius:50%;background:#050505;content:""}
.dashboard-donut>div{position:absolute;inset:0;z-index:1;display:flex;align-items:center;justify-content:center;flex-direction:column}.dashboard-donut strong{color:#fff;font-size:30px;line-height:1}.dashboard-donut span{margin-top:5px;color:#788790;font-size:10px;text-transform:uppercase}
.dashboard-status-legend{display:grid;gap:3px}.dashboard-status-legend a{display:grid;grid-template-columns:8px minmax(0,1fr) auto 34px;gap:8px;align-items:center;padding:7px 6px;border-radius:7px;color:#a8b3ba;font-size:11px;text-decoration:none}.dashboard-status-legend a:hover{background:#0a1216;color:#fff}.dashboard-status-legend i{width:8px;height:8px;border-radius:50%}.dashboard-status-legend strong{color:#fff}.dashboard-status-legend small{color:#687680;text-align:right}
.dashboard-capacity-list{display:grid;padding:4px 20px 20px}.dashboard-capacity-row{display:grid;grid-template-columns:43px minmax(0,1fr) 54px;gap:13px;align-items:center;padding:13px 0;border-bottom:1px solid var(--panel-border);color:#fff;text-decoration:none}.dashboard-capacity-row:last-child{border-bottom:0}.dashboard-capacity-row:hover .dashboard-capacity-title strong{color:var(--panel-accent)}
.dashboard-capacity-date{width:43px;height:43px;display:flex;align-items:center;justify-content:center;flex-direction:column;border:1px solid #25343b;border-radius:10px;background:#080c0e}.dashboard-capacity-date b{font-size:16px;line-height:1}.dashboard-capacity-date small{margin-top:3px;color:#6f7d85;font-size:9px}
.dashboard-capacity-main{display:grid;min-width:0;gap:9px}.dashboard-capacity-title{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:12px}.dashboard-capacity-title strong{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap;transition:color .2s ease}.dashboard-capacity-title small{flex:0 0 auto;color:#71808a;font-size:9px}
.dashboard-capacity-track{display:block;overflow:hidden;height:6px;border-radius:999px;background:#172126}.dashboard-capacity-track i{display:block;height:100%;border-radius:inherit;background:#30d58a}.dashboard-capacity-track i.warning{background:#f7b731}.dashboard-capacity-track i.full{background:#ff4d67}
.dashboard-capacity-value{text-align:right}.dashboard-capacity-value strong,.dashboard-capacity-value small{display:block}.dashboard-capacity-value strong{font-size:13px}.dashboard-capacity-value small{margin-top:4px;color:#73818a;font-size:9px}
.dashboard-alert-list{display:grid;padding:4px 20px 20px}.dashboard-alert-list>a{display:grid;grid-template-columns:39px minmax(0,1fr) auto;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid var(--panel-border);color:#fff;text-decoration:none}.dashboard-alert-list>a:last-child{border-bottom:0}.dashboard-alert-list>a>i{width:39px;height:39px;display:grid;place-items:center;border-radius:10px}.dashboard-alert-list>a.warning>i{background:rgba(247,183,49,.12);color:#f7b731}.dashboard-alert-list>a.danger>i{background:rgba(255,77,103,.12);color:#ff687c}.dashboard-alert-list>a.ok>i{background:rgba(48,213,138,.1);color:#30d58a}
.dashboard-alert-list span{display:flex;min-width:0;flex-direction:column}.dashboard-alert-list strong{font-size:12px}.dashboard-alert-list small{margin-top:4px;color:#73818a;font-size:10px}.dashboard-alert-list>a>b{min-width:28px;font-size:20px;text-align:right}
.dashboard-ranking{display:grid;padding:3px 20px 20px}.dashboard-ranking>a{display:grid;grid-template-columns:28px minmax(0,1fr) 65px 65px 76px;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid var(--panel-border);color:#fff;text-decoration:none}.dashboard-ranking>a:last-child{border-bottom:0}.dashboard-rank{width:25px;height:25px;display:grid;place-items:center;border:1px solid #29363d;border-radius:7px;background:#080b0d;color:#85939c;font-size:10px;font-weight:800}.dashboard-ranking-main{display:grid;min-width:0;gap:8px}.dashboard-ranking-main>strong{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.dashboard-ranking-main>i{display:block;overflow:hidden;height:5px;border-radius:999px;background:#172126}.dashboard-ranking-main>i b{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#12b8dc,#30d58a)}
.dashboard-ranking-metric{text-align:right}.dashboard-ranking-metric strong,.dashboard-ranking-metric small{display:block}.dashboard-ranking-metric strong{font-size:12px}.dashboard-ranking-metric small{margin-top:3px;color:#6f7d85;font-size:8px;text-transform:uppercase}
.dashboard-empty{min-height:170px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;color:#7e8c95;text-align:center}.dashboard-empty>i{font-size:25px;color:#2d4853}.dashboard-empty strong{color:#cad4d9;font-size:13px}.dashboard-empty a{color:var(--panel-accent);font-size:11px;text-decoration:none}

/* Booking payment workflow */
.payment-step-shell{width:min(980px,calc(100% - 30px))}
.payment-step-card{background:#030303!important}
.payment-step-header{text-align:center}
.payment-step-header>span{display:inline-flex;margin-bottom:12px;padding:6px 10px;border:1px solid rgba(12,178,219,.35);border-radius:999px;color:#45d8f4;font-size:9px;font-weight:900;letter-spacing:.15em;text-transform:uppercase}
.payment-step-header h1{max-width:720px;margin:0 auto;color:#fff;font-size:clamp(28px,5vw,46px);line-height:1.08}
.payment-step-header p{margin:14px 0 0;color:#89979e}
.payment-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:30px 0;padding:14px;border:1px solid #202a2f;border-radius:18px;background:#080808}
.payment-summary>div{display:flex;min-height:76px;flex-direction:column;justify-content:center;padding:12px 16px;border-radius:12px;background:#020202}
.payment-summary span,.driver-payment-summary span{color:#718087;font-size:9px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.payment-summary strong{margin-top:6px;color:#fff;font-size:20px}
.payment-method-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.payment-method-card{position:relative;display:flex;gap:15px;align-items:center;min-height:120px;padding:20px;border:1px solid #273137;border-radius:20px;background:#050505;cursor:pointer;transition:border-color .2s,background .2s}
.payment-method-card:has(input:checked){border-color:#0cb2db;background:rgba(12,178,219,.08);box-shadow:0 0 0 2px rgba(12,178,219,.09)}
.payment-method-card>input{position:absolute;top:15px;right:15px;width:auto}
.payment-method-icon{flex:0 0 48px;width:48px;height:48px;display:grid;place-items:center;border-radius:15px;background:rgba(12,178,219,.11);color:#2cd4f4;font-size:20px}
.payment-method-card>span:last-child,.payment-plan-grid label span,.payment-receipt-options label span{display:flex;flex-direction:column;gap:5px}
.payment-method-card strong{color:#fff;font-size:14px}.payment-method-card small{color:#849299;font-size:10px;line-height:1.45}
.payment-method-panel{margin-top:22px;padding:22px;border:1px solid #202a2f;border-radius:20px;background:#050505}
.payment-method-panel[hidden]{display:none}
.payment-method-panel h2{margin:0 0 13px;color:#fff;font-size:14px}.payment-method-panel h2:not(:first-child){margin-top:24px}
.payment-plan-grid,.payment-receipt-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.payment-plan-grid label,.payment-receipt-options label{position:relative;display:flex;gap:11px;align-items:center;padding:15px;border:1px solid #253037;border-radius:14px;background:#000;cursor:pointer}
.payment-plan-grid label:has(input:checked),.payment-receipt-options label:has(input:checked){border-color:#0cb2db;background:rgba(12,178,219,.07)}
.payment-plan-grid input,.payment-receipt-options input{width:auto}.payment-plan-grid strong,.payment-receipt-options strong{color:#fff}.payment-plan-grid small,.payment-receipt-options small{color:#7f8d94;font-size:10px}
.payment-account-grid{display:grid;gap:10px}
.payment-account-card{position:relative;display:block;padding:18px 18px 18px 46px;border:1px solid #263138;border-radius:15px;background:#000;cursor:pointer}
.payment-account-card:has(input:checked){border-color:#0cb2db;background:rgba(12,178,219,.06)}
.payment-account-card>input{position:absolute;top:22px;left:18px;width:auto}
.payment-account-card>span{display:flex;flex-direction:column;gap:5px}.payment-account-card strong{color:#fff}.payment-account-card small{color:#839198;font-size:10px}
.payment-account-card code{width:max-content;max-width:100%;padding:6px 9px;border-radius:7px;background:#0b1215;color:#7de7fb;font-size:12px;overflow-wrap:anywhere}
.payment-account-card em{margin-top:4px;color:#a9b4b9;font-size:10px;font-style:normal;line-height:1.55}
.payment-choice-form>.field{margin-top:22px}
.payment-waiting-state{display:flex;gap:18px;align-items:flex-start;margin:26px 0;padding:22px;border:1px solid rgba(12,178,219,.3);border-radius:18px;background:rgba(12,178,219,.07)}
.payment-waiting-state>i{margin-top:2px;color:#35d2ef;font-size:26px}.payment-waiting-state strong{color:#fff}.payment-waiting-state p{margin:7px 0 0;color:#9ba8ae;line-height:1.65}
.payment-page-actions{margin-bottom:18px}
.payment-account-admin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:20px}
.payment-account-admin-card{position:relative;padding:20px;border:1px solid #202a30;border-radius:17px;background:#050505}
.payment-account-admin-card>.status-badge{position:absolute;top:14px;right:14px}.payment-account-admin-card>i{color:#26ccea;font-size:24px}.payment-account-admin-card h3{margin:16px 0 5px;color:#fff;font-size:15px}.payment-account-admin-card p{min-height:34px;margin:0;color:#85939a;font-size:10px;line-height:1.5}
.payment-account-admin-card code{display:block;margin:13px 0;padding:9px;border-radius:9px;background:#000;color:#7ce6f9;overflow-wrap:anywhere}.payment-account-admin-card>div{display:flex;gap:7px;align-items:center}.payment-account-admin-card form{margin:0}
.payment-decision-form{margin-top:20px}.payment-decision-actions{display:flex;flex-wrap:wrap;gap:9px}.payment-review-table small{display:block}
.client-activity-list{display:grid;padding:8px 24px 24px}
.client-activity-list article{display:grid;grid-template-columns:36px minmax(0,1fr);gap:13px;padding:16px 0;border-bottom:1px solid #1d272c}
.client-activity-list article:last-child{border-bottom:0}.client-activity-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:rgba(12,178,219,.1);color:#31cee9}
.client-activity-list strong,.client-activity-list small{display:block}.client-activity-list strong{color:#fff;font-size:12px}.client-activity-list small{margin-top:5px;color:#74838a;font-size:9px}.client-activity-list p{margin:7px 0 0;color:#99a5ab;font-size:10px}
.driver-payment-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:20px 0}
.driver-payment-summary>div{display:flex;min-height:78px;flex-direction:column;justify-content:center;padding:14px;border:1px solid #222d32;border-radius:14px;background:#050505}
.driver-payment-summary strong{margin-top:5px;color:#fff;font-size:18px}.driver-payment-summary .is-due{border-color:rgba(245,158,11,.45);background:rgba(245,158,11,.08)}.driver-payment-summary .is-due strong{color:#fbbf24}.driver-payment-summary .is-paid{border-color:rgba(34,197,94,.35)}.driver-payment-summary .is-paid strong{color:#86efac}
.driver-collection-form{margin:18px 0;padding:18px;border:1px solid rgba(245,158,11,.35);border-radius:17px;background:rgba(245,158,11,.06)}
.driver-payment-confirm{display:flex;gap:9px;align-items:flex-start;margin:13px 0;color:#e6edf0;font-size:11px;line-height:1.45}.driver-payment-confirm input{flex:0 0 auto;width:auto;margin-top:2px}
.driver-closeout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0;padding:17px;border:1px solid #273238;border-radius:15px}.driver-closeout legend{padding:0 8px;color:#36d2ee;font-size:12px;font-weight:800}.driver-closeout>label{display:flex;gap:8px;color:#aab5ba;font-size:10px}.driver-closeout>label input{width:auto}
.driver-start-blocked{display:flex;gap:8px;align-items:center;padding:11px 13px;border:1px solid rgba(245,158,11,.3);border-radius:10px;color:#fbbf24;font-size:10px}
.status-badge.receipt_submitted,.status-badge.cash_approval_pending{background:rgba(245,158,11,.14);color:#fbbf24}.status-badge.partial_paid,.status-badge.cash_due{background:rgba(59,130,246,.14);color:#7bb3ff}.status-badge.paid{background:rgba(34,197,94,.14);color:#86efac}.status-badge.not_selected{background:rgba(107,114,128,.18);color:#aab2bc}
@media(max-width:820px){.payment-account-admin-grid{grid-template-columns:1fr 1fr}.payment-summary{grid-template-columns:1fr}.payment-method-grid{grid-template-columns:1fr}}
@media(max-width:620px){.payment-step-shell{width:min(100% - 16px,980px)}.payment-plan-grid,.payment-receipt-options,.payment-account-admin-grid,.driver-payment-summary,.driver-closeout{grid-template-columns:1fr}.payment-method-panel{padding:15px}.payment-method-card{min-height:105px;padding:16px}.payment-summary{margin-top:20px}}
.dashboard-recent-table{min-width:720px}.dashboard-recent-table td{font-size:11px}
.dashboard-quick-panel{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:22px}
.dashboard-quick-panel>div{flex:0 0 210px}.dashboard-quick-panel nav{display:grid;grid-template-columns:repeat(6,minmax(120px,1fr));gap:8px;flex:1}
.dashboard-quick-panel nav a{display:flex;min-width:0;align-items:center;gap:10px;padding:12px;border:1px solid var(--panel-border);border-radius:11px;background:#050505;color:#fff;text-decoration:none;transition:border-color .2s ease,background .2s ease}.dashboard-quick-panel nav a:hover{border-color:rgba(18,184,220,.4);background:#071116}.dashboard-quick-panel nav i{flex:0 0 33px;width:33px;height:33px;display:grid;place-items:center;border-radius:9px;background:rgba(18,184,220,.1);color:var(--panel-accent)}.dashboard-quick-panel nav span{display:flex;min-width:0;flex-direction:column}.dashboard-quick-panel nav strong{overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.dashboard-quick-panel nav small{margin-top:3px;overflow:hidden;color:#6f7c84;font-size:8px;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:1450px){.dashboard-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-quick-panel{align-items:flex-start;flex-direction:column}.dashboard-quick-panel>div{flex:auto}.dashboard-quick-panel nav{width:100%}}
@media(max-width:1180px){.dashboard-main-grid,.dashboard-content-grid{grid-template-columns:1fr}.dashboard-indicator-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-indicator-strip>a{border-bottom:1px solid var(--panel-border)}.dashboard-indicator-strip>a:nth-child(3){border-right:0}.dashboard-indicator-strip>a:nth-child(4),.dashboard-indicator-strip>a:nth-child(5){border-bottom:0}.dashboard-quick-panel nav{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.dashboard-toolbar{align-items:flex-start;flex-direction:column}.dashboard-toolbar-actions{width:100%;justify-content:flex-start}.dashboard-kpi-grid{grid-template-columns:1fr}.dashboard-indicator-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-indicator-strip>a:nth-child(3){border-right:1px solid var(--panel-border)}.dashboard-indicator-strip>a:nth-child(even){border-right:0}.dashboard-indicator-strip>a:nth-child(4){border-bottom:1px solid var(--panel-border)}.dashboard-indicator-strip>a:nth-child(5){grid-column:1/-1;border-right:0}.dashboard-donut-layout{grid-template-columns:1fr;justify-items:center}.dashboard-status-legend{width:100%}.dashboard-quick-panel nav{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-capacity-title{align-items:flex-start;flex-direction:column;gap:3px}.dashboard-capacity-title small{flex:auto}.dashboard-ranking>a{grid-template-columns:28px minmax(0,1fr) 58px}.dashboard-ranking-metric.optional{display:none}}
@media(max-width:500px){.dashboard-toolbar-actions .btn-admin{flex:1;justify-content:center}.dashboard-periods{width:100%;justify-content:space-between}.dashboard-periods a{flex:1}.dashboard-indicator-strip{grid-template-columns:1fr}.dashboard-indicator-strip>a,.dashboard-indicator-strip>a:nth-child(3),.dashboard-indicator-strip>a:nth-child(4),.dashboard-indicator-strip>a:nth-child(5){grid-column:auto;border-right:0;border-bottom:1px solid var(--panel-border)}.dashboard-indicator-strip>a:last-child{border-bottom:0}.dashboard-chart-legend{display:none}.dashboard-chart-wrap{padding-inline:4px}.dashboard-donut-layout{padding:18px}.dashboard-capacity-list,.dashboard-alert-list,.dashboard-ranking{padding-inline:14px}.dashboard-capacity-row{grid-template-columns:38px minmax(0,1fr) 45px;gap:9px}.dashboard-capacity-date{width:38px;height:38px}.dashboard-quick-panel nav{grid-template-columns:1fr}.dashboard-quick-panel nav strong{font-size:11px}}
.booking-privacy-intro{display:flex;gap:14px;align-items:flex-start;margin:0 0 22px;padding:16px 18px;border:1px solid rgba(12,178,219,.32);border-radius:14px;background:rgba(12,178,219,.07)}
.booking-privacy-intro>i{margin-top:3px;color:var(--panel-accent);font-size:22px}
.booking-privacy-intro strong{display:block;color:#fff}
.booking-privacy-intro p{margin:5px 0 0;color:#aab6bd;line-height:1.55}
.booking-consent-section{display:grid;gap:12px;margin:26px 0;padding:22px;border:1px solid #282828;border-radius:18px;background:#050505}
.booking-consent-section>header{display:flex;gap:14px;align-items:flex-start;margin-bottom:4px}
.booking-consent-section>header>span{display:grid;flex:0 0 42px;width:42px;height:42px;place-items:center;border-radius:12px;background:rgba(12,178,219,.12);color:var(--panel-accent)}
.booking-consent-section h2{margin:0;color:#fff;font-size:20px}
.booking-consent-section header p{margin:5px 0 0;color:#8f9da5;line-height:1.5}
.booking-consent-card{display:flex;gap:12px;align-items:flex-start;margin:0;padding:14px 15px;border:1px solid #292929;border-radius:13px;background:#090909;cursor:pointer}
.booking-consent-card:hover{border-color:rgba(12,178,219,.45)}
.booking-consent-card input{flex:0 0 auto;width:18px;height:18px;margin:2px 0 0;accent-color:var(--panel-accent)}
.booking-consent-card span{display:block;min-width:0}
.booking-consent-card strong,.booking-consent-card small{display:block}
.booking-consent-card strong{color:#f5f7f8;font-size:14px}
.booking-consent-card small{margin-top:4px;color:#95a2aa;font-size:12px;line-height:1.55}
.booking-consent-card a{color:#41cff2;text-decoration:underline}
.booking-consent-card.sensitive-consent{border-style:dashed}
.booking-consent-card.sensitive-consent.is-required{border-color:#d9a11e;background:rgba(217,161,30,.06)}
.booking-document-requirement{margin:20px 0 24px;border-color:rgba(12,178,219,.35);background:rgba(12,178,219,.07)}
.booking-document-requirement>i{color:var(--panel-accent)}
.booking-document-requirement strong{color:#e8faff}
.booking-document-requirement p{color:#a9bbc2}
.booking-document-upload input[type="file"]{width:100%;min-height:52px;padding:8px;border:1px solid #303b40;border-radius:12px;background:#020202;color:#dce7ea}
.booking-document-upload input[type="file"]::file-selector-button{min-height:34px;margin-right:12px;padding:7px 12px;border:1px solid rgba(12,178,219,.45);border-radius:9px;background:#071820;color:#dff8ff;cursor:pointer}
.booking-document-upload .identity-copy-consent{margin-top:12px}
.booking-document-upload .identity-copy-consent[hidden]{display:none}
.booking-policy-document{overflow:hidden;border:1px solid #292929;border-radius:13px;background:#080808}
.booking-policy-document summary{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:14px 15px;color:#fff;cursor:pointer;list-style:none}
.booking-policy-document summary::-webkit-details-marker{display:none}
.booking-policy-document summary span,.booking-policy-document summary strong,.booking-policy-document summary small{display:block}
.booking-policy-document summary small{margin-top:3px;color:#839199;font-size:11px}
.booking-policy-document summary i{color:var(--panel-accent);transition:transform .2s ease}
.booking-policy-document[open] summary i{transform:rotate(180deg)}
.booking-policy-document>div{max-height:320px;overflow:auto;padding:15px;border-top:1px solid #292929;color:#b7c1c6;font-size:13px;line-height:1.7;white-space:normal}
.booking-final-submit{min-height:50px}
@media(max-width:600px){.booking-consent-section{padding:16px}.booking-consent-section>header{align-items:center}.booking-consent-section h2{font-size:18px}.booking-consent-card{padding:13px}.booking-document-requirement{display:block}.booking-document-requirement>i{display:block;margin:0 0 10px}.booking-document-upload input[type="file"]::file-selector-button{display:block;margin:0 0 8px;width:100%}}
.manual-toolbar{display:flex;justify-content:space-between;gap:14px;align-items:center;margin:18px 0}
.manual-toolbar label{display:flex;flex:1;max-width:560px;align-items:center;gap:10px;padding:0 15px;border:1px solid var(--panel-border);border-radius:999px;background:#050505;color:var(--panel-accent)}
.manual-toolbar input{width:100%;height:44px;border:0;background:transparent;color:#fff;outline:0}
.manual-sections{display:grid;gap:12px}
.manual-section{overflow:hidden;margin:0}
.manual-section>summary{display:grid;grid-template-columns:46px minmax(0,1fr) 24px;gap:14px;align-items:center;padding:18px 20px;cursor:pointer;list-style:none}
.manual-section>summary::-webkit-details-marker{display:none}
.manual-icon{display:grid;width:44px;height:44px;place-items:center;border-radius:12px;background:rgba(12,178,219,.1);color:var(--panel-accent)}
.manual-section summary>span:nth-child(2),.manual-section summary small,.manual-section summary strong,.manual-section summary em{display:block}
.manual-section summary small{color:var(--panel-accent);font-size:10px;letter-spacing:.12em}
.manual-section summary strong{margin-top:2px;color:#fff;font-size:16px}
.manual-section summary em{margin-top:3px;color:#8e9ba3;font-size:12px;font-style:normal}
.manual-section summary>i{color:var(--panel-accent);transition:transform .2s ease}
.manual-section[open] summary>i{transform:rotate(180deg)}
.manual-content{padding:0 22px 22px 80px;border-top:1px solid var(--panel-border)}
.manual-content ol{display:grid;gap:10px;margin:18px 0 0;padding-left:22px}
.manual-content li{padding-left:5px;color:#b8c3c9;line-height:1.6}
.manual-content li::marker{color:var(--panel-accent);font-weight:800}
@media(max-width:650px){.manual-toolbar{align-items:stretch;flex-direction:column}.manual-toolbar label{max-width:none}.manual-section>summary{grid-template-columns:40px minmax(0,1fr) 18px;padding:15px}.manual-icon{width:38px;height:38px}.manual-content{padding:0 16px 18px 28px}}
.login-privacy-notice{margin:4px 0 16px;padding:12px 13px;border:1px solid rgba(12,178,219,.25);border-radius:11px;background:rgba(12,178,219,.05);color:#9daab0;font-size:12px;line-height:1.55}
.login-privacy-notice i,.login-privacy-notice a{color:var(--panel-accent)}
.login-privacy-notice a{text-decoration:underline}

.privacy-processor-list{display:grid;gap:12px;margin-top:16px}
.privacy-processor{display:grid;gap:4px;padding:14px 15px;border:1px solid rgba(12,178,219,.2);border-radius:12px;background:rgba(255,255,255,.025)}
.privacy-processor strong{color:#fff}
.privacy-processor span,.privacy-processor small{color:#9eabb1}
.privacy-processor p{margin:3px 0;color:#c5ced2}
.privacy-processor a{width:max-content;color:var(--panel-accent);font-size:12px;text-decoration:underline}
#identity-copy-consent[hidden]{display:none}

/* Client account experience */
.client-nav-label{display:block;margin:18px 16px 7px;color:#667481;font-size:9px;font-weight:900;letter-spacing:.13em;text-transform:uppercase}
.client-nav-label:first-child{margin-top:2px}
.client-sidebar-nav .nav-item{border:1px solid transparent}
.client-sidebar-nav .nav-item.active{border-color:rgba(12,178,219,.18);background:linear-gradient(90deg,rgba(12,178,219,.15),rgba(12,178,219,.03))}
.client-sidebar-nav .client-nav-primary{margin-top:18px;border-color:rgba(12,178,219,.35);background:rgba(12,178,219,.08);color:#6de8ff}
.client-sidebar-nav .client-nav-primary:hover{border-color:#0cb2db;background:#0cb2db;color:#001118}
.client-eyebrow{display:block;margin:0 0 7px;color:#33cdec;font-size:10px!important;font-weight:900;letter-spacing:.14em;text-transform:uppercase}
.client-topbar-action{flex:0 0 auto;border-radius:999px}
.client-dashboard-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.5fr) minmax(240px,.55fr);gap:26px;min-height:260px;margin-bottom:18px;padding:clamp(25px,4vw,42px);overflow:hidden;border:1px solid #24333c;border-radius:24px;background:radial-gradient(circle at 92% 15%,rgba(12,178,219,.2),transparent 30%),linear-gradient(135deg,#050505,#081116);box-shadow:0 24px 70px rgba(0,0,0,.25)}
.client-dashboard-hero::after{position:absolute;right:-80px;bottom:-110px;width:310px;height:310px;border:1px solid rgba(12,178,219,.12);border-radius:50%;content:"";pointer-events:none}
.client-hero-copy{position:relative;z-index:1;display:flex;min-width:0;flex-direction:column;justify-content:center}
.client-hero-heading{display:flex;align-items:flex-start;gap:17px}
.client-hero-heading>span{flex:0 0 50px;width:50px;height:50px;display:grid;place-items:center;border:1px solid rgba(12,178,219,.28);border-radius:15px;background:rgba(12,178,219,.1);color:#4de2ff;font-size:20px}
.client-hero-heading h2{margin:0;color:#fff;font-size:clamp(25px,3.1vw,39px);font-weight:800;letter-spacing:-.035em;line-height:1.08}
.client-hero-heading p{max-width:700px;margin:10px 0 0;color:#9aa8af;font-size:13px;line-height:1.65}
.client-hero-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:25px}
.client-hero-actions .btn-admin{min-height:45px;border-radius:999px;padding-inline:18px}
.client-next-trip{position:relative;z-index:1;display:flex;min-width:0;flex-direction:column;justify-content:center;align-items:center;padding:22px;border:1px solid rgba(255,255,255,.1);border-radius:19px;background:rgba(0,0,0,.55);text-align:center}
.client-next-trip>span{color:#6ce9ff;font-size:9px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.client-next-trip>strong{margin-top:10px;color:#fff;font-size:54px;line-height:.9}
.client-next-trip>small{margin-top:8px;color:#7f8f96;font-size:10px;font-weight:800;letter-spacing:.12em}
.client-next-trip>b{max-width:100%;margin-top:19px;overflow:hidden;color:#fff;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.client-next-trip>em{margin-top:7px;color:#89979e;font-size:10px;font-style:normal;line-height:1.5}
.client-next-trip>em i{margin-right:5px;color:#28ccec}
.client-attention{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:15px;margin:0 0 18px;padding:14px 17px;border:1px solid rgba(251,191,36,.28);border-radius:15px;background:rgba(251,191,36,.07)}
.client-attention>span{position:relative;width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:rgba(251,191,36,.12);color:#fbbf24}
.client-attention>span b{position:absolute;right:-5px;top:-5px;display:grid;min-width:18px;height:18px;place-items:center;border:2px solid #0c0c0c;border-radius:99px;background:#fbbf24;color:#211600;font-size:8px}
.client-attention strong{display:block;color:#fff;font-size:12px}
.client-attention p{margin:4px 0 0;color:#a99f83;font-size:10px;line-height:1.5}
.client-attention>a{color:#fbd56b;font-size:10px;font-weight:800;text-decoration:none;white-space:nowrap}
.client-attention>a i{margin-left:6px}
.client-stats .stat-card{border-radius:15px;background:#080d13}
.client-stats .stat-icon{border-radius:13px}
.client-bookings-panel{overflow:hidden}
.client-booking-list{display:grid;gap:12px;padding:20px}
.client-booking-card{display:grid;grid-template-columns:76px minmax(0,1fr) 185px;gap:20px;padding:20px;border:1px solid #222e35;border-radius:18px;background:#050505;transition:border-color .2s ease,transform .2s ease}
.client-booking-card:hover{border-color:rgba(12,178,219,.35);transform:translateY(-1px)}
.client-booking-date{display:flex;min-height:90px;align-items:center;align-self:start;flex-direction:column;justify-content:center;border:1px solid #26343b;border-radius:15px;background:#091116}
.client-booking-date strong{color:#fff;font-size:28px;line-height:1}
.client-booking-date span{margin-top:5px;color:#34d2ef;font-size:10px;font-weight:900;letter-spacing:.1em}
.client-booking-date small{margin-top:2px;color:#718087;font-size:9px}
.client-booking-main{min-width:0}
.client-booking-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.client-booking-title>div{min-width:0}
.client-booking-title>div>span{display:block;color:#5f7079;font-size:9px;font-weight:800}
.client-booking-title h3{margin:4px 0 0;overflow:hidden;color:#fff;font-size:16px;text-overflow:ellipsis;white-space:nowrap}
.client-booking-meta{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:11px;color:#89989f;font-size:10px}
.client-booking-meta span{display:inline-flex;align-items:center;gap:6px}
.client-booking-meta i{color:#25c9e7}
.client-booking-meta del{color:#6f7b80}.client-booking-meta b{color:#dce5e8}
.client-booking-progress{position:relative;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin:20px 0 0;padding:0;list-style:none}
.client-booking-progress::before{position:absolute;top:11px;left:10%;right:10%;height:2px;background:#202b30;content:""}
.client-booking-progress li{position:relative;z-index:1;display:flex;min-width:0;align-items:center;flex-direction:column;gap:6px;color:#58656b;font-size:8px;font-weight:800;text-align:center}
.client-booking-progress li i{width:23px;height:23px;display:grid;place-items:center;border:2px solid #202b30;border-radius:50%;background:#050505;color:#68767c;font-size:8px;font-style:normal}
.client-booking-progress li.done{color:#9babb1}.client-booking-progress li.done i{border-color:#0cb2db;background:#0b2931;color:#61e5ff}
.client-booking-progress li[aria-current="step"]{color:#64e6ff}
.client-booking-progress li[aria-current="step"] i{box-shadow:0 0 0 5px rgba(12,178,219,.09)}
.client-booking-guidance{display:flex;gap:10px;align-items:flex-start;margin-top:17px;padding:12px;border-radius:12px;background:#0a1115}
.client-booking-guidance>i{width:27px;height:27px;display:grid;flex:0 0 27px;place-items:center;border-radius:8px;background:rgba(12,178,219,.11);color:#39d2ef;font-size:11px}
.client-booking-guidance strong{display:block;color:#e6eef1;font-size:10px}
.client-booking-guidance p{margin:4px 0 0;color:#7e8c92;font-size:9px;line-height:1.5}
.client-booking-side{display:flex;min-width:0;align-items:flex-start;flex-direction:column;padding-left:18px;border-left:1px solid #20292d}
.client-booking-side>span{color:#6e7b81;font-size:8px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
.client-booking-side>.status-badge{margin-top:7px}
.client-booking-side>small{display:flex;width:100%;justify-content:space-between;gap:8px;margin-top:11px;color:#7f8d93;font-size:9px}
.client-booking-side>small b{color:#fff}
.client-booking-actions{display:grid;width:100%;gap:7px;margin-top:auto;padding-top:18px}
.client-booking-actions form,.client-booking-actions .btn-admin{width:100%;margin:0}
.client-empty-journey{display:flex;align-items:center;flex-direction:column;padding:42px 20px;text-align:center}
.client-empty-journey>i{width:58px;height:58px;display:grid;place-items:center;border-radius:17px;background:rgba(12,178,219,.1);color:#36d0ee;font-size:22px}
.client-empty-journey strong{margin-top:15px;color:#fff}.client-empty-journey p{max-width:520px;margin:7px auto 18px;color:#7f8d94;font-size:11px;line-height:1.6}
.client-booking-history{border-top:1px solid var(--panel-border)}
.client-booking-history>summary{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;color:#aab6bc;font-size:11px;font-weight:800;cursor:pointer;list-style:none}
.client-booking-history>summary::-webkit-details-marker{display:none}
.client-booking-history>summary i{margin-right:7px;color:#28cae8}.client-booking-history>summary b{display:grid;min-width:26px;height:26px;place-items:center;border-radius:99px;background:#101a20;color:#7bdff2;font-size:9px}
.client-booking-history>div{display:grid;padding:0 20px 20px}
.client-booking-history article{display:grid;grid-template-columns:90px minmax(0,1fr) 90px auto 28px;align-items:center;gap:12px;padding:12px;border-bottom:1px solid #1e282d;color:#819097;font-size:9px}
.client-booking-history article strong{overflow:hidden;color:#e8eef1;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.client-booking-history article>a{color:#36d2ef;text-align:center}
.client-profile-completion{display:flex;align-items:center;gap:10px;flex:0 0 185px}
.client-profile-completion>span{width:44px;height:44px;display:grid;place-items:center;border:4px solid rgba(12,178,219,.2);border-radius:50%;color:#5be4fb;font-size:10px;font-weight:900}
.client-profile-completion>div{flex:1}.client-profile-completion strong{display:block;color:#dce6ea;font-size:9px}
.client-profile-completion i{display:block;height:4px;margin-top:7px;overflow:hidden;border-radius:99px;background:#202b30}
.client-profile-completion i b{display:block;width:var(--profile-progress);height:100%;border-radius:inherit;background:#0cb2db}
.client-profile-form{display:grid;gap:15px}
.client-profile-group{margin:0;padding:18px;border:1px solid #222d33;border-radius:15px;background:#080d10}
.client-profile-group legend{width:auto;margin:0 0 14px;padding:0 8px;color:#dfe8eb;font-size:11px;font-weight:800}
.client-profile-group legend i{margin-right:7px;color:#2ccbe8}
.client-form-footer{display:flex;align-items:center;justify-content:space-between;gap:18px}
.client-form-footer p{max-width:600px;margin:0;color:#75848b;font-size:9px;line-height:1.5}.client-form-footer p i{margin-right:5px;color:#2dcde9}
.client-policy-scope{color:#31cce9!important;font-size:8px!important;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.client-policy-scope i{margin-right:5px}
.client-document-count{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid #27343a;border-radius:999px;color:#9facb2;font-size:9px;font-weight:800}.client-document-count i{color:#30cce9}
.client-document-uploader{margin:0 0 20px;border:1px solid #253239;border-radius:14px;background:#080d10}
.client-document-uploader>summary{display:flex;align-items:center;justify-content:space-between;padding:15px;cursor:pointer;list-style:none}
.client-document-uploader>summary::-webkit-details-marker{display:none}.client-document-uploader>summary>span{display:flex;align-items:center;gap:12px}
.client-document-uploader>summary>span>i{width:39px;height:39px;display:grid;place-items:center;border-radius:11px;background:rgba(12,178,219,.1);color:#34d2ef}
.client-document-uploader>summary strong,.client-document-uploader>summary small{display:block}.client-document-uploader>summary strong{color:#fff;font-size:11px}.client-document-uploader>summary small{margin-top:3px;color:#74838a;font-size:9px}
.client-document-uploader>summary>i{color:#33cdeb;transition:transform .2s}.client-document-uploader[open]>summary>i{transform:rotate(180deg)}
.client-document-uploader .document-upload-form{margin:0;padding:18px;border-top:1px solid #253239;border-bottom:0}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.client-help-count{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid #27343a;border-radius:999px;color:#9facb2;font-size:9px;font-weight:800}.client-help-count i{color:#30cce9}
.client-help-tools{display:grid;gap:13px;margin-bottom:18px}
.client-help-search{display:flex;align-items:center;gap:10px;max-width:620px;min-height:46px;padding:0 15px;border:1px solid #2a373e;border-radius:999px;background:#050505;color:#31cce9}
.client-help-search:focus-within{border-color:#0cb2db;box-shadow:0 0 0 3px rgba(12,178,219,.1)}
.client-help-search input{width:100%;min-height:42px;padding:0;border:0;outline:0;background:transparent;color:#fff;font-size:12px}
.client-help-search input::placeholder{color:#69777e}
.client-help-categories{display:flex;flex-wrap:wrap;gap:7px}
.client-help-categories button{min-height:34px;padding:6px 12px;border:1px solid #28343a;border-radius:999px;background:#070b0e;color:#849198;font-size:9px;font-weight:800;cursor:pointer}
.client-help-categories button:hover,.client-help-categories button.active{border-color:rgba(12,178,219,.5);background:rgba(12,178,219,.1);color:#65e5fb}
.client-faq-list{display:grid;gap:9px}
.client-faq-item{overflow:hidden;border:1px solid #222d32;border-radius:14px;background:#050505}
.client-faq-item[hidden]{display:none}
.client-faq-item>summary{display:grid;grid-template-columns:32px minmax(0,1fr) auto 24px;gap:12px;align-items:center;padding:17px 18px;cursor:pointer;list-style:none}
.client-faq-item>summary::-webkit-details-marker{display:none}
.client-faq-item>summary>span{color:#2ccbe8;font-size:9px;font-weight:900;letter-spacing:.1em}
.client-faq-item>summary>strong{color:#eef4f6;font-size:12px;line-height:1.45}
.client-faq-item>summary>small{padding:5px 8px;border-radius:99px;background:#10191e;color:#85939a;font-size:8px;font-weight:800;white-space:nowrap}
.client-faq-item>summary>i{width:24px;height:24px;display:grid;place-items:center;color:#31cee9;font-size:10px;transition:transform .2s}
.client-faq-item[open]{border-color:rgba(12,178,219,.35);background:#070c0f}
.client-faq-item[open]>summary>i{transform:rotate(45deg)}
.client-faq-item>div{padding:0 58px 18px 62px}
.client-faq-item>div p{margin:0;color:#99a7ad;font-size:11px;line-height:1.75}
.client-help-empty{display:flex;align-items:center;flex-direction:column;padding:34px;text-align:center}.client-help-empty[hidden]{display:none}.client-help-empty>i{color:#2bcbe8;font-size:22px}.client-help-empty strong{margin-top:10px;color:#fff}.client-help-empty p{margin:5px 0 0;color:#79878d;font-size:10px}
.client-support-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px;align-items:center;margin-top:20px;padding:17px;border:1px solid rgba(12,178,219,.23);border-radius:15px;background:rgba(12,178,219,.06)}
.client-support-card>span{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:rgba(12,178,219,.13);color:#45d9f4}
.client-support-card strong{display:block;color:#fff;font-size:11px}.client-support-card p{margin:4px 0 0;color:#829198;font-size:9px;line-height:1.5}

@media(max-width:1050px){
    .client-dashboard-hero{grid-template-columns:minmax(0,1fr) 230px}
    .client-booking-card{grid-template-columns:70px minmax(0,1fr)}
    .client-booking-side{grid-column:2;display:grid;grid-template-columns:auto auto minmax(140px,1fr);align-items:center;gap:10px;padding:14px 0 0;border-top:1px solid #20292d;border-left:0}
    .client-booking-side>.status-badge{margin:0}.client-booking-side>small{margin:0}.client-booking-actions{display:flex;justify-content:flex-end;margin:0;padding:0}.client-booking-actions .btn-admin{width:auto}.client-booking-actions form{width:auto}
}

/* Contextual Tab Navigation & Senior UX Redesign */
.client-context-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding: 6px;
    background: #060d13;
    border: 1px solid #1c2b33;
    border-radius: 16px;
    overflow-x: auto;
    scrollbar-width: none;
}
.client-context-nav::-webkit-scrollbar { display: none; }
.client-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: #8b9ea8;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: all .2s ease;
    min-height: 46px;
}
.client-tab-btn i { font-size: 15px; color: #526772; transition: color .2s ease; }
.client-tab-btn:hover {
    color: #e2eaf0;
    background: rgba(12,178,219,.06);
    border-color: rgba(12,178,219,.15);
}
.client-tab-btn:hover i { color: #38bdf8; }
.client-tab-btn.active {
    background: linear-gradient(135deg, rgba(12,178,219,.18), rgba(12,178,219,.06));
    border-color: rgba(12,178,219,.4);
    color: #fff;
    box-shadow: 0 4px 16px rgba(12,178,219,.12);
}
.client-tab-btn.active i { color: #38bdf8; }
.client-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 99px;
    background: #0284c7;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}
.client-tab-badge.warning { background: #d97706; }

.client-view-pane {
    display: none;
    animation: clientFadeIn .25s ease-out;
}
.client-view-pane.active { display: block; }
@keyframes clientFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Bottom Navigation Bar */
.client-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(5, 10, 15, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid #1a2b35;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 30px rgba(0,0,0,.6);
}
.client-bottom-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    max-width: 540px;
    margin: 0 auto;
}
.client-bottom-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 52px;
    padding: 6px 2px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #72848f;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s ease;
}
.client-bottom-btn i { font-size: 17px; }
.client-bottom-btn.active {
    color: #38bdf8;
    background: rgba(12,178,219,.1);
}
.client-bottom-btn.active i { transform: scale(1.12); }

@media(max-width:768px){
    body.panel-body { padding-bottom: 78px; }
    .client-bottom-nav { display: block; }
    .client-context-nav { display: none; }
    .client-topbar-action{display:none}
    .client-dashboard-hero{grid-template-columns:1fr;min-height:0;padding:24px}
    .client-next-trip{display:grid;grid-template-columns:auto 1fr;align-items:center;justify-items:start;text-align:left}
    .client-next-trip>span,.client-next-trip>b,.client-next-trip>em{grid-column:2}.client-next-trip>strong{grid-row:1/5;margin:0 18px 0 0}.client-next-trip>small{grid-column:1;grid-row:5;margin:5px 18px 0 0}
    .client-attention{grid-template-columns:auto minmax(0,1fr)}.client-attention>a{grid-column:2}
    .client-booking-card{grid-template-columns:62px minmax(0,1fr);gap:14px;padding:15px}
    .client-booking-side{grid-template-columns:1fr auto}.client-booking-side>small{grid-column:1/-1}.client-booking-actions{grid-column:1/-1;justify-content:flex-start}
    .client-profile-completion{flex-basis:150px}
    .client-form-footer{align-items:stretch;flex-direction:column}.client-form-footer .btn-admin{width:100%}
    .client-support-card{grid-template-columns:auto minmax(0,1fr)}.client-support-card>.btn-admin{grid-column:2;justify-self:start}
}
@media(max-width:560px){
    .client-dashboard-hero{padding:20px;border-radius:18px}.client-hero-heading>span{display:none}.client-hero-heading h2{font-size:27px}.client-hero-actions{align-items:stretch;flex-direction:column}.client-hero-actions .btn-admin{width:100%}
    .client-next-trip{padding:16px}.client-next-trip>strong{font-size:43px}
    .client-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.client-stats .stat-card{display:block}.client-stats .stat-icon{margin-bottom:10px}
    .client-bookings-panel .card-header{align-items:stretch;flex-direction:column}.client-bookings-panel .card-header>.btn-admin{width:100%}
    .client-booking-card{grid-template-columns:1fr}
    .client-booking-date{display:grid;grid-template-columns:auto auto auto;justify-content:start;gap:6px;min-height:0;padding:10px 13px}.client-booking-date strong{font-size:18px}.client-booking-date span,.client-booking-date small{margin:0}
    .client-booking-title{align-items:flex-start;flex-direction:column}.client-booking-title h3{white-space:normal}
    .client-booking-progress li span{font-size:7px}.client-booking-side{grid-column:1;display:flex;align-items:flex-start;flex-direction:column}.client-booking-actions{display:grid}.client-booking-actions form,.client-booking-actions .btn-admin{width:100%}
    .client-booking-history article{grid-template-columns:1fr auto}.client-booking-history article>*{min-width:0}.client-booking-history article>small{grid-column:1}.client-booking-history article>a{grid-column:2;grid-row:1}
    .client-profile-panel .card-header{align-items:stretch;flex-direction:column}.client-profile-completion{flex-basis:auto;width:100%}
    .client-document-count{align-self:flex-start}.client-document-uploader>summary>span>i{display:none}
    .client-help-panel .card-header{align-items:stretch;flex-direction:column}.client-help-count{align-self:flex-start}
    .client-faq-item>summary{grid-template-columns:25px minmax(0,1fr) 22px;padding:15px 13px}.client-faq-item>summary>small{grid-column:2;grid-row:2;justify-self:start}.client-faq-item>summary>i{grid-column:3;grid-row:1/3}
    .client-faq-item>div{padding:0 15px 16px 50px}
    .client-support-card{grid-template-columns:1fr}.client-support-card>span{display:none}.client-support-card>.btn-admin{grid-column:1;width:100%}
}
.legal-publication-checklist{overflow:hidden;margin:0 0 18px!important}
.legal-publication-checklist>summary{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;cursor:pointer;list-style:none}.legal-publication-checklist>summary::-webkit-details-marker{display:none}
.legal-publication-checklist>summary>span{display:flex;align-items:center;gap:13px}
.legal-publication-checklist>summary>span>i{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:rgba(12,178,219,.1);color:#35d0ed}
.legal-publication-checklist>summary strong,.legal-publication-checklist>summary small{display:block}
.legal-publication-checklist>summary strong{color:var(--panel-text,#fff);font-size:14px}
.legal-publication-checklist>summary small{margin-top:4px;color:var(--panel-muted,#7f8e96);font-size:12px}
.legal-publication-checklist>summary>i{color:var(--panel-accent,#34cee9);transition:transform .2s}
.legal-publication-checklist[open]>summary>i{transform:rotate(180deg)}
.legal-publication-checklist>div{padding:18px 24px;border-top:1px solid var(--panel-border);background:var(--panel-bg-subtle,rgba(8,13,16,.6))}
.legal-publication-checklist ul{display:grid;gap:9px;margin:0;padding-left:22px}
.legal-publication-checklist li{color:var(--panel-text,#a7b4ba);font-size:12px;line-height:1.55}
.legal-publication-checklist li::marker{color:var(--panel-accent,#2dcbe8)}
.legal-publication-checklist p{display:flex;flex-wrap:wrap;gap:9px;margin:18px 0 0}
.legal-publication-checklist a{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid var(--panel-border,#29363d);border-radius:9px;color:var(--panel-accent,#55dcf5);font-size:12px;text-decoration:none;background:rgba(12,178,219,.08);transition:all .15s ease}
.legal-publication-checklist a:hover{border-color:var(--panel-accent,#55dcf5);background:rgba(12,178,219,.16)}
.legal-visibility-panel{margin-top:18px}.legal-visibility-panel>p{margin:5px 0 15px;color:var(--panel-muted);font-size:11px;line-height:1.55}
.policies-management-table{min-width:1320px}
.data-requirement-groups{display:grid;gap:14px;margin-top:16px}
.data-requirement-groups .assignment-panel{margin:0;background:var(--panel-card-bg,#050505)}
.data-requirement-groups .assignment-panel>h3{margin:0 0 5px;color:var(--panel-text,#fff);font-size:14px}
.data-requirement-groups .assignment-panel>h3 i{margin-right:7px;color:var(--panel-accent)}
.data-requirement-groups .assignment-panel>p{margin:0 0 14px;color:var(--panel-muted);font-size:11px;line-height:1.55}
.context-help-floating {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 1180;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(17, 181, 219, .7);
    border-radius: 50%;
    background: #11b5db;
    color: #001015;
    font: 800 19px/1 Arial, sans-serif;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
    transition: transform .2s ease, background .2s ease;
}
.context-help-floating:hover,
.context-help-floating:focus-visible { transform: translateY(-2px); background: #39c9ea; outline: 3px solid rgba(17,181,219,.25); outline-offset: 3px; }
.context-help-trigger {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-inline-start: 8px;
    padding: 0;
    border: 1px solid rgba(17,181,219,.55);
    border-radius: 50%;
    background: rgba(17,181,219,.1);
    color: #20bce1;
    font: 800 12px/1 Arial, sans-serif;
    vertical-align: middle;
    cursor: pointer;
}
.context-help-trigger:hover,
.context-help-trigger:focus-visible { background: #11b5db; color: #001015; outline: 2px solid rgba(17,181,219,.25); outline-offset: 2px; }
.field > label { display: flex; align-items: center; gap: 0; width: fit-content; max-width: 100%; }
.panel-table thead th .context-help-trigger { width: 19px; height: 19px; margin-inline-start: 5px; font-size: 10px; }
.context-help-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0,0,0,.82);
    backdrop-filter: blur(8px);
}
.context-help-modal.is-open { display: flex; }
.context-help-dialog {
    width: min(680px, 100%);
    max-height: min(780px, calc(100dvh - 40px));
    overflow: hidden;
    border: 1px solid #26343a;
    border-radius: 22px;
    background: #050607;
    color: #f4f7f8;
    box-shadow: 0 30px 90px rgba(0,0,0,.7);
}
.context-help-dialog > header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 20px 22px;
    border-bottom: 1px solid #20282c;
}
.context-help-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: rgba(17,181,219,.13); color: #11b5db; font-size: 18px; }
.context-help-dialog header small { display: block; margin-bottom: 2px; color: #11b5db; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.context-help-dialog header h2 { margin: 0; color: #fff; font: 700 clamp(20px, 3vw, 27px)/1.2 var(--panel-font, Arial), sans-serif; }
.context-help-dialog header > button { width: 38px; height: 38px; border: 1px solid #263238; border-radius: 50%; background: #0b0e10; color: #dce5e8; }
.context-help-body { max-height: min(540px, calc(100dvh - 220px)); overflow: auto; padding: 24px; scrollbar-color: #11b5db #0a0d0f; }
.context-help-intro { margin: 0; color: #c6d0d4; font-size: 15px; line-height: 1.75; }
.context-help-steps { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; counter-reset: contextual-help; }
.context-help-steps li { position: relative; min-height: 42px; padding: 13px 15px 13px 54px; border: 1px solid #202c31; border-radius: 13px; background: #090c0e; color: #d8e1e4; line-height: 1.55; counter-increment: contextual-help; }
.context-help-steps li::before { content: counter(contextual-help); position: absolute; left: 13px; top: 12px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: rgba(17,181,219,.14); color: #1cc0e5; font-weight: 800; }
.context-help-requirement { margin: 16px 0 0; padding: 11px 13px; border-left: 3px solid #718087; border-radius: 8px; background: #0a0d0f; color: #aebbc0; }
.context-help-requirement.required { border-color: #11b5db; color: #d9f8ff; }
.context-help-related { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 18px; padding: 14px; border: 1px solid rgba(17,181,219,.25); border-radius: 12px; background: rgba(17,181,219,.07); color: #cfeef5; line-height: 1.55; }
.context-help-related i { color: #11b5db; margin-top: 3px; }
.context-help-manual-box { margin-top: 16px; padding-top: 14px; border-top: 1px solid #20282c; }
.context-help-dialog > footer { display: flex; justify-content: flex-end; gap: 10px; padding: 15px 22px; border-top: 1px solid #20282c; background: #07090a; }
body.context-help-open { overflow: hidden; }
@media (max-width: 640px) {
    .context-help-modal { padding: 0; align-items: flex-end; }
    .context-help-dialog { width: 100%; max-height: 92dvh; border-radius: 22px 22px 0 0; border-bottom: 0; }
    .context-help-dialog > header { padding: 16px; }
    .context-help-body { max-height: calc(92dvh - 154px); padding: 18px 16px; }
    .context-help-dialog > footer { padding: 12px 16px max(12px, env(safe-area-inset-bottom)); }
    .context-help-dialog > footer .btn-admin { flex: 1; }
    .context-help-floating { width: 44px; height: 44px; }
}
@media print {
    .context-help-floating, .context-help-trigger, .context-help-modal { display: none !important; }
}
.client-manual-page { min-height: 100dvh; background: #000; }
.client-manual-shell { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 26px 0 70px; }
.client-manual-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; margin-bottom: 36px; }
.client-manual-header > a:nth-child(2) { justify-self: center; }
.client-manual-header img { width: 150px; height: auto; }
.client-manual-header .admin-languages { justify-self: end; }
.client-manual-hero { max-width: 800px; margin: 0 auto 30px; text-align: center; }
.client-manual-hero > span { color: #11b5db; font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.client-manual-hero h1 { margin: 12px 0; color: #fff; font-size: clamp(34px, 6vw, 62px); line-height: 1.05; }
.client-manual-hero p { margin: 0 auto; max-width: 700px; color: #aab5ba; font-size: 16px; line-height: 1.7; }
.client-manual-toolbar { margin-bottom: 22px; }
.manual-screen-index { margin-top: 42px; }
.manual-screen-index > .card-header-copy { margin-bottom: 18px; }
.manual-screen-index > .card-header-copy h2 { margin: 5px 0 7px; color: #fff; }
.manual-screen-index > .card-header-copy p { max-width: 820px; color: #96a4aa; }
.manual-content .btn-admin { margin-top: 18px; }
@media (max-width: 700px) {
    .client-manual-shell { width: min(100% - 20px, 1080px); padding-top: 14px; }
    .client-manual-header { grid-template-columns: 1fr auto; }
    .client-manual-header > a:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
    .client-manual-header > a:first-child { grid-row: 2; font-size: 0; width: 44px; padding: 0; }
    .client-manual-header > a:first-child i { font-size: 14px; }
    .client-manual-header .admin-languages { grid-row: 2; }
    .client-manual-hero h1 { font-size: 36px; }
}

/* =============================================
   LIGHT MODE DESIGN SYSTEM FOR PANELS
   ============================================= */
:root[data-theme="light"],
:root[data-theme="light"]:root {
    --panel-bg: #f3f6fc;
    --panel-surface: #ffffff;
    --panel-raised: #f8fafc;
    --panel-border: #cbd5e1;
    --panel-muted: #64748b;
    --panel-text: #0f172a;
    --panel-accent: #0284c7;
    --panel-green: #16a34a;
    --panel-yellow: #d97706;
    --panel-red: #dc2626;
}

:root[data-theme="light"] body,
:root[data-theme="light"] .panel-body,
:root[data-theme="light"].panel-body {
    background: #f3f6fc !important;
    color: #0f172a !important;
}

:root[data-theme="light"] .panel-sidebar {
    background: #ffffff !important;
    border-right-color: #cbd5e1 !important;
    border-color: #cbd5e1 !important;
}

:root[data-theme="light"] .sidebar-logo {
    border-bottom-color: #e2e8f0 !important;
}

:root[data-theme="light"] .sidebar-nav .nav-item,
:root[data-theme="light"] .nav-item {
    color: #475569 !important;
}

:root[data-theme="light"] .sidebar-nav .nav-item:hover,
:root[data-theme="light"] .nav-item:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

:root[data-theme="light"] .sidebar-nav .nav-item.active,
:root[data-theme="light"] .nav-item.active {
    background: rgba(2, 132, 199, 0.1) !important;
    color: #0284c7 !important;
    box-shadow: inset 3px 0 0 #0284c7;
}

:root[data-theme="light"] .sidebar-footer {
    border-top-color: #e2e8f0 !important;
}

:root[data-theme="light"] .panel-topbar {
    border-bottom-color: #e2e8f0 !important;
}

:root[data-theme="light"] .panel-header h1 {
    color: #0f172a !important;
}

:root[data-theme="light"] .panel-header p {
    color: #64748b !important;
}

:root[data-theme="light"] .admin-languages {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

:root[data-theme="light"] .admin-languages a {
    color: #475569 !important;
}

:root[data-theme="light"] .admin-languages a.active {
    background: #0284c7 !important;
    color: #ffffff !important;
}

:root[data-theme="light"] .admin-user strong {
    color: #0f172a !important;
}

:root[data-theme="light"] .admin-user small {
    color: #64748b !important;
}

:root[data-theme="light"] .context-tabs {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
}

:root[data-theme="light"] .context-tab {
    color: #475569 !important;
}

:root[data-theme="light"] .context-tab:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

:root[data-theme="light"] .context-tab.active {
    background: #0284c7 !important;
    color: #ffffff !important;
}

:root[data-theme="light"] .panel-card,
:root[data-theme="light"] .stat-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

:root[data-theme="light"] .card-header {
    border-bottom-color: #e2e8f0 !important;
}

:root[data-theme="light"] .card-header h2,
:root[data-theme="light"] .card-header h3 {
    color: #0f172a !important;
}

:root[data-theme="light"] .panel-table th {
    background: #f8fafc !important;
    border-bottom-color: #cbd5e1 !important;
    color: #334155 !important;
}

:root[data-theme="light"] .panel-table td {
    border-bottom-color: #e2e8f0 !important;
    color: #1e293b !important;
}

:root[data-theme="light"] .panel-table tr:hover td,
:root[data-theme="light"] .panel-table tbody tr:hover {
    background: #f1f5f9 !important;
}

:root[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]):not([type="hidden"]),
:root[data-theme="light"] select,
:root[data-theme="light"] textarea,
:root[data-theme="light"] .form-control,
:root[data-theme="light"] .form-select,
:root[data-theme="light"] .form-input,
:root[data-theme="light"] .field input,
:root[data-theme="light"] .field select,
:root[data-theme="light"] .field textarea,
:root[data-theme="light"] .admin-form input,
:root[data-theme="light"] .admin-form select,
:root[data-theme="light"] .admin-form textarea,
:root[data-theme="light"] .panel-card input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]):not([type="hidden"]),
:root[data-theme="light"] .panel-card select,
:root[data-theme="light"] .panel-card textarea,
:root[data-theme="light"] .filter-grid input,
:root[data-theme="light"] .filter-grid select,
:root[data-theme="light"] .filter-grid textarea,
html[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]):not([type="hidden"]),
html[data-theme="light"] select,
html[data-theme="light"] textarea,
html[data-theme="light"] .form-control,
html[data-theme="light"] .form-select,
html[data-theme="light"] .form-input,
html[data-theme="light"] .field input,
html[data-theme="light"] .field select,
html[data-theme="light"] .field textarea,
html[data-theme="light"] .admin-form input,
html[data-theme="light"] .admin-form select,
html[data-theme="light"] .admin-form textarea,
html[data-theme="light"] .panel-card input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]):not([type="hidden"]),
html[data-theme="light"] .panel-card select,
html[data-theme="light"] .panel-card textarea,
html[data-theme="light"] .filter-grid input,
html[data-theme="light"] .filter-grid select,
html[data-theme="light"] .filter-grid textarea,
body.theme-light input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]):not([type="hidden"]),
body.theme-light select,
body.theme-light textarea,
body.theme-light .form-control,
body.theme-light .form-select,
body.theme-light .form-input,
body.theme-light .field input,
body.theme-light .field select,
body.theme-light .field textarea,
body.theme-light .admin-form input,
body.theme-light .admin-form select,
body.theme-light .admin-form textarea,
body.theme-light .panel-card input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]):not([type="hidden"]),
body.theme-light .panel-card select,
body.theme-light .panel-card textarea,
body.theme-light .filter-grid input,
body.theme-light .filter-grid select,
body.theme-light .filter-grid textarea {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
    font-size: 14.5px !important;
    border-radius: 9px !important;
    box-shadow: none !important;
}

:root[data-theme="light"] input::placeholder,
:root[data-theme="light"] textarea::placeholder,
:root[data-theme="light"] .form-input::placeholder,
:root[data-theme="light"] .field input::placeholder,
:root[data-theme="light"] .field textarea::placeholder,
:root[data-theme="light"] .admin-form input::placeholder,
:root[data-theme="light"] .admin-form textarea::placeholder,
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder,
body.theme-light input::placeholder,
body.theme-light textarea::placeholder {
    color: #64748b !important;
    opacity: 1 !important;
}

:root[data-theme="light"] input:focus,
:root[data-theme="light"] select:focus,
:root[data-theme="light"] textarea:focus,
html[data-theme="light"] input:focus,
html[data-theme="light"] select:focus,
html[data-theme="light"] textarea:focus,
body.theme-light input:focus,
body.theme-light select:focus,
body.theme-light textarea:focus {
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18) !important;
    background: #ffffff !important;
    outline: none !important;
}

:root[data-theme="light"] input[readonly],
:root[data-theme="light"] input:disabled,
:root[data-theme="light"] select:disabled,
:root[data-theme="light"] textarea:disabled,
html[data-theme="light"] input[readonly],
html[data-theme="light"] input:disabled,
html[data-theme="light"] select:disabled,
html[data-theme="light"] textarea:disabled,
body.theme-light input[readonly],
body.theme-light input:disabled,
body.theme-light select:disabled,
body.theme-light textarea:disabled {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #64748b !important;
    opacity: 0.8 !important;
    cursor: not-allowed !important;
}

:root[data-theme="light"] select option,
html[data-theme="light"] select option,
body.theme-light select option {
    background: #ffffff !important;
    color: #0f172a !important;
}

:root[data-theme="light"] input[type="date"],
:root[data-theme="light"] input[type="time"],
:root[data-theme="light"] input[type="datetime-local"],
:root[data-theme="light"] input[type="month"],
html[data-theme="light"] input[type="date"],
html[data-theme="light"] input[type="time"],
html[data-theme="light"] input[type="datetime-local"],
html[data-theme="light"] input[type="month"],
body.theme-light input[type="date"],
body.theme-light input[type="time"],
body.theme-light input[type="datetime-local"],
body.theme-light input[type="month"] {
    color-scheme: light !important;
}

/* Embedded search pill containers */
:root[data-theme="light"] .client-help-search,
:root[data-theme="light"] .catalog-filter,
:root[data-theme="light"] .manual-toolbar label,
:root[data-theme="light"] .client-manual-toolbar label,
:root[data-theme="light"] .admin-form .catalog-filter,
:root[data-theme="light"] .panel-card .client-help-search,
:root[data-theme="light"] .panel-card .catalog-filter,
:root[data-theme="light"] .panel-card .manual-toolbar label,
:root[data-theme="light"] .panel-card .client-manual-toolbar label,
html[data-theme="light"] .client-help-search,
html[data-theme="light"] .catalog-filter,
html[data-theme="light"] .manual-toolbar label,
html[data-theme="light"] .client-manual-toolbar label,
body.theme-light .client-help-search,
body.theme-light .catalog-filter,
body.theme-light .manual-toolbar label,
body.theme-light .client-manual-toolbar label {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 999px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
    color: #0284c7 !important;
}

:root[data-theme="light"] .client-help-search:focus-within,
:root[data-theme="light"] .catalog-filter:focus-within,
:root[data-theme="light"] .manual-toolbar label:focus-within,
:root[data-theme="light"] .client-manual-toolbar label:focus-within,
html[data-theme="light"] .client-help-search:focus-within,
html[data-theme="light"] .catalog-filter:focus-within,
html[data-theme="light"] .manual-toolbar label:focus-within,
html[data-theme="light"] .client-manual-toolbar label:focus-within,
body.theme-light .client-help-search:focus-within,
body.theme-light .catalog-filter:focus-within,
body.theme-light .manual-toolbar label:focus-within,
body.theme-light .client-manual-toolbar label:focus-within {
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18) !important;
}

/* Embedded search inner input overrides (must be transparent and borderless inside the pill) */
:root[data-theme="light"] .client-help-search input,
:root[data-theme="light"] .catalog-filter input,
:root[data-theme="light"] .manual-toolbar input,
:root[data-theme="light"] .client-manual-toolbar input,
:root[data-theme="light"] .panel-card .client-help-search input,
:root[data-theme="light"] .panel-card .catalog-filter input,
:root[data-theme="light"] .panel-card .manual-toolbar input,
:root[data-theme="light"] .panel-card .client-manual-toolbar input,
:root[data-theme="light"] .admin-form .catalog-filter input,
:root[data-theme="light"] .admin-form .catalog-filter > input,
html[data-theme="light"] .client-help-search input,
html[data-theme="light"] .catalog-filter input,
html[data-theme="light"] .manual-toolbar input,
html[data-theme="light"] .client-manual-toolbar input,
html[data-theme="light"] .panel-card .client-help-search input,
html[data-theme="light"] .panel-card .catalog-filter input,
html[data-theme="light"] .panel-card .manual-toolbar input,
html[data-theme="light"] .panel-card .client-manual-toolbar input,
html[data-theme="light"] .admin-form .catalog-filter input,
html[data-theme="light"] .admin-form .catalog-filter > input,
body.theme-light .client-help-search input,
body.theme-light .catalog-filter input,
body.theme-light .manual-toolbar input,
body.theme-light .client-manual-toolbar input,
body.theme-light .panel-card .client-help-search input,
body.theme-light .panel-card .catalog-filter input,
body.theme-light .panel-card .manual-toolbar input,
body.theme-light .panel-card .client-manual-toolbar input,
body.theme-light .admin-form .catalog-filter input,
body.theme-light .admin-form .catalog-filter > input {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #0f172a !important;
    min-height: auto !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

:root[data-theme="light"] .client-help-search input::placeholder,
:root[data-theme="light"] .catalog-filter input::placeholder,
:root[data-theme="light"] .manual-toolbar input::placeholder,
:root[data-theme="light"] .client-manual-toolbar input::placeholder,
html[data-theme="light"] .client-help-search input::placeholder,
html[data-theme="light"] .catalog-filter input::placeholder,
html[data-theme="light"] .manual-toolbar input::placeholder,
html[data-theme="light"] .client-manual-toolbar input::placeholder,
body.theme-light .client-help-search input::placeholder,
body.theme-light .catalog-filter input::placeholder,
body.theme-light .manual-toolbar input::placeholder,
body.theme-light .client-manual-toolbar input::placeholder {
    color: #64748b !important;
    opacity: 1 !important;
}


:root[data-theme="light"] .admin-modal-content,
:root[data-theme="light"] .admin-modal-dialog {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15) !important;
    color: #0f172a !important;
}

:root[data-theme="light"] .admin-modal-header,
:root[data-theme="light"] .admin-modal-footer {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

:root[data-theme="light"] .admin-modal-title {
    color: #0f172a !important;
}

:root[data-theme="light"] .admin-modal,
:root[data-theme="light"] .sidebar-backdrop {
    background: rgba(0, 0, 0, 0.4) !important;
}

:root[data-theme="light"] .modal-close,
:root[data-theme="light"] .sidebar-toggle,
:root[data-theme="light"] .btn-admin.secondary,
:root[data-theme="light"] .btn-admin.ghost {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}

:root[data-theme="light"] .quick-action,
:root[data-theme="light"] .policy-disclosure,
:root[data-theme="light"] .document-client-item,
:root[data-theme="light"] .language-code,
:root[data-theme="light"] .calendar-day,
:root[data-theme="light"] .lang-tab,
:root[data-theme="light"] .lang-panel {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
}

:root[data-theme="light"] .calendar-event,
:root[data-theme="light"] .policy-accept-form,
:root[data-theme="light"] .document-file-icon,
:root[data-theme="light"] .current-admin-badge {
    background-color: #f1f5f9 !important;
}

:root[data-theme="light"] .toggle-card,
:root[data-theme="light"] .check-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

:root[data-theme="light"] .assignment-panel {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

:root[data-theme="light"] .assignment-panel h3 {
    color: #0f172a !important;
}

:root[data-theme="light"] .check-card strong {
    color: #0f172a !important;
}

:root[data-theme="light"] .catalog-filter,
:root[data-theme="light"] .catalog-category-select {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

:root[data-theme="light"] .legal-publication-checklist,
html[data-theme="light"] .legal-publication-checklist,
body.theme-light .legal-publication-checklist {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
}

:root[data-theme="light"] .legal-publication-checklist > summary strong,
html[data-theme="light"] .legal-publication-checklist > summary strong,
body.theme-light .legal-publication-checklist > summary strong {
    color: #0f172a !important;
}

:root[data-theme="light"] .legal-publication-checklist > summary small,
html[data-theme="light"] .legal-publication-checklist > summary small,
body.theme-light .legal-publication-checklist > summary small {
    color: #64748b !important;
}

:root[data-theme="light"] .legal-publication-checklist > summary > span > i,
html[data-theme="light"] .legal-publication-checklist > summary > span > i,
body.theme-light .legal-publication-checklist > summary > span > i {
    background: rgba(2, 132, 199, 0.1) !important;
    color: #0284c7 !important;
}

:root[data-theme="light"] .legal-publication-checklist > summary > i,
html[data-theme="light"] .legal-publication-checklist > summary > i,
body.theme-light .legal-publication-checklist > summary > i {
    color: #0284c7 !important;
}

:root[data-theme="light"] .legal-publication-checklist > div,
html[data-theme="light"] .legal-publication-checklist > div,
body.theme-light .legal-publication-checklist > div {
    background: #f8fafc !important;
    border-top-color: #e2e8f0 !important;
}

:root[data-theme="light"] .legal-publication-checklist li,
html[data-theme="light"] .legal-publication-checklist li,
body.theme-light .legal-publication-checklist li {
    color: #334155 !important;
}

:root[data-theme="light"] .legal-publication-checklist li::marker,
html[data-theme="light"] .legal-publication-checklist li::marker,
body.theme-light .legal-publication-checklist li::marker {
    color: #0284c7 !important;
}

:root[data-theme="light"] .legal-publication-checklist a,
html[data-theme="light"] .legal-publication-checklist a,
body.theme-light .legal-publication-checklist a {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0284c7 !important;
}

:root[data-theme="light"] .legal-publication-checklist a:hover,
html[data-theme="light"] .legal-publication-checklist a:hover,
body.theme-light .legal-publication-checklist a:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
}

:root[data-theme="light"] .data-requirement-groups .assignment-panel,
html[data-theme="light"] .data-requirement-groups .assignment-panel,
body.theme-light .data-requirement-groups .assignment-panel {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

:root[data-theme="light"] .data-requirement-groups .assignment-panel > h3,
html[data-theme="light"] .data-requirement-groups .assignment-panel > h3,
body.theme-light .data-requirement-groups .assignment-panel > h3 {
    color: #0f172a !important;
}

:root[data-theme="light"] .content-section-tabs {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
}

:root[data-theme="light"] .content-section-tab {
    color: #475569 !important;
}

:root[data-theme="light"] .content-section-tab.active {
    background: rgba(2, 132, 199, 0.12) !important;
    border-color: #0284c7 !important;
    color: #0284c7 !important;
}

:root[data-theme="light"] .login-container {
    background: linear-gradient(135deg, #e8f0fe 0%, #f3f6fc 50%, #eef2ff 100%) !important;
}

:root[data-theme="light"] .login-box {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
}

:root[data-theme="light"] .login-box h2,
:root[data-theme="light"] .login-title {
    color: #0f172a !important;
}

:root[data-theme="light"] .login-subtitle {
    color: #64748b !important;
}

:root[data-theme="light"] .login-tabs {
    border-color: #cbd5e1 !important;
}

:root[data-theme="light"] .login-tab {
    color: #64748b !important;
}

:root[data-theme="light"] .login-language-select {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

:root[data-theme="light"] .admin-operation-menu {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.15) !important;
}

:root[data-theme="light"] .admin-operation-menu > header {
    background: #f8fafc !important;
    border-bottom-color: #e2e8f0 !important;
}

:root[data-theme="light"] .admin-operation-menu > header strong {
    color: #0f172a !important;
}

:root[data-theme="light"] .admin-operation-item {
    border-bottom-color: #f1f5f9 !important;
    color: #1e293b !important;
}

:root[data-theme="light"] .admin-operation-item:hover {
    background: #f8fafc !important;
}

:root[data-theme="light"] .admin-operation-copy strong {
    color: #0f172a !important;
}

:root[data-theme="light"] .media-quota-card {
    background: linear-gradient(135deg, #eef6ff, #f0f9ff) !important;
    border-color: rgba(2, 132, 199, 0.3) !important;
    color: #0f172a !important;
}

:root[data-theme="light"] .media-quota-head strong {
    color: #0f172a !important;
}

:root[data-theme="light"] .media-quota-head small,
:root[data-theme="light"] .media-quota-foot {
    color: #64748b !important;
}

:root[data-theme="light"] .media-quota-track {
    background: #e2e8f0 !important;
}

:root[data-theme="light"] .tour-admin-thumb,
:root[data-theme="light"] .tour-admin-placeholder {
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
}

:root[data-theme="light"] .badge-admin {
    background: #0284c7 !important;
}

:root[data-theme="light"] .form-input option,
:root[data-theme="light"] .field select option,
:root[data-theme="light"] .admin-form select option {
    background: #ffffff;
    color: #0f172a;
}

/* =========================================================================
   BLACKLINE MODERN UI/UX ENHANCEMENTS: COMMAND PALETTE, TOASTS, STEPPERS, ETC.
   ========================================================================= */

/* ── 1. PALETA DE COMANDOS GLOBAL (CTRL+K / CMD+K) ── */
.cmd-palette-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(2, 6, 12, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: flex-start;
    justify-content: center;
    padding: min(80px, 10vh) 16px 20px;
    opacity: 0;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.cmd-palette-backdrop.is-open {
    display: flex;
    opacity: 1;
}
.cmd-palette-dialog {
    background: var(--bg-card, #101726);
    border: 1px solid var(--border-color, #233148);
    border-radius: 16px;
    width: min(640px, 100%);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(12, 178, 219, 0.15);
    overflow: hidden;
    transform: scale(0.97) translateY(-10px);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.cmd-palette-backdrop.is-open .cmd-palette-dialog {
    transform: scale(1) translateY(0);
}
.cmd-palette-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color, #1f2c40);
    background: rgba(7, 11, 18, 0.6);
}
.cmd-palette-header i {
    color: var(--color-primary, #0cb2db);
    font-size: 18px;
}
.cmd-palette-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #f1f5f9;
    font-size: 16px;
    font-family: inherit;
}
.cmd-palette-input::placeholder {
    color: #64748b;
}
.cmd-palette-kbd {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.5px;
}
.cmd-palette-body {
    max-height: min(420px, 60vh);
    overflow-y: auto;
    padding: 8px;
}
.cmd-palette-group-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    padding: 8px 12px 4px;
}
.cmd-palette-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #cbd5e1;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    font-size: 14px;
}
.cmd-palette-item:hover,
.cmd-palette-item.is-selected {
    background: rgba(12, 178, 219, 0.15);
    color: #ffffff;
}
.cmd-palette-item.is-selected {
    outline: 1px solid rgba(12, 178, 219, 0.4);
}
.cmd-palette-item i {
    font-size: 15px;
    width: 20px;
    text-align: center;
    color: #94a3b8;
    transition: color 0.15s;
}
.cmd-palette-item:hover i,
.cmd-palette-item.is-selected i {
    color: #0cb2db;
}
.cmd-palette-item-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.cmd-palette-item-text strong {
    font-weight: 600;
    line-height: 1.2;
}
.cmd-palette-item-text small {
    font-size: 11px;
    color: #64748b;
}
.cmd-palette-item:hover .cmd-palette-item-text small,
.cmd-palette-item.is-selected .cmd-palette-item-text small {
    color: #94a3b8;
}
.cmd-palette-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    border-top: 1px solid var(--border-color, #1f2c40);
    background: rgba(7, 11, 18, 0.7);
    font-size: 12px;
    color: #64748b;
}
.cmd-palette-footer-shortcuts {
    display: flex;
    gap: 12px;
}

/* ── 2. SISTEMA DE TOASTS FLOTANTES ── */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(420px, calc(100vw - 32px));
    pointer-events: none;
}
.toast-card {
    background: #111a28;
    border: 1px solid #233148;
    border-left: 4px solid #0cb2db;
    border-radius: 10px;
    padding: 14px 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e2e8f0;
    font-size: 14px;
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.toast-card.is-visible {
    transform: translateX(0);
    opacity: 1;
}
.toast-card.success { border-left-color: #22c55e; }
.toast-card.success i.toast-icon { color: #22c55e; }
.toast-card.danger { border-left-color: #ef4444; }
.toast-card.danger i.toast-icon { color: #ef4444; }
.toast-card.warning { border-left-color: #f59e0b; }
.toast-card.warning i.toast-icon { color: #f59e0b; }
.toast-card.info { border-left-color: #38bdf8; }
.toast-card.info i.toast-icon { color: #38bdf8; }
.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast-content { flex: 1; line-height: 1.35; }
.toast-close {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    transition: color 0.15s;
}
.toast-close:hover { color: #f1f5f9; }

/* ── 3. LÍNEA DE TIEMPO / BOOKING STEPPER (CLIENTE) ── */
.booking-stepper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
    margin: 20px 0;
    padding: 0 10px;
}
.booking-stepper::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: #1e293b;
    z-index: 1;
}
.booking-stepper-progress {
    position: absolute;
    top: 20px;
    left: 40px;
    height: 3px;
    background: linear-gradient(90deg, #0cb2db, #22c55e);
    z-index: 2;
    transition: width 0.4s ease;
}
.stepper-step {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}
.stepper-node {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0f172a;
    border: 2px solid #334155;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
}
.stepper-step.is-done .stepper-node {
    background: #22c55e;
    border-color: #22c55e;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.35);
}
.stepper-step.is-active .stepper-node {
    background: #0cb2db;
    border-color: #0cb2db;
    color: #ffffff;
    box-shadow: 0 0 16px rgba(12, 178, 219, 0.5);
    animation: stepper-pulse 2s infinite;
}
@keyframes stepper-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 12px rgba(12, 178, 219, 0.4); }
    50% { transform: scale(1.08); box-shadow: 0 0 22px rgba(12, 178, 219, 0.7); }
}
.stepper-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.25;
}
.stepper-step.is-done .stepper-label { color: #cbd5e1; }
.stepper-step.is-active .stepper-label { color: #38bdf8; font-weight: 700; }

@media (max-width: 600px) {
    .booking-stepper { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .booking-stepper::before, .booking-stepper-progress { display: none; }
}

/* ── 4. ZONA DE CARGA DRAG & DROP (.upload-dropzone) ── */
.upload-dropzone {
    border: 2px dashed #2a3a50;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    background: rgba(10, 15, 24, 0.5);
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}
.upload-dropzone:hover,
.upload-dropzone.is-dragover {
    border-color: #0cb2db;
    background: rgba(12, 178, 219, 0.08);
}
.upload-dropzone-icon {
    font-size: 32px;
    color: #0cb2db;
    margin-bottom: 8px;
}
.upload-dropzone-title {
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 4px;
}
.upload-dropzone-hint {
    font-size: 12px;
    color: #64748b;
}
.upload-dropzone-preview {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-top: 10px;
    text-align: left;
}
.upload-dropzone-preview.has-file {
    display: flex;
}
.upload-dropzone-preview img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #334155;
}
.upload-dropzone-preview-info {
    flex: 1;
    min-width: 0;
}
.upload-dropzone-preview-name {
    font-size: 13px;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.upload-dropzone-preview-size {
    font-size: 11px;
    color: #94a3b8;
}

/* ── 5. BOTÓN GPS DIRECTO PARA CHOFERES (.btn-gps-route) ── */
.btn-gps-route {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.2s;
}
.btn-gps-route:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
    color: #ffffff !important;
}
.btn-gps-route i {
    font-size: 14px;
}

/* ── 6. MÓDULO DE HABILITACIONES OPERATIVAS Y FIRMA DIGITAL ── */
.op-compliance-two-col {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 24px;
    align-items: start;
}
@media (max-width: 960px) {
    .op-compliance-two-col {
        grid-template-columns: 1fr;
    }
}
.op-checklist-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.op-check-item {
    background: rgba(17, 24, 39, 0.65);
    border: 1px solid #1f2937;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.op-check-item:hover {
    border-color: rgba(12, 178, 219, 0.4);
    background: rgba(12, 178, 219, 0.04);
}
.op-check-item.is-checked {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.05);
}
.op-check-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #22c55e;
    cursor: pointer;
    flex-shrink: 0;
}
.op-check-item-text {
    flex: 1;
}
.op-check-item-text strong {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #f1f5f9;
    margin-bottom: 4px;
}
.op-check-item-text strong i {
    color: #0cb2db;
}
.op-check-item-text p {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.35;
}
.op-check-item-badge {
    margin-left: auto;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}
.op-check-item-badge.ok {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.op-check-item-badge.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.disclaimer-panel {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid #28384d;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.disclaimer-legal-box {
    background: rgba(10, 15, 26, 0.7);
    border: 1px solid #334155;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 16px;
    color: #e2e8f0;
    font-size: 13px;
    line-height: 1.6;
}
.disclaimer-legal-box strong {
    color: #fbbf24;
}
.signature-pad-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0;
}
.signature-canvas-container {
    background: #0b111e;
    border: 2px dashed #334155;
    border-radius: 10px;
    position: relative;
    width: 100%;
    height: 140px;
    touch-action: none;
}
.signature-canvas {
    width: 100%;
    height: 100%;
    cursor: crosshair;
}
.signature-canvas-hint {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 11px;
    color: #64748b;
    pointer-events: none;
}
.signature-seal-card {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(12, 178, 219, 0.08));
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.signature-seal-header {
    display: flex;
    align-items: center;
    gap: 10px;
}
.signature-seal-header i {
    font-size: 20px;
    color: #22c55e;
}
.signature-seal-header strong {
    font-size: 14px;
    color: #f1f5f9;
}
.signature-seal-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    font-size: 12px;
    color: #cbd5e1;
    background: rgba(0, 0, 0, 0.25);
    padding: 10px;
    border-radius: 6px;
}
.signature-seal-details code {
    font-size: 10px;
    color: #38bdf8;
    word-break: break-all;
}

/* ========================================================
   CLIENT PORTAL — Contextual Navigation & Accessible Panes
   ======================================================== */
.client-context-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 0 0 28px 0;
    padding: 6px;
    background: #0d131f;
    border: 1px solid #1f293d;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.client-tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 12px 18px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #94a3b8;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    user-select: none;
}

.client-tab-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #f1f5f9;
}

.client-tab-btn.active {
    background: linear-gradient(135deg, rgba(12, 178, 219, 0.2), rgba(12, 178, 219, 0.08));
    border-color: #0cb2db;
    color: #38bdf8;
    box-shadow: 0 0 15px rgba(12, 178, 219, 0.25);
}

.client-tab-btn i {
    font-size: 18px;
    flex-shrink: 0;
}

.client-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    background: #0284c7;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
}

.client-tab-badge.warning {
    background: #eab308;
    color: #0f172a;
}

/* View Panes */
.client-view-pane {
    display: none;
    animation: paneFadeIn 0.25s ease-out forwards;
}

.client-view-pane.active {
    display: block;
}

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

/* Mobile Bottom Navigation Bar */
.client-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 990;
    background: rgba(13, 19, 31, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid #1f293d;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
}

.client-bottom-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    max-width: 500px;
    margin: 0 auto;
}

.client-bottom-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 52px;
    padding: 6px 2px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: #94a3b8;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.client-bottom-btn i {
    font-size: 18px;
}

.client-bottom-btn.active {
    color: #38bdf8;
    background: rgba(12, 178, 219, 0.12);
}

@media (max-width: 991px) {
    .client-context-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .client-context-nav {
        display: none;
    }
    .client-bottom-nav {
        display: block;
    }
    .panel-main {
        margin-left: 0 !important;
        padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* ========================================================
   SENIOR-FRIENDLY TYPOGRAPHY & ACCESSIBILITY (WCAG AAA)
   ======================================================== */
.client-hero-copy .client-eyebrow {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
}

.client-hero-copy h2 {
    font-size: clamp(24px, 3.2vw, 34px) !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
}

.client-hero-copy p {
    font-size: 16.5px !important;
    line-height: 1.65 !important;
    color: #cbd5e1;
}

.client-next-trip span {
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
}

.client-next-trip strong {
    font-size: 38px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
}

.client-next-trip small {
    font-size: 15px !important;
    font-weight: 600 !important;
}

.client-next-trip b {
    font-size: 17px !important;
    font-weight: 700 !important;
}

.client-next-trip em {
    font-size: 14.5px !important;
    font-weight: 500 !important;
}

.client-attention strong {
    font-size: 17.5px !important;
    font-weight: 700 !important;
}

.client-attention p {
    font-size: 15px !important;
    line-height: 1.6 !important;
}

.client-attention a {
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 10px 18px !important;
}

.client-booking-card {
    padding: 22px !important;
    gap: 20px !important;
}

.client-booking-date strong {
    font-size: 28px !important;
    font-weight: 800 !important;
}

.client-booking-date span {
    font-size: 14.5px !important;
    font-weight: 700 !important;
}

.client-booking-date small {
    font-size: 13.5px !important;
}

.client-booking-title h3 {
    font-size: 19px !important;
    font-weight: 700 !important;
}

.client-booking-title span {
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
}

.client-booking-meta {
    font-size: 15px !important;
    gap: 16px !important;
}

.client-booking-meta span {
    font-size: 15px !important;
    font-weight: 600 !important;
}

.client-booking-meta span b {
    font-size: 16px !important;
    font-weight: 800 !important;
}

.client-booking-progress li {
    font-size: 13.5px !important;
}

.client-booking-progress li i {
    width: 28px !important;
    height: 28px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

.client-booking-guidance strong {
    font-size: 15px !important;
    font-weight: 700 !important;
}

.client-booking-guidance p {
    font-size: 14px !important;
    line-height: 1.55 !important;
}

.client-booking-side span {
    font-size: 13px !important;
    font-weight: 700 !important;
}

.status-badge {
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 6px 12px !important;
}

.client-profile-group legend {
    font-size: 17px !important;
    font-weight: 700 !important;
    margin-bottom: 14px !important;
}

.field label,
.client-profile-group label {
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: #e2e8f0;
    margin-bottom: 7px !important;
    display: block;
}

.field input,
.field select,
.field textarea,
.admin-form input,
.admin-form select,
.admin-form textarea {
    font-size: 15.5px !important;
    min-height: 48px !important;
    padding: 12px 16px !important;
    border-radius: 10px !important;
}

.field small,
#client-capacity-note,
#client-date-help {
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    margin-top: 6px !important;
}

.client-faq-item summary strong {
    font-size: 16.5px !important;
    font-weight: 600 !important;
}

.client-faq-item summary small {
    font-size: 13.5px !important;
    font-weight: 600 !important;
}

.client-faq-item p {
    font-size: 15.5px !important;
    line-height: 1.7 !important;
    color: #cbd5e1;
}

.driver-assignment strong {
    font-size: 16.5px !important;
    font-weight: 700 !important;
}

.driver-assignment small {
    font-size: 14px !important;
}

.policy-disclosure summary strong {
    font-size: 16px !important;
    font-weight: 700 !important;
}

.policy-content {
    font-size: 15px !important;
    line-height: 1.7 !important;
}

/* ========================================================
   LIGHT MODE STYLES FOR CLIENT PORTAL & PANELS (HIGH CONTRAST)
   ======================================================== */
:root[data-theme="light"] {
    --panel-bg: #f8fafc;
    --panel-surface: #ffffff;
    --panel-raised: #f1f5f9;
    --panel-border: #e2e8f0;
    --panel-muted: #64748b;
    --panel-text: #0f172a;
    --panel-accent: #0284c7;
}

:root[data-theme="light"] body.panel-body,
html[data-theme="light"] body.panel-body,
body.theme-light {
    background: #f8fafc !important;
    color: #0f172a !important;
}

/* Sidebar & Brand Logo (High Contrast) */
:root[data-theme="light"] .panel-sidebar,
html[data-theme="light"] .panel-sidebar,
body.theme-light .panel-sidebar {
    background: #ffffff !important;
    border-right: 1px solid #e2e8f0 !important;
}

:root[data-theme="light"] .sidebar-logo,
html[data-theme="light"] .sidebar-logo,
body.theme-light .sidebar-logo {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    min-height: 104px !important;
    box-sizing: border-box !important;
}

:root[data-theme="light"] .sidebar-logo img {
    filter: brightness(0) !important;
}

:root[data-theme="light"] .client-nav-label {
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

:root[data-theme="light"] .badge-client {
    background: #e0f2fe !important;
    color: #0284c7 !important;
    border: 1px solid #bae6fd !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .sidebar-nav .nav-item {
    color: #334155 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

:root[data-theme="light"] .sidebar-nav .nav-item i {
    color: #64748b !important;
}

:root[data-theme="light"] .sidebar-nav .nav-item:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

:root[data-theme="light"] .sidebar-nav .nav-item:hover i {
    color: #0284c7 !important;
}

:root[data-theme="light"] .sidebar-nav .nav-item.active {
    background: #e0f2fe !important;
    color: #0284c7 !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .sidebar-nav .nav-item.active i {
    color: #0284c7 !important;
}

:root[data-theme="light"] .sidebar-footer {
    border-top: 1px solid #e2e8f0 !important;
}

:root[data-theme="light"] .sidebar-footer .nav-item {
    color: #64748b !important;
}

:root[data-theme="light"] .sidebar-footer .nav-item.logout {
    color: #ef4444 !important;
}

/* Topbar & Header */
:root[data-theme="light"] .panel-topbar,
html[data-theme="light"] .panel-topbar,
body.theme-light .panel-topbar {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    min-height: 104px !important;
    box-sizing: border-box !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

:root[data-theme="light"] .panel-header h1 {
    color: #0f172a !important;
}

:root[data-theme="light"] .panel-header p,
:root[data-theme="light"] .client-eyebrow {
    color: #475569 !important;
    font-weight: 600 !important;
}

/* Action Buttons (High Contrast White Text) */
.btn-admin.primary,
:root[data-theme="light"] .btn-admin.primary,
:root[data-theme="light"] .client-topbar-action,
:root[data-theme="light"] .client-form-footer .btn-admin.primary {
    background: #0284c7 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25) !important;
}

.btn-admin.primary:hover,
:root[data-theme="light"] .btn-admin.primary:hover,
:root[data-theme="light"] .client-topbar-action:hover,
:root[data-theme="light"] .client-form-footer .btn-admin.primary:hover {
    background: #0369a1 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35) !important;
}

:root[data-theme="light"] .btn-admin.secondary {
    background: #f1f5f9 !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #1e293b !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .btn-admin.secondary:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

/* Context Navigation Tabs */
:root[data-theme="light"] .client-context-nav,
html[data-theme="light"] .client-context-nav,
body.theme-light .client-context-nav {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}

:root[data-theme="light"] .client-tab-btn,
html[data-theme="light"] .client-tab-btn,
body.theme-light .client-tab-btn {
    color: #334155 !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .client-tab-btn i,
html[data-theme="light"] .client-tab-btn i,
body.theme-light .client-tab-btn i {
    color: #64748b !important;
}

:root[data-theme="light"] .client-tab-btn:hover,
html[data-theme="light"] .client-tab-btn:hover,
body.theme-light .client-tab-btn:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

:root[data-theme="light"] .client-tab-btn:hover i,
html[data-theme="light"] .client-tab-btn:hover i,
body.theme-light .client-tab-btn:hover i {
    color: #0284c7 !important;
}

:root[data-theme="light"] .client-tab-btn.active,
html[data-theme="light"] .client-tab-btn.active,
body.theme-light .client-tab-btn.active {
    background: #e0f2fe !important;
    border-color: #0284c7 !important;
    color: #0284c7 !important;
    box-shadow: 0 0 12px rgba(2, 132, 199, 0.2) !important;
}

:root[data-theme="light"] .client-tab-btn.active i,
html[data-theme="light"] .client-tab-btn.active i,
body.theme-light .client-tab-btn.active i {
    color: #0284c7 !important;
}

:root[data-theme="light"] .client-tab-badge,
html[data-theme="light"] .client-tab-badge,
body.theme-light .client-tab-badge {
    background: #0284c7 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .client-tab-badge.warning,
html[data-theme="light"] .client-tab-badge.warning,
body.theme-light .client-tab-badge.warning {
    background: #d97706 !important;
    color: #ffffff !important;
}

/* Mobile Bottom Navigation */
:root[data-theme="light"] .client-bottom-nav,
html[data-theme="light"] .client-bottom-nav,
body.theme-light .client-bottom-nav {
    background: rgba(255, 255, 255, 0.98) !important;
    border-top: 1px solid #e2e8f0 !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05) !important;
}

:root[data-theme="light"] .client-bottom-btn,
html[data-theme="light"] .client-bottom-btn,
body.theme-light .client-bottom-btn {
    color: #64748b !important;
}

:root[data-theme="light"] .client-bottom-btn.active,
html[data-theme="light"] .client-bottom-btn.active,
body.theme-light .client-bottom-btn.active {
    background: #e0f2fe !important;
    color: #0284c7 !important;
}

/* Hero Section & Attention Card */
:root[data-theme="light"] .client-dashboard-hero,
html[data-theme="light"] .client-dashboard-hero,
body.theme-light .client-dashboard-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%) !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

:root[data-theme="light"] .client-hero-heading>span,
html[data-theme="light"] .client-hero-heading>span,
body.theme-light .client-hero-heading>span {
    background: #e0f2fe !important;
    border: 1.5px solid #bae6fd !important;
    color: #0284c7 !important;
}

:root[data-theme="light"] .client-hero-copy h2,
html[data-theme="light"] .client-hero-copy h2,
body.theme-light .client-hero-copy h2 {
    color: #0f172a !important;
}

:root[data-theme="light"] .client-hero-copy p,
html[data-theme="light"] .client-hero-copy p,
body.theme-light .client-hero-copy p {
    color: #334155 !important;
}

:root[data-theme="light"] .client-next-trip,
html[data-theme="light"] .client-next-trip,
body.theme-light .client-next-trip {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
}

:root[data-theme="light"] .client-next-trip>span,
html[data-theme="light"] .client-next-trip>span,
body.theme-light .client-next-trip>span {
    color: #0284c7 !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .client-next-trip>strong,
html[data-theme="light"] .client-next-trip>strong,
body.theme-light .client-next-trip>strong {
    color: #0284c7 !important;
}

:root[data-theme="light"] .client-next-trip>small,
html[data-theme="light"] .client-next-trip>small,
body.theme-light .client-next-trip>small {
    color: #64748b !important;
}

:root[data-theme="light"] .client-next-trip>b,
html[data-theme="light"] .client-next-trip>b,
body.theme-light .client-next-trip>b {
    color: #0f172a !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .client-next-trip>em,
html[data-theme="light"] .client-next-trip>em,
body.theme-light .client-next-trip>em {
    color: #475569 !important;
}

:root[data-theme="light"] .client-next-trip>em i,
html[data-theme="light"] .client-next-trip>em i,
body.theme-light .client-next-trip>em i {
    color: #0284c7 !important;
}

:root[data-theme="light"] .client-attention,
html[data-theme="light"] .client-attention,
body.theme-light .client-attention {
    background: #fffbeb !important;
    border: 1.5px solid #fde68a !important;
}

:root[data-theme="light"] .client-attention>span,
html[data-theme="light"] .client-attention>span,
body.theme-light .client-attention>span {
    background: #fef3c7 !important;
    color: #d97706 !important;
}

:root[data-theme="light"] .client-attention>span b,
html[data-theme="light"] .client-attention>span b,
body.theme-light .client-attention>span b {
    background: #d97706 !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

:root[data-theme="light"] .client-attention strong,
html[data-theme="light"] .client-attention strong,
body.theme-light .client-attention strong {
    color: #92400e !important;
}

:root[data-theme="light"] .client-attention p,
html[data-theme="light"] .client-attention p,
body.theme-light .client-attention p {
    color: #78350f !important;
}

:root[data-theme="light"] .client-attention>a,
html[data-theme="light"] .client-attention>a,
body.theme-light .client-attention>a {
    color: #b45309 !important;
    font-weight: 800 !important;
}

/* Booking Cards */
:root[data-theme="light"] .client-booking-card,
html[data-theme="light"] .client-booking-card,
body.theme-light .client-booking-card {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
}

:root[data-theme="light"] .client-booking-date,
html[data-theme="light"] .client-booking-date,
body.theme-light .client-booking-date {
    background: #f1f5f9 !important;
    border: 1.5px solid #e2e8f0 !important;
    color: #0f172a !important;
}

:root[data-theme="light"] .client-booking-date strong,
html[data-theme="light"] .client-booking-date strong,
body.theme-light .client-booking-date strong {
    color: #0f172a !important;
}

:root[data-theme="light"] .client-booking-date span,
html[data-theme="light"] .client-booking-date span,
body.theme-light .client-booking-date span {
    color: #0284c7 !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .client-booking-date small,
html[data-theme="light"] .client-booking-date small,
body.theme-light .client-booking-date small {
    color: #64748b !important;
}

:root[data-theme="light"] .client-booking-title h3,
html[data-theme="light"] .client-booking-title h3,
body.theme-light .client-booking-title h3 {
    color: #0f172a !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .client-booking-title span,
html[data-theme="light"] .client-booking-title span,
body.theme-light .client-booking-title span {
    color: #0284c7 !important;
    background: #e0f2fe !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .client-booking-meta,
html[data-theme="light"] .client-booking-meta,
body.theme-light .client-booking-meta {
    color: #475569 !important;
}

:root[data-theme="light"] .client-booking-meta span,
html[data-theme="light"] .client-booking-meta span,
body.theme-light .client-booking-meta span {
    color: #334155 !important;
}

:root[data-theme="light"] .client-booking-meta span b,
html[data-theme="light"] .client-booking-meta span b,
body.theme-light .client-booking-meta span b {
    color: #0f172a !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .client-booking-meta i,
html[data-theme="light"] .client-booking-meta i,
body.theme-light .client-booking-meta i {
    color: #0284c7 !important;
}

:root[data-theme="light"] .client-booking-meta del,
html[data-theme="light"] .client-booking-meta del,
body.theme-light .client-booking-meta del {
    color: #94a3b8 !important;
}

:root[data-theme="light"] .client-booking-guidance,
html[data-theme="light"] .client-booking-guidance,
body.theme-light .client-booking-guidance {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

:root[data-theme="light"] .client-booking-guidance>i,
html[data-theme="light"] .client-booking-guidance>i,
body.theme-light .client-booking-guidance>i {
    background: #e0f2fe !important;
    color: #0284c7 !important;
}

:root[data-theme="light"] .client-booking-guidance strong,
html[data-theme="light"] .client-booking-guidance strong,
body.theme-light .client-booking-guidance strong {
    color: #0f172a !important;
}

:root[data-theme="light"] .client-booking-guidance p,
html[data-theme="light"] .client-booking-guidance p,
body.theme-light .client-booking-guidance p {
    color: #475569 !important;
}

:root[data-theme="light"] .client-booking-side,
html[data-theme="light"] .client-booking-side,
body.theme-light .client-booking-side {
    background: #f8fafc !important;
    border-left: 1.5px solid #e2e8f0 !important;
}

:root[data-theme="light"] .client-booking-side>span,
html[data-theme="light"] .client-booking-side>span,
body.theme-light .client-booking-side>span {
    color: #64748b !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .client-booking-side>small,
html[data-theme="light"] .client-booking-side>small,
body.theme-light .client-booking-side>small {
    color: #475569 !important;
}

:root[data-theme="light"] .client-booking-side>small b,
html[data-theme="light"] .client-booking-side>small b,
body.theme-light .client-booking-side>small b {
    color: #0f172a !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .client-booking-progress::before,
html[data-theme="light"] .client-booking-progress::before,
body.theme-light .client-booking-progress::before {
    background: #e2e8f0 !important;
}

:root[data-theme="light"] .client-booking-progress li,
html[data-theme="light"] .client-booking-progress li,
body.theme-light .client-booking-progress li {
    color: #64748b !important;
}

:root[data-theme="light"] .client-booking-progress li i,
html[data-theme="light"] .client-booking-progress li i,
body.theme-light .client-booking-progress li i {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}

:root[data-theme="light"] .client-booking-progress li.done,
html[data-theme="light"] .client-booking-progress li.done,
body.theme-light .client-booking-progress li.done {
    color: #0f172a !important;
}

:root[data-theme="light"] .client-booking-progress li.done i,
html[data-theme="light"] .client-booking-progress li.done i,
body.theme-light .client-booking-progress li.done i {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
}

:root[data-theme="light"] .client-booking-progress li.done span,
html[data-theme="light"] .client-booking-progress li.done span,
body.theme-light .client-booking-progress li.done span {
    color: #0f172a !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .client-booking-progress li[aria-current="step"],
html[data-theme="light"] .client-booking-progress li[aria-current="step"],
body.theme-light .client-booking-progress li[aria-current="step"] {
    color: #0284c7 !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .client-booking-progress li[aria-current="step"] i,
html[data-theme="light"] .client-booking-progress li[aria-current="step"] i,
body.theme-light .client-booking-progress li[aria-current="step"] i {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 5px rgba(2, 132, 199, 0.18) !important;
}

/* Booking History in Trips tab */
:root[data-theme="light"] .client-booking-history,
html[data-theme="light"] .client-booking-history,
body.theme-light .client-booking-history {
    border-top: 1.5px solid #e2e8f0 !important;
}

:root[data-theme="light"] .client-booking-history>summary,
html[data-theme="light"] .client-booking-history>summary,
body.theme-light .client-booking-history>summary {
    color: #0f172a !important;
    background: #f8fafc !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .client-booking-history>summary i,
html[data-theme="light"] .client-booking-history>summary i,
body.theme-light .client-booking-history>summary i {
    color: #0284c7 !important;
}

:root[data-theme="light"] .client-booking-history>summary b,
html[data-theme="light"] .client-booking-history>summary b,
body.theme-light .client-booking-history>summary b {
    background: #e0f2fe !important;
    color: #0284c7 !important;
    border: 1px solid #bae6fd !important;
}

:root[data-theme="light"] .client-booking-history article,
html[data-theme="light"] .client-booking-history article,
body.theme-light .client-booking-history article {
    border-bottom: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}

:root[data-theme="light"] .client-booking-history article strong,
html[data-theme="light"] .client-booking-history article strong,
body.theme-light .client-booking-history article strong {
    color: #0f172a !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .client-booking-history article>a,
html[data-theme="light"] .client-booking-history article>a,
body.theme-light .client-booking-history article>a {
    color: #0284c7 !important;
    font-weight: 700 !important;
}

/* Empty States */
:root[data-theme="light"] .client-empty-journey,
:root[data-theme="light"] .client-help-empty,
:root[data-theme="light"] .empty-state,
html[data-theme="light"] .client-empty-journey,
html[data-theme="light"] .client-help-empty,
html[data-theme="light"] .empty-state,
body.theme-light .client-empty-journey,
body.theme-light .client-help-empty,
body.theme-light .empty-state {
    color: #475569 !important;
}

:root[data-theme="light"] .client-empty-journey>i,
:root[data-theme="light"] .client-help-empty>i,
html[data-theme="light"] .client-empty-journey>i,
html[data-theme="light"] .client-help-empty>i,
body.theme-light .client-empty-journey>i,
body.theme-light .client-help-empty>i {
    background: #e0f2fe !important;
    color: #0284c7 !important;
}

:root[data-theme="light"] .client-empty-journey strong,
:root[data-theme="light"] .client-help-empty strong,
html[data-theme="light"] .client-empty-journey strong,
html[data-theme="light"] .client-help-empty strong,
body.theme-light .client-empty-journey strong,
body.theme-light .client-help-empty strong {
    color: #0f172a !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .client-empty-journey p,
:root[data-theme="light"] .client-help-empty p,
html[data-theme="light"] .client-empty-journey p,
html[data-theme="light"] .client-help-empty p,
body.theme-light .client-empty-journey p,
body.theme-light .client-help-empty p {
    color: #475569 !important;
}

/* Profile Form & Fieldsets (High Contrast Cards) */
:root[data-theme="light"] .client-profile-completion>span,
html[data-theme="light"] .client-profile-completion>span,
body.theme-light .client-profile-completion>span {
    background: #e0f2fe !important;
    border: 4px solid #bae6fd !important;
    color: #0284c7 !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .client-profile-completion strong,
html[data-theme="light"] .client-profile-completion strong,
body.theme-light .client-profile-completion strong {
    color: #0f172a !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .client-profile-completion i,
html[data-theme="light"] .client-profile-completion i,
body.theme-light .client-profile-completion i {
    background: #e2e8f0 !important;
}

:root[data-theme="light"] .client-profile-completion i b,
html[data-theme="light"] .client-profile-completion i b,
body.theme-light .client-profile-completion i b {
    background: #0284c7 !important;
}

:root[data-theme="light"] .client-profile-group,
html[data-theme="light"] .client-profile-group,
body.theme-light .client-profile-group {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 16px !important;
}

:root[data-theme="light"] .client-profile-group legend,
html[data-theme="light"] .client-profile-group legend,
body.theme-light .client-profile-group legend {
    color: #0f172a !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .client-profile-group legend i,
html[data-theme="light"] .client-profile-group legend i,
body.theme-light .client-profile-group legend i {
    color: #0284c7 !important;
}

:root[data-theme="light"] .client-profile-group label,
:root[data-theme="light"] .field label,
html[data-theme="light"] .client-profile-group label,
html[data-theme="light"] .field label,
body.theme-light .client-profile-group label,
body.theme-light .field label {
    color: #0f172a !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .field input,
:root[data-theme="light"] .field select,
:root[data-theme="light"] .field textarea,
:root[data-theme="light"] .admin-form input,
:root[data-theme="light"] .admin-form select,
:root[data-theme="light"] .admin-form textarea,
html[data-theme="light"] .field input,
html[data-theme="light"] .field select,
html[data-theme="light"] .field textarea,
body.theme-light .field input,
body.theme-light .field select,
body.theme-light .field textarea {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
    font-size: 15px !important;
    border-radius: 10px !important;
}

:root[data-theme="light"] .field input:focus,
:root[data-theme="light"] .field select:focus,
:root[data-theme="light"] .field textarea:focus,
:root[data-theme="light"] .admin-form input:focus,
:root[data-theme="light"] .admin-form select:focus,
:root[data-theme="light"] .admin-form textarea:focus,
html[data-theme="light"] .field input:focus,
body.theme-light .field input:focus {
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18) !important;
    outline: none !important;
}

:root[data-theme="light"] .field input::placeholder,
:root[data-theme="light"] .field textarea::placeholder,
html[data-theme="light"] .field input::placeholder,
body.theme-light .field input::placeholder {
    color: #94a3b8 !important;
}

:root[data-theme="light"] .field small,
:root[data-theme="light"] #client-capacity-note,
:root[data-theme="light"] #client-date-help,
html[data-theme="light"] .field small,
body.theme-light .field small {
    color: #475569 !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
}

:root[data-theme="light"] .client-form-footer p,
html[data-theme="light"] .client-form-footer p,
body.theme-light .client-form-footer p {
    color: #475569 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

:root[data-theme="light"] .client-form-footer p i,
html[data-theme="light"] .client-form-footer p i,
body.theme-light .client-form-footer p i {
    color: #0284c7 !important;
}

/* Document Vault & Upload Dropzone */
:root[data-theme="light"] .client-document-uploader,
html[data-theme="light"] .client-document-uploader,
body.theme-light .client-document-uploader {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 16px !important;
}

:root[data-theme="light"] .client-document-uploader>summary,
html[data-theme="light"] .client-document-uploader>summary,
body.theme-light .client-document-uploader>summary {
    color: #0f172a !important;
}

:root[data-theme="light"] .client-document-uploader>summary>span>i,
html[data-theme="light"] .client-document-uploader>summary>span>i,
body.theme-light .client-document-uploader>summary>span>i {
    background: #e0f2fe !important;
    color: #0284c7 !important;
}

:root[data-theme="light"] .client-document-uploader>summary strong,
html[data-theme="light"] .client-document-uploader>summary strong,
body.theme-light .client-document-uploader>summary strong {
    color: #0f172a !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .client-document-uploader>summary small,
html[data-theme="light"] .client-document-uploader>summary small,
body.theme-light .client-document-uploader>summary small {
    color: #475569 !important;
    font-size: 13.5px !important;
}

:root[data-theme="light"] .client-document-uploader>summary>i,
html[data-theme="light"] .client-document-uploader>summary>i,
body.theme-light .client-document-uploader>summary>i {
    color: #0284c7 !important;
}

:root[data-theme="light"] .client-document-uploader .document-upload-form,
html[data-theme="light"] .client-document-uploader .document-upload-form,
body.theme-light .client-document-uploader .document-upload-form {
    border-top: 1.5px solid #cbd5e1 !important;
}

:root[data-theme="light"] .privacy-notice,
html[data-theme="light"] .privacy-notice,
body.theme-light .privacy-notice {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
}

:root[data-theme="light"] .privacy-notice strong,
html[data-theme="light"] .privacy-notice strong,
body.theme-light .privacy-notice strong {
    color: #0f172a !important;
}

:root[data-theme="light"] .privacy-notice p,
html[data-theme="light"] .privacy-notice p,
body.theme-light .privacy-notice p {
    color: #334155 !important;
}

:root[data-theme="light"] .client-document-count,
:root[data-theme="light"] .client-help-count,
html[data-theme="light"] .client-document-count,
html[data-theme="light"] .client-help-count,
body.theme-light .client-document-count,
body.theme-light .client-help-count {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .document-client-item,
html[data-theme="light"] .document-client-item,
body.theme-light .document-client-item {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
}

:root[data-theme="light"] .document-client-item .document-file-icon,
html[data-theme="light"] .document-client-item .document-file-icon,
body.theme-light .document-client-item .document-file-icon {
    background: #e0f2fe !important;
    color: #0284c7 !important;
}

:root[data-theme="light"] .document-client-item strong,
html[data-theme="light"] .document-client-item strong,
body.theme-light .document-client-item strong {
    color: #0f172a !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .document-client-item small,
html[data-theme="light"] .document-client-item small,
body.theme-light .document-client-item small {
    color: #64748b !important;
}

:root[data-theme="light"] .document-client-item p,
html[data-theme="light"] .document-client-item p,
body.theme-light .document-client-item p {
    color: #dc2626 !important;
    font-weight: 600 !important;
}

:root[data-theme="light"] .upload-dropzone,
html[data-theme="light"] .upload-dropzone,
body.theme-light .upload-dropzone {
    background: #f8fafc !important;
    border: 2px dashed #cbd5e1 !important;
}

:root[data-theme="light"] .upload-dropzone-title,
html[data-theme="light"] .upload-dropzone-title,
body.theme-light .upload-dropzone-title {
    color: #0f172a !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .upload-dropzone-hint,
html[data-theme="light"] .upload-dropzone-hint,
body.theme-light .upload-dropzone-hint {
    color: #64748b !important;
}

/* Help Center & FAQ */
:root[data-theme="light"] .client-help-search,
:root[data-theme="light"] .panel-card .client-help-search,
html[data-theme="light"] .client-help-search,
html[data-theme="light"] .panel-card .client-help-search,
body.theme-light .client-help-search,
body.theme-light .panel-card .client-help-search {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 999px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    color: #0284c7 !important;
}

:root[data-theme="light"] .client-help-search input,
:root[data-theme="light"] .panel-card .client-help-search input,
html[data-theme="light"] .client-help-search input,
html[data-theme="light"] .panel-card .client-help-search input,
body.theme-light .client-help-search input,
body.theme-light .panel-card .client-help-search input {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #0f172a !important;
    font-size: 15px !important;
    min-height: auto !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

:root[data-theme="light"] .client-help-search input::placeholder,
:root[data-theme="light"] .panel-card .client-help-search input::placeholder,
html[data-theme="light"] .client-help-search input::placeholder,
body.theme-light .client-help-search input::placeholder {
    color: #64748b !important;
}

:root[data-theme="light"] .client-help-categories button,
html[data-theme="light"] .client-help-categories button,
body.theme-light .client-help-categories button {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #334155 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 7px 16px !important;
}

:root[data-theme="light"] .client-help-categories button:hover,
html[data-theme="light"] .client-help-categories button:hover,
body.theme-light .client-help-categories button:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

:root[data-theme="light"] .client-help-categories button.active,
html[data-theme="light"] .client-help-categories button.active,
body.theme-light .client-help-categories button.active {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
}

:root[data-theme="light"] .client-faq-item,
html[data-theme="light"] .client-faq-item,
body.theme-light .client-faq-item {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

:root[data-theme="light"] .client-faq-item>summary>span,
html[data-theme="light"] .client-faq-item>summary>span,
body.theme-light .client-faq-item>summary>span {
    color: #0284c7 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .client-faq-item>summary>strong,
html[data-theme="light"] .client-faq-item>summary>strong,
body.theme-light .client-faq-item>summary>strong {
    color: #0f172a !important;
    font-size: 16.5px !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .client-faq-item>summary>small,
html[data-theme="light"] .client-faq-item>summary>small,
body.theme-light .client-faq-item>summary>small {
    background: #e2e8f0 !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    padding: 5px 12px !important;
}

:root[data-theme="light"] .client-faq-item>summary>i,
html[data-theme="light"] .client-faq-item>summary>i,
body.theme-light .client-faq-item>summary>i {
    color: #0284c7 !important;
    font-size: 16px !important;
}

:root[data-theme="light"] .client-faq-item[open],
html[data-theme="light"] .client-faq-item[open],
body.theme-light .client-faq-item[open] {
    border-color: #0284c7 !important;
    background: #f8fafc !important;
}

:root[data-theme="light"] .client-faq-item>div p,
html[data-theme="light"] .client-faq-item>div p,
body.theme-light .client-faq-item>div p {
    color: #1e293b !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
}

:root[data-theme="light"] .client-support-card,
html[data-theme="light"] .client-support-card,
body.theme-light .client-support-card {
    background: #f0fdf4 !important;
    border: 1.5px solid #86efac !important;
}

:root[data-theme="light"] .client-support-card>span,
html[data-theme="light"] .client-support-card>span,
body.theme-light .client-support-card>span {
    background: #dcfce7 !important;
    color: #15803d !important;
}

:root[data-theme="light"] .client-support-card strong,
html[data-theme="light"] .client-support-card strong,
body.theme-light .client-support-card strong {
    color: #14532d !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .client-support-card p,
html[data-theme="light"] .client-support-card p,
body.theme-light .client-support-card p {
    color: #166534 !important;
    font-size: 14px !important;
}

:root[data-theme="light"] .client-support-card .btn-admin,
html[data-theme="light"] .client-support-card .btn-admin,
body.theme-light .client-support-card .btn-admin {
    background: #16a34a !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Account Security, Policies & Driver */
:root[data-theme="light"] .account-security-card,
html[data-theme="light"] .account-security-card,
body.theme-light .account-security-card {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
}

:root[data-theme="light"] .account-security-card h3,
html[data-theme="light"] .account-security-card h3,
body.theme-light .account-security-card h3 {
    color: #0f172a !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .account-security-card h3 i,
html[data-theme="light"] .account-security-card h3 i,
body.theme-light .account-security-card h3 i {
    color: #0284c7 !important;
}

:root[data-theme="light"] .account-security-card p,
html[data-theme="light"] .account-security-card p,
body.theme-light .account-security-card p {
    color: #475569 !important;
    font-size: 13.5px !important;
}

:root[data-theme="light"] .account-security-card.danger-zone,
html[data-theme="light"] .account-security-card.danger-zone,
body.theme-light .account-security-card.danger-zone {
    background: #fff5f5 !important;
    border: 1.5px solid #fca5a5 !important;
}

:root[data-theme="light"] .account-security-card.danger-zone h3,
html[data-theme="light"] .account-security-card.danger-zone h3,
body.theme-light .account-security-card.danger-zone h3 {
    color: #991b1b !important;
}

:root[data-theme="light"] .account-security-card.danger-zone h3 i,
html[data-theme="light"] .account-security-card.danger-zone h3 i,
body.theme-light .account-security-card.danger-zone h3 i {
    color: #dc2626 !important;
}

:root[data-theme="light"] .account-security-card.danger-zone p,
html[data-theme="light"] .account-security-card.danger-zone p,
body.theme-light .account-security-card.danger-zone p {
    color: #7f1d1d !important;
}

:root[data-theme="light"] .policy-disclosure,
html[data-theme="light"] .policy-disclosure,
body.theme-light .policy-disclosure {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
}

:root[data-theme="light"] .policy-disclosure summary .client-policy-scope,
html[data-theme="light"] .policy-disclosure summary .client-policy-scope,
body.theme-light .policy-disclosure summary .client-policy-scope {
    color: #0284c7 !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .policy-disclosure summary strong,
html[data-theme="light"] .policy-disclosure summary strong,
body.theme-light .policy-disclosure summary strong {
    color: #0f172a !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .policy-disclosure summary small,
html[data-theme="light"] .policy-disclosure summary small,
body.theme-light .policy-disclosure summary small {
    color: #64748b !important;
}

:root[data-theme="light"] .policy-content,
html[data-theme="light"] .policy-content,
body.theme-light .policy-content {
    color: #334155 !important;
    font-size: 13.5px !important;
    line-height: 1.7 !important;
}

:root[data-theme="light"] .acceptance-time,
html[data-theme="light"] .acceptance-time,
body.theme-light .acceptance-time {
    border-top: 1px solid #e2e8f0 !important;
    color: #15803d !important;
    font-weight: 600 !important;
}

:root[data-theme="light"] .policy-accept-form,
html[data-theme="light"] .policy-accept-form,
body.theme-light .policy-accept-form {
    background: #f0f9ff !important;
    border: 1.5px solid #bae6fd !important;
    color: #0f172a !important;
}

:root[data-theme="light"] .policy-accept-form label,
html[data-theme="light"] .policy-accept-form label,
body.theme-light .policy-accept-form label {
    color: #0f172a !important;
    font-weight: 600 !important;
}

:root[data-theme="light"] .driver-assignment,
html[data-theme="light"] .driver-assignment,
body.theme-light .driver-assignment {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
}

:root[data-theme="light"] .driver-assignment strong,
html[data-theme="light"] .driver-assignment strong,
body.theme-light .driver-assignment strong {
    color: #0f172a !important;
}

/* Client Manual Page */
:root[data-theme="light"] .client-manual-page,
html[data-theme="light"] .client-manual-page,
body.theme-light.client-manual-page {
    background: #f8fafc !important;
    color: #0f172a !important;
}

:root[data-theme="light"] .client-manual-header img,
html[data-theme="light"] .client-manual-header img,
body.theme-light .client-manual-header img {
    filter: brightness(0) !important;
}

:root[data-theme="light"] .client-manual-hero>span,
html[data-theme="light"] .client-manual-hero>span,
body.theme-light .client-manual-hero>span {
    color: #0284c7 !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .client-manual-hero h1,
html[data-theme="light"] .client-manual-hero h1,
body.theme-light .client-manual-hero h1 {
    color: #0f172a !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .client-manual-hero p,
html[data-theme="light"] .client-manual-hero p,
body.theme-light .client-manual-hero p {
    color: #475569 !important;
}

:root[data-theme="light"] .client-manual-toolbar label,
html[data-theme="light"] .client-manual-toolbar label,
body.theme-light .client-manual-toolbar label {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0284c7 !important;
}

:root[data-theme="light"] .client-manual-toolbar input,
html[data-theme="light"] .client-manual-toolbar input,
body.theme-light .client-manual-toolbar input {
    color: #0f172a !important;
}

:root[data-theme="light"] .client-manual-toolbar input::placeholder,
html[data-theme="light"] .client-manual-toolbar input::placeholder,
body.theme-light .client-manual-toolbar input::placeholder {
    color: #64748b !important;
}

:root[data-theme="light"] .manual-section,
html[data-theme="light"] .manual-section,
body.theme-light .manual-section {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

:root[data-theme="light"] .manual-section summary,
html[data-theme="light"] .manual-section summary,
body.theme-light .manual-section summary {
    color: #0f172a !important;
}

:root[data-theme="light"] .manual-section summary .manual-icon,
html[data-theme="light"] .manual-section summary .manual-icon,
body.theme-light .manual-section summary .manual-icon {
    background: #e0f2fe !important;
    color: #0284c7 !important;
}

:root[data-theme="light"] .manual-section summary small,
html[data-theme="light"] .manual-section summary small,
body.theme-light .manual-section summary small {
    color: #0284c7 !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .manual-section summary strong,
html[data-theme="light"] .manual-section summary strong,
body.theme-light .manual-section summary strong {
    color: #0f172a !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .manual-section summary em,
html[data-theme="light"] .manual-section summary em,
body.theme-light .manual-section summary em {
    color: #475569 !important;
}

:root[data-theme="light"] .manual-section summary>i,
html[data-theme="light"] .manual-section summary>i,
body.theme-light .manual-section summary>i {
    color: #0284c7 !important;
}

:root[data-theme="light"] .manual-section[open],
html[data-theme="light"] .manual-section[open],
body.theme-light .manual-section[open] {
    border-color: #0284c7 !important;
}

:root[data-theme="light"] .manual-content,
html[data-theme="light"] .manual-content,
body.theme-light .manual-content {
    border-top: 1px solid #e2e8f0 !important;
}

:root[data-theme="light"] .manual-content ol li,
html[data-theme="light"] .manual-content ol li,
body.theme-light .manual-content ol li {
    color: #1e293b !important;
}

:root[data-theme="light"] .manual-content ol li::marker,
html[data-theme="light"] .manual-content ol li::marker,
body.theme-light .manual-content ol li::marker {
    color: #0284c7 !important;
    font-weight: 800 !important;
}

/* Booking Ticket View */
:root[data-theme="light"] .ticket-body,
html[data-theme="light"] .ticket-body,
body.theme-light.ticket-body {
    background: #f8fafc !important;
    color: #0f172a !important;
}

:root[data-theme="light"] .booking-ticket,
html[data-theme="light"] .booking-ticket,
body.theme-light .booking-ticket {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.06) !important;
}

:root[data-theme="light"] .booking-ticket>header,
html[data-theme="light"] .booking-ticket>header,
body.theme-light .booking-ticket>header {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

:root[data-theme="light"] .booking-ticket>header img,
html[data-theme="light"] .booking-ticket>header img,
body.theme-light .booking-ticket>header img {
    filter: brightness(0) !important;
}

:root[data-theme="light"] .booking-ticket>header span,
html[data-theme="light"] .booking-ticket>header span,
body.theme-light .booking-ticket>header span {
    color: #0284c7 !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .booking-ticket-main span,
:root[data-theme="light"] .booking-ticket-details span,
html[data-theme="light"] .booking-ticket-main span,
html[data-theme="light"] .booking-ticket-details span,
body.theme-light .booking-ticket-main span,
body.theme-light .booking-ticket-details span {
    color: #64748b !important;
}

:root[data-theme="light"] .booking-ticket-main .ticket-code,
html[data-theme="light"] .booking-ticket-main .ticket-code,
body.theme-light .booking-ticket-main .ticket-code {
    color: #0f172a !important;
    font-weight: 900 !important;
}

:root[data-theme="light"] .booking-ticket-main small,
html[data-theme="light"] .booking-ticket-main small,
body.theme-light .booking-ticket-main small {
    color: #0284c7 !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .booking-ticket-details,
html[data-theme="light"] .booking-ticket-details,
body.theme-light .booking-ticket-details {
    background: #e2e8f0 !important;
    border-top: 1px solid #e2e8f0 !important;
}

:root[data-theme="light"] .booking-ticket-details>div,
html[data-theme="light"] .booking-ticket-details>div,
body.theme-light .booking-ticket-details>div {
    background: #ffffff !important;
}

:root[data-theme="light"] .booking-ticket-details>div strong,
html[data-theme="light"] .booking-ticket-details>div strong,
body.theme-light .booking-ticket-details>div strong {
    color: #0f172a !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .booking-ticket footer,
html[data-theme="light"] .booking-ticket footer,
body.theme-light .booking-ticket footer {
    background: #f8fafc !important;
    color: #475569 !important;
    border-top: 1px solid #e2e8f0 !important;
}

:root[data-theme="light"] .booking-ticket footer i,
html[data-theme="light"] .booking-ticket footer i,
body.theme-light .booking-ticket footer i {
    color: #0284c7 !important;
}

:root[data-theme="light"] .ticket-qr,
html[data-theme="light"] .ticket-qr,
body.theme-light .ticket-qr {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
}

/* Booking Details Form & Passenger Fieldsets */
:root[data-theme="light"] .passenger-fieldset,
html[data-theme="light"] .passenger-fieldset,
body.theme-light .passenger-fieldset {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 14px !important;
}

:root[data-theme="light"] .passenger-fieldset legend,
html[data-theme="light"] .passenger-fieldset legend,
body.theme-light .passenger-fieldset legend {
    color: #0284c7 !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .booking-consent-card,
html[data-theme="light"] .booking-consent-card,
body.theme-light .booking-consent-card {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    color: #0f172a !important;
}

:root[data-theme="light"] .booking-consent-card strong,
html[data-theme="light"] .booking-consent-card strong,
body.theme-light .booking-consent-card strong {
    color: #0f172a !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .booking-consent-card small,
html[data-theme="light"] .booking-consent-card small,
body.theme-light .booking-consent-card small {
    color: #475569 !important;
}

:root[data-theme="light"] .booking-coupon-box,
html[data-theme="light"] .booking-coupon-box,
body.theme-light .booking-coupon-box {
    background: #f8fafc !important;
    border: 1.5px dashed #cbd5e1 !important;
    border-radius: 12px !important;
}

:root[data-theme="light"] .booking-coupon-box label,
html[data-theme="light"] .booking-coupon-box label,
body.theme-light .booking-coupon-box label {
    color: #0f172a !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .booking-coupon-box label i,
html[data-theme="light"] .booking-coupon-box label i,
body.theme-light .booking-coupon-box label i {
    color: #0284c7 !important;
}

:root[data-theme="light"] .booking-policies-section h3,
html[data-theme="light"] .booking-policies-section h3,
body.theme-light .booking-policies-section h3 {
    color: #0f172a !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .booking-policy-document,
html[data-theme="light"] .booking-policy-document,
body.theme-light .booking-policy-document {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
}

:root[data-theme="light"] .booking-policy-document summary,
html[data-theme="light"] .booking-policy-document summary,
body.theme-light .booking-policy-document summary {
    color: #0f172a !important;
    background: #f8fafc !important;
}

:root[data-theme="light"] .booking-policy-document summary strong,
html[data-theme="light"] .booking-policy-document summary strong,
body.theme-light .booking-policy-document summary strong {
    color: #0f172a !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .booking-policy-document summary small,
html[data-theme="light"] .booking-policy-document summary small,
body.theme-light .booking-policy-document summary small {
    color: #64748b !important;
}

:root[data-theme="light"] .booking-policy-document summary i,
html[data-theme="light"] .booking-policy-document summary i,
body.theme-light .booking-policy-document summary i {
    color: #0284c7 !important;
}

:root[data-theme="light"] .booking-policy-document>div,
html[data-theme="light"] .booking-policy-document>div,
body.theme-light .booking-policy-document>div {
    border-top: 1px solid #e2e8f0 !important;
    color: #334155 !important;
}

/* Client Payment Page */
:root[data-theme="light"] .payment-page,
html[data-theme="light"] .payment-page,
body.theme-light .payment-page {
    background: #f8fafc !important;
    color: #0f172a !important;
}

:root[data-theme="light"] .payment-card,
:root[data-theme="light"] .payment-step-card,
html[data-theme="light"] .payment-card,
html[data-theme="light"] .payment-step-card,
body.theme-light .payment-card,
body.theme-light .payment-step-card {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

:root[data-theme="light"] .payment-header h2,
:root[data-theme="light"] .payment-step-header h2,
:root[data-theme="light"] .payment-step-header h1,
html[data-theme="light"] .payment-header h2,
html[data-theme="light"] .payment-step-header h2,
html[data-theme="light"] .payment-step-header h1,
body.theme-light .payment-header h2,
body.theme-light .payment-step-header h2,
body.theme-light .payment-step-header h1 {
    color: #0f172a !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .payment-header p,
:root[data-theme="light"] .payment-step-header p,
html[data-theme="light"] .payment-header p,
html[data-theme="light"] .payment-step-header p,
body.theme-light .payment-header p,
body.theme-light .payment-step-header p {
    color: #475569 !important;
}

:root[data-theme="light"] .payment-summary,
html[data-theme="light"] .payment-summary,
body.theme-light .payment-summary {
    background: transparent !important;
}

:root[data-theme="light"] .payment-summary>div,
html[data-theme="light"] .payment-summary>div,
body.theme-light .payment-summary>div {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 14px !important;
}

:root[data-theme="light"] .payment-summary>div span,
html[data-theme="light"] .payment-summary>div span,
body.theme-light .payment-summary>div span {
    color: #64748b !important;
}

:root[data-theme="light"] .payment-summary>div strong,
html[data-theme="light"] .payment-summary>div strong,
body.theme-light .payment-summary>div strong {
    color: #0f172a !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .payment-method-card,
html[data-theme="light"] .payment-method-card,
body.theme-light .payment-method-card {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

:root[data-theme="light"] .payment-method-card:hover,
html[data-theme="light"] .payment-method-card:hover,
body.theme-light .payment-method-card:hover {
    border-color: #0284c7 !important;
}

:root[data-theme="light"] .payment-method-icon,
html[data-theme="light"] .payment-method-icon,
body.theme-light .payment-method-icon {
    background: #e0f2fe !important;
    color: #0284c7 !important;
}

:root[data-theme="light"] .payment-method-card strong,
html[data-theme="light"] .payment-method-card strong,
body.theme-light .payment-method-card strong {
    color: #0f172a !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .payment-method-card small,
html[data-theme="light"] .payment-method-card small,
body.theme-light .payment-method-card small {
    color: #475569 !important;
}

:root[data-theme="light"] .payment-plan-grid label,
:root[data-theme="light"] .payment-receipt-options label,
html[data-theme="light"] .payment-plan-grid label,
html[data-theme="light"] .payment-receipt-options label,
body.theme-light .payment-plan-grid label,
body.theme-light .payment-receipt-options label {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
}

:root[data-theme="light"] .payment-plan-grid label strong,
:root[data-theme="light"] .payment-receipt-options label strong,
html[data-theme="light"] .payment-plan-grid label strong,
html[data-theme="light"] .payment-receipt-options label strong,
body.theme-light .payment-plan-grid label strong,
body.theme-light .payment-receipt-options label strong {
    color: #0f172a !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .payment-plan-grid label small,
:root[data-theme="light"] .payment-receipt-options label small,
html[data-theme="light"] .payment-plan-grid label small,
html[data-theme="light"] .payment-receipt-options label small,
body.theme-light .payment-plan-grid label small,
body.theme-light .payment-receipt-options label small {
    color: #475569 !important;
}

:root[data-theme="light"] .payment-account-admin-card,
:root[data-theme="light"] .payment-account-card,
html[data-theme="light"] .payment-account-admin-card,
html[data-theme="light"] .payment-account-card,
body.theme-light .payment-account-admin-card,
body.theme-light .payment-account-card {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
}

:root[data-theme="light"] .payment-account-admin-card strong,
:root[data-theme="light"] .payment-account-card strong,
html[data-theme="light"] .payment-account-admin-card strong,
html[data-theme="light"] .payment-account-card strong,
body.theme-light .payment-account-admin-card strong,
body.theme-light .payment-account-card strong {
    color: #0f172a !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .payment-account-admin-card small,
:root[data-theme="light"] .payment-account-card small,
html[data-theme="light"] .payment-account-admin-card small,
html[data-theme="light"] .payment-account-card small,
body.theme-light .payment-account-admin-card small,
body.theme-light .payment-account-card small {
    color: #475569 !important;
}

:root[data-theme="light"] .payment-account-card code,
html[data-theme="light"] .payment-account-card code,
body.theme-light .payment-account-card code {
    background: #f1f5f9 !important;
    color: #0284c7 !important;
    border: 1px solid #cbd5e1 !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .payment-account-card em,
html[data-theme="light"] .payment-account-card em,
body.theme-light .payment-account-card em {
    color: #64748b !important;
}

:root[data-theme="light"] .payment-waiting-state,
html[data-theme="light"] .payment-waiting-state,
body.theme-light .payment-waiting-state {
    background: #f0f9ff !important;
    border: 1.5px solid #bae6fd !important;
}

:root[data-theme="light"] .payment-waiting-state i,
html[data-theme="light"] .payment-waiting-state i,
body.theme-light .payment-waiting-state i {
    color: #0284c7 !important;
}

:root[data-theme="light"] .payment-waiting-state strong,
html[data-theme="light"] .payment-waiting-state strong,
body.theme-light .payment-waiting-state strong {
    color: #0369a1 !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .payment-waiting-state p,
html[data-theme="light"] .payment-waiting-state p,
body.theme-light .payment-waiting-state p {
    color: #334155 !important;
}

/* Client Auth Pages (Login & Account Access) */
:root[data-theme="light"] .login-container,
html[data-theme="light"] .login-container,
body.theme-light .login-container {
    background: #f8fafc !important;
}

:root[data-theme="light"] .login-box,
html[data-theme="light"] .login-box,
body.theme-light .login-box {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.06) !important;
    color: #0f172a !important;
}

:root[data-theme="light"] .login-logo img,
html[data-theme="light"] .login-logo img,
body.theme-light .login-logo img {
    filter: brightness(0) !important;
}

:root[data-theme="light"] .login-title,
html[data-theme="light"] .login-title,
body.theme-light .login-title {
    color: #0f172a !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .login-subtitle,
html[data-theme="light"] .login-subtitle,
body.theme-light .login-subtitle {
    color: #475569 !important;
}

:root[data-theme="light"] .login-language-select,
html[data-theme="light"] .login-language-select,
body.theme-light .login-language-select {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}

:root[data-theme="light"] .login-language-select select,
html[data-theme="light"] .login-language-select select,
body.theme-light .login-language-select select {
    background: transparent !important;
    color: #0f172a !important;
}

:root[data-theme="light"] .login-tabs,
html[data-theme="light"] .login-tabs,
body.theme-light .login-tabs {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
}

:root[data-theme="light"] .login-tab,
html[data-theme="light"] .login-tab,
body.theme-light .login-tab {
    color: #475569 !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .login-tab.active,
html[data-theme="light"] .login-tab.active,
body.theme-light .login-tab.active {
    background: #0284c7 !important;
    color: #ffffff !important;
}

:root[data-theme="light"] .form-group label,
html[data-theme="light"] .form-group label,
body.theme-light .form-group label {
    color: #0f172a !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .form-input,
html[data-theme="light"] .form-input,
body.theme-light .form-input {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
}

:root[data-theme="light"] .form-input:focus,
html[data-theme="light"] .form-input:focus,
body.theme-light .form-input:focus {
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18) !important;
}

:root[data-theme="light"] .btn-primary-full,
html[data-theme="light"] .btn-primary-full,
body.theme-light .btn-primary-full {
    background: #0284c7 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .btn-primary-full:hover,
html[data-theme="light"] .btn-primary-full:hover,
body.theme-light .btn-primary-full:hover {
    background: #0369a1 !important;
}

:root[data-theme="light"] .login-privacy-notice,
html[data-theme="light"] .login-privacy-notice,
body.theme-light .login-privacy-notice {
    background: #f0f9ff !important;
    border: 1px solid #bae6fd !important;
    color: #0369a1 !important;
}

:root[data-theme="light"] .login-privacy-notice a,
html[data-theme="light"] .login-privacy-notice a,
body.theme-light .login-privacy-notice a {
    color: #0284c7 !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .login-footer a,
html[data-theme="light"] .login-footer a,
body.theme-light .login-footer a {
    color: #475569 !important;
    font-weight: 600 !important;
}

:root[data-theme="light"] .login-footer a:hover,
html[data-theme="light"] .login-footer a:hover,
body.theme-light .login-footer a:hover {
    color: #0284c7 !important;
}

/* Status Badges */
:root[data-theme="light"] .status-badge.confirmed,
html[data-theme="light"] .status-badge.confirmed,
body.theme-light .status-badge.confirmed {
    background: #dcfce7 !important;
    color: #15803d !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .status-badge.pending,
html[data-theme="light"] .status-badge.pending,
body.theme-light .status-badge.pending {
    background: #fef3c7 !important;
    color: #b45309 !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .status-badge.approved,
html[data-theme="light"] .status-badge.approved,
body.theme-light .status-badge.approved {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .status-badge.details_submitted,
html[data-theme="light"] .status-badge.details_submitted,
body.theme-light .status-badge.details_submitted {
    background: #f3e8ff !important;
    color: #7e22ce !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .status-badge.rejected,
:root[data-theme="light"] .status-badge.cancelled,
html[data-theme="light"] .status-badge.rejected,
html[data-theme="light"] .status-badge.cancelled,
body.theme-light .status-badge.rejected,
body.theme-light .status-badge.cancelled {
    background: #fee2e2 !important;
    color: #b91c1c !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .status-badge.paid,
html[data-theme="light"] .status-badge.paid,
body.theme-light .status-badge.paid {
    background: #dcfce7 !important;
    color: #15803d !important;
    font-weight: 800 !important;
}


/* ========================================================
   ADMIN & ROOT PANEL — LIGHT MODE SUITE (HIGH CONTRAST)
   ======================================================== */

/* 1. Admin Stat Cards & KPIs */
:root[data-theme="light"] .stat-card {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
}

:root[data-theme="light"] .stat-card h3,
:root[data-theme="light"] .stat-info h3 {
    color: #0f172a !important;
    font-size: 26px !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .stat-card p,
:root[data-theme="light"] .stat-info p {
    color: #475569 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

/* 2. Operations Dashboard (admin/index.php) */
:root[data-theme="light"] .dashboard-toolbar {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

:root[data-theme="light"] .dashboard-toolbar h2,
:root[data-theme="light"] .dashboard-quick-panel h2 {
    color: #0f172a !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .dashboard-toolbar p {
    color: #475569 !important;
    font-weight: 500 !important;
}

:root[data-theme="light"] .dashboard-periods {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
}

:root[data-theme="light"] .dashboard-periods a {
    color: #475569 !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .dashboard-periods a:hover {
    color: #0f172a !important;
}

:root[data-theme="light"] .dashboard-periods a.active {
    background: #0284c7 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .dashboard-kpi-card {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
    color: #0f172a !important;
}

:root[data-theme="light"] .dashboard-kpi-card:hover {
    border-color: #0284c7 !important;
    background: #f8fafc !important;
}

:root[data-theme="light"] .dashboard-kpi-copy strong {
    color: #0f172a !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .dashboard-kpi-copy small {
    color: #475569 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
}

:root[data-theme="light"] .dashboard-delta {
    color: #475569 !important;
}

:root[data-theme="light"] .dashboard-indicator-strip {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

:root[data-theme="light"] .dashboard-indicator-strip > a {
    background: #ffffff !important;
    color: #0f172a !important;
    border-right: 1px solid #e2e8f0 !important;
}

:root[data-theme="light"] .dashboard-indicator-strip > a:hover {
    background: #f8fafc !important;
}

:root[data-theme="light"] .dashboard-indicator-strip span {
    color: #475569 !important;
    font-weight: 800 !important;
    font-size: 11px !important;
}

:root[data-theme="light"] .dashboard-indicator-strip strong {
    color: #0f172a !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .dashboard-indicator-strip small {
    color: #64748b !important;
    font-weight: 600 !important;
    font-size: 12px !important;
}

:root[data-theme="light"] .dashboard-quick-panel {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
}

:root[data-theme="light"] .dashboard-quick-panel nav a {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
}

:root[data-theme="light"] .dashboard-quick-panel nav a:hover {
    background: #f1f5f9 !important;
    border-color: #0284c7 !important;
}

:root[data-theme="light"] .dashboard-quick-panel nav strong {
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 12.5px !important;
}

:root[data-theme="light"] .dashboard-quick-panel nav small {
    color: #475569 !important;
    font-size: 11px !important;
}

:root[data-theme="light"] .dashboard-chart-card,
:root[data-theme="light"] .dashboard-status-card,
:root[data-theme="light"] .dashboard-capacity-card,
:root[data-theme="light"] .dashboard-alert-card,
:root[data-theme="light"] .dashboard-top-tours {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
}

:root[data-theme="light"] .dashboard-chart-empty {
    background: #f8fafc !important;
    border: 1px dashed #cbd5e1 !important;
    color: #475569 !important;
}

:root[data-theme="light"] .dashboard-chart-empty strong {
    color: #0f172a !important;
}

:root[data-theme="light"] .dashboard-chart-summary {
    border-top: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}

:root[data-theme="light"] .dashboard-chart-summary b {
    color: #0f172a !important;
}

:root[data-theme="light"] .dashboard-donut:after {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

:root[data-theme="light"] .dashboard-donut strong {
    color: #0f172a !important;
}

:root[data-theme="light"] .dashboard-status-legend a {
    color: #334155 !important;
}

:root[data-theme="light"] .dashboard-status-legend a:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

:root[data-theme="light"] .dashboard-status-legend strong {
    color: #0f172a !important;
}

:root[data-theme="light"] .dashboard-status-legend small {
    color: #475569 !important;
    font-weight: 600 !important;
}

:root[data-theme="light"] .dashboard-capacity-row {
    border-bottom: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

:root[data-theme="light"] .dashboard-capacity-date {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

:root[data-theme="light"] .dashboard-capacity-title strong {
    color: #0f172a !important;
}

:root[data-theme="light"] .dashboard-capacity-title small {
    color: #64748b !important;
}

:root[data-theme="light"] .dashboard-capacity-track {
    background: #e2e8f0 !important;
}

:root[data-theme="light"] .dashboard-capacity-value strong {
    color: #0f172a !important;
}

:root[data-theme="light"] .dashboard-capacity-value small {
    color: #64748b !important;
}

:root[data-theme="light"] .dashboard-alert-list > a {
    border-bottom: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

:root[data-theme="light"] .dashboard-alert-list > a:hover {
    background: #f8fafc !important;
}

:root[data-theme="light"] .dashboard-alert-list strong {
    color: #0f172a !important;
}

:root[data-theme="light"] .dashboard-alert-list small {
    color: #64748b !important;
}

:root[data-theme="light"] .dashboard-ranking > a {
    border-bottom: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

:root[data-theme="light"] .dashboard-ranking > a:hover {
    background: #f8fafc !important;
}

:root[data-theme="light"] .dashboard-rank {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}

:root[data-theme="light"] .dashboard-ranking-main > strong {
    color: #0f172a !important;
}

:root[data-theme="light"] .dashboard-ranking-main > i {
    background: #e2e8f0 !important;
}

:root[data-theme="light"] .dashboard-ranking-metric strong {
    color: #0f172a !important;
}

:root[data-theme="light"] .dashboard-ranking-metric small {
    color: #64748b !important;
}

/* 3. Compliance & Legal Checklist (admin/compliance.php) */
:root[data-theme="light"] .op-check-item {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
}

:root[data-theme="light"] .op-check-item:hover {
    border-color: #0284c7 !important;
    background: #f8fafc !important;
}

:root[data-theme="light"] .op-check-item.is-checked {
    background: #f0fdf4 !important;
    border-color: #86efac !important;
}

:root[data-theme="light"] .op-check-item-text strong {
    color: #0f172a !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .op-check-item-text strong i {
    color: #0284c7 !important;
}

:root[data-theme="light"] .op-check-item-text p {
    color: #475569 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

:root[data-theme="light"] .op-check-item-badge.pending {
    background: #fef3c7 !important;
    color: #b45309 !important;
    border: 1px solid #fde68a !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .op-check-item-badge.ok {
    background: #dcfce7 !important;
    color: #15803d !important;
    border: 1px solid #bbf7d0 !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .disclaimer-panel {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

:root[data-theme="light"] .disclaimer-legal-box {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    border-left: 4px solid #d97706 !important;
    color: #1e293b !important;
}

:root[data-theme="light"] .disclaimer-legal-box strong {
    color: #92400e !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .disclaimer-legal-box p,
:root[data-theme="light"] .lang-panel {
    color: #334155 !important;
    font-size: 13.5px !important;
    line-height: 1.6 !important;
}

:root[data-theme="light"] .lang-tabs {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
}

:root[data-theme="light"] .lang-tab {
    color: #475569 !important;
}

:root[data-theme="light"] .lang-tab.active {
    background: #0284c7 !important;
    color: #ffffff !important;
}

:root[data-theme="light"] .signature-canvas-container {
    background: #ffffff !important;
    border: 2px dashed #94a3b8 !important;
}

:root[data-theme="light"] .signature-canvas-hint {
    color: #64748b !important;
    font-weight: 600 !important;
}

:root[data-theme="light"] .signature-seal-details {
    background: #f1f5f9 !important;
    color: #334155 !important;
}

:root[data-theme="light"] .signature-seal-details code {
    color: #0284c7 !important;
}

:root[data-theme="light"] .disclaimer-panel label {
    color: #0f172a !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
}

/* 4. System Manual (admin/help.php) */
:root[data-theme="light"] .manual-intro {
    background: #fffbeb !important;
    border: 1.5px solid #fde68a !important;
}

:root[data-theme="light"] .manual-intro .privacy-notice {
    background: transparent !important;
    border: none !important;
}

:root[data-theme="light"] .manual-intro .privacy-notice strong {
    color: #92400e !important;
    font-size: 16px !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .manual-intro .privacy-notice p {
    color: #78350f !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

:root[data-theme="light"] .manual-intro .privacy-notice i {
    color: #d97706 !important;
}

:root[data-theme="light"] .manual-toolbar label {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
}

:root[data-theme="light"] .manual-toolbar label i {
    color: #0284c7 !important;
}

:root[data-theme="light"] .manual-toolbar input {
    color: #0f172a !important;
    font-size: 15px !important;
}

:root[data-theme="light"] .manual-toolbar input::placeholder {
    color: #64748b !important;
}

:root[data-theme="light"] .manual-section {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

:root[data-theme="light"] .manual-section summary {
    color: #0f172a !important;
}

:root[data-theme="light"] .manual-section summary .manual-icon {
    background: #e0f2fe !important;
    color: #0284c7 !important;
}

:root[data-theme="light"] .manual-section summary small {
    color: #0284c7 !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .manual-section summary strong {
    color: #0f172a !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .manual-section summary em {
    color: #475569 !important;
    font-size: 13.5px !important;
}

:root[data-theme="light"] .manual-section summary > i {
    color: #0284c7 !important;
}

:root[data-theme="light"] .manual-section[open] {
    border-color: #0284c7 !important;
}

:root[data-theme="light"] .manual-content {
    border-top: 1px solid #e2e8f0 !important;
}

:root[data-theme="light"] .manual-content ol li {
    color: #1e293b !important;
    font-size: 14.5px !important;
    line-height: 1.65 !important;
}

/* 5. Modals, Tables & Shared Admin Elements */
:root[data-theme="light"] .admin-modal-dialog {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18) !important;
}

:root[data-theme="light"] .admin-modal-header {
    border-bottom: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
}

:root[data-theme="light"] .admin-modal-header h2,
:root[data-theme="light"] .admin-modal-header h3 {
    color: #0f172a !important;
}

:root[data-theme="light"] .admin-modal-footer {
    border-top: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
}

:root[data-theme="light"] .panel-table th {
    background: #f1f5f9 !important;
    color: #334155 !important;
    font-weight: 700 !important;
    border-bottom: 2px solid #cbd5e1 !important;
}

:root[data-theme="light"] .panel-table td {
    color: #1e293b !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

:root[data-theme="light"] .panel-table tr:hover td,
:root[data-theme="light"] .panel-table tbody tr:hover {
    background: #f8fafc !important;
}

/* Light Mode overrides for Tour Wizard, Context Banners & Day Pills */
:root[data-theme="light"] .days-operating-card,
body.theme-light .days-operating-card {
    background: #f0f9ff !important;
    border: 1.5px solid #bae6fd !important;
}
:root[data-theme="light"] .days-operating-header strong,
body.theme-light .days-operating-header strong {
    color: #0f172a !important;
}
:root[data-theme="light"] .days-operating-header i,
body.theme-light .days-operating-header i {
    color: #0284c7 !important;
}
:root[data-theme="light"] .days-operating-hint,
body.theme-light .days-operating-hint {
    color: #64748b !important;
}
:root[data-theme="light"] .day-pill-check,
:root[data-theme="light"] label.day-pill-check,
body.theme-light .day-pill-check,
body.theme-light label.day-pill-check {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #334155 !important;
}
:root[data-theme="light"] .day-pill-check:hover,
:root[data-theme="light"] label.day-pill-check:hover,
body.theme-light .day-pill-check:hover,
body.theme-light label.day-pill-check:hover {
    background: #f1f5f9 !important;
    border-color: #0284c7 !important;
    color: #0f172a !important;
}
:root[data-theme="light"] .day-pill-check:has(input:checked),
:root[data-theme="light"] label.day-pill-check:has(input:checked),
body.theme-light .day-pill-check:has(input:checked),
body.theme-light label.day-pill-check:has(input:checked) {
    background: #e0f2fe !important;
    border-color: #0284c7 !important;
    color: #0284c7 !important;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.2) !important;
}
:root[data-theme="light"] .wizard-context-banner,
body.theme-light .wizard-context-banner {
    background: #f0f9ff !important;
    border: 1.5px solid #bae6fd !important;
    color: #334155 !important;
}
:root[data-theme="light"] .wizard-context-banner strong,
body.theme-light .wizard-context-banner strong {
    color: #0f172a !important;
}
:root[data-theme="light"] .wizard-context-banner p,
body.theme-light .wizard-context-banner p {
    color: #475569 !important;
}
:root[data-theme="light"] .wizard-context-banner i,
body.theme-light .wizard-context-banner i {
    color: #0284c7 !important;
}
:root[data-theme="light"] .wizard-step-tab,
body.theme-light .wizard-step-tab {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #64748b !important;
}
:root[data-theme="light"] .wizard-step-tab:hover,
body.theme-light .wizard-step-tab:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #0284c7 !important;
}
:root[data-theme="light"] .wizard-step-tab.active,
body.theme-light .wizard-step-tab.active {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
}
:root[data-theme="light"] .wizard-step-tab.active .step-num,
body.theme-light .wizard-step-tab.active .step-num {
    background: #ffffff !important;
    color: #0284c7 !important;
}
:root[data-theme="light"] .wizard-draft-alert,
body.theme-light .wizard-draft-alert {
    background: #f0f9ff !important;
    border: 1.5px solid #bae6fd !important;
    color: #0f172a !important;
}
:root[data-theme="light"] .wizard-draft-alert strong,
body.theme-light .wizard-draft-alert strong {
    color: #0f172a !important;
}
:root[data-theme="light"] .wizard-draft-alert p,
body.theme-light .wizard-draft-alert p {
    color: #475569 !important;
}

/* =============================================================
   LIGHT MODE: TOUR WIZARD STEPS 1-7, LOCATIONS, SERVICES, IMAGES
   ============================================================= */
:root[data-theme="light"] .tour-location-editor,
html[data-theme="light"] .tour-location-editor,
body.theme-light .tour-location-editor {
    background: #f0f9ff !important;
    border: 1.5px solid #bae6fd !important;
}

:root[data-theme="light"] .tour-location-editor-head h3,
html[data-theme="light"] .tour-location-editor-head h3,
body.theme-light .tour-location-editor-head h3 {
    color: #0f172a !important;
}

:root[data-theme="light"] .tour-location-editor-head h3 i,
html[data-theme="light"] .tour-location-editor-head h3 i,
body.theme-light .tour-location-editor-head h3 i {
    color: #0284c7 !important;
}

:root[data-theme="light"] .tour-location-editor-head p,
html[data-theme="light"] .tour-location-editor-head p,
body.theme-light .tour-location-editor-head p {
    color: #475569 !important;
}

:root[data-theme="light"] .tour-location-row,
html[data-theme="light"] .tour-location-row,
body.theme-light .tour-location-row {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

:root[data-theme="light"] .tour-location-position,
html[data-theme="light"] .tour-location-position,
body.theme-light .tour-location-position {
    border-right: 1.5px solid #e2e8f0 !important;
    color: #0f172a !important;
}

:root[data-theme="light"] .tour-location-position span,
html[data-theme="light"] .tour-location-position span,
body.theme-light .tour-location-position span {
    background: #0284c7 !important;
    color: #ffffff !important;
}

:root[data-theme="light"] .tour-location-position small,
html[data-theme="light"] .tour-location-position small,
body.theme-light .tour-location-position small {
    color: #64748b !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .tour-location-row .field label,
html[data-theme="light"] .tour-location-row .field label,
body.theme-light .tour-location-row .field label {
    color: #334155 !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .tour-location-row .field input,
html[data-theme="light"] .tour-location-row .field input,
body.theme-light .tour-location-row .field input {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
}

:root[data-theme="light"] .tour-location-row .field input:focus,
html[data-theme="light"] .tour-location-row .field input:focus,
body.theme-light .tour-location-row .field input:focus {
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

:root[data-theme="light"] .tour-location-actions .btn-action.location-up,
:root[data-theme="light"] .tour-location-actions .btn-action.location-down,
html[data-theme="light"] .tour-location-actions .btn-action.location-up,
html[data-theme="light"] .tour-location-actions .btn-action.location-down,
body.theme-light .tour-location-actions .btn-action.location-up,
body.theme-light .tour-location-actions .btn-action.location-down {
    background: #e0f2fe !important;
    border: 1.5px solid #bae6fd !important;
    color: #0284c7 !important;
}

:root[data-theme="light"] .tour-location-actions .btn-action.location-up:hover:not(:disabled),
:root[data-theme="light"] .tour-location-actions .btn-action.location-down:hover:not(:disabled),
html[data-theme="light"] .tour-location-actions .btn-action.location-up:hover:not(:disabled),
html[data-theme="light"] .tour-location-actions .btn-action.location-down:hover:not(:disabled),
body.theme-light .tour-location-actions .btn-action.location-up:hover:not(:disabled),
body.theme-light .tour-location-actions .btn-action.location-down:hover:not(:disabled) {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
}

:root[data-theme="light"] .tour-location-actions .btn-action.location-remove,
html[data-theme="light"] .tour-location-actions .btn-action.location-remove,
body.theme-light .tour-location-actions .btn-action.location-remove {
    background: #fee2e2 !important;
    border: 1.5px solid #fecaca !important;
    color: #dc2626 !important;
}

:root[data-theme="light"] .tour-location-actions .btn-action.location-remove:hover:not(:disabled),
html[data-theme="light"] .tour-location-actions .btn-action.location-remove:hover:not(:disabled),
body.theme-light .tour-location-actions .btn-action.location-remove:hover:not(:disabled) {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
}

:root[data-theme="light"] .tour-location-actions .btn-action:disabled,
html[data-theme="light"] .tour-location-actions .btn-action:disabled,
body.theme-light .tour-location-actions .btn-action:disabled {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #94a3b8 !important;
    opacity: 0.5 !important;
}

/* Service & Policy Assignment Panels in Light Mode */
:root[data-theme="light"] .service-assignment-panel,
:root[data-theme="light"] .policy-assignment-panel,
html[data-theme="light"] .service-assignment-panel,
html[data-theme="light"] .policy-assignment-panel,
body.theme-light .service-assignment-panel,
body.theme-light .policy-assignment-panel {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
}

:root[data-theme="light"] .selection-counter,
html[data-theme="light"] .selection-counter,
body.theme-light .selection-counter {
    background: #e0f2fe !important;
    color: #0284c7 !important;
    border: 1px solid #bae6fd !important;
}

:root[data-theme="light"] .tour-image-admin-card,
html[data-theme="light"] .tour-image-admin-card,
body.theme-light .tour-image-admin-card {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

:root[data-theme="light"] .tour-image-admin-card strong,
html[data-theme="light"] .tour-image-admin-card strong,
body.theme-light .tour-image-admin-card strong {
    color: #0f172a !important;
}

:root[data-theme="light"] .tour-image-admin-card small,
html[data-theme="light"] .tour-image-admin-card small,
body.theme-light .tour-image-admin-card small {
    color: #64748b !important;
}

/* Form inputs & toggles inside modals in Light Mode */
:root[data-theme="light"] .admin-modal-body input:not([type="checkbox"]):not([type="radio"]),
:root[data-theme="light"] .admin-modal-body select,
:root[data-theme="light"] .admin-modal-body textarea,
html[data-theme="light"] .admin-modal-body input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="light"] .admin-modal-body select,
html[data-theme="light"] .admin-modal-body textarea,
body.theme-light .admin-modal-body input:not([type="checkbox"]):not([type="radio"]),
body.theme-light .admin-modal-body select,
body.theme-light .admin-modal-body textarea {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
}

:root[data-theme="light"] .admin-modal-body input:focus,
:root[data-theme="light"] .admin-modal-body select:focus,
:root[data-theme="light"] .admin-modal-body textarea:focus,
html[data-theme="light"] .admin-modal-body input:focus,
html[data-theme="light"] .admin-modal-body select:focus,
html[data-theme="light"] .admin-modal-body textarea:focus,
body.theme-light .admin-modal-body input:focus,
body.theme-light .admin-modal-body select:focus,
body.theme-light .admin-modal-body textarea:focus {
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

:root[data-theme="light"] .admin-modal-body label:not(.btn-admin):not(.day-pill-check),
html[data-theme="light"] .admin-modal-body label:not(.btn-admin):not(.day-pill-check),
body.theme-light .admin-modal-body label:not(.btn-admin):not(.day-pill-check) {
    color: #334155 !important;
}

/* File Upload Inputs & Selector Buttons in Light Mode */
:root[data-theme="light"] input[type="file"],
html[data-theme="light"] input[type="file"],
body.theme-light input[type="file"],
:root[data-theme="light"] .admin-modal .field input[type="file"],
html[data-theme="light"] .admin-modal .field input[type="file"],
body.theme-light .admin-modal .field input[type="file"] {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
}

:root[data-theme="light"] input[type="file"]::file-selector-button,
html[data-theme="light"] input[type="file"]::file-selector-button,
body.theme-light input[type="file"]::file-selector-button,
:root[data-theme="light"] .admin-modal .field input[type="file"]::file-selector-button,
html[data-theme="light"] .admin-modal .field input[type="file"]::file-selector-button,
body.theme-light .admin-modal .field input[type="file"]::file-selector-button,
:root[data-theme="light"] input[type="file"]::-webkit-file-upload-button,
html[data-theme="light"] input[type="file"]::-webkit-file-upload-button,
body.theme-light input[type="file"]::-webkit-file-upload-button,
:root[data-theme="light"] .admin-modal .field input[type="file"]::-webkit-file-upload-button,
html[data-theme="light"] .admin-modal .field input[type="file"]::-webkit-file-upload-button,
body.theme-light .admin-modal .field input[type="file"]::-webkit-file-upload-button {
    background: #0284c7 !important;
    color: #ffffff !important;
    border: 1.5px solid #0284c7 !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    padding: 7px 14px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin-right: 12px !important;
}

:root[data-theme="light"] input[type="file"]::file-selector-button:hover,
html[data-theme="light"] input[type="file"]::file-selector-button:hover,
body.theme-light input[type="file"]::file-selector-button:hover,
:root[data-theme="light"] .admin-modal .field input[type="file"]::file-selector-button:hover,
html[data-theme="light"] .admin-modal .field input[type="file"]::file-selector-button:hover,
body.theme-light .admin-modal .field input[type="file"]::file-selector-button:hover,
:root[data-theme="light"] input[type="file"]::-webkit-file-upload-button:hover,
html[data-theme="light"] input[type="file"]::-webkit-file-upload-button:hover,
body.theme-light input[type="file"]::-webkit-file-upload-button:hover,
:root[data-theme="light"] .admin-modal .field input[type="file"]::-webkit-file-upload-button:hover,
html[data-theme="light"] .admin-modal .field input[type="file"]::-webkit-file-upload-button:hover,
body.theme-light .admin-modal .field input[type="file"]::-webkit-file-upload-button:hover {
    background: #0369a1 !important;
    border-color: #0369a1 !important;
}

/* Validation Summaries & Alerts in Light Mode (High Contrast) */
:root[data-theme="light"] .modal-validation-summary,
html[data-theme="light"] .modal-validation-summary,
body.theme-light .modal-validation-summary {
    background: #fef2f2 !important;
    border: 1.5px solid #f87171 !important;
    color: #991b1b !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.08) !important;
}

:root[data-theme="light"] .modal-validation-summary i,
html[data-theme="light"] .modal-validation-summary i,
body.theme-light .modal-validation-summary i {
    color: #dc2626 !important;
}

:root[data-theme="light"] .modal-validation-summary span,
html[data-theme="light"] .modal-validation-summary span,
body.theme-light .modal-validation-summary span {
    color: #991b1b !important;
    font-weight: 600 !important;
}

:root[data-theme="light"] .alert-danger,
html[data-theme="light"] .alert-danger,
body.theme-light .alert-danger {
    background: #fef2f2 !important;
    border: 1.5px solid #f87171 !important;
    color: #991b1b !important;
    font-weight: 600 !important;
}

:root[data-theme="light"] .alert-success,
html[data-theme="light"] .alert-success,
body.theme-light .alert-success {
    background: #f0fdf4 !important;
    border: 1.5px solid #86efac !important;
    color: #166534 !important;
    font-weight: 600 !important;
}

:root[data-theme="light"] .alert-info,
html[data-theme="light"] .alert-info,
body.theme-light .alert-info {
    background: #f0f9ff !important;
    border: 1.5px solid #bae6fd !important;
    color: #0369a1 !important;
    font-weight: 600 !important;
}

:root[data-theme="light"] .alert-warning,
html[data-theme="light"] .alert-warning,
body.theme-light .alert-warning {
    background: #fffbeb !important;
    border: 1.5px solid #fde68a !important;
    color: #92400e !important;
    font-weight: 600 !important;
}

/* ========================================================
   NOTIFICATION & OPERATIONS CENTER — LIGHT MODE (HIGH CONTRAST)
   ======================================================== */
:root[data-theme="light"] .admin-operation-menu,
html[data-theme="light"] .admin-operation-menu,
body.theme-light .admin-operation-menu {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.14), 0 4px 16px rgba(15, 23, 42, 0.08) !important;
}

:root[data-theme="light"] .admin-operation-menu > header,
html[data-theme="light"] .admin-operation-menu > header,
body.theme-light .admin-operation-menu > header {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

:root[data-theme="light"] .admin-op-head-title strong,
html[data-theme="light"] .admin-op-head-title strong,
body.theme-light .admin-op-head-title strong {
    color: #0f172a !important;
}

:root[data-theme="light"] .admin-op-head-title small,
html[data-theme="light"] .admin-op-head-title small,
body.theme-light .admin-op-head-title small {
    color: #64748b !important;
}

:root[data-theme="light"] .btn-op-action,
html[data-theme="light"] .btn-op-action,
body.theme-light .btn-op-action {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
}

:root[data-theme="light"] .btn-op-action:hover,
html[data-theme="light"] .btn-op-action:hover,
body.theme-light .btn-op-action:hover {
    background: #e0f2fe !important;
    border-color: #0284c7 !important;
    color: #0284c7 !important;
}

:root[data-theme="light"] .btn-op-action.danger:hover,
html[data-theme="light"] .btn-op-action.danger:hover,
body.theme-light .btn-op-action.danger:hover {
    background: #fee2e2 !important;
    border-color: #ef4444 !important;
    color: #dc2626 !important;
}

:root[data-theme="light"] .admin-operation-filters,
html[data-theme="light"] .admin-operation-filters,
body.theme-light .admin-operation-filters {
    background: #f1f5f9 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

:root[data-theme="light"] .admin-op-filter,
html[data-theme="light"] .admin-op-filter,
body.theme-light .admin-op-filter {
    color: #475569 !important;
    background: transparent !important;
}

:root[data-theme="light"] .admin-op-filter:hover:not(.active),
html[data-theme="light"] .admin-op-filter:hover:not(.active),
body.theme-light .admin-op-filter:hover:not(.active) {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

:root[data-theme="light"] .admin-op-filter.active,
html[data-theme="light"] .admin-op-filter.active,
body.theme-light .admin-op-filter.active {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .admin-operation-item,
html[data-theme="light"] .admin-operation-item,
body.theme-light .admin-operation-item {
    border-bottom: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    background: #ffffff !important;
}

:root[data-theme="light"] .admin-operation-item:hover,
html[data-theme="light"] .admin-operation-item:hover,
body.theme-light .admin-operation-item:hover {
    background: #f8fafc !important;
}

:root[data-theme="light"] .admin-operation-item.unread,
html[data-theme="light"] .admin-operation-item.unread,
body.theme-light .admin-operation-item.unread {
    background: #f0f9ff !important;
}

:root[data-theme="light"] .admin-operation-item.unread::before,
html[data-theme="light"] .admin-operation-item.unread::before,
body.theme-light .admin-operation-item.unread::before {
    background: #0284c7 !important;
}

:root[data-theme="light"] .admin-operation-copy strong,
html[data-theme="light"] .admin-operation-copy strong,
body.theme-light .admin-operation-copy strong {
    color: #0f172a !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .admin-operation-copy span,
html[data-theme="light"] .admin-operation-copy span,
body.theme-light .admin-operation-copy span {
    color: #334155 !important;
    font-weight: 500 !important;
}

:root[data-theme="light"] .admin-operation-copy small,
html[data-theme="light"] .admin-operation-copy small,
body.theme-light .admin-operation-copy small {
    color: #64748b !important;
}

:root[data-theme="light"] .admin-operation-time,
html[data-theme="light"] .admin-operation-time,
body.theme-light .admin-operation-time {
    color: #64748b !important;
}

:root[data-theme="light"] .admin-operation-empty,
html[data-theme="light"] .admin-operation-empty,
body.theme-light .admin-operation-empty {
    color: #64748b !important;
}

:root[data-theme="light"] .admin-operation-footer-wrap,
html[data-theme="light"] .admin-operation-footer-wrap,
body.theme-light .admin-operation-footer-wrap {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
}

:root[data-theme="light"] .admin-op-limit-note,
html[data-theme="light"] .admin-op-limit-note,
body.theme-light .admin-op-limit-note {
    color: #64748b !important;
}

:root[data-theme="light"] .admin-operation-footer-link,
html[data-theme="light"] .admin-operation-footer-link,
body.theme-light .admin-operation-footer-link {
    color: #0284c7 !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .admin-operation-footer-link:hover,
html[data-theme="light"] .admin-operation-footer-link:hover,
body.theme-light .admin-operation-footer-link:hover {
    color: #0369a1 !important;
}

:root[data-theme="light"] .admin-operation-button,
html[data-theme="light"] .admin-operation-button,
body.theme-light .admin-operation-button {
    background: #f1f5f9 !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #334155 !important;
}

:root[data-theme="light"] .admin-operation-button:hover,
:root[data-theme="light"] .admin-operation-button[aria-expanded="true"],
html[data-theme="light"] .admin-operation-button:hover,
html[data-theme="light"] .admin-operation-button[aria-expanded="true"],
body.theme-light .admin-operation-button:hover,
body.theme-light .admin-operation-button[aria-expanded="true"] {
    background: #e0f2fe !important;
    border-color: #0284c7 !important;
    color: #0284c7 !important;
}

:root[data-theme="light"] .admin-languages,
html[data-theme="light"] .admin-languages,
body.theme-light .admin-languages {
    background: #f1f5f9 !important;
    border: 1.5px solid #cbd5e1 !important;
}

:root[data-theme="light"] .admin-languages a,
html[data-theme="light"] .admin-languages a,
body.theme-light .admin-languages a {
    color: #475569 !important;
}

:root[data-theme="light"] .admin-languages a:hover,
html[data-theme="light"] .admin-languages a:hover,
body.theme-light .admin-languages a:hover {
    color: #0f172a !important;
}

:root[data-theme="light"] .admin-languages a.active,
html[data-theme="light"] .admin-languages a.active,
body.theme-light .admin-languages a.active {
    background: #0284c7 !important;
    color: #ffffff !important;
}

:root[data-theme="light"] .admin-user strong,
html[data-theme="light"] .admin-user strong,
body.theme-light .admin-user strong {
    color: #0f172a !important;
}

:root[data-theme="light"] .admin-user small,
html[data-theme="light"] .admin-user small,
body.theme-light .admin-user small {
    color: #64748b !important;
}

/* ========================================================
   COMMAND PALETTE — LIGHT MODE (HIGH CONTRAST)
   ======================================================== */
:root[data-theme="light"] .cmd-palette-backdrop,
html[data-theme="light"] .cmd-palette-backdrop,
body.theme-light .cmd-palette-backdrop {
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(8px) !important;
}

:root[data-theme="light"] .cmd-palette-dialog,
html[data-theme="light"] .cmd-palette-dialog,
body.theme-light .cmd-palette-dialog {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18) !important;
}

:root[data-theme="light"] .cmd-palette-header,
html[data-theme="light"] .cmd-palette-header,
body.theme-light .cmd-palette-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

:root[data-theme="light"] .cmd-palette-header i,
html[data-theme="light"] .cmd-palette-header i,
body.theme-light .cmd-palette-header i {
    color: #0284c7 !important;
}

:root[data-theme="light"] .cmd-palette-input,
html[data-theme="light"] .cmd-palette-input,
body.theme-light .cmd-palette-input {
    color: #0f172a !important;
}

:root[data-theme="light"] .cmd-palette-input::placeholder,
html[data-theme="light"] .cmd-palette-input::placeholder,
body.theme-light .cmd-palette-input::placeholder {
    color: #94a3b8 !important;
}

:root[data-theme="light"] .cmd-palette-kbd,
html[data-theme="light"] .cmd-palette-kbd,
body.theme-light .cmd-palette-kbd {
    background: #e2e8f0 !important;
    border: 1px solid #cbd5e1 !important;
    color: #64748b !important;
}

:root[data-theme="light"] .cmd-palette-group-title,
html[data-theme="light"] .cmd-palette-group-title,
body.theme-light .cmd-palette-group-title {
    color: #64748b !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .cmd-palette-item,
html[data-theme="light"] .cmd-palette-item,
body.theme-light .cmd-palette-item {
    color: #334155 !important;
}

:root[data-theme="light"] .cmd-palette-item:hover,
:root[data-theme="light"] .cmd-palette-item.is-selected,
html[data-theme="light"] .cmd-palette-item:hover,
html[data-theme="light"] .cmd-palette-item.is-selected,
body.theme-light .cmd-palette-item:hover,
body.theme-light .cmd-palette-item.is-selected {
    background: #f0f9ff !important;
    color: #0f172a !important;
}

:root[data-theme="light"] .cmd-palette-item.is-selected,
html[data-theme="light"] .cmd-palette-item.is-selected,
body.theme-light .cmd-palette-item.is-selected {
    outline: 1px solid #0284c7 !important;
}

:root[data-theme="light"] .cmd-palette-item i,
html[data-theme="light"] .cmd-palette-item i,
body.theme-light .cmd-palette-item i {
    color: #64748b !important;
}

:root[data-theme="light"] .cmd-palette-item:hover i,
:root[data-theme="light"] .cmd-palette-item.is-selected i,
html[data-theme="light"] .cmd-palette-item:hover i,
html[data-theme="light"] .cmd-palette-item.is-selected i,
body.theme-light .cmd-palette-item:hover i,
body.theme-light .cmd-palette-item.is-selected i {
    color: #0284c7 !important;
}

:root[data-theme="light"] .cmd-palette-item-text strong,
html[data-theme="light"] .cmd-palette-item-text strong,
body.theme-light .cmd-palette-item-text strong {
    color: #0f172a !important;
}

:root[data-theme="light"] .cmd-palette-item-text small,
html[data-theme="light"] .cmd-palette-item-text small,
body.theme-light .cmd-palette-item-text small {
    color: #64748b !important;
}

:root[data-theme="light"] .cmd-palette-footer,
html[data-theme="light"] .cmd-palette-footer,
body.theme-light .cmd-palette-footer {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    color: #64748b !important;
}

/* ========================================================
   LIGHT MODE: CONTEXTUAL HELP (? BUTTONS & MODALS)
   ======================================================== */
:root[data-theme="light"] .context-help-trigger,
html[data-theme="light"] .context-help-trigger,
body.theme-light .context-help-trigger {
    border: 1.5px solid #0284c7 !important;
    background: #e0f2fe !important;
    color: #0284c7 !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .context-help-trigger:hover,
:root[data-theme="light"] .context-help-trigger:focus-visible,
html[data-theme="light"] .context-help-trigger:hover,
body.theme-light .context-help-trigger:hover {
    background: #0284c7 !important;
    color: #ffffff !important;
    outline: 2px solid rgba(2, 132, 199, 0.25) !important;
}

:root[data-theme="light"] .context-help-floating,
html[data-theme="light"] .context-help-floating,
body.theme-light .context-help-floating {
    background: #0284c7 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.35) !important;
}

:root[data-theme="light"] .context-help-floating:hover,
:root[data-theme="light"] .context-help-floating:focus-visible,
html[data-theme="light"] .context-help-floating:hover,
body.theme-light .context-help-floating:hover {
    background: #0369a1 !important;
    transform: translateY(-2px);
}

:root[data-theme="light"] .context-help-modal,
html[data-theme="light"] .context-help-modal,
body.theme-light .context-help-modal {
    background: rgba(15, 23, 42, 0.48) !important;
    backdrop-filter: blur(8px) !important;
}

:root[data-theme="light"] .context-help-dialog,
html[data-theme="light"] .context-help-dialog,
body.theme-light .context-help-dialog {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18) !important;
}

:root[data-theme="light"] .context-help-dialog > header,
html[data-theme="light"] .context-help-dialog > header,
body.theme-light .context-help-dialog > header {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

:root[data-theme="light"] .context-help-icon,
html[data-theme="light"] .context-help-icon,
body.theme-light .context-help-icon {
    background: #e0f2fe !important;
    color: #0284c7 !important;
}

:root[data-theme="light"] .context-help-dialog header small,
html[data-theme="light"] .context-help-dialog header small,
body.theme-light .context-help-dialog header small {
    color: #0284c7 !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .context-help-dialog header h2,
html[data-theme="light"] .context-help-dialog header h2,
body.theme-light .context-help-dialog header h2 {
    color: #0f172a !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .context-help-dialog header > button,
html[data-theme="light"] .context-help-dialog header > button,
body.theme-light .context-help-dialog header > button {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
}

:root[data-theme="light"] .context-help-dialog header > button:hover,
html[data-theme="light"] .context-help-dialog header > button:hover,
body.theme-light .context-help-dialog header > button:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    border-color: #0284c7 !important;
}

:root[data-theme="light"] .context-help-body,
html[data-theme="light"] .context-help-body,
body.theme-light .context-help-body {
    background: #ffffff !important;
    scrollbar-color: #cbd5e1 #f8fafc !important;
}

:root[data-theme="light"] .context-help-intro,
html[data-theme="light"] .context-help-intro,
body.theme-light .context-help-intro {
    color: #334155 !important;
    font-size: 15px !important;
    line-height: 1.75 !important;
}

:root[data-theme="light"] .context-help-steps li,
html[data-theme="light"] .context-help-steps li,
body.theme-light .context-help-steps li {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
    line-height: 1.55 !important;
}

:root[data-theme="light"] .context-help-steps li::before,
html[data-theme="light"] .context-help-steps li::before,
body.theme-light .context-help-steps li::before {
    background: #e0f2fe !important;
    color: #0284c7 !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .context-help-requirement,
html[data-theme="light"] .context-help-requirement,
body.theme-light .context-help-requirement {
    background: #f8fafc !important;
    border-left: 3px solid #94a3b8 !important;
    color: #475569 !important;
}

:root[data-theme="light"] .context-help-requirement.required,
html[data-theme="light"] .context-help-requirement.required,
body.theme-light .context-help-requirement.required {
    background: #f0fdf4 !important;
    border-color: #22c55e !important;
    color: #15803d !important;
    font-weight: 600 !important;
}

:root[data-theme="light"] .context-help-related,
html[data-theme="light"] .context-help-related,
body.theme-light .context-help-related {
    background: #f0f9ff !important;
    border: 1px solid #bae6fd !important;
    color: #0369a1 !important;
}

:root[data-theme="light"] .context-help-related i,
html[data-theme="light"] .context-help-related i,
body.theme-light .context-help-related i {
    color: #0284c7 !important;
}

:root[data-theme="light"] .context-help-manual-box,
html[data-theme="light"] .context-help-manual-box,
body.theme-light .context-help-manual-box {
    border-top: 1px solid #e2e8f0 !important;
}

:root[data-theme="light"] .context-help-dialog > footer,
html[data-theme="light"] .context-help-dialog > footer,
body.theme-light .context-help-dialog > footer {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
}

/* ========================================================
   LIGHT MODE: TABLE BADGES, VERSION PILLS & ADMIN BADGES
   ======================================================== */
:root[data-theme="light"] .cell-primary,
html[data-theme="light"] .cell-primary,
body.theme-light .cell-primary {
    color: #0f172a !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .cell-secondary,
html[data-theme="light"] .cell-secondary,
body.theme-light .cell-secondary {
    color: #475569 !important;
    font-weight: 500 !important;
}

:root[data-theme="light"] .panel-table td strong,
:root[data-theme="light"] .panel-table td b,
html[data-theme="light"] .panel-table td strong,
body.theme-light .panel-table td strong {
    color: #0f172a !important;
}

:root[data-theme="light"] .table-link,
html[data-theme="light"] .table-link,
body.theme-light .table-link {
    color: #0f172a !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .table-link:hover,
html[data-theme="light"] .table-link:hover,
body.theme-light .table-link:hover {
    color: #0284c7 !important;
}

:root[data-theme="light"] .service-admin-name strong,
:root[data-theme="light"] .policy-admin-name strong,
html[data-theme="light"] .service-admin-name strong,
body.theme-light .service-admin-name strong {
    color: #0f172a !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .service-admin-name small,
:root[data-theme="light"] .policy-admin-name small,
html[data-theme="light"] .service-admin-name small,
body.theme-light .service-admin-name small {
    color: #64748b !important;
}

:root[data-theme="light"] .service-admin-name small code,
:root[data-theme="light"] .policy-admin-name small code,
html[data-theme="light"] .service-admin-name small code,
body.theme-light .service-admin-name small code {
    background: #e2e8f0 !important;
    color: #0369a1 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px;
    padding: 1px 4px;
}

:root[data-theme="light"] .service-admin-icon,
:root[data-theme="light"] .policy-admin-icon,
html[data-theme="light"] .service-admin-icon,
body.theme-light .service-admin-icon {
    background: #e0f2fe !important;
    color: #0284c7 !important;
    border: 1px solid #bae6fd !important;
}

:root[data-theme="light"] .admin-avatar,
html[data-theme="light"] .admin-avatar,
body.theme-light .admin-avatar {
    background: #0284c7 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .version-pill,
html[data-theme="light"] .version-pill,
body.theme-light .version-pill {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .policy-tour-list span,
html[data-theme="light"] .policy-tour-list span,
body.theme-light .policy-tour-list span {
    background: #e0f2fe !important;
    border: 1px solid #bae6fd !important;
    color: #0369a1 !important;
    font-weight: 600 !important;
}

:root[data-theme="light"] .language-code,
html[data-theme="light"] .language-code,
body.theme-light .language-code {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}

:root[data-theme="light"] .current-admin-badge,
html[data-theme="light"] .current-admin-badge,
body.theme-light .current-admin-badge {
    background: #e0f2fe !important;
    color: #0284c7 !important;
}

/* Base and specific Status Badges (High Contrast) */
:root[data-theme="light"] .status-badge,
html[data-theme="light"] .status-badge,
body.theme-light .status-badge {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
}

:root[data-theme="light"] .status-badge.open,
:root[data-theme="light"] .status-badge.active,
:root[data-theme="light"] .status-badge.published,
:root[data-theme="light"] .status-badge.confirmed,
:root[data-theme="light"] .status-badge.validated,
:root[data-theme="light"] .status-badge.verified,
:root[data-theme="light"] .status-badge.paid,
html[data-theme="light"] .status-badge.open,
html[data-theme="light"] .status-badge.active,
html[data-theme="light"] .status-badge.published,
html[data-theme="light"] .status-badge.confirmed,
html[data-theme="light"] .status-badge.validated,
html[data-theme="light"] .status-badge.verified,
html[data-theme="light"] .status-badge.paid,
body.theme-light .status-badge.open,
body.theme-light .status-badge.active,
body.theme-light .status-badge.published,
body.theme-light .status-badge.confirmed,
body.theme-light .status-badge.validated,
body.theme-light .status-badge.verified,
body.theme-light .status-badge.paid {
    background: #dcfce7 !important;
    border: 1px solid #86efac !important;
    color: #15803d !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .status-badge.closed,
:root[data-theme="light"] .status-badge.inactive,
:root[data-theme="light"] .status-badge.draft,
:root[data-theme="light"] .status-badge.paused,
:root[data-theme="light"] .status-badge.expired,
:root[data-theme="light"] .status-badge.not_selected,
html[data-theme="light"] .status-badge.closed,
html[data-theme="light"] .status-badge.inactive,
html[data-theme="light"] .status-badge.draft,
html[data-theme="light"] .status-badge.paused,
html[data-theme="light"] .status-badge.expired,
html[data-theme="light"] .status-badge.not_selected,
body.theme-light .status-badge.closed,
body.theme-light .status-badge.inactive,
body.theme-light .status-badge.draft,
body.theme-light .status-badge.paused,
body.theme-light .status-badge.expired,
body.theme-light .status-badge.not_selected {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .status-badge.pending,
:root[data-theme="light"] .status-badge.warning,
:root[data-theme="light"] .status-badge.awaiting_validation,
:root[data-theme="light"] .status-badge.receipt_submitted,
:root[data-theme="light"] .status-badge.cash_approval_pending,
html[data-theme="light"] .status-badge.pending,
html[data-theme="light"] .status-badge.warning,
html[data-theme="light"] .status-badge.awaiting_validation,
html[data-theme="light"] .status-badge.receipt_submitted,
html[data-theme="light"] .status-badge.cash_approval_pending,
body.theme-light .status-badge.pending,
body.theme-light .status-badge.warning,
body.theme-light .status-badge.awaiting_validation,
body.theme-light .status-badge.receipt_submitted,
body.theme-light .status-badge.cash_approval_pending {
    background: #fef3c7 !important;
    border: 1px solid #fde68a !important;
    color: #92400e !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .status-badge.danger,
:root[data-theme="light"] .status-badge.rejected,
:root[data-theme="light"] .status-badge.cancelled,
:root[data-theme="light"] .status-badge.retired,
:root[data-theme="light"] .status-badge.no_show,
html[data-theme="light"] .status-badge.danger,
html[data-theme="light"] .status-badge.rejected,
html[data-theme="light"] .status-badge.cancelled,
html[data-theme="light"] .status-badge.retired,
html[data-theme="light"] .status-badge.no_show,
body.theme-light .status-badge.danger,
body.theme-light .status-badge.rejected,
body.theme-light .status-badge.cancelled,
body.theme-light .status-badge.retired,
body.theme-light .status-badge.no_show {
    background: #fee2e2 !important;
    border: 1px solid #fca5a5 !important;
    color: #b91c1c !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .status-badge.approved,
:root[data-theme="light"] .status-badge.partial_paid,
:root[data-theme="light"] .status-badge.cash_due,
:root[data-theme="light"] .status-badge.completed,
html[data-theme="light"] .status-badge.approved,
body.theme-light .status-badge.approved {
    background: #e0f2fe !important;
    border: 1px solid #bae6fd !important;
    color: #0369a1 !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .status-badge.in_progress,
html[data-theme="light"] .status-badge.in_progress,
body.theme-light .status-badge.in_progress {
    background: #ccfbf1 !important;
    border: 1px solid #99f6e4 !important;
    color: #0f766e !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .status-badge.details_submitted,
html[data-theme="light"] .status-badge.details_submitted,
body.theme-light .status-badge.details_submitted {
    background: #f3e8ff !important;
    border: 1px solid #e9d5ff !important;
    color: #7e22ce !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .status-badge.scheduled,
html[data-theme="light"] .status-badge.scheduled,
body.theme-light .status-badge.scheduled {
    background: #ede9fe !important;
    border: 1px solid #ddd6fe !important;
    color: #5b21b6 !important;
    font-weight: 700 !important;
}

/* High contrast Action Buttons (.btn-action) */
:root[data-theme="light"] .btn-action,
html[data-theme="light"] .btn-action,
body.theme-light .btn-action {
    background: #f1f5f9 !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #334155 !important;
}

:root[data-theme="light"] .btn-action:hover:not(:disabled),
html[data-theme="light"] .btn-action:hover:not(:disabled),
body.theme-light .btn-action:hover:not(:disabled) {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    border-color: #0284c7 !important;
}

:root[data-theme="light"] .btn-action.complete,
html[data-theme="light"] .btn-action.complete,
body.theme-light .btn-action.complete {
    background: #e0f2fe !important;
    border: 1.5px solid #bae6fd !important;
    color: #0284c7 !important;
}

:root[data-theme="light"] .btn-action.complete:hover:not(:disabled),
html[data-theme="light"] .btn-action.complete:hover:not(:disabled),
body.theme-light .btn-action.complete:hover:not(:disabled) {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
}

:root[data-theme="light"] .btn-action.confirm,
html[data-theme="light"] .btn-action.confirm,
body.theme-light .btn-action.confirm {
    background: #dcfce7 !important;
    border: 1.5px solid #bbf7d0 !important;
    color: #15803d !important;
}

:root[data-theme="light"] .btn-action.confirm:hover:not(:disabled),
html[data-theme="light"] .btn-action.confirm:hover:not(:disabled),
body.theme-light .btn-action.confirm:hover:not(:disabled) {
    background: #16a34a !important;
    color: #ffffff !important;
    border-color: #16a34a !important;
}

:root[data-theme="light"] .btn-action.cancel,
html[data-theme="light"] .btn-action.cancel,
body.theme-light .btn-action.cancel {
    background: #fee2e2 !important;
    border: 1.5px solid #fecaca !important;
    color: #dc2626 !important;
}

:root[data-theme="light"] .btn-action.cancel:hover:not(:disabled),
html[data-theme="light"] .btn-action.cancel:hover:not(:disabled),
body.theme-light .btn-action.cancel:hover:not(:disabled) {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
}

/* High contrast Checkboxes & Toggles */
:root[data-theme="light"] .legal-checkbox,
:root[data-theme="light"] label.legal-checkbox,
html[data-theme="light"] .legal-checkbox,
html[data-theme="light"] label.legal-checkbox,
body.theme-light .legal-checkbox,
body.theme-light label.legal-checkbox {
    color: #0f172a !important;
}

:root[data-theme="light"] .legal-checkbox strong,
:root[data-theme="light"] label.legal-checkbox strong,
html[data-theme="light"] .legal-checkbox strong,
body.theme-light .legal-checkbox strong {
    color: #0f172a !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .legal-checkbox small,
:root[data-theme="light"] label.legal-checkbox small,
html[data-theme="light"] .legal-checkbox small,
body.theme-light .legal-checkbox small {
    color: #475569 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}

:root[data-theme="light"] .toggle,
:root[data-theme="light"] label.toggle,
:root[data-theme="light"] .field label.toggle,
html[data-theme="light"] .toggle,
html[data-theme="light"] label.toggle,
html[data-theme="light"] .field label.toggle,
body.theme-light .toggle,
body.theme-light label.toggle,
body.theme-light .field label.toggle {
    color: #0f172a !important;
    font-weight: 600 !important;
}

:root[data-theme="light"] .toggle-row label,
html[data-theme="light"] .toggle-row label,
body.theme-light .toggle-row label {
    color: #0f172a !important;
    font-weight: 600 !important;
}

:root[data-theme="light"] .toggle-card,
html[data-theme="light"] .toggle-card,
body.theme-light .toggle-card {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

:root[data-theme="light"] .toggle-card strong,
html[data-theme="light"] .toggle-card strong,
body.theme-light .toggle-card strong {
    color: #0f172a !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .toggle-card small,
html[data-theme="light"] .toggle-card small,
body.theme-light .toggle-card small {
    color: #64748b !important;
}

/* High contrast Danger & Warning Buttons */
:root[data-theme="light"] .btn-admin.danger,
html[data-theme="light"] .btn-admin.danger,
body.theme-light .btn-admin.danger {
    background: #fee2e2 !important;
    border: 1.5px solid #fca5a5 !important;
    color: #dc2626 !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .btn-admin.danger:hover,
html[data-theme="light"] .btn-admin.danger:hover,
body.theme-light .btn-admin.danger:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
}

:root[data-theme="light"] .btn-admin.warning,
html[data-theme="light"] .btn-admin.warning,
body.theme-light .btn-admin.warning {
    background: #fef3c7 !important;
    border: 1.5px solid #fde68a !important;
    color: #b45309 !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .btn-admin.warning:hover,
html[data-theme="light"] .btn-admin.warning:hover,
body.theme-light .btn-admin.warning:hover {
    background: #d97706 !important;
    color: #ffffff !important;
    border-color: #d97706 !important;
}

/* Summary list & Root Headings */
:root[data-theme="light"] .summary-list li,
html[data-theme="light"] .summary-list li,
body.theme-light .summary-list li {
    border-bottom: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
}

:root[data-theme="light"] .summary-list strong,
html[data-theme="light"] .summary-list strong,
body.theme-light .summary-list strong {
    color: #0f172a !important;
}

:root[data-theme="light"] .summary-list small,
html[data-theme="light"] .summary-list small,
body.theme-light .summary-list small {
    color: #64748b !important;
}

:root[data-theme="light"] .summary-list i,
html[data-theme="light"] .summary-list i,
body.theme-light .summary-list i {
    color: #0284c7 !important;
}

:root[data-theme="light"] .root-control-heading,
html[data-theme="light"] .root-control-heading,
body.theme-light .root-control-heading {
    color: #b45309 !important;
    font-weight: 800 !important;
}


/* ========================================================
   LIGHT MODE: ACTION BUTTON MODALS & FORM DETAILS
   ======================================================== */
:root[data-theme="light"] .admin-modal,
html[data-theme="light"] .admin-modal,
body.theme-light .admin-modal {
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(6px) !important;
}

:root[data-theme="light"] .modal-close,
html[data-theme="light"] .modal-close,
body.theme-light .modal-close {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
}

:root[data-theme="light"] .modal-close:hover,
:root[data-theme="light"] .modal-close:focus-visible,
html[data-theme="light"] .modal-close:hover,
body.theme-light .modal-close:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    border-color: #0284c7 !important;
}

:root[data-theme="light"] .admin-modal-body,
html[data-theme="light"] .admin-modal-body,
body.theme-light .admin-modal-body {
    background: #ffffff !important;
    scrollbar-color: #cbd5e1 #f8fafc !important;
    color: #0f172a !important;
}

:root[data-theme="light"] .modal-section-heading,
html[data-theme="light"] .modal-section-heading,
body.theme-light .modal-section-heading {
    color: #0f172a !important;
    border-top: 1px solid #e2e8f0 !important;
}

:root[data-theme="light"] .modal-section-heading i,
html[data-theme="light"] .modal-section-heading i,
body.theme-light .modal-section-heading i {
    color: #0284c7 !important;
}

:root[data-theme="light"] .modal-hint,
html[data-theme="light"] .modal-hint,
body.theme-light .modal-hint {
    color: #64748b !important;
}

:root[data-theme="light"] .detail-item,
html[data-theme="light"] .detail-item,
body.theme-light .detail-item {
    border-bottom: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
}

:root[data-theme="light"] .detail-item span,
html[data-theme="light"] .detail-item span,
body.theme-light .detail-item span {
    color: #64748b !important;
}

:root[data-theme="light"] .admin-modal .field input[readonly],
html[data-theme="light"] .admin-modal .field input[readonly],
body.theme-light .admin-modal .field input[readonly] {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}

:root[data-theme="light"] .admin-modal .field input[type="date"],
:root[data-theme="light"] .admin-modal .field input[type="time"],
:root[data-theme="light"] .admin-modal .field input[type="month"],
html[data-theme="light"] .admin-modal .field input[type="date"],
html[data-theme="light"] .admin-modal .field input[type="time"],
html[data-theme="light"] .admin-modal .field input[type="month"],
body.theme-light .admin-modal .field input[type="date"],
body.theme-light .admin-modal .field input[type="time"],
body.theme-light .admin-modal .field input[type="month"] {
    color-scheme: light !important;
}

:root[data-theme="light"] .admin-modal .field input[type="file"]::file-selector-button,
html[data-theme="light"] .admin-modal .field input[type="file"]::file-selector-button,
body.theme-light .admin-modal .field input[type="file"]::file-selector-button {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
}

:root[data-theme="light"] .admin-modal .field input[type="file"]::file-selector-button:hover,
html[data-theme="light"] .admin-modal .field input[type="file"]::file-selector-button:hover,
body.theme-light .admin-modal .field input[type="file"]::file-selector-button:hover {
    background: #e2e8f0 !important;
    border-color: #0284c7 !important;
}

:root[data-theme="light"] .modal-validation-summary,
html[data-theme="light"] .modal-validation-summary,
body.theme-light .modal-validation-summary {
    background: #fef2f2 !important;
    border: 1.5px solid #fecaca !important;
    color: #991b1b !important;
}

:root[data-theme="light"] .modal-validation-summary i,
html[data-theme="light"] .modal-validation-summary i,
body.theme-light .modal-validation-summary i {
    color: #ef4444 !important;
}

:root[data-theme="light"] .modal-auto-draft-alert,
html[data-theme="light"] .modal-auto-draft-alert,
body.theme-light .modal-auto-draft-alert {
    background: #f0f9ff !important;
    border: 1.5px solid #bae6fd !important;
    color: #0f172a !important;
}

:root[data-theme="light"] .modal-auto-draft-alert strong,
html[data-theme="light"] .modal-auto-draft-alert strong,
body.theme-light .modal-auto-draft-alert strong {
    color: #0369a1 !important;
}

:root[data-theme="light"] .modal-auto-draft-alert span,
html[data-theme="light"] .modal-auto-draft-alert span,
body.theme-light .modal-auto-draft-alert span {
    color: #475569 !important;
}

:root[data-theme="light"] .draft-badge,
html[data-theme="light"] .draft-badge,
body.theme-light .draft-badge {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
}

:root[data-theme="light"] .fleet-shortage-badge,
html[data-theme="light"] .fleet-shortage-badge,
body.theme-light .fleet-shortage-badge {
    background: #fffbeb !important;
    border: 1px solid #fde68a !important;
    color: #92400e !important;
}

:root[data-theme="light"] .fleet-partner-badge,
html[data-theme="light"] .fleet-partner-badge,
body.theme-light .fleet-partner-badge {
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    color: #166534 !important;
}

/* ========================================================
   LIGHT MODE: SCHEDULE CONTROLS & MONTH CALENDAR
   ======================================================== */
:root[data-theme="light"] .schedule-view-switcher,
html[data-theme="light"] .schedule-view-switcher,
body.theme-light .schedule-view-switcher {
    display: flex;
    gap: 4px;
    background: #f1f5f9 !important;
    padding: 3px;
    border-radius: 8px;
    border: 1px solid #cbd5e1 !important;
}

:root[data-theme="light"] .schedule-view-switcher .btn-admin.ghost,
html[data-theme="light"] .schedule-view-switcher .btn-admin.ghost,
body.theme-light .schedule-view-switcher .btn-admin.ghost {
    background: transparent !important;
    color: #475569 !important;
    border: none !important;
}

:root[data-theme="light"] .schedule-view-switcher .btn-admin.ghost:hover,
html[data-theme="light"] .schedule-view-switcher .btn-admin.ghost:hover,
body.theme-light .schedule-view-switcher .btn-admin.ghost:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

:root[data-theme="light"] .calendar-toolbar,
html[data-theme="light"] .calendar-toolbar,
body.theme-light .calendar-toolbar {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

:root[data-theme="light"] .calendar-toolbar h2,
html[data-theme="light"] .calendar-toolbar h2,
body.theme-light .calendar-toolbar h2 {
    color: #0f172a !important;
}

:root[data-theme="light"] .calendar-weekday,
html[data-theme="light"] .calendar-weekday,
body.theme-light .calendar-weekday {
    background: #f8fafc !important;
    color: #64748b !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

:root[data-theme="light"] .calendar-day,
html[data-theme="light"] .calendar-day,
body.theme-light .calendar-day {
    background: #ffffff !important;
    border-right: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

:root[data-theme="light"] .calendar-day.outside,
html[data-theme="light"] .calendar-day.outside,
body.theme-light .calendar-day.outside {
    background: #f8fafc !important;
    opacity: 0.65 !important;
}

:root[data-theme="light"] .calendar-day.today,
html[data-theme="light"] .calendar-day.today,
body.theme-light .calendar-day.today {
    background: #f0f9ff !important;
    box-shadow: inset 0 0 0 2px #0284c7 !important;
}

:root[data-theme="light"] .calendar-number,
html[data-theme="light"] .calendar-number,
body.theme-light .calendar-number {
    color: #475569 !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .calendar-event,
html[data-theme="light"] .calendar-event,
body.theme-light .calendar-event {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    border-left: 3px solid #0284c7 !important;
    font-weight: 600 !important;
}

:root[data-theme="light"] .calendar-event.closed,
:root[data-theme="light"] .calendar-event.cancelled,
html[data-theme="light"] .calendar-event.closed,
body.theme-light .calendar-event.closed {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border-left-color: #ef4444 !important;
}

:root[data-theme="light"] .calendar-event.scheduled,
html[data-theme="light"] .calendar-event.scheduled,
body.theme-light .calendar-event.scheduled {
    background: #ede9fe !important;
    color: #5b21b6 !important;
    border-left-color: #6366f1 !important;
}

:root[data-theme="light"] .calendar-event.full,
html[data-theme="light"] .calendar-event.full,
body.theme-light .calendar-event.full {
    background: #fef3c7 !important;
    color: #92400e !important;
    border-left-color: #f59e0b !important;
}

:root[data-theme="light"] .calendar-event.in_progress,
html[data-theme="light"] .calendar-event.in_progress,
body.theme-light .calendar-event.in_progress {
    background: #ccfbf1 !important;
    color: #115e59 !important;
    border-left-color: #06b6d4 !important;
}

:root[data-theme="light"] .calendar-event.delayed,
html[data-theme="light"] .calendar-event.delayed,
body.theme-light .calendar-event.delayed {
    background: #ffedd5 !important;
    color: #9a3412 !important;
    border-left-color: #f97316 !important;
}

/* ==========================================================================
   ADVANCED TOUR IMAGE UPLOADER & SEPARATE HERO/GALLERY (ADMIN)
   ========================================================================== */
.tour-image-section-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 18px;
    transition: all 0.2s ease;
}
.tour-image-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.tour-dropzone {
    border: 2px dashed rgba(12, 178, 219, 0.35);
    background: rgba(12, 178, 219, 0.03);
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.tour-dropzone:hover, .tour-dropzone.dragover {
    border-color: var(--panel-accent, #0cb2db);
    background: rgba(12, 178, 219, 0.08);
    transform: translateY(-1px);
}
.tour-dropzone.tour-dropzone-primary {
    border-color: rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.03);
}
.tour-dropzone.tour-dropzone-primary:hover,
.tour-dropzone.tour-dropzone-primary.dragover {
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.08);
}
.tour-dropzone.tour-dropzone-primary i.dropzone-icon {
    color: #fbbf24;
}
.tour-dropzone i.dropzone-icon {
    font-size: 32px;
    color: var(--panel-accent, #0cb2db);
}
.tour-dropzone strong {
    font-size: 14px;
    color: #f8fafc;
}
.tour-dropzone p {
    margin: 0;
    font-size: 12px;
    color: var(--panel-muted, #94a3b8);
}

/* Primary Hero Card Component */
.tour-primary-hero-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(15, 23, 42, 0.85);
    border: 1.5px solid rgba(251, 191, 36, 0.45);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 14px rgba(251, 191, 36, 0.08);
    transition: all 0.2s ease;
}
.tour-primary-hero-thumb {
    position: relative;
    width: 140px;
    height: 92px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #020617;
}
.tour-primary-hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tour-primary-badge-pill {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #f59e0b;
    color: #000;
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 7px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.tour-primary-hero-info {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.tour-primary-hero-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.tour-primary-filename {
    font-size: 13px;
    font-weight: 700;
    color: #f8fafc;
    word-break: break-all;
}
.tour-primary-meta {
    font-size: 11.5px;
    color: var(--panel-muted, #94a3b8);
}
.tour-primary-hero-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
@media (max-width: 600px) {
    .tour-primary-hero-card {
        flex-direction: column;
        align-items: stretch;
    }
    .tour-primary-hero-thumb {
        width: 100%;
        height: 150px;
    }
}
.tour-image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 16px;
}
.tour-image-preview-card {
    position: relative;
    background: rgba(15, 23, 42, 0.7);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}
.tour-image-preview-card.is-primary {
    border-color: var(--panel-accent, #0cb2db);
    box-shadow: 0 0 12px rgba(12, 178, 219, 0.3);
}
.tour-image-preview-card .preview-thumb-wrap {
    position: relative;
    width: 100%;
    height: 120px;
    background: #000;
}
.tour-image-preview-card .preview-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tour-image-preview-card .primary-tag {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #0284c7;
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.tour-image-preview-card .preview-card-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.tour-image-preview-card .preview-filename {
    font-size: 11.5px;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tour-image-preview-card .preview-meta {
    font-size: 10.5px;
    color: var(--panel-muted, #94a3b8);
}
.tour-image-preview-card .preview-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 6px;
}
.tour-image-preview-card .btn-set-primary {
    flex: 1;
    font-size: 11px;
    padding: 4px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.15s ease;
}
.tour-image-preview-card .btn-set-primary:hover {
    background: rgba(12, 178, 219, 0.2);
    border-color: var(--panel-accent, #0cb2db);
    color: #38bdf8;
}
.tour-image-preview-card.is-primary .btn-set-primary {
    background: rgba(12, 178, 219, 0.25);
    border-color: var(--panel-accent, #0cb2db);
    color: #38bdf8;
    font-weight: 700;
}
.tour-image-preview-card .btn-remove-preview {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
}
.tour-image-preview-card .btn-remove-preview:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #fff;
}

/* ==========================================================================
   WIZARD STEP 8: LIVE TOUR PREVIEW & DUMMY DISPATCH SIMULATION (COMPACT & SLEEK)
   ========================================================================== */
.tour-preview-container {
    background: #040810;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 14px 16px;
    margin-top: 10px;
}
.tour-preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 14px;
}
.tour-preview-lang-tabs {
    display: flex;
    gap: 5px;
}
.tour-preview-lang-btn {
    padding: 5px 12px;
    border-radius: 7px;
    font-size: 11.5px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.15s ease;
}
.tour-preview-lang-btn.active {
    background: var(--panel-accent, #0cb2db);
    color: #041118;
    border-color: var(--panel-accent, #0cb2db);
}
.tour-preview-card-rendered {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.tour-preview-hero-section {
    position: relative;
    height: 155px;
    background: #0f172a;
    display: flex;
    align-items: flex-end;
    padding: 14px 18px;
    overflow: hidden;
}
.tour-preview-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    transition: filter 0.25s ease;
}
.tour-preview-hero-badges {
    position: absolute;
    top: 12px;
    left: 14px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    z-index: 2;
}
.tour-preview-badge {
    background: rgba(4, 17, 24, 0.85);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f8fafc;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.tour-preview-badge.modality {
    background: var(--panel-accent, #0cb2db);
    color: #041118;
    border-color: var(--panel-accent, #0cb2db);
}
.tour-preview-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}
.tour-preview-hero-content h2 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 2px 0;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}
.tour-preview-hero-content p {
    margin: 0;
    font-size: 12px;
    color: #e2e8f0;
    opacity: 0.9;
}
.tour-preview-body-rendered {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.tour-preview-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 16px;
    align-items: start;
}
.tour-preview-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tour-preview-metrics-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 8px 10px;
}
.tour-preview-metric-box {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.tour-preview-metric-box small {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--panel-muted, #94a3b8);
}
.tour-preview-metric-box strong {
    font-size: 13.5px;
    font-weight: 800;
    color: #38bdf8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tour-preview-gallery-strip {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.tour-preview-gallery-thumb {
    width: 66px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    border: 2px solid transparent;
    background: #020617;
    flex-shrink: 0;
    cursor: pointer;
    opacity: 0.75;
    transition: all 0.15s ease;
}
.tour-preview-gallery-thumb:hover {
    opacity: 1;
    border-color: rgba(12, 178, 219, 0.5);
    transform: scale(1.05);
}
.tour-preview-gallery-thumb.active {
    opacity: 1;
    border-color: var(--panel-accent, #0cb2db);
    box-shadow: 0 0 8px rgba(12, 178, 219, 0.4);
}
.tour-preview-timeline {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tour-preview-timeline-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--panel-accent, #0cb2db);
    border-radius: 0 6px 6px 0;
}
.tour-preview-timeline-item.is-start {
    border-left-color: #22c55e;
}
.tour-preview-timeline-item.is-end {
    border-left-color: #f59e0b;
}
.tour-preview-timeline-num {
    font-size: 10px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tour-preview-timeline-text {
    font-size: 12px;
    font-weight: 600;
    color: #e2e8f0;
}
.tour-preview-services-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.tour-preview-service-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(12, 178, 219, 0.08);
    border: 1px solid rgba(12, 178, 219, 0.22);
    color: #e0f2fe;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}
.tour-preview-service-chip i {
    color: var(--panel-accent, #0cb2db);
}
.tour-preview-dummy-dispatch {
    background: linear-gradient(135deg, rgba(12, 178, 219, 0.1), rgba(15, 23, 42, 0.8));
    border: 1.5px dashed rgba(12, 178, 219, 0.35);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tour-preview-dummy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}
.tour-preview-dummy-title {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tour-preview-dummy-badge {
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #4ade80;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 5px;
}
.tour-preview-dummy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.tour-preview-dummy-item {
    font-size: 11px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 5px;
}
.tour-preview-dummy-item i {
    color: var(--panel-accent, #0cb2db);
}
.tour-preview-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tour-preview-section-title i {
    color: var(--panel-accent, #0cb2db);
}
.tour-preview-text {
    margin: 0;
    font-size: 12px;
    color: var(--panel-muted, #94a3b8);
    line-height: 1.5;
    white-space: pre-line;
}
.tour-preview-dummy-desc {
    margin: 0;
    font-size: 11.5px;
    color: #cbd5e1;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .tour-preview-grid-2col {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .tour-preview-metrics-row {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .tour-preview-hero-section {
        height: 130px;
        padding: 10px 12px;
    }
    .tour-preview-hero-content h2 {
        font-size: 16px;
    }
    .tour-preview-dummy-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   CLIENT PANEL: TOUR CATALOG & EMBEDDED QUICK-VIEW MODAL
   ========================================================================== */
.client-tour-catalog-section {
    margin-bottom: 24px;
}
.client-tour-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 14px;
}
.client-tour-card {
    background: var(--panel-card, #0b1320);
    border: 1px solid var(--panel-border, #1e293b);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}
.client-tour-card:hover {
    transform: translateY(-2px);
    border-color: var(--panel-accent, #0cb2db);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.client-tour-card-cover {
    position: relative;
    height: 160px;
    background: #0f172a;
}
.client-tour-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.client-tour-card-cover .modality-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(4, 17, 24, 0.85);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #38bdf8;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}
.client-tour-card-cover .price-tag {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(4, 17, 24, 0.9);
    border: 1px solid rgba(12, 178, 219, 0.4);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 8px;
}
.client-tour-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.client-tour-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #f8fafc;
    margin: 0;
    line-height: 1.35;
}
.client-tour-card-meta {
    display: flex;
    gap: 12px;
    font-size: 11.5px;
    color: var(--panel-muted, #94a3b8);
}
.client-tour-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.client-tour-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
}

/* Light mode overrides for client tour catalog */
:root[data-theme="light"] .client-tour-card,
html[data-theme="light"] .client-tour-card,
body.theme-light .client-tour-card {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}
:root[data-theme="light"] .client-tour-card:hover,
html[data-theme="light"] .client-tour-card:hover,
body.theme-light .client-tour-card:hover {
    border-color: #0284c7 !important;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.15) !important;
}
:root[data-theme="light"] .client-tour-card-title,
html[data-theme="light"] .client-tour-card-title,
body.theme-light .client-tour-card-title {
    color: #0f172a !important;
}
:root[data-theme="light"] .tour-dropzone,
html[data-theme="light"] .tour-dropzone,
body.theme-light .tour-dropzone {
    background: #f0f9ff !important;
    border-color: #0284c7 !important;
}
:root[data-theme="light"] .tour-dropzone strong,
html[data-theme="light"] .tour-dropzone strong,
body.theme-light .tour-dropzone strong {
    color: #0369a1 !important;
}
:root[data-theme="light"] .tour-preview-container,
html[data-theme="light"] .tour-preview-container,
body.theme-light .tour-preview-container {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

:root[data-theme="light"] .tour-preview-toolbar,
html[data-theme="light"] .tour-preview-toolbar,
body.theme-light .tour-preview-toolbar {
    border-bottom-color: #e2e8f0 !important;
}

:root[data-theme="light"] .tour-preview-lang-btn,
html[data-theme="light"] .tour-preview-lang-btn,
body.theme-light .tour-preview-lang-btn {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}

:root[data-theme="light"] .tour-preview-lang-btn.active,
html[data-theme="light"] .tour-preview-lang-btn.active,
body.theme-light .tour-preview-lang-btn.active {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
}

:root[data-theme="light"] .tour-preview-card-rendered,
html[data-theme="light"] .tour-preview-card-rendered,
body.theme-light .tour-preview-card-rendered {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
}

:root[data-theme="light"] .tour-preview-body-rendered,
html[data-theme="light"] .tour-preview-body-rendered,
body.theme-light .tour-preview-body-rendered {
    background: #ffffff !important;
}

:root[data-theme="light"] .tour-preview-metrics-row,
html[data-theme="light"] .tour-preview-metrics-row,
body.theme-light .tour-preview-metrics-row {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

:root[data-theme="light"] .tour-preview-metric-box small,
html[data-theme="light"] .tour-preview-metric-box small,
body.theme-light .tour-preview-metric-box small {
    color: #64748b !important;
}

:root[data-theme="light"] .tour-preview-metric-box strong,
html[data-theme="light"] .tour-preview-metric-box strong,
body.theme-light .tour-preview-metric-box strong {
    color: #0284c7 !important;
}

:root[data-theme="light"] .tour-preview-section-title,
html[data-theme="light"] .tour-preview-section-title,
body.theme-light .tour-preview-section-title {
    color: #0f172a !important;
}

:root[data-theme="light"] .tour-preview-section-title i,
html[data-theme="light"] .tour-preview-section-title i,
body.theme-light .tour-preview-section-title i {
    color: #0284c7 !important;
}

:root[data-theme="light"] .tour-preview-text,
html[data-theme="light"] .tour-preview-text,
body.theme-light .tour-preview-text {
    color: #334155 !important;
}

:root[data-theme="light"] .tour-preview-gallery-thumb,
html[data-theme="light"] .tour-preview-gallery-thumb,
body.theme-light .tour-preview-gallery-thumb {
    border-color: #cbd5e1 !important;
}

:root[data-theme="light"] .tour-preview-timeline-item,
html[data-theme="light"] .tour-preview-timeline-item,
body.theme-light .tour-preview-timeline-item {
    background: #f8fafc !important;
    border-left-color: #0284c7 !important;
}

:root[data-theme="light"] .tour-preview-timeline-item.is-start,
html[data-theme="light"] .tour-preview-timeline-item.is-start,
body.theme-light .tour-preview-timeline-item.is-start {
    border-left-color: #16a34a !important;
}

:root[data-theme="light"] .tour-preview-timeline-item.is-end,
html[data-theme="light"] .tour-preview-timeline-item.is-end,
body.theme-light .tour-preview-timeline-item.is-end {
    border-left-color: #d97706 !important;
}

:root[data-theme="light"] .tour-preview-timeline-num,
html[data-theme="light"] .tour-preview-timeline-num,
body.theme-light .tour-preview-timeline-num {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

:root[data-theme="light"] .tour-preview-timeline-text,
html[data-theme="light"] .tour-preview-timeline-text,
body.theme-light .tour-preview-timeline-text {
    color: #0f172a !important;
}

:root[data-theme="light"] .tour-preview-service-chip,
html[data-theme="light"] .tour-preview-service-chip,
body.theme-light .tour-preview-service-chip {
    background: #f0f9ff !important;
    border-color: #bae6fd !important;
    color: #0369a1 !important;
}

:root[data-theme="light"] .tour-preview-service-chip i,
html[data-theme="light"] .tour-preview-service-chip i,
body.theme-light .tour-preview-service-chip i {
    color: #0284c7 !important;
}

:root[data-theme="light"] .tour-preview-dummy-dispatch,
html[data-theme="light"] .tour-preview-dummy-dispatch,
body.theme-light .tour-preview-dummy-dispatch {
    background: #f0fdf4 !important;
    border-color: #86efac !important;
}

:root[data-theme="light"] .tour-preview-dummy-title,
html[data-theme="light"] .tour-preview-dummy-title,
body.theme-light .tour-preview-dummy-title {
    color: #166534 !important;
}

:root[data-theme="light"] .tour-preview-dummy-badge,
html[data-theme="light"] .tour-preview-dummy-badge,
body.theme-light .tour-preview-dummy-badge {
    background: #dcfce7 !important;
    border-color: #86efac !important;
    color: #15803d !important;
}

:root[data-theme="light"] .tour-preview-dummy-desc,
html[data-theme="light"] .tour-preview-dummy-desc,
body.theme-light .tour-preview-dummy-desc {
    color: #374151 !important;
}

:root[data-theme="light"] .tour-preview-dummy-item,
html[data-theme="light"] .tour-preview-dummy-item,
body.theme-light .tour-preview-dummy-item {
    color: #1e293b !important;
}

:root[data-theme="light"] .tour-preview-dummy-item i,
html[data-theme="light"] .tour-preview-dummy-item i,
body.theme-light .tour-preview-dummy-item i {
    color: #16a34a !important;
}

:root[data-theme="light"] .tour-image-preview-card,
html[data-theme="light"] .tour-image-preview-card,
body.theme-light .tour-image-preview-card {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
}

:root[data-theme="light"] .tour-image-preview-card .preview-filename,
html[data-theme="light"] .tour-image-preview-card .preview-filename,
body.theme-light .tour-image-preview-card .preview-filename {
    color: #0f172a !important;
}


/* ====================================================================
   STEP 8 — CARD PREVIEW (exact replica of public website card)
   ==================================================================== */

.pv-card {
    width: 520px;
    max-width: 100%;
    background: #0a1628;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0,229,255,0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    transition: transform .3s, box-shadow .3s;
    font-family: var(--text-font, 'Inter', sans-serif);
}
.pv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,229,255,0.15);
}

/* Thumb */
.pv-card-thumb {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    cursor: pointer;
}
.pv-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.pv-card:hover .pv-card-thumb img {
    transform: scale(1.06);
}
.pv-card-duration-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .06em;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

/* Mini Gallery */
.pv-card-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    min-height: 0;
}
.pv-card-gallery:empty { display: none; }
.pv-card-gallery figure {
    margin: 0;
    height: 60px;
    overflow: hidden;
}
.pv-card-gallery figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.pv-card-gallery figure:hover img {
    transform: scale(1.1);
}

/* Content */
.pv-card-content {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Header: Title + Type badge */
.pv-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.pv-card-title {
    margin: 0;
    font-family: var(--title-font, 'Barlow Condensed', sans-serif);
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pv-card-type-badge {
    font-family: var(--title-font, 'Barlow Condensed', sans-serif);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 4px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: .06em;
    flex-shrink: 0;
}
.pv-type-private { background: transparent; color: #00e5ff; border: 1px solid #00e5ff; }
.pv-type-shared { background: transparent; color: #c084fc; border: 1px solid #c084fc; }
.pv-type-transfer { background: transparent; color: #4ade80; border: 1px solid #4ade80; }
.pv-type-chauffeur { background: transparent; color: #fbbf24; border: 1px solid #fbbf24; }

/* Body: Description left + Price right (2 columns with Synchronized 3-Row Height) */
.pv-card-body-2col {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    align-items: stretch !important;
    margin: 6px 0 8px !important;
    box-sizing: border-box !important;
}

/* Description fade */
.pv-card-desc {
    font-size: 11px !important;
    color: #cbd5e1 !important;
    line-height: 1.35 !important;
    background: rgba(255,255,255,0.02) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: 9px !important;
    padding: 7px 9px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 80px !important;
    box-sizing: border-box !important;
}
.pv-card-desc span#pvDescText {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.pv-card-desc .pv-readmore {
    color: #00e5ff !important;
    font-size: 9.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    display: block !important;
    margin-top: 2px !important;
}

/* Price Column (3 Synchronized Rows) */
.pv-card-price-col {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    min-width: 0 !important;
}
.pv-card-price-container {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.08) 0%, rgba(5, 12, 20, 0.6) 100%) !important;
    border: 1px solid rgba(0, 229, 255, 0.22) !important;
    border-radius: 9px !important;
    padding: 7px 9px !important;
    min-height: 80px !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}
.pv-card-price-row {
    display: flex !important;
    align-items: baseline !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    white-space: nowrap !important;
    width: 100% !important;
}
.pv-card-price-row strong {
    font-family: var(--title-font, 'Barlow Condensed', sans-serif) !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #00e5ff !important;
    line-height: 1 !important;
    letter-spacing: -0.01em !important;
    display: block !important;
}
.pv-card-price-unit {
    font-size: 9px !important;
    font-weight: 700 !important;
    color: rgba(255, 255, 255, 0.55) !important;
    text-transform: uppercase !important;
    letter-spacing: .03em !important;
    white-space: nowrap !important;
}
.pv-card-specs-line {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    font-size: 9.5px !important;
    font-weight: 700 !important;
    color: #e2e8f0 !important;
    background: rgba(0, 0, 0, 0.45) !important;
    padding: 2px 6px !important;
    border-radius: 5px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}
.pv-card-specs-line b {
    color: #00e5ff !important;
    font-weight: 700 !important;
}
.pv-specs-dot {
    color: rgba(255, 255, 255, 0.35) !important;
}
.pv-card-extra-row {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: 100% !important;
    margin-top: 1px !important;
}

/* Split row: Services left (50%) + Route right (50%) */
.pv-card-split-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0 !important;
    align-items: stretch !important;
    width: 100% !important;
    background: linear-gradient(180deg, rgba(10, 18, 29, 0.8) 0%, rgba(5, 10, 18, 0.95) 100%) !important;
    border: 1px solid rgba(0, 229, 255, 0.2) !important;
    border-radius: 10px !important;
    margin: 4px 0 8px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}

/* Left block: Services (50%) */
.pv-card-services-block {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    padding: 8px 9px !important;
    border-right: 1px solid rgba(0, 229, 255, 0.16) !important;
    min-width: 0 !important;
    background: rgba(255, 255, 255, 0.015) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}
.pv-card-services-label {
    font-family: var(--title-font, 'Barlow Condensed', sans-serif) !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    color: #00e5ff !important;
    text-transform: uppercase !important;
    letter-spacing: .05em !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-bottom: 5px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.pv-card-services-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4px !important;
    align-content: start !important;
}
.pv-service-chip {
    height: 25px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0,229,255,0.08) !important;
    border: 1px solid rgba(0,229,255,0.25) !important;
    border-radius: 5px !important;
    font-size: 11px !important;
    color: #00e5ff !important;
    cursor: default !important;
    box-sizing: border-box !important;
    transition: background .2s, transform .2s !important;
}
.pv-service-chip.is-more {
    background: rgba(0,229,255,0.2) !important;
    border-color: rgba(0,229,255,0.5) !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
}

/* Right block: Route / Itinerary (50%) */
.pv-card-route-block {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    padding: 8px 9px !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}
.pv-card-route-label {
    font-family: var(--title-font, 'Barlow Condensed', sans-serif) !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    color: #00e5ff !important;
    text-transform: uppercase !important;
    letter-spacing: .05em !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-bottom: 5px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.pv-service-chip:hover {
    background: rgba(0,229,255,0.25);
    transform: translateY(-1px);
}
.pv-card-route-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: #cbd5e1;
    min-width: 0;
}
.pv-route-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pv-route-point {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pv-route-point.pv-start i { color: #4ade80; flex-shrink: 0; }
.pv-route-point.pv-end i { color: #f87171; flex-shrink: 0; }
.pv-route-point b, .pv-route-point span {
    color: #e2e8f0;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pv-route-mid-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 5px;
    font-size: 11px;
    color: #00e5ff;
}
.pv-route-dots {
    display: flex;
    align-items: center;
    gap: 3px;
}
.pv-route-dots i {
    width: 3px;
    height: 3px;
    background: rgba(0,229,255,0.4);
    border-radius: 50%;
    display: block;
}
.pv-route-direct-line {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 5px;
    font-size: 10.5px;
    color: #00e5ff;
    font-style: normal;
}
.pv-route-direct-line i { font-size: 10px; opacity: 0.8; }
.pv-route-chauffeur-sub {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 5px;
}
.pv-route-chauffeur-sub i { color: #fbbf24; font-size: 10px; }

/* Schedule (dummy) */
.pv-card-schedule {
    display: none;
}

/* Action Buttons */
.pv-card-actions {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    margin-top: 2px;
}
.pv-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 18px;
    font-family: var(--title-font, 'Barlow Condensed', sans-serif);
    font-size: 13.5px;
    font-weight: 800;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all .2s;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.pv-btn-secondary {
    background: transparent;
    color: #e2e8f0;
    border: 1px solid rgba(255,255,255,0.15);
}
.pv-btn-secondary:hover { background: rgba(255,255,255,0.06); color: #fff; border-color: rgba(255,255,255,0.3); }
.pv-btn-primary {
    background: #00e5ff;
    color: #ffffff !important;
}
.pv-btn-primary:hover { background: #00b8d4; color: #ffffff !important; }



/* ====================================================================
   STEP 8 — MODAL PREVIEW OVERLAY
   ==================================================================== */

.pv-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.pv-modal-dialog {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    max-width: 960px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}
.pv-modal-close-bar {
    display: flex;
    justify-content: flex-end;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pv-modal-close-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all .2s;
}
.pv-modal-close-btn:hover { background: rgba(239,68,68,0.15); color: #f87171; }

.pv-modal-body { padding: 24px; }

.pv-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}

/* Gallery */
.pv-modal-gallery { display: flex; flex-direction: column; gap: 10px; }
.pv-modal-main-img-wrap {
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: #0f172a;
}
.pv-modal-main-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.pv-modal-main-img-wrap:hover img { transform: scale(1.03); }

.pv-modal-thumb-strip {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    margin-top: 10px !important;
    overflow-x: visible !important;
}
.pv-mthumb {
    width: 100% !important;
    aspect-ratio: 16 / 11 !important;
    height: auto !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    border: 2px solid rgba(255,255,255,0.12) !important;
    opacity: 0.75 !important;
    box-sizing: border-box !important;
    transition: all .2s ease !important;
}
.pv-mthumb:hover {
    opacity: 1 !important;
    border-color: #00e5ff !important;
    transform: translateY(-2px) !important;
}
.pv-mthumb.active {
    border-color: #00e5ff !important;
    opacity: 1 !important;
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.6) !important;
}

/* Info */
.pv-modal-info { display: flex; flex-direction: column; gap: 16px; }
.pv-modal-info h2 {
    margin: 0;
    font-family: var(--title-font, 'Barlow Condensed', sans-serif);
    font-size: 26px;
    font-weight: 800;
    color: #f8fafc;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.pv-modal-subtitle {
    margin: -8px 0 0;
    font-size: 13px;
    color: #94a3b8;
}
.pv-modal-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.pv-modal-badge {
    font-family: var(--title-font, 'Barlow Condensed', sans-serif);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 5px;
}
.pv-modal-section { }
.pv-modal-section h4 {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .04em;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pv-modal-section h4 i { color: var(--panel-accent); font-size: 13px; }
.pv-modal-section p {
    margin: 0;
    font-size: 13.5px;
    color: #cbd5e1;
    line-height: 1.6;
}

/* Stops */
.pv-modal-stops { display: flex; flex-direction: column; gap: 6px; }
.pv-modal-stop {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    border-left: 3px solid var(--panel-accent);
    font-size: 12.5px;
    color: #cbd5e1;
}
.pv-stop-num {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--panel-accent);
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Services */
.pv-modal-services {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.pv-modal-service-chip {
    font-size: 12px;
    padding: 5px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pv-modal-service-chip i { color: var(--panel-accent); }

.pv-modal-cta {
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 8px;
}

/* === ANTI-DOUBLE-SUBMIT & BUTTON PROJECTION === */
.is-submitting,
button.is-submitting,
.btn-admin.is-submitting,
.btn-primary-full.is-submitting,
.btn-action.is-submitting {
    position: relative !important;
    cursor: wait !important;
    pointer-events: none !important;
    opacity: 0.82 !important;
    filter: brightness(1.05) !important;
    box-shadow: 0 0 16px rgba(12, 178, 219, 0.35) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.is-submitting .fa-spin {
    animation: fa-spin 0.9s infinite linear !important;
    display: inline-block;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   SYSTEM LOG CONSOLE & LIVE DRAWER
   ========================================================================== */
.admin-logs-wrapper {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 30px;
}

.logs-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.log-metric-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--card-bg, #111827);
    border: 1px solid var(--border-color, rgba(255,255,255,0.08));
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.log-metric-card:hover {
    transform: translateY(-2px);
}

.log-metric-card .metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.metric-total .metric-icon { background: rgba(56, 189, 248, 0.12); color: #38bdf8; }
.metric-errors .metric-icon { background: rgba(244, 63, 94, 0.15); color: #f43f5e; }
.metric-warnings .metric-icon { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.metric-actions .metric-icon { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.metric-security .metric-icon { background: rgba(168, 85, 247, 0.15); color: #a855f7; }

.log-metric-card .metric-body {
    display: flex;
    flex-direction: column;
}

.log-metric-card .metric-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.log-metric-card .metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-heading, #f8fafc);
    line-height: 1.2;
    margin-top: 2px;
}

.logs-toolbar-card {
    background: var(--card-bg, #111827);
    border: 1px solid var(--border-color, rgba(255,255,255,0.08));
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.logs-toolbar-primary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.logs-tabs-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.logs-tab {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-muted, #94a3b8);
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logs-tab:hover {
    background: rgba(255,255,255,0.08);
    color: #f8fafc;
}

.logs-tab.active {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.4);
}

.logs-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-console-tool {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-color, #e2e8f0);
    padding: 7px 13px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-console-tool:hover {
    background: rgba(255,255,255,0.12);
    color: #ffffff;
}

.btn-console-tool.danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #f87171;
}

.logs-toolbar-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.logs-search-wrap {
    position: relative;
    flex: 1;
    min-width: 260px;
}

.logs-search-wrap .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.9rem;
    pointer-events: none;
}

.logs-search-input {
    width: 100%;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 8px 36px 8px 36px;
    color: #f8fafc;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s;
}

.logs-search-input:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.search-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
}

.logs-filter-select {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 8px 12px;
    color: #f8fafc;
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
}

.logs-filter-select.compact {
    min-width: 100px;
}

.logs-live-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.logs-live-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.84rem;
    color: #cbd5e1;
    position: relative;
}

.logs-live-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.logs-live-switch .switch-slider {
    width: 36px;
    height: 20px;
    background: #334155;
    border-radius: 20px;
    position: relative;
    transition: 0.2s;
}

.logs-live-switch .switch-slider:before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.2s;
}

.logs-live-switch input:checked + .switch-slider {
    background: #10b981;
}

.logs-live-switch input:checked + .switch-slider:before {
    transform: translateX(16px);
}

.logs-live-switch .pulse-dot {
    font-size: 0.55rem;
    color: #10b981;
    margin-right: 4px;
    animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

.btn-console-refresh {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #cbd5e1;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.btn-console-refresh:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.btn-console-refresh.rotating i {
    animation: fa-spin 0.6s linear;
}

/* === TERMINAL CARD === */
.console-terminal-card {
    background: #090d12;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
}

.terminal-header {
    background: #0f172a;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.t-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-amber { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-title {
    font-family: monospace;
    font-size: 0.82rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-status-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: #64748b;
}

.terminal-status-tag {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.terminal-stream-container {
    height: 600px;
    overflow-y: auto;
    padding: 6px 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    position: relative;
    background: #070a0e;
}

.terminal-stream-container::-webkit-scrollbar {
    width: 8px;
}
.terminal-stream-container::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
}

.terminal-loading-state,
.terminal-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    gap: 14px;
    color: #64748b;
    font-size: 0.95rem;
}

.terminal-loading-state i {
    font-size: 2rem;
    color: #0ea5e9;
}

.terminal-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    font-size: 0.84rem;
    line-height: 1.45;
    transition: background 0.12s ease;
}

.terminal-row:hover {
    background: rgba(255,255,255,0.03);
}

.terminal-row.row-sev-critical {
    border-left: 3px solid #f43f5e;
    background: rgba(244, 63, 94, 0.05);
}
.terminal-row.row-sev-error {
    border-left: 3px solid #ef4444;
    background: rgba(239, 68, 68, 0.04);
}
.terminal-row.row-sev-warning {
    border-left: 3px solid #f59e0b;
}
.terminal-row.row-sev-info {
    border-left: 3px solid #38bdf8;
}

.row-meta-col {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    min-width: 210px;
}

.log-time {
    color: #64748b;
    font-size: 0.78rem;
}

.log-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.badge-sev-critical { background: rgba(244, 63, 94, 0.25); color: #fda4af; border: 1px solid rgba(244, 63, 94, 0.4); }
.badge-sev-error { background: rgba(239, 68, 68, 0.2); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-sev-warning { background: rgba(245, 158, 11, 0.2); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-sev-info { background: rgba(56, 189, 248, 0.15); color: #7dd3fc; }
.badge-sev-notice { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; }

.badge-type-action { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; }
.badge-type-commerce { background: rgba(14, 165, 233, 0.18); color: #38bdf8; }
.badge-type-driver { background: rgba(217, 119, 6, 0.18); color: #fbbf24; }
.badge-type-security { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.badge-type-system { background: rgba(100, 116, 139, 0.2); color: #94a3b8; }
.badge-type-error { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }

.row-content-col {
    flex: 1;
    min-width: 0;
}

.row-header-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
}

.log-event-key {
    color: #e2e8f0;
    font-weight: 600;
}

.log-actor-tag {
    font-size: 0.74rem;
    color: #94a3b8;
    background: rgba(255,255,255,0.05);
    padding: 1px 6px;
    border-radius: 4px;
}

.log-http-method {
    font-size: 0.7rem;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    padding: 1px 5px;
    border-radius: 3px;
}

.log-message-line {
    color: #cbd5e1;
    font-size: 0.84rem;
    word-break: break-word;
}

.row-action-col {
    flex-shrink: 0;
}

.btn-row-inspect {
    background: transparent;
    border: none;
    color: #64748b;
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.82rem;
    transition: color 0.15s, background 0.15s;
}

.btn-row-inspect:hover {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
}

.terminal-footer {
    background: #0f172a;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.76rem;
}

.terminal-legend {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.badge-legend {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
}

.badge-legend.badge-critical i { color: #f43f5e; }
.badge-legend.badge-error i { color: #ef4444; }
.badge-legend.badge-warning i { color: #f59e0b; }
.badge-legend.badge-commerce i { color: #38bdf8; }
.badge-legend.badge-action i { color: #10b981; }
.badge-legend.badge-security i { color: #a855f7; }

.btn-terminal-nav {
    background: rgba(255,255,255,0.06);
    border: none;
    color: #94a3b8;
    width: 26px;
    height: 26px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
}

.btn-terminal-nav:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

/* === PHP ERROR LOG VIEW === */
.php-log-meta-bar {
    background: #0f172a;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    gap: 20px;
}

.php-log-meta-bar code {
    color: #38bdf8;
}

.php-log-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 5px 16px;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

.php-log-line .line-idx {
    color: #475569;
    min-width: 32px;
    user-select: none;
}

.php-log-line .line-content {
    color: #cbd5e1;
    word-break: break-all;
}

.php-line-fatal .line-content { color: #f87171; font-weight: 600; }
.php-line-warning .line-content { color: #fcd34d; }

/* === MODAL DETALLE DE LOG === */
.log-detail-content {
    background: #0f172a !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 14px !important;
    color: #f8fafc !important;
}

.modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.log-detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    background: rgba(0,0,0,0.25);
    padding: 14px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 16px;
}

.log-detail-meta-grid .meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.log-detail-meta-grid .meta-item label {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 600;
}

.log-detail-meta-grid .meta-item span,
.log-detail-meta-grid .meta-item code {
    font-size: 0.85rem;
    color: #e2e8f0;
}

.log-detail-section {
    margin-top: 14px;
}

.log-detail-section label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.detail-message-box {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #f8fafc;
}

.log-detail-section .section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.btn-copy-json {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.74rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-copy-json:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.detail-json-pre {
    background: #070a0e;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 14px;
    max-height: 280px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.82rem;
    color: #38bdf8;
    margin: 0;
}

/* === TOPBAR TERMINAL BUTTON & LIVE DRAWER === */
.admin-terminal-toggle {
    position: relative;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-color, #e2e8f0);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-terminal-toggle:hover {
    background: rgba(14, 165, 233, 0.15);
    border-color: #0ea5e9;
    color: #38bdf8;
}

.terminal-live-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.admin-log-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 92vw;
    height: 100vh;
    background: #0a0f14;
    border-left: 1px solid rgba(255,255,255,0.12);
    z-index: 10500;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0,0,0,0.6);
    transition: right 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-log-drawer.is-open {
    right: 0;
}

.admin-log-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
    z-index: 10490;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.admin-log-drawer-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.drawer-header {
    background: #0f172a;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #f8fafc;
}

.drawer-shortcut kbd {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    padding: 1px 4px;
    font-size: 0.68rem;
    color: #94a3b8;
}

.drawer-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-drawer-expand,
.btn-drawer-close {
    background: none;
    border: none;
    color: #94a3b8;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
}

.btn-drawer-expand:hover,
.btn-drawer-close:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 14px;
    font-family: monospace;
}

.drawer-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 120px;
    color: #64748b;
    font-size: 0.88rem;
}

.drawer-item {
    padding: 8px 10px;
    border-radius: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.82rem;
    margin-bottom: 6px;
    background: rgba(255,255,255,0.02);
}

.drawer-item.is-error {
    background: rgba(244, 63, 94, 0.08);
    border-left: 3px solid #f43f5e;
}

.drawer-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.drawer-item-key {
    color: #38bdf8;
    font-weight: 600;
}

.drawer-item-time {
    color: #64748b;
    font-size: 0.72rem;
}

.drawer-item-msg {
    color: #e2e8f0;
    line-height: 1.35;
    word-break: break-word;
}

.drawer-footer {
    background: #0f172a;
    padding: 10px 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
}

.drawer-status {
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.drawer-full-link {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 500;
}

.drawer-full-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Admin Booking Modal: 3-Step Tabs, Navigation, Service Badges & Print Mode
   ========================================================================== */

.booking-service-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.booking-service-badge.type-transfer {
    background: rgba(12, 178, 219, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(12, 178, 219, 0.35);
}
.booking-service-badge.type-chauffeur {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}
.booking-service-badge.type-shared {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.35);
}
.booking-service-badge.type-private {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.booking-modal-tabs {
    display: flex !important;
    gap: 8px !important;
    margin-bottom: 22px !important;
    background: rgba(13, 19, 26, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 6px !important;
    overflow-x: auto !important;
}

.booking-tab-btn {
    flex: 1 !important;
    min-width: 140px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 10px 16px !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #94a3b8 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    outline: none !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.booking-tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #f1f5f9 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.booking-tab-btn.active {
    background: rgba(12, 178, 219, 0.18) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(12, 178, 219, 0.5) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.booking-tab-btn i {
    font-size: 14px !important;
    color: #94a3b8 !important;
    transition: color 0.2s ease !important;
}

.booking-tab-btn:hover:not(.active) i {
    color: #ffffff !important;
}

.booking-tab-btn.active i {
    color: #0cb2db !important;
}

.booking-tab-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 19px !important;
    height: 19px !important;
    padding: 0 6px !important;
    border-radius: 999px !important;
    background: rgba(12, 178, 219, 0.25) !important;
    color: #38bdf8 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

.booking-tab-content {
    display: none !important;
}

.booking-tab-content.active {
    display: block !important;
    animation: fadeInBookingTab 0.2s ease-out;
}

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

.booking-step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Ocultar el voucher oficial de reserva en pantalla */
.booking-printable-voucher {
    display: none !important;
}

/* Print Styles for Booking Sheet (1 Single A4 Page Official Voucher) */
@media print {
    @page {
        size: A4 portrait;
        margin: 8mm 8mm 6mm 8mm;
    }

    html, body {
        background: #ffffff !important;
        color: #0f172a !important;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
        font-size: 8pt !important;
        line-height: 1.25 !important;
        margin: 0 !important;
        padding: 0 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body.is-printing-booking * {
        visibility: hidden !important;
    }

    body.is-printing-booking .admin-modal.print-active-booking,
    body.is-printing-booking .admin-modal.print-active-booking .booking-printable-voucher,
    body.is-printing-booking .admin-modal.print-active-booking .booking-printable-voucher * {
        visibility: visible !important;
    }

    body.is-printing-booking .admin-modal.print-active-booking {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
        background: #ffffff !important;
        color: #0f172a !important;
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
        border: none !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
        z-index: 99999 !important;
    }

    body.is-printing-booking .admin-modal.print-active-booking .admin-modal-dialog {
        border: none !important;
        border-radius: 0 !important;
        background: #ffffff !important;
        color: #0f172a !important;
        box-shadow: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    /* Ocultar formulario interactivo del modal, pestañas y botones de control */
    body.is-printing-booking .admin-modal.print-active-booking form.admin-form,
    body.is-printing-booking .admin-modal.print-active-booking .modal-close,
    body.is-printing-booking .admin-modal.print-active-booking .btn-admin,
    body.is-printing-booking .admin-modal.print-active-booking .booking-modal-tabs,
    body.is-printing-booking .admin-modal.print-active-booking .booking-step-nav,
    body.is-printing-booking .admin-modal.print-active-booking .admin-modal-footer,
    body.is-printing-booking .admin-modal.print-active-booking .btn-action {
        display: none !important;
    }

    /* Mostrar exclusivamente el comprobante oficial de reserva */
    body.is-printing-booking .admin-modal.print-active-booking .booking-printable-voucher {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        background: #ffffff !important;
        color: #0f172a !important;
        box-sizing: border-box !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .bpv-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        border-bottom: 2px solid #0f172a !important;
        padding-bottom: 6px !important;
        margin-bottom: 8px !important;
    }

    .bpv-brand {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .bpv-logo-wrap {
        width: 105px !important;
        height: 36px !important;
        background: #090e17 !important;
        border-radius: 6px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 3px 6px !important;
    }

    .bpv-logo {
        max-width: 90px !important;
        max-height: 28px !important;
        object-fit: contain !important;
    }

    .bpv-company-info {
        display: flex !important;
        flex-direction: column !important;
    }

    .bpv-company-name {
        font-size: 10.5pt !important;
        font-weight: 800 !important;
        letter-spacing: 0.08em !important;
        color: #0f172a !important;
        text-transform: uppercase !important;
    }

    .bpv-company-sub {
        font-size: 7.2pt !important;
        color: #475569 !important;
        font-weight: 600 !important;
    }

    .bpv-company-contact {
        font-size: 6.8pt !important;
        color: #64748b !important;
    }

    .bpv-title-block {
        text-align: right !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        gap: 2px !important;
    }

    .bpv-doc-badge {
        display: inline-block !important;
        font-size: 7pt !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
        padding: 2px 7px !important;
        border-radius: 4px !important;
        background: #e0f2fe !important;
        color: #0369a1 !important;
        border: 1px solid #bae6fd !important;
    }

    .bpv-doc-badge.type-transfer {
        background: #ecfdf5 !important;
        color: #047857 !important;
        border-color: #a7f3d0 !important;
    }

    .bpv-doc-badge.type-chauffeur {
        background: #fef3c7 !important;
        color: #b45309 !important;
        border-color: #fde68a !important;
    }

    .bpv-doc-title {
        font-size: 12.5pt !important;
        font-weight: 900 !important;
        letter-spacing: 0.04em !important;
        margin: 0 !important;
        color: #0f172a !important;
        text-transform: uppercase !important;
    }

    .bpv-doc-ref {
        font-size: 8pt !important;
        color: #334155 !important;
    }

    .bpv-strip {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 6px !important;
        background: #f8fafc !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 6px !important;
        padding: 5px 8px !important;
        margin-bottom: 8px !important;
    }

    .bpv-strip-item {
        display: flex !important;
        flex-direction: column !important;
        gap: 1px !important;
    }

    .bpv-strip-lbl {
        font-size: 6.5pt !important;
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
        color: #64748b !important;
        font-weight: 600 !important;
    }

    .bpv-strip-val {
        font-size: 8.2pt !important;
        font-weight: 700 !important;
        color: #0f172a !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .bpv-grid-2 {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        margin-bottom: 8px !important;
    }

    .bpv-box {
        border: 1px solid #cbd5e1 !important;
        border-radius: 6px !important;
        overflow: hidden !important;
        background: #ffffff !important;
    }

    .bpv-box-head {
        background: #f1f5f9 !important;
        border-bottom: 1px solid #cbd5e1 !important;
        padding: 3px 8px !important;
        font-size: 7.5pt !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.04em !important;
        color: #1e293b !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .bpv-box-head i {
        color: #0284c7 !important;
        margin-right: 4px !important;
    }

    .bpv-box-body {
        padding: 5px 8px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 2.5px !important;
        font-size: 7.5pt !important;
    }

    .bpv-box-body.no-pad {
        padding: 0 !important;
    }

    .bpv-field-row {
        display: flex !important;
        align-items: baseline !important;
        justify-content: space-between !important;
        gap: 8px !important;
        line-height: 1.25 !important;
    }

    .bpv-field-k {
        color: #475569 !important;
        font-size: 7.2pt !important;
        white-space: nowrap !important;
        font-weight: 600 !important;
    }

    .bpv-field-v {
        color: #0f172a !important;
        text-align: right !important;
        word-break: break-word !important;
    }

    .bpv-highlight {
        color: #0284c7 !important;
        font-weight: 700 !important;
    }

    .bpv-manifest-box {
        margin-bottom: 8px !important;
    }

    .bpv-table {
        width: 100% !important;
        border-collapse: collapse !important;
        font-size: 7.2pt !important;
        line-height: 1.2 !important;
    }

    .bpv-table th {
        background: #f8fafc !important;
        color: #334155 !important;
        font-weight: 700 !important;
        font-size: 6.8pt !important;
        text-transform: uppercase !important;
        border-bottom: 1px solid #cbd5e1 !important;
        padding: 3px 6px !important;
        text-align: left !important;
    }

    .bpv-table td {
        border-bottom: 1px solid #e2e8f0 !important;
        padding: 2.5px 6px !important;
        color: #1e293b !important;
    }

    .bpv-table tr:last-child td {
        border-bottom: none !important;
    }

    .bpv-tag-lead {
        display: inline-block !important;
        font-size: 6.2pt !important;
        font-weight: 700 !important;
        padding: 1px 4px !important;
        border-radius: 3px !important;
        background: #0284c7 !important;
        color: #ffffff !important;
        letter-spacing: 0.04em !important;
    }

    .bpv-docs-summary {
        background: #f8fafc !important;
        border-top: 1px solid #cbd5e1 !important;
        padding: 3px 8px !important;
        font-size: 6.8pt !important;
        color: #475569 !important;
        display: flex !important;
        justify-content: space-between !important;
        gap: 10px !important;
    }

    .bpv-badge {
        display: inline-block !important;
        font-size: 6.5pt !important;
        font-weight: 700 !important;
        padding: 1px 5px !important;
        border-radius: 3px !important;
        border: 1px solid #cbd5e1 !important;
        background: #f1f5f9 !important;
        color: #1e293b !important;
        text-transform: uppercase !important;
    }

    .bpv-signatures {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        margin-top: 4px !important;
        margin-bottom: 6px !important;
    }

    .bpv-sig-box {
        border: 1px dashed #94a3b8 !important;
        border-radius: 5px !important;
        padding: 5px 8px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 3px !important;
    }

    .bpv-sig-label {
        font-size: 6.5pt !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        color: #334155 !important;
        letter-spacing: 0.04em !important;
    }

    .bpv-sig-line {
        height: 20px !important;
        border-bottom: 1px solid #cbd5e1 !important;
    }

    .bpv-sig-info {
        display: flex !important;
        justify-content: space-between !important;
        font-size: 6.5pt !important;
        color: #64748b !important;
    }

    .bpv-footer {
        border-top: 1px solid #cbd5e1 !important;
        padding-top: 4px !important;
        font-size: 6.5pt !important;
        color: #64748b !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
}

