:root {
    --bg: #0b1020;
    --panel: #121a2e;
    --panel-2: #0f1628;
    --border: #22304d;
    --text: #e7eefc;
    --muted: #8b9cba;
    --gold: #f5a623;
    --blue: #4f8cff;
    --green: #35d07f;
    --red: #ff5c7a;
    --radius: 14px;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(245, 166, 35, .12), transparent 60%),
        radial-gradient(800px 450px at 5% 0%, rgba(79, 140, 255, .12), transparent 55%),
        var(--bg);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(11, 16, 32, .84);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; letter-spacing: .5px; }

.brand-mark {
    padding: 4px 8px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--gold), #ff7a18);
    color: #1a1205;
    font-size: 14px;
}

.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.inline { display: inline; }

.main { padding: 36px 0 64px; min-height: 62vh; }

.hero {
    padding: 48px;
    margin-bottom: 36px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background:
        linear-gradient(120deg, rgba(245, 166, 35, .18), transparent 45%),
        linear-gradient(300deg, rgba(79, 140, 255, .18), transparent 50%),
        var(--panel);
}

.hero .eyebrow { color: var(--gold); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { margin: 12px 0 12px; font-size: clamp(28px, 4vw, 44px); line-height: 1.15; }
.hero p { margin: 0 0 24px; max-width: 640px; color: var(--muted); line-height: 1.8; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 18px; }
.section-title h2 { margin: 0; font-size: 22px; }
.section-title .more { color: var(--muted); font-size: 13px; }

.game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.game-section-title {
    align-items: flex-end;
}

.game-section-title h2 {
    margin: 0;
}

.game-section-title p {
    margin: 4px 0 0;
    font-size: 12px;
}

.boutique-grid {
    grid-template-columns: repeat(3, 1fr);
}

.boutique-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 330px;
    border-style: dashed;
    background: #fffdf8;
}

.boutique-empty-inner {
    padding: 24px;
    text-align: center;
}

.boutique-empty-inner span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 12px;
    border: 1px dashed #e0c99d;
    border-radius: 50%;
    color: #c99a3d;
    font-size: 26px;
}

.boutique-empty-inner strong {
    display: block;
    color: #6b5338;
    font-size: 14px;
}

.boutique-empty-inner small {
    display: block;
    margin-top: 6px;
    color: #a58c70;
    font-size: 11px;
}

.game-card {
    display: block;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    transition: transform .15s ease, border-color .15s ease;
}
.game-card:hover { transform: translateY(-3px); border-color: #35507f; }

.game-cover { aspect-ratio: 16 / 9; background-size: cover; background-position: center; }
.game-body { padding: 16px; }
.game-body h3 { margin: 0 0 8px; font-size: 17px; }
.game-body p { margin: 0 0 12px; min-height: 42px; color: var(--muted); font-size: 13px; line-height: 1.6; }

.meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }

.badge {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
}

.badge.online, .badge.published { color: var(--green); border-color: rgba(53, 208, 127, .4); background: rgba(53, 208, 127, .08); }
.badge.offline, .badge.draft { color: var(--muted); }
.badge.maintenance { color: var(--gold); border-color: rgba(245, 166, 35, .4); background: rgba(245, 166, 35, .08); }
.badge.pending { color: var(--gold); border-color: rgba(245, 166, 35, .4); background: rgba(245, 166, 35, .08); }
.badge.paid, .badge.success { color: var(--green); border-color: rgba(53, 208, 127, .4); background: rgba(53, 208, 127, .08); }
.badge.cancelled, .badge.failed { color: var(--red); border-color: rgba(255, 92, 122, .4); background: rgba(255, 92, 122, .08); }

.amount.positive { color: var(--green); }
.amount.negative { color: var(--red); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
}
.product-price { color: var(--gold); font-size: 30px; font-weight: 800; }
.product-name { font-size: 15px; }
.product-bonus { min-height: 20px; color: var(--green); font-size: 13px; }
.product-card .btn { margin-top: 10px; }

.product-option {
    position: relative;
    cursor: pointer;
}

.product-option input[type="radio"] {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 18px;
    height: 18px;
    accent-color: #b07a20;
}

.product-option:has(input:checked) {
    border-color: #d8a24a;
    box-shadow: 0 0 0 2px rgba(216, 162, 74, .16);
}

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

.channel-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--panel-2);
    cursor: pointer;
}

.channel-option input {
    accent-color: #b07a20;
}

.channel-option span {
    font-size: 14px;
    font-weight: 700;
}

.channel-option small {
    margin-left: auto;
    color: var(--muted);
    font-size: 11px;
}

.channel-option:has(input:checked) {
    border-color: #d8a24a;
    background: #fff8ec;
}

.custom-amount-box {
    margin-top: 22px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--panel-2);
}

.custom-amount-box label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
}

.custom-amount-box input {
    width: 100%;
    max-width: 320px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    font-size: 15px;
}

.custom-amount-box small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
}

.form-errors {
    padding: 10px 12px;
    border: 1px solid #e2b4b4;
    border-radius: 8px;
    background: #fff3f3;
    color: #8a2c2c;
    font-size: 13px;
}

.form-success {
    padding: 10px 12px;
    border: 1px solid #b8d8bd;
    border-radius: 8px;
    background: #f1fbf3;
    color: #246a33;
    font-size: 13px;
}

.wechat-login {
    margin-bottom: 18px;
}

.wechat-panel {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--panel-2);
    text-align: center;
}

.wechat-panel img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}

.wechat-code {
    margin: 12px 0 4px;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 8px;
    color: #b07a20;
}

.wechat-panel .btn {
    margin-top: 8px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0;
    color: var(--muted);
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.panel {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
}

.panel + .panel { margin-top: 22px; }
.panel h2 { margin: 0 0 16px; font-size: 18px; }

.btn {
    display: inline-block;
    padding: 10px 18px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gold), #ff8a00);
    color: #1a1205;
    font-weight: 700;
    cursor: pointer;
}
.btn:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn.danger { background: var(--red); color: #fff; }
.btn.tiny { padding: 4px 10px; font-size: 12px; }
.btn.block { width: 100%; text-align: center; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

.alert { margin-bottom: 18px; padding: 12px 16px; border-radius: 10px; font-size: 14px; }
.alert.success { background: rgba(53, 208, 127, .1); border: 1px solid rgba(53, 208, 127, .35); }
.alert.error { background: rgba(255, 92, 122, .1); border: 1px solid rgba(255, 92, 122, .35); }
.alert ul { margin: 0; padding-left: 18px; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.table th { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.table tr:last-child td { border-bottom: 0; }
.table .actions { display: flex; gap: 8px; align-items: center; }

.form label { display: block; margin-bottom: 14px; color: var(--muted); font-size: 13px; }
.form input, .form select, .form textarea {
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--panel-2);
    color: var(--text);
    font-size: 14px;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-actions { display: flex; gap: 12px; margin-top: 8px; }

.inline-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.inline-form input, .inline-form select {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--panel-2);
    color: var(--text);
}

.auth-card {
    max-width: 430px;
    margin: 40px auto;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--panel);
}
.auth-card h1 { margin: 0 0 22px; font-size: 22px; }
.auth-card .muted { margin-top: 18px; }
.checkbox { display: flex !important; align-items: center; gap: 8px; }
.checkbox input { width: auto; margin: 0; }

.muted { color: var(--muted); font-size: 13px; }

.code-pill {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px dashed rgba(245, 166, 35, .5);
    background: var(--panel-2);
    color: var(--gold);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 20px;
    letter-spacing: .18em;
}

.progress {
    height: 10px;
    margin: 14px 0 10px;
    border-radius: 999px;
    background: var(--panel-2);
    overflow: hidden;
}
.progress > div {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), #ff8a00);
}

.table input, .table select {
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--panel-2);
    color: var(--text);
    font-size: 13px;
}

.json-box {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #0b0f14;
    color: #c9d1d9;
    font-size: 12px;
    line-height: 1.55;
    overflow: auto;
    max-height: 480px;
    white-space: pre-wrap;
    word-break: break-word;
}

.brand-logo {
    display: block;
    max-height: 42px;
    width: auto;
}

.hero-video {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(245, 166, 35, .28);
    border-radius: 16px;
    background: #080604;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
}

.promo-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-caption {
    position: absolute;
    left: 24px;
    bottom: 20px;
    padding: 10px 16px;
    border-left: 3px solid var(--gold);
    background: linear-gradient(90deg, rgba(0, 0, 0, .68), rgba(0, 0, 0, 0));
    text-shadow: 0 2px 12px rgba(0, 0, 0, .8);
}

.hero-video-caption .eyebrow {
    margin-bottom: 2px;
    color: var(--gold);
    font-size: 11px;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.hero-video-caption strong {
    display: block;
    color: #ffe6a8;
    font-size: 22px;
    letter-spacing: .12em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0 6px;
}

.header-search, .header-catalog {
    display: none;
}

.portal-page {
    --bg: #f5f0e7;
    --panel: #ffffff;
    --panel-2: #fbf6ec;
    --border: #eadfcd;
    --text: #2c2218;
    --muted: #8b7359;
    --gold: #b07a20;
    --blue: #c98a20;
    --green: #237a4b;
    --red: #d7372a;
    background: #f5f0e7;
    color: var(--text);
}

.portal-page .site-header {
    background: #fff;
    border-bottom: 1px solid #eadfcd;
    box-shadow: 0 2px 18px rgba(80, 55, 20, .06);
}

.portal-page .nav {
    height: 76px;
    gap: 22px;
}

.portal-page .brand {
    color: #9a6410;
    font-size: 22px;
}

.portal-page .brand-logo {
    max-height: 52px;
}

.portal-page .nav-links {
    flex: 1;
    justify-content: center;
    gap: 24px;
    color: #4d3b28;
}

.portal-page .nav-links a {
    position: relative;
}

.portal-page .nav-links a.active {
    color: #d7372a;
    font-weight: 700;
}

.portal-page .nav-links a.active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -26px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: #d7372a;
}

.portal-page .nav-links a:hover {
    color: #d7372a;
}

.portal-page .header-search {
    display: flex;
    align-items: center;
    height: 38px;
    overflow: hidden;
    border: 1px solid #ead7b8;
    border-radius: 999px;
    background: #fffaf1;
}

.portal-page .header-search input {
    width: 150px;
    padding: 0 14px;
    border: 0;
    background: transparent;
    color: #3d2c1d;
    outline: none;
}

.portal-page .header-search button {
    padding: 0 14px;
    border: 0;
    background: transparent;
    color: #b07a20;
    font-size: 18px;
    cursor: pointer;
}

.portal-page .header-catalog {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 18px;
    border-radius: 6px;
    background: #e63b2e;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(230, 59, 46, .24);
}

.portal-page .main {
    position: relative;
    z-index: 1;
    padding: 28px 0 70px;
}

.portal-page.home-page .main {
    padding: 0 0 70px;
}

.portal-side {
    display: none;
    position: fixed;
    top: 96px;
    bottom: 30px;
    width: min(320px, calc((100vw - 1240px) / 2 - 12px));
    z-index: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 38%, transparent 78%);
    mask-image: radial-gradient(ellipse at center, #000 38%, transparent 78%);
}

.portal-side-left {
    left: 6px;
}

.portal-side-right {
    right: 6px;
}

@media (min-width: 1680px) {
    .portal-side {
        display: block;
    }
}

.side-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 14px;
}

.side-preview-grid > div {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--panel-2);
}

.side-preview-grid span {
    color: var(--muted);
    font-size: 12px;
}

.side-preview-grid img {
    display: block;
    width: 100%;
    max-height: 240px;
    margin: 8px 0;
    border-radius: 6px;
    background: #0b0f14;
    object-fit: contain;
}

.portal-hero-wrap {
    padding-top: 0;
}

.portal-stage {
    position: relative;
}

.portal-hero {
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    background: #160d04;
    box-shadow: inset 0 0 0 1px rgba(120, 78, 20, .18);
}

.portal-video {
    display: block;
    width: 100%;
    height: clamp(260px, 30vw, 420px);
    object-fit: cover;
}

.portal-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .28));
    pointer-events: none;
}

.hero-cards-wrap {
    position: relative;
    z-index: 3;
    margin-top: -40px;
}

.hero-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.25fr;
    gap: 14px;
    align-items: stretch;
}

.promo-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 150px;
    padding: 20px;
    overflow: hidden;
    border-radius: 10px;
    color: #fff;
    box-shadow: 0 14px 30px rgba(48, 30, 10, .18);
}

.promo-tile::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -40px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}

.promo-red {
    background: linear-gradient(135deg, #d9251c, #ff8a00);
}

.promo-purple {
    background: linear-gradient(135deg, #2a1746, #7c3aed);
}

.promo-dark {
    background: linear-gradient(135deg, #241a14, #7a4a1d);
}

.promo-kicker {
    font-size: 12px;
    letter-spacing: .14em;
    opacity: .85;
}

.promo-tile strong {
    margin: 6px 0 4px;
    font-size: 20px;
}

.promo-tile span {
    font-size: 13px;
    line-height: 1.5;
    opacity: .9;
}

.promo-cta {
    margin-top: 12px;
    color: #ffe8b0 !important;
    font-weight: 700;
    opacity: 1 !important;
}

.member-card {
    padding: 18px;
    border: 1px solid #eadfcd;
    border-radius: 10px;
    background: #fff;
    color: #2c2218;
    box-shadow: 0 14px 30px rgba(48, 30, 10, .12);
}

.member-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.member-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f3c15a, #c97b12);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

.member-head strong {
    display: block;
    font-size: 15px;
}

.member-head span {
    display: block;
    color: #8b7359;
    font-size: 11px;
}

.member-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.member-stats div {
    padding: 7px 9px;
    border: 1px solid #f0e5d2;
    border-radius: 7px;
    background: #fbf6ec;
}

.member-stats span {
    display: block;
    color: #8b7359;
    font-size: 11px;
}

.member-stats b {
    display: block;
    margin-top: 2px;
    font-size: 13px;
}

.member-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.member-actions .btn {
    flex: 1;
    padding: 8px 10px;
    font-size: 13px;
}

.portal-page .btn.disabled {
    opacity: .6;
    cursor: not-allowed;
}

.portal-filter {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0 18px;
    padding: 12px 16px;
    border: 1px solid #eadfcd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(80, 55, 20, .05);
}

.portal-tabs {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
}

.portal-label {
    color: #8b7359;
}

.portal-tabs a {
    padding: 5px 10px;
    border-radius: 999px;
    color: #4d3b28;
}

.portal-tabs a.active {
    background: #fbe8d2;
    color: #d7372a;
    font-weight: 700;
}

.portal-notice {
    flex: 1;
    overflow: hidden;
    color: #b07a20;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-search {
    display: flex;
    overflow: hidden;
    border: 1px solid #ead7b8;
    border-radius: 6px;
}

.portal-search input {
    width: 190px;
    padding: 8px 10px;
    border: 0;
    background: #fffaf1;
    color: #3d2c1d;
    outline: none;
}

.portal-search button {
    padding: 0 14px;
    border: 0;
    background: #f0a500;
    color: #fff;
    cursor: pointer;
}

.portal-page .section-title h2 {
    color: #2c2218;
}

.portal-page .game-card {
    border-color: #eadfcd;
    background: #fff;
    box-shadow: 0 10px 24px rgba(80, 55, 20, .06);
}

.portal-page .game-card:hover {
    border-color: #d9b98a;
}

.portal-page .game-body h3 {
    color: #2c2218;
}

.portal-page .game-body p,
.portal-page .meta {
    color: #8b7359;
}

.portal-page .panel {
    border-color: #eadfcd;
    background: #fff;
    color: #2c2218;
}

.portal-section-title {
    margin-top: 8px;
}

@media (max-width: 1080px) {
    .portal-page .header-search {
        display: none;
    }

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

@media (max-width: 720px) {
    .portal-page .nav {
        height: auto;
        flex-wrap: wrap;
        justify-content: center;
        padding: 12px 0;
    }

    .portal-page .nav-links {
        order: 3;
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .portal-page .header-catalog {
        order: 2;
    }

    .portal-video {
        height: 220px;
    }

    .hero-cards-wrap {
        margin-top: -34px;
    }

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

    .portal-filter {
        flex-wrap: wrap;
    }

    .portal-notice {
        order: 3;
        width: 100%;
        white-space: normal;
    }

    .portal-search input {
        width: 140px;
    }
}

.hero-cards {
    position: relative;
    z-index: 3;
    grid-template-columns: 1fr 1fr 1fr 1.08fr;
    margin-top: -40px;
}

.promo-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #eadfcd;
    border-radius: 10px;
    background: #fff;
    color: #2c2218;
    box-shadow: 0 14px 30px rgba(48, 30, 10, .12);
    transition: transform .15s ease, box-shadow .15s ease;
}

.promo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(48, 30, 10, .18);
}

.promo-media {
    height: 154px;
    background-position: center;
    background-size: 100% 100%;
}

.promo-copy {
    flex: 1;
    padding: 12px 14px 14px;
    border-top: 1px solid #f0e5d2;
}

.promo-copy strong {
    display: block;
    color: #2c2218;
    font-size: 15px;
    line-height: 1.4;
}

.promo-copy span {
    display: block;
    margin-top: 6px;
    color: #8b7359;
    font-size: 12px;
    line-height: 1.5;
}

.member-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
}

.member-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.member-avatar {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    font-size: 24px;
}

.member-pills {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    max-width: 150px;
}

.member-pills form {
    margin: 0;
}

.pill {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 7px 12px;
    border: 1px solid #e8c98f;
    border-radius: 999px;
    background: #fffaf1;
    color: #b07a20;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    cursor: pointer;
}

.pill:hover {
    border-color: #d9a94a;
    background: #fff4de;
}

.pill.disabled {
    opacity: .6;
    cursor: not-allowed;
}

.member-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 14px;
}

.member-stats div {
    padding: 7px 8px;
}

.member-stats span {
    font-size: 10px;
    white-space: nowrap;
}

.member-stats b {
    font-size: 12px;
    white-space: nowrap;
}

@media (max-width: 1080px) {
    .hero-cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .hero-cards {
        grid-template-columns: 1fr;
        margin-top: -34px;
    }

    .promo-media {
        height: 170px;
    }

    .member-stats {
        grid-template-columns: 1fr 1fr;
    }
}

.member-page {
    background: linear-gradient(180deg, #faf6ee 0%, #f4ede1 100%);
}

.member-page .main {
    padding: 24px 0 70px;
}

.member-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.dash-sidebar {
    position: sticky;
    top: 92px;
    overflow: hidden;
    border: 1px solid #eadfcd;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(80, 55, 20, .07);
}

.profile-card {
    padding: 24px 18px 20px;
    border-bottom: 1px solid #f0e2cc;
    background: linear-gradient(180deg, #fff8eb, #fdf0da);
    text-align: center;
}

.profile-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    margin: 0 auto 12px;
    border: 3px solid #e6c27d;
    border-radius: 50%;
    background: linear-gradient(135deg, #f3c15a, #b96b0e);
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(185, 107, 14, .2);
}

.profile-card h2 {
    margin: 0 0 6px;
    color: #352516;
    font-size: 18px;
}

.profile-card p {
    margin: 2px 0;
    color: #8b7359;
    font-size: 12px;
}

.verify-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 3px 12px;
    border: 1px solid #e8c98f;
    border-radius: 999px;
    background: #fff8e9;
    color: #b07a20;
    font-size: 11px;
}

.dash-menu {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}

.dash-menu a,
.dash-menu .menu-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 20px;
    border: 0;
    border-left: 3px solid transparent;
    background: transparent;
    color: #4d3b28;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.dash-menu a:hover,
.dash-menu .menu-logout:hover {
    background: #fffaf1;
    color: #d7372a;
}

.dash-menu a.active {
    border-left-color: #e63b2e;
    background: #fff5ea;
    color: #d7372a;
    font-weight: 700;
}

.menu-icon {
    width: 18px;
    color: #b07a20;
    font-size: 14px;
    text-align: center;
}

.dash-menu form {
    margin: 0;
}

.dash-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.dash-top {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 16px;
}

.vip-banner {
    padding: 20px;
    border: 1px solid rgba(226, 190, 120, .24);
    border-radius: 10px;
    background: linear-gradient(135deg, #211817, #3d2a1e 60%, #2a1c15);
    color: #f7e6c3;
    box-shadow: 0 14px 30px rgba(35, 22, 12, .22);
}

.vip-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.vip-level {
    padding: 3px 9px;
    border: 1px solid rgba(240, 194, 90, .55);
    border-radius: 4px;
    color: #f3c15a;
    font-size: 12px;
    font-weight: 700;
}

.vip-head strong {
    font-size: 18px;
    color: #ffe4a3;
}

.vip-id {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #d9c19a;
    font-size: 11px;
}

.vip-amount {
    margin-left: auto;
    color: #f1d18d;
    font-size: 13px;
}

.vip-progress {
    height: 8px;
    margin: 16px 0 14px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
}

.vip-progress span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #f3c15a, #ff9d1e);
}

.vip-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #caae82;
    font-size: 12px;
}

.vip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f3c15a, #e89b18);
    color: #3a2208;
    font-size: 13px;
    font-weight: 700;
}

.super-card {
    padding: 18px;
    border: 1px solid #eadfcd;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(80, 55, 20, .06);
}

.super-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.super-crown {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff6e2;
    color: #c98a20;
    font-size: 20px;
}

.super-head div {
    flex: 1;
    min-width: 0;
}

.super-head strong {
    display: block;
    color: #352516;
    font-size: 15px;
}

.super-head span:not(.super-crown) {
    display: block;
    margin-top: 3px;
    color: #8b7359;
    font-size: 11px;
}

.super-rights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 16px;
}

.super-rights div {
    padding: 9px;
    border: 1px solid #f0e5d2;
    border-radius: 7px;
    background: #fbf6ec;
    text-align: center;
}

.super-rights span {
    display: block;
    color: #8b7359;
    font-size: 10px;
}

.super-rights b {
    display: block;
    margin-top: 3px;
    color: #b07a20;
    font-size: 12px;
}

.super-plans-panel {
    padding: 18px;
    border: 1px solid #eadfcd;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(80, 55, 20, .06);
}

.super-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

.super-plan-card {
    position: relative;
    overflow: hidden;
    padding: 18px 16px 16px;
    border: 1px solid #eadfcd;
    border-radius: 10px;
    background: linear-gradient(180deg, #fffdf8, #fff5e6);
}

.super-plan-card:nth-child(1) {
    border-top: 3px solid #e6b34f;
}

.super-plan-card:nth-child(2) {
    border-top: 3px solid #9aa7b5;
}

.super-plan-card:nth-child(3) {
    border-top: 3px solid #8a63e8;
}

.super-plan-card.current {
    border-color: #e0a52e;
    box-shadow: 0 0 0 2px rgba(224, 165, 46, .16);
}

.plan-current {
    position: absolute;
    top: 0;
    right: 0;
    padding: 3px 9px;
    border-radius: 0 0 0 8px;
    background: #e63b2e;
    color: #fff;
    font-size: 10px;
}

.plan-index {
    color: #d9c19a;
    font-size: 11px;
    letter-spacing: .2em;
}

.super-plan-card strong {
    display: block;
    margin: 4px 0 8px;
    color: #3b2a1a;
    font-size: 18px;
}

.plan-price {
    color: #d7372a;
    font-size: 28px;
    font-weight: 800;
}

.plan-price small {
    color: #a58c70;
    font-size: 12px;
    font-weight: 400;
}

.plan-perks {
    margin: 10px 0;
    padding: 0;
    list-style: none;
    color: #6b5338;
    font-size: 12px;
}

.plan-perks li {
    padding: 3px 0;
}

.plan-perks li::before {
    content: "✓";
    margin-right: 6px;
    color: #c98a20;
}

.plan-desc {
    min-height: 32px;
    margin: 0 0 8px;
    color: #8b7359;
    font-size: 11px;
    line-height: 1.5;
}

.super-plan-card .btn {
    margin-top: 4px;
}

.wallet-panel,
.signin-panel,
.invite-panel {
    padding: 18px;
    border: 1px solid #eadfcd;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(80, 55, 20, .06);
}

.wallet-panel .section-title,
.signin-panel .section-title,
.invite-panel .section-title {
    margin-bottom: 14px;
}

.wallet-panel .section-title h2,
.signin-panel .section-title h2,
.invite-panel .section-title h2 {
    color: #352516;
    font-size: 17px;
}

.wallet-panel .section-title h2 small {
    color: #b07a20;
    font-size: 10px;
    letter-spacing: .16em;
}

.wallet-actions {
    display: flex;
    gap: 8px;
}

.wallet-grid {
    display: grid;
    grid-template-columns: 1.25fr repeat(5, 1fr);
    gap: 10px;
}

.wallet-stat {
    padding: 12px 10px;
    border: 1px solid #f0e5d2;
    border-radius: 8px;
    background: #fbf6ec;
}

.wallet-stat span {
    display: block;
    color: #8b7359;
    font-size: 10px;
}

.wallet-stat b {
    display: block;
    margin-top: 6px;
    color: #4d3b28;
    font-size: 14px;
    white-space: nowrap;
}

.wallet-main {
    background: linear-gradient(135deg, #e64335, #f08a3c);
    border-color: transparent;
    color: #fff;
}

.wallet-main span {
    color: rgba(255, 255, 255, .82);
}

.wallet-main strong {
    display: block;
    margin: 6px 0 4px;
    color: #fff;
    font-size: 24px;
}

.wallet-main small {
    color: rgba(255, 255, 255, .75);
    font-size: 10px;
}

.signin-timeline {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    padding: 10px 4px 4px;
}

.signin-day {
    position: relative;
    text-align: center;
}

.signin-day::before {
    content: "";
    position: absolute;
    top: 14px;
    right: -50%;
    left: 50%;
    height: 2px;
    background: #f0e5d2;
}

.signin-day:last-child::before {
    display: none;
}

.signin-dot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0 auto 6px;
    border: 2px solid #e8dcc8;
    border-radius: 50%;
    background: #fff;
    color: #fff;
    font-size: 12px;
}

.signin-day.done .signin-dot {
    border-color: #f0b44c;
    background: #f0b44c;
}

.signin-day.today .signin-dot {
    border-color: #e63b2e;
    box-shadow: 0 0 0 3px rgba(230, 59, 46, .1);
}

.signin-day b {
    display: block;
    color: #4d3b28;
    font-size: 11px;
}

.signin-day small {
    display: block;
    margin-top: 2px;
    color: #a58c70;
    font-size: 10px;
}

.signin-day.today small {
    color: #d7372a;
    font-weight: 700;
}

.invite-summary {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 10px;
}

.invite-total {
    padding: 14px 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, #241812, #4c3423);
    color: #f7e6c3;
}

.invite-total span {
    display: block;
    color: #d9c19a;
    font-size: 11px;
}

.invite-total strong {
    display: block;
    margin: 6px 0 3px;
    color: #ffe4a3;
    font-size: 24px;
}

.invite-total small {
    color: #bfa77f;
    font-size: 10px;
}

.invite-stat {
    padding: 14px;
    border: 1px solid #f0e5d2;
    border-radius: 8px;
    background: #fbf6ec;
    text-align: center;
}

.invite-stat span {
    display: block;
    color: #8b7359;
    font-size: 11px;
}

.invite-stat b {
    display: block;
    margin-top: 8px;
    color: #b07a20;
    font-size: 22px;
}

.invite-link {
    display: flex;
    gap: 8px;
    margin: 12px 0;
    padding: 6px;
    border: 1px solid #f0e5d2;
    border-radius: 7px;
    background: #fffaf1;
}

.invite-link input {
    flex: 1;
    min-width: 0;
    padding: 6px 8px;
    border: 0;
    background: transparent;
    color: #6b5338;
    font-size: 12px;
    outline: none;
}

.invite-rules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.invite-rules div {
    padding: 12px 14px;
    border: 1px solid #f0e5d2;
    border-radius: 8px;
    background: #fffdf9;
}

.invite-rules strong {
    display: block;
    color: #4d3b28;
    font-size: 12px;
}

.invite-rules span {
    display: block;
    margin-top: 4px;
    color: #8b7359;
    font-size: 11px;
    line-height: 1.5;
}

@media (max-width: 1080px) {
    .member-shell {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .boutique-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dash-top {
        grid-template-columns: 1fr;
    }

    .wallet-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 760px) {
    .member-shell {
        grid-template-columns: 1fr;
    }

    .channel-grid {
        grid-template-columns: 1fr;
    }

    .boutique-grid {
        grid-template-columns: 1fr;
    }

    .dash-sidebar {
        position: static;
    }

    .dash-menu {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .wallet-grid,
    .invite-summary {
        grid-template-columns: 1fr 1fr;
    }

    .wallet-main {
        grid-column: 1 / -1;
    }

    .invite-rules {
        grid-template-columns: 1fr;
    }

    .signin-timeline {
        gap: 4px;
    }

    .signin-day b {
        font-size: 10px;
    }
}

.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 26px; color: var(--muted); font-size: 14px; }
.pager a { color: var(--text); }
.pager .disabled { opacity: .4; }

.site-footer { padding: 22px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }

.admin-body {
    --bg: #f5f0e7;
    --panel: #ffffff;
    --panel-2: #fbf6ec;
    --border: #eadfcd;
    --text: #2c2218;
    --muted: #8b7359;
    --gold: #b07a20;
    --blue: #c98a20;
    --green: #237a4b;
    --red: #d7372a;
    background:
        radial-gradient(900px 420px at 100% 0, rgba(201, 154, 61, .12), transparent 62%),
        #f5f0e7;
    color: var(--text);
}

.admin-shell { display: flex; min-height: 100vh; }

.admin-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 238px;
    height: 100vh;
    padding: 20px 14px;
    border-right: 1px solid var(--border);
    background: #fffdf8;
    box-shadow: 8px 0 30px rgba(111, 82, 35, .04);
}

.admin-sidebar .brand {
    padding: 4px 8px 16px;
    border-bottom: 1px solid var(--border);
    color: #2c2218;
    font-size: 17px;
}

.admin-sidebar nav { display: flex; flex-direction: column; gap: 4px; }

.admin-sidebar nav a {
    display: flex;
    align-items: center;
    padding: 11px 12px;
    border-radius: 10px;
    color: #6b5338;
    font-size: 14px;
}

.admin-sidebar nav a:hover {
    background: #fbf1e2;
    color: var(--gold);
}

.admin-sidebar nav a.active {
    background: #fbe8d2;
    color: #d7372a;
    font-weight: 700;
}

.admin-main {
    flex: 1;
    min-width: 0;
    max-width: 1500px;
    padding: 28px 36px 52px;
}

.admin-topbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.admin-eyebrow {
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
}

.admin-topbar h1 {
    margin: 5px 0 0;
    font-size: 26px;
    letter-spacing: .02em;
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.admin-topbar-actions a {
    color: var(--muted);
}

.admin-topbar-actions a:hover {
    color: var(--gold);
}

.admin-pill {
    padding: 6px 12px;
    border: 1px solid #ecd9ba;
    border-radius: 999px;
    background: #fffdf8;
    color: var(--gold);
    font-size: 12px;
}

.admin-main .panel {
    box-shadow: 0 10px 30px rgba(111, 82, 35, .04);
}

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; margin-bottom: 24px; }
.stat { padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); box-shadow: 0 10px 30px rgba(111, 82, 35, .04); }
.stat .num { color: var(--gold); font-size: 30px; font-weight: 800; }
.stat .label { color: var(--muted); font-size: 13px; }

.admin-user {
    margin-top: auto;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fbf6ec;
    font-size: 13px;
}

.admin-user-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f6e2c4;
    color: var(--gold);
    font-weight: 800;
}

.admin-user strong { display: block; font-size: 13px; }
.admin-user .link-btn { margin-top: 10px; }
.link-btn { padding: 0; border: 0; background: none; color: var(--muted); font-size: 13px; cursor: pointer; }
.link-btn:hover { color: var(--text); }

.admin-login-body { display: grid; place-items: center; min-height: 100vh; }

@media (max-width: 1000px) {
    .game-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .container { width: calc(100% - 28px); }
    .game-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
    .nav-links { gap: 12px; font-size: 13px; }
    .hero { padding: 28px; }
    .admin-shell { flex-direction: column; }
    .admin-sidebar { position: static; width: 100%; height: auto; }
}
