/* DDTank Site 2.0 -- tema escuro/premium por padrao, com alternador pra claro. */

:root {
    --bg: #0e1220;
    --bg-soft: #161c30;
    --card: #1a2138;
    --border: #2a3350;
    --text: #e8ecf7;
    --text-muted: #8b93b0;

    --gold: #f5b942;
    --gold-dark: #d99a1f;
    --violet: #8b5cf6;
    --violet-dark: #6d3fd6;

    --success: #2ecc8f;
    --danger: #ef5a6f;

    /* Paleta categorica pros graficos (8 matizes, ordem fixa, validada com
       scripts/validate_palette.js do skill dataviz contra --card #1a2138 escuro). */
    --series-1: #3987e5;
    --series-2: #199e70;
    --series-3: #c98500;
    --series-4: #008300;
    --series-5: #9085e9;
    --series-6: #e66767;
    --series-7: #d55181;
    --series-8: #d95926;

    --radius: 16px;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    --shadow-btn: 0 8px 20px rgba(245, 185, 66, 0.25);
}

:root[data-theme="light"] {
    --bg: #f8f7fc;
    --bg-soft: #f0edf9;
    --card: #ffffff;
    --border: #e2ddf0;
    --text: #201c33;
    --text-muted: #6b6485;

    /* mesma paleta, validada contra --card #ffffff claro */
    --series-1: #2a78d6;
    --series-2: #1baf7a;
    --series-3: #eda100;
    --series-4: #008300;
    --series-5: #4a3aa7;
    --series-6: #e34948;
    --series-7: #e87ba4;
    --series-8: #eb6834;

    --shadow: 0 12px 28px rgba(40, 30, 80, 0.10);
    --shadow-btn: 0 8px 18px rgba(217, 154, 31, 0.25);
}

* { box-sizing: border-box; }

body.site {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", Verdana, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    transition: background 0.2s, color 0.2s;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text);
    cursor: pointer;
    font-size: 16px;
    margin-left: 4px;
}
.theme-toggle:hover { border-color: var(--gold); }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.3px; }
a { color: inherit; }

body.site::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--violet) 100%);
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    border-bottom: 1px solid var(--border);
    background: rgba(14, 18, 32, 0.9);
    backdrop-filter: blur(6px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-header .logo {
    font-size: 24px;
    font-weight: 900;
    text-decoration: none;
    color: var(--text);
}
.site-header .logo span { color: var(--gold); }
.site-header .logo .ver { font-size: 12px; color: var(--violet); vertical-align: super; margin-left: 2px; }

.site-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.site-nav a {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: background 0.15s, color 0.15s;
}
.site-nav a:hover, .site-nav a.active { background: var(--bg-soft); color: var(--gold); }

.site-nav a.cta {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #14161f;
    box-shadow: var(--shadow-btn);
}
.site-nav a.cta:hover { filter: brightness(1.08); color: #14161f; }

.account-pill { padding: 8px 16px; border-radius: 999px; background: var(--bg-soft); color: var(--gold); font-weight: 700; font-size: 14px; }

.admin-shortcut {
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--violet) 0%, var(--violet-dark) 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}
.admin-shortcut:hover { filter: brightness(1.08); color: #fff; }
.logout-link { padding: 10px 16px; border-radius: 999px; color: var(--danger); text-decoration: none; font-weight: 700; font-size: 14px; }
.logout-link:hover { background: rgba(239, 90, 111, 0.12); }

.site-main { max-width: 1080px; margin: 0 auto; padding: 0 24px 96px; }

.site-footer {
    padding: 28px 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
}

.hero-band {
    background: radial-gradient(120% 160% at 85% 0%, rgba(139, 92, 246, 0.18) 0%, transparent 45%),
                radial-gradient(120% 160% at 15% 10%, rgba(245, 185, 66, 0.14) 0%, transparent 45%);
    border-bottom: 1px solid var(--border);
}

.hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 32px;
    align-items: center;
    max-width: 1080px;
    margin: 0 auto;
    padding: 56px 24px 64px;
}

.hero .eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--violet) 0%, var(--violet-dark) 100%);
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero h1 { font-size: 42px; line-height: 1.15; margin: 0 0 16px; }
.hero h1 .hl {
    background: linear-gradient(135deg, var(--gold) 0%, var(--violet) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--text-muted); font-size: 17px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.character-slot {
    position: relative;
    min-height: 380px;
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(139, 92, 246, 0.10) 0%, var(--card) 55%, rgba(245, 185, 66, 0.08) 100%);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.character-slot img { position: relative; z-index: 1; max-width: 82%; max-height: 82%; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0,0,0,0.5)); }
.character-slot::before {
    content: ""; position: absolute; width: 78%; height: 78%; border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 185, 66, 0.20) 0%, rgba(139, 92, 246, 0.16) 55%, transparent 78%);
    z-index: 0;
}
.hero-slot .hero-character { max-width: 88%; max-height: 92%; animation: float 4.5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.character-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 8px 0 40px; }
.character-strip .character-slot { min-height: 200px; border-radius: var(--radius); flex-direction: column; gap: 10px; padding-bottom: 14px; transition: transform 0.18s, box-shadow 0.18s; }
.character-strip .character-slot:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(0,0,0,0.45); }
.character-strip .character-slot img { max-width: 70%; max-height: 68%; }
.char-name { position: relative; z-index: 1; font-size: 13px; font-weight: 800; color: #14161f; background: var(--gold); padding: 4px 14px; border-radius: 999px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 28px; border-radius: 999px; font-weight: 800; font-size: 15px;
    text-decoration: none; border: 1px solid transparent; cursor: pointer;
    transition: transform 0.1s, filter 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%); color: #14161f; box-shadow: var(--shadow-btn); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); border-width: 2px; }
.btn-outline:hover { background: var(--bg-soft); }
.btn-danger { background: linear-gradient(135deg, var(--danger) 0%, #c8394d 100%); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn:disabled, .btn.btn-disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; filter: none; }
.form-field input:disabled, .item-picker-card input:disabled { opacity: 0.5; cursor: not-allowed; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.card + .card { margin-top: 20px; }

.section-title { font-size: 24px; margin: 48px 0 18px; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ""; width: 6px; height: 24px; border-radius: 4px; background: linear-gradient(180deg, var(--gold) 0%, var(--violet) 100%); display: inline-block; }

.page-title { font-size: 32px; margin: 40px 0 8px; }
.page-subtitle { color: var(--text-muted); margin: 0 0 32px; font-size: 16px; }

.form-grid { display: grid; gap: 16px; max-width: 420px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: none; }
.card-intro { margin: 0 0 16px; }
.form-field label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; color: var(--text-muted); }
.form-field input, .form-field select {
    width: 100%; padding: 13px 14px; border-radius: 12px; border: 2px solid var(--border);
    background: var(--bg-soft); font-size: 15px; color: var(--text);
}
.form-field input:focus, .form-field select:focus { outline: none; border-color: var(--gold); }
.form-message { padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 700; margin-bottom: 20px; }
.form-message.error { background: rgba(239, 90, 111, 0.12); color: var(--danger); }
.form-message.success { background: rgba(46, 204, 143, 0.12); color: var(--success); }

.server-card { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; border-left: 6px solid var(--violet); }
.status-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--success); margin-right: 8px; box-shadow: 0 0 0 4px rgba(46, 204, 143, 0.15); }
.status-dot.offline { background: var(--danger); box-shadow: 0 0 0 4px rgba(239, 90, 111, 0.15); }

.package-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.package-card { border: 2px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; background: var(--card); transition: border-color 0.15s, transform 0.1s; }
.package-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.package-card .amount { font-size: 28px; font-weight: 900; background: linear-gradient(135deg, var(--gold) 0%, var(--violet) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 10px 0; }
.package-card .price { color: var(--text-muted); margin-bottom: 16px; font-weight: 600; }

.wallet-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 26px; border-left: 6px solid var(--gold); }
.wallet-bar .balance { font-size: 26px; font-weight: 900; color: var(--gold); }
.wallet-bar .balance.cupom { color: var(--violet); }
.wallet-stats { display: flex; gap: 40px; flex-wrap: wrap; }

table.listing-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
table.listing-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); padding: 10px 12px; border-bottom: 1px solid var(--border); }
table.listing-table td { padding: 12px; border-bottom: 1px solid var(--border); font-size: 14px; }
table.listing-table tr:hover td { background: var(--bg-soft); }

.tabs { display: flex; gap: 8px; margin-bottom: 24px; }
.tabs a { padding: 10px 20px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); text-decoration: none; color: var(--text-muted); font-weight: 700; font-size: 14px; }
.tabs a.active { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%); color: #14161f; border-color: transparent; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.badge.fee { background: rgba(139, 92, 246, 0.15); color: var(--violet); }
.badge.success { background: rgba(46, 204, 143, 0.15); color: var(--success); }
.badge.danger { background: rgba(239, 90, 111, 0.15); color: var(--danger); }
.badge.pending { background: rgba(255, 193, 7, 0.15); color: #d6a013; }

.quota-block { max-width: 460px; }
.quota-labels { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); font-weight: 700; margin-bottom: 8px; }
.quota-bar-track { width: 100%; height: 10px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--border); overflow: hidden; }
.quota-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold) 0%, var(--violet) 100%); transition: width 0.2s; }
.form-hint { margin: 10px 0 0; font-size: 13px; color: var(--text-muted); }

.calc-box { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 16px; padding: 14px 20px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--border); }
.calc-item { display: flex; flex-direction: column; gap: 4px; }
.calc-label { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.calc-value { font-size: 19px; font-weight: 900; }
.calc-value.total { color: var(--gold); }
.calc-value.net { color: var(--success); }

.item-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; max-height: 320px; overflow-y: auto; padding: 4px 2px; }
.item-picker-card {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 14px 10px; border-radius: 14px; border: 2px solid var(--border); background: var(--bg-soft);
    cursor: pointer; text-align: center; transition: border-color 0.15s, transform 0.1s;
}
.item-picker-card:hover { transform: translateY(-2px); }
.item-picker-card input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.item-picker-card:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 185, 66, 0.18); }

.item-icon {
    position: relative; width: 56px; height: 56px; border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15), 0 6px 14px rgba(0,0,0,0.3);
    display: flex; align-items: center; justify-content: center;
}
.item-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4px; border-radius: 12px; }
.item-level {
    position: absolute; right: -6px; bottom: -6px; z-index: 1;
    font-size: 10px; font-weight: 900; color: #14161f; background: var(--gold);
    padding: 1px 6px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.item-name { font-size: 13px; font-weight: 800; }
.item-sub { font-size: 11px; color: var(--text-muted); }

.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.item-card {
    display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius);
    background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); flex-wrap: wrap;
}
.item-card .item-icon { flex-shrink: 0; }
.item-card-body { flex: 1; min-width: 0; }
.item-card-body .item-name { display: block; }
.item-card-body .item-sub { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-card-price { font-weight: 800; color: var(--gold); font-size: 14px; white-space: nowrap; }
.item-card-mine { color: var(--text-muted); font-size: 12px; white-space: nowrap; }
.item-card form { margin: 0; }

.terms-box { max-width: 760px; margin: 0 auto; }
.terms-list { color: var(--text); line-height: 1.9; padding-left: 22px; margin: 0 0 24px; }
.terms-list li { margin-bottom: 10px; }
.terms-agree { display: flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; }
.terms-agree input { width: 18px; height: 18px; }

/* ---- Dashboard de economia (KPIs + graficos) ---- */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.kpi-card { padding: 20px 22px; }
.kpi-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted); }
.kpi-value { font-size: 26px; font-weight: 900; margin-top: 6px; }
.kpi-value.gold { color: var(--gold); }
.kpi-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.chart-box { position: relative; width: 100%; }
.chart-box svg { display: block; width: 100%; height: auto; }
.chart-note { font-size: 13px; color: var(--gold); background: rgba(245, 185, 66, 0.10); border-radius: 10px; padding: 8px 14px; margin-bottom: 14px; font-weight: 700; }

.chart-legend { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 12px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); font-weight: 700; }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.mc-tooltip {
    position: absolute; z-index: 5; pointer-events: none; min-width: 150px;
    background: var(--card); border: 1px solid var(--border); border-radius: 10px;
    box-shadow: var(--shadow); padding: 10px 12px; font-size: 12px;
    transition: opacity 0.1s; opacity: 0;
}
.mc-tooltip-title { font-weight: 800; margin-bottom: 6px; color: var(--text); }
.mc-tooltip-row { display: flex; justify-content: space-between; gap: 16px; padding: 2px 0; color: var(--text-muted); }
.mc-tooltip-row strong { color: var(--text); font-weight: 800; }

.mc-empty { padding: 48px 20px; text-align: center; color: var(--text-muted); font-size: 14px; }

.rules-card p { color: var(--text-muted); line-height: 1.7; margin: 0 0 16px; }
.rules-formula {
    font-family: "Consolas", "SFMono-Regular", monospace; font-size: 14px; font-weight: 700;
    background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px;
    padding: 12px 16px; margin-bottom: 16px; color: var(--gold);
}
.rules-list { color: var(--text-muted); line-height: 1.8; padding-left: 22px; margin: 0; }
.rules-list li { margin-bottom: 10px; }
.rules-list strong { color: var(--text); }

.soon-banner { text-align: center; padding: 90px 20px; background: var(--bg-soft); border-radius: 24px; }
.soon-banner h2 { font-size: 30px; margin-bottom: 12px; color: var(--gold); }
.soon-banner p { color: var(--text-muted); }

.feature-list { color: var(--text-muted); line-height: 2; list-style: none; padding: 0; margin: 0; }
.feature-list li { padding-left: 30px; position: relative; }
.feature-list li::before {
    content: "\2713"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--violet) 100%); color: #14161f; font-size: 12px; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
}

@media (max-width: 860px) {
    .hero { grid-template-columns: 1fr; padding: 40px 20px 48px; }
    .site-header { padding: 14px 16px; flex-wrap: wrap; gap: 10px; }
    .site-nav { flex-wrap: wrap; justify-content: center; }
    .character-strip { grid-template-columns: repeat(2, 1fr); }
    .form-grid-3 { grid-template-columns: 1fr; }
}

/* ---- Site 2.1 visual polish ------------------------------------------- */
:root {
    --bg: #090b12;
    --bg-soft: #101723;
    --card: #151d2a;
    --card-elevated: #1b2635;
    --border: #2a3748;
    --text: #f7f3ec;
    --text-muted: #a8b1bf;
    --gold: #ffbf47;
    --gold-dark: #dc8d24;
    --violet: #5be7c4;
    --violet-dark: #28a98f;
    --success: #42d98b;
    --danger: #ff6174;
    --radius: 14px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    --shadow-btn: 0 14px 28px rgba(255, 191, 71, 0.22);
}

:root[data-theme="light"] {
    --bg: #f6f1e7;
    --bg-soft: #fff8ed;
    --card: #ffffff;
    --card-elevated: #fffdf8;
    --border: #e2d4be;
    --text: #201914;
    --text-muted: #6f675f;
    --shadow: 0 18px 44px rgba(73, 55, 34, 0.12);
    --shadow-btn: 0 14px 28px rgba(220, 141, 36, 0.18);
}

html { scroll-behavior: smooth; }

body.site {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(91, 231, 196, 0.07) 0, transparent 360px),
        linear-gradient(135deg, rgba(255, 191, 71, 0.06) 0, transparent 42%),
        var(--bg);
}

body.site::before {
    height: 0;
}

body.site:not(.admin-body) .site-header {
    width: min(1180px, calc(100% - 32px));
    margin: 14px auto 0;
    padding: 10px 12px 10px 18px;
    border: 1px solid color-mix(in srgb, var(--border) 84%, #fff);
    border-radius: 18px;
    background: color-mix(in srgb, var(--bg-soft) 88%, transparent);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
}

body.site:not(.admin-body) .site-header .logo {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    font-size: 22px;
    letter-spacing: 0;
}

body.site:not(.admin-body) .site-header .logo::before {
    content: "";
    width: 12px;
    height: 12px;
    margin-right: 8px;
    border-radius: 4px;
    background: var(--gold);
    box-shadow: 0 0 0 6px rgba(255, 191, 71, 0.12);
}

body.site:not(.admin-body) .site-header .logo span {
    color: var(--gold);
}

.site-menu-toggle {
    display: none;
    min-height: 38px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    color: var(--text);
    padding: 0 13px;
    font-weight: 900;
    cursor: pointer;
}

body.site:not(.admin-body) .site-nav {
    gap: 4px;
}

body.site:not(.admin-body) .site-nav a,
body.site:not(.admin-body) .logout-link,
body.site:not(.admin-body) .admin-shortcut,
body.site:not(.admin-body) .account-pill {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    border-radius: 12px;
    padding: 0 13px;
    font-size: 13px;
}

body.site:not(.admin-body) .site-nav a:hover,
body.site:not(.admin-body) .site-nav a.active {
    background: var(--card);
    color: var(--text);
}

body.site:not(.admin-body) .site-nav a.cta {
    background: var(--gold);
    color: #1f160b;
    box-shadow: var(--shadow-btn);
}

body.site:not(.admin-body) .theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--card);
}

body.site:not(.admin-body) .site-main {
    max-width: 1180px;
    padding: 36px 24px 96px;
}

.hero-band {
    position: relative;
    overflow: hidden;
    min-height: min(720px, calc(100svh - 94px));
    margin-top: -82px;
    border-bottom: 1px solid var(--border);
    background:
        linear-gradient(90deg, rgba(9, 11, 18, 0.96) 0%, rgba(9, 11, 18, 0.78) 42%, rgba(9, 11, 18, 0.30) 74%, rgba(9, 11, 18, 0.72) 100%),
        linear-gradient(180deg, transparent 0%, var(--bg) 100%);
}

:root[data-theme="light"] .hero-band {
    background:
        linear-gradient(90deg, rgba(246, 241, 231, 0.96) 0%, rgba(246, 241, 231, 0.78) 42%, rgba(246, 241, 231, 0.26) 74%, rgba(246, 241, 231, 0.78) 100%),
        linear-gradient(180deg, transparent 0%, var(--bg) 100%);
}

.hero {
    position: relative;
    z-index: 1;
    min-height: min(720px, calc(100svh - 94px));
    max-width: 1180px;
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.9fr);
    align-items: end;
    gap: 24px;
    padding: 150px 24px 56px;
}

.hero-copy {
    max-width: 680px;
    padding-bottom: 28px;
}

.hero .eyebrow {
    margin-bottom: 18px;
    border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
    background: rgba(255, 191, 71, 0.12);
    color: var(--gold);
    letter-spacing: 0.08em;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(56px, 8vw, 108px);
    line-height: 0.9;
    letter-spacing: 0;
}

.hero p {
    max-width: 660px;
    color: var(--text-muted);
    font-size: clamp(16px, 1.6vw, 20px);
    line-height: 1.65;
}

.hero-actions {
    margin-top: 28px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(110px, 1fr));
    gap: 10px;
    max-width: 560px;
    margin-top: 28px;
}

.hero-metrics div {
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: color-mix(in srgb, var(--card) 78%, transparent);
    backdrop-filter: blur(12px);
}

.hero-metrics strong,
.hero-metrics span {
    display: block;
}

.hero-metrics strong {
    font-size: 24px;
    line-height: 1;
    color: var(--text);
}

.hero-metrics span {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
}

.character-slot {
    border-radius: 18px;
    background: linear-gradient(160deg, var(--card-elevated), var(--card));
    box-shadow: var(--shadow);
}

.character-slot::before {
    display: none;
}

.hero-slot {
    min-height: 540px;
    align-self: stretch;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.hero-slot .hero-character {
    max-width: min(92%, 560px);
    max-height: 96%;
    object-fit: contain;
    filter: drop-shadow(0 34px 42px rgba(0, 0, 0, 0.58));
}

.btn {
    border-radius: 13px;
    transition: transform 0.15s, filter 0.15s, border-color 0.15s, background 0.15s;
}

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

.btn-primary {
    background: var(--gold);
    color: #1f160b;
}

.btn-outline {
    background: color-mix(in srgb, var(--card) 72%, transparent);
    border-color: var(--border);
}

.card,
.item-card,
.package-card {
    border-radius: 16px;
    background: linear-gradient(180deg, var(--card-elevated), var(--card));
    border-color: var(--border);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.card {
    position: relative;
}

.section-title {
    margin-top: 56px;
    font-size: 26px;
    letter-spacing: 0;
}

.section-title::before {
    width: 10px;
    height: 10px;
    border-radius: 4px;
    background: var(--gold);
}

.section-copy {
    max-width: 680px;
    margin: -8px 0 22px;
    color: var(--text-muted);
    line-height: 1.7;
}

.page-title {
    margin-top: 28px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1;
    letter-spacing: 0;
}

.page-subtitle {
    max-width: 780px;
    line-height: 1.65;
}

.home-showcase {
    margin-top: -26px;
}

.character-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 36px;
}

.character-strip .character-slot {
    min-height: 260px;
    padding: 14px;
    justify-content: flex-end;
}

.character-strip .character-slot img {
    max-width: 90%;
    max-height: 205px;
}

.char-name {
    color: #1f160b;
    background: var(--gold);
}

.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.home-feature-card {
    min-height: 210px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(180deg, var(--card-elevated), var(--card));
}

.home-feature-card h3 {
    margin: 12px 0 10px;
    font-size: 22px;
    letter-spacing: 0;
}

.home-feature-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.feature-kicker {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(91, 231, 196, 0.13);
    color: var(--violet);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    line-height: 1.65;
}

.feature-list li {
    min-height: 92px;
    padding: 18px 18px 18px 52px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-soft);
}

.feature-list li::before {
    left: 18px;
    top: 20px;
    background: var(--gold);
}

.form-field input,
.form-field select,
.form-field textarea,
.form-grid input,
.form-grid select {
    min-height: 46px;
    border-width: 1px;
    border-radius: 13px;
    background: color-mix(in srgb, var(--bg-soft) 82%, #000);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 4px rgba(91, 231, 196, 0.12);
}

.package-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.package-card {
    border-width: 1px;
}

.package-card:hover,
.item-card:hover,
.item-picker-card:hover {
    border-color: var(--violet);
    transform: translateY(-3px);
}

.package-card .amount {
    color: var(--gold);
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

.wallet-bar,
.server-card {
    border-left: 0;
    border-top: 4px solid var(--gold);
}

.tabs {
    flex-wrap: wrap;
}

.tabs a {
    border-radius: 12px;
}

.tabs a.active {
    background: var(--gold);
    color: #1f160b;
}

table.listing-table {
    border-collapse: separate;
    border-spacing: 0;
}

table.listing-table th {
    background: var(--card);
}

table.listing-table td {
    vertical-align: middle;
}

.site-footer {
    background: var(--bg-soft);
}

@media (max-width: 980px) {
    body.site:not(.admin-body) .site-header {
        width: calc(100% - 24px);
    }

    .site-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    body.site:not(.admin-body) .site-nav {
        position: absolute;
        left: 12px;
        right: 12px;
        top: calc(100% + 10px);
        display: none;
        grid-template-columns: 1fr;
        align-items: stretch;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: 16px;
        background: var(--bg-soft);
        box-shadow: var(--shadow);
    }

    body.site.site-menu-open:not(.admin-body) .site-nav {
        display: grid;
    }

    body.site:not(.admin-body) .site-nav a,
    body.site:not(.admin-body) .logout-link,
    body.site:not(.admin-body) .admin-shortcut,
    body.site:not(.admin-body) .account-pill,
    body.site:not(.admin-body) .theme-toggle {
        width: 100%;
        justify-content: center;
    }

    .hero {
        grid-template-columns: 1fr;
        align-items: end;
        padding-top: 132px;
    }

    .hero-slot {
        position: absolute;
        right: -90px;
        bottom: 0;
        width: min(62vw, 460px);
        min-height: 420px;
        opacity: 0.42;
    }

    .hero-copy {
        position: relative;
        z-index: 2;
    }

    .home-feature-grid,
    .feature-list {
        grid-template-columns: 1fr;
    }

    .character-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    body.site:not(.admin-body) .site-header {
        margin-top: 10px;
        padding: 9px 10px 9px 14px;
    }

    .hero-band,
    .hero {
        min-height: 690px;
    }

    .hero {
        padding: 124px 18px 42px;
    }

    .hero h1 {
        font-size: 58px;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .hero-slot {
        right: -150px;
        width: 560px;
        opacity: 0.26;
    }

    body.site:not(.admin-body) .site-main {
        padding-inline: 16px;
    }

    .character-strip {
        grid-template-columns: 1fr;
    }

    .character-strip .character-slot {
        min-height: 230px;
    }
}
