:root {
    --bg: #070b14;
    --surface: #0d1322;
    --surface-2: #121a2e;
    --border: #1c2740;
    --text: #e7edf7;
    --muted: #76839c;
    --ice: #ec4899;
    --ice-soft: rgba(236, 72, 153, 0.12);
    --fire: #a855f7;
    --fire-soft: rgba(168, 85, 247, 0.14);
    --gold: #ffd24d; --silver: #c3cede; --bronze: #e0955a;
    --elite: #ffd24d;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    background-image:
        radial-gradient(ellipse 900px 700px at 0% 0%, rgba(168,85,247,0.16), transparent 65%),
        radial-gradient(ellipse 900px 700px at 100% 100%, rgba(236,72,153,0.16), transparent 65%),
        linear-gradient(rgba(28,39,64,0.30) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28,39,64,0.30) 1px, transparent 1px);
    background-attachment: fixed, fixed, scroll, scroll;
    background-size: auto, auto, 44px 44px, 44px 44px;
    color: var(--text);
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    min-height: 100vh;
}
a { color: inherit; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* ---------- nav ---------- */
.site-nav {
    position: sticky; top: 0; z-index: 40;
    background: rgba(7, 11, 20, 0.85); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.nav-wrap {
    max-width: 1100px; margin: 0 auto; padding: 14px 16px;
    display: flex; align-items: center; gap: 18px;
}
.brand { font-size: 22px; font-weight: 900; letter-spacing: 1px; text-decoration: none; }
.brand-fire { color: var(--fire); }
.brand-ice { color: var(--ice); }
.social-icon {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
    background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
    transition: color .15s, border-color .15s;
}
.social-icon:hover { color: var(--ice); border-color: var(--ice); }
.nav-links { display: flex; gap: 22px; flex: 1; margin-left: 10px; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; letter-spacing: 0.3px; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active { color: var(--ice); }
.nav-discord { margin-left: auto; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
    font-weight: 700; font-size: 14px; padding: 11px 22px; border-radius: 9px;
    border: 1px solid transparent; cursor: pointer; transition: transform .12s, opacity .12s;
}
.btn:hover { transform: translateY(-1px); }
.btn-ice { background: var(--ice); color: #1f0a17; }
.btn-fire { background: linear-gradient(135deg, var(--fire), #7c3aed); color: #170821; }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--ice); }
.btn-discord { background: #5865F2; color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ---------- hero ---------- */
.hero {
    position: relative; overflow: hidden;
    padding: 76px 16px 60px; text-align: center;
    border-bottom: 1px solid var(--border);
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse 50% 60% at 50% 0%, rgba(236,72,153,0.14), transparent 70%);
    pointer-events: none;
}
.hero-inner { position: relative; max-width: 720px; margin: 0 auto; }
.chip {
    display: inline-flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--ice); border: 1px solid rgba(236,72,153,0.4); background: var(--ice-soft); border-radius: 20px;
    padding: 5px 14px; margin-bottom: 20px; font-weight: 700;
}
.chip.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.hero h1 { font-size: 46px; font-weight: 900; letter-spacing: -0.5px; line-height: 1.1; }
.hero h1 .fire { color: var(--fire); } .hero h1 .ice { color: var(--ice); }
.hero p.lead { color: var(--muted); font-size: 16px; margin-top: 16px; line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.hero-connect {
    margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; font-family: Consolas, monospace; font-size: 13px;
    background: rgba(0,0,0,0.35); border: 1px solid var(--border); border-radius: 8px;
    padding: 8px 8px 8px 14px; color: var(--text);
}
.hero-connect b { color: var(--ice); font-weight: 700; }
.copy-btn {
    background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
    border-radius: 6px; padding: 5px 10px; font-size: 12px; cursor: pointer; font-weight: 600;
}
.copy-btn:hover { color: var(--ice); border-color: var(--ice); }

/* ---------- section shell ---------- */
section.block { padding: 56px 16px; max-width: 1100px; margin: 0 auto; }
.block-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.block-head h2 { font-size: 24px; font-weight: 800; }
.block-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.view-all { color: var(--ice); text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap; }
.view-all:hover { text-decoration: underline; }

/* ---------- server card ---------- */
.server-card {
    background: linear-gradient(135deg, var(--surface), var(--surface-2));
    border: 1px solid var(--border); border-radius: 14px; padding: 22px 26px;
    display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.server-thumb-col { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }
.server-thumb-label {
    font-size: 11px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; color: var(--ice);
}
.server-thumb {
    width: 150px; height: 92px; border-radius: 12px;
    background: linear-gradient(135deg, rgba(236,72,153,0.25), rgba(168,85,247,0.25));
    border: 1px solid var(--border);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.25);
}
.server-thumb.has-photo { background-size: cover; background-position: center; }
.server-info { flex: 1; min-width: 180px; }
.server-info .name { font-weight: 800; font-size: 16px; }
.server-info .meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.status-badge {
    display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: 1px;
    text-transform: uppercase; border-radius: 20px; padding: 4px 11px;
}
.status-badge.online { background: rgba(74,222,128,0.12); color: #4ade80; }
.status-badge.offline { background: rgba(248,113,113,0.12); color: #f87171; }
.status-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.server-players { text-align: center; }
.server-players b { font-size: 20px; font-variant-numeric: tabular-nums; }
.server-players span { display: block; font-size: 10px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; margin-top: 2px; }

/* ---------- podium ---------- */
.podium { display: flex; gap: 20px; justify-content: center; align-items: flex-end; flex-wrap: wrap; }
.pcard {
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border); border-top: 3px solid var(--muted);
    border-radius: 14px; padding: 22px 26px 18px; width: 250px; text-align: center; position: relative;
}
.pcard.p1 { border-top-color: var(--gold); transform: translateY(-16px); box-shadow: 0 18px 40px -18px rgba(255,210,77,0.25); }
.pcard.p2 { border-top-color: var(--silver); }
.pcard.p3 { border-top-color: var(--bronze); }
.pcard .place {
    position: absolute; top: 14px; right: 14px; width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #10141f;
}
.p1 .place { background: var(--gold); } .p2 .place { background: var(--silver); } .p3 .place { background: var(--bronze); }
.pcard .ava {
    width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 12px;
    border: 2px solid var(--border); background: var(--surface-2);
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; font-weight: 800; color: var(--ice); overflow: hidden;
    text-decoration: none;
}
.pcard .ava img { width: 100%; height: 100%; object-fit: cover; }
.pcard .name {
    display: block; font-weight: 700; font-size: 16px; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap; text-decoration: none; color: var(--text);
}
.pcard .name:hover { color: var(--ice); }
.pcard .pts {
    display: inline-block; margin-top: 8px; background: var(--ice-soft); color: var(--ice);
    border-radius: 20px; padding: 3px 14px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.pcard .rankname { margin-top: 8px; font-size: 13px; font-weight: 600; }
.pcard .stats { display: flex; justify-content: space-around; margin-top: 16px; border-top: 1px solid var(--border); padding-top: 12px; }
.pcard .stats div { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pcard .stats span { display: block; font-size: 10px; letter-spacing: 1.5px; color: var(--muted); font-weight: 600; margin-bottom: 3px; }

/* ---------- leaderboard table ---------- */
.board { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.board-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; flex-wrap: wrap; }
.board-head h2 { font-size: 17px; }
.board-head .count { color: var(--muted); font-size: 13px; margin-left: 10px; font-weight: 400; }
#search {
    background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
    border-radius: 8px; padding: 9px 14px; width: 240px; font-size: 14px; outline: none;
}
#search:focus { border-color: var(--ice); }
.tbl-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 860px; }
th {
    text-align: left; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--muted); padding: 12px 16px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    background: rgba(0,0,0,0.18);
}
td { padding: 11px 16px; border-bottom: 1px solid rgba(28,39,64,0.55); font-size: 14px; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(236,72,153,0.045); }
td.rank-cell { color: var(--muted); font-weight: 700; }
tr.top1 td.rank-cell { color: var(--gold); } tr.top2 td.rank-cell { color: var(--silver); } tr.top3 td.rank-cell { color: var(--bronze); }
.prow { display: flex; align-items: center; gap: 10px; }
.prow .mini {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
    background: var(--surface-2); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: var(--ice);
}
.prow .mini img { width: 100%; height: 100%; object-fit: cover; }
.prow a { color: var(--text); text-decoration: none; font-weight: 600; }
.prow a:hover { color: var(--ice); }
.ptsbadge { background: var(--ice-soft); color: var(--ice); border-radius: 14px; padding: 2px 11px; font-weight: 700; }
.kd-good { color: #4ade80; font-weight: 700; } .kd-bad { color: #f87171; font-weight: 700; }
.muted { color: var(--muted); }
.err { text-align: center; padding: 60px 20px; color: var(--muted); }

/* ---------- VIP banner ---------- */
.vip-banner {
    background: linear-gradient(135deg, #1a0f2e, #140a24);
    border: 1px solid rgba(168,85,247,0.35); border-radius: 16px;
    padding: 40px 32px; position: relative; overflow: hidden;
}
.vip-banner::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse 50% 80% at 90% 20%, rgba(168,85,247,0.20), transparent);
    pointer-events: none;
}
.vip-banner-head { position: relative; text-align: center; margin-bottom: 30px; }
.vip-banner-head h2 { font-size: 26px; font-weight: 900; }
.vip-banner-head h2 span { color: var(--fire); }
.vip-banner-head p { color: var(--muted); margin-top: 8px; }
.vip-features { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.vfeat {
    background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px;
    padding: 18px 16px; text-align: center;
}
.vfeat .icon { font-size: 26px; margin-bottom: 8px; }
.vfeat .title { font-weight: 700; font-size: 13px; }
.vfeat .desc { color: var(--muted); font-size: 12px; margin-top: 4px; line-height: 1.4; }
.vip-banner-cta { position: relative; text-align: center; }
@media (max-width: 760px) { .vip-features { grid-template-columns: repeat(2, 1fr); } }

/* ---------- VIP pricing page ---------- */
.tier-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.tier {
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 30px 28px; position: relative;
}
.tier.elite { border-color: rgba(255,210,77,0.4); background: linear-gradient(180deg, rgba(255,210,77,0.05), var(--surface)); }
.tier .tier-name { font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.tier.vip .tier-name { color: var(--ice); } .tier.elite .tier-name { color: var(--elite); }
.tier .tier-price { font-size: 40px; font-weight: 900; margin-top: 10px; }
.tier .tier-price span { font-size: 15px; color: var(--muted); font-weight: 600; }
.tier ul { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.tier li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text); }
.tier li::before { content: "✓"; color: #4ade80; font-weight: 800; flex-shrink: 0; }
.tier .btn { margin-top: 26px; width: 100%; justify-content: center; }
.addon-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 22px; }
@media (max-width: 760px) { .tier-grid { grid-template-columns: 1fr; } }

/* ---------- bans table ---------- */
.reason-cell { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ban-active { color: #f87171; font-weight: 700; }
.ban-expired { color: var(--muted); }

/* ---------- player profile ---------- */
.profile-header {
    background: linear-gradient(135deg, var(--surface), var(--surface-2));
    border: 1px solid var(--border); border-radius: 14px; padding: 26px;
    display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 24px;
}
.profile-ava {
    width: 84px; height: 84px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
    border: 2px solid var(--border); background: var(--surface-2);
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; font-weight: 800; color: var(--ice);
}
.profile-ava img { width: 100%; height: 100%; object-fit: cover; }
.profile-info { flex: 1; min-width: 200px; }
.profile-info h1 { font-size: 24px; font-weight: 800; }
.profile-meta { display: flex; align-items: center; gap: 14px; margin-top: 8px; flex-wrap: wrap; font-size: 14px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
    padding: 18px 16px; text-align: center;
}
.stat-value { display: block; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-label { display: block; font-size: 11px; letter-spacing: 0.5px; color: var(--muted); text-transform: uppercase; margin-top: 4px; }
@media (max-width: 760px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- clans ---------- */
.clan-list { display: flex; flex-direction: column; gap: 18px; }
.clan-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.clan-card-head { display: flex; align-items: center; gap: 16px; padding: 20px 22px; flex-wrap: wrap; }
.clan-tag {
    font-size: 18px; font-weight: 900; letter-spacing: 0.5px; padding: 8px 14px;
    border-radius: 10px; border: 1px solid; flex-shrink: 0;
}
.pcard .clan-tag { display: inline-block; margin: 0 auto 12px; }
.clan-rank { font-size: 18px; font-weight: 800; color: var(--muted); min-width: 30px; text-align: center; flex-shrink: 0; }
.clan-card-info { flex: 1; min-width: 160px; }
.clan-name { font-size: 18px; font-weight: 800; }
.clan-meta { font-size: 13px; margin-top: 2px; }
.clan-points { text-align: center; }
.clan-points b { display: block; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ice); }
.clan-points span { display: block; font-size: 10px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; margin-top: 2px; }
.clan-members {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1px;
    background: var(--border); border-top: 1px solid var(--border);
}
.clan-member {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    background: var(--surface); padding: 10px 16px; text-decoration: none; color: var(--text); font-size: 13px;
}
.clan-member:hover { background: var(--surface-2); color: var(--ice); }
.clan-member-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clan-member-pts { color: var(--muted); font-size: 12px; flex-shrink: 0; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 44px 16px 24px; }
.footer-wrap { max-width: 1100px; margin: 0 auto; display: flex; gap: 40px; flex-wrap: wrap; }
.footer-brand { flex: 1; min-width: 200px; }
.footer-brand p { color: var(--muted); font-size: 13px; margin-top: 10px; max-width: 240px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; min-width: 140px; }
.footer-col h4 { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.footer-col a { color: var(--text); text-decoration: none; font-size: 14px; }
.footer-col a:hover { color: var(--ice); }
.footer-col .mono { font-family: Consolas, monospace; font-size: 13px; color: var(--muted); }
.footer-bottom { max-width: 1100px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; text-align: center; }

/* ---------- floating discord ---------- */
.fab-discord {
    position: fixed; bottom: 22px; right: 22px; z-index: 50;
    display: flex; align-items: center; gap: 10px;
    background: linear-gradient(135deg, var(--fire), #7c3aed); color: #fff; text-decoration: none;
    padding: 13px 18px 13px 16px; border-radius: 30px;
    font-weight: 800; font-size: 13px; letter-spacing: 0.5px;
    box-shadow: 0 8px 24px rgba(168,85,247,0.4); transition: transform .15s;
}
.fab-discord:hover { transform: scale(1.05); }
.fab-discord svg { flex-shrink: 0; }
.fab-discord .dot {
    width: 8px; height: 8px; border-radius: 50%; background: #fff;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.25);
}
@media (max-width: 480px) { .fab-discord span:not(.dot) { display: none; } }

@media (max-width: 760px) {
    .pcard.p1 { transform: none; }
    .hero h1 { font-size: 32px; }
    .nav-links { display: none; }
}
