/* SatoshiSpinner design system - no frameworks, no build step. */

:root {
    --bg: #0a0e1a;
    --bg-soft: #0e1424;
    --panel: #131a30;
    --panel-2: #182042;
    --border: rgba(148, 163, 214, 0.14);
    --border-strong: rgba(148, 163, 214, 0.3);
    --text: #e9edfb;
    --muted: #8b93b8;
    --violet: #7c5cff;
    --violet-dark: #5b3fd6;
    --cyan: #22d3ee;
    --green: #34d399;
    --gold: #fbbf24;
    --red: #f87171;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 10px 40px rgba(2, 6, 23, 0.55);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(124, 92, 255, 0.16), transparent 60%),
        radial-gradient(700px 420px at -10% 20%, rgba(34, 211, 238, 0.1), transparent 60%),
        var(--bg);
    color: var(--text);
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.25rem, 3vw, 1.7rem); font-weight: 750; }
h3 { font-size: 1.05rem; font-weight: 700; }

code, .mono { font-family: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace; font-size: 0.92em; word-break: break-all; }

.container { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.mt { margin-top: 1rem; }
.ta-r { text-align: right; }
.ta-c { text-align: center; }
.win-cell { color: var(--green); font-weight: 700; }
.text-danger { color: var(--red); }
.grad-text {
    background: linear-gradient(90deg, var(--cyan), var(--violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------------- header ---------------- */
.site-nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 1.4rem; padding: 0.65rem 0; }
.brand img { display: block; height: 34px; width: auto; }
.nav-links { display: flex; gap: 1.1rem; flex: 1; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-auth { display: flex; align-items: center; gap: 0.6rem; }
.nav-user { color: var(--text); font-weight: 700; }
.balance-chip {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(124, 92, 255, 0.14));
    border: 1px solid var(--border-strong);
    color: var(--text);
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}
.inline-form { display: inline; }

/* ---------------- layout blocks ---------------- */
.site-main { flex: 1; padding: 1.6rem 0 3rem; }

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 40%), var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.1rem;
}

.page-head { margin-bottom: 1.4rem; }
.page-head p { max-width: 720px; }

.ad-slot {
    margin: 0.9rem auto;
    padding: 0.4rem;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-sm);
    text-align: center;
    min-height: 0;
    overflow: hidden;
}
.ad-top, .ad-bottom { margin-top: 0.6rem; margin-bottom: 0.6rem; }

/* ---------------- buttons ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-weight: 700; font-size: 0.95rem;
    padding: 0.62rem 1.15rem;
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease, opacity 0.15s;
    text-decoration: none !important;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary {
    background: linear-gradient(135deg, var(--violet), #4f46e5);
    color: #fff;
    box-shadow: 0 6px 22px rgba(99, 78, 255, 0.35);
}
.btn-primary:hover:not(:disabled) { box-shadow: 0 8px 28px rgba(99, 78, 255, 0.5); }
.btn-ghost {
    background: rgba(148, 163, 214, 0.08);
    border-color: var(--border-strong);
    color: var(--text);
}
.btn-ghost:hover:not(:disabled) { background: rgba(148, 163, 214, 0.16); }
.btn-danger { background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff; }
.btn-lg { padding: 0.85rem 1.7rem; font-size: 1.05rem; border-radius: 12px; }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------------- forms ---------------- */
.form label { display: block; margin-bottom: 0.95rem; font-weight: 600; font-size: 0.92rem; }
.form .hint { color: var(--muted); font-weight: 500; font-size: 0.8rem; }
.form input[type="text"], .form input[type="email"], .form input[type="password"],
.form input[type="number"], .form input[type="url"], .form textarea, .form select,
input[type="text"].plain, textarea.plain {
    width: 100%;
    display: block;
    margin-top: 0.35rem;
    background: var(--bg-soft);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.98rem;
    padding: 0.62rem 0.8rem;
}
.form input:focus, .form textarea:focus, input:focus, textarea:focus {
    outline: 2px solid rgba(124, 92, 255, 0.55);
    outline-offset: 1px;
    border-color: var(--violet);
}
.form .checkbox { display: flex; align-items: center; gap: 0.55rem; font-weight: 600; }
.form .checkbox input { width: 18px; height: 18px; accent-color: var(--violet); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; }

/* ---------------- flash / toasts ---------------- */
.flash {
    border-radius: var(--radius-sm);
    padding: 0.7rem 1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    font-size: 0.93rem;
    border: 1px solid;
}
.flash-success { background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.4); color: #6ee7b7; }
.flash-error { background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.4); color: #fca5a5; }
.flash-warning { background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.4); color: #fcd34d; }

.toasts {
    position: fixed; right: 1rem; bottom: 1rem; z-index: 200;
    display: flex; flex-direction: column; gap: 0.55rem;
    max-width: min(360px, 90vw);
}
.toast {
    background: var(--panel-2);
    border: 1px solid var(--border-strong);
    border-left: 4px solid var(--violet);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-weight: 650;
    font-size: 0.93rem;
    box-shadow: var(--shadow);
    animation: toast-in 0.25s ease;
}
.toast.win { border-left-color: var(--green); }
.toast.big { border-left-color: var(--gold); font-size: 1.02rem; }
.toast.error { border-left-color: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------------- home ---------------- */
.hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: center;
    padding: 2.2rem 0 1.4rem;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 850; }
.hero-sub { font-size: 1.08rem; color: var(--muted); max-width: 34rem; }
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; margin: 1.3rem 0 1rem; }
.trust-row { display: flex; gap: 1.1rem; flex-wrap: wrap; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.trust-row span::before { content: "\2713"; color: var(--green); margin-right: 0.4rem; font-weight: 800; }

.wheel-preview {
    position: relative;
    width: min(320px, 74vw);
    aspect-ratio: 1;
    margin: 0 auto;
    animation: slow-spin 26s linear infinite;
    filter: drop-shadow(0 18px 44px rgba(124, 92, 255, 0.35));
}
@keyframes slow-spin { to { transform: rotate(360deg); } }
.wheel-preview-ring {
    position: absolute; inset: -6%;
    border-radius: 50%;
    background: conic-gradient(var(--cyan), var(--violet), var(--gold), var(--cyan));
    -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%);
    mask: radial-gradient(circle, transparent 62%, #000 63%);
}
.wp-slice {
    position: absolute; inset: 0;
    background: conic-gradient(from var(--start) at 50% 50%, var(--c) 0 30deg, transparent 30deg 360deg);
    border-radius: 50%;
    -webkit-mask: radial-gradient(circle, transparent 30%, #000 31%);
    mask: radial-gradient(circle, transparent 30%, #000 31%);
}
.wheel-preview-hub {
    position: absolute; inset: 33%;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--violet);
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    font-weight: 800; font-size: 0.95rem; color: var(--text);
    line-height: 1.15;
}
.wheel-preview-pointer {
    position: absolute; top: -7%; left: 50%; transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-top: 20px solid var(--gold);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
}

.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin: 1.4rem 0 2rem;
}
.stat {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.95rem 1rem;
    display: flex; flex-direction: column; gap: 0.15rem;
}
.stat strong { font-size: 1.25rem; font-weight: 800; }
.stat span { color: var(--muted); font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

.steps, .recent-wins, .faq { margin-bottom: 2.2rem; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.step-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.15rem; position: relative; }
.step-num {
    width: 34px; height: 34px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: #fff;
    background: linear-gradient(135deg, var(--violet), var(--cyan));
    margin-bottom: 0.7rem;
}
.step-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

.faq details {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.1rem;
    margin-bottom: 0.55rem;
}
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--muted); margin: 0.6rem 0 0; }

/* ---------------- tables ---------------- */
.table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.table th {
    text-align: left;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    padding: 0.5rem 0.65rem;
    border-bottom: 1px solid var(--border);
}
.table td { padding: 0.6rem 0.65rem; border-bottom: 1px solid rgba(148, 163, 214, 0.08); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(148, 163, 214, 0.05); }
.table-compact td, .table-compact th { padding: 0.4rem 0.5rem; font-size: 0.88rem; }
.table-scroll { overflow-x: auto; }
.lb-first td { background: rgba(251, 191, 36, 0.07); }

.badge {
    display: inline-block;
    border-radius: 999px;
    padding: 0.14rem 0.6rem;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.badge-paid { background: rgba(52, 211, 153, 0.15); color: #6ee7b7; }
.badge-pending, .badge-sending { background: rgba(251, 191, 36, 0.15); color: #fcd34d; }
.badge-failed { background: rgba(248, 113, 113, 0.15); color: #fca5a5; }

/* ---------------- auth pages ---------------- */
.auth-wrap { display: flex; justify-content: center; padding: 2rem 0; }
.auth-card { width: min(430px, 100%); padding: 1.8rem; }
.auth-alt { text-align: center; margin: 1rem 0 0; color: var(--muted); }
.auth-legal { text-align: center; color: var(--muted); font-size: 0.78rem; margin: 0.9rem 0 0; }

/* ---------------- play page ---------------- */
.play-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr); gap: 1.1rem; align-items: start; }

.wheel-stage { text-align: center; padding: 1.5rem 1rem 1.25rem; }
.wheel-wrap { position: relative; width: min(380px, 86vw); margin: 0 auto; }
#wheelCanvas { width: 100%; height: auto; display: block; }
.wheel-pointer {
    position: absolute; top: -4px; left: 50%; transform: translateX(-50%);
    width: 0; height: 0; z-index: 5;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid var(--gold);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}
.wheel-hub {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    pointer-events: none;
}
.wheel-hub span {
    font-size: 2rem; font-weight: 850; line-height: 1;
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wheel-hub small { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.7rem; }

.spin-controls { margin-top: 1.1rem; }
.btn-spin {
    font-size: 1.3rem; font-weight: 850; letter-spacing: 0.14em;
    padding: 0.9rem 3.6rem; border-radius: 14px;
    background: linear-gradient(135deg, var(--violet), #4f46e5 55%, var(--cyan));
    background-size: 160% 160%;
    animation: pulse-glow 2.4s ease-in-out infinite;
}
.btn-spin:disabled { animation: none; }
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 6px 24px rgba(99, 78, 255, 0.4); background-position: 0% 50%; }
    50% { box-shadow: 0 10px 36px rgba(34, 211, 238, 0.5); background-position: 100% 50%; }
}
.spin-timer { margin: 0.7rem 0 0; font-size: 0.9rem; }
.spin-captcha { display: flex; justify-content: center; margin-top: 0.8rem; min-height: 0; }

.bonus-banner {
    margin: 0.9rem auto 0.2rem;
    display: inline-block;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(217, 70, 239, 0.18));
    border: 1px solid var(--gold);
    color: var(--gold);
    font-weight: 850;
    letter-spacing: 0.08em;
    border-radius: 999px;
    padding: 0.5rem 1.4rem;
    animation: bonus-pop 0.5s ease;
}
@keyframes bonus-pop { 0% { transform: scale(0.7); opacity: 0; } 60% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }

.play-right .card { margin-bottom: 1.1rem; }
.stat-row { display: flex; justify-content: space-between; align-items: baseline; gap: 0.8rem; padding: 0.32rem 0; }
.stat-row strong { font-size: 1.02rem; }
.progress { height: 9px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; margin-top: 0.35rem; border: 1px solid var(--border); }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--cyan), var(--violet)); border-radius: 999px; transition: width 0.5s ease; }

.fairness-card .seed-code {
    display: block;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.6rem;
    margin: 0.3rem 0 0.7rem;
    font-size: 0.78rem;
    color: var(--muted);
}
.seed-row { display: flex; gap: 0.5rem; margin-bottom: 0.55rem; }
.seed-row input { flex: 1; }
.seed-row input, .seed-row .btn { margin-top: 0; }
.seed-row input {
    background: var(--bg-soft); border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm); color: var(--text); padding: 0.5rem 0.65rem; font-family: var(--font);
}
.revealed-seed .seed-code { margin: 0.3rem 0 0; color: var(--gold); }

#confettiCanvas { position: fixed; inset: 0; pointer-events: none; z-index: 300; }

/* ---------------- dashboard / referrals ---------------- */
.dash-grid, .ref-grid, .fair-grid, .lb-grid, .account-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
    gap: 1.1rem;
    align-items: start;
}
.dash-balance { display: flex; flex-direction: column; gap: 0.2rem; margin-bottom: 1.2rem; }
.balance-big { font-size: 2.1rem; font-weight: 850; }
.withdraw-row { display: flex; gap: 0.6rem; }
.withdraw-row input { flex: 1; margin-top: 0; }
.withdraw-form label { margin-bottom: 0.35rem; }
.copy-row { display: flex; gap: 0.6rem; margin-bottom: 0.9rem; }
.copy-row input { flex: 1; margin-top: 0; background: var(--bg-soft); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--text); padding: 0.55rem 0.7rem; }
.copy-row textarea { width: 100%; }
#refText { width: 100%; background: var(--bg-soft); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--text); padding: 0.55rem 0.7rem; font-family: var(--font); margin-bottom: 0.5rem; }
.fair-steps li { margin-bottom: 0.55rem; color: var(--muted); }
.fair-steps strong, .fair-steps code { color: var(--text); }
.verify-result { background: rgba(52, 211, 153, 0.08); border: 1px solid rgba(52, 211, 153, 0.35); border-radius: var(--radius-sm); padding: 0.8rem 1rem; }

/* ---------------- error / maintenance ---------------- */
.error-wrap { text-align: center; padding: 3.5rem 0; }
.error-code { font-size: 4rem; font-weight: 850; background: linear-gradient(135deg, var(--cyan), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wheel-loader { position: relative; width: 84px; height: 84px; margin: 0 auto 1.2rem; animation: slow-spin 3s linear infinite; }
.wl-slice {
    position: absolute; inset: 0; border-radius: 50%;
    background: conic-gradient(from var(--d) at 50% 50%, var(--c) 0 60deg, transparent 60deg 360deg);
    -webkit-mask: radial-gradient(circle, transparent 38%, #000 39%);
    mask: radial-gradient(circle, transparent 38%, #000 39%);
}

/* ---------------- admin ---------------- */
.admin-nav { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.6rem; }
.admin-nav a {
    color: var(--muted); font-weight: 650; font-size: 0.88rem;
    padding: 0.35rem 0.75rem; border-radius: 999px;
    border: 1px solid var(--border);
}
.admin-nav a:hover { color: var(--text); text-decoration: none; background: rgba(148, 163, 214, 0.1); }
.admin-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; margin-bottom: 1.1rem; }
.admin-cards .card { margin-bottom: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.admin-cards strong { font-size: 1.35rem; font-weight: 800; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; align-items: start; }
.sparkline { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding: 0.4rem 0; }
.spark-col { flex: 1; display: flex; align-items: flex-end; height: 100%; }
.spark-bar { width: 100%; background: linear-gradient(180deg, var(--cyan), var(--violet)); border-radius: 3px 3px 0 0; min-height: 3px; opacity: 0.85; }
.search-row { display: flex; gap: 0.6rem; }
.search-row input { flex: 1; margin-top: 0; background: var(--bg-soft); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--text); padding: 0.6rem 0.8rem; }
.filter-row { display: flex; gap: 0.4rem; margin-bottom: 0.9rem; flex-wrap: wrap; }
.payout-actions { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.wheel-table input[type="text"], .wheel-table input[type="number"] { width: 100%; background: var(--bg-soft); border: 1px solid var(--border-strong); border-radius: 6px; color: var(--text); padding: 0.4rem 0.5rem; font-family: var(--font); }
.wheel-table input[type="color"] { width: 42px; height: 32px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--bg-soft); padding: 2px; }

/* ---------------- footer ---------------- */
.site-footer { border-top: 1px solid var(--border); background: rgba(10, 14, 26, 0.6); margin-top: 1rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 1.5rem; padding: 1.8rem 0 1rem; }
.footer-col h4 { margin: 0 0 0.55rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.footer-col a { display: block; color: var(--muted); font-size: 0.9rem; padding: 0.18rem 0; }
.footer-col a:hover { color: var(--text); }
.footer-note, .footer-legal { color: var(--muted); font-size: 0.85rem; margin: 0.6rem 0 0; }
.footer-bottom {
    display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    padding: 0.9rem 0;
    border-top: 1px solid var(--border);
    color: var(--muted); font-size: 0.8rem;
}

/* ---------------- responsive ---------------- */
@media (max-width: 960px) {
    .hero { grid-template-columns: 1fr; text-align: center; }
    .hero-sub { margin-inline: auto; }
    .hero-cta, .trust-row { justify-content: center; }
    .steps-grid { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .play-grid, .dash-grid, .ref-grid, .fair-grid, .lb-grid, .account-grid, .admin-grid { grid-template-columns: 1fr; }
    .admin-cards { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; }
}

@media (max-width: 520px) {
    .nav-inner { gap: 0.6rem; }
    .brand img { height: 26px; }
    .balance-chip { font-size: 0.78rem; padding: 0.25rem 0.6rem; }
    .btn-sm { padding: 0.32rem 0.6rem; font-size: 0.78rem; }
    .stats-bar { grid-template-columns: 1fr 1fr; }
    .two-col { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
