:root {
    --bg: #0a1f14;
    --bg-2: #0d2b1a;
    --panel: #10301d;
    --panel-2: #15391f;
    --green: #2ecc71;
    --green-dark: #1f9e57;
    --gold: #f5c542;
    --gold-2: #e0a82e;
    --red: #e74c3c;
    --text: #eafaf0;
    --muted: #8fb3a0;
    --line: rgba(255, 255, 255, 0.08);
    --radius: 16px;
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text);
    background:
        radial-gradient(900px 500px at 80% -10%, rgba(46, 204, 113, 0.18), transparent),
        radial-gradient(700px 400px at 0% 0%, rgba(245, 197, 66, 0.10), transparent),
        var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* ---------- Navbar ---------- */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    background: rgba(8, 24, 15, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
    flex-wrap: wrap;
    gap: 12px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo {
    height: 40px;
    width: auto;
    max-width: 160px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
    transition: opacity .15s;
}
.brand:hover .brand-logo { opacity: 0.92; }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px; background: none; border: none;
    cursor: pointer; padding: 8px; z-index: 60;
}
.nav-toggle span {
    display: block; width: 24px; height: 2px; background: var(--text);
    border-radius: 2px; transition: transform .2s, opacity .2s;
}
.nav-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.nav-links a { font-weight: 600; color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.admin-link { color: var(--gold) !important; }
.tg-link { color: #5dade2 !important; }

.balance-pill {
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: #2a1c00;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 999px;
}
.user-pill {
    background: var(--panel-2);
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--text);
    border: 1px solid var(--line);
}

/* ---------- Buttons ---------- */
.btn-solid {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #042611;
    font-weight: 800;
    border: none;
    padding: 10px 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform .12s, box-shadow .12s;
    box-shadow: 0 6px 16px rgba(46, 204, 113, 0.25);
}
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(46, 204, 113, 0.35); }
.btn-ghost {
    border: 1px solid var(--line);
    padding: 9px 16px;
    border-radius: 12px;
    font-weight: 700;
    color: var(--text) !important;
    background: rgba(255,255,255,0.03);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.lg { padding: 14px 26px; font-size: 16px; }
.full { width: 100%; }

/* ---------- Layout ---------- */
.container { width: min(1080px, 92%); margin: 0 auto; padding: 28px 0 60px; flex: 1; }
.section-head {
    display: flex; align-items: baseline; justify-content: space-between;
    margin: 34px 0 16px; gap: 12px; flex-wrap: wrap;
}
.section-head h2 { font-family: 'Bebas Neue', sans-serif; font-size: 30px; letter-spacing: 1px; margin: 0; }
.muted { color: var(--muted); font-size: 14px; }
.mt { margin-top: 36px; }
.empty { color: var(--muted); padding: 30px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty a { color: var(--green); }

/* ---------- Flash ---------- */
.flash-wrap { width: min(1080px, 92%); margin: 14px auto 0; }
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 8px; font-weight: 600; border: 1px solid var(--line); }
.flash-success { background: rgba(46,204,113,0.15); color: #aef5cd; }
.flash-danger { background: rgba(231,76,60,0.15); color: #ffc6bf; }
.flash-warning { background: rgba(245,197,66,0.15); color: #ffe9a8; }
.flash-info { background: rgba(255,255,255,0.08); }

/* ---------- Hero ---------- */
.hero {
    margin-top: 24px;
    border-radius: 24px;
    background:
        linear-gradient(120deg, rgba(8,24,15,0.4), rgba(8,24,15,0.85)),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 60px, transparent 60px 120px),
        linear-gradient(135deg, #114a2a, #0a1f14);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.hero-inner { padding: 54px 40px; max-width: 680px; }
.hero-badge {
    display: inline-block; background: rgba(245,197,66,0.18); color: var(--gold);
    padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; letter-spacing: 1px;
}
.hero h1 { font-family: 'Bebas Neue', sans-serif; font-size: 56px; line-height: 1; margin: 16px 0 10px; letter-spacing: 1px; }
.hero h1 span { color: var(--gold); }
.hero p { color: var(--muted); font-size: 17px; max-width: 520px; }
.hero-cta { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

/* ---------- Match cards ---------- */
.match-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.match-card {
    background: linear-gradient(180deg, var(--panel), var(--bg-2));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}
.match-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.stage { background: rgba(46,204,113,0.15); color: var(--green); padding: 3px 10px; border-radius: 999px; font-weight: 700; }
.teams { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.team { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 40%; }
.team-name { font-weight: 700; text-align: center; }
.vs { font-family: 'Bebas Neue', sans-serif; color: var(--gold); font-size: 20px; }

.odds-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.odd { position: relative; cursor: pointer; }
.odd input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.odd span { display: block; text-align: center; }
.odd .odd-tag { font-size: 12px; color: var(--muted); }
.odd .odd-val { font-weight: 800; font-size: 18px; }
.odd { background: var(--panel-2); border: 2px solid var(--line); border-radius: 12px; padding: 8px 4px; transition: all .12s; }
.odd:hover { border-color: var(--green); }
.odd:has(input:checked) { border-color: var(--gold); background: rgba(245,197,66,0.12); }
.odd:has(input:checked) .odd-val { color: var(--gold); }

.stake-row { display: flex; gap: 8px; }
.stake-row input {
    flex: 1; background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
    border-radius: 12px; padding: 10px 12px; font-size: 15px;
}
.stake-row input:focus { outline: none; border-color: var(--green); }

/* ---------- Results ---------- */
.result-list { display: flex; flex-direction: column; gap: 8px; }
.result-row {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px;
}
.result-tag { color: var(--gold); font-weight: 700; }

/* ---------- Auth ---------- */
.auth-card {
    max-width: 380px; margin: 50px auto; background: var(--panel);
    border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
}
.auth-card h2 { font-family: 'Bebas Neue', sans-serif; font-size: 32px; margin: 0; letter-spacing: 1px; }
.auth-card form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.auth-card label, .admin-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.auth-card input, .admin-form input, .admin-form select, .result-form select {
    background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
    border-radius: 10px; padding: 11px 12px; font-size: 15px;
}
.auth-card input:focus { outline: none; border-color: var(--green); }
.auth-alt { text-align: center; margin-top: 16px; color: var(--muted); }
.auth-alt a { color: var(--green); font-weight: 700; }

/* ---------- Wallet ---------- */
.wallet-balance {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    background: linear-gradient(135deg, #114a2a, var(--bg-2));
    border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
}
.big-balance { font-family: 'Bebas Neue', sans-serif; font-size: 52px; color: var(--gold); letter-spacing: 1px; }
.package-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-top: 14px; }
.package-card {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px; text-align: center; display: flex; flex-direction: column; gap: 10px;
}
.package-coins { font-family: 'Bebas Neue', sans-serif; font-size: 30px; color: var(--gold); }
.package-price { color: var(--muted); font-weight: 700; }

/* ---------- Coupons ---------- */
.coupon-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.coupon {
    display: flex; background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.coupon-stub {
    width: 120px; flex-shrink: 0; padding: 16px 12px; display: flex; flex-direction: column;
    justify-content: space-between; align-items: center; gap: 10px;
    border-right: 2px dashed var(--line); background: var(--bg-2); text-align: center;
}
.coupon-code { font-family: 'Bebas Neue', sans-serif; letter-spacing: 1px; font-size: 18px; color: var(--gold); }
.coupon-status { font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 999px; }
.status-pending { background: rgba(245,197,66,0.2); color: var(--gold); }
.status-won { background: rgba(46,204,113,0.2); color: var(--green); }
.status-lost { background: rgba(231,76,60,0.2); color: #ff9d92; }
.coupon-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.coupon-match { font-weight: 700; }
.detail-match { text-align: center; font-size: 18px; font-weight: 700; }
.coupon-meta { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.coupon-won { border-color: rgba(46,204,113,0.5); }
.coupon-lost { opacity: 0.7; }

/* ---------- Admin ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.stat {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px; display: flex; flex-direction: column; gap: 4px;
}
.stat-num { font-family: 'Bebas Neue', sans-serif; font-size: 30px; color: var(--gold); }
.admin-form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 14px; }
.admin-match-list { display: flex; flex-direction: column; gap: 10px; }
.admin-match {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
    background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
}
.admin-match-info { display: flex; flex-direction: column; gap: 4px; }
.result-form { display: flex; gap: 8px; }

/* ---------- Live ---------- */
.live-row { border-color: rgba(231,76,60,0.4); }
.live-min { color: #ff7a6b; font-weight: 800; }
.score { color: var(--gold); }
.live-card { border-color: rgba(231,76,60,0.4); }
.big-score { font-family: 'Bebas Neue', sans-serif; font-size: 34px; color: var(--gold); }

.today-card { border-color: rgba(46,204,113,0.5); box-shadow: 0 0 24px rgba(46,204,113,0.08); }

/* ---------- Featured match (homepage) ---------- */
.featured-match-section { margin-bottom: 36px; }
.featured-match-card {
    max-width: 640px; margin: 0 auto;
    background: linear-gradient(160deg, rgba(46,204,113,0.12), var(--panel) 40%, var(--bg-2));
    border: 2px solid rgba(46,204,113,0.45);
    border-radius: 22px;
    padding: 28px 24px 24px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35), 0 0 32px rgba(46,204,113,0.1);
}
.featured-match-card.featured-live {
    border-color: rgba(231,76,60,0.5);
    background: linear-gradient(160deg, rgba(231,76,60,0.12), var(--panel) 40%, var(--bg-2));
    box-shadow: 0 12px 40px rgba(0,0,0,0.35), 0 0 32px rgba(231,76,60,0.12);
}
.featured-match-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.featured-live-badge { color: #ff7a6b; font-weight: 800; font-size: 15px; }
.featured-teams { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.featured-team { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 1; }
.featured-name { font-weight: 800; font-size: 18px; text-align: center; line-height: 1.2; }
.featured-center { flex-shrink: 0; min-width: 80px; text-align: center; }
.featured-vs { font-family: 'Bebas Neue', sans-serif; color: var(--gold); font-size: 28px; letter-spacing: 2px; }
.featured-score { font-family: 'Bebas Neue', sans-serif; color: var(--gold); font-size: 42px; letter-spacing: 2px; }
.featured-bet-form .odds-row { gap: 12px; }
.featured-bet-form .odd .odd-val { font-size: 22px; }
.featured-stake-row { flex-direction: column; gap: 12px; }
.featured-stake-row .btn-solid { width: 100%; text-align: center; }
.featured-live-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }
#matches { margin-top: 8px; }
.locked-card { opacity: 0.72; border-color: var(--line); }
.locked-card .teams { filter: grayscale(0.15); }
.locked-msg { text-align: center; color: var(--muted); font-size: 13px; margin: 8px 0 4px; }
.open-badge { color: #2ecc71; font-weight: 600; font-size: 13px; }
.locked-badge { color: var(--muted); font-size: 13px; }
.single-match { max-width: 520px; margin: 0 auto; }
.center { text-align: center; }
.highlight-row { border-color: rgba(46,204,113,0.35); }
.muted-row { opacity: 0.85; }

/* ---------- Jackpot showcase (ana sayfa) ---------- */
.jackpot-showcase { margin-bottom: 32px; position: relative; }
.jackpot-showcase-link {
    display: block; text-decoration: none; color: inherit; position: relative;
    border-radius: 20px; overflow: hidden;
    border: 2px solid rgba(245, 197, 66, 0.45);
    background: linear-gradient(135deg, #1a3d22 0%, #0f2818 40%, #1a1508 100%);
    box-shadow: 0 0 40px rgba(245, 197, 66, 0.15), var(--shadow);
    transition: transform .2s, box-shadow .2s;
}
.jackpot-showcase-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 60px rgba(245, 197, 66, 0.25), 0 16px 40px rgba(0,0,0,0.4);
}
.jackpot-showcase-glow {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 20% 50%, rgba(245,197,66,0.18), transparent),
        radial-gradient(ellipse 50% 80% at 90% 30%, rgba(230,126,34,0.12), transparent);
    animation: jp-pulse 4s ease-in-out infinite;
}
@keyframes jp-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}
.jackpot-showcase-inner {
    position: relative; display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 20px; padding: 28px 32px;
}
.jackpot-showcase-badge {
    display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 2px;
    color: #2a1c00; background: linear-gradient(135deg, var(--gold), var(--gold-2));
    padding: 6px 14px; border-radius: 999px; margin-bottom: 10px;
}
.jackpot-showcase-pool { display: flex; align-items: baseline; gap: 8px; line-height: 1; }
.pool-amount {
    font-family: 'Bebas Neue', sans-serif; font-size: clamp(48px, 10vw, 72px);
    color: var(--gold); letter-spacing: 2px;
    text-shadow: 0 0 30px rgba(245,197,66,0.4);
}
.pool-symbol { font-family: 'Bebas Neue', sans-serif; font-size: 28px; color: var(--gold-2); }
.jackpot-showcase-rule { color: var(--muted); font-size: 14px; margin: 10px 0 0; max-width: 340px; }
.jackpot-showcase-rule strong { color: var(--gold); }
.jackpot-showcase-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.jp-stat-grid { display: flex; gap: 12px; }
.jp-stat {
    background: rgba(0,0,0,0.25); border: 1px solid rgba(245,197,66,0.2);
    border-radius: 12px; padding: 10px 16px; text-align: center; min-width: 90px;
}
.jp-stat.highlight { border-color: rgba(46,204,113,0.5); background: rgba(46,204,113,0.08); }
.jp-stat-num { display: block; font-family: 'Bebas Neue', sans-serif; font-size: 28px; color: var(--gold); }
.jp-stat.highlight .jp-stat-num { color: var(--green); }
.jp-stat-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.jp-final-tag { font-size: 13px; color: var(--muted); }
.jp-final-tag.won { color: var(--gold); font-weight: 700; }
.jackpot-cta {
    font-weight: 800; color: var(--gold); font-size: 14px;
    border-bottom: 2px solid var(--gold); padding-bottom: 2px;
}
.jackpot-hero { text-align: center; margin-bottom: 24px; }
.jackpot-glow {
    padding: 32px 20px; border-radius: 16px;
    background: radial-gradient(ellipse at center, rgba(241,196,15,0.12), transparent 70%);
    border: 1px solid rgba(241,196,15,0.25);
}
.jackpot-icon { font-size: 48px; display: block; margin-bottom: 8px; }
.jackpot-pool { font-family: 'Bebas Neue', sans-serif; font-size: 64px; color: var(--gold); margin: 8px 0; line-height: 1; }
.jackpot-pool small { font-size: 28px; }
.jackpot-stats { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 24px; }

/* ---------- Tabs + Board ---------- */
.tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tab-btn {
    background: var(--panel-2); border: 1px solid var(--line); color: var(--muted);
    padding: 9px 16px; border-radius: 999px; font-weight: 700; cursor: pointer;
}
.tab-btn.active { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #2a1c00; border-color: transparent; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.board { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.board th, .board td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.board th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
.board tr:last-child td { border-bottom: none; }
.board .rank { font-family: 'Bebas Neue', sans-serif; font-size: 20px; color: var(--gold); }
.board .metric { font-weight: 800; color: var(--green); }
.board .out { color: #ff9d92; font-weight: 700; }
.board .in { color: var(--green); font-weight: 700; }

/* ---------- Wallet address ---------- */
.addr-chip { font-family: 'Bebas Neue', sans-serif; letter-spacing: 1px; background: var(--bg-2); border: 1px dashed var(--line); padding: 6px 14px; border-radius: 10px; color: var(--gold); }
.small { font-size: 12px; }
code { background: rgba(255,255,255,0.06); padding: 2px 6px; border-radius: 6px; font-family: monospace; }

/* ---------- Coupon detail / payment ---------- */
.detail-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.big-status { display: inline-block; font-size: 13px; margin-bottom: 10px; }
.detail-match { font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px,1fr)); gap: 12px; }
.detail-grid div { display: flex; flex-direction: column; gap: 2px; }
.pay-box { margin-top: 18px; background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.pay-box.ok { border-color: rgba(46,204,113,0.5); }
.pay-box.warn { border-color: rgba(245,197,66,0.5); }
.pay-steps { line-height: 1.9; }
.cmd { background: #061a10; border: 1px solid var(--line); border-radius: 10px; padding: 12px; overflow-x: auto; color: #aef5cd; font-size: 13px; white-space: pre-wrap; word-break: break-all; }
.pay-info { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 12px; margin: 14px 0; }
.pay-info div { display: flex; flex-direction: column; gap: 4px; background: var(--bg-2); padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); }
.status-awaiting_payment { background: rgba(245,197,66,0.2); color: var(--gold); }
.status-active { background: rgba(52,152,219,0.2); color: #7ec8ff; }
.status-void { background: rgba(255,255,255,0.1); color: var(--muted); }
.coupon-active { border-color: rgba(52,152,219,0.4); }
.coupon-awaiting_payment { border-color: rgba(245,197,66,0.4); }
.coupon-void { opacity: 0.6; }
.admin-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- Payout queue ---------- */
.payout-list { display: grid; gap: 14px; }
.payout-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.payout-info { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 10px; margin-bottom: 10px; }
.payout-info div { display: flex; flex-direction: column; gap: 2px; }
.payout-addr { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.payout-addr code { word-break: break-all; }
.payout-form { display: flex; gap: 8px; flex-wrap: wrap; }
.payout-form input { flex: 1; min-width: 200px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 10px 12px; }

/* ---------- Copy address ---------- */
.copy-addr-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: #2a1c00;
    font-weight: 800;
    border: none;
    padding: 10px 18px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    transition: transform .12s, box-shadow .12s;
    box-shadow: 0 4px 14px rgba(245, 197, 66, 0.3);
}
.copy-addr-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(245, 197, 66, 0.4); }
.copy-addr-btn.copied { background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #042611; }
.pay-addr-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.addr-preview { word-break: break-all; margin: 0 0 12px; padding: 10px 12px; background: var(--bg-2); border-radius: 10px; border: 1px dashed var(--line); }
.addr-preview code { font-size: 12px; }
.status-paid { background: rgba(46,204,113,0.2); color: var(--green); }
.coupon-paid { border-color: rgba(46,204,113,0.4); }

/* ---------- Whitepaper ---------- */
.wp-hero { text-align: center; margin-bottom: 28px; }
.wp-hero h1 { font-family: 'Bebas Neue', sans-serif; font-size: 48px; letter-spacing: 2px; margin: 8px 0; color: var(--gold); }
.wp-sub { color: var(--muted); font-size: 16px; }
.wp-card {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px 28px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.wp-card h2 { font-family: 'Bebas Neue', sans-serif; font-size: 26px; letter-spacing: 1px; margin: 0 0 14px; color: var(--gold); }
.wp-card p { color: var(--text); line-height: 1.65; margin: 0 0 12px; }
.wp-card p:last-child { margin-bottom: 0; }
.wp-card a { color: var(--green); font-weight: 600; }
.wp-table { width: 100%; border-collapse: collapse; }
.wp-table th, .wp-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.wp-table th { color: var(--muted); font-weight: 600; width: 38%; }
.wp-addr-block { margin-bottom: 16px; }
.wp-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.wp-list { margin: 0; padding-left: 20px; line-height: 1.75; color: var(--text); }
.wp-list.numbered { list-style: decimal; }
.wp-burn { border-color: rgba(231, 76, 60, 0.35); background: linear-gradient(160deg, rgba(231,76,60,0.06), var(--panel)); }
.wp-disclaimer { opacity: 0.85; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 20px; font-size: 13px; }
.footer-inner { max-width: 600px; margin: 0 auto; text-align: center; }
.footer-brand-row { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-logo { height: 48px; width: auto; max-width: 220px; opacity: 0.95; object-fit: contain; }
.footer-brand { color: var(--text); font-weight: 600; margin: 0; }
.footer-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 10px; }
.footer-links a { color: var(--gold); font-weight: 700; }
.footer-copy { color: var(--muted); margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .navbar { padding: 12px 16px; }
    .brand-logo { height: 36px; max-width: 140px; }
    .nav-toggle { display: flex; }
    .nav-links {
        display: none; position: fixed; top: 0; right: 0; bottom: 0; width: min(280px, 85vw);
        flex-direction: column; align-items: stretch; gap: 4px; padding: 70px 20px 24px;
        background: rgba(8, 24, 15, 0.97); backdrop-filter: blur(12px);
        border-left: 1px solid var(--line); z-index: 55; overflow-y: auto;
    }
    body.nav-open .nav-links { display: flex; }
    body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
    body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .nav-links a, .nav-links .btn-ghost, .nav-links .btn-solid {
        padding: 12px 14px; border-radius: 10px; text-align: left;
    }
    .user-pill { text-align: center; }
    .container { width: 94%; padding: 20px 0 48px; }
    .hero h1 { font-size: 38px; }
    .hero-inner { padding: 32px 22px; }
    .hero p { font-size: 15px; }
    .match-grid { grid-template-columns: 1fr; }
    .jackpot-showcase-inner { padding: 22px 20px; flex-direction: column; align-items: stretch; }
    .jackpot-showcase-right { align-items: flex-start; text-align: left; }
    .jp-stat-grid { width: 100%; }
    .jp-stat { flex: 1; }
    .stake-row { flex-direction: column; }
    .stake-row .btn-solid { width: 100%; text-align: center; }
    .odds-row { gap: 6px; }
    .result-row { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 14px; }
    .coupon-list { grid-template-columns: 1fr; }
    .coupon { flex-direction: column; }
    .coupon-stub { width: 100%; flex-direction: row; border-right: none; border-bottom: 2px dashed var(--line); }
    .board { display: block; overflow-x: auto; }
    .section-head h2 { font-size: 24px; }
    .detail-grid { grid-template-columns: repeat(2, 1fr); }
    .payout-form { flex-direction: column; }
    .payout-form input { min-width: 0; width: 100%; }
    .admin-match { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
    .brand-logo { height: 32px; max-width: 120px; }
    .footer-logo { height: 40px; max-width: 180px; }
    .pool-amount { font-size: 44px; }
    .odd .odd-val { font-size: 16px; }
}
