/* EarnBitcoin — landing styles */

/* Light theme (default) */
:root {
    color-scheme: light;
    --bg: #fffdf7;
    --bg-alt: #fbf5e6;
    --surface: #ffffff;
    --surface-2: #fffbf2;
    --border: rgba(185, 125, 10, 0.18);
    --hairline: rgba(60, 45, 10, 0.08);
    --text: #1c160a;
    --muted: #6b624d;
    --legal: #8a8170;
    --accent: #b27408;
    --gold-1: #c98a0b;
    --gold-2: #f7b928;
    --gold-3: #c98a0b;
    --gold-grad: linear-gradient(135deg, #ffe89a 0%, #f7b928 45%, #d99413 100%);
    --gold-text: linear-gradient(135deg, #e0a21c 0%, #c4850a 50%, #9a6405 100%);
    --on-gold: #1a1204;
    --up: #15803d;
    --down: #dc2626;
    --up-bg: rgba(22, 163, 74, .12);
    --nav-bg: rgba(255, 253, 247, .8);
    --menu-bg: rgba(255, 253, 247, .98);
    --ghost-bg: rgba(255, 255, 255, .7);
    --pill-bg: rgba(255, 255, 255, .85);
    --dash-bg: linear-gradient(180deg, #ffffff, #fffaf0);
    --toast-bg: rgba(255, 255, 255, .97);
    --glow: rgba(247, 185, 40, .22);
    --glow-2: rgba(247, 185, 40, .14);
    --tint: rgba(247, 185, 40, .12);
    --radius: 18px;
    --shadow: 0 20px 60px rgba(120, 85, 10, 0.12);
    --shadow-lg: 0 30px 80px rgba(120, 85, 10, .16), inset 0 1px 0 rgba(255, 255, 255, .8);
    --shadow-sm: 0 14px 40px rgba(120, 85, 10, .14);
    --font-head: 'Poppins', system-ui, sans-serif;
    --font-body: 'Poppins', system-ui, sans-serif;
}

/* Dark theme */
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0a0a0a;
    --bg-alt: #111009;
    --surface: #16140e;
    --surface-2: #1d1a12;
    --border: rgba(255, 199, 64, 0.14);
    --hairline: rgba(255, 255, 255, 0.06);
    --text: #f4efe2;
    --muted: #a8a08c;
    --legal: #7a7361;
    --accent: #f7b928;
    --gold-1: #ffe38a;
    --gold-text: linear-gradient(135deg, #ffe89a 0%, #f7b928 45%, #d99413 100%);
    --up: #4ade80;
    --down: #f87171;
    --up-bg: rgba(74, 222, 128, .14);
    --nav-bg: rgba(10, 10, 10, .72);
    --menu-bg: rgba(10, 10, 10, .97);
    --ghost-bg: rgba(255, 255, 255, .02);
    --pill-bg: rgba(22, 20, 14, .8);
    --dash-bg: linear-gradient(180deg, #221e14, #14120c);
    --toast-bg: rgba(24, 22, 15, .95);
    --glow: rgba(247, 185, 40, .22);
    --glow-2: rgba(201, 138, 11, .14);
    --tint: rgba(247, 185, 40, .1);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .05);
    --shadow-sm: 0 14px 40px rgba(0, 0, 0, .5);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    transition: background-color .25s ease, color .25s ease;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.container--narrow { max-width: 820px; }
@media (min-width: 640px) { .container { padding: 0 28px; } }

.gold-text {
    background: var(--gold-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 14px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--gold-2); }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 560px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 11px 20px; border-radius: 999px;
    font-weight: 600; font-size: .95rem; white-space: nowrap;
    border: 1px solid transparent;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn--lg { padding: 15px 28px; font-size: 1rem; }
.btn--gold { background: var(--gold-grad) border-box; color: var(--on-gold); box-shadow: 0 8px 28px rgba(247, 185, 40, .28); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(247, 185, 40, .42); }
.btn--ghost { border-color: var(--border); color: var(--text); background: var(--ghost-bg); }
.btn--ghost:hover { border-color: var(--gold-2); color: var(--accent); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Nav */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: var(--nav-bg);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 46px; height: auto; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand__name span { background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links > a { color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav__links > a:hover { color: var(--gold-1); }
.nav__cta { display: flex; gap: 10px; }
.nav__cta-mobile { display: none; }
.nav__toggle { display: none; }

@media (max-width: 900px) {
    .nav__cta { display: none; }
    .nav__toggle {
        display: flex; flex-direction: column; justify-content: center; gap: 5px;
        margin-left: auto; width: 44px; height: 44px; padding: 0 11px;
        background: transparent; border: 1px solid var(--border); border-radius: 12px; cursor: pointer;
    }
    .nav__toggle span { height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
    .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
    .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .nav__links {
        position: absolute; top: 72px; left: 0; right: 0;
        flex-direction: column; gap: 0; margin: 0;
        padding: 8px 16px 20px;
        background: var(--menu-bg);
        border-bottom: 1px solid var(--border);
        display: none;
    }
    .nav.is-open .nav__links { display: flex; }
    .nav__links > a { padding: 14px 4px; border-bottom: 1px solid var(--hairline); font-size: 1rem; }
    .nav__cta-mobile { display: flex; gap: 10px; padding-top: 16px; }
    .nav__cta-mobile .btn { flex: 1; }
}

/* Hero */
.hero { position: relative; padding: 88px 0 104px; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(20px); }
.hero__glow--a { width: 720px; height: 720px; right: -160px; top: -200px; background: radial-gradient(circle, var(--glow), transparent 65%); }
.hero__glow--b { width: 520px; height: 520px; left: -220px; bottom: -260px; background: radial-gradient(circle, var(--glow-2), transparent 65%); }

.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.3rem); line-height: 1.08; margin: 22px 0 20px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 28px; }
.btn__arrow { width: 18px; height: 18px; margin-left: 8px; transition: transform .2s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

.hero__trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .92rem; }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust li::before {
    content: ''; width: 16px; height: 16px; border-radius: 50%; flex: none;
    background: rgba(247, 185, 40, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23f7b928' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.5l2.2 2.2 4.8-5'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* Live price pill */
.price-pill {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 14px 6px 6px; border-radius: 999px;
    background: var(--pill-bg); border: 1px solid var(--border);
    font-size: .9rem; backdrop-filter: blur(6px);
}
.price-pill__coin {
    width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
    background: var(--gold-grad); color: var(--on-gold); font-weight: 800; font-size: .85rem;
}
.price-pill__label { color: var(--muted); font-weight: 500; }
.price-pill__price { font-weight: 700; font-variant-numeric: tabular-nums; }
.price-pill__change { font-weight: 600; font-size: .82rem; }
.price-pill__change.up { color: var(--up); }
.price-pill__change.down { color: var(--down); }

/* Visual: dashboard preview */
.hero__visual { position: relative; display: grid; place-items: center; min-height: 460px; }
.hero__mark {
    position: absolute; top: -10px; right: -20px; width: 72%; opacity: .9;
    filter: drop-shadow(0 30px 60px rgba(247, 185, 40, .35));
    animation: float 7s ease-in-out infinite;
}
.dash {
    position: relative; z-index: 2; width: min(400px, 100%); margin-top: 120px;
    padding: 24px; border-radius: 24px;
    background: var(--dash-bg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}
.dash__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.dash__title { font-weight: 600; }
.dash__tag { font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); }
.dash__label { color: var(--muted); font-size: .82rem; }
.dash__balance { font-family: var(--font-head); font-weight: 700; font-size: 2rem; letter-spacing: -0.01em; line-height: 1.2; }
.dash__balance span { font-size: 1rem; color: var(--accent); font-weight: 600; }
.dash__sub { color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; }
.dash__chart { display: block; width: 100%; height: 90px; margin: 16px 0 18px; }
.dash__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.dash__row span { display: block; color: var(--muted); font-size: .75rem; }
.dash__row strong { font-size: .95rem; font-variant-numeric: tabular-nums; }

.toast {
    position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
    padding: 10px 16px 10px 10px; border-radius: 14px;
    background: var(--toast-bg); border: 1px solid var(--border);
    box-shadow: var(--shadow-sm); font-size: .82rem;
}
.toast strong { display: block; font-weight: 600; }
.toast span { color: var(--muted); }
.toast__icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; font-weight: 800; }
.toast__icon--gold { background: var(--gold-grad); color: var(--on-gold); }
.toast__icon--green { background: var(--up-bg); color: var(--up); }
.toast__icon svg { width: 18px; height: 18px; }
.toast--a { left: -48px; top: 330px; animation: float 6s ease-in-out infinite .5s; }
.toast--b { right: -40px; top: 196px; animation: float 6.5s ease-in-out infinite 1.2s; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

@media (max-width: 1000px) {
    .hero { padding: 48px 0 72px; }
    .hero__inner { grid-template-columns: 1fr; gap: 24px; }
    .hero__copy { text-align: center; }
    .hero__copy .lead { margin-left: auto; margin-right: auto; }
    .hero__actions, .hero__trust { justify-content: center; }
    .hero__visual { min-height: 0; max-width: 440px; width: 100%; margin: 0 auto; }
    .hero__mark { width: 60%; right: 0; top: -20px; }
    .toast--a { left: -8px; }
    .toast--b { right: -8px; }
}
@media (max-width: 480px) {
    .hero__actions .btn { width: 100%; }
    .dash { padding: 20px; margin-top: 100px; }
    .dash__balance { font-size: 1.7rem; }
    .toast { font-size: .75rem; padding: 8px 12px 8px 8px; }
    .toast--a { top: 270px; left: -4px; }
    .toast--b { right: -4px; top: 168px; }
}

/* Strip */
.strip { border-block: 1px solid var(--border); background: var(--bg-alt); }
.strip__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip__item { padding: 26px 16px; text-align: center; }
.strip__item + .strip__item { border-left: 1px solid var(--border); }
.strip__item strong { display: block; font-family: var(--font-head); font-size: 1.5rem; background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.strip__item span { color: var(--muted); font-size: .9rem; }
@media (max-width: 720px) {
    .strip__inner { grid-template-columns: repeat(2, 1fr); }
    .strip__item:nth-child(3) { border-left: 0; }
    .strip__item:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* Sections */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; margin-bottom: 52px; }
@media (max-width: 640px) { .section { padding: 64px 0; } .section__head { margin-bottom: 36px; } }

.card {
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.card p { color: var(--muted); margin: 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.step { padding: 32px 28px; }
.step__num { display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; margin-bottom: 14px; background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 32px 28px; transition: transform .2s ease, border-color .2s ease; }
.feature:hover { transform: translateY(-4px); border-color: rgba(247, 185, 40, .4); }
.feature__icon {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
    margin-bottom: 20px; color: var(--accent);
    background: var(--tint); border: 1px solid var(--border);
}
.feature__icon svg { width: 26px; height: 26px; }

@media (max-width: 900px) { .steps, .grid-3 { grid-template-columns: 1fr; } }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before {
    content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
    background: var(--gold-grad);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10'/%3E%3C/svg%3E");
}
.checks li::after {
    content: ''; position: absolute; left: 6px; top: 8px; width: 8px; height: 5px;
    border-left: 2px solid #1a1204; border-bottom: 2px solid #1a1204; transform: rotate(-45deg);
}
.split__art { display: grid; place-items: center; }
.shield {
    width: min(340px, 100%); aspect-ratio: 1; display: grid; place-items: center; align-content: center; gap: 14px;
    color: var(--accent);
    background: radial-gradient(circle at 50% 40%, rgba(247, 185, 40, .16), transparent 65%), var(--surface);
}
.shield svg { width: 46%; filter: drop-shadow(0 0 24px rgba(247, 185, 40, .35)); }
.shield span { font-family: var(--font-head); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { padding: 0 24px; }
.faq summary {
    list-style: none; cursor: pointer; padding: 22px 32px 22px 0; position: relative;
    font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    font-size: 1.5rem; font-weight: 400; color: var(--accent); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding-bottom: 22px; }

/* CTA */
.cta {
    text-align: center; padding: 64px 24px; border-radius: 28px;
    background: radial-gradient(ellipse at top, rgba(247, 185, 40, .2), transparent 60%), var(--surface);
    border: 1px solid var(--border); box-shadow: var(--shadow);
}
.cta__wordmark { width: min(360px, 80%); margin: 0 auto 28px; }
.cta .lead { margin: 0 auto 28px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 40px 0 28px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__links a { color: var(--muted); font-size: .92rem; }
.footer__links a:hover { color: var(--gold-1); }
.footer__legal { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--hairline); color: var(--legal); font-size: .82rem; }
.footer__legal p { margin: 0 0 6px; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero__mark, .toast { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* Theme toggle */
.theme-toggle {
    display: grid; place-items: center; flex: none;
    width: 42px; height: 42px; border-radius: 12px; cursor: pointer;
    background: var(--ghost-bg); border: 1px solid var(--border); color: var(--text);
    transition: border-color .2s ease, color .2s ease;
}
.theme-toggle:hover { border-color: var(--gold-2); color: var(--accent); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.nav__actions { display: flex; align-items: center; gap: 10px; }
@media (max-width: 900px) {
    .nav__actions { margin-left: auto; }
    .nav__actions .nav__toggle { margin-left: 0; }
}

/* ---------------------------------------------------------------- */
/* Auth pages                                                        */
/* ---------------------------------------------------------------- */
.btn--block { width: 100%; }
.btn svg { width: 20px; height: 20px; margin-right: 8px; flex: none; }
.btn:disabled { cursor: progress; opacity: .85; transform: none; }
.btn.is-busy svg { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.auth { display: grid; grid-template-columns: minmax(380px, 5fr) 7fr; min-height: 100vh; min-height: 100dvh; }

.auth__brand {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
    padding: 36px 48px;
    background: #0d0b06; color: #f4efe2;
    border-right: 1px solid var(--border);
}
.auth__brand .brand__name { color: #f4efe2; }
.auth__brand .brand__name span { background: linear-gradient(135deg, #ffe89a 0%, #f7b928 45%, #d99413 100%); -webkit-background-clip: text; background-clip: text; }
.auth__brand-glow {
    position: absolute; z-index: -1; width: 700px; height: 700px; right: -260px; top: 10%;
    background: radial-gradient(circle, rgba(247, 185, 40, .25), transparent 62%);
}
.auth__brand-mark { width: 62%; max-width: 300px; margin-bottom: 28px; filter: drop-shadow(0 24px 50px rgba(247, 185, 40, .35)); animation: float 7s ease-in-out infinite; }
.auth__brand h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin-bottom: 12px; }
.auth__brand p { color: #b3aa94; max-width: 400px; }
.auth__points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.auth__points li { position: relative; padding-left: 30px; color: #e6dfcd; font-size: .95rem; }
.auth__points li::before {
    content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
    background: rgba(247, 185, 40, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23f7b928' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.5l2.2 2.2 4.8-5'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.auth__brand-foot { font-size: .8rem; color: #7a7361 !important; margin: 0; }

.auth__main {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 96px 24px 48px;
    background: radial-gradient(ellipse 70% 50% at 50% 0%, var(--tint), transparent 70%), var(--bg);
}
.auth__top { position: absolute; top: 20px; left: 24px; right: 24px; display: flex; align-items: center; gap: 16px; }
.auth__mobile-brand { display: none; }
.auth__back { margin-left: auto; color: var(--muted); font-size: .92rem; font-weight: 500; }
.auth__back:hover { color: var(--accent); }

.auth__card {
    width: 100%; max-width: 460px; padding: 36px 32px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 24px;
    box-shadow: var(--shadow);
}
.auth__card h1 { font-size: 1.75rem; margin-bottom: 8px; }
.auth__lead { color: var(--muted); margin-bottom: 26px; font-size: .96rem; }

.auth__steps { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 4px; }
.auth__steps li {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
    color: var(--muted); font-size: .92rem; font-weight: 500; transition: background .2s, color .2s;
}
.auth__steps li span {
    width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center;
    font-size: .8rem; font-weight: 700; border: 1px solid var(--border); background: var(--surface-2);
}
.auth__steps li[data-state="active"] { background: var(--tint); color: var(--text); }
.auth__steps li[data-state="active"] span { border-color: var(--gold-2); color: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
.auth__steps li[data-state="done"] { color: var(--text); }
.auth__steps li[data-state="done"] span { background: var(--gold-grad); border-color: transparent; color: transparent; position: relative; }
.auth__steps li[data-state="done"] span::after {
    content: ''; position: absolute; left: 9px; top: 9px; width: 9px; height: 5px;
    border-left: 2px solid var(--on-gold); border-bottom: 2px solid var(--on-gold); transform: rotate(-45deg);
}
.auth__steps li[data-state="error"] { color: var(--down); }
.auth__steps li[data-state="error"] span { border-color: var(--down); color: var(--down); }

.auth__status { margin-top: 18px; padding: 12px 14px; border-radius: 12px; font-size: .9rem; border: 1px solid; }
.auth__status--info { background: var(--tint); border-color: var(--border); color: var(--text); }
.auth__status--success { background: var(--up-bg); border-color: transparent; color: var(--up); }
.auth__status--error { background: rgba(220, 38, 38, .08); border-color: rgba(220, 38, 38, .25); color: var(--down); }
.auth__status a { color: inherit; font-weight: 600; text-decoration: underline; }

.auth__nowallet { margin-top: 16px; font-size: .9rem; color: var(--muted); }
.auth__nowallet p { margin-bottom: 10px; }
.auth__deeplinks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.auth__deeplinks .btn { font-size: .85rem; padding: 10px 12px; }

.auth__switch { margin-top: 22px; color: var(--muted); font-size: .95rem; }
.auth__switch a { color: var(--accent); font-weight: 600; }
.auth__switch a:hover { text-decoration: underline; }

/* Form field */
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.field__wrap { position: relative; }
.field input {
    width: 100%; padding: 14px 44px 14px 16px; border-radius: 14px;
    font: inherit; font-size: 1rem; font-weight: 600; letter-spacing: .06em;
    color: var(--text); background: var(--surface-2); border: 1px solid var(--border);
    transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: var(--legal); font-weight: 400; letter-spacing: 0; }
.field input:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 4px var(--tint); }
.field__state { position: absolute; right: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; }
.field__state.is-loading { border: 2px solid var(--border); border-top-color: var(--gold-2); animation: spin .7s linear infinite; }
.field__state.is-ok { background: var(--up); }
.field__state.is-ok::after {
    content: ''; position: absolute; left: 6px; top: 6px; width: 8px; height: 4px;
    border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg);
}
.field__state.is-bad { background: var(--down); }
.field__state.is-bad::before, .field__state.is-bad::after {
    content: ''; position: absolute; left: 9px; top: 5px; width: 2px; height: 10px; background: #fff; transform: rotate(45deg);
}
.field__state.is-bad::before { transform: rotate(-45deg); }
.field__hint { margin: 8px 0 0; font-size: .84rem; color: var(--muted); }
.field__hint.is-ok { color: var(--up); }
.field__hint.is-bad { color: var(--down); }

@media (max-width: 960px) {
    .auth { grid-template-columns: 1fr; }
    .auth__brand { display: none; }
    .auth__mobile-brand { display: inline-flex; }
    .auth__back { font-size: .85rem; }
}
@media (max-width: 480px) {
    .auth__main { padding: 88px 16px 32px; justify-content: flex-start; }
    .auth__top { left: 16px; right: 16px; gap: 10px; }
    .auth__back { display: none; }
    .auth__top .theme-toggle { margin-left: auto; }
    .auth__card { padding: 28px 20px; border-radius: 20px; }
    .auth__deeplinks { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- */
/* Dashboard (starter)                                               */
/* ---------------------------------------------------------------- */
.dash-nav { margin-left: auto; }
.dash-nav form { margin: 0; }
.wallet-chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border); font-size: .88rem; font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.wallet-chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px var(--up-bg); }
.dashboard { padding-top: 48px; }
.dashboard__title { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 28px; }
.stat { padding: 24px; display: grid; gap: 4px; }
.stat__label { color: var(--muted); font-size: .85rem; font-weight: 500; }
.stat__value { font-size: 1.7rem; font-weight: 700; letter-spacing: .02em; }
.stat__sub { color: var(--muted); font-size: .82rem; }
.refbox { margin-top: 20px; padding: 22px 24px; display: flex; align-items: flex-end; gap: 16px; }
.refbox > div { flex: 1; min-width: 0; }
.refbox__input {
    width: 100%; margin-top: 8px; padding: 12px 14px; border-radius: 12px;
    font: inherit; font-size: .95rem; color: var(--text);
    background: var(--surface-2); border: 1px solid var(--border);
}
@media (max-width: 640px) {
    .wallet-chip { display: none; }
    .refbox { flex-direction: column; align-items: stretch; }
}
