@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;600;700;800&family=Rajdhani:wght@400;500;600;700&display=swap');


/* ==========================================================================
   OGameXL - Outgame Auth (Login / Register / Password Reset / Universe Select)
   Independent Vite entry — does NOT touch resources/css/outgame.css (legacy
   ingame/outgame skin). Scoped purely to the new auth flow pages.
   ========================================================================== */

:root {
    --void: #05060c;
    --panel: rgba(18, 22, 38, 0.62);
    --panel-solid: #10131f;
    --panel-border: rgba(255, 255, 255, 0.08);
    --panel-border-strong: rgba(255, 255, 255, 0.14);

    --gold: #e8c874;
    --gold-bright: #ffe9b0;
    --gold-dim: #a9863f;
    --violet: #8b6cf1;

    --text: #eef0f6;
    --text-dim: #9aa0b4;
    --text-faint: #666c85;

    --success: #4ade80;
    --danger: #f87171;

    --glow-gold: 0 0 24px rgba(232, 200, 116, 0.35);

    --radius: 14px;
    --radius-sm: 8px;
    --font-display: 'Orbitron', 'Rajdhani', sans-serif;
    --font-body: 'Rajdhani', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body.auth-body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    background: var(--void);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.auth-body a { color: inherit; text-decoration: none; }
.auth-body ul { list-style: none; margin: 0; padding: 0; }
.auth-body button { font-family: inherit; }

.auth-body h1, .auth-body h2 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.02em;
    margin: 0;
}

.auth-body p { margin: 0; color: var(--text-dim); line-height: 1.6; }

/* ---------- Space background ---------- */

.space-bg { position: fixed; inset: 0; z-index: -3; background: var(--void); overflow: hidden; }

.space-bg::before, .space-bg::after {
    content: "";
    position: absolute;
    inset: -10%;
    background-repeat: repeat;
    opacity: 0.65;
}
.space-bg::before {
    background-image:
        radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent),
        radial-gradient(1px 1px at 60% 70%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 80% 20%, #fff, transparent),
        radial-gradient(1px 1px at 33% 88%, #fff, transparent),
        radial-gradient(1px 1px at 90% 60%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 15% 65%, #fff, transparent),
        radial-gradient(1px 1px at 47% 12%, #fff, transparent);
    background-size: 420px 420px;
    animation: driftStars 140s linear infinite;
}
.space-bg::after {
    background-image:
        radial-gradient(1px 1px at 10% 10%, #fff, transparent),
        radial-gradient(1px 1px at 50% 50%, #fff, transparent),
        radial-gradient(1px 1px at 75% 85%, #fff, transparent),
        radial-gradient(1px 1px at 25% 75%, #fff, transparent),
        radial-gradient(1px 1px at 90% 15%, #fff, transparent);
    background-size: 300px 300px;
    opacity: 0.35;
    animation: driftStars 220s linear infinite reverse;
}
@keyframes driftStars {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-420px, -420px, 0); }
}
.space-bg .nebula-photo { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.4; mix-blend-mode: screen; }
.space-bg .void-vignette {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 50% 20%, transparent 0%, var(--void) 78%),
        linear-gradient(180deg, rgba(5,6,12,0.2) 0%, var(--void) 100%);
}

/* ---------- Glass ---------- */

.glass {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

/* ---------- Brand ---------- */

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 52px; width: auto; display: block; }
.brand-mark { font-family: var(--font-display); font-size: 20px; font-weight: 800; letter-spacing: 0.04em; }
.brand-mark .xl { color: var(--gold); text-shadow: var(--glow-gold); }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 26px; border-radius: var(--radius-sm);
    font-family: var(--font-display); font-size: 13px; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase;
    border: 1px solid transparent; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease, background .15s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--gold-dim));
    color: #201404; box-shadow: var(--glow-gold);
}
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 0 32px rgba(232,200,116,0.5); }
.btn-ghost { background: rgba(255,255,255,0.04); border-color: var(--panel-border-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--violet); }
.btn-danger { background: rgba(248, 113, 113, 0.12); border-color: rgba(248, 113, 113, 0.4); color: #ffb4b4; }
.btn-danger:hover { background: rgba(248, 113, 113, 0.2); }
.btn-sm { padding: 9px 16px; font-size: 11px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }

/* ---------- Forms ---------- */

.field { margin-bottom: 20px; }
.field label {
    display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.03em;
    color: var(--text-dim); margin-bottom: 8px; text-transform: uppercase;
}
.field .hint { display: block; margin-top: 6px; font-size: 12.5px; color: var(--text-faint); }

.input-shell { position: relative; display: flex; align-items: center; }
.input-shell .icon { position: absolute; left: 14px; width: 16px; height: 16px; opacity: 0.5; pointer-events: none; }

.auth-body input[type=email], .auth-body input[type=password], .auth-body input[type=text], .auth-body input[type=number], .auth-body select, .auth-body textarea {
    width: 100%; padding: 13px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--panel-border-strong);
    border-radius: var(--radius-sm);
    color: var(--text); font-family: var(--font-body); font-size: 15px; font-weight: 500;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.input-shell .icon + input { padding-left: 40px; }
.input-shell input.has-toggle { padding-right: 42px; }
.password-toggle {
    position: absolute; right: 12px; display: flex; align-items: center; justify-content: center;
    background: none; border: none; padding: 4px; cursor: pointer; color: var(--text-faint);
}
.password-toggle:hover { color: var(--text-dim); }
.password-toggle .icon-eye-off { display: none; }
.password-toggle.is-visible .icon-eye { display: none; }
.password-toggle.is-visible .icon-eye-off { display: block; }
.auth-body input::placeholder, .auth-body textarea::placeholder { color: var(--text-faint); }
.auth-body input:focus, .auth-body select:focus, .auth-body textarea:focus {
    outline: none; border-color: var(--gold);
    background: rgba(232,200,116,0.05);
    box-shadow: 0 0 0 3px rgba(232,200,116,0.12);
}
.auth-body textarea { resize: vertical; min-height: 120px; font-family: var(--font-body); }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--text-dim); }
.checkbox-row input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--gold); }

/* ---------- Badges / Alerts ---------- */

.badge {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.badge-gold { background: rgba(232,200,116,0.14); color: var(--gold); border: 1px solid rgba(232,200,116,0.3); }
.badge-violet { background: rgba(139,108,241,0.14); color: #c3b3fb; border: 1px solid rgba(139,108,241,0.3); }
.badge-danger { background: rgba(248,113,113,0.12); color: var(--danger); border: 1px solid rgba(248,113,113,0.3); }
.badge-success { background: rgba(74,222,128,0.12); color: var(--success); border: 1px solid rgba(74,222,128,0.3); }
.badge-muted { background: rgba(255,255,255,0.06); color: var(--text-dim); border: 1px solid var(--panel-border); }

.alert { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 20px; }
.alert-success { background: rgba(74,222,128,0.08); border: 1px solid rgba(74,222,128,0.3); color: #b6f5cd; }
.alert-danger { background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.3); color: #ffc9c9; }

/* ---------- Layout helpers ---------- */

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap { display: flex; align-items: center; gap: 10px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ==========================================================================
   Login / Register page
   ========================================================================== */

.login-shell { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }

.login-grid {
    width: 100%; max-width: 1080px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 0;
    border-radius: 20px;
    box-shadow: 0 30px 90px rgba(0,0,0,0.55);
    border: 1px solid var(--panel-border);
}

.promo-pane {
    position: relative; padding: 48px 44px;
    background: linear-gradient(180deg, rgba(5,6,12,0.35) 0%, rgba(5,6,12,0.85) 100%), var(--promo-bg-image, none) center / cover no-repeat;
    display: flex; flex-direction: column; justify-content: space-between; min-height: 620px;
    border-top-left-radius: 20px; border-bottom-left-radius: 20px; overflow: hidden;
}
.promo-pane .brand img { height: 68px; }
.promo-tagline { margin-top: 40px; }
.promo-tagline h1 { font-size: 30px; line-height: 1.25; margin-bottom: 14px; text-shadow: 0 4px 30px rgba(0,0,0,0.6); }
.promo-tagline h1 .accent { color: var(--gold); text-shadow: var(--glow-gold); }
.promo-tagline p { max-width: 380px; font-size: 15px; }

.promo-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.promo-stats .stat { padding: 14px 12px; border-radius: var(--radius-sm); background: rgba(10,12,20,0.5); border: 1px solid var(--panel-border); backdrop-filter: blur(6px); }
.promo-stats .stat b { display: block; font-family: var(--font-display); font-size: 19px; color: var(--gold-bright); }
.promo-stats .stat span { font-size: 11.5px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.04em; }

.promo-features { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.promo-features .feat { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-dim); }
.promo-features .feat .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); flex-shrink: 0; }

.form-pane { background: var(--panel-solid); padding: 44px 44px; display: flex; flex-direction: column; min-height: 620px; border-top-right-radius: 20px; border-bottom-right-radius: 20px; }

.auth-tabs { display: flex; gap: 4px; padding: 4px; background: rgba(255,255,255,0.03); border: 1px solid var(--panel-border); border-radius: 999px; margin-bottom: 32px; }
.auth-tabs a {
    flex: 1; text-align: center; border: none; background: transparent; padding: 11px 0; border-radius: 999px;
    font-family: var(--font-display); font-size: 12.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
    color: var(--text-dim); cursor: pointer; transition: all .2s ease; display: block;
}
.auth-tabs a.active { background: linear-gradient(135deg, var(--gold-bright), var(--gold) 60%, var(--gold-dim)); color: #201404; box-shadow: var(--glow-gold); }

.auth-flip { perspective: 1800px; }
.auth-flip-inner {
    position: relative;
    transition: height .4s ease;
}
.auth-flip-inner > .auth-flip-face {
    transition: transform .6s cubic-bezier(.4,.2,.2,1), opacity .3s ease;
    transform-style: preserve-3d;
}
.auth-flip-face {
    position: absolute; top: 0; left: 0; width: 100%;
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.auth-flip-front { transform: rotateY(0deg); z-index: 2; }
.auth-flip-back { transform: rotateY(180deg); z-index: 1; }
.auth-flip.is-flipped .auth-flip-front { transform: rotateY(-180deg); z-index: 1; }
.auth-flip.is-flipped .auth-flip-back { transform: rotateY(0deg); z-index: 2; }

.row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.aux-links { display: flex; justify-content: space-between; margin-top: -8px; margin-bottom: 24px; }
.aux-links a { font-size: 12.5px; color: var(--text-dim); }
.aux-links a:hover { color: var(--gold); }

.form-footer-note { margin-top: auto; padding-top: 28px; }
.socialproof { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 12px; color: var(--text-faint); }
.socialproof .pips { display: flex; }
.socialproof .pips span { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 6px var(--success); border: 2px solid var(--panel-solid); margin-left: -4px; }
.socialproof .pips span:first-child { margin-left: 0; }

.site-footer { margin-top: 28px; font-size: 12px; color: var(--text-faint); }
.site-footer a { color: var(--text-dim); margin-right: 8px; }
.site-footer a:hover { color: var(--gold); }
.lang-dropdown { position: relative; display: inline-block; }
.lang-dropdown-toggle {
    display: flex; align-items: center; gap: 6px;
    height: 36px; padding: 0 12px; border-radius: 999px;
    border: 1px solid var(--panel-border-strong);
    background: rgba(255,255,255,0.03);
    cursor: pointer; list-style: none; user-select: none;
    font-size: 12.5px; font-weight: 600; color: var(--text);
    flex-shrink: 0;
}
.lang-dropdown-toggle::-webkit-details-marker { display: none; }
.lang-dropdown-toggle:hover { border-color: var(--gold); }
.lang-dropdown-toggle .lang-flag { font-size: 15px; line-height: 1; }
.lang-dropdown-toggle .lang-chevron { width: 12px; height: 12px; color: var(--text-dim); transition: transform .15s ease; }
.lang-dropdown[open] .lang-dropdown-toggle .lang-chevron { transform: rotate(180deg); }
.lang-dropdown-menu {
    position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
    width: 190px; overflow: hidden;
    background: var(--panel); border: 1px solid var(--panel-border);
    border-radius: var(--radius-sm); backdrop-filter: blur(18px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}
.lang-option {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; font-size: 13px; color: var(--text-dim);
}
.lang-option .lang-flag { font-size: 16px; line-height: 1; }
.lang-option .lang-name { flex: 1; }
.lang-option .lang-check { width: 14px; height: 14px; color: var(--gold); flex-shrink: 0; }
.lang-option:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.lang-option.active { color: var(--gold); font-weight: 700; }
.site-footer .lang-dropdown-toggle { height: 30px; padding: 0 10px; font-size: 11.5px; }

@media (max-width: 900px) {
    .login-grid { grid-template-columns: 1fr; }
    .promo-pane {
        min-height: 340px;
        border-top-left-radius: 20px; border-top-right-radius: 20px;
        border-bottom-left-radius: 0; border-bottom-right-radius: 0;
    }
    .form-pane {
        border-bottom-left-radius: 20px; border-bottom-right-radius: 20px;
        border-top-left-radius: 0; border-top-right-radius: 0;
    }
}

/* ==========================================================================
   Forgot / reset password (centered card)
   ========================================================================== */

.center-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.center-card { width: 100%; max-width: 420px; padding: 40px 36px; text-align: center; }
.center-card .brand { justify-content: center; margin-bottom: 26px; }
.center-card h1 { font-size: 20px; margin-bottom: 10px; }
.center-card p { font-size: 13.5px; margin-bottom: 26px; }
.center-card .field { text-align: left; }
.back-link { display: block; margin-top: 20px; font-size: 13px; color: var(--text-dim); }
.back-link:hover { color: var(--gold); }

/* ==========================================================================
   Universe select ("Oyuna Gir")
   ========================================================================== */

.us-topbar { padding: 18px 0; border-bottom: 1px solid var(--panel-border); margin-bottom: 8px; }
.us-topbar-inner { display: flex; align-items: center; justify-content: space-between; }
.us-topbar .logout { font-size: 13px; color: var(--text-dim); }
.us-topbar .logout:hover { color: var(--danger); }

.us-head { padding: 40px 0 8px; text-align: center; }
.us-head h1 { font-size: 27px; }
.us-head p { margin-top: 8px; font-size: 14px; }

.universe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }

.uni-card { padding: 24px; display: flex; flex-direction: column; position: relative; transition: transform .15s ease, border-color .15s ease; }
.uni-card:hover { transform: translateY(-3px); border-color: var(--panel-border-strong); }
.uni-card.featured { border-color: rgba(232,200,116,0.4); box-shadow: 0 0 0 1px rgba(232,200,116,0.15), 0 20px 60px rgba(0,0,0,0.45); }

.uni-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.uni-name-wrap { display: flex; align-items: center; gap: 10px; }
.uni-name-icon {
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 34px; height: 34px; border-radius: 999px;
    background: rgba(232,200,116,0.1); border: 1px solid rgba(232,200,116,0.25);
    color: var(--gold);
}
.uni-name-icon svg { width: 17px; height: 17px; }
.uni-name { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.uni-name small { display: block; font-family: var(--font-body); font-size: 12px; color: var(--text-faint); font-weight: 500; margin-top: 2px; }

.uni-fill { margin: 14px 0 18px; }
.uni-fill .fill-label { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-faint); margin-bottom: 6px; }
.fill-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.07); overflow: hidden; }
.fill-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--violet), var(--gold)); }

.uni-meta-row {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
    margin-bottom: 18px; padding-bottom: 16px;
    border-bottom: 1px solid var(--panel-border);
    font-size: 12px; color: var(--text-dim);
}
.uni-meta-item { display: flex; align-items: center; gap: 6px; }
.uni-meta-item svg { width: 14px; height: 14px; opacity: 0.6; flex-shrink: 0; }
.uni-meta-item.online { color: var(--success); font-weight: 600; }
.uni-pulse-dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
    background: var(--success);
    animation: uniPulseDot 1.8s ease-out infinite;
}
@keyframes uniPulseDot {
    0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.55); }
    70%  { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
    100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

.badge svg { width: 12px; height: 12px; opacity: 0.85; }
.uni-card .btn { margin-top: auto; }

.uni-setting-group {
    font-family: var(--font-display); font-size: 10.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.09em; color: var(--gold-dim);
    border-top: 1px solid var(--panel-border); margin: 16px 0 8px; padding-top: 16px;
}
.uni-setting-group:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.uni-settings { display: flex; flex-direction: column; }
.uni-setting-row {
    display: flex; align-items: center; gap: 10px;
    padding: 5px 0; font-size: 12.5px; color: var(--text-dim);
}
.uni-setting-row img {
    width: 24px; height: 24px; border-radius: 6px; flex-shrink: 0;
    border: 1px solid var(--panel-border-strong);
    background: rgba(255,255,255,0.03);
}
.uni-setting-row .val { margin-left: auto; color: var(--text); font-weight: 600; white-space: nowrap; padding-left: 12px; }
.uni-setting-row .val.on { color: var(--success); }
.uni-setting-row .val.off { color: var(--text-faint); }

@media (max-width: 640px) {
    .universe-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Forum
   ========================================================================== */

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-faint); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--text); }

.forum-hero { padding: 40px 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.forum-hero h1 { font-size: 24px; }
.forum-hero p { margin-top: 6px; font-size: 14px; }
.lang-note { font-size: 12px; color: var(--text-faint); margin-top: 4px; }

.forum-search { display: flex; gap: 10px; min-width: 300px; }
.forum-search input { flex: 1; }

.forum-stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.forum-stats-strip .stat-tile { padding: 16px 18px; }
.forum-stats-strip .stat-tile b { display:block; font-family: var(--font-display); font-size: 19px; color: var(--gold-bright); }
.forum-stats-strip .stat-tile span { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .04em; }

.forum-group { margin-bottom: 26px; }
.forum-group-title { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 10px; }
.forum-group-title::after { content: ""; flex: 1; height: 1px; background: var(--panel-border); }

.cat-list { overflow: hidden; }
.cat-row { display: grid; grid-template-columns: 48px 1fr auto 220px; gap: 18px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--panel-border); transition: background .15s ease; }
.cat-row:last-child { border-bottom: none; }
.cat-row:hover { background: rgba(255,255,255,0.02); }
.cat-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(139,108,241,0.18), rgba(232,200,116,0.1)); border: 1px solid var(--panel-border-strong); font-size: 19px; flex-shrink: 0; }
.cat-info a.cat-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--text); }
.cat-info a.cat-title:hover { color: var(--gold); }
.cat-info p { font-size: 12.5px; margin-top: 4px; max-width: 460px; }
.cat-stats { text-align: center; font-size: 12px; color: var(--text-faint); white-space: nowrap; }
.cat-stats b { display: block; font-family: var(--font-display); font-size: 14px; color: var(--text); }
.cat-lastpost { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-faint); }
.cat-lastpost .avatar { width: 30px; height: 30px; font-size: 11px; }
.cat-lastpost .lp-title { color: var(--text-dim); font-weight: 600; display: block; }
.cat-lastpost .lp-title:hover { color: var(--gold); }

.list-head { padding: 28px 0 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.list-head h1 { font-size: 20px; }
.list-head p { margin-top: 6px; font-size: 13px; }

.topic-list-head { display: grid; grid-template-columns: 1fr 100px 100px 200px; gap: 18px; padding: 12px 20px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); border-bottom: 1px solid var(--panel-border-strong); }
.topic-row { display: grid; grid-template-columns: 1fr 100px 100px 200px; gap: 18px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--panel-border); }
.topic-row:last-child { border-bottom: none; }
.topic-row:hover { background: rgba(255,255,255,0.02); }
.topic-row.pinned { background: rgba(232,200,116,0.04); }
.topic-title-cell { display: flex; align-items: flex-start; gap: 10px; }
.topic-title-cell .pin-ic { color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.topic-title a { font-size: 14px; font-weight: 600; color: var(--text); }
.topic-title a:hover { color: var(--gold); }
.topic-meta { font-size: 11.5px; color: var(--text-faint); margin-top: 3px; }
.topic-num { text-align: center; font-size: 13px; color: var(--text-dim); }

.post-list { overflow: hidden; margin-bottom: 20px; }
.post-card { display: grid; grid-template-columns: 150px 1fr; border-bottom: 1px solid var(--panel-border); }
.post-card:last-child { border-bottom: none; }
.post-author { padding: 22px 18px; text-align: center; background: rgba(255,255,255,0.015); border-right: 1px solid var(--panel-border); }
.post-author .avatar { width: 58px; height: 58px; font-size: 20px; margin: 0 auto 10px; }
.post-author .pa-name { font-family: var(--font-display); font-size: 13px; font-weight: 700; }
.post-author .pa-meta { font-size: 10.5px; color: var(--text-faint); margin-top: 8px; line-height: 1.7; }
.post-body { padding: 22px 24px; }
.post-body-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.post-body-top .post-time { font-size: 11.5px; color: var(--text-faint); }
.post-content { font-size: 14px; color: var(--text); line-height: 1.7; white-space: pre-wrap; word-break: break-word; }

.post-actions { display: flex; gap: 8px; margin-top: 18px; }

.reaction-row { display: flex; align-items: center; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.reaction-row form { display: contents; }
.reaction-chip {
    display: flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 999px;
    background: rgba(255,255,255,0.04); border: 1px solid var(--panel-border-strong);
    font-size: 12px; color: var(--text-dim); cursor: pointer;
    font-family: var(--font-body);
}
.reaction-chip:hover { border-color: var(--gold); color: var(--gold); }
.reaction-chip.active { border-color: var(--gold); color: var(--gold); background: rgba(232,200,116,0.1); }

.editor-toolbar { display: flex; gap: 4px; padding: 8px; background: rgba(255,255,255,0.03); border: 1px solid var(--panel-border-strong); border-bottom: none; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.editor-toolbar button { width: 28px; height: 28px; border: none; background: transparent; color: var(--text-dim); border-radius: 6px; cursor: pointer; font-family: var(--font-display); font-size: 12px; font-weight: 700; }
.editor-toolbar button:hover { background: rgba(255,255,255,0.07); color: var(--text); }
.editor-toolbar + textarea { border-radius: 0 0 var(--radius-sm) var(--radius-sm); border-top: none; }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 22px; }
.pagination a, .pagination span { min-width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); font-size: 12.5px; font-weight: 600; color: var(--text-dim); border: 1px solid var(--panel-border); }
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination .current { background: var(--gold); color: #201404; border-color: var(--gold); }

.new-topic-card { max-width: 760px; padding: 28px; }

@media (max-width: 760px) {
    .cat-row { grid-template-columns: 40px 1fr; }
    .cat-stats, .cat-lastpost { display: none; }
    .topic-row, .topic-list-head { grid-template-columns: 1fr; }
    .topic-num, .topic-row .cat-lastpost { display: none; }
    .post-card { grid-template-columns: 1fr; }
    .post-author { border-right: none; border-bottom: 1px solid var(--panel-border); display: flex; align-items: center; gap: 12px; text-align: left; }
    .post-author .avatar { margin: 0; }
    .forum-stats-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Shared top bar (account page and anything else logged-in that isn't the
   old ingame skin)
   ========================================================================== */

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(8,10,18,0.72);
    border-bottom: 1px solid var(--panel-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.topbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.topbar-nav { display: flex; align-items: center; gap: 4px; }
.topbar-nav a {
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-dim);
    transition: color .15s ease, background .15s ease;
}
.topbar-nav a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.topbar-nav a.active { color: var(--gold); background: rgba(232,200,116,0.1); }
.topbar-user { display: flex; align-items: center; gap: 12px; }

.avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--violet), var(--gold-dim));
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 700; font-size: 13px;
    border: 1px solid var(--panel-border-strong);
    flex-shrink: 0; overflow: hidden;
}

/* ---------- Forum notification bell ---------- */

.notif-bell { position: relative; }
.notif-bell-toggle {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--panel-border-strong);
    background: rgba(255,255,255,0.03);
    cursor: pointer; list-style: none; font-size: 15px;
    position: relative; flex-shrink: 0;
}
.notif-bell-toggle::-webkit-details-marker { display: none; }
.notif-bell-toggle:hover { border-color: var(--gold); }
.notif-bell-badge {
    position: absolute; top: -4px; right: -4px;
    min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 999px; background: var(--danger, #f87171);
    color: #fff; font-size: 10px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.notif-dropdown {
    position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
    width: 320px; max-height: 400px; overflow-y: auto;
    background: var(--panel); border: 1px solid var(--panel-border);
    border-radius: var(--radius); backdrop-filter: blur(18px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}
.notif-dropdown-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px; border-bottom: 1px solid var(--panel-border);
    font-size: 12.5px; font-weight: 700; color: var(--text-dim);
    text-transform: uppercase; letter-spacing: .04em;
}
.notif-mark-all {
    background: none; border: none; color: var(--gold); font-size: 11px;
    cursor: pointer; text-transform: none; letter-spacing: normal; font-weight: 600;
}
.notif-row {
    display: block; padding: 10px 14px; border-bottom: 1px solid var(--panel-border);
    font-size: 12.5px; color: var(--text-dim);
}
.notif-row:last-child { border-bottom: none; }
.notif-row:hover { background: rgba(255,255,255,0.03); }
.notif-row.unread { background: rgba(232,200,116,0.06); }
.notif-row .notif-text { display: block; color: var(--text); line-height: 1.5; }
.notif-row .notif-text b { color: var(--gold); }
.notif-row .notif-time { display: block; margin-top: 3px; font-size: 11px; color: var(--text-faint); }
.notif-empty { padding: 20px 14px; text-align: center; font-size: 12.5px; color: var(--text-faint); }

@media (max-width: 860px) {
    .topbar-nav { display: none; }
}

/* ==========================================================================
   Account settings page
   ========================================================================== */

.page-head { padding: 40px 0 28px; }
.page-head h1 { font-size: 24px; }
.page-head p { margin-top: 6px; font-size: 14px; }

.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.rail-card { padding: 18px; position: sticky; top: 84px; }

.profile-mini {
    display: flex; align-items: center; gap: 12px;
    padding: 8px 10px 18px; margin-bottom: 10px;
    border-bottom: 1px solid var(--panel-border);
}
.profile-mini .avatar { width: 44px; height: 44px; font-size: 15px; }
.profile-mini b { display: block; font-size: 14.5px; }
.profile-mini span { font-size: 12px; color: var(--text-faint); }

.tab-rail { display: flex; flex-direction: column; gap: 4px; }
.tab-rail a {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    border-radius: var(--radius-sm); color: var(--text-dim); font-size: 14px;
    font-weight: 600; border: 1px solid transparent; transition: all .15s ease;
}
.tab-rail a svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.7; }
.tab-rail a:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.tab-rail a.active { background: rgba(232,200,116,0.08); border-color: rgba(232,200,116,0.25); color: var(--gold); }
.tab-rail a.active svg { opacity: 1; }
.tab-rail a.danger-link { color: #ff9d9d; }
.tab-rail a.danger-link:hover { background: rgba(248,113,113,0.08); }

.content-card { padding: 32px 36px; }
.content-card + .content-card { margin-top: 20px; }
.section-title { margin-bottom: 4px; font-size: 18px; }
.section-desc { margin-bottom: 26px; font-size: 13.5px; }

.settings-tab { display: none; }
.settings-tab.active { display: block; animation: fadeSlideAcc .3s ease; }
@keyframes fadeSlideAcc { from { opacity:0; transform: translateY(6px);} to {opacity:1; transform:none;} }

.kv-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 0; border-bottom: 1px solid var(--panel-border); gap: 20px;
}
.kv-row:last-child { border-bottom: none; }
.kv-row .kv-label { font-size: 14px; font-weight: 600; }
.kv-row .kv-sub { font-size: 12.5px; color: var(--text-faint); margin-top: 3px; }

.twofa-box {
    display: flex; gap: 24px; padding: 22px; border-radius: var(--radius-sm);
    background: rgba(139,108,241,0.06); border: 1px solid rgba(139,108,241,0.22);
    align-items: center;
}
.qr-placeholder {
    width: 176px; height: 176px; border-radius: 10px;
    background: #fff; border: 1px solid var(--panel-border-strong);
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    font-size: 11px; color: #333; text-align: center; padding: 8px;
}
.qr-placeholder svg { width: 100%; height: 100%; }

.danger-zone { border: 1px solid rgba(248,113,113,0.28); background: rgba(248,113,113,0.04); }

.notif-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--panel-border); }
.notif-row:last-child { border-bottom: none; }
.notif-row .kv-label { font-size: 13.5px; font-weight: 500; }

.switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch .track { position: absolute; inset: 0; background: rgba(255,255,255,0.1); border: 1px solid var(--panel-border-strong); border-radius: 999px; transition: .2s; cursor: pointer; }
.switch .track::before { content:""; position:absolute; width:16px; height:16px; left:3px; top:2px; background: var(--text-dim); border-radius:50%; transition:.2s; }
.switch input:checked + .track { background: rgba(232,200,116,0.25); border-color: var(--gold); }
.switch input:checked + .track::before { transform: translateX(18px); background: var(--gold); }

.recovery-codes-list {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
    font-family: var(--font-display); font-size: 13px;
    background: rgba(0,0,0,0.25); border: 1px solid var(--panel-border-strong);
    border-radius: var(--radius-sm); padding: 16px;
}

@media (max-width: 860px) {
    .account-layout { grid-template-columns: 1fr; }
    .rail-card { position: static; }
    .content-card { padding: 24px; }
}

/* ---------- Rules page ---------- */

.rules-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.rules-toc a {
    font-family: var(--font-display); font-size: 11.5px; font-weight: 600;
    padding: 7px 12px; border-radius: 999px;
    background: rgba(255,255,255,0.04); border: 1px solid var(--panel-border-strong);
    color: var(--text-dim);
}
.rules-toc a:hover { color: var(--gold); border-color: var(--gold); }

.rules-content { padding: 32px; }
.rules-content section { margin-bottom: 36px; scroll-margin-top: 90px; }
.rules-content section:last-child { margin-bottom: 0; }

.rules-content h2 {
    font-size: 18px; color: var(--gold-bright);
    margin: 0 0 16px; padding-bottom: 12px;
    border-bottom: 1px solid var(--panel-border-strong);
}
.rules-content h3 { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--text); margin: 20px 0 8px; }
.rules-content h4 { font-family: var(--font-display); font-size: 12.5px; font-weight: 700; color: var(--gold); letter-spacing: .02em; margin: 16px 0 6px; }

.rules-content p { margin: 0 0 12px; }
.rules-content p:last-child { margin-bottom: 0; }

.rules-content ul, .rules-content ol { list-style: revert; margin: 0 0 14px; padding-left: 22px; }
.rules-content ul:last-child, .rules-content ol:last-child { margin-bottom: 0; }
.rules-content li { margin-bottom: 6px; color: var(--text-dim); line-height: 1.6; }
.rules-content li::marker { color: var(--gold-dim); }
.rules-content li > ul, .rules-content li > ol { margin-top: 6px; }

.rules-content strong { color: var(--text); font-weight: 700; }

.rules-note {
    background: rgba(232,200,116,0.06); border: 1px solid rgba(232,200,116,0.2);
    border-radius: var(--radius-sm); padding: 12px 16px;
    font-size: 13.5px; color: var(--text-dim); margin: 0 0 14px;
}
.rules-note.rules-note-danger { background: rgba(248,113,113,0.08); border-color: rgba(248,113,113,0.25); }

/* Inline gold "XL" for use inside running prose (unlike .brand-mark, doesn't change
   font-size/family/weight - only color+glow, so it flows naturally within a sentence). */
.xl-gold { color: var(--gold); text-shadow: var(--glow-gold); font-weight: 700; }
