/* ============================================
   Admin Dashboard — admin/admin.css
   Dark-luxury theme matching TheFinalsLoadout site
   Primary: #00D4FF · Gold: #FFD700 · Pink: #FF1493
   Fonts: Bebas Neue (display) · Inter (body)
   ============================================ */

/* ============================================
   Design Tokens
   ============================================ */

:root {
    /* Brand */
    --color-primary: #00D4FF;
    --color-primary-glow: rgba(0, 212, 255, 0.28);
    --color-primary-soft: rgba(0, 212, 255, 0.08);
    --color-primary-ring: rgba(0, 212, 255, 0.35);
    --color-gold: #FFD700;
    --color-pink: #FF1493;
    --color-violet: #a78bfa;
    --color-green: #22c55e;
    --color-red: #ef4444;
    --color-amber: #eab308;

    /* Surfaces (dark luxury) */
    --bg-base: #080812;
    --bg-elevated: #0e0e1c;
    --bg-canvas: radial-gradient(
            1200px 600px at 0% -10%,
            rgba(0, 212, 255, 0.07),
            transparent 60%
        ),
        radial-gradient(
            900px 500px at 100% 0%,
            rgba(167, 139, 250, 0.05),
            transparent 60%
        ),
        linear-gradient(180deg, #0a0a16 0%, #080811 100%);

    /* Surface layers */
    --surface-1: rgba(255, 255, 255, 0.018);
    --surface-2: rgba(255, 255, 255, 0.032);
    --surface-3: rgba(255, 255, 255, 0.048);
    --surface-hi: rgba(255, 255, 255, 0.06);

    /* Borders (progressive subtlety) */
    --border-1: rgba(255, 255, 255, 0.05);
    --border-2: rgba(255, 255, 255, 0.08);
    --border-3: rgba(255, 255, 255, 0.12);

    /* Text */
    --text-hi: #f4f4f8;
    --text-1: #e2e2ea;
    --text-2: #a0a4b0;
    --text-3: #6b7080;
    --text-4: #484d5a;
    --text-muted: #32364a;

    /* Spacing scale (4px base) */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 20px;
    --sp-6: 24px;
    --sp-7: 32px;
    --sp-8: 40px;
    --sp-9: 56px;

    /* Radii */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
    --r-xl: 20px;
    --r-pill: 999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.28),
                 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    --shadow-lg: 0 18px 50px -12px rgba(0, 0, 0, 0.6),
                 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    --shadow-glow-primary: 0 0 0 1px rgba(0, 212, 255, 0.18),
                           0 10px 30px -10px rgba(0, 212, 255, 0.25);

    /* Motion */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --dur-fast: 140ms;
    --dur: 220ms;
    --dur-slow: 360ms;

    /* Layout */
    --sidebar-w: 228px;
    --content-max: 1480px;
    --content-pad-x: clamp(16px, 2.2vw, 48px);
    --content-pad-y: clamp(16px, 2vw, 36px);

    /* Numeric rendering */
    --num: 'Inter', 'SF Pro Display', sans-serif;
}

/* ============================================
   Base
   ============================================ */

body {
    margin: 0;
    background: var(--bg-base);
    background-image: var(--bg-canvas);
    background-attachment: fixed;
    color: var(--text-1);
    font-family: 'Inter', sans-serif;
    font-feature-settings: 'ss01', 'cv11';
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0.14)
    );
    border-radius: var(--r-pill);
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        rgba(0, 212, 255, 0.35),
        rgba(0, 212, 255, 0.22)
    );
    background-clip: padding-box;
    border: 2px solid transparent;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

/* Selection color */
::selection {
    background: rgba(0, 212, 255, 0.28);
    color: #fff;
}

/* Focus-visible — keyboard accessibility */
:focus-visible {
    outline: 2px solid var(--color-primary-ring);
    outline-offset: 3px;
    border-radius: var(--r-sm);
    transition: outline-offset 120ms var(--ease-out);
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--color-primary-ring);
    outline-offset: 3px;
    border-radius: var(--r-sm);
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   Auth / Forbidden Cards
   ============================================ */

.admin-auth-card {
    max-width: 420px;
    margin: 120px auto;
    text-align: center;
    padding: 52px 44px;
    background:
        radial-gradient(
            100% 80% at 50% 0%,
            rgba(0, 212, 255, 0.08),
            transparent 60%
        ),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.04),
            rgba(255, 255, 255, 0.018)
        );
    border: 1px solid var(--border-2);
    border-radius: var(--r-xl);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        0 30px 80px -24px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 0 60px -20px rgba(0, 212, 255, 0.25);
    animation: authCardIn 0.5s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.admin-auth-card::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 212, 255, 0.5),
        transparent
    );
}

@keyframes authCardIn {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.admin-auth-card::before {
    content: 'THE FINALS LOADOUT';
    display: block;
    font-family: 'Bebas Neue', cursive;
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: #444;
    margin-bottom: 20px;
}

.admin-auth-card h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.8rem;
    letter-spacing: 3px;
    color: #fff;
    margin: 0 0 8px;
}

.admin-auth-card p {
    color: var(--text-2);
    font-size: 14px;
    margin: 0 0 28px;
    line-height: 1.5;
}

.signin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #5865F2;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.3);
}

.signin-btn:hover {
    background: #4752c4;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.4);
}

.signin-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(88, 101, 242, 0.3);
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: #00D4FF;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.15s ease;
}

.back-link:hover {
    color: #33dfff;
    text-decoration: underline;
}

/* ============================================
   Layout
   ============================================ */

.admin-layout {
    display: flex;
    min-height: calc(100vh - 54px);
}

/* ============================================
   Sidebar
   ============================================ */

.admin-sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.018),
            rgba(255, 255, 255, 0.008)
        );
    border-right: 1px solid var(--border-1);
    display: flex;
    flex-direction: column;
    padding: 20px 0 16px;
    position: sticky;
    top: 54px;
    height: calc(100vh - 54px);
    overflow-y: auto;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.admin-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    right: -1px;
    bottom: 0;
    width: 1px;
    background: linear-gradient(
        180deg,
        transparent,
        rgba(0, 212, 255, 0.12) 30%,
        rgba(255, 20, 147, 0.08) 70%,
        transparent
    );
    pointer-events: none;
}

.admin-sidebar-brand {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.3rem;
    letter-spacing: 5px;
    color: var(--color-gold);
    padding: 4px 22px 18px;
    border-bottom: 1px solid var(--border-1);
    margin-bottom: 12px;
    text-shadow: 0 0 24px rgba(255, 215, 0, 0.28);
    position: relative;
    overflow: hidden;
}

.admin-sidebar-brand::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: linear-gradient(
        180deg,
        var(--color-gold),
        rgba(255, 215, 0, 0.3)
    );
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
    display: none; /* keep brand clean; enable if needed */
}

.admin-sidebar-brand::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.08), transparent);
    animation: brandShine 2s ease-out 0.5s 1;
}

@keyframes brandShine {
    0% { left: -100%; }
    100% { left: 200%; }
}

.admin-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 10px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    background: none;
    border: none;
    border-radius: var(--r-md);
    color: var(--text-3);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition:
        color var(--dur-fast) var(--ease-out),
        background var(--dur-fast) var(--ease-out),
        transform var(--dur-fast) var(--ease-out);
    box-sizing: border-box;
    position: relative;
    letter-spacing: 0.01em;
}

.admin-nav-item::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    width: 3px;
    height: 0;
    border-radius: 2px;
    background: linear-gradient(
        180deg,
        var(--color-primary),
        rgba(0, 212, 255, 0.4)
    );
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.45);
    transform: translateY(-50%);
    transition: height var(--dur) var(--ease-out-expo);
    pointer-events: none;
}

.admin-nav-item:hover {
    color: var(--text-1);
    background: var(--surface-2);
}

.admin-nav-item:hover::before {
    height: 14px;
    opacity: 0.5;
}

.admin-nav-item:focus-visible {
    outline: none;
    color: var(--text-hi);
    background: var(--surface-2);
    box-shadow:
        inset 0 0 0 1px var(--color-primary-ring),
        0 0 0 3px rgba(0, 212, 255, 0.14);
}

.admin-nav-item:focus-visible::before {
    height: 18px;
    opacity: 1;
}

.admin-nav-item:active {
    transform: translateX(1px);
}

.admin-nav-item.active {
    color: var(--color-primary);
    background: linear-gradient(
        90deg,
        rgba(0, 212, 255, 0.14),
        rgba(0, 212, 255, 0.02)
    );
    font-weight: 600;
    box-shadow:
        inset 0 0 0 1px rgba(0, 212, 255, 0.14),
        0 4px 16px -8px rgba(0, 212, 255, 0.35);
}

.admin-nav-item.active::before {
    height: 22px;
}

.admin-nav-item.active:hover {
    background: linear-gradient(
        90deg,
        rgba(0, 212, 255, 0.18),
        rgba(0, 212, 255, 0.03)
    );
}

/* Keyboard shortcut number on nav items */
.admin-nav-item .nav-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    background: var(--surface-2);
    border: 1px solid var(--border-1);
    color: var(--text-4);
    font-size: 10px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    font-variant-numeric: tabular-nums;
    margin-right: 10px;
    flex-shrink: 0;
    transition:
        color var(--dur-fast) var(--ease-out),
        border-color var(--dur-fast) var(--ease-out),
        background var(--dur-fast) var(--ease-out);
}

.admin-nav-item:hover .nav-key {
    color: var(--text-2);
    border-color: var(--border-2);
    background: var(--surface-3);
}

.admin-nav-item.active .nav-key {
    color: var(--color-primary);
    border-color: rgba(0, 212, 255, 0.28);
    background: var(--color-primary-soft);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.admin-sidebar-footer {
    margin-top: auto;
    margin-left: 10px;
    margin-right: 10px;
    padding: 12px 14px;
    border-radius: var(--r-md);
    border: 1px solid var(--border-1);
    background: var(--surface-1);
    color: var(--text-2);
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.admin-sidebar-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        80% 50% at 0% 100%,
        rgba(0, 212, 255, 0.06),
        transparent
    );
    pointer-events: none;
}

.admin-sidebar-footer::after {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-green);
    box-shadow: 0 0 8px var(--color-green);
    flex-shrink: 0;
    margin-left: auto;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.admin-sidebar-footer .footer-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.admin-sidebar-footer .footer-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-2);
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* ============================================
   Content Area
   ============================================ */

.admin-content {
    flex: 1;
    padding: var(--content-pad-y) var(--content-pad-x);
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    max-width: var(--content-max);
    max-height: calc(100vh - 54px);
    position: relative;
}

.admin-tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--sp-7);
    padding-bottom: var(--sp-5);
    border-bottom: 1px solid var(--border-1);
    gap: var(--sp-4);
    position: relative;
}

.admin-tab-header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 80px;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--color-primary),
        rgba(0, 212, 255, 0.05)
    );
    border-radius: 2px;
}

.admin-tab-header-left {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}

.admin-tab-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-tab-header h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(1.6rem, 1.2rem + 0.8vw, 2.1rem);
    letter-spacing: 3px;
    margin: 0;
    color: var(--text-hi);
    line-height: 1;
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #c4c8d4 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-last-refreshed {
    font-size: 11px;
    color: var(--text-4);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.8s ease;
    font-variant-numeric: tabular-nums;
}

.admin-last-refreshed.just-updated {
    color: var(--color-green);
    transition: color 0s;
}

.admin-kbd-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    color: var(--text-3);
    font-size: 12px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: help;
    transition:
        color var(--dur-fast) var(--ease-out),
        border-color var(--dur-fast) var(--ease-out),
        background var(--dur-fast) var(--ease-out),
        transform var(--dur-fast) var(--ease-out);
    position: relative;
}

.admin-kbd-hint:hover {
    color: var(--color-primary);
    border-color: rgba(0, 212, 255, 0.35);
    background: var(--color-primary-soft);
    transform: translateY(-1px);
}

/* Keyboard hint tooltip */
.admin-kbd-hint::after {
    content: '1-6 tabs · R refresh';
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(20, 20, 35, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-2);
    font-size: 11px;
    font-weight: 400;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.15s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.admin-kbd-hint:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.admin-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(
        180deg,
        var(--surface-3),
        var(--surface-2)
    );
    border: 1px solid var(--border-2);
    border-radius: 10px;
    color: var(--text-2);
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 9px 18px;
    cursor: pointer;
    transition:
        color var(--dur-fast) var(--ease-out),
        border-color var(--dur-fast) var(--ease-out),
        background var(--dur-fast) var(--ease-out),
        transform var(--dur-fast) var(--ease-out),
        box-shadow var(--dur-fast) var(--ease-out);
    box-shadow: var(--shadow-sm);
}

.admin-refresh-btn:hover {
    color: var(--color-primary);
    border-color: rgba(0, 212, 255, 0.35);
    background: linear-gradient(
        180deg,
        rgba(0, 212, 255, 0.08),
        rgba(0, 212, 255, 0.02)
    );
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow-primary);
}

.refresh-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 1.5px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.refresh-icon.spinning {
    animation: spin 0.7s linear infinite;
}

.admin-refresh-btn:active {
    transform: scale(0.96);
}

.admin-refresh-btn.is-loading {
    pointer-events: none;
    opacity: 0.6;
}

.admin-loading {
    color: var(--text-2);
    text-align: center;
    padding: 60px 40px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.admin-loading::before {
    content: '';
    width: 26px;
    height: 26px;
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-top-color: var(--color-primary);
    border-right-color: rgba(0, 212, 255, 0.45);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    box-shadow: 0 0 20px -4px rgba(0, 212, 255, 0.35);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.admin-error {
    background:
        linear-gradient(90deg, rgba(239, 68, 68, 0.09), rgba(239, 68, 68, 0.03) 40%, rgba(239, 68, 68, 0.05));
    border: 1px solid rgba(239, 68, 68, 0.22);
    border-left: 3px solid var(--color-red);
    border-radius: var(--r-md);
    padding: 14px 18px 14px 16px;
    color: #fca5a5;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow:
        0 10px 30px -18px rgba(239, 68, 68, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    animation: errorAppear 0.4s var(--ease-out-expo);
}

.admin-error::before {
    content: '!';
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.18);
    color: var(--color-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.35) inset, 0 0 14px -2px rgba(239, 68, 68, 0.45);
    animation: errorPulse 2.2s var(--ease-out) infinite;
}

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

@keyframes errorPulse {
    0%, 100% { box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.35) inset, 0 0 14px -2px rgba(239, 68, 68, 0.45); }
    50% { box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.55) inset, 0 0 22px -2px rgba(239, 68, 68, 0.65); }
}

/* ============================================
   Skeleton Loading Placeholders
   ============================================ */

.skeleton {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.014));
    border-radius: 8px;
}

.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.045) 45%,
        rgba(0, 212, 255, 0.06) 50%,
        rgba(255, 255, 255, 0.045) 55%,
        transparent 100%
    );
    animation: shimmer 1.6s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skeleton-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.skeleton-card {
    height: 104px;
    border-radius: var(--r-lg);
    border: 1px solid var(--border-1);
    background:
        radial-gradient(120% 180% at 0% 0%, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.008) 60%),
        linear-gradient(180deg, var(--surface-2), var(--surface-1));
    box-shadow: var(--shadow-sm);
}

.skeleton-row {
    height: 14px;
    margin-bottom: 12px;
    border-radius: 4px;
}

.skeleton-row.w-60 { width: 60%; }
.skeleton-row.w-40 { width: 40%; }
.skeleton-row.w-80 { width: 80%; }
.skeleton-row.w-full { width: 100%; }

.skeleton-table-row {
    display: flex;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.skeleton-table-cell {
    height: 12px;
    border-radius: 3px;
    flex: 1;
}

.skeleton-table-cell.narrow { flex: 0.4; }

.skeleton-section {
    margin-bottom: 32px;
}

.skeleton-title {
    height: 18px;
    width: 140px;
    border-radius: 4px;
    margin-bottom: 16px;
}

/* Admin app entrance */
#admin-app {
    animation: adminAppIn 0.35s ease-out;
}

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

/* Empty state */
.admin-empty {
    text-align: center;
    padding: 64px 24px 56px;
    color: var(--text-3);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

.admin-empty::before {
    content: '';
    display: block;
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.1), transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
    border: 1px dashed var(--border-3);
    position: relative;
}

.admin-empty::after {
    content: '';
    position: absolute;
    display: none;
}

/* Tab content fade-in */
.admin-tab-content {
    animation: tabFadeIn 0.25s ease-out;
}

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

/* ============================================
   Stat Cards
   ============================================ */

.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    margin-bottom: var(--sp-7);
}

.stat-card {
    --accent: var(--color-primary);
    --accent-soft: var(--color-primary-soft);
    background:
        radial-gradient(
            120% 180% at 0% 0%,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.012) 60%
        ),
        linear-gradient(180deg, var(--surface-2), var(--surface-1));
    border: 1px solid var(--border-1);
    border-radius: var(--r-lg);
    padding: 18px 20px 20px;
    transition:
        border-color var(--dur) var(--ease-out),
        transform var(--dur) var(--ease-out),
        box-shadow var(--dur) var(--ease-out);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    box-shadow: var(--shadow-sm);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--accent) 20%,
        var(--accent) 60%,
        transparent
    );
    opacity: 0.55;
    transition: opacity var(--dur) var(--ease-out);
    z-index: 2;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 220px;
    height: 220px;
    background: radial-gradient(
        circle,
        var(--accent-soft),
        transparent 70%
    );
    filter: blur(20px);
    opacity: 0;
    transition: opacity var(--dur-slow) var(--ease-out);
    pointer-events: none;
    z-index: 0;
}

.stat-card > * { position: relative; z-index: 1; }

.stat-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow:
        0 12px 34px -12px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

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

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

.stat-card:nth-child(2) {
    --accent: var(--color-gold);
    --accent-soft: rgba(255, 215, 0, 0.12);
}
.stat-card:nth-child(3) {
    --accent: var(--color-pink);
    --accent-soft: rgba(255, 20, 147, 0.12);
}
.stat-card:nth-child(4) {
    --accent: var(--color-violet);
    --accent-soft: rgba(167, 139, 250, 0.12);
}

.stat-card:hover .stat-card-value,
.stat-card:hover .stat-value {
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-soft);
}

.stat-card .stat-card-label,
.stat-card .stat-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--text-3);
    font-family: 'Inter', sans-serif;
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-card-icon {
    font-size: 13px;
    opacity: 0.65;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--accent-soft);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-card .stat-card-value,
.stat-card .stat-value {
    font-size: clamp(24px, 1.4rem + 0.6vw, 32px);
    font-weight: 700;
    color: var(--text-hi);
    font-family: var(--num);
    line-height: 1;
    letter-spacing: -0.6px;
    font-variant-numeric: tabular-nums;
    transition:
        color var(--dur-fast) var(--ease-out),
        text-shadow var(--dur) var(--ease-out);
    display: flex;
    align-items: baseline;
    gap: 6px;
}

/* ============================================
   Data Tables
   ============================================ */

/* Table wrapper for horizontal scroll on mobile */
.admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--r-md);
    border: 1px solid var(--border-1);
    background: var(--surface-1);
    margin-left: 14px;
    margin-right: 14px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
    /* Fade mask indicates horizontal scrollability on the right edge */
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent 100%);
            mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent 100%);
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
}

/* Disable fade mask when content fits (no horizontal scroll triggered) */
@media (min-width: 1024px) {
    .admin-table-wrap {
        -webkit-mask-image: none;
                mask-image: none;
    }
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: 'Inter', sans-serif;
}

.admin-table-wrap .admin-table {
    margin-bottom: 0;
}

.admin-table th {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--text-3);
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-2);
    font-weight: 700;
    background: linear-gradient(
        180deg,
        rgba(18, 18, 32, 0.9),
        rgba(12, 12, 24, 0.9)
    );
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    position: sticky;
    top: 0;
    z-index: 1;
    white-space: nowrap;
}

.admin-table-wrap .admin-table th:first-child {
    border-top-left-radius: var(--r-md);
}
.admin-table-wrap .admin-table th:last-child {
    border-top-right-radius: var(--r-md);
}

.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-1);
    color: var(--text-1);
    font-size: 13px;
    transition: background var(--dur-fast) var(--ease-out);
    vertical-align: middle;
}

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

.admin-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.012);
}

.admin-table tbody tr {
    position: relative;
}

.admin-table tbody tr:hover td {
    background: rgba(0, 212, 255, 0.045);
    color: var(--text-hi);
}

.admin-table tbody tr:hover td:first-child {
    box-shadow: inset 2px 0 0 0 var(--color-primary);
}

.admin-table .right {
    text-align: right;
}

.delta-green,
.delta-yellow,
.delta-red {
    font-weight: 600;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum' 1, 'lnum' 1;
    letter-spacing: -0.01em;
}

.delta-green {
    color: #4ade80;
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.18);
}

.delta-yellow {
    color: #fbbf24;
    text-shadow: 0 0 8px rgba(234, 179, 8, 0.18);
}

.delta-red {
    color: #f87171;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.22);
}

/* Delta tooltip */
.delta-cell {
    position: relative;
    cursor: help;
}

.delta-cell[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 6px);
    right: 0;
    white-space: nowrap;
    padding: 5px 9px;
    border-radius: 5px;
    background: rgba(20, 20, 35, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-2);
    font-size: 10px;
    font-weight: 400;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Sections
   ============================================ */

.admin-section {
    margin-bottom: var(--sp-7);
    padding: 20px 22px 22px;
    background:
        linear-gradient(180deg, var(--surface-1), rgba(255, 255, 255, 0.004));
    border: 1px solid var(--border-1);
    border-radius: var(--r-lg);
    position: relative;
    transition: border-color var(--dur) var(--ease-out);
}

.admin-section:hover {
    border-color: var(--border-2);
}

.admin-section-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.25rem;
    letter-spacing: 2.5px;
    color: var(--text-hi);
    margin: 0 0 4px;
    padding: 0 0 12px 14px;
    border-bottom: 1px solid var(--border-1);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    line-height: 1.2;
}

.admin-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: linear-gradient(
        180deg,
        var(--color-primary),
        rgba(0, 212, 255, 0.35)
    );
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.35);
}

.admin-section-subtitle {
    font-size: 12.5px;
    color: var(--text-3);
    font-family: 'Inter', sans-serif;
    margin: 10px 0 18px 14px;
    letter-spacing: 0.01em;
}

.admin-subsection {
    margin: 0 14px 24px;
}

.admin-subsection:last-child {
    margin-bottom: 0;
}

.admin-subsection-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--text-2);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    margin: 0 0 12px;
}

.admin-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    margin: 16px 0;
}

.admin-label-row {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-3);
    font-family: 'Inter', sans-serif;
    margin-bottom: 8px;
    font-weight: 600;
    padding-top: 4px;
}

/* Class color indicators */
.class-indicator {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    position: relative;
    top: -1px;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.04),
        0 0 10px currentColor;
}

.class-indicator.light {
    background: var(--color-primary);
    color: rgba(0, 212, 255, 0.55);
}
.class-indicator.medium {
    background: var(--color-gold);
    color: rgba(255, 215, 0, 0.55);
}
.class-indicator.heavy {
    background: var(--color-pink);
    color: rgba(255, 20, 147, 0.55);
}

/* ============================================
   Sub-tabs (Randomness page filter)
   ============================================ */

.randomness-subtabs {
    display: inline-flex;
    gap: 2px;
    background: var(--surface-1);
    border: 1px solid var(--border-1);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.randomness-subtab {
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-3);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    cursor: pointer;
    transition:
        color var(--dur-fast) var(--ease-out),
        background var(--dur-fast) var(--ease-out);
    letter-spacing: 0.01em;
}

.randomness-subtab:hover {
    color: var(--text-1);
    background: var(--surface-2);
}

.randomness-subtab.active {
    color: var(--text-hi);
    background: linear-gradient(
        180deg,
        rgba(0, 212, 255, 0.18),
        rgba(0, 212, 255, 0.08)
    );
    box-shadow:
        0 1px 4px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(0, 212, 255, 0.24);
}

/* ============================================
   Scotty Logs
   ============================================ */

.scotty-text {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
    padding: 2px 4px;
    margin: -2px -4px;
}

.scotty-text:hover {
    background: rgba(255, 255, 255, 0.03);
}

.scotty-text.expanded {
    white-space: normal;
    overflow: visible;
    background: rgba(0, 212, 255, 0.04);
    max-width: none;
}

/* Question vs response column styling */
.scotty-question {
    color: var(--text-1);
    font-weight: 500;
}

.scotty-response {
    color: var(--text-2);
    font-style: italic;
    position: relative;
    padding-left: 10px;
}

.scotty-response::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.4), rgba(0, 212, 255, 0.08));
    opacity: 0.7;
}

.scotty-response.expanded {
    font-style: normal;
    color: var(--text-1);
}

.scotty-response.expanded::before {
    opacity: 1;
}

/* Conversation grouping bands */
.admin-table tbody tr.conv-band-a td {
    background: rgba(255, 255, 255, 0.02);
}

.admin-table tbody tr.conv-band-b td {
    background: rgba(100, 140, 255, 0.045);
}

.admin-table tbody tr.conv-first td {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table tbody tr.conv-band-a:hover td,
.admin-table tbody tr.conv-band-b:hover td {
    background: rgba(255, 255, 255, 0.06);
}

/* ============================================
   Users
   ============================================ */

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 10px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.15s ease;
}

tr:hover .user-avatar {
    border-color: rgba(0, 212, 255, 0.3);
}

/* User rank badges */
.user-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    margin-right: 6px;
    vertical-align: middle;
}

.rank-gold {
    background: rgba(255, 215, 0, 0.12);
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.25);
}

.rank-silver {
    background: rgba(192, 192, 192, 0.1);
    color: #c0c0c0;
    border: 1px solid rgba(192, 192, 192, 0.2);
}

.rank-bronze {
    background: rgba(205, 127, 50, 0.1);
    color: #cd7f32;
    border: 1px solid rgba(205, 127, 50, 0.2);
}

/* Auth provider badge — Discord vs email signup */
.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
    line-height: 1;
    vertical-align: middle;
    margin-left: 8px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.auth-badge svg {
    flex-shrink: 0;
}

.auth-badge-discord {
    background: rgba(88, 101, 242, 0.12);
    color: #8a96ff;
    border-color: rgba(88, 101, 242, 0.28);
}

.auth-badge-email {
    background: rgba(148, 163, 184, 0.1);
    color: #cbd5e1;
    border-color: rgba(148, 163, 184, 0.22);
}

/* Users table — compact column widths */
.users-table .col-user {
    white-space: nowrap;
}

.users-table .col-spins {
    width: 60px;
}

.users-table .col-spins-detail {
    width: 50px;
    font-size: 12px;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
}

.users-table .col-status {
    width: 90px;
    font-size: 12px;
}

.users-table .col-wt {
    width: 60px;
    font-size: 12px;
}

.users-table .col-date {
    width: 85px;
    font-size: 12px;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}

/* Last active coloring */
.text-active-now {
    color: #22c55e !important;
    font-weight: 600;
}

.text-active-recent {
    color: #4ade80 !important;
}

.text-active-week {
    color: var(--text-2);
}

.text-dim {
    color: #444 !important;
}

/* WT points accent */
.text-wt {
    color: #a78bfa !important;
    font-weight: 500;
}

/* Page badge for Scotty logs */
.page-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--r-pill);
    font-size: 10.5px;
    font-weight: 700;
    background: var(--surface-2);
    color: var(--text-2);
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    border: 1px solid var(--border-1);
    letter-spacing: 0.04em;
    text-transform: lowercase;
    line-height: 1.5;
}

.page-badge.page-main {
    background: rgba(0, 212, 255, 0.06);
    color: #00D4FF;
    border: 1px solid rgba(0, 212, 255, 0.12);
}

.page-badge.page-meta {
    background: rgba(255, 215, 0, 0.06);
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.12);
}

.page-badge.page-ragequit {
    background: rgba(255, 20, 147, 0.06);
    color: #FF1493;
    border: 1px solid rgba(255, 20, 147, 0.12);
}

.page-badge.page-wt {
    background: rgba(167, 139, 250, 0.06);
    color: #a78bfa;
    border: 1px solid rgba(167, 139, 250, 0.12);
}

/* ============================================
   Game Data Cards
   ============================================ */

.admin-card {
    background:
        linear-gradient(
            180deg,
            var(--surface-2),
            var(--surface-1)
        );
    border: 1px solid var(--border-1);
    border-left: 3px solid var(--border-2);
    border-radius: var(--r-lg);
    padding: 18px 22px;
    margin-bottom: 10px;
    transition:
        border-color var(--dur) var(--ease-out),
        transform var(--dur) var(--ease-out),
        box-shadow var(--dur) var(--ease-out),
        background var(--dur) var(--ease-out);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.admin-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.08),
        transparent
    );
}

.admin-card:hover {
    border-color: var(--border-3);
    background: linear-gradient(
        180deg,
        var(--surface-3),
        var(--surface-2)
    );
    transform: translateX(3px);
    box-shadow: var(--shadow-md);
}

/* Class-colored left border on loadout cards */
.admin-card.card-class-light { border-left-color: #00D4FF; }
.admin-card.card-class-medium { border-left-color: #FFD700; }
.admin-card.card-class-heavy { border-left-color: #FF1493; }

.admin-card.card-class-light:hover { border-left-color: #00D4FF; }
.admin-card.card-class-medium:hover { border-left-color: #FFD700; }
.admin-card.card-class-heavy:hover { border-left-color: #FF1493; }

.admin-card h4 {
    color: var(--text-hi);
    font-size: 14.5px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    letter-spacing: 0.01em;
}

.admin-card p {
    color: var(--text-2);
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    margin: 0;
    line-height: 1.65;
}

.admin-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: var(--r-sm);
    font-size: 10px;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    line-height: 1.4;
    transition:
        transform var(--dur-fast) var(--ease-out),
        box-shadow var(--dur-fast) var(--ease-out),
        filter var(--dur-fast) var(--ease-out);
}

.admin-tag:hover {
    transform: translateY(-1px) scale(1.04);
    filter: brightness(1.1);
}

.tier-s {
    background: rgba(255, 215, 0, 0.12);
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.25);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.tier-s:hover {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.tier-a {
    background: rgba(0, 212, 255, 0.1);
    color: #00D4FF;
    border: 1px solid rgba(0, 212, 255, 0.2);
    text-shadow: 0 0 6px rgba(0, 212, 255, 0.2);
}

.tier-b {
    background: rgba(167, 139, 250, 0.1);
    color: #a78bfa;
    border: 1px solid rgba(167, 139, 250, 0.2);
}

.tier-c {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-2);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Stub/warning notice */
.admin-notice {
    background:
        linear-gradient(
            180deg,
            rgba(234, 179, 8, 0.09),
            rgba(234, 179, 8, 0.04)
        );
    border: 1px solid rgba(234, 179, 8, 0.22);
    border-radius: var(--r-md);
    padding: 14px 18px;
    color: var(--color-amber);
    font-size: 13px;
    line-height: 1.55;
    margin: 0 14px 14px;
    box-shadow: 0 0 24px -12px rgba(234, 179, 8, 0.4);
}

/* Season facts list */
.admin-fact-list {
    list-style: none;
    padding: 0;
    margin: 0 14px;
}

.admin-fact-list li {
    padding: 8px 0 8px 20px;
    color: var(--text-1);
    font-size: 13px;
    line-height: 1.5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
}

.admin-fact-list li:last-child {
    border-bottom: none;
}

.admin-fact-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.4);
}

/* ============================================
   Platform Badges
   ============================================ */

.platform-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.platform-badge.twitch {
    background: rgba(145, 70, 255, 0.15);
    color: #bf94ff;
    border: 1px solid rgba(145, 70, 255, 0.3);
}

.platform-badge.youtube {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4444;
    border: 1px solid rgba(255, 0, 0, 0.2);
}

.platform-badge.kick {
    background: rgba(83, 252, 24, 0.1);
    color: #53fc18;
    border: 1px solid rgba(83, 252, 24, 0.2);
}

.platform-link {
    text-decoration: none;
}

.platform-link:hover .platform-badge {
    filter: brightness(1.3);
}

/* Stat card with text value instead of number */
.stat-card-value-text {
    font-size: 1.2rem !important;
    letter-spacing: 0;
}

/* ============================================
   Breakdown Bars
   ============================================ */

.breakdown-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 14px 12px 14px;
    max-width: 680px;
    transition: transform var(--dur-fast) var(--ease-out);
}

.breakdown-row:last-child {
    margin-bottom: 0;
}

.breakdown-row:hover {
    transform: translateX(2px);
}

.breakdown-label {
    width: 90px;
    font-size: 12.5px;
    color: var(--text-1);
    font-family: 'Inter', sans-serif;
    text-align: right;
    flex-shrink: 0;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.02em;
}

.breakdown-bar-track {
    flex: 1;
    height: 26px;
    background: var(--surface-1);
    border: 1px solid var(--border-1);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.breakdown-bar-fill {
    height: 100%;
    border-radius: 7px;
    /* Fallback gradient — uses currentColor so JS-set colors flow through too */
    background: linear-gradient(90deg, currentColor, color-mix(in oklch, currentColor 65%, transparent));
    transition:
        width 0.8s var(--ease-out-expo),
        filter var(--dur-fast) var(--ease-out);
    position: relative;
    width: 0;
    box-shadow:
        0 0 12px -2px currentColor,
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.breakdown-row:hover .breakdown-bar-fill {
    filter: brightness(1.2) saturate(1.1);
}

.breakdown-row:hover .breakdown-value {
    color: var(--text-hi);
}

.breakdown-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    border-radius: 7px 7px 0 0;
}

.breakdown-value {
    width: 120px;
    font-size: 12.5px;
    color: var(--text-2);
    font-family: var(--num);
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    transition: color var(--dur-fast) var(--ease-out);
}

/* ============================================
   Side-by-side sections
   ============================================ */

.admin-section-row {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
}

.admin-section-half {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

/* ============================================
   Daily bar chart (vertical bars)
   ============================================ */

.daily-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 200px;
    padding: 8px 4px 0;
    margin-left: 14px;
    position: relative;
}

/* Horizontal gridlines */
.daily-chart::before {
    content: '';
    position: absolute;
    inset: 8px 0 20px 0;
    background-image:
        linear-gradient(
            to bottom,
            transparent 0,
            transparent calc(25% - 1px),
            rgba(255, 255, 255, 0.04) calc(25% - 1px),
            rgba(255, 255, 255, 0.04) 25%,
            transparent 25%,
            transparent calc(50% - 1px),
            rgba(255, 255, 255, 0.04) calc(50% - 1px),
            rgba(255, 255, 255, 0.04) 50%,
            transparent 50%,
            transparent calc(75% - 1px),
            rgba(255, 255, 255, 0.04) calc(75% - 1px),
            rgba(255, 255, 255, 0.04) 75%,
            transparent 75%,
            transparent 100%
        );
    pointer-events: none;
    z-index: 0;
}

/* Chart baseline — anchors the bars to a clear ground line */
.daily-chart::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 212, 255, 0.28) 15%,
        rgba(0, 212, 255, 0.28) 85%,
        transparent
    );
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.25);
    pointer-events: none;
    z-index: 0;
}

.daily-chart-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    position: relative;
    z-index: 1;
}

.daily-chart-value {
    font-size: 11px;
    font-family: var(--num);
    color: var(--text-2);
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: color var(--dur-fast) var(--ease-out);
}

.daily-chart-bar-track {
    flex: 1;
    width: 100%;
    max-width: 56px;
    background: var(--surface-1);
    border-radius: 6px 6px 2px 2px;
    position: relative;
    display: flex;
    align-items: flex-end;
    border: 1px solid var(--border-1);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.daily-chart-bar-fill {
    width: 100%;
    border-radius: 5px 5px 0 0;
    /* Fallback color/gradient used when JS hasn't set an inline background */
    background: linear-gradient(180deg, var(--color-primary), rgba(0, 212, 255, 0.55));
    color: var(--color-primary);
    transition:
        height 0.6s var(--ease-out-expo),
        filter var(--dur-fast) var(--ease-out),
        box-shadow var(--dur) var(--ease-out);
    position: relative;
    height: 0;
    box-shadow: 0 0 18px -2px currentColor, inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

.daily-chart-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.18),
        transparent
    );
    border-radius: 5px 5px 0 0;
    pointer-events: none;
}

.daily-chart-bar-fill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.08) 0,
        transparent 50%
    );
    border-radius: 5px 5px 0 0;
    opacity: 0;
    transition: opacity var(--dur-fast) var(--ease-out);
}

.daily-chart-col:hover .daily-chart-bar-fill::before {
    opacity: 1;
}

.daily-chart-col:hover .daily-chart-bar-fill {
    filter: brightness(1.3) saturate(1.15);
}

.daily-chart-col:hover .daily-chart-value {
    color: var(--text-hi);
    transform: translateY(-1px);
}

.daily-chart-label {
    font-size: 10.5px;
    font-family: 'Inter', sans-serif;
    color: var(--text-3);
    margin-top: 10px;
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
    transition: color var(--dur-fast) var(--ease-out);
}

.daily-chart-col:hover .daily-chart-label {
    color: var(--text-1);
}

.daily-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
    color: #9ca3af;
    font-family: 'Inter', sans-serif;
}

.daily-chart-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.daily-chart-legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

/* Stacked fill — suppress the gradient sheen since each segment owns its color */
.daily-chart-bar-fill.stacked::after {
    display: none;
}

/* ============================================
   Mobile (≤768px)
   ============================================ */

@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-1);
        padding: 0;
        -webkit-overflow-scrolling: touch;
        position: sticky;
        top: 0;
        z-index: 50;
        height: auto;
        scrollbar-width: none;
        background:
            linear-gradient(
                180deg,
                rgba(10, 10, 22, 0.85),
                rgba(10, 10, 22, 0.95)
            );
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    .admin-sidebar::before {
        display: none;
    }

    .admin-sidebar::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(
            90deg,
            transparent,
            rgba(0, 212, 255, 0.3),
            rgba(255, 20, 147, 0.2),
            transparent
        );
    }

    .admin-sidebar::-webkit-scrollbar {
        display: none;
    }

    .admin-sidebar-brand {
        border-bottom: none;
        border-right: 1px solid var(--border-1);
        padding: 14px 18px;
        white-space: nowrap;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        margin-bottom: 0;
        font-size: 1.1rem;
        letter-spacing: 3.5px;
    }

    .admin-sidebar-nav,
    .admin-sidebar nav,
    .admin-sidebar > div:not(.admin-sidebar-brand):not(.admin-sidebar-footer) {
        display: flex;
        flex-direction: row;
        gap: 2px;
        padding: 6px;
        align-items: center;
    }

    .admin-nav-item {
        flex-direction: row;
        border-radius: 8px;
        font-size: 12.5px;
        white-space: nowrap;
        padding: 12px 16px;
        flex-shrink: 0;
        flex-grow: 0;
        flex-basis: auto;
        width: auto;
        min-height: 48px;
        min-width: 60px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        background: transparent;
    }

    .admin-nav-item::before {
        display: none;
    }

    .admin-nav-item:hover {
        background: var(--surface-2);
    }

    .admin-nav-item .nav-key {
        display: none;
    }

    .admin-nav-item.active {
        background: linear-gradient(
            180deg,
            rgba(0, 212, 255, 0.18),
            rgba(0, 212, 255, 0.06)
        );
        color: var(--color-primary);
        box-shadow:
            inset 0 0 0 1px rgba(0, 212, 255, 0.25),
            0 0 18px -6px rgba(0, 212, 255, 0.45);
    }

    .admin-sidebar-footer {
        display: none;
    }

    .admin-content {
        padding: 18px 16px;
        padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
        padding-left: calc(16px + env(safe-area-inset-left, 0px));
        padding-right: calc(16px + env(safe-area-inset-right, 0px));
        max-width: 100%;
        max-height: none;
        overflow-y: visible;
    }

    .admin-tab-header {
        margin-bottom: 22px;
        padding-bottom: 14px;
    }

    .admin-tab-header-left {
        flex-direction: column;
        gap: 4px;
    }

    .admin-tab-header h2 {
        font-size: 1.55rem;
        letter-spacing: 2.5px;
    }

    .admin-kbd-hint {
        display: none;
    }

    .stat-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 16px 14px 18px;
    }

    .stat-card .stat-card-value,
    .stat-card .stat-value {
        font-size: 22px;
    }

    .stat-card .stat-card-label,
    .stat-card .stat-label {
        font-size: 9.5px;
        letter-spacing: 1.3px;
        margin-bottom: 8px;
    }

    /* Mobile: sections become roomier, tighter */
    .admin-section {
        padding: 16px 14px 18px;
        margin-bottom: 18px;
        border-radius: var(--r-md);
    }

    .admin-section-title {
        font-size: 1.1rem;
        padding-left: 12px;
    }

    .admin-section-title::before {
        top: 1px;
        height: 14px;
    }

    .admin-section-subtitle {
        margin-left: 12px;
        font-size: 11.5px;
    }

    .admin-table-wrap,
    .admin-subsection,
    .breakdown-row,
    .admin-fact-list,
    .admin-notice {
        margin-left: 10px;
        margin-right: 10px;
    }

    .daily-chart {
        margin-left: 10px;
        height: 150px;
    }

    .scotty-text {
        max-width: 140px;
    }

    /* Horizontal scroll for tables */
    .admin-table {
        min-width: 500px;
    }

    .admin-subsection {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Breakdown bars */
    .breakdown-row {
        gap: 10px;
    }

    .breakdown-label {
        width: 60px;
        font-size: 11px;
    }

    .breakdown-value {
        width: 80px;
        font-size: 11px;
    }

    .breakdown-bar-track {
        height: 20px;
    }

    /* Side-by-side → stacked on mobile */
    .admin-section-row {
        flex-direction: column;
        gap: 0;
    }

    /* Daily chart */
    .daily-chart {
        height: 140px;
        gap: 4px;
    }

    .daily-chart-value {
        font-size: 10px;
    }

    .daily-chart-label {
        font-size: 9px;
    }

    /* Randomness subtabs */
    .randomness-subtabs {
        width: 100%;
    }

    .randomness-subtab {
        flex: 1;
        text-align: center;
        padding: 11px 12px;
        font-size: 12px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Touch-friendly action buttons */
    .feedback-action-btn,
    .admin-refresh-btn {
        min-height: 40px;
    }

    .admin-refresh-btn {
        padding: 10px 18px;
    }

    /* Cards */
    .admin-card {
        padding: 14px 16px;
    }

    .admin-card h4 {
        font-size: 13px;
    }

    .admin-card p {
        font-size: 12px;
    }

    /* Auth card */
    .admin-auth-card {
        margin: 80px 16px;
        padding: 36px 24px;
    }

    /* Mobile tap feedback */
    .admin-nav-item:active {
        background: rgba(255, 255, 255, 0.06);
        transform: scale(0.96);
    }

    .admin-nav-item.active:active {
        background: rgba(0, 212, 255, 0.12);
    }

    /* Respect reduced motion: skip scale on tap */
    @media (prefers-reduced-motion: reduce) {
        .admin-nav-item:active {
            transform: none;
        }
    }

    /* Stat cards — no hover lift on touch */
    .stat-card:hover {
        transform: none;
        box-shadow: none;
    }

    .stat-card:active {
        background: rgba(255, 255, 255, 0.04);
    }

    /* Scotty expand hint */
    .scotty-text::after {
        content: '...';
        color: var(--text-4);
        font-weight: 700;
        letter-spacing: 1px;
    }

    .scotty-text.expanded::after {
        content: '';
    }

    /* Mobile-specific sidebar rail scroll indicator */
    .admin-sidebar {
        mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent 100%);
        -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent 100%);
    }
}

/* ============================================
   Tablet (769–1024px)
   ============================================ */

@media (min-width: 769px) and (max-width: 1024px) {
    .admin-sidebar {
        width: 170px;
    }

    .admin-content {
        padding: 24px 28px;
    }

    .stat-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   Small Mobile (≤480px)
   ============================================ */

@media (max-width: 480px) {
    .stat-cards {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .stat-card {
        padding: 14px 12px 16px;
    }

    .stat-card .stat-card-value,
    .stat-card .stat-value {
        font-size: 20px;
    }

    .stat-card .stat-card-label,
    .stat-card .stat-label {
        font-size: 9.5px;
        letter-spacing: 1.1px;
    }

    .stat-card-icon {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }

    .admin-content {
        padding: 14px 10px;
    }

    .admin-section {
        padding: 14px 10px 16px;
    }

    .breakdown-label {
        width: 56px;
        font-size: 11px;
    }

    .breakdown-value {
        width: 78px;
        font-size: 11px;
    }

    .admin-tab-header h2 {
        font-size: 1.35rem;
        letter-spacing: 2px;
    }

    .admin-refresh-btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .daily-chart {
        gap: 6px;
    }
}

/* ============================================
   Feedback Tab
   ============================================ */

.feedback-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.feedback-card {
    background:
        linear-gradient(
            180deg,
            var(--surface-2),
            var(--surface-1)
        );
    border: 1px solid var(--border-1);
    border-radius: var(--r-lg);
    padding: 18px 22px;
    transition:
        border-color var(--dur) var(--ease-out),
        transform var(--dur) var(--ease-out),
        box-shadow var(--dur) var(--ease-out);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.feedback-card:hover {
    border-color: var(--border-3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feedback-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 12px;
}

.feedback-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
}

.feedback-card-meta strong {
    color: var(--text-hi);
    font-weight: 600;
}

.feedback-card-time {
    color: var(--text-3);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.feedback-card-rating {
    font-size: 16px;
    letter-spacing: 2px;
    white-space: nowrap;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.25));
}

.feedback-card-body {
    color: var(--text-1);
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 12px;
    white-space: pre-wrap;
    word-break: break-word;
}

.feedback-card-details {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.feedback-detail-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--surface-1);
    border: 1px solid var(--border-1);
    border-radius: var(--r-sm);
    font-size: 12px;
    color: var(--text-2);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.feedback-screenshot-link {
    color: var(--color-primary);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s ease, text-shadow 0.15s ease;
}

.feedback-screenshot-link:hover {
    color: #4de5ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.35);
}

.feedback-card-actions {
    display: flex;
    gap: 8px;
}

.feedback-action-btn {
    padding: 7px 15px;
    border-radius: 9px;
    border: 1px solid transparent;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition:
        color var(--dur-fast) var(--ease-out),
        background var(--dur-fast) var(--ease-out),
        border-color var(--dur-fast) var(--ease-out),
        transform var(--dur-fast) var(--ease-out),
        box-shadow var(--dur-fast) var(--ease-out);
}

.feedback-action-btn:hover {
    transform: translateY(-1px);
}

.feedback-action-btn.reviewed {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.28);
    color: #4ade80;
}

.feedback-action-btn.reviewed:hover {
    background: rgba(34, 197, 94, 0.18);
    box-shadow: 0 4px 14px -6px rgba(34, 197, 94, 0.4);
}

.feedback-action-btn.archived {
    background: var(--surface-1);
    border-color: var(--border-2);
    color: var(--text-3);
}

.feedback-action-btn.archived:hover {
    background: var(--surface-2);
    color: var(--text-2);
}

.feedback-action-btn.new {
    background: var(--color-primary-soft);
    border-color: var(--color-primary-ring);
    color: var(--color-primary);
}

.feedback-action-btn.new:hover {
    background: rgba(0, 212, 255, 0.14);
    box-shadow: 0 4px 14px -6px rgba(0, 212, 255, 0.4);
}

.feedback-action-btn.resolve {
    background: rgba(167, 139, 250, 0.1);
    border-color: rgba(167, 139, 250, 0.28);
    color: var(--color-violet);
}

.feedback-action-btn.resolve:hover {
    background: rgba(167, 139, 250, 0.18);
    box-shadow: 0 4px 14px -6px rgba(167, 139, 250, 0.4);
}

.feedback-action-btn.reopen {
    background: var(--color-primary-soft);
    border-color: var(--color-primary-ring);
    color: var(--color-primary);
}

.feedback-action-btn.reopen:hover {
    background: rgba(0, 212, 255, 0.14);
    box-shadow: 0 4px 14px -6px rgba(0, 212, 255, 0.4);
}

.feedback-action-btn.mark-read {
    background: var(--surface-1);
    border-color: var(--border-2);
    color: var(--text-2);
}

.feedback-action-btn.mark-read:hover {
    background: var(--surface-2);
    color: var(--text-1);
}

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

/* ── Unread Card State ─────────────────── */

.feedback-card.unread {
    border-left: 3px solid var(--color-primary);
    background:
        linear-gradient(
            180deg,
            rgba(0, 212, 255, 0.05),
            rgba(0, 212, 255, 0.012)
        );
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.25),
        inset 1px 0 16px -8px rgba(0, 212, 255, 0.5);
}

.feedback-card.unread .feedback-card-body {
    color: var(--text-hi);
    font-weight: 500;
}

.unread-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.12), 0 0 8px rgba(0, 212, 255, 0.55);
    flex-shrink: 0;
    animation: unreadDotPulse 2.4s ease-in-out infinite;
}

@keyframes unreadDotPulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.12), 0 0 8px rgba(0, 212, 255, 0.55); }
    50% { box-shadow: 0 0 0 5px rgba(0, 212, 255, 0.08), 0 0 14px rgba(0, 212, 255, 0.75); }
}

/* ── Resolved / Archived Dimmed State ──── */

.feedback-card.resolved {
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.feedback-card.resolved:hover {
    opacity: 0.85;
}

/* ── Toolbar (filters + mark all read) ─── */

.feedback-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.feedback-mark-all-btn {
    padding: 6px 16px;
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    background: rgba(0, 212, 255, 0.06);
    color: #00D4FF;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.feedback-mark-all-btn:hover {
    background: rgba(0, 212, 255, 0.12);
}

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

/* ── Sidebar Notification Badge ────────── */

.admin-nav-item {
    position: relative;
}

.sidebar-badge {
    position: absolute;
    top: 6px;
    right: 12px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #E53935;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(229, 57, 53, 0.4);
    animation: badgePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes badgePop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

/* ── Submission Avatar ─────────────────── */

.sub-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

/* ── Featured 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;
    border-radius: 10px;
    background: var(--surface-3);
    border: 1px solid var(--border-2);
    transition: background 0.2s, border-color 0.2s;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    left: 3px;
    bottom: 3px;
    border-radius: 50%;
    background: var(--text-2);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s var(--ease-out-expo), background 0.2s;
}
.toggle-switch input:checked + .toggle-slider {
    background: rgba(0, 212, 255, 0.25);
    border-color: var(--color-primary-ring);
}
.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(16px);
    background: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary-glow);
}
.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Reorder Buttons ─────────────────────── */
.reorder-cell {
    display: flex;
    gap: 2px;
    align-items: center;
}
.reorder-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #9aa0b0;
    cursor: pointer;
    font-size: 0.65rem;
    padding: 2px 5px;
    line-height: 1;
    transition: color 0.15s, border-color 0.15s;
}
.reorder-btn:hover {
    color: #00D4FF;
    border-color: rgba(0, 212, 255, 0.4);
}
.reorder-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.reorder-spacer {
    display: inline-block;
    width: 23px;
}
