/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:            #0a0a0a;
    --bg-elevated:   #111111;
    --bg-card:       rgba(255,255,255,0.03);
    --bg-card-hover: rgba(255,255,255,0.048);
    --bg-input:      rgba(255,255,255,0.045);

    --border:        1px solid rgba(255,255,255,0.06);
    --border-hover:  1px solid rgba(255,255,255,0.12);
    --border-focus:  1px solid rgba(220,38,58,0.55);

    --accent:        #dc2626;
    --accent-dim:    rgba(220,38,58,0.08);
    --accent-glow:   rgba(220,38,58,0.2);
    --accent-red:    #b91c1c;
    --accent-green:  #16a34a;
    --accent-muted:  #737373;
    --accent-gold:   #d97706;

    --text:          rgba(255,255,255,0.88);
    --text-muted:    rgba(255,255,255,0.32);
    --text-dim:      rgba(255,255,255,0.55);

    --radius:        7px;
    --radius-lg:     11px;
    --radius-xl:     16px;
    --transition:    0.12s ease;

    --sidebar-w:     54px;
    --sidebar-expanded: 210px;
    --topbar-h:      52px;
}

html, body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Dot grid subtil */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.022) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}

/* Glows ambient */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 55% 50% at 4%  5%,  rgba(220,38,58,0.13) 0%, transparent 62%),
        radial-gradient(ellipse 38% 35% at 96% 4%,  rgba(185,28,28,0.08) 0%, transparent 58%),
        radial-gradient(ellipse 28% 45% at 2%  52%, rgba(220,38,58,0.06) 0%, transparent 65%),
        radial-gradient(ellipse 52% 48% at 96% 97%, rgba(180,20,30,0.10) 0%, transparent 60%),
        radial-gradient(ellipse 32% 30% at 50% 100%,rgba(160,15,25,0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

#app { position: relative; z-index: 1; }

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: 0.75; }

/* ── Scrollbar ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 99px; transition: background 0.2s; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.32); }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.app-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
}
/* Glow roșu în spatele sidebar-ului */
.app-layout::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: radial-gradient(ellipse 120% 60% at 10% 30%, rgba(220,38,58,0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
/* Glow subtil în dreapta-jos a conținutului */
.app-layout::after {
    content: '';
    position: fixed;
    bottom: 0;
    right: 0;
    width: 50vw;
    height: 50vh;
    background: radial-gradient(ellipse 80% 80% at 90% 90%, rgba(185,28,28,0.06) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-w);
    min-height: 100vh;
    background: var(--bg-elevated);
    border-right: var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    z-index: 100;
    overflow: hidden;
    transition: width 0.22s cubic-bezier(0.4,0,0.2,1);
}

/* Hover sidebar doar pe dispozitive cu mouse real */
@media (hover: hover) and (pointer: fine) {
    .sidebar:hover { width: var(--sidebar-expanded); }
}

/* Logo */
.sidebar-logo {
    padding: 11px 13px;
    border-bottom: var(--border);
    flex-shrink: 0;
}

.sidebar-logo .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    width: var(--sidebar-expanded);
}

.brand-text {
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
    .sidebar:hover .brand-text { opacity: 1; transform: translateX(0); }
}

.brand-text strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.brand-text span {
    font-size: 9px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Nav */
.sidebar-nav {
    flex: 1;
    padding: 6px 8px;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-section { margin-bottom: 0; }

.nav-label {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    padding: 0 8px;
    transition: max-height 0.2s ease, opacity 0.18s ease, padding 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .sidebar:hover .nav-label {
        max-height: 28px;
        opacity: 0.4;
        padding: 10px 8px 3px;
    }
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 3px 5px;
    border-radius: var(--radius);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 12.5px;
    cursor: pointer;
    transition: all var(--transition);
    margin-bottom: 1px;
    white-space: nowrap;
    width: 100%;
}

.nav-item .nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    transition: all var(--transition);
    color: rgba(255,255,255,0.35);
}

.nav-item .nav-label-text {
    opacity: 0;
    transform: translateX(-5px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    letter-spacing: -0.01em;
}

@media (hover: hover) and (pointer: fine) {
    .sidebar:hover .nav-item .nav-label-text { opacity: 1; transform: translateX(0); }
}

.nav-item:hover .nav-icon {
    color: var(--text);
    background: rgba(255,255,255,0.055);
}

.nav-item.active .nav-icon {
    color: #f87171;
    background: rgba(220,38,58,0.14);
}

.nav-item.active .nav-label-text { color: #fca5a5; }

/* Footer */
.sidebar-footer {
    padding: 6px 8px;
    border-top: var(--border);
    flex-shrink: 0;
}

/* ── Main content ────────────────────────────────────────────────────────── */
.main-content {
    margin-left: var(--sidebar-w);
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.22s cubic-bezier(0.4,0,0.2,1);
}

/* ── Topbar ──────────────────────────────────────────────────────────────── */
.topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.topbar-label-desktop { display: inline; }

.topbar {
    height: var(--topbar-h);
    border-bottom: var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: rgba(10,10,10,0.85);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.topbar-title {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 0.01em;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-announcement {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 7px;
    border: 1px solid;
    background: rgba(255,255,255,0.03);
    font-size: 11.5px;
    font-weight: 500;
    max-width: 420px;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-dim);
    background: rgba(255,255,255,0.035);
    border: var(--border);
    border-radius: var(--radius);
    padding: 5px 11px;
    transition: border var(--transition);
}

.topbar-user:hover { border: var(--border-hover); }
.topbar-user i { color: var(--accent); font-size: 10px; }

.page { padding: 28px 32px; flex: 1; }

/* ── Server Selector ─────────────────────────────────────────────────────── */
.selector-wrap {
    position: fixed;
    inset: 0;
    display: flex;
    overflow: hidden;
    animation: selectorDrop 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes selectorDrop {
    from { transform: translateY(-100vh); opacity: 0; }
    to   { transform: translateY(0);      opacity: 1; }
}

.selector-half {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: background 0.35s ease;
}

.selector-half:hover { flex: 1; }

/* Divider line */
.selector-half:first-child {
    border-right: 1px solid rgba(255,255,255,0.06);
}

/* FiveM side */
.selector-half.fivem {
    background: #06060e;
    transition: background 0.5s ease;
}
.selector-half.fivem::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(220,38,58,0.22) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: none;
}
.selector-half.fivem:hover {
    background: #0d0608;
}
.selector-half.fivem:hover::before {
    opacity: 1;
    animation: pulseRed 2.2s ease-in-out infinite;
}

@keyframes pulseRed {
    0%, 100% { opacity: 0.6; }
    50%       { opacity: 1;   }
}

/* CS2 side */
.selector-half.cs2 {
    background: #060606;
    cursor: default;
    transition: background 0.5s ease;
}
.selector-half.cs2::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.04) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: none;
}
.selector-half.cs2:hover {
    background: #080808;
}
.selector-half.cs2:hover::before {
    opacity: 1;
}

@keyframes pulseBlue {
    0%, 100% { opacity: 0.6; }
    50%       { opacity: 1;   }
}

/* Dot grid on each side */
.selector-half::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 26px 26px;
    pointer-events: none;
}

.selector-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    user-select: none;
}

.selector-game-wordmark {
    font-size: 90px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 20px;
    transition: text-shadow 0.35s ease;
    user-select: none;
}

.fivem-wordmark {
    color: #fff;
    text-shadow: 0 0 40px rgba(220,38,58,0.3);
}
.selector-half.fivem:hover .fivem-wordmark {
    text-shadow:
        0 0 20px rgba(220,38,58,0.9),
        0 0 60px rgba(220,38,58,0.5),
        0 0 120px rgba(220,38,58,0.25);
}

.cs2-wordmark {
    color: #fff;
    text-shadow: 0 0 40px rgba(240,140,30,0.2);
}
.selector-half.cs2:hover .cs2-wordmark {
    text-shadow:
        0 0 20px rgba(240,140,30,0.8),
        0 0 60px rgba(240,140,30,0.4),
        0 0 120px rgba(240,140,30,0.2);
}

.selector-server-name {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.selector-title {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--text);
    margin-bottom: 10px;
}

.selector-sub {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 280px;
    margin-bottom: 28px;
}

.selector-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 24px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: all 0.18s ease;
    border: none;
    cursor: pointer;
}

.selector-cta.fivem-cta {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 20px rgba(220,38,58,0.35);
}
.selector-cta.fivem-cta:hover { background: #ef4444; box-shadow: 0 4px 28px rgba(220,38,58,0.5); }

.selector-cta.cs2-cta {
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.08);
    cursor: not-allowed;
}

.selector-coming-soon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(240,140,30,0.1);
    border: 1px solid rgba(240,140,30,0.2);
    border-radius: 99px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #f59e0b;
    margin-bottom: 16px;
}

/* Hover reveal arrow on FiveM side */
.selector-arrow {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    opacity: 0;
    font-size: 20px;
    color: rgba(220,38,58,0.6);
    transition: all 0.3s ease;
}
.selector-half.fivem:hover .selector-arrow {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Split line center badge */
.selector-center-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Spinning outer ring */
.selector-center-ring {
    position: absolute;
    border-radius: 50%;
}
/* Inel 1 — rotire lenta cu glow rosu */
.selector-center-ring:nth-child(1) {
    width: 480px; height: 480px;
    border: 1.5px solid rgba(220,38,58,0.35);
    box-shadow: 0 0 18px rgba(220,38,58,0.2), inset 0 0 18px rgba(220,38,58,0.05);
    animation: spinCW 18s linear infinite;
}
/* Inel 2 — rotire inversa, mai subtil */
.selector-center-ring:nth-child(2) {
    width: 570px; height: 570px;
    border: 1px dashed rgba(220,38,58,0.18);
    animation: spinCCW 28s linear infinite;
}
/* Inel 3 — pulsare simpla, fara rotire */
.selector-center-ring:nth-child(3) {
    width: 660px; height: 660px;
    border: 1px solid rgba(255,255,255,0.04);
    animation: ringFade 4s ease-in-out infinite;
}

@keyframes spinCW  { from { transform: rotate(0deg); }   to { transform: rotate(360deg); } }
@keyframes spinCCW { from { transform: rotate(0deg); }   to { transform: rotate(-360deg); } }
@keyframes ringFade {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.02); }
}

/* Solid disc behind the logo */
.selector-center-logo {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(ellipse at 50% 50%, #161624, #0a0a12);
    border: 2px solid rgba(220,38,58,0.5);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.04),
        0 0 40px rgba(220,38,58,0.25),
        0 0 80px rgba(220,38,58,0.1),
        inset 0 0 40px rgba(220,38,58,0.05);
    animation: discSpin 12s linear infinite, discPulse 3s ease-in-out infinite;
}

@keyframes discSpin {
    from { box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 0 40px rgba(220,38,58,0.25), 0 0 80px rgba(220,38,58,0.1), inset 0 0 40px rgba(220,38,58,0.05); border-color: rgba(220,38,58,0.5); }
    to   { box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 0 40px rgba(220,38,58,0.25), 0 0 80px rgba(220,38,58,0.1), inset 0 0 40px rgba(220,38,58,0.05); border-color: rgba(220,38,58,0.5); }
}

@keyframes discPulse {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(255,255,255,0.04),
            0 0 30px rgba(220,38,58,0.2),
            0 0 70px rgba(220,38,58,0.08),
            inset 0 0 30px rgba(220,38,58,0.04);
        border-color: rgba(220,38,58,0.4);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(255,255,255,0.06),
            0 0 60px rgba(220,38,58,0.45),
            0 0 120px rgba(220,38,58,0.2),
            inset 0 0 60px rgba(220,38,58,0.1);
        border-color: rgba(220,38,58,0.8);
    }
}

.selector-center-logo img {
    width: 500px;
    height: auto;
    display: block;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 0 40px rgba(255,255,255,0.3));
}

/* Scanline effect on hover */
.selector-scanline {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.04) 2px,
        rgba(0,0,0,0.04) 4px
    );
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.selector-half:hover .selector-scanline { opacity: 1; }

@media (max-width: 768px) {
    .selector-wrap { flex-direction: column; }
    .selector-half:first-child { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
    .selector-half:hover { flex: 1; }
    .selector-title { font-size: 28px; }
    .selector-center-badge { display: none; }
}

/* ── Landing / Auth ───────────────────────────────────────────────────────── */
.landing-wrap {
    min-height: 100vh;
    background: var(--bg);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Glows decorative landing */
.landing-wrap::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -10%;
    width: 70%;
    height: 70%;
    background: radial-gradient(ellipse, rgba(220,38,58,0.13) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.landing-wrap::after {
    content: '';
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(180,20,30,0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ── Landing Nav ──────────────────────────────────────────────────────────── */
.landing-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 48px;
    border-bottom: var(--border);
    background: rgba(10,10,10,0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.landing-nav-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.landing-nav-brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.landing-nav-brand strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.03em;
}
.landing-nav-brand span {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.landing-nav-status {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 600;
    color: #4ade80;
    background: rgba(22,163,74,0.08);
    border: 1px solid rgba(22,163,74,0.18);
    border-radius: 99px;
    padding: 4px 12px;
}

.status-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
    animation: pulse-dot 2s infinite;
    flex-shrink: 0;
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Landing Hero ─────────────────────────────────────────────────────────── */
.landing-hero {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 56px;
    align-items: center;
    padding: 72px 48px 64px;
    flex: 1;
    min-height: calc(100vh - 60px);
    overflow: hidden;
}

/* ── Hero video background ─────────────────────────────────────────────────── */
.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.hero-video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    border: none;
    opacity: 0.4;
}
.hero-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* strong fade on left so text rămâne lizibil; mai transparent dreapta */
    background: linear-gradient(
        105deg,
        rgba(10,10,10,0.92) 0%,
        rgba(10,10,10,0.78) 45%,
        rgba(10,10,10,0.65) 100%
    );
}

/* Hero content above video */
.landing-hero-left,
.landing-auth-card {
    position: relative;
    z-index: 2;
}

.landing-hero-left { max-width: 600px; }

.landing-badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.landing-online-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    background: rgba(22,163,74,0.08);
    border: 1px solid rgba(22,163,74,0.2);
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    color: #4ade80;
    letter-spacing: 0.03em;
}
.landing-online-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
    animation: pulse-dot 2s infinite;
    flex-shrink: 0;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.35; }
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0   rgba(34,197,94,0.45); }
    70%  { box-shadow: 0 0 0 6px rgba(34,197,94,0);    }
    100% { box-shadow: 0 0 0 0   rgba(34,197,94,0);    }
}

/* ── Page transitions ─────────────────────────────────────────────────────── */
.page-enter-active { transition: opacity 0.18s ease, transform 0.18s ease; }
.page-leave-active { transition: opacity 0.10s ease, transform 0.10s ease; }
.page-enter-from   { opacity: 0; transform: translateY(7px); }
.page-leave-to     { opacity: 0; transform: translateY(-3px); }

/* ── Skeleton shimmer ─────────────────────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg,
        rgba(255,255,255,0.038) 25%,
        rgba(255,255,255,0.075) 50%,
        rgba(255,255,255,0.038) 75%);
    background-size: 400% 100%;
    animation: skeleton-shimmer 1.6s ease infinite;
    border-radius: var(--radius);
    pointer-events: none;
    user-select: none;
}
@keyframes skeleton-shimmer {
    0%   { background-position: 100% 50%; }
    100% { background-position: 0%   50%; }
}
.sk-line  { height: 12px; margin-bottom: 8px; }
.sk-title { height: 18px; width: 55%; margin-bottom: 12px; }
.sk-box   { border-radius: var(--radius-lg); }
.sk-circle { border-radius: 50%; }

/* ── Modal entrance ───────────────────────────────────────────────────────── */
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to   { opacity: 1; transform: scale(1)    translateY(0);    }
}
.modal { animation: modalIn 0.22s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* ── Toast progress drain ─────────────────────────────────────────────────── */
@keyframes toast-drain {
    from { width: 100%; }
    to   { width: 0%;   }
}
.toast-progress {
    position: absolute;
    bottom: 0; left: 0;
    height: 2px;
    border-radius: 0 0 11px 11px;
    animation: toast-drain 5s linear forwards;
}

/* ── Nav item tooltip (sidebar collapsed) ─────────────────────────────────── */
.nav-item { position: relative; }
.nav-item[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10,10,22,0.98);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.88);
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    padding: 5px 11px;
    border-radius: 7px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.12s ease;
    z-index: 300;
    box-shadow: 0 4px 18px rgba(0,0,0,0.55);
    letter-spacing: -0.01em;
}
@media (hover: hover) and (pointer: fine) {
    .sidebar:not(:hover) .nav-item[data-tip]:hover::after { opacity: 1; }
}

/* ── Unread dot on nav icon ───────────────────────────────────────────────── */
.nav-icon { position: relative; }
.nav-dot {
    position: absolute;
    top: 3px; right: 3px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px rgba(220,38,58,0.7);
    animation: pulse-dot 2s infinite;
}

.landing-title {
    font-size: 58px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.04em;
    line-height: 1.07;
    margin-bottom: 22px;
}
.landing-title .t-accent { color: var(--accent); }
.landing-title .t-dim    { color: var(--text-dim); }

.landing-sub {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 28px;
    max-width: 480px;
}

/* Bullet list */
.landing-bullets {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 36px;
}
.landing-bullet {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-dim);
}
.landing-bullet i {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(22,163,74,0.12);
    border: 1px solid rgba(22,163,74,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: #4ade80;
    flex-shrink: 0;
}

.landing-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
}

.btn-lg {
    height: 44px;
    padding: 0 24px;
    font-size: 13.5px;
    border-radius: 9px;
}

.landing-server-info {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: var(--border);
}
.landing-server-info span {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    color: var(--text-muted);
    font-family: monospace;
}
.landing-server-info i { color: var(--text-dim); font-size: 10px; }

/* ── Auth Card (landing version) ──────────────────────────────────────────── */
.landing-auth-card {
    background: rgba(10,10,10,0.97);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.02),
                0 32px 80px rgba(0,0,0,0.65),
                0 0 60px rgba(220,38,58,0.05);
    position: relative;
    flex-shrink: 0;
}
.landing-auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 20%; right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(220,38,58,0.55), transparent);
}

.landing-auth-logo { text-align: center; margin-bottom: 22px; }
.landing-auth-logo h2 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.03em;
}
.landing-auth-logo p { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

/* ── Stats Strip ──────────────────────────────────────────────────────────── */
.landing-stats-strip {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 28px 48px;
    border-top: var(--border);
    border-bottom: var(--border);
    background: rgba(255,255,255,0.012);
}

.stat-strip-item {
    flex: 1;
    text-align: center;
    padding: 8px 20px;
}

.stat-strip-n {
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.04em;
    line-height: 1;
}

.stat-strip-l {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}

.stat-strip-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.06);
    flex-shrink: 0;
}

/* ── Landing sections ─────────────────────────────────────────────────────── */
.landing-section {
    position: relative;
    z-index: 1;
    padding: 72px 48px;
}

.landing-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.landing-section-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.04em;
    margin-bottom: 8px;
}

.landing-section-header p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ── Features ─────────────────────────────────────────────────────────────── */
.landing-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-card {
    background: rgba(255,255,255,0.025);
    border: var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 22px;
    transition: all 0.18s ease;
    cursor: default;
}
.feature-card:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}
.feature-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(220,38,58,0.08);
    border: 1px solid rgba(220,38,58,0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #f87171;
    margin-bottom: 16px;
}
.feature-card-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 7px;
    letter-spacing: -0.02em;
}
.feature-card-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ── How to join steps ────────────────────────────────────────────────────── */
.landing-steps-section {
    border-top: var(--border);
    background: rgba(255,255,255,0.01);
}

.landing-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.landing-step {
    flex: 1;
    max-width: 280px;
    text-align: center;
    padding: 0 24px;
}

.step-num {
    font-size: 11px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    font-family: monospace;
}

.step-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(220,38,58,0.08);
    border: 1px solid rgba(220,38,58,0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #f87171;
    margin: 0 auto 16px;
}

.step-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.step-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.65;
}

.step-desc code {
    background: rgba(255,255,255,0.08);
    padding: 1px 6px;
    border-radius: 4px;
    color: var(--text-dim);
    font-size: 11px;
}

.step-arrow {
    padding-top: 72px;
    color: rgba(255,255,255,0.12);
    font-size: 14px;
    flex-shrink: 0;
}

/* ── Discord CTA ──────────────────────────────────────────────────────────── */
.landing-discord-cta {
    position: relative;
    z-index: 1;
    padding: 28px 48px;
    border-top: var(--border);
}

.discord-cta-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-xl);
    padding: 24px 28px;
}

.btn-discord {
    height: 40px;
    padding: 0 20px;
    background: #5865f2;
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    transition: filter 0.15s;
}
.btn-discord:hover { filter: brightness(1.12); opacity: 1; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.landing-footer {
    border-top: var(--border);
    padding: 20px 48px;
    position: relative;
    z-index: 1;
}

.landing-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing-footer a { color: var(--text-muted); }
.landing-footer a:hover { color: var(--text-dim); opacity: 1; }

/* ── Announcement Bar ─────────────────────────────────────────────────────── */
.announcement-bar {
    padding: 9px 24px;
    font-size: 12.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: var(--border);
    line-height: 1.4;
}
.announcement-bar.type-info    { background: rgba(115,115,115,0.08); color: #d1d5db; border-color: rgba(115,115,115,0.2); }
.announcement-bar.type-warning { background: rgba(217,119,6,0.08);  color: #fcd34d; border-color: rgba(217,119,6,0.2); }
.announcement-bar.type-danger  { background: rgba(220,38,58,0.08);  color: #fca5a5; border-color: rgba(220,38,58,0.2); }
.announcement-bar.type-success { background: rgba(22,163,74,0.08);  color: #86efac; border-color: rgba(22,163,74,0.2); }

/* ── Auth Wrap (simple, for /link-account) ─────────────────────────────────── */
.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.auth-wrap::before {
    content: '';
    position: absolute;
    top: -25%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(220,38,58,0.055) 0%, transparent 65%);
    pointer-events: none;
}

.auth-card {
    width: 390px;
    background: rgba(12,12,12,0.97);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-xl);
    padding: 36px 30px;
    backdrop-filter: blur(32px);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.025),
                0 24px 60px rgba(0,0,0,0.7),
                0 0 60px rgba(220,38,58,0.03);
    position: relative;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 25%; right: 25%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(220,38,58,0.45), transparent);
}

.auth-logo { text-align: center; margin-bottom: 28px; }

.auth-logo .logo-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(220,38,58,0.12), rgba(220,38,58,0.03));
    border: 1px solid rgba(220,38,58,0.18);
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 22px;
    color: #f87171;
    box-shadow: 0 0 20px rgba(220,38,58,0.12);
}

.auth-logo h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.03em;
}

.auth-logo p { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ── Notifications ───────────────────────────────────────────────────────── */
.notif-bell {
    position: relative;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 13px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    border: var(--border);
    background: rgba(255,255,255,0.025);
    transition: all var(--transition);
}

.notif-bell:hover { color: var(--text-dim); border: var(--border-hover); background: rgba(255,255,255,0.045); }

.notif-badge {
    position: absolute;
    top: -4px; right: -4px;
    background: var(--accent);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    border-radius: 99px;
    min-width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

.notif-dropdown {
    position: absolute;
    top: 44px; right: 0;
    width: 300px;
    background: #0f0f1c;
    border: var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    z-index: 200;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.035);
}

.notif-header {
    padding: 10px 14px;
    border-bottom: var(--border);
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.notif-item {
    padding: 10px 14px;
    border-bottom: var(--border);
    font-size: 12px;
    color: var(--text);
    line-height: 1.5;
}

.notif-item:last-child { border-bottom: none; }
.notif-empty { padding: 24px; text-align: center; color: var(--text-muted); font-size: 12px; }

/* ── Page header ─────────────────────────────────────────────────────────── */
.page-header { margin-bottom: 24px; }

.page-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.035em;
}

.page-header p { color: var(--text-muted); font-size: 12.5px; margin-top: 3px; }

/* ── Divider ─────────────────────────────────────────────────────────────── */
.divider { height: 1px; background: rgba(255,255,255,0.045); margin: 16px 0; }

/* ── Empty state ─────────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 56px 20px; color: var(--text-muted); }
.empty-state i { display: block; font-size: 32px; margin-bottom: 12px; opacity: 0.12; }
.empty-state p { font-size: 12.5px; opacity: 0.65; }

/* ── Messages ────────────────────────────────────────────────────────────── */
.msg {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    border-radius: var(--radius);
    font-size: 12.5px;
    margin-bottom: 14px;
}

.msg-error   { background: rgba(220,38,58,0.07);  border: 1px solid rgba(220,38,58,0.15);  color: #fca5a5; }
.msg-success { background: rgba(22,163,74,0.07);  border: 1px solid rgba(22,163,74,0.15);  color: #86efac; }

/* ── Overlay mobil ───────────────────────────────────────────────────────── */
.sidebar-overlay {
    display: none;
}
@media (max-width: 768px) {
    .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.55);
        z-index: 99;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
.hamburger-btn { display: none !important; }

@media (max-width: 768px) {
    .hamburger-btn { display: inline-flex !important; }

    /* Sidebar mobil — complet expandat, slide din stanga */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
        width: var(--sidebar-expanded) !important;
        z-index: 200;
    }
    .sidebar.open { transform: translateX(0); }

    .sidebar.open .brand-text {
        opacity: 1 !important;
        transform: translateX(0) !important;
    }
    .sidebar.open .nav-label {
        max-height: 28px !important;
        opacity: 0.4 !important;
        padding: 10px 8px 3px !important;
    }
    .sidebar.open .nav-item .nav-label-text {
        opacity: 1 !important;
        transform: translateX(0) !important;
    }

    .sidebar:hover { width: var(--sidebar-expanded) !important; }
    .main-content { margin-left: 0; overflow-x: hidden; }
    .page { padding: 14px 12px; }

    .topbar { padding: 0 10px; }
    .topbar-hide-mobile { display: none !important; }
    .topbar-label-desktop { display: none; }
    .topbar-announcement { display: none; }

    /* Landing */
    .landing-nav { padding: 12px 16px; }
    .landing-nav-status { display: none; }
    .landing-hero { grid-template-columns: 1fr; padding: 32px 16px; gap: 28px; min-height: auto; }
    .landing-title { font-size: 34px; }
    .landing-features { grid-template-columns: 1fr 1fr; }
    .landing-section { padding: 40px 16px; }
    .landing-steps { flex-direction: column; align-items: center; gap: 28px; }
    .step-arrow { display: none; }
    .landing-step { max-width: 100%; padding: 0; }
    .landing-stats-strip { padding: 18px; gap: 0; }
    .stat-strip-n { font-size: 24px; }
    .landing-discord-cta { padding: 18px; }
    .discord-cta-inner { flex-wrap: wrap; gap: 12px; }
    .landing-footer { padding: 14px 16px; }
    .landing-footer-inner { flex-direction: column; gap: 10px; text-align: center; }
    .landing-buttons { flex-wrap: wrap; }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE — telefon (max 480px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {

    /* ── Fundatie ── */
    html, body { font-size: 13px; }
    .main-content { margin-left: 0; width: 100%; overflow-x: hidden; }
    .page { padding: 12px 10px; }

    /* ── Topbar ── */
    .topbar { padding: 0 8px; gap: 4px; }
    .topbar-title { font-size: 11.5px; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .topbar-actions { gap: 4px; }
    .topbar-announcement { display: none; }
    .topbar-hide-mobile { display: none !important; }
    .topbar-label-desktop { display: none; }

    /* ── Landing page ── */
    .landing-nav { padding: 10px 12px; }
    .landing-nav-brand strong { font-size: 13px; }
    .landing-nav-brand span   { display: none; }
    .nav-link-hide { display: none; }

    .landing-hero { padding: 20px 12px 16px; gap: 20px; }
    .landing-title { font-size: 26px; }
    .landing-sub   { font-size: 12.5px; margin-bottom: 16px; }
    .landing-bullets { margin-bottom: 20px; gap: 7px; }
    .landing-bullet  { font-size: 11.5px; }

    .landing-buttons { flex-direction: column; }
    .btn-lg { height: 42px; width: 100%; justify-content: center; }

    .landing-server-info { gap: 8px; flex-wrap: wrap; }
    .landing-auth-card { padding: 18px 12px; }

    .landing-section { padding: 32px 12px; }
    .landing-section-header h2 { font-size: 22px; }
    .landing-features { grid-template-columns: 1fr; gap: 8px; }
    .feature-card { padding: 14px 12px; }
    .feature-card-desc { display: none; }

    .landing-stats-strip { flex-wrap: wrap; padding: 14px 12px; gap: 14px; }
    .stat-strip-divider  { display: none; }
    .stat-strip-item     { min-width: calc(50% - 7px); }
    .stat-strip-n        { font-size: 24px; }

    .discord-cta-inner { padding: 16px 12px; }
    .btn-discord { width: 100%; justify-content: center; }
    .landing-footer { padding: 12px; }

    /* ── Selector ── */
    .selector-wrap { flex-direction: column; }
    .selector-half:first-child { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
    .selector-game-wordmark { font-size: 52px; }
    .selector-sub { font-size: 12px; max-width: 240px; }
    .selector-center-badge { display: none; }
    .selector-coming-soon { margin-bottom: 10px; }

    /* ── Page header ── */
    .page-header { margin-bottom: 14px; }
    .page-header h2 { font-size: 15px; }
    .page-header p  { font-size: 11px; }

    /* ── Tab bar ── */
    .tab-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0 -10px;
        padding-left: 10px;
        padding-right: 10px;
    }
    .tab-bar::-webkit-scrollbar { display: none; }
    .tab { white-space: nowrap; flex-shrink: 0; font-size: 11.5px; padding: 5px 11px; }

    /* ── Stats grid ── */
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
    .stat-box { padding: 12px 10px; }
    .stat-value { font-size: 19px; }
    .stat-label { font-size: 10px; }

    /* ── Cards ── */
    .card { padding: 12px; }
    .card-header { flex-wrap: wrap; gap: 8px; }
    .card-header h3 { font-size: 13px; }

    /* ── Tables ── */
    .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -10px;
        padding: 0 10px;
        width: calc(100% + 20px);
    }
    table { min-width: 420px; font-size: 12px; }
    th, td { padding: 8px 10px !important; }

    /* ── Butoane in tabele — mai compacte ── */
    td .btn-sm { height: 24px; padding: 0 7px; font-size: 10.5px; }

    /* ── Inputs / Forms ── */
    .input { height: 36px; font-size: 12.5px; }
    .input-group { flex-direction: column; }

    /* ── Modals ── */
    .modal-backdrop .modal,
    div[style*="position:fixed"][style*="z-index"] > div {
        width: 96vw !important;
        max-width: 96vw !important;
        max-height: 88vh !important;
        overflow-y: auto !important;
        margin: 0 auto;
    }

    /* ── Forum ── */
    .forum-cat-count { display: none; }
    .forum-cat { padding: 11px 12px; gap: 9px; }
    .forum-cat-icon { width: 30px; height: 30px; font-size: 12px; }

    /* ── Grid-uri din inline styles ── */
    [style*="grid-template-columns:1fr 1fr"]:not(.stats-grid) { grid-template-columns: 1fr !important; }
    [style*="grid-template-columns: 1fr 1fr"]:not(.stats-grid) { grid-template-columns: 1fr !important; }
    [style*="grid-template-columns:1fr 380px"] { grid-template-columns: 1fr !important; }
    [style*="grid-template-columns:1fr 360px"] { grid-template-columns: 1fr !important; }
    [style*="grid-template-columns:1fr 1fr 1fr"] { grid-template-columns: 1fr 1fr !important; }
    [style*="grid-template-columns:repeat(auto-fill"] { grid-template-columns: 1fr 1fr !important; }
    [style*="grid-template-columns: repeat(auto-fill"] { grid-template-columns: 1fr 1fr !important; }

    /* ── Chat ── */
    .chat-wrap { height: calc(100vh - var(--topbar-h) - 120px); }

    /* ── Leaderboard ── */
    .leaderboard-value { font-size: 12px; }
    .leaderboard-sub .badge { display: none; }

    /* ── Auth card (/link-account) ── */
    .auth-card { width: 96vw; padding: 24px 14px; }

    /* ── Notif dropdown ── */
    .notif-dropdown { width: 94vw; right: -4px; }

    /* ── Badges ── */
    .badge { font-size: 9.5px; padding: 1px 5px; }

    /* ── Breadcrumb / header actions ── */
    .page-header { flex-wrap: wrap; }
    .page-header > div:last-child { flex-wrap: wrap; gap: 6px; }
}
