/* ==========================================================================
   FiveB — "Los Santos Nights" default theme
   Dark neon GTA/RP look. Colours come from Admin → Appearance (--accent)
   and the theme options (--accent-2), injected in layouts/base.blade.php.
   ========================================================================== */

/* ---------- Fonts (bundled, no third-party requests) ---------- */
@font-face { font-family: "Rajdhani"; font-weight: 500; font-display: swap; src: url("/demo/fiveb/theme-assets/default/assets/fonts/rajdhani-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Rajdhani"; font-weight: 600; font-display: swap; src: url("/demo/fiveb/theme-assets/default/assets/fonts/rajdhani-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Rajdhani"; font-weight: 700; font-display: swap; src: url("/demo/fiveb/theme-assets/default/assets/fonts/rajdhani-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap; src: url("/demo/fiveb/theme-assets/default/assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap; src: url("/demo/fiveb/theme-assets/default/assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
    --accent: #ff2e88;
    --accent-rgb: 255, 46, 136;
    --accent-2: #22d3ee;
    --bg: #07070d;
    --bg-2: #0c0c16;
    --surface: rgba(18, 18, 32, 0.72);
    --surface-solid: #12121f;
    --surface-2: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #ececf4;
    --muted: #9b9bb4;
    --faint: #6b6b85;
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f43f5e;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
    --glow: 0 0 0 1px rgba(var(--accent-rgb), 0.5), 0 10px 40px -8px rgba(var(--accent-rgb), 0.55);
    --font-display: "Rajdhani", "Arial Narrow", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --nav-h: 72px;
    --container: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.bg-grid {
    background:
        linear-gradient(180deg, rgba(7, 7, 13, 0) 0%, var(--bg) 70%),
        linear-gradient(rgba(var(--accent-rgb), 0.06) 1px, transparent 1px) 0 0 / 48px 48px,
        linear-gradient(90deg, rgba(var(--accent-rgb), 0.06) 1px, transparent 1px) 0 0 / 48px 48px,
        var(--bg);
    background-attachment: fixed;
}
body.bg-glow {
    background:
        radial-gradient(900px 500px at 10% -10%, rgba(var(--accent-rgb), 0.18), transparent 60%),
        radial-gradient(800px 500px at 100% 10%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 60%),
        var(--bg);
    background-attachment: fixed;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin: 0 0 .6em; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); text-transform: uppercase; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .85em; background: var(--surface-2); border: 1px solid var(--border); padding: .1em .4em; border-radius: 6px; }
::selection { background: rgba(var(--accent-rgb), .45); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; position: relative; }
.hero + .section { padding-top: 40px; }
.section-sm { padding: 48px 0; }
.page { padding: calc(var(--nav-h) + 40px) 0 80px; min-height: 70vh; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-display); font-weight: 600; font-size: .85rem;
    letter-spacing: .25em; text-transform: uppercase; color: var(--accent);
    margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; box-shadow: 0 0 12px currentColor; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.gradient-text {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Icons ---------- */
.icon { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.icon-fill { fill: currentColor; stroke: none; }

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--surface-2);
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 12px 22px; border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong); background: var(--btn-bg); color: var(--text);
    font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase;
    cursor: pointer; transition: transform .2s, box-shadow .25s, background .2s, border-color .2s, color .2s;
    white-space: nowrap; text-decoration: none; line-height: 1.2;
}
.btn:hover { color: #fff; border-color: rgba(255, 255, 255, .3); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
    border: 0; color: #fff;
    background: linear-gradient(120deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 60%, var(--accent-2)) 100%);
    box-shadow: 0 8px 30px -10px rgba(var(--accent-rgb), .8);
}
.btn-primary:hover { box-shadow: var(--glow); }
.btn-discord { border: 0; color: #fff; background: #5865f2; }
.btn-discord:hover { background: #4752c4; box-shadow: 0 10px 30px -10px #5865f2; }
.btn-ghost { background: transparent; }
.btn-danger { border-color: rgba(244, 63, 94, .5); color: #fda4af; background: rgba(244, 63, 94, .08); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-lg { padding: 16px 30px; font-size: 1.15rem; }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Navbar ---------- */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
    display: flex; align-items: center;
    transition: background .3s, border-color .3s, backdrop-filter .3s;
    border-bottom: 1px solid transparent;
}
.nav.is-scrolled, .nav.is-solid {
    background: rgba(7, 7, 13, .78);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--border);
}
.nav .container { display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: .06em; text-transform: uppercase; }
.brand:hover { color: #fff; }
.brand img { height: 40px; width: auto; }
.brand-mark {
    width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 24px rgba(var(--accent-rgb), .55); font-size: 1.1rem;
}
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
    display: block; padding: 8px 14px; border-radius: 8px; color: var(--muted);
    font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; letter-spacing: .05em; text-transform: uppercase;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: var(--surface-2); }
.nav-links a.active { box-shadow: inset 0 -2px 0 var(--accent); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.lang-switch a { padding: 5px 9px; font-size: .78rem; font-weight: 700; color: var(--faint); letter-spacing: .05em; }
.lang-switch a.active { color: #fff; background: rgba(var(--accent-rgb), .25); }
.nav-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(var(--accent-rgb), .7); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.nav-toggle .icon { width: 26px; height: 26px; }

@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }
    .nav-links {
        position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
        flex-direction: column; align-items: stretch; gap: 0; padding: 16px 20px;
        background: rgba(7, 7, 13, .97); backdrop-filter: blur(12px);
        transform: translateX(100%); transition: transform .3s ease; overflow-y: auto;
    }
    .nav-links a { padding: 16px 8px; font-size: 1.3rem; border-bottom: 1px solid var(--border); border-radius: 0; }
    .nav.is-open .nav-links { transform: none; }
    .nav.is-open { background: rgba(7, 7, 13, .97); }
    .nav-actions .btn-label { display: none; }
    .nav-actions { gap: 6px; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: min(86vh, 780px); min-height: min(86svh, 780px);
    display: flex; align-items: center; overflow: hidden; isolation: isolate;
    padding: calc(var(--nav-h) + 48px) 0 56px;
}
/* Above the fold: CSS entrance, never waits for JavaScript. */
.hero-enter { animation: hero-enter .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-enter-2 { animation: hero-enter .8s .15s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes hero-enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transform: scale(1.04); animation: hero-zoom 30s ease-in-out infinite alternate; }
.hero-overlay { position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgba(7, 7, 13, var(--hero-overlay, .55)) 0%, rgba(7, 7, 13, calc(var(--hero-overlay, .55) * .6)) 45%, var(--bg) 100%),
        radial-gradient(1000px 500px at 15% 80%, rgba(var(--accent-rgb), .22), transparent 70%);
}
.hero::after { /* scanlines */
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .25;
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 3px);
}
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.hero-logo { height: 96px; width: auto; margin-bottom: 20px; filter: drop-shadow(0 0 24px rgba(var(--accent-rgb), .5)); }
.hero-title {
    font-size: clamp(2.8rem, 8vw, 6.2rem); line-height: .92; margin: 0 0 18px;
    text-transform: uppercase; letter-spacing: .01em; color: #fff;
    text-shadow: 0 0 40px rgba(var(--accent-rgb), .45), 0 4px 0 rgba(0, 0, 0, .35);
}
.hero-title .gradient-text { text-shadow: none; filter: drop-shadow(0 0 30px rgba(var(--accent-rgb), .45)); }
.hero-subtitle { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #d4d4e4; max-width: 560px; margin-bottom: 32px; white-space: pre-line; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
@keyframes hero-zoom { to { transform: scale(1.12); } }
@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Cards / glass ---------- */
.card {
    position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; box-shadow: var(--shadow);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.card-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 18px; }
.card-title .icon { color: var(--accent); }
.card-hover { transition: transform .25s, border-color .25s, box-shadow .25s; }
.card-hover:hover { transform: translateY(-4px); border-color: rgba(var(--accent-rgb), .45); box-shadow: 0 24px 60px -24px rgba(var(--accent-rgb), .45); }
.card-neon::before {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), .8), transparent 40%, transparent 60%, color-mix(in srgb, var(--accent-2) 70%, transparent));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Server status ---------- */
.status-card { padding: 28px; }
.status-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.status-pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
    font-family: var(--font-display); font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
    background: rgba(255, 255, 255, .05); border: 1px solid var(--border); color: var(--muted);
}
.status-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); }
.status-pill.online { color: var(--success); border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .08); }
.status-pill.online .dot { background: var(--success); box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); animation: pulse 2s infinite; }
.status-pill.offline { color: #fda4af; border-color: rgba(244, 63, 94, .35); background: rgba(244, 63, 94, .08); }
.status-pill.offline .dot { background: var(--danger); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); } 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.players-count { font-family: var(--font-display); font-weight: 700; font-size: 3.4rem; line-height: 1; color: #fff; }
.players-count small { font-size: 1.4rem; color: var(--muted); font-weight: 600; }
.meter { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; margin: 14px 0 20px; }
.meter > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 16px rgba(var(--accent-rgb), .7); transition: width 1s ease; }
.status-soon { font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1.1; color: #fff; margin: 4px 0 6px; }
.connect-box { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: rgba(0, 0, 0, .35); border: 1px dashed var(--border-strong); font-family: ui-monospace, Consolas, monospace; font-size: .9rem; color: #cfcfe2; }
.connect-box .label { font-family: var(--font-body); color: var(--faint); font-size: .8rem; }
.connect-box button { margin-left: auto; background: none; border: 0; color: var(--accent-2); cursor: pointer; font-weight: 600; }

/* ---------- Stats tiles ---------- */
.stat-tile { display: flex; align-items: center; gap: 16px; padding: 20px; }
.stat-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; flex: none;
    background: rgba(var(--accent-rgb), .14); color: var(--accent); border: 1px solid rgba(var(--accent-rgb), .3); }
.stat-icon .icon { width: 24px; height: 24px; }
.stat-tile:nth-child(even) .stat-icon { background: color-mix(in srgb, var(--accent-2) 14%, transparent); color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 30%, transparent); }
.stat-label { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; line-height: 1.1; color: #fff; }

/* ---------- Features ---------- */
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature .stat-icon { width: 42px; height: 42px; }

/* ---------- News ---------- */
.news-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.news-card .news-cover { aspect-ratio: 16 / 9; background: linear-gradient(135deg, rgba(var(--accent-rgb), .35), color-mix(in srgb, var(--accent-2) 30%, transparent)), var(--surface-solid); display: grid; place-items: center; color: rgba(255, 255, 255, .5); }
.news-card .news-cover .icon { width: 44px; height: 44px; }
.news-card .news-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card h3 { margin: 0; font-size: 1.35rem; }
.news-card h3 a { color: #fff; }
.news-meta { display: flex; gap: 10px; align-items: center; color: var(--faint); font-size: .82rem; }
.tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; background: rgba(var(--accent-rgb), .15); color: var(--accent); border: 1px solid rgba(var(--accent-rgb), .3); }
.tag-2 { background: color-mix(in srgb, var(--accent-2) 14%, transparent); color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 30%, transparent); }

/* ---------- Leaderboard ---------- */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 16px; align-items: end; margin-bottom: 28px; }
.podium-step { text-align: center; padding: 24px 16px; }
.podium-step .rank { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; line-height: 1; }
.podium-step.first { padding-top: 40px; border-color: rgba(251, 191, 36, .45); box-shadow: 0 20px 60px -25px rgba(251, 191, 36, .55); }
.podium-step.first .rank { color: #fbbf24; text-shadow: 0 0 24px rgba(251, 191, 36, .6); }
.podium-step.second .rank { color: #d1d5db; }
.podium-step.third .rank { color: #d97706; }
.podium-step .name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: #fff; margin-top: 8px; }
@media (max-width: 640px) { .podium { grid-template-columns: 1fr; } .podium-step.first { order: -1; } }
.rank-badge { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; font-family: var(--font-display); font-weight: 700; background: var(--surface-2); border: 1px solid var(--border); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; padding: 12px 16px; color: var(--faint); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: rgba(255, 255, 255, .025); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border: 1px solid var(--border-strong); color: var(--muted); background: var(--surface-2); }
.badge-success, .badge.paid, .badge.delivered, .badge.completed, .badge.approved, .badge.open { color: var(--success); border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .08); }
.badge-warning, .badge.pending, .badge.disputed { color: var(--warning); border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .08); }
.badge-danger, .badge.failed, .badge.cancelled, .badge.refunded, .badge.chargeback, .badge.declined, .badge.rejected { color: #fda4af; border-color: rgba(244, 63, 94, .35); background: rgba(244, 63, 94, .08); }
.badge.closed { color: var(--faint); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
label, .label { display: block; margin-bottom: 7px; font-size: .82rem; font-weight: 600; color: #c9c9da; letter-spacing: .02em; }
.input, input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], select, textarea {
    width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong); background: rgba(0, 0, 0, .35); color: var(--text);
    font: inherit; transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea { resize: vertical; min-height: 120px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(var(--accent-rgb), .8); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .15); background: rgba(0, 0, 0, .5); }
input::placeholder, textarea::placeholder { color: var(--faint); }
.input-hint { margin-top: 6px; font-size: .8rem; color: var(--faint); }
.field-error { margin-top: 6px; font-size: .82rem; color: #fda4af; }
.checkbox { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); font-weight: 400; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--accent); }
.divider { display: flex; align-items: center; gap: 14px; color: var(--faint); font-size: .8rem; text-transform: uppercase; letter-spacing: .15em; margin: 22px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .92rem; border: 1px solid; }
.alert .icon { margin-top: 2px; }
.alert-success { color: #bbf7d0; background: rgba(52, 211, 153, .08); border-color: rgba(52, 211, 153, .3); }
.alert-error { color: #fecdd3; background: rgba(244, 63, 94, .08); border-color: rgba(244, 63, 94, .3); }
.alert-warning { color: #fde68a; background: rgba(251, 191, 36, .08); border-color: rgba(251, 191, 36, .3); }
.alert-info { color: #cffafe; background: color-mix(in srgb, var(--accent-2) 8%, transparent); border-color: color-mix(in srgb, var(--accent-2) 30%, transparent); }
.alert form { display: inline; }
.alert .btn { margin-left: 8px; }

/* ---------- Empty states ---------- */
.empty { text-align: center; padding: 48px 24px; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: rgba(255, 255, 255, .015); }
.empty .empty-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px; display: grid; place-items: center; background: rgba(var(--accent-rgb), .12); color: var(--accent); box-shadow: 0 0 40px rgba(var(--accent-rgb), .25); }
.empty .empty-icon .icon { width: 30px; height: 30px; }
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--muted); max-width: 440px; margin: 0 auto 18px; }

/* ---------- Store ---------- */
.store-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--muted); font-family: var(--font-display); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .88rem; cursor: pointer; transition: all .2s; }
.chip:hover { color: #fff; }
.chip.active { color: #fff; border-color: transparent; background: linear-gradient(120deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--accent-2))); box-shadow: 0 6px 24px -8px rgba(var(--accent-rgb), .8); }
.product { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.product-media { position: relative; aspect-ratio: 16 / 10; background: radial-gradient(circle at 30% 20%, rgba(var(--accent-rgb), .4), transparent 60%), radial-gradient(circle at 80% 80%, color-mix(in srgb, var(--accent-2) 35%, transparent), transparent 55%), var(--surface-solid); display: grid; place-items: center; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product:hover .product-media img { transform: scale(1.06); }
.product-media .icon { width: 56px; height: 56px; color: rgba(255, 255, 255, .55); }
.product-media .tag { position: absolute; top: 12px; left: 12px; backdrop-filter: blur(6px); background: rgba(0, 0, 0, .55); }
.product-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1.35rem; margin-bottom: 8px; }
.product-desc { color: var(--muted); font-size: .9rem; flex: 1; margin-bottom: 16px; }
.product-desc p:last-child { margin-bottom: 0; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; line-height: 1; color: #fff; }
.price small { font-size: .95rem; color: var(--muted); margin-left: 4px; }
.trust { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-top: 40px; color: var(--muted); font-size: .88rem; }
.trust span { display: inline-flex; gap: 8px; align-items: center; }
.trust .icon { color: var(--success); }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 56px; isolation: isolate; }
.auth-art .hero-bg { animation-duration: 40s; }
.auth-art .hero-overlay { background: linear-gradient(180deg, rgba(7, 7, 13, .2), rgba(7, 7, 13, .92)), radial-gradient(800px 400px at 0% 100%, rgba(var(--accent-rgb), .3), transparent 70%); }
.auth-art h2 { font-size: clamp(2rem, 3.5vw, 3.2rem); line-height: 1; color: #fff; margin-bottom: 12px; }
.auth-art p { color: #cfcfe0; max-width: 440px; }
.auth-panel { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(20px, 6vw, 80px); background: var(--bg-2); border-left: 1px solid var(--border); }
.auth-box { width: 100%; max-width: 420px; margin: 0 auto; }
.auth-box .brand { margin-bottom: 36px; }
.auth-box h1 { font-size: 2.2rem; margin-bottom: 6px; }
.auth-box .lead { color: var(--muted); margin-bottom: 28px; }
.auth-foot { margin-top: 24px; text-align: center; color: var(--muted); font-size: .9rem; }
.auth-links { display: flex; justify-content: space-between; align-items: center; margin: -6px 0 20px; font-size: .85rem; }
@media (max-width: 960px) {
    .auth { grid-template-columns: 1fr; }
    .auth-art { display: none; }
    .auth-panel { border-left: 0; min-height: 100vh; background: transparent; }
}

/* ---------- Dashboard ---------- */
.dash { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding-top: calc(var(--nav-h) + 28px); padding-bottom: 60px; }
.sidebar { position: sticky; top: calc(var(--nav-h) + 28px); align-self: start; padding: 14px; }
.side-profile { display: flex; align-items: center; gap: 12px; padding: 8px 8px 18px; margin-bottom: 10px; border-bottom: 1px solid var(--border); }
.avatar { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex: none; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.avatar-lg { width: 84px; height: 84px; border-radius: 20px; font-size: 2.2rem; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px rgba(var(--accent-rgb), .6), 0 0 40px rgba(var(--accent-rgb), .35); }
.side-profile .name { font-weight: 700; color: #fff; line-height: 1.2; word-break: break-word; }
.side-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; transition: background .2s, color .2s; }
.side-nav a:hover { background: var(--surface-2); color: #fff; }
.side-nav a.active { background: rgba(var(--accent-rgb), .14); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.side-nav a.active .icon { color: var(--accent); }
.side-nav .sep { height: 1px; background: var(--border); margin: 8px 4px; }
.side-nav button { all: unset; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--muted); cursor: pointer; width: calc(100% - 24px); }
.side-nav button:hover { color: #fda4af; background: rgba(244, 63, 94, .08); }
.dash-main > * + * { margin-top: 24px; }
.profile-card { display: flex; align-items: center; gap: 24px; padding: 28px; overflow: hidden; }
.profile-card::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-rgb), .3), transparent 70%); pointer-events: none; }
.profile-card h1 { font-size: 2rem; margin: 0 0 6px; text-transform: none; }
.profile-card .row { gap: 8px; }
.character { padding: 22px; }
.character-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.character-head .avatar { width: 52px; height: 52px; }
.character-head h3 { margin: 0; font-size: 1.35rem; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.inventory { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.inventory span { font-size: .78rem; padding: 4px 9px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
@media (max-width: 960px) {
    .dash { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .side-nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
    .side-nav a, .side-nav button { white-space: nowrap; }
    .side-nav .sep { display: none; }
    .side-profile { display: none; }
    .profile-card { flex-direction: column; text-align: center; }
    .profile-card .row { justify-content: center; }
}

/* ---------- Content (CMS pages, posts) ---------- */
.prose { font-size: 1.02rem; color: #d6d6e4; max-width: 760px; }
.prose h2, .prose h3 { margin-top: 1.6em; text-transform: none; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius-sm); margin: 1.5em 0; }
.prose blockquote { margin: 1.5em 0; padding: 4px 20px; border-left: 3px solid var(--accent); color: var(--muted); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.page-head { margin-bottom: 36px; }
.page-head p { color: var(--muted); max-width: 640px; }
.breadcrumb { display: inline-flex; align-items: center; gap: 6px; color: var(--faint); font-size: .85rem; margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }

/* ---------- Code (FiveM link) ---------- */
.code-display { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 7vw, 3.6rem); letter-spacing: .3em; text-align: center; padding: 20px; border-radius: var(--radius); background: rgba(0, 0, 0, .4); border: 1px solid rgba(var(--accent-rgb), .45); color: #fff; text-shadow: 0 0 24px rgba(var(--accent-rgb), .7); margin: 16px 0; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 20px; }
.steps li { counter-increment: step; display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; }
.steps li::before { content: counter(step); flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; background: rgba(var(--accent-rgb), .15); color: var(--accent); border: 1px solid rgba(var(--accent-rgb), .35); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; text-align: center; padding: 56px 24px; border-radius: 22px; border: 1px solid rgba(var(--accent-rgb), .35);
    background: radial-gradient(600px 300px at 50% 0%, rgba(var(--accent-rgb), .3), transparent 70%), linear-gradient(135deg, rgba(var(--accent-rgb), .12), color-mix(in srgb, var(--accent-2) 10%, transparent)), var(--surface-solid); }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 26px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: rgba(0, 0, 0, .3); padding: 56px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer h4 { font-size: 1rem; letter-spacing: .15em; color: var(--faint); margin-bottom: 14px; text-transform: uppercase; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer ul a { color: var(--muted); }
.footer ul a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); transition: all .2s; }
.socials a:hover { color: #fff; border-color: rgba(var(--accent-rgb), .6); background: rgba(var(--accent-rgb), .15); transform: translateY(-2px); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--faint); font-size: .82rem; }
.footer-bottom a { color: var(--faint); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Error pages ---------- */
.error-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 120px 20px 60px; }
.error-code { font-family: var(--font-display); font-weight: 700; font-size: clamp(6rem, 22vw, 12rem); line-height: .85; background: linear-gradient(180deg, #fff, rgba(var(--accent-rgb), .6)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 40px rgba(var(--accent-rgb), .5)); }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .1s; } [data-reveal-delay="2"] { transition-delay: .2s; } [data-reveal-delay="3"] { transition-delay: .3s; }
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Legal footer + cookie consent ---------- */
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: .8rem; }
.footer-legal a, .footer-legal button { color: var(--faint); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.footer-legal a:hover, .footer-legal button:hover { color: #fff; }
.consent { position: fixed; inset: auto 16px 16px 16px; z-index: 100; display: flex; justify-content: center; pointer-events: none; }
.consent[hidden] { display: none; }
.consent-box { width: 100%; max-width: 560px; pointer-events: auto; padding: 20px 22px; background: rgba(12, 12, 22, .96); border-color: var(--border-strong); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9); }
.consent-options { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; padding: 12px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .03); border: 1px solid var(--border); }
.consent-options[hidden] { display: none; }
@media (max-width: 640px) { .consent { inset: auto 8px 8px 8px; } .consent .row { justify-content: stretch; } .consent .row .btn { flex: 1; } }

/* ---------- Rules ---------- */
.rules-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.rules-toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; padding: 18px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.rules-toc ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.rules-toc ol ol { margin: 2px 0 6px 14px; padding-left: 10px; border-left: 1px solid var(--border); }
.rules-toc a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; color: var(--muted); font-size: .9rem; transition: background .15s, color .15s; }
.rules-toc a:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.rules-toc a.active { color: #fff; background: rgba(var(--accent-rgb), .14); }
.rules-toc .icon { width: 16px; height: 16px; }
.toc-num { font-family: var(--font-display); font-weight: 700; color: var(--accent); min-width: 26px; }
.rules-search { position: relative; margin-bottom: 14px; }
.rules-search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--faint); pointer-events: none; }
.rules-search input { padding-left: 38px; }
.rules-body { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.rules-section { scroll-margin-top: 96px; }
.rules-sub { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.rules-heading { display: flex; align-items: baseline; gap: 12px; margin: 0 0 14px; }
.rules-num { font-family: var(--font-display); color: var(--accent); text-shadow: 0 0 18px rgba(var(--accent-rgb), .5); }
.rule { scroll-margin-top: 96px; padding: 14px 16px; margin: 0 -16px; border-radius: var(--radius-sm); transition: background .3s; }
.rule:target { background: rgba(var(--accent-rgb), .1); box-shadow: inset 3px 0 0 var(--accent); }
.rule + .rule { border-top: 1px solid var(--border); }
.rule-head { display: flex; align-items: baseline; gap: 12px; }
.rule-head h4 { margin: 0; font-size: 1.05rem; text-transform: none; letter-spacing: 0; flex: 1; }
.rule-num { flex: none; font-family: var(--font-display); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; color: var(--accent); background: rgba(var(--accent-rgb), .12); }
.rule-link { flex: none; color: var(--faint); font-weight: 700; opacity: 0; transition: opacity .15s; }
.rule:hover .rule-link, .rule-link:focus { opacity: 1; }
.rule-content { margin-top: 8px; font-size: .97rem; max-width: none; }
.rule-content > :first-child { margin-top: 0; } .rule-content > :last-child { margin-bottom: 0; }
.rules-changelog { list-style: none; padding: 0; margin: 0; }
.rules-changelog li { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--border); }
.rules-changelog li:last-child { border-bottom: 0; }
.rules-changelog time { font-family: var(--font-display); font-weight: 700; color: var(--faint); min-width: 96px; }
.rules-accept { margin-bottom: 28px; }
mark.rules-hit { background: rgba(var(--accent-rgb), .35); color: #fff; border-radius: 3px; padding: 0 2px; }
@media (max-width: 960px) { .rules-layout { grid-template-columns: 1fr; } .rules-toc { position: static; max-height: none; } }

/* ---------- Notice bar (rules changed) ---------- */
.notice-bar { position: relative; z-index: 5; margin: 0 0 20px; }
.notice-bar-page { padding-top: calc(var(--nav-h) + 16px); margin-bottom: calc(-1 * var(--nav-h)); }

/* ---------- FAQ ---------- */
.faq-group + .faq-group { margin-top: 36px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .2s; }
.faq-item + .faq-item { margin-top: 10px; }
.faq-item[open] { border-color: rgba(var(--accent-rgb), .4); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; cursor: pointer; font-weight: 600; color: #fff; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { flex: none; color: var(--accent); transition: transform .2s; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item .prose { padding: 0 18px 18px; max-width: none; }

/* ---------- Team ---------- */
.team-group + .team-group { margin-top: 44px; }
.team-card { text-align: center; padding: 26px 18px; }
.team-card .avatar { width: 84px; height: 84px; margin: 0 auto 14px; font-size: 1.8rem; box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .35), 0 0 30px rgba(var(--accent-rgb), .25); }
.team-card h3 { margin: 0 0 4px; font-size: 1.1rem; text-transform: none; letter-spacing: 0; }
.team-card .badge { margin-top: 6px; }

/* ---------- Join ---------- */
.join-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; counter-reset: join; }
.join-step { counter-increment: join; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; align-items: start; }
.join-step::before { content: counter(join); display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; color: var(--accent); background: rgba(var(--accent-rgb), .12); border: 1px solid rgba(var(--accent-rgb), .4); box-shadow: 0 0 30px rgba(var(--accent-rgb), .2); }
.join-step .card { margin: 0; }
.join-step h2 { font-size: 1.3rem; margin: 0 0 8px; }
.connect-box { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(0, 0, 0, .4); border: 1px solid rgba(var(--accent-rgb), .35); }
.connect-box code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 1.05rem; color: #fff; }
@media (max-width: 560px) { .join-step { grid-template-columns: 1fr; } .join-step::before { width: 48px; height: 48px; font-size: 1.4rem; } }

/* ---------- Navbar "More" menu ---------- */
.nav-more { position: relative; }
.nav-more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; border-radius: 8px; color: var(--muted); font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; letter-spacing: .05em; text-transform: uppercase; }
.nav-more summary:hover, .nav-more[open] summary, .nav-more summary.active { color: #fff; background: var(--surface-2); }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary .icon { width: 16px; height: 16px; }
.nav-more-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 200px; padding: 8px; list-style: none; margin: 0; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: rgba(12, 12, 22, .97); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9); z-index: 60; }
.nav-more-menu a { display: block; padding: 9px 12px; border-radius: 8px; }
.nav-mobile-only { display: none; }
@media (max-width: 960px) { .nav-more { display: none; } .nav-mobile-only { display: block; } }

/* ---------- Factions ---------- */
.icon.flip { transform: scaleX(-1); }
.faction-group + .faction-group { margin-top: 44px; }
.faction-logo { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; overflow: hidden; font-family: var(--font-display); font-weight: 700; color: #fff; background: color-mix(in srgb, var(--faction) 30%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--faction) 55%, transparent); }
.faction-logo img { width: 100%; height: 100%; object-fit: cover; }
.faction-logo-lg { width: 96px; height: 96px; border-radius: 22px; font-size: 2rem; box-shadow: 0 0 40px color-mix(in srgb, var(--faction) 45%, transparent); }
.faction-card { display: flex; flex-direction: column; gap: 14px; color: inherit; border-top: 3px solid var(--faction); }
.faction-card .faction-logo { width: 64px; height: 64px; border-radius: 16px; font-size: 1.4rem; }
.faction-card h3 { margin: 8px 0 4px; font-size: 1.3rem; }
.faction-card p { margin: 0; font-size: .92rem; }
.faction-card-body { flex: 1; }
.faction-card > .badge:last-child { align-self: flex-start; }
.faction-hero { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; border-color: color-mix(in srgb, var(--faction) 45%, transparent); }
.faction-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.faction-apply { position: sticky; top: 96px; }
.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.checklist .icon { color: var(--warning); width: 18px; height: 18px; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 900px) { .faction-layout { grid-template-columns: 1fr; } .faction-apply { position: static; } }

/* ---------- Votes ---------- */
.votes-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.vote-card .row { gap: 10px; }
.vote-reward { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; margin: 0 0 6px; }
.vote-reward .icon { color: var(--warning); }
.vote-wait { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(0, 0, 0, .35); border: 1px solid var(--border); }
.vote-wait strong { font-family: var(--font-display); font-size: 1.5rem; color: #fff; font-variant-numeric: tabular-nums; }
.voters { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.voters li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .02); border: 1px solid var(--border); }
.voters li.top { border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .06); }
.voters .avatar { width: 32px; height: 32px; font-size: .9rem; }
.voters-rank { width: 24px; text-align: center; font-family: var(--font-display); font-weight: 700; color: var(--faint); }
.voters li.top .voters-rank { color: var(--warning); }
.voters-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-weight: 600; }
@media (max-width: 960px) { .votes-layout { grid-template-columns: 1fr; } }

/* ---------- Events ---------- */
.event-card { padding: 0; overflow: hidden; color: inherit; display: flex; flex-direction: column; }
.event-cover { position: relative; aspect-ratio: 16 / 8; background: radial-gradient(400px 200px at 30% 20%, rgba(var(--accent-rgb), .45), transparent 70%), linear-gradient(135deg, var(--surface-2), #05050c); background-size: cover; background-position: center; }
.event-date { position: absolute; left: 14px; bottom: -22px; width: 58px; height: 62px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--surface-solid); border: 1px solid rgba(var(--accent-rgb), .5); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .8); }
.event-date strong { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: #fff; }
.event-date span { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.event-flag { position: absolute; right: 12px; top: 12px; }
.event-body { padding: 32px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.event-body h3 { margin: 0; font-size: 1.2rem; text-transform: none; letter-spacing: 0; }
.event-body p { margin: 0; font-size: .92rem; }
.event-body .badge { align-self: flex-start; margin-top: auto; }
.event-meta { display: flex; align-items: center; gap: 6px; font-size: .85rem; }
.event-meta .icon { width: 15px; height: 15px; }
.events-grid.is-past .event-card { opacity: .65; }
.event-hero { padding: 48px 28px 28px; margin-bottom: 24px; background-size: cover; background-position: center; min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.event-hero h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.2rem); }
.event-people { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.event-people .avatar { width: 32px; height: 32px; font-size: .85rem; }

/* ---------- Gallery ---------- */
.gallery-upload { margin-bottom: 24px; }
.gallery-upload summary { cursor: pointer; list-style: none; }
.gallery-upload summary::-webkit-details-marker { display: none; }
.gallery-grid { columns: 3 280px; column-gap: 16px; }
.gallery-item { position: relative; display: block; margin-bottom: 16px; break-inside: avoid; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.gallery-item img { display: block; width: 100%; height: auto; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item.is-featured { border-color: rgba(var(--accent-rgb), .6); box-shadow: 0 0 30px -8px rgba(var(--accent-rgb), .6); }
.gallery-caption { position: absolute; inset: auto 0 0 0; padding: 26px 12px 10px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .85)); color: #fff; font-size: .85rem; display: flex; justify-content: space-between; gap: 8px; opacity: 0; transition: opacity .2s; }
.gallery-item:hover .gallery-caption, .gallery-item:focus .gallery-caption { opacity: 1; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; background: rgba(0, 0, 0, .92); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); border-radius: var(--radius-sm); }
.lightbox-caption { color: var(--muted); text-align: center; }
.lightbox-close { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface-2); color: #fff; font-size: 1.6rem; cursor: pointer; }

/* ---------- Streamers ---------- */
.streamer-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; color: inherit; padding: 28px 20px; }
.streamer-card .avatar-lg { width: 88px; height: 88px; object-fit: cover; }
.streamer-card h3 { margin: 0; font-size: 1.2rem; text-transform: none; letter-spacing: 0; }
.streamer-card p { margin: 0; font-size: .9rem; }
.streamer-card.platform-twitch { border-top: 3px solid #9146ff; }
.streamer-card.platform-youtube { border-top: 3px solid #ff0033; }
.streamer-card.platform-kick { border-top: 3px solid #53fc18; }
.streamer-card.platform-tiktok { border-top: 3px solid #25f4ee; }
.platform-badge .icon { width: 14px; height: 14px; }

/* ---------- Lore ---------- */
.lore-search { position: relative; max-width: 480px; margin-top: 18px; }
.lore-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--faint); pointer-events: none; }
.lore-search input { padding-left: 42px; }
.lore-result { color: inherit; align-items: center; }
.lore-result:hover strong { color: var(--accent) !important; }
.lore-tile { min-height: 200px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; color: inherit; background-size: cover; background-position: center;
    background-image: radial-gradient(420px 220px at 20% 0%, rgba(var(--accent-rgb), .35), transparent 70%); }
.lore-tile .badge { align-self: flex-start; }
.lore-tile h2 { margin: 0; font-size: 1.6rem; }
.lore-card { padding: 0; overflow: hidden; color: inherit; display: flex; flex-direction: column; }
.lore-card-cover { aspect-ratio: 16 / 9; background: radial-gradient(400px 200px at 30% 20%, rgba(var(--accent-rgb), .35), transparent 70%), linear-gradient(135deg, var(--surface-2), #05050c); background-size: cover; background-position: center; }
.lore-card-body { padding: 18px; }
.lore-card-body h2 { font-size: 1.2rem; margin: 0 0 6px; text-transform: none; letter-spacing: 0; }
.lore-hero { min-height: 240px; padding: 48px 28px 28px; margin-bottom: 24px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; background-size: cover; background-position: center; }
.lore-hero .badge { align-self: flex-start; }
.lore-hero h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.2rem); }
.lore-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.lore-nav a { display: flex; flex-direction: column; gap: 4px; color: inherit; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; display: flex; flex-direction: column; gap: 22px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--accent), transparent); }
.timeline-item { position: relative; display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 18px; align-items: start; }
.timeline-item::before { content: ""; position: absolute; left: -27px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .2), 0 0 18px rgba(var(--accent-rgb), .7); }
.timeline-date { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--accent); padding-top: 2px; }
.timeline-body { padding: 16px 18px; }
.timeline-body h3 { margin: 0 0 6px; font-size: 1.1rem; text-transform: none; letter-spacing: 0; }
.timeline-body p { margin: 0 0 10px; }
@media (max-width: 640px) { .timeline-item { grid-template-columns: 1fr; gap: 6px; } .lore-nav { grid-template-columns: 1fr; } }

/* ---------- Partners ---------- */
.partner-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; color: inherit; padding: 26px 20px; }
.partner-logo { width: 120px; height: 72px; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--border); font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: #fff; overflow: hidden; }
.partner-logo img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 8px; }
.partner-card h3 { margin: 0; font-size: 1.15rem; text-transform: none; letter-spacing: 0; }
.partner-card p { margin: 0; font-size: .9rem; }
.partners-strip { padding-top: 20px; padding-bottom: 20px; }
.partners-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 44px; }
.partners-logos a { opacity: .65; filter: grayscale(1); transition: opacity .2s, filter .2s; color: var(--muted); font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.partners-logos a:hover { opacity: 1; filter: none; }
.partners-logos img { max-height: 48px; max-width: 160px; object-fit: contain; }

/* ---------- Two-factor ---------- */
.two-factor-setup { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.two-factor-setup > img { border-radius: var(--radius-sm); background: #fff; padding: 10px; }
.code-input { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: .3em; text-align: center; }
.recovery-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.recovery-codes code { padding: 6px 10px; border-radius: 6px; background: rgba(0, 0, 0, .35); color: #fff; text-align: center; letter-spacing: .05em; }

/* ---------- Systems ---------- */
.system-card { padding: 0; overflow: hidden; color: inherit; display: flex; flex-direction: column; }
.system-cover { position: relative; aspect-ratio: 16 / 8; background: radial-gradient(420px 220px at 25% 15%, rgba(var(--accent-rgb), .4), transparent 70%), linear-gradient(135deg, var(--surface-2), #05050c); background-size: cover; background-position: center; }
.system-public .system-cover { background-color: #0b1530; }
.system-illegal .system-cover { background-image: radial-gradient(420px 220px at 25% 15%, rgba(244, 63, 94, .35), transparent 70%), linear-gradient(135deg, var(--surface-2), #05050c); }
.system-economy .system-cover { background-image: radial-gradient(420px 220px at 25% 15%, rgba(52, 211, 153, .3), transparent 70%), linear-gradient(135deg, var(--surface-2), #05050c); }
.system-icon { position: absolute; left: 16px; bottom: -22px; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-solid); border: 1px solid rgba(var(--accent-rgb), .5); color: var(--accent); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .8); }
.system-icon .icon { width: 26px; height: 26px; }
.system-hero .system-icon { position: static; }
.system-icon-lg { width: 64px; height: 64px; border-radius: 18px; }
.system-body { padding: 32px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.system-body h3 { margin: 0; font-size: 1.2rem; text-transform: none; letter-spacing: 0; }
.system-body p { margin: 0; font-size: .92rem; }

/* ---------- Status ---------- */
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--faint); flex: none; }
.status-dot.online { background: var(--success); box-shadow: 0 0 0 4px rgba(52, 211, 153, .18), 0 0 12px rgba(52, 211, 153, .8); }
.status-dot.offline { background: #f43f5e; box-shadow: 0 0 0 4px rgba(244, 63, 94, .15); }
.status-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.status-hero .status-dot { width: 18px; height: 18px; }
.status-card + .status-card { margin-top: 18px; }
.status-stats > div { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .03); border: 1px solid var(--border); }
.status-stats strong { font-family: var(--font-display); font-size: 1.4rem; color: #fff; }
.status-chart { display: flex; align-items: flex-end; gap: 4px; height: 80px; margin-top: 18px; padding: 8px; border-radius: var(--radius-sm); background: rgba(0, 0, 0, .3); border: 1px solid var(--border); }
.status-bar { flex: 1; height: var(--h); min-height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--accent), rgba(var(--accent-rgb), .35)); }
.status-bar.is-off { background: rgba(244, 63, 94, .45); }
.nav-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(0, 0, 0, .35); color: var(--muted); font-size: .85rem; white-space: nowrap; }
.nav-status strong { color: #fff; }
.nav-status:hover { color: #fff; border-color: rgba(var(--accent-rgb), .5); }
@media (max-width: 640px) { .nav-status { padding: 6px 9px; } .status-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
