/* =========================================================================
   คุมทรัพไววอเลท — Design System
   Dark gaming theme with neon gradient accents
   ========================================================================= */

:root {
    --bg: #070a12;
    --bg-soft: #0c101b;
    --surface: #101523;
    --surface-2: #151b2d;
    --border: #1e2740;
    --border-soft: #182033;

    --text: #eaf0fb;
    --text-dim: #9aa7c2;
    --text-faint: #5f6c8c;

    --cyan: #22d3ee;
    --violet: #8b5cf6;
    --pink: #ec4899;
    --gradient: linear-gradient(135deg, #22d3ee 0%, #8b5cf6 52%, #ec4899 100%);

    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;
    --info: #38bdf8;

    --radius: 18px;
    --radius-sm: 12px;
    --radius-xs: 8px;

    --font: 'Kanit', 'Prompt', system-ui, -apple-system, sans-serif;
    --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    background-image:
        radial-gradient(1200px 600px at 80% -10%, rgba(139, 92, 246, 0.14), transparent 60%),
        radial-gradient(1000px 500px at -10% 20%, rgba(34, 211, 238, 0.10), transparent 55%);
    background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 720px; }

.muted { color: var(--text-faint); }
.mono { font-family: 'Prompt', monospace; letter-spacing: 0.02em; }
.link { color: var(--cyan); }
.link:hover { text-decoration: underline; }
.text-right { text-align: right; }

/* ---------------------------------------------------------------- Layout */
.site-main { min-height: 60vh; }

.section { padding: 64px 0; }
.section--alt { background: linear-gradient(180deg, transparent, var(--bg-soft) 15%, var(--bg-soft) 85%, transparent); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; gap: 16px; }
.section-head.center { justify-content: center; text-align: center; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; letter-spacing: -0.01em; }

.link-more { color: var(--cyan); font-weight: 500; white-space: nowrap; }
.link-more:hover { text-decoration: underline; }

/* ----------------------------------------------------------------- Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 8px 24px -8px rgba(139, 92, 246, 0.7);
    flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.05rem; font-weight: 700; }
.brand-text small { font-size: 0.68rem; color: var(--text-faint); letter-spacing: 0.04em; }

/* ---------------------------------------------------------------- Header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(7, 10, 18, 0.78);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
    padding: 8px 14px; border-radius: 10px; color: var(--text-dim);
    font-weight: 500; font-size: 0.95rem; transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--text); background: var(--surface-2); }
.main-nav a.is-active { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.user-menu { display: flex; align-items: center; gap: 8px; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.user-chip-name { font-size: 0.9rem; font-weight: 500; }

.avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--gradient); color: #fff; font-weight: 600; font-size: 0.85rem;
    text-transform: uppercase;
}
.avatar--sm { width: 26px; height: 26px; font-size: 0.75rem; }

.inline-form { display: inline-block; }

.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------------------------------------------------------------- Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 22px; border-radius: 12px; border: 1px solid transparent;
    font-weight: 600; font-size: 0.95rem; line-height: 1.2;
    transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--gradient); color: #fff;
    box-shadow: 0 10px 28px -10px rgba(139, 92, 246, 0.8);
}
.btn-primary:hover { box-shadow: 0 14px 36px -10px rgba(236, 72, 153, 0.7); transform: translateY(-1px); }

.btn-ghost { background: transparent; border-color: var(--border); color: var(--text-dim); }
.btn-ghost:hover { color: var(--text); border-color: var(--text-faint); background: var(--surface-2); }

.btn-danger { background: rgba(248, 113, 113, 0.12); border-color: rgba(248, 113, 113, 0.35); color: var(--danger); }
.btn-danger:hover { background: rgba(248, 113, 113, 0.22); }

.btn-sm { padding: 7px 14px; font-size: 0.85rem; border-radius: 10px; }
.btn-xs { padding: 4px 10px; font-size: 0.78rem; border-radius: 8px; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; border-radius: 14px; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- Alerts */
.flash-wrap { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }

.alert {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 16px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--surface);
    animation: slideDown .25s ease;
}
.alert-icon { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.alert--success { border-color: rgba(52, 211, 153, 0.4); }
.alert--success .alert-icon { background: rgba(52, 211, 153, 0.15); color: var(--success); }
.alert--error { border-color: rgba(248, 113, 113, 0.4); }
.alert--error .alert-icon { background: rgba(248, 113, 113, 0.15); color: var(--danger); }
.alert--info, .alert--warning { border-color: rgba(56, 189, 248, 0.4); }
.alert--info .alert-icon, .alert--warning .alert-icon { background: rgba(56, 189, 248, 0.15); color: var(--info); }
.alert-close { margin-left: auto; background: none; border: none; color: var(--text-faint); font-size: 1.3rem; line-height: 1; }
.alert-close:hover { color: var(--text); }

@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; overflow: hidden; padding: 90px 0 70px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; }
.orb--1 { width: 420px; height: 420px; background: rgba(34, 211, 238, 0.35); top: -120px; right: -60px; }
.orb--2 { width: 380px; height: 380px; background: rgba(139, 92, 246, 0.38); top: 60px; left: -100px; }
.orb--3 { width: 300px; height: 300px; background: rgba(236, 72, 153, 0.3); bottom: -140px; right: 25%; }

.hero-inner { position: relative; text-align: center; max-width: 760px; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
    background: var(--surface); border: 1px solid var(--border);
    font-size: 0.85rem; color: var(--text-dim);
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.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); } }

.hero-title { font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.grad-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.hero-sub { color: var(--text-dim); font-size: 1.1rem; margin: 18px auto 30px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-stats { display: flex; justify-content: center; gap: 44px; margin-top: 48px; flex-wrap: wrap; }
.stat strong { display: block; font-size: 1.6rem; font-weight: 700; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { font-size: 0.85rem; color: var(--text-faint); }

/* ---------------------------------------------------------------- Game cards */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.game-grid--all { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

.game-card {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 22px 14px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border-soft);
    text-align: center; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.game-card:hover { transform: translateY(-4px); border-color: rgba(139, 92, 246, 0.6); box-shadow: 0 18px 40px -18px rgba(139, 92, 246, 0.6); }
.game-card-icon { transition: transform .25s; }
.game-card:hover .game-card-icon { transform: scale(1.08) rotate(-3deg); }
.game-card-name { font-weight: 600; font-size: 0.98rem; }
.game-card-cat { font-size: 0.78rem; color: var(--text-faint); margin-top: -6px; }

/* Game icon tile */
.game-icon {
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 22%; font-weight: 700; color: #fff; flex: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 10px 24px -12px rgba(0, 0, 0, 0.8);
}
.game-icon--sm { width: 34px; height: 34px; font-size: 0.95rem; border-radius: 10px; }
.game-icon--md { width: 50px; height: 50px; font-size: 1.35rem; border-radius: 14px; }
.game-icon--lg { width: 66px; height: 66px; font-size: 1.8rem; border-radius: 18px; }
.game-icon--xl { width: 86px; height: 86px; font-size: 2.4rem; border-radius: 22px; }

.game-icon--0 { background: linear-gradient(135deg, #22d3ee, #3b82f6); }
.game-icon--1 { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.game-icon--2 { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.game-icon--3 { background: linear-gradient(135deg, #f59e0b, #f97316); }
.game-icon--4 { background: linear-gradient(135deg, #34d399, #10b981); }

/* ---------------------------------------------------------------- Features */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.feature-card {
    padding: 28px 24px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border-soft);
    transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: var(--border); transform: translateY(-3px); }
.feature-icon {
    width: 52px; height: 52px; border-radius: 14px; margin-bottom: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.5rem; background: var(--surface-2); border: 1px solid var(--border);
}
.feature-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { color: var(--text-dim); font-size: 0.92rem; }

/* ---------------------------------------------------------------- CTA */
.cta-box {
    text-align: center; padding: 56px 24px; border-radius: 24px;
    background: var(--gradient); position: relative; overflow: hidden;
}
.cta-box::after { content: ''; position: absolute; inset: 0; background: radial-gradient(500px 200px at 50% 0%, rgba(255,255,255,0.18), transparent 60%); }
.cta-box h2 { font-size: 1.9rem; font-weight: 700; margin-bottom: 10px; }
.cta-box p { margin-bottom: 26px; opacity: 0.92; }
.cta-box .btn-primary { background: #0b0e14; color: #fff; box-shadow: 0 14px 34px -12px rgba(0,0,0,0.6); }

/* ---------------------------------------------------------------- Page hero */
.page-hero { padding: 54px 0 10px; }
.page-title { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 700; letter-spacing: -0.01em; }
.page-sub { color: var(--text-dim); margin-top: 8px; }

.page-hero--game { padding-bottom: 24px; }
.game-head { display: flex; align-items: center; gap: 20px; }

/* ---------------------------------------------------------------- Search */
.search-bar { position: relative; max-width: 480px; margin-bottom: 30px; }
.search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-faint); }
.search-input {
    width: 100%; padding: 14px 18px 14px 46px; border-radius: 14px;
    background: var(--surface); border: 1px solid var(--border); color: var(--text);
    font-family: inherit; font-size: 0.98rem;
}
.search-input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2); }

/* ---------------------------------------------------------------- Forms */
.field { margin-bottom: 16px; }
.field-label { display: block; font-weight: 500; font-size: 0.9rem; margin-bottom: 6px; color: var(--text-dim); }
.req { color: var(--pink); }
.input {
    width: 100%; padding: 12px 14px; border-radius: var(--radius-xs);
    background: var(--bg-soft); border: 1px solid var(--border); color: var(--text);
    font-family: inherit; font-size: 0.95rem; transition: border-color .2s, box-shadow .2s;
}
.input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2); }
.input:disabled { opacity: 0.6; cursor: not-allowed; }
.input--error { border-color: var(--danger); }
.field-hint { display: block; font-size: 0.78rem; color: var(--text-faint); margin-top: 5px; }
.field-error { font-size: 0.82rem; color: var(--danger); margin-top: 5px; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
.form-stack { display: flex; flex-direction: column; gap: 4px; }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 8px; }

.check-line { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 0.9rem; color: var(--text-dim); cursor: pointer; }
.check-line input { accent-color: var(--violet); width: 16px; height: 16px; }

/* ---------------------------------------------------------------- Panel */
.panel { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 24px; }
.panel-title { font-size: 1.15rem; font-weight: 600; margin-bottom: 18px; }

/* ---------------------------------------------------------------- Order form */
.order-form { max-width: 820px; margin: 0 auto; }
.form-section { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; }
.form-section-title { font-size: 1.15rem; font-weight: 600; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.step-num { width: 30px; height: 30px; border-radius: 9px; background: var(--gradient); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 700; flex: none; }

.package-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.package-card {
    position: relative; display: flex; flex-direction: column; gap: 6px;
    padding: 18px 16px; border-radius: var(--radius-sm);
    background: var(--bg-soft); border: 1px solid var(--border); cursor: pointer;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.package-card:hover { border-color: var(--text-faint); }
.package-card input { position: absolute; opacity: 0; pointer-events: none; }
.package-check {
    position: absolute; top: 12px; right: 12px; width: 22px; height: 22px;
    border-radius: 50%; border: 2px solid var(--border); color: transparent;
    display: inline-flex; align-items: center; justify-content: center; font-size: 0.7rem;
}
.package-card:has(input:checked) { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.22); }
.package-card:has(input:checked) .package-check { background: var(--gradient); border-color: transparent; color: #fff; }
.package-name { font-weight: 600; font-size: 0.95rem; }
.package-bonus { font-size: 0.78rem; color: var(--success); }
.package-price { font-weight: 700; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-size: 1.05rem; }

/* ---------------------------------------------------------------- Checkout */
.checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.summary-list { display: flex; flex-direction: column; }
.summary-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.summary-row:last-child { border-bottom: none; }
.summary-label { color: var(--text-dim); }
.summary-value { font-weight: 500; text-align: right; display: inline-flex; align-items: center; gap: 8px; }
.summary-row--total { margin-top: 8px; padding-top: 18px; border-top: 2px solid var(--border); border-bottom: none; }
.summary-row--total .summary-label { font-weight: 600; color: var(--text); }
.price-total { font-size: 1.4rem; font-weight: 700; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.pay-methods { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.pay-method {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    border-radius: var(--radius-sm); background: var(--bg-soft);
    border: 1px solid var(--border); cursor: pointer; font-weight: 500;
}
.pay-method input { position: absolute; opacity: 0; }
.pay-method-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); flex: none; position: relative; }
.pay-method:has(input:checked) { border-color: var(--violet); }
.pay-method:has(input:checked) .pay-method-radio { border-color: var(--violet); }
.pay-method:has(input:checked) .pay-method-radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--gradient); }
.pay-note { font-size: 0.82rem; color: var(--text-faint); margin-bottom: 16px; }

/* ---------------------------------------------------------------- Status */
.status-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 22px; padding: 44px 28px; text-align: center; max-width: 560px; margin: 20px auto; }
.status-icon { width: 76px; height: 76px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 2.2rem; margin-bottom: 20px; }
.status-icon--success { background: rgba(52, 211, 153, 0.15); color: var(--success); box-shadow: 0 0 40px -8px rgba(52, 211, 153, 0.6); }
.status-icon--fail { background: rgba(248, 113, 113, 0.15); color: var(--danger); }
.status-icon--pending { background: rgba(251, 191, 36, 0.15); color: var(--warning); }
.status-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; }
.status-sub { color: var(--text-dim); margin-bottom: 28px; }

.status-meta { text-align: left; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); padding: 16px 0; margin-bottom: 24px; }
.status-meta-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 0.95rem; }
.status-meta-row span { color: var(--text-dim); }
.status-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------- Auth */
.auth-section { padding-top: 40px; }
.auth-card { max-width: 460px; margin: 0 auto; padding: 36px; }
.auth-title { font-size: 1.6rem; font-weight: 700; }
.auth-sub { color: var(--text-dim); margin: 6px 0 24px; }
.auth-alt { text-align: center; margin-top: 20px; color: var(--text-dim); font-size: 0.92rem; }
.auth-alt a { color: var(--cyan); font-weight: 500; }

/* ---------------------------------------------------------------- Account */
.account-tabs { display: flex; gap: 6px; margin-bottom: 22px; border-bottom: 1px solid var(--border-soft); }
.account-tab { padding: 10px 18px; color: var(--text-dim); font-weight: 500; border-bottom: 2px solid transparent; }
.account-tab:hover { color: var(--text); }
.account-tab.is-active { color: var(--text); border-bottom-color: var(--violet); }

.account-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.account-main { display: flex; flex-direction: column; gap: 20px; }

.mini-order-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.mini-order { padding: 12px; border-radius: var(--radius-sm); background: var(--bg-soft); border: 1px solid var(--border-soft); display: block; }
.mini-order:hover { border-color: var(--border); }
.mini-order-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-weight: 500; }
.mini-order-meta { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text-faint); }

/* ---------------------------------------------------------------- Tables */
.table-panel { padding: 0; overflow: hidden; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table thead th { text-align: left; padding: 14px 18px; background: var(--bg-soft); color: var(--text-dim); font-weight: 500; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.table tbody td { padding: 14px 18px; border-top: 1px solid var(--border-soft); vertical-align: middle; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.015); }
.empty-cell { text-align: center; color: var(--text-faint); padding: 30px !important; }

/* ---------------------------------------------------------------- Badges */
.badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 500; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim); white-space: nowrap; }
.badge--success { background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.35); color: var(--success); }
.badge--pending { background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.35); color: var(--warning); }
.badge--processing { background: rgba(56, 189, 248, 0.12); border-color: rgba(56, 189, 248, 0.35); color: var(--info); }
.badge--failed { background: rgba(248, 113, 113, 0.12); border-color: rgba(248, 113, 113, 0.35); color: var(--danger); }
.badge--refunded { background: var(--surface-2); border-color: var(--border); color: var(--text-faint); }

/* ---------------------------------------------------------------- Content pages */
.steps { display: flex; flex-direction: column; gap: 20px; }
.step { display: flex; gap: 18px; align-items: flex-start; padding: 22px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); }
.step-num-lg { width: 48px; height: 48px; border-radius: 14px; background: var(--gradient); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 700; flex: none; }
.step h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.step p { color: var(--text-dim); }
.step p a { color: var(--cyan); }

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 500; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle { font-size: 1.5rem; color: var(--violet); line-height: 1; transition: transform .2s; }
.faq-item[open] .faq-toggle { transform: rotate(45deg); }
.faq-item p { padding: 0 20px 18px; color: var(--text-dim); }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.contact-card { text-align: center; }
.contact-card .feature-icon { margin-left: auto; margin-right: auto; }
.contact-card h3 { margin-bottom: 6px; }
.contact-card p { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 14px; }

.prose h3 { font-size: 1.1rem; font-weight: 600; margin: 20px 0 8px; }
.prose h3:first-child { margin-top: 0; }
.prose p { color: var(--text-dim); margin-bottom: 8px; }

/* ---------------------------------------------------------------- Empty */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 3rem; margin-bottom: 14px; }
.empty-state p { color: var(--text-dim); margin-bottom: 18px; }

/* ---------------------------------------------------------------- Footer */
.site-footer { border-top: 1px solid var(--border-soft); background: var(--bg-soft); padding: 48px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-dim); padding: 4px 0; font-size: 0.92rem; }
.footer-col a:hover { color: var(--text); }
.footer-about p { color: var(--text-dim); font-size: 0.9rem; margin-top: 12px; }
.footer-bottom { border-top: 1px solid var(--border-soft); margin-top: 36px; padding-top: 20px; text-align: center; color: var(--text-faint); font-size: 0.85rem; }

/* ---------------------------------------------------------------- Announcement */
.announcement {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(139, 92, 246, 0.14), rgba(236, 72, 153, 0.14));
    border-bottom: 1px solid var(--border-soft);
}
.announcement-inner {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 20px; font-size: 0.92rem;
}
.announcement-icon { flex: none; }
.announcement-text { color: var(--text-dim); }

/* ---------------------------------------------------------------- Copy button */
.copy-btn {
    display: inline-flex; align-items: center; gap: 4px;
    margin-left: 8px; padding: 3px 10px; border-radius: 7px;
    background: var(--surface-2); border: 1px solid var(--border);
    color: var(--cyan); font-family: var(--font); font-size: 0.76rem; font-weight: 500;
    cursor: pointer; transition: border-color .2s, color .2s; vertical-align: middle;
}
.copy-btn:hover { border-color: var(--cyan); }
.copy-btn.is-copied { color: var(--success); border-color: var(--success); }

/* ---------------------------------------------------------------- Error page */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.error-card { text-align: center; max-width: 460px; }
.error-code { font-size: 5rem; font-weight: 700; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }
.error-card h1 { font-size: 1.5rem; margin: 12px 0 8px; }
.error-card p { color: var(--text-dim); margin-bottom: 24px; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 900px) {
    .checkout-grid, .account-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    .main-nav {
        position: fixed; inset: 70px 0 auto 0; flex-direction: column;
        background: var(--bg-soft); border-bottom: 1px solid var(--border);
        padding: 14px 20px; gap: 4px; transform: translateY(-120%); transition: transform .25s ease; z-index: 49;
    }
    .main-nav.is-open { transform: translateY(0); }
    .main-nav a { padding: 12px 14px; width: 100%; }
    .nav-toggle { display: flex; }
    .header-actions .btn-ghost:not(.user-menu .btn-ghost) { display: none; }
    .hero { padding: 60px 0 50px; }
    .hero-stats { gap: 28px; }
    .form-grid { grid-template-columns: 1fr; }
    .section { padding: 46px 0; }
}

@media (max-width: 520px) {
    .footer-grid { grid-template-columns: 1fr; }
    .user-chip-name { display: none; }
    .package-grid { grid-template-columns: repeat(2, 1fr); }
    .game-grid { grid-template-columns: repeat(3, 1fr); }
    .game-grid--all { grid-template-columns: repeat(3, 1fr); }
    .game-icon--lg { width: 54px; height: 54px; font-size: 1.5rem; }
    .game-card { padding: 14px 10px; }
    .game-card-name { font-size: 0.85rem; }
}
