:root {
    --bg-app: #0D0717;
    --bg-header: #100820;
    --bg-card: #1A0F2E;
    --bg-hover: #2A1848;

    /* Brand Colors */
    --brand-primary: #C9A84C;
    --brand-secondary: #E8C46A;

    /* Signal Colors */
    --pill-green-bg: rgba(34, 197, 94, 0.15);
    --pill-green-text: rgba(34, 197, 94, 0.9);

    --pill-red-bg: rgba(239, 68, 68, 0.15);
    --pill-red-text: rgba(239, 68, 68, 0.9);

    --pill-yellow-bg: rgba(234, 179, 8, 0.15);
    --pill-yellow-text: rgba(234, 179, 8, 0.9);

    --pill-purple-bg: rgba(167, 139, 250, 0.15);
    --pill-purple-text: rgba(167, 139, 250, 0.9);

    --text-primary: #FFFFFF;
    --text-muted: #9B8BAE;
    --border-subtle: #2A1848;
}

body {
    margin: 0;
    background-color: var(--bg-app);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    display: flex;
    height: 100vh;
    min-height: 0;
    overflow: hidden;
}

/* LOGIN OVERLAY */
.login-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-app);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 1rem;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3.5rem);
    max-width: 420px;
    width: 90%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin: auto;
}

.login-brand-coin {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 10%;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 24px rgba(201, 168, 76, 0.6));
}

.brand-title {
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-weight: 700;
    background: linear-gradient(180deg, #E8C970 0%, #C9A84C 25%, #8B6200 52%, #C9A84C 75%, #E8C970 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.04em;
}

.login-title {
    font-size: 2.8rem;
    margin: 0 0 0.5rem 0;
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.75rem;
}

.sidebar-brand-coin {
    width: clamp(55px, 25%, 75px);
    height: clamp(55px, 25%, 75px);
    border-radius: 50%;
    object-fit: cover;
    object-position: center 10%;
    filter: drop-shadow(0 2px 14px rgba(201, 168, 76, 0.5));
}

.sidebar-brand-name {
    font-size: 16px;
    text-align: center;
}

.login-sub {
    color: var(--text-muted);
    font-size: 20px;
    line-height: 1.6;
    margin: 0 0 2rem 0;
}

.btn-google-signin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: white;
    color: #1f1f1f;
    border: none;
    border-radius: 12px;
    padding: 13px 28px;
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.btn-google-signin:hover { opacity: 0.92; box-shadow: 0 4px 16px rgba(0,0,0,0.5); }

/* USER CARD (sidebar) */
.user-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    margin: 0 8px 10px 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
}

.btn-signout {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    text-align: left;
    transition: color 0.2s;
}
.btn-signout:hover { color: var(--pill-red-text); }

/* SIDEBAR */
.sidebar {
    width: 220px;
    min-width: 180px;
    flex-shrink: 0;
    background-color: var(--bg-header);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #2A1848 transparent;
    transition: width 0.3s ease, min-width 0.3s ease, padding 0.3s ease, border 0.3s ease;
}
.sidebar.sidebar-collapsed {
    width: 0 !important;
    min-width: 0 !important;
    padding: 0;
    border: none;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: #2A1848; border-radius: 4px; }

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 1;
    min-height: 0;
    margin-bottom: 0.75rem;
}


/* --- UPDATED BADGE STYLES --- */
.badge-updated {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border-subtle);
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 8px 14px;
    min-width: 0;
    max-width: 90%;
}

.pulse-dot {
    width: 10px; /* Bigger dot */
    height: 10px;
    background-color: var(--pill-green-text);
    border-radius: 50%;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.badge-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.3;
}

.badge-label {
    font-size: 13px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-time {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-primary);
    white-space: nowrap;
}
/* --------------------------- */

.nav-menu {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 1rem;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-label {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 0 14px;
    margin-bottom: 6px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.05);
}

.nav-link.active {
    background-color: rgba(255,255,255,0.05);
    color: var(--brand-primary);
    border-left-color: var(--brand-primary);
}

.nav-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    border-left: 3px solid transparent;
    user-select: none;
}

.nav-sub-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px 7px 30px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.nav-sub-link:hover {
    background-color: rgba(255,255,255,0.05);
    color: white;
}

.nav-sub-link.active {
    background-color: rgba(255,255,255,0.05);
    color: var(--brand-primary);
    border-left-color: var(--brand-primary);
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    position: relative;
}

.hidden { display: none !important; }

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}
.page-header p { color: var(--text-muted); margin-top: 4px; }

/* CONTROLS CARD */
.controls-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 0.875rem 1rem;
    margin: 0.875rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.control-group label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

select {
    background-color: var(--bg-app);
    border: 1px solid var(--border-subtle);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.control-divider { width: 1px; height: 40px; background: var(--border-subtle); }

.ftfc-wrapper { display: flex; gap: 10px; }

/* CUSTOM DROPDOWN */
.custom-dropdown { position: relative; display: inline-block; }

.dropdown-btn {
    background-color: var(--bg-app);
    border: 1px solid var(--border-subtle);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 19px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 120px;
}
.dropdown-btn:hover { border-color: var(--brand-primary); }

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%; left: 0;
    margin-top: 4px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 12px;
    min-width: 150px;
    z-index: 100;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}
.dropdown-content.show { display: flex; flex-direction: column; gap: 8px; }

.dropdown-content label {
    display: flex; align-items: center; gap: 8px;
    cursor: pointer; font-size: 19px; color: var(--text-primary); margin-bottom: 0;
}
.dropdown-content input[type="checkbox"] { accent-color: var(--brand-primary); width: 14px; height: 14px; }

/* BUTTONS */
.btn-reset-ghost {
    background: transparent; border: 1px solid var(--pill-green-text);
    color: var(--pill-green-text); padding: 8px 16px; border-radius: 8px;
    font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.2s;
}
.btn-reset-ghost:hover { background: var(--pill-green-bg); }

.btn-copy {
    background: transparent; border: 1px solid var(--brand-secondary);
    color: var(--brand-secondary); padding: 8px 16px; border-radius: 8px;
    font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; gap: 6px;
}
.btn-copy:hover { background: rgba(201, 168, 76, 0.1); }

/* SEARCH BAR */
.search-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 8px 16px;
    margin: 1.5rem 0 0.5rem 0;
    display: flex; align-items: center; gap: 12px;
}
.ticker-input {
    background: transparent; border: none; color: white;
    font-family: 'Inter', sans-serif; font-size: 20px; width: 100%; outline: none;
}
.ticker-input::placeholder { color: var(--text-muted); font-size: 19px; opacity: 0.7; }
.btn-search-icon { background: transparent; border: none; color: var(--brand-primary); cursor: pointer; font-size: 23px; }

/* SCANNER RESULTS */
.scanner-results, .setups-results { flex: 1; display: flex; flex-direction: column; gap: 1rem; }
.results-header { font-size: 17px; font-weight: bold; letter-spacing: 0.1em; color: var(--text-muted); }

/* AG GRID THEME OVERRIDES */
.ag-theme-balham-dark {
    --ag-background-color: var(--bg-card);
    --ag-foreground-color: #FFF;
    --ag-border-color: var(--border-subtle);
    --ag-header-background-color: var(--bg-header);
    --ag-row-hover-color: var(--bg-hover);
    --ag-font-family: 'JetBrains Mono', monospace;
    --ag-font-size: 13px;
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    overflow: hidden;
}
.ag-header-cell-label {
    font-family: 'Inter'; font-weight: 700; font-size: 12px; text-transform: uppercase;
}

/* --- PILL STYLES --- */
.strat-cell {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; padding: 4px;
}

.strat-pill {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 32px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid transparent;
}

/* Modifiers for Colors */
.pill-green { background-color: var(--pill-green-bg); color: var(--pill-green-text); }
.pill-red { background-color: var(--pill-red-bg); color: var(--pill-red-text); }
.pill-yellow { background-color: var(--pill-yellow-bg); color: var(--pill-yellow-text); }
.pill-purple { background-color: var(--pill-purple-bg); color: var(--pill-purple-text); }
.pill-neutral { background-color: rgba(255, 255, 255, 0.05); color: #9B8BAE; }

/* Modifiers for 'Winner' Status (Active Signal) */
.pill-winner {
    font-weight: 800;
}
.pill-winner.pill-green {
    border-color: var(--pill-green-text);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.15);
}
.pill-winner.pill-red {
    border-color: var(--pill-red-text);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.15);
}
.pill-winner.pill-purple {
    border-color: var(--pill-purple-text);
    box-shadow: 0 0 12px rgba(167, 139, 250, 0.15);
}
.pill-winner.pill-yellow {
    border-color: var(--pill-yellow-text);
    box-shadow: 0 0 12px rgba(234, 179, 8, 0.15);
}

/* TABS */
.tabs-container { display: flex; gap: 12px; margin-bottom: 1.5rem; border-bottom: none; }
.tab-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 10px 24px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif; font-size: 19px; font-weight: 600;
    cursor: pointer; transition: all 0.2s ease; letter-spacing: 0.02em;
}
.tab-btn:hover { background-color: var(--bg-hover); color: var(--text-primary); border-color: var(--text-muted); }
.tab-btn.active {
    background-color: var(--pill-green-bg);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.1);
}

/* TICKER MENU */
.ticker-menu {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 8px;
    min-width: 240px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
    animation: menuFadeIn 0.15s ease-out;
}

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

.ticker-menu-header {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 8px 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border-subtle);
}

.ticker-menu-item {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 19px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    text-align: left;
}

.ticker-menu-item:hover {
    background-color: var(--bg-hover);
    color: var(--brand-primary);
}

.ticker-menu-item i {
    font-size: 20px;
    width: 16px;
    text-align: center;
}

/* Sector grid: center all column header labels */
#grid-sector-stats .ag-header-cell-label {
    justify-content: center;
}

/* ROLE BADGE */
.role-badge {
    font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
    padding: 2px 6px; border-radius: 4px; display: inline-block;
}
.role-badge.role-free  { background: #1A0F2E; color: #3D2860; border: 1px solid #2A1848; }
.role-badge.role-pro   { background: rgba(201,168,76,0.15); color: #E8C46A; border: 1px solid #E8C46A; }
.role-badge.role-admin { background: rgba(201,168,76,0.15); color: var(--brand-primary); border: 1px solid var(--brand-primary); }

/* NAV LOCK ICON */
.nav-lock-icon { font-size: 14px; margin-left: auto; color: var(--text-muted); opacity: 0.6; }

/* LOCKED NAV ITEM */
.nav-locked {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
    filter: grayscale(0.4);
}
.nav-locked .nav-lock-icon {
    color: #f59e0b;
    opacity: 1;
    font-size: 16px;
}

/* LOCKED COLUMN HEADER */
.locked-col-header .ag-header-cell-text::before {
    content: '\f023';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 13px;
    color: #f59e0b;
    margin-right: 4px;
}
.locked-col-header { opacity: 0.5; }

/* LOCKED FILTER */
.filter-locked {
    opacity: 0.35;
    pointer-events: none;
    cursor: not-allowed;
    position: relative;
    filter: grayscale(0.5);
}

/* LOCKED FILTER VALUE (checkbox item) */
.filter-value-locked {
    opacity: 0.4;
    cursor: not-allowed;
}
.filter-value-locked input {
    pointer-events: none;
}

/* UPGRADE TOAST */
.upgrade-toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    background: var(--bg-card); border: 1px solid var(--brand-primary);
    border-radius: 14px; padding: 14px 20px;
    display: flex; align-items: center; gap: 12px;
    min-width: 300px; max-width: 460px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    z-index: 9998; font-size: 20px; color: white;
    animation: toastSlideUp 0.25s ease-out;
}
@keyframes toastSlideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(16px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* TOGGLE SWITCH */
.toggle-switch {
    position: relative; display: inline-block;
    width: 36px; height: 20px; cursor: pointer;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute; inset: 0;
    background: #2A1848; border-radius: 20px; transition: background 0.2s;
}
.toggle-slider::before {
    content: ''; position: absolute;
    width: 14px; height: 14px; left: 3px; bottom: 3px;
    background: white; border-radius: 50%; transition: transform 0.2s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--brand-primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(16px); }

/* ADMIN PANEL */
.admin-tabs-bar { display: flex; gap: 8px; margin: 1.5rem 0; }

.admin-tab-btn {
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    color: var(--text-muted); padding: 10px 20px; border-radius: 10px;
    font-family: 'Inter', sans-serif; font-size: 19px; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; gap: 8px;
}
.admin-tab-btn:hover { color: white; border-color: var(--text-muted); }
.admin-tab-btn.active { background: var(--pill-green-bg); border-color: var(--brand-primary); color: var(--brand-primary); }

.admin-tab-content { padding-top: 4px; }

.admin-card {
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: 20px; padding: 24px; margin-bottom: 20px;
}
.admin-card-title { font-size: 22px; font-weight: 700; color: white; margin: 0 0 6px 0; }
.admin-card-desc  { font-size: 17px; color: var(--text-muted); margin: 0 0 20px 0; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 19px; }
.admin-table th {
    text-align: left; font-size: 16px; font-weight: 700; letter-spacing: 0.08em;
    color: var(--text-muted); padding: 8px 12px;
    border-bottom: 1px solid var(--border-subtle); text-transform: uppercase;
}
.admin-table td { padding: 10px 12px; border-bottom: 1px solid rgba(42,24,72,0.5); vertical-align: middle; }
.admin-row-label { font-weight: 500; color: white; }

.admin-section-title {
    font-size: 16px; font-weight: 700; letter-spacing: 0.08em;
    color: var(--text-muted); text-transform: uppercase; margin: 20px 0 8px 0;
}

.admin-page-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.admin-page-tab-btn {
    background: var(--bg-app); border: 1px solid var(--border-subtle);
    color: var(--text-muted); padding: 6px 16px; border-radius: 8px;
    font-family: 'Inter', sans-serif; font-size: 17px; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
}
.admin-page-tab-btn.active { border-color: var(--brand-primary); color: var(--brand-primary); }

/* Education Vids */
.yt-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s, border-color 0.15s;
}
.yt-card:hover { transform: translateY(-3px); border-color: var(--brand-primary); }
.yt-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.yt-card-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.yt-card-title { color: var(--text-primary); font-size: 19px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt-card-date { color: var(--text-muted); font-size: 16px; margin-top: auto; }

/* INFO ICON TOOLTIPS */
.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 1px solid #3D2860;
    color: #6B5080;
    font-size: 12px;
    font-weight: 700;
    cursor: help;
    margin-left: 4px;
    vertical-align: middle;
    flex-shrink: 0;
    line-height: 1;
    font-style: normal;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.15s, color 0.15s;
    user-select: none;
}
.info-icon:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

#info-tooltip-box {
    position: fixed;
    background: #100820;
    border: 1px solid #2A1848;
    color: #D4C8E8;
    font-size: 16px;
    font-weight: 400;
    padding: 7px 10px;
    border-radius: 8px;
    max-width: 220px;
    line-height: 1.5;
    z-index: 10001;
    pointer-events: none;
    display: none;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.yt-badge-new { background: var(--brand-primary); color: #0D0717; font-size: 14px; font-weight: 700; padding: 2px 7px; border-radius: 4px; display: inline-block; margin-bottom: 2px; }

#scanner-pop-badge {
    align-items: center; gap: 6px;
    background: rgba(201,168,76,0.08); border: 1px solid rgba(201,168,76,0.3);
    color: var(--brand-primary); font-size: 16px; font-weight: 600;
    padding: 3px 10px; border-radius: 20px; margin-left: 10px;
}
.pop-clear-btn {
    cursor: pointer; color: #9B8BAE; font-size: 14px;
    padding: 1px 5px; border-radius: 4px;
    background: rgba(255,255,255,0.05);
}
.pop-clear-btn:hover { color: #EF4444; background: rgba(239,68,68,0.1); }

/* MENU TOGGLE BUTTON */
.menu-toggle-btn {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.menu-toggle-btn:hover { border-color: var(--brand-primary); color: var(--brand-primary); }

/* LAST UPDATED — TOP-RIGHT CORNER */
.badge-updated-corner {
    position: fixed;
    top: 1rem;
    right: 2rem;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-subtle);
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 6px 14px;
}

/* NAV COLLAPSIBLE */
.nav-group-header { cursor: pointer; user-select: none; }
.nav-group-header:hover { background-color: rgba(255,255,255,0.05); }
.nav-chevron { margin-left: auto; font-size: 12px; transition: transform 0.25s ease; color: var(--text-muted); }
.nav-chevron.rotated { transform: rotate(-90deg); }
.nav-group-body { overflow: hidden; max-height: 600px; transition: max-height 0.3s ease; }
.nav-group-body.collapsed { max-height: 0; }
