/* ============================================================
   GAMEL DASHBOARD - DESIGN SYSTEM & BASE STYLESHEET
   Dark gaming UI: deep surfaces, teal brand, violet accent
   ============================================================ */

/* ── 1. DESIGN TOKENS & VARIABLES ── */
:root {
    /* Brand & Accent Colors */
    --primary: #2dd4bf;
    --primary-light: #5eead4;
    --primary-dark: #0f9488;
    --primary-glow: rgba(45, 212, 191, 0.22);
    --primary-glow-heavy: rgba(45, 212, 191, 0.45);
    --accent: #8b5cf6;
    --accent-light: #a78bfa;
    --accent-glow: rgba(139, 92, 246, 0.25);
    --gradient-brand: linear-gradient(135deg, #2dd4bf 0%, #22b8cf 45%, #8b5cf6 100%);
    --gold: #fbbf24;

    /* Backgrounds & Surfaces */
    --background: #07080c;
    --surface: #0c0e14;
    --surface-elevated: #141720;
    --surface-hover: #1a1e2a;
    --card: #0f1118;

    /* Borders & Highlights */
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-border-hover: rgba(45, 212, 191, 0.45);
    --glass-background: rgba(45, 212, 191, 0.07);

    /* Typography Colors */
    --text-primary: #f1f5f9;
    --text-secondary: #a3adbf;
    --text-muted: #6b7489;

    /* Functional States */
    --success: #2dd4bf;
    --success-bg: rgba(45, 212, 191, 0.12);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.12);
    --error: #f43f5e;
    --error-bg: rgba(244, 63, 94, 0.12);
    --info: #60a5fa;
    --info-bg: rgba(96, 165, 250, 0.12);

    /* Radii & Shadows */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-pill: 9999px;
    --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 12px 32px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 24px var(--primary-glow);

    /* Transitions */
    --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* ── 2. GLOBAL RESET & BASE STYLES ── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    scrollbar-width: thin;
    scrollbar-color: #232838 transparent;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
*::-webkit-scrollbar-track {
    background: transparent;
}
*::-webkit-scrollbar-thumb {
    background: #232838;
    border-radius: var(--radius-pill);
    border: 2px solid transparent;
    background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-dark);
}

html, body {
    background-color: var(--background);
    color: var(--text-primary);
    overflow-x: hidden;
    height: 100vh;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "cv11", "ss01";
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font-family: inherit;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

::selection {
    background: var(--primary-glow-heavy);
    color: #fff;
}

/* ── 3. APP LAYOUT STRUCTURE ── */
.app-container,
.dashboard-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* ── 4. SIDEBAR NAVIGATION ── */
.sidebar {
    width: 248px;
    background:
        radial-gradient(120% 40% at 0% 0%, rgba(45, 212, 191, 0.08) 0%, transparent 60%),
        var(--surface);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 20px 14px;
    flex-shrink: 0;
    z-index: 100;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px 18px 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--glass-border);
    text-decoration: none;
    transition: var(--transition);
    overflow: hidden;
}

.sidebar-logo-img {
    height: 46px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(45, 212, 191, 0.35));
    transition: var(--transition);
    display: block;
}

.sidebar-logo:hover .sidebar-logo-img {
    filter: drop-shadow(0 0 18px rgba(45, 212, 191, 0.6));
    transform: scale(1.03);
}

.mobile-header-brand {
    display: none;
    align-items: center;
    margin-left: 4px;
    text-decoration: none;
}

.mobile-logo-img {
    height: 28px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(45, 212, 191, 0.4));
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
    overflow-y: auto;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
}

.menu-item i {
    font-size: 15px;
    width: 20px;
    text-align: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.menu-item:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.04);
}

.menu-item:hover i {
    color: var(--text-secondary);
}

.menu-item.active {
    color: #ffffff;
    font-weight: 600;
    background: linear-gradient(90deg, rgba(45, 212, 191, 0.16) 0%, rgba(45, 212, 191, 0.03) 100%);
}

.menu-item.active::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--primary);
    box-shadow: 0 0 12px var(--primary);
}

.menu-item.active i {
    color: var(--primary);
    filter: drop-shadow(0 0 6px var(--primary-glow-heavy));
}

.sidebar-footer {
    padding-top: 12px;
    border-top: 1px solid var(--glass-border);
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    letter-spacing: 0.3px;
}

.menu-section {
    display: block;
    padding: 16px 14px 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #4b5366;
}

.menu-section:first-child {
    padding-top: 4px;
}

.sidebar-push {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    text-align: left;
    transition: var(--transition);
}

.sidebar-push:hover {
    border-color: var(--glass-border-hover);
    background: var(--glass-background);
}

.sidebar-push > i {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: 13px;
    color: var(--primary);
    background: var(--success-bg);
    flex-shrink: 0;
}

.sidebar-push span:not(.sidebar-push-dot) {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-push strong {
    font-size: 12px;
    color: var(--text-primary);
}

.sidebar-push small {
    font-size: 11px;
    color: var(--text-muted);
}

.sidebar-push-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}

.sidebar-push[data-state="on"] .sidebar-push-dot {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.sidebar-push[data-state="on"] small {
    color: var(--primary-light);
}

.sidebar-push[data-state="unconfigured"] .sidebar-push-dot,
.sidebar-push[data-state="off"] .sidebar-push-dot {
    background: var(--warning);
}

.sidebar-push[data-state="denied"] .sidebar-push-dot {
    background: var(--error);
}

/* ── 5. MAIN CONTENT & TOP HEADER ── */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background:
        radial-gradient(60% 40% at 100% 0%, rgba(139, 92, 246, 0.07) 0%, transparent 70%),
        radial-gradient(50% 35% at 30% 0%, rgba(45, 212, 191, 0.06) 0%, transparent 70%),
        var(--background);
    position: relative;
}

.top-header {
    height: 68px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 32px;
    flex-shrink: 0;
    background-color: rgba(7, 8, 12, 0.72);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    position: sticky;
    top: 0;
    z-index: 50;
}

.mobile-menu-btn {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    background: var(--surface-elevated);
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 90;
}

.sidebar-backdrop.active {
    display: block;
}

.header-search {
    position: relative;
    width: 360px;
    max-width: 100%;
}

.header-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
    pointer-events: none;
}

.header-search input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 10px 16px 10px 40px;
    color: var(--text-primary);
    outline: none;
    font-size: 13px;
    transition: var(--transition);
}

.header-search input::placeholder {
    color: var(--text-muted);
}

.header-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background-color: var(--surface);
}

.header-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    margin-left: auto;
}

#autoRefreshBadge {
    margin-left: auto;
}

#autoRefreshBadge + .header-profile,
.header-profile + #autoRefreshBadge {
    margin-left: 0;
}

.notification-bell {
    position: relative;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.notification-bell:hover,
.notification-bell.active {
    color: #ffffff;
    background: var(--glass-background);
    border-color: var(--glass-border-hover);
}

.badge-dot,
.notif-badge-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
    border-radius: var(--radius-pill);
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.6);
    display: none;
    border: 2px solid var(--background);
    animation: notifPulse 2.4s infinite ease-in-out;
}

@keyframes notifPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px 4px 4px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
}

.user-info .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--primary);
    background-color: var(--surface-elevated);
    object-fit: cover;
}

.user-info h4 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.user-info span {
    font-size: 11px;
    color: var(--text-muted);
}

/* ── 6. VIEW WRAPPER & HEADERS ── */
.content-wrapper,
.page-content,
.dashboard-view {
    padding: 32px;
    flex-grow: 1;
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
}

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

.page-content > * {
    animation: pageEnter 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.page-content > *:nth-child(2) { animation-delay: 0.05s; }
.page-content > *:nth-child(3) { animation-delay: 0.1s; }
.page-content > *:nth-child(4) { animation-delay: 0.15s; }
.page-content > *:nth-child(n+5) { animation-delay: 0.2s; }

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.view-header h1,
.view-header h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.6px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.view-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ── 7. KPI STATS CARDS RIBBON ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0) 100%), var(--card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(45, 212, 191, 0.25);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.18) 0%, rgba(45, 212, 191, 0.04) 100%);
    border: 1px solid rgba(45, 212, 191, 0.2);
    flex-shrink: 0;
}

.stat-icon.violet {
    color: var(--accent-light);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.22) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-color: rgba(139, 92, 246, 0.25);
}

.stat-icon.blue {
    color: var(--info);
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.2) 0%, rgba(96, 165, 250, 0.04) 100%);
    border-color: rgba(96, 165, 250, 0.25);
}

.stat-icon.gold {
    color: var(--gold);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(251, 191, 36, 0.04) 100%);
    border-color: rgba(251, 191, 36, 0.25);
}

.stat-card::after {
    content: '';
    position: absolute;
    left: 20px;
    right: 20px;
    top: 0;
    height: 1px;
    background: var(--gradient-brand);
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover::after {
    opacity: 0.8;
}

.stat-data,
.stat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.stat-hint {
    font-size: 11px;
    color: var(--text-muted);
}

/* ── 8. CARDS & PANELS ── */
.card,
.panel-card,
.chart-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 120px), var(--card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.chart-card {
    padding: 22px;
}

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

.chart-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.finance-charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.amount-positive {
    color: var(--primary-light);
    font-weight: 700;
}

.amount-negative {
    color: var(--error);
    font-weight: 700;
}

.toggle-type-group {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.toggle-type-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--glass-border);
    background: var(--surface-elevated);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.toggle-type-btn.active.income-btn {
    background: var(--success-bg);
    color: var(--primary-light);
    border-color: var(--primary);
}

.toggle-type-btn.active.expense-btn {
    background: var(--error-bg);
    color: var(--error);
    border-color: var(--error);
}

.panel-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.panel-body {
    padding: 22px;
}

/* ── 9. TABS & FILTER PILLS ── */
.tab-nav,
.filter-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    padding: 4px;
    width: fit-content;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-btn,
.filter-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 9px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.tab-btn:hover,
.filter-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active,
.filter-btn.active {
    background: var(--surface-hover);
    color: var(--primary-light);
    border-color: rgba(45, 212, 191, 0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* ── 10. BUTTONS ── */
.btn {
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    white-space: nowrap;
}

.btn:active {
    transform: translateY(1px) scale(0.99);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 100%);
    color: #04201c;
    box-shadow: 0 4px 16px rgba(45, 212, 191, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 24px rgba(45, 212, 191, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.btn-outline,
.btn-secondary {
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-outline:hover,
.btn-secondary:hover {
    border-color: var(--glass-border-hover);
    background-color: var(--glass-background);
    color: var(--primary-light);
}

.btn-danger {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.btn-danger:hover {
    background: var(--error);
    color: #fff;
}

.btn-sm {
    padding: 7px 12px;
    font-size: 12px;
    border-radius: var(--radius-sm);
}

.btn-icon {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    color: var(--primary);
    border-color: var(--glass-border-hover);
    background: var(--glass-background);
}

/* ── 11. DATA TABLES ── */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

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

.data-table th {
    padding: 12px 16px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
    white-space: nowrap;
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 13px;
    color: var(--text-secondary);
    vertical-align: middle;
}

.data-table tr {
    transition: var(--transition-fast);
}

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

.data-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.025);
    color: var(--text-primary);
}

/* ── 12. STATUS BADGES ── */
.badge-status,
.status-badge,
.badge-tag {
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.badge-tag {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    letter-spacing: 0.3px;
}

.badge-status.available,
.status-available,
.badge-status.confirmed {
    background-color: var(--success-bg);
    color: var(--primary-light);
    border: 1px solid rgba(45, 212, 191, 0.3);
}

.badge-status.busy,
.status-busy,
.badge-status.pending {
    background-color: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-status.active {
    background-color: var(--info-bg);
    color: var(--info);
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.badge-status.completed {
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

.badge-status.cancelled,
.status-cancelled {
    background-color: var(--error-bg);
    color: var(--error);
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.type-badge-income {
    background: var(--success-bg);
    color: var(--primary-light);
    border: 1px solid rgba(45, 212, 191, 0.3);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
}

.type-badge-expense {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid rgba(244, 63, 94, 0.3);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
}

/* ── 13. FORMS & INPUTS ── */
.form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

.form-control {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 11px 14px;
    color: var(--text-primary);
    outline: none;
    font-size: 13px;
    transition: var(--transition);
}

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

.form-control:hover {
    border-color: rgba(255, 255, 255, 0.14);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background-color: var(--surface);
}

select.form-control option {
    background: var(--surface-elevated);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

/* ── 14. MODALS & POPUPS ── */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: rgba(3, 4, 7, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(180deg, #121520 0%, var(--surface) 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(45, 212, 191, 0.06);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
    padding: 24px;
    position: relative;
    animation: modalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScale {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--glass-border);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #fff;
    background: var(--error-bg);
    border-color: rgba(244, 63, 94, 0.4);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
}

/* Global search results */
.search-results-dropdown {
    left: 0;
    right: 0;
    min-width: 360px;
    max-height: 420px;
    overflow-y: auto;
    padding: 8px;
}

.search-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    padding: 10px 10px 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.search-result-item .item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.search-result-item .item-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.search-empty {
    padding: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* ── 15. AVATAR PICKER & PRESET GALLERY ── */
.avatar-picker-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    background: var(--surface-elevated);
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.avatar-preview-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
    background: rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.avatar-preset-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: var(--surface-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.avatar-preset-card:hover {
    border-color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.avatar-preset-card img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
}

.avatar-preset-card:hover img {
    border-color: var(--primary);
}

/* ── 16. NOTIFICATIONS & SEARCH DROPDOWNS ── */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    background: rgba(15, 16, 21, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border-hover);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), var(--shadow-glow);
    z-index: 9999;
    display: none;
}

.search-results-dropdown.active {
    display: block;
    animation: modalScale 0.2s ease-out;
}

/* Notifications Dropdown Panel */
.notifications-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: 400px;
    max-width: calc(100vw - 32px);
    background: #111219;
    background: linear-gradient(180deg, #151722 0%, #0d0e14 100%);
    border: 1px solid rgba(45, 212, 191, 0.35);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.92), 0 0 30px rgba(45, 212, 191, 0.15);
    z-index: 10000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: notifDropIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.notifications-dropdown.active {
    display: flex;
}

/* Arrow Caret pointing to Header */
.notifications-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 24px;
    width: 12px;
    height: 12px;
    background: #151722;
    border-left: 1px solid rgba(45, 212, 191, 0.35);
    border-top: 1px solid rgba(45, 212, 191, 0.35);
    transform: rotate(45deg);
    z-index: 1;
}

@keyframes notifDropIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Dropdown Header */
.notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.02);
}

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

.notif-header-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.notif-header-title i {
    color: var(--primary);
}

.notif-count-pill {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background: rgba(45, 212, 191, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(45, 212, 191, 0.3);
}

.notif-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.notif-btn-icon {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-size: 13px;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.notif-btn-icon:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.notif-btn-text {
    background: rgba(45, 212, 191, 0.1);
    border: 1px solid rgba(45, 212, 191, 0.25);
    color: var(--primary-light);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.notif-btn-text:hover {
    background: rgba(45, 212, 191, 0.2);
    border-color: var(--primary);
    color: #ffffff;
}

/* Filter Tabs */
.notif-tabs {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    gap: 6px;
    background: rgba(0, 0, 0, 0.28);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow-x: auto;
}

.notif-tabs::-webkit-scrollbar {
    display: none;
}

.notif-tab {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.notif-tab:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
}

.notif-tab.active {
    color: #ffffff;
    background: rgba(45, 212, 191, 0.22);
    border-color: rgba(45, 212, 191, 0.45);
    box-shadow: 0 0 10px rgba(45, 212, 191, 0.2);
}

/* Notifications List */
.notif-list {
    max-height: 380px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 8px;
    gap: 6px;
}

.notif-list::-webkit-scrollbar {
    width: 5px;
}
.notif-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
.notif-list::-webkit-scrollbar-thumb {
    background: rgba(45, 212, 191, 0.3);
    border-radius: 4px;
}
.notif-list::-webkit-scrollbar-thumb:hover {
    background: rgba(45, 212, 191, 0.6);
}

/* Notification Item Card */
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    text-decoration: none;
}

.notif-item:hover {
    background: rgba(45, 212, 191, 0.08);
    border-color: rgba(45, 212, 191, 0.25);
    transform: translateX(2px);
}

.notif-item.unread {
    background: rgba(45, 212, 191, 0.07);
    border-color: rgba(45, 212, 191, 0.3);
}

.notif-item.unread::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    border-radius: 4px;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

/* Category Icons */
.notif-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.notif-icon-box.booking {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.25) 0%, rgba(14, 165, 233, 0.1) 100%);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: #38bdf8;
}

.notif-icon-box.tournament {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(251, 191, 36, 0.1) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.notif-icon-box.level {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(168, 85, 247, 0.1) 100%);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #c084fc;
}

.notif-icon-box.rental {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(52, 211, 153, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.notif-icon-box.promotion,
.notif-icon-box.default {
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.25) 0%, rgba(45, 212, 191, 0.1) 100%);
    border: 1px solid rgba(45, 212, 191, 0.3);
    color: #5eead4;
}

.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 3px;
}

.notif-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-time {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
}

.notif-msg {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Item Action buttons on hover */
.notif-item-actions {
    display: none;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}

.notif-item:hover .notif-item-actions {
    display: flex;
}

.notif-action-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.notif-action-btn:hover {
    color: #fff;
    background: rgba(45, 212, 191, 0.3);
    border-color: var(--primary);
}

/* Dropdown Footer */
.notif-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.25);
    font-size: 11px;
    color: var(--text-muted);
}

.notif-footer a,
.notif-footer button {
    color: var(--primary-light);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.notif-footer a:hover,
.notif-footer button:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Empty State */
.notif-empty {
    padding: 36px 20px;
    text-align: center;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.notif-empty-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(45, 212, 191, 0.08);
    border: 1px solid rgba(45, 212, 191, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 4px;
}

.notif-empty-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.notif-empty-subtitle {
    font-size: 11px;
    color: var(--text-muted);
}

/* ── 17. TOAST NOTIFICATIONS ── */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100000;
}

.toast {
    background: rgba(18, 19, 26, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--primary);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideRight 0.25s ease-out;
}

@keyframes slideRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

.toast.error { border-left-color: var(--error); }
.toast.warning { border-left-color: var(--warning); }

/* ── 18. RESPONSIVE MEDIA QUERIES ── */
@media (max-width: 992px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        height: 100vh;
        transition: left 0.3s ease;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.8);
    }
    .sidebar.mobile-open {
        left: 0;
    }
    .top-header {
        padding: 0 16px;
    }
    .content-wrapper,
    .page-content {
        padding: 20px 16px;
    }
    .user-info span {
        display: none;
    }
    .mobile-header-brand {
        display: inline-flex;
    }
    .mobile-menu-btn {
        display: inline-flex;
    }
    .sidebar {
        z-index: 200;
    }
    .header-search {
        width: auto;
        flex: 1;
        min-width: 0;
    }
    .search-results-dropdown {
        min-width: 0;
        position: fixed;
        left: 16px;
        right: 16px;
        top: 76px;
    }
}

@media (max-width: 600px) {
    .user-info div,
    #autoRefreshBadge {
        display: none !important;
    }
    .user-info {
        padding: 0;
        border: none;
        background: none;
    }
    .view-header h1,
    .view-header h2 {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .form-grid-2,
    .form-grid-3 {
        grid-template-columns: 1fr;
    }
    .modal-footer {
        flex-direction: column-reverse;
    }
    .modal-footer .btn {
        width: 100%;
    }
}

/* ── 19. BROADCAST NOTIFICATION MODAL ── */
.notif-broadcast-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 50000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.notif-broadcast-modal.active {
    display: flex;
    animation: fadeIn 0.18s ease-out;
}

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

.notif-broadcast-card {
    background: linear-gradient(180deg, #181b28 0%, #0f1019 100%);
    border: 1px solid rgba(45, 212, 191, 0.4);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 40px rgba(45, 212, 191, 0.12);
    padding: 24px;
    width: 100%;
    max-width: 480px;
    animation: notifDropIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.notif-broadcast-card .form-control {
    background: #0b0c12 !important;
    border: 1px solid rgba(45, 212, 191, 0.2) !important;
    color: #ffffff !important;
    transition: var(--transition-fast);
}

.notif-broadcast-card .form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 8px var(--primary-glow) !important;
    outline: none;
}

/* ── Toast type variants ── */
.toast.success {
    border-left-color: #2dd4bf;
}

.toast.info {
    border-left-color: #3b82f6;
}

/* ── Bookings paid with a subscription ── */
.badge-subscription {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    background: rgba(244, 114, 182, 0.14);
    color: #f472b6;
    border: 1px solid rgba(244, 114, 182, 0.4);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
}

.subscription-details {
    display: block;
    margin-top: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0;
    white-space: nowrap;
}

.data-table tr.row-subscription td:first-child {
    box-shadow: inset 3px 0 0 #f472b6;
}

/* ── Sidebar logout ── */
.sidebar-logout {
    width: 100%;
    margin: 10px 0 6px;
    padding: 9px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.sidebar-logout:hover {
    color: var(--error);
    border-color: var(--error);
    background: var(--error-bg);
}

/* ── Picture picker (game covers, product photos) ── */
.image-picker {
    width: 130px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
}

.image-preview,
.image-placeholder {
    width: 130px;
    height: 150px;
    border-radius: 12px;
    border: 1px dashed var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
}

.image-preview {
    object-fit: contain;
    display: none;
}

.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 12px;
}

.image-placeholder i {
    font-size: 26px;
}

.image-picker-btn {
    justify-content: center;
    cursor: pointer;
}

/* ── Choix des postes d'un jeu / des jeux d'un poste (js/choice-picker.js) ── */
.choice-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin: -2px 0 4px;
}

.choice-picker {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 10px;
    background: var(--glass-background);
}

.choice-tools {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.choice-all {
    background: none;
    border: 0;
    padding: 0;
    color: var(--primary-light);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.choice-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
}

.choice-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm, 8px);
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.choice-item:has(input:checked) {
    border-color: var(--primary);
    background: rgba(45, 212, 191, 0.08);
}

.choice-item input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.choice-item span {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    line-height: 1.3;
}

.choice-item small {
    color: var(--text-muted);
    font-size: 11px;
}

.choice-empty {
    font-size: 13px;
    color: var(--warning);
    line-height: 1.5;
}

.choice-empty a {
    color: var(--primary-light);
}

.poste-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--text-secondary);
}

.poste-tag.none {
    color: var(--warning);
    font-weight: 600;
}

/* An element marked hidden stays hidden, whatever display its classes give it (.btn, .qr-result...) */
[hidden] {
    display: none !important;
}
