/* ==========================================================================
   Bitcoin Rewards — public design system
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    color-scheme: dark;
    --bg: #07090d;
    --bg-soft: #090c12;
    --surface: rgba(16, 22, 31, 0.82);
    --surface-solid: #10151d;
    --surface-2: #141b25;
    --surface-3: #1a2330;
    --surface-4: #212c3b;
    --text: #eef3f8;
    --text-strong: #ffffff;
    --muted: #93a1b4;
    --muted-2: #6f7e92;
    --border: rgba(255, 255, 255, 0.085);
    --border-strong: rgba(255, 255, 255, 0.16);
    --accent: #c8f560;
    --accent-strong: #dcff8d;
    --accent-ink: #111802;
    --accent-text: #c8f560;
    --bitcoin: #f7931a;
    --bitcoin-strong: #ffb35c;
    --success: #64e3a6;
    --success-bg: rgba(100, 227, 166, 0.10);
    --warning: #f6ca72;
    --warning-bg: rgba(246, 202, 114, 0.10);
    --danger: #ff7485;
    --danger-bg: rgba(255, 116, 133, 0.10);
    --info: #7dc5ff;
    --info-bg: rgba(125, 197, 255, 0.10);
    --shadow-sm: 0 8px 30px rgba(0, 0, 0, 0.22);
    --shadow-md: 0 24px 70px rgba(0, 0, 0, 0.40);
    --shadow-accent: 0 18px 60px rgba(200, 245, 96, 0.14);
    --radius-xs: 10px;
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    --container: 1180px;
}

html[data-theme="light"] {
    color-scheme: light;
    --bg: #f5f6f1;
    --bg-soft: #eef1ea;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-solid: #ffffff;
    --surface-2: #f1f4ee;
    --surface-3: #e7ece3;
    --surface-4: #dce3d7;
    --text: #17211a;
    --text-strong: #0a120c;
    --muted: #5f6f63;
    --muted-2: #7e8d81;
    --border: rgba(16, 29, 19, 0.10);
    --border-strong: rgba(16, 29, 19, 0.18);
    --accent: #b9e542;
    --accent-strong: #a9d92d;
    --accent-ink: #101802;
    --accent-text: #4a7600;
    --bitcoin: #d97706;
    --bitcoin-strong: #b45309;
    --success: #148654;
    --success-bg: rgba(20, 134, 84, 0.10);
    --warning: #9a6400;
    --warning-bg: rgba(154, 100, 0, 0.10);
    --danger: #c92b3f;
    --danger-bg: rgba(201, 43, 63, 0.09);
    --info: #1769a8;
    --info-bg: rgba(23, 105, 168, 0.09);
    --shadow-sm: 0 8px 30px rgba(28, 43, 31, 0.08);
    --shadow-md: 0 24px 70px rgba(28, 43, 31, 0.14);
    --shadow-accent: 0 18px 60px rgba(130, 170, 25, 0.16);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(900px 600px at 12% -8%, rgba(200, 245, 96, 0.10), transparent 62%),
        radial-gradient(760px 520px at 88% 2%, rgba(247, 147, 26, 0.075), transparent 64%),
        radial-gradient(800px 600px at 50% 110%, rgba(94, 227, 166, 0.05), transparent 65%);
}

html[data-theme="light"] body::before {
    background:
        radial-gradient(900px 600px at 12% -8%, rgba(160, 205, 40, 0.16), transparent 62%),
        radial-gradient(760px 520px at 88% 2%, rgba(247, 147, 26, 0.09), transparent 64%);
}

img,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

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

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    color: var(--text-strong);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

p {
    margin-bottom: 1.1em;
}

::selection {
    background: var(--accent);
    color: var(--accent-ink);
}

[hidden] {
    display: none !important;
}

/* ---------- Utilities ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}

.section {
    padding: 76px 0;
    position: relative;
}

.section--tight {
    padding: 48px 0;
}

.section--alt {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 65%);
}

html[data-theme="light"] .section--alt {
    background: linear-gradient(180deg, rgba(16, 29, 19, 0.025), transparent 65%);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.section-head__copy {
    max-width: 680px;
}

.section-title {
    font-size: clamp(1.8rem, 3.4vw, 2.75rem);
    margin-bottom: 12px;
}

.section-lead {
    color: var(--muted);
    font-size: 1.03rem;
    margin: 0;
    max-width: 60ch;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: var(--accent-text);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(200, 245, 96, 0.10);
}

html[data-theme="light"] .eyebrow::before {
    box-shadow: 0 0 0 5px rgba(74, 118, 0, 0.10);
}

.text-gradient {
    background: linear-gradient(105deg, var(--accent) 10%, var(--bitcoin-strong) 85%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 0.86rem;
}

.tabular {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 999;
    transform: translateY(-160%);
    background: var(--accent);
    color: var(--accent-ink);
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* ---------- Buttons / badges ---------- */
.btn {
    --btn-bg: var(--surface-3);
    --btn-color: var(--text);
    --btn-border: var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid var(--btn-border);
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--btn-color);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
    border-color: var(--border-strong);
}

.btn:active {
    transform: translateY(0);
}

.btn .icon {
    flex: 0 0 auto;
}

.btn-primary {
    --btn-bg: linear-gradient(135deg, var(--accent-strong), var(--accent));
    --btn-color: var(--accent-ink);
    --btn-border: transparent;
    box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
    box-shadow: 0 22px 70px rgba(200, 245, 96, 0.24);
}

.btn-bitcoin {
    --btn-bg: linear-gradient(135deg, var(--bitcoin-strong), var(--bitcoin));
    --btn-color: #1a0c00;
    --btn-border: transparent;
    box-shadow: 0 18px 50px rgba(247, 147, 26, 0.20);
}

.btn-ghost {
    --btn-bg: rgba(255, 255, 255, 0.025);
    --btn-border: var(--border-strong);
    backdrop-filter: blur(10px);
}

html[data-theme="light"] .btn-ghost {
    --btn-bg: rgba(255, 255, 255, 0.55);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    min-height: 38px;
    padding: 0 15px;
    font-size: 0.82rem;
}

.btn-lg {
    min-height: 54px;
    padding: 0 26px;
    font-size: 1rem;
}

.btn[disabled],
.btn.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--accent-text);
    font-weight: 700;
    font-size: 0.88rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, gap 0.2s ease;
}

.text-link:hover {
    border-color: currentColor;
    gap: 10px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge--bitcoin {
    color: var(--bitcoin-strong);
    background: rgba(247, 147, 26, 0.10);
    border-color: rgba(247, 147, 26, 0.22);
}

.badge--accent {
    color: var(--accent-text);
    background: rgba(200, 245, 96, 0.08);
    border-color: rgba(200, 245, 96, 0.20);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.status-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-badge--success {
    color: var(--success);
    background: var(--success-bg);
}

.status-badge--pending {
    color: var(--warning);
    background: var(--warning-bg);
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    background: rgba(7, 9, 13, 0.72);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    transition: background 0.25s ease, border-color 0.25s ease;
}

html[data-theme="light"] .site-header {
    background: rgba(245, 246, 241, 0.78);
}

.site-header.is-scrolled {
    border-bottom-color: var(--border);
    background: rgba(7, 9, 13, 0.88);
}

html[data-theme="light"] .site-header.is-scrolled {
    background: rgba(245, 246, 241, 0.92);
}

.nav-shell {
    display: flex;
    align-items: center;
    gap: 26px;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex: 0 0 auto;
    min-width: 0;
}

.brand__mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 13px;
    background: linear-gradient(140deg, var(--accent-strong), var(--accent) 55%, var(--bitcoin));
    color: #111802;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(200, 245, 96, 0.18);
}

.brand__mark img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.brand__copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.12;
}

.brand__copy strong {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-strong);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand__copy small {
    color: var(--muted);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 12px;
}

.site-nav a {
    padding: 9px 13px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 600;
    transition: color 0.18s ease, background 0.18s ease;
}

.site-nav a:hover {
    color: var(--text-strong);
    background: var(--surface-2);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-left: auto;
    min-width: 0;
}

.rate-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 0.74rem;
    white-space: nowrap;
    min-width: 0;
}

.rate-pill__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(100, 227, 166, 0.12);
    animation: pulse-dot 2.4s ease-in-out infinite;
}

.rate-pill__label {
    font-weight: 700;
    letter-spacing: 0.08em;
}

.rate-pill strong {
    color: var(--text-strong);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.balance-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 0.74rem;
    white-space: nowrap;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.balance-chip:hover {
    border-color: var(--border-strong);
    background: var(--surface-2);
}

.balance-chip__label {
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.balance-chip strong {
    color: var(--accent-text);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.balance-chip__unit {
    color: var(--muted-2);
    font-weight: 700;
}

.icon-button {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--muted);
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.icon-button:hover {
    color: var(--text-strong);
    border-color: var(--border-strong);
    background: var(--surface-2);
}

.theme-toggle__sun,
.theme-toggle__moon {
    display: none;
}

html[data-theme="dark"] .theme-toggle__sun {
    display: block;
}

html[data-theme="light"] .theme-toggle__moon {
    display: block;
}

.nav-toggle {
    display: none;
}

.nav-toggle__close {
    display: none;
}

.site-header.is-nav-open .nav-toggle__open {
    display: none;
}

.site-header.is-nav-open .nav-toggle__close {
    display: block;
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
}

.mobile-nav__inner {
    display: flex;
    flex-direction: column;
    padding-block: 14px 22px;
}

.mobile-nav__inner > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 2px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
}

.mobile-nav__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    color: var(--muted);
    font-size: 0.85rem;
}

.mobile-nav__meta strong {
    color: var(--accent-text);
    font-variant-numeric: tabular-nums;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 4px rgba(100, 227, 166, 0.10); }
    50% { box-shadow: 0 0 0 7px rgba(100, 227, 166, 0.03); }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 70px 0 58px;
    overflow: hidden;
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(390px, 0.97fr);
    gap: 48px;
    align-items: center;
}

.hero__copy {
    min-width: 0;
}

.hero h1 {
    font-size: clamp(2.75rem, 5.6vw, 5.2rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.055em;
    margin-bottom: 24px;
}

.hero__lead {
    max-width: 56ch;
    color: var(--muted);
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    line-height: 1.7;
    margin-bottom: 28px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 38px;
}

.trust-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--border);
    overflow: hidden;
}

.trust-item {
    min-width: 0;
    padding: 15px 16px;
    background: var(--surface);
}

.trust-item strong {
    display: block;
    color: var(--text-strong);
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.trust-item__fiat {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.7rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.trust-item span {
    display: block;
    margin-top: 3px;
    color: var(--muted-2);
    font-size: 0.72rem;
    letter-spacing: 0.03em;
}

.hero__aside {
    min-width: 0;
}

/* ---------- BTC amount ---------- */
.btc-amount {
    display: inline-flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    line-height: 1.25;
}

.btc-value {
    color: var(--text-strong);
    font-family: var(--font-display);
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    letter-spacing: -0.025em;
    /* Currency must never break mid-number. Very large values scale down
       inside their container instead of wrapping. */
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    max-width: 100%;
}

.btc-fiat {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    margin-top: 4px;
    white-space: nowrap;
}

.btc-amount--footer .btc-value {
    font-size: 0.9rem;
}

.btc-amount--footer .btc-fiat {
    font-size: 0.7rem;
}

/* ---------- Wallet card ---------- */
.wallet-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 26px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(520px 300px at 100% 0%, rgba(200, 245, 96, 0.13), transparent 60%),
        radial-gradient(420px 300px at 0% 100%, rgba(247, 147, 26, 0.10), transparent 65%),
        var(--surface);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    min-width: 0;
}

.wallet-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 18px 18px;
    mask-image: linear-gradient(180deg, #000, transparent 70%);
    pointer-events: none;
}

html[data-theme="light"] .wallet-card {
    background:
        radial-gradient(520px 300px at 100% 0%, rgba(160, 205, 40, 0.18), transparent 60%),
        radial-gradient(420px 300px at 0% 100%, rgba(247, 147, 26, 0.08), transparent 65%),
        var(--surface);
}

.wallet-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 24px;
}

.wallet-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.wallet-badge__icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 12px;
    background: rgba(247, 147, 26, 0.13);
    border: 1px solid rgba(247, 147, 26, 0.24);
    color: var(--bitcoin-strong);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
}

.wallet-badge strong {
    display: block;
    color: var(--text-strong);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.2;
}

.wallet-badge small {
    display: block;
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
}

.ref-code {
    flex: 0 0 auto;
    padding: 5px 9px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
}

.wallet-balance {
    margin-bottom: 24px;
}

.wallet-balance__label {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.wallet-balance__amount {
    display: flex;
}

.wallet-balance__amount .btc-value {
    font-size: clamp(1.42rem, 3.1vw, 2.32rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.wallet-balance__amount .btc-fiat {
    margin-top: 7px;
    font-size: 0.9rem;
    color: var(--accent-text);
    font-weight: 600;
}

.wallet-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 20px;
}

.wallet-stat {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.022);
}

html[data-theme="light"] .wallet-stat {
    background: rgba(255, 255, 255, 0.55);
}

.wallet-stat__label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted-2);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.wallet-stat__label .icon {
    color: var(--muted-2);
}

.wallet-stat__value {
    display: block;
    margin-top: 7px;
    color: var(--text-strong);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
    line-height: 1.3;
}

.wallet-stat__value small {
    color: var(--muted-2);
    font-size: 0.68rem;
    font-weight: 600;
}

.wallet-stat__amount {
    display: flex;
    margin-top: 7px;
}

.wallet-stat__amount .btc-value {
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.wallet-stat__amount .btc-fiat {
    margin-top: 2px;
    font-size: 0.66rem;
    color: var(--muted-2);
}

.btc-amount--inline {
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    gap: 5px;
    vertical-align: baseline;
}

.btc-amount--inline .btc-value {
    font-family: var(--font-body);
    font-size: 0.76rem;
    font-weight: 700;
}

.btc-amount--inline .btc-fiat {
    margin-top: 0;
    font-size: 0.7rem;
}

.wallet-progress {
    margin-bottom: 20px;
}

.wallet-progress__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.75rem;
}

.wallet-progress__top strong {
    color: var(--text-strong);
    font-variant-numeric: tabular-nums;
}

.progress-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
}

html[data-theme="light"] .progress-track {
    background: rgba(16, 29, 19, 0.08);
}

.progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--bitcoin));
    box-shadow: 0 0 18px rgba(200, 245, 96, 0.25);
    transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.wallet-link {
    margin-bottom: 16px;
}

.wallet-link label {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.copy-field {
    display: flex;
    align-items: stretch;
    gap: 6px;
    min-width: 0;
    padding: 5px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.16);
}

html[data-theme="light"] .copy-field {
    background: rgba(255, 255, 255, 0.7);
}

.copy-field input {
    width: 100%;
    min-width: 0;
    padding: 0 11px;
    border: 0;
    background: transparent;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    text-overflow: ellipsis;
    outline: none;
}

.copy-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 13px;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 0.76rem;
    font-weight: 800;
    transition: background 0.18s ease, color 0.18s ease;
}

.copy-button:hover {
    background: var(--accent-strong);
}

.copy-button.is-copied {
    background: var(--success);
    color: #04140b;
}

.share-row {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.share-row__label {
    margin-right: 2px;
    color: var(--muted-2);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.share-chip {
    display: grid;
    place-items: center;
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.share-chip:hover {
    color: var(--text-strong);
    border-color: var(--border-strong);
    background: var(--surface-2);
}

.qr-block {
    margin-bottom: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
}

.qr-block summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 13px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.qr-block summary::-webkit-details-marker {
    display: none;
}

.qr-block summary .icon:last-child {
    margin-left: auto;
    transition: transform 0.2s ease;
}

.qr-block[open] summary .icon:last-child {
    transform: rotate(180deg);
}

.qr-block__body {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 13px 14px;
}

.qr-block__body img {
    width: 112px;
    height: 112px;
    padding: 6px;
    border-radius: 10px;
    background: #fff;
}

.qr-block__body p {
    margin: 0;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.5;
}

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

.wallet-note {
    margin: 12px 0 0;
    color: var(--muted-2);
    font-size: 0.72rem;
    line-height: 1.55;
    text-align: center;
}

/* ---------- Cards / steps ---------- */
.card {
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.card--solid {
    background: var(--surface-solid);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    counter-reset: step;
}

.step-card {
    position: relative;
    min-width: 0;
    padding: 26px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

html[data-theme="light"] .step-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.55));
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

.step-card__number {
    position: absolute;
    top: 18px;
    right: 20px;
    color: var(--border-strong);
    font-family: var(--font-display);
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.06em;
}

.step-card__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 22px;
    border: 1px solid rgba(200, 245, 96, 0.20);
    border-radius: 14px;
    background: rgba(200, 245, 96, 0.08);
    color: var(--accent-text);
}

.step-card h3 {
    position: relative;
    margin-bottom: 9px;
    font-size: 1.12rem;
}

.step-card p {
    position: relative;
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

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

.feature {
    display: flex;
    gap: 14px;
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.feature__icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 11px;
    background: var(--surface-3);
    color: var(--accent-text);
}

.feature h3 {
    margin: 1px 0 5px;
    font-size: 0.98rem;
}

.feature p {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.6;
}

/* ---------- Tables ---------- */
.table-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.data-table th {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    color: var(--muted-2);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.data-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table tbody tr {
    transition: background 0.16s ease;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

html[data-theme="light"] .data-table tbody tr:hover {
    background: rgba(16, 29, 19, 0.025);
}

.data-table .cell-id {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

.data-table .cell-amount {
    min-width: 155px;
}

.data-table .btc-value {
    font-size: 0.9rem;
    font-weight: 700;
}

.data-table .btc-fiat {
    margin-top: 2px;
}

.table-empty {
    padding: 34px 20px;
    color: var(--muted);
    text-align: center;
}

/* ---------- FAQ ---------- */
.faq-list {
    display: grid;
    gap: 10px;
    max-width: 900px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    overflow: hidden;
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 19px 22px;
    color: var(--text-strong);
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary .icon {
    flex: 0 0 auto;
    color: var(--muted);
    transition: transform 0.2s ease, color 0.2s ease;
}

.faq-item[open] summary .icon {
    transform: rotate(180deg);
    color: var(--accent-text);
}

.faq-item__body {
    padding: 0 22px 21px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.faq-item__body p:last-child {
    margin-bottom: 0;
}

/* ---------- Alerts ---------- */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--text);
    font-size: 0.87rem;
    line-height: 1.55;
}

.alert .icon {
    flex: 0 0 auto;
    margin-top: 1px;
}

.alert-danger {
    border-color: rgba(255, 116, 133, 0.22);
    background: var(--danger-bg);
    color: var(--danger);
}

.alert-warning {
    border-color: rgba(246, 202, 114, 0.22);
    background: var(--warning-bg);
    color: var(--warning);
}

.alert-success {
    border-color: rgba(100, 227, 166, 0.22);
    background: var(--success-bg);
    color: var(--success);
}

.alert-info {
    border-color: rgba(125, 197, 255, 0.22);
    background: var(--info-bg);
    color: var(--info);
}

/* ---------- Forms ---------- */
.form-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field {
    min-width: 0;
    margin-bottom: 16px;
}

.field:last-child {
    margin-bottom: 0;
}

.field label {
    display: block;
    margin-bottom: 7px;
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.field label span {
    color: var(--muted-2);
    font-weight: 500;
}

.input,
.textarea,
.select {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    background: rgba(0, 0, 0, 0.16);
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.45;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

html[data-theme="light"] .input,
html[data-theme="light"] .textarea,
html[data-theme="light"] .select {
    background: rgba(255, 255, 255, 0.75);
}

.input::placeholder,
.textarea::placeholder {
    color: var(--muted-2);
    opacity: 0.75;
}

.input:focus,
.textarea:focus,
.select:focus {
    border-color: rgba(200, 245, 96, 0.55);
    box-shadow: 0 0 0 4px rgba(200, 245, 96, 0.10);
    outline: none;
}

.textarea {
    min-height: 130px;
    resize: vertical;
}

.input--amount {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

.field-hint {
    margin: 7px 0 0;
    color: var(--muted-2);
    font-size: 0.76rem;
    line-height: 1.5;
}

.field-hint strong {
    color: var(--text);
}

.field-hint code {
    padding: 1px 5px;
    border-radius: 5px;
    background: var(--surface-3);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.72rem;
}

.form-card a:not(.btn) {
    color: var(--accent-text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.captcha-row img {
    height: 52px;
    width: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
}

.form-status:empty {
    display: none;
}

.form-status {
    margin-bottom: 16px;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

/* ---------- Page hero / prose ---------- */
.page-hero {
    padding: 54px 0 38px;
    border-bottom: 1px solid var(--border);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 16px;
    color: var(--muted-2);
    font-size: 0.76rem;
}

.breadcrumb a:hover {
    color: var(--accent-text);
}

.page-hero h1 {
    max-width: 820px;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    margin-bottom: 14px;
}

.page-hero__lead {
    max-width: 62ch;
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 410px;
    gap: 36px;
    align-items: start;
    padding: 52px 0 76px;
}

.page-layout__main {
    min-width: 0;
}

.page-layout__aside {
    position: sticky;
    top: 100px;
    min-width: 0;
}

.prose {
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.78;
    overflow-wrap: break-word;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
    margin: 1.8em 0 0.55em;
    letter-spacing: -0.025em;
}

.prose h1:first-child,
.prose h2:first-child,
.prose h3:first-child {
    margin-top: 0;
}

.prose h2 {
    font-size: 1.55rem;
}

.prose h3 {
    font-size: 1.2rem;
}

.prose h4 {
    font-size: 1.04rem;
}

.prose p,
.prose ul,
.prose ol {
    color: var(--muted);
}

.prose strong {
    color: var(--text-strong);
}

.prose a {
    color: var(--accent-text);
    text-decoration: underline;
    text-decoration-color: rgba(200, 245, 96, 0.35);
    text-underline-offset: 3px;
}

.prose a:hover {
    text-decoration-color: currentColor;
}

.prose ul,
.prose ol {
    padding-left: 1.25em;
}

.prose li {
    margin-bottom: 0.4em;
}

.prose blockquote {
    margin: 1.5em 0;
    padding: 16px 20px;
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--surface-2);
    color: var(--muted);
}

.prose img,
.prose iframe {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.prose iframe {
    border: 0;
}

.prose table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 1.4em 0;
    font-size: 0.9rem;
}

.prose th,
.prose td {
    padding: 10px 12px;
    border: 1px solid var(--border);
    text-align: left;
}

.prose th {
    background: var(--surface-2);
    color: var(--text-strong);
}

.prose code {
    padding: 2px 5px;
    border-radius: 5px;
    background: var(--surface-3);
    font-family: var(--font-mono);
    font-size: 0.86em;
}

/* ---------- Contact / withdrawal layouts ---------- */
.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 410px;
    gap: 36px;
    align-items: start;
    padding: 52px 0 76px;
}

.split-layout__main {
    min-width: 0;
}

.split-layout__aside {
    position: sticky;
    top: 100px;
    min-width: 0;
}

.info-stack {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.info-item {
    display: flex;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.info-item__icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: var(--surface-3);
    color: var(--accent-text);
}

.info-item strong {
    display: block;
    color: var(--text-strong);
    font-size: 0.84rem;
}

.info-item p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.withdraw-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}

.withdraw-metric {
    min-width: 0;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
}

.withdraw-metric span {
    display: block;
    color: var(--muted-2);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.withdraw-metric .btc-value {
    display: block;
    margin-top: 7px;
    font-size: 1.05rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.withdraw-metric .btc-fiat {
    margin-top: 3px;
}

/* ---------- Footer ---------- */
.site-footer {
    padding: 64px 0 38px;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.16));
}

html[data-theme="light"] .site-footer {
    background: linear-gradient(180deg, transparent, rgba(16, 29, 19, 0.03));
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.8fr));
    gap: 42px;
    padding-bottom: 42px;
}

.footer-brand p {
    max-width: 36ch;
    margin: 16px 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.7;
}

.brand--footer .brand__mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 1.2rem;
}

.footer-rate {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 0.75rem;
}

.footer-rate strong {
    color: var(--text-strong);
    font-variant-numeric: tabular-nums;
}

.footer-rate small {
    color: var(--muted-2);
}

.footer-col h3 {
    margin-bottom: 15px;
    color: var(--text-strong);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-col a:not(.text-link) {
    display: block;
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 0.86rem;
    transition: color 0.18s ease;
}

.footer-col a:not(.text-link):hover {
    color: var(--text-strong);
}

.footer-payout {
    margin-bottom: 13px;
}

.footer-payout > span {
    display: block;
    color: var(--muted-2);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    margin: 0;
    color: var(--muted-2);
    font-size: 0.78rem;
}

.footer-bottom__note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-disclaimer {
    max-width: 100ch;
    margin: 0;
    color: var(--muted-2);
    font-size: 0.7rem;
    line-height: 1.7;
    opacity: 0.85;
}

/* ---------- Cookie banner / toast / ads ---------- */
.cookie-banner {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 200;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    width: min(440px, calc(100vw - 32px));
    padding: 18px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--surface-solid);
    box-shadow: var(--shadow-md);
    animation: toast-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cookie-banner__icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 11px;
    background: var(--surface-3);
    font-size: 1.2rem;
}

.cookie-banner__copy {
    min-width: 0;
}

.cookie-banner__copy strong {
    display: block;
    color: var(--text-strong);
    font-size: 0.88rem;
}

.cookie-banner__copy p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

.cookie-banner__copy a {
    color: var(--accent-text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner__actions {
    flex: 0 0 auto;
    align-self: center;
}

.toast-stack {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 300;
    display: grid;
    gap: 8px;
    width: min(340px, calc(100vw - 32px));
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: var(--surface-solid);
    box-shadow: var(--shadow-md);
    color: var(--text);
    font-size: 0.82rem;
    animation: toast-in 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.toast--success .icon {
    color: var(--success);
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.ad-slot {
    padding: 18px 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.ad-slot--top {
    border-bottom: 0;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.01);
}

.ad-slot--bottom {
    border-bottom: 0;
    border-top: 1px solid var(--border);
}

.ad-slot img,
.ad-slot iframe {
    max-width: 100%;
    height: auto;
}

.ad-slot--content {
    margin: 30px 0;
    padding: 18px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
}

/* ---------- Reveal animation ---------- */
.reveal-init {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-init.is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .site-nav {
        gap: 0;
        margin-left: 6px;
    }

    .site-nav a {
        padding-inline: 10px;
        font-size: 0.82rem;
    }

    .rate-pill__label {
        display: none;
    }

    .hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
        gap: 34px;
    }
}

@media (max-width: 980px) {
    .site-nav {
        display: none;
    }

    .nav-toggle {
        display: inline-grid;
    }

    .site-header.is-nav-open .mobile-nav {
        display: block;
    }

    body.nav-locked {
        overflow: hidden;
    }

    .hero {
        padding-top: 48px;
    }

    .hero__grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .hero__copy {
        max-width: 720px;
    }

    .hero__aside {
        width: min(100%, 560px);
    }

    .page-layout,
    .split-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-layout__aside,
    .split-layout__aside {
        position: static;
        width: min(100%, 560px);
    }

    .steps-grid,
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }
}

@media (max-width: 760px) {
    .container {
        padding-inline: 18px;
    }

    .nav-shell {
        min-height: 68px;
        gap: 12px;
    }

    .brand__copy small {
        display: none;
    }

    .balance-chip__label {
        display: none;
    }

    .balance-chip {
        padding-inline: 10px;
    }

    .section {
        padding: 56px 0;
    }

    .section-head {
        display: block;
        margin-bottom: 26px;
    }

    .section-head .btn {
        margin-top: 16px;
    }

    .hero h1 {
        font-size: clamp(2.45rem, 10vw, 3.6rem);
    }

    .trust-row {
        grid-template-columns: 1fr;
    }

    .trust-item {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 14px;
        padding: 11px 14px;
    }

    .trust-item span {
        margin-top: 0;
        text-align: right;
    }

    .steps-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

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

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

    .footer-bottom {
        display: block;
    }

    .footer-bottom__note {
        margin-top: 8px;
    }

    .cookie-banner {
        left: 16px;
        right: 16px;
        bottom: 16px;
        width: auto;
        padding: 15px;
    }

    .cookie-banner__actions {
        align-self: flex-end;
    }

    /* Tables become cards */
    .data-table thead {
        display: none;
    }

    .data-table,
    .data-table tbody,
    .data-table tr,
    .data-table td {
        display: block;
        width: 100%;
    }

    .data-table tr {
        padding: 8px 14px;
        border-bottom: 1px solid var(--border);
    }

    .data-table tr:last-child {
        border-bottom: 0;
    }

    .data-table td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 18px;
        padding: 7px 0;
        border: 0;
        text-align: right;
    }

    .data-table td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        color: var(--muted-2);
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.07em;
        text-transform: uppercase;
        text-align: left;
    }

    .data-table td.cell-amount {
        min-width: 0;
    }

    .data-table .btc-amount {
        align-items: flex-end;
        text-align: right;
    }
}

@media (max-width: 520px) {
    .rate-pill {
        display: none;
    }

    /* Keep the header on one line at 320px: mark + balance + controls. */
    .brand__copy {
        display: none;
    }

    .nav-shell {
        gap: 8px;
    }

    .nav-actions {
        gap: 6px;
    }

    .balance-chip {
        gap: 4px;
        padding-inline: 8px;
    }

    .balance-chip strong {
        max-width: 76px;
    }

    .brand__mark {
        width: 36px;
        height: 36px;
        border-radius: 11px;
        font-size: 1.2rem;
    }

    .balance-chip strong {
        max-width: 90px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .wallet-card,
    .form-card {
        padding: 20px;
        border-radius: var(--radius-md);
    }

    .wallet-card__top {
        margin-bottom: 20px;
    }

    .wallet-balance__amount .btc-value {
        font-size: clamp(1.25rem, 7.4vw, 1.8rem);
    }

    .qr-block__body {
        flex-direction: column;
        align-items: flex-start;
    }

    .withdraw-summary {
        grid-template-columns: 1fr;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .page-hero {
        padding: 40px 0 30px;
    }

    .split-layout,
    .page-layout {
        padding-top: 38px;
    }

    .cookie-banner {
        flex-wrap: wrap;
    }

    .cookie-banner__actions {
        width: 100%;
    }

    .cookie-banner__actions .btn {
        width: 100%;
    }
}

@media (max-width: 400px) {
    .wallet-stats {
        grid-template-columns: 1fr;
    }

    .copy-field {
        flex-direction: column;
        border-radius: var(--radius-sm);
    }

    .copy-field input {
        padding: 9px 10px;
    }

    .copy-button {
        justify-content: center;
        border-radius: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .reveal-init {
        opacity: 1;
        transform: none;
    }
}
