:root {
    --bg: #fbfaf6;
    --tint: #f4efe2;
    --card: #ffffff;
    --border: rgba(15, 43, 87, .08);
    --border-2: rgba(15, 43, 87, .15);
    --text: #1d2b45;
    --heading: #0b2147;
    --muted: #5f6c84;
    --navy: #0f2b57;
    --navy-2: #1d4483;
    --gold: #c9a24a;
    --gold-dark: #a37c22;
    --gold-soft: #f5e7c0;
    --emerald: #1f9d6b;
    --emerald-soft: #e3f4ec;
    --red: #dc4b5c;
    --cream: #fffdf6;
    --radius: 20px;
    --shadow-sm: 0 2px 6px rgba(15, 43, 87, .04), 0 8px 24px -12px rgba(15, 43, 87, .12);
    --shadow: 0 4px 12px rgba(15, 43, 87, .04), 0 30px 60px -30px rgba(15, 43, 87, .25);
    --grad: linear-gradient(100deg, #a37c22 0%, #c9a24a 45%, #1f9d6b 100%);
    --font-head: "Sora", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
/* Rotating orbit arms have bounding boxes wider than the viewport on phones;
   clip (not hidden) so the page never scrolls sideways and sticky/fixed still work. */
html, body { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; color: var(--heading); letter-spacing: -.02em; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.9rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 700; letter-spacing: -.03em; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
::selection { background: var(--gold-soft); color: var(--heading); }

/* let grid columns shrink below their content width (e.g. the scrollable pair tabs) */
.hero-grid > *, .forex-grid > *, .brand-grid > *, .calc > *, .cta-panel > *, .bento > *, .assets > * { min-width: 0; }
.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 840px; }
.muted { color: var(--muted); }
.grad-text {
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Ambient background (soft colour glows only) ---------- */
.page-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(120px); }
.g1 { width: 600px; height: 600px; background: rgba(201, 162, 74, .22); top: -220px; right: -120px; animation: drift 24s ease-in-out infinite alternate; }
.g2 { width: 520px; height: 520px; background: rgba(29, 68, 131, .10); top: 30%; left: -220px; animation: drift 28s ease-in-out infinite alternate-reverse; }
.g3 { width: 520px; height: 520px; background: rgba(31, 157, 107, .12); bottom: -240px; right: 20%; animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(80px, 60px) scale(1.1); } }

/* ---------- Buttons ---------- */
.btn {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .85rem 1.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--font-head); font-weight: 600; font-size: .95rem;
    cursor: pointer; white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-gold {
    background: linear-gradient(135deg, #e8cd84, var(--gold) 50%, var(--gold-dark));
    color: #1f1606;
    box-shadow: 0 10px 26px -10px rgba(163, 124, 34, .65), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.btn-gold::after {
    content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent);
    transform: skewX(-20deg);
    animation: shine 4.5s ease-in-out infinite;
}
@keyframes shine { 0%, 60% { left: -120%; } 100% { left: 160%; } }
.btn-gold:hover { box-shadow: 0 16px 36px -10px rgba(163, 124, 34, .8), inset 0 1px 0 rgba(255, 255, 255, .55); }
.btn-glass { background: var(--card); border-color: var(--border-2); color: var(--heading); box-shadow: var(--shadow-sm); }
.btn-glass:hover { border-color: var(--navy); }
.btn-sm { padding: .55rem 1.1rem; font-size: .85rem; }
.btn-lg { padding: 1rem 1.8rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Cards & spotlight ---------- */
.glass {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.spot { position: relative; isolation: isolate; }
.spot::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(201, 162, 74, .12), transparent 45%);
    opacity: 0; transition: opacity .3s;
}
.spot:hover::before { opacity: 1; }

.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--font-head); font-size: .75rem; font-weight: 600;
    letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark);
    margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--gold); }

/* ---------- Header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .3s, border-color .3s, box-shadow .3s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(251, 250, 246, .85); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border-color: var(--border); box-shadow: 0 8px 30px -20px rgba(15, 43, 87, .35); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-badge { width: 46px; height: 46px; display: grid; place-items: center; flex: none; }
.brand-badge img { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-head); }
.brand-text strong { font-size: 1.1rem; font-weight: 800; color: var(--navy); letter-spacing: .08em; }
.brand-text em { font-style: normal; font-size: .68rem; font-weight: 600; color: var(--gold-dark); letter-spacing: .32em; margin-top: 4px; }
.nav-menu { display: flex; align-items: center; gap: 2rem; font-size: .93rem; font-weight: 500; }
.nav-menu a:not(.btn) { color: #3b4864; position: relative; transition: color .2s; }
.nav-menu a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px; border-radius: 2px; background: var(--gold); transition: width .25s; }
.nav-menu a:not(.btn):hover { color: var(--heading); }
.nav-menu a:not(.btn):hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 0; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-bottom: 90px; }
.chip-pill {
    display: inline-flex; align-items: center; gap: .6rem;
    padding: .45rem 1rem; border-radius: 999px;
    background: var(--card); border: 1px solid var(--border-2); box-shadow: var(--shadow-sm);
    font-size: .82rem; font-weight: 500; color: #3b4864; margin-bottom: 1.6rem;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 0 rgba(31, 157, 107, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(31, 157, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 157, 107, 0); } }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 33rem; margin-top: 1.4rem; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 2.2rem 0 2.4rem; }
.hero-proof { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.6rem; flex-wrap: wrap; font-size: .88rem; color: var(--muted); }
.hero-proof li { display: flex; align-items: center; gap: .45rem; }
.hero-proof svg { width: 18px; height: 18px; fill: none; stroke: var(--emerald); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Orbit visual */
.hero-visual { position: relative; aspect-ratio: 1; max-width: 560px; width: 100%; justify-self: center; }
.orbit { position: absolute; inset: 0; display: grid; place-items: center; }
.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(15, 43, 87, .1); }
.ring-1 { inset: 4%; animation: spin 50s linear infinite; }
.ring-2 { inset: 19%; border: 1.5px dashed rgba(201, 162, 74, .45); animation: spin 36s linear infinite reverse; }
.ring-3 { inset: 33%; background: radial-gradient(circle, rgba(201, 162, 74, .2), transparent 70%); border-color: rgba(201, 162, 74, .3); }
@keyframes spin { to { transform: rotate(360deg); } }
.arm { position: absolute; inset: 0; transform: rotate(var(--a)); pointer-events: none; }
.o-chip {
    position: absolute; top: 0; left: 50%;
    width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
    display: grid; place-items: center;
    font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: #f3dc9b;
    background: linear-gradient(160deg, var(--navy-2), var(--navy));
    border: 2px solid #fff;
    box-shadow: 0 12px 24px -10px rgba(15, 43, 87, .55);
    transform: rotate(calc(var(--a) * -1));
}
/* counter-spin labels so they stay upright while the ring rotates */
.o-chip i { font-style: normal; display: block; }
.ring-1 .o-chip i { animation: spin 50s linear infinite reverse; }
.ring-2 .o-chip i { animation: spin 36s linear infinite; }
.ring-2 .o-chip { width: 46px; height: 46px; margin: -23px 0 0 -23px; font-size: .68rem; color: #fff; }
.o-chip.eth { background: linear-gradient(160deg, #7b93f0, #4a62c9); }
.o-chip.sol { background: linear-gradient(160deg, #19d6a0, #0e8f6b); }
.o-chip.dot { background: linear-gradient(160deg, #ff3da0, #b8005f); }
.core {
    position: relative; width: 38%; aspect-ratio: 1; border-radius: 50%;
    display: grid; place-items: center;
    background: radial-gradient(circle at 30% 25%, #fff, var(--cream) 60%, #f6eccf);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, .8), 0 0 0 9px rgba(201, 162, 74, .45), 0 40px 80px -20px rgba(163, 124, 34, .45);
    animation: bob 6s ease-in-out infinite;
}
.core img { width: 84%; height: auto; }
@keyframes bob { 50% { transform: translateY(-10px); } }

.float-card { position: absolute; padding: 14px 18px; border-radius: 16px; display: flex; flex-direction: column; gap: 2px; animation: bob 7s ease-in-out infinite; }
.fc-label { font-size: .72rem; color: var(--muted); font-weight: 500; letter-spacing: .04em; }
.float-card strong { font-family: var(--font-head); font-size: 1.25rem; color: var(--heading); }
.fc-delta { font-size: .78rem; font-weight: 600; }
.up { color: var(--emerald); }
.down { color: var(--red); }
.fc-rate { top: 6%; left: -4%; animation-delay: -2s; }
.fc-apy { bottom: 10%; right: -4%; flex-direction: row; align-items: center; gap: 12px; animation-delay: -4s; }
.fc-apy > div:last-child { display: flex; flex-direction: column; }
.apy-ring { position: relative; width: 48px; height: 48px; }
.apy-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.apy-ring circle { fill: none; stroke-width: 3.5; }
.apy-ring .track { stroke: var(--emerald-soft); }
.apy-ring .bar { stroke: var(--emerald); stroke-linecap: round; stroke-dasharray: 97.4; stroke-dashoffset: 97.4; animation: fill-ring 2s ease forwards .6s; }
@keyframes fill-ring { to { stroke-dashoffset: 30; } }
.apy-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: .7rem; font-weight: 700; color: var(--heading); }
.fc-candles { bottom: 2%; left: 2%; width: 210px; animation-delay: -1s; }
.fc-candles svg { width: 100%; height: 64px; margin-top: 6px; }

/* ---------- Ticker ---------- */
.ticker {
    position: relative; overflow: hidden; padding: 16px 0;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, .7);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: scroll 45s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tick { display: flex; gap: 10px; align-items: baseline; font-size: .92rem; white-space: nowrap; padding-right: 56px; font-variant-numeric: tabular-nums; color: var(--text); }
.tick b { font-family: var(--font-head); font-weight: 600; color: var(--navy); }
.tick.source { color: var(--muted); font-size: .78rem; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats-band { padding: 70px 0 20px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 10px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: -10px; top: 20%; bottom: 20%; width: 1px; background: var(--border-2); }
.stat strong {
    display: block; font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -.03em;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
    font-variant-numeric: tabular-nums;
}
.stat span { color: var(--muted); font-size: .92rem; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.section-head .eyebrow::after { content: ""; width: 22px; height: 1.5px; background: var(--gold); }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile {
    grid-column: span 2;
    padding: 30px; border-radius: var(--radius); overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.tile:hover { transform: translateY(-4px); border-color: rgba(201, 162, 74, .5); box-shadow: var(--shadow); }
.tile-lg { grid-column: span 3; min-height: 300px; display: flex; flex-direction: column; }
.tile p { color: var(--muted); margin: 0; font-size: .96rem; }
.tile-icon {
    width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
    background: linear-gradient(160deg, var(--navy-2), var(--navy));
    box-shadow: 0 10px 20px -10px rgba(15, 43, 87, .6);
}
.tile-icon.green { background: linear-gradient(160deg, #2bbf86, var(--emerald)); box-shadow: 0 10px 20px -10px rgba(31, 157, 107, .6); }
.tile-icon svg { width: 24px; height: 24px; fill: none; stroke: #f3dc9b; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile-icon.green svg { stroke: #fff; }
.tile-chart { width: calc(100% + 60px); height: 110px; margin: auto -30px -30px; display: block; }
.draw { stroke-dasharray: 600; stroke-dashoffset: 600; }
.in .draw, .tile.in .draw { animation: draw-line 2.2s ease forwards .2s; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
.tile-coins { margin-top: auto; padding-top: 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mini-coin { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); }
.mini-coin b { font-family: var(--font-head); font-size: .95rem; color: var(--emerald); }

.coin {
    width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center;
    background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--coin) 55%, #fff), var(--coin) 60%);
    color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .68rem;
    box-shadow: 0 8px 18px -8px var(--coin);
}
.coin.sm { width: 40px; height: 40px; font-size: .62rem; }

/* Forex */
.forex-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.forex-copy .muted { font-size: 1.08rem; }
.ticks { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: var(--text); }
.ticks li::before {
    content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
    background: var(--emerald) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.market { padding: 24px; }
.market-tabs { display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.market-tabs::-webkit-scrollbar { display: none; }
.market-tabs button {
    flex: 1; border: 0; background: none; cursor: pointer; padding: .6rem .8rem; border-radius: 10px;
    font-family: var(--font-head); font-size: .82rem; font-weight: 600; color: var(--muted); white-space: nowrap; transition: .2s;
}
.market-tabs button:hover { color: var(--heading); }
.market-tabs button.active { background: var(--navy); color: #f3dc9b; box-shadow: 0 6px 14px -6px rgba(15, 43, 87, .6); }
.market-head { display: flex; justify-content: space-between; align-items: flex-end; margin: 24px 4px 10px; gap: 16px; }
.m-pair { display: block; font-size: .85rem; color: var(--muted); font-weight: 500; }
.m-price { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: var(--heading); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.m-meta { text-align: right; display: flex; flex-direction: column; font-size: .85rem; }
.m-change { font-family: var(--font-head); font-weight: 600; font-size: 1rem; }
.m-chart-wrap { position: relative; height: 240px; margin: 0 -4px; }
.m-chart { width: 100%; height: 100%; display: block; overflow: visible; cursor: crosshair; }
.m-chart .gridline { stroke: rgba(15, 43, 87, .07); stroke-dasharray: 3 6; }
.m-tip {
    position: absolute; top: 0; transform: translateX(-50%); pointer-events: none;
    padding: 6px 10px; border-radius: 10px; font-size: .78rem; white-space: nowrap;
    background: var(--navy); color: #c9d4e8; box-shadow: 0 8px 20px -8px rgba(15, 43, 87, .6);
}
.m-tip b { color: #fff; font-family: var(--font-head); }
.m-tip .muted { color: #a9b6cf; }
.m-foot { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--border); font-size: .85rem; color: var(--muted); }
.m-foot b { color: var(--heading); font-weight: 600; margin-left: 4px; font-variant-numeric: tabular-nums; }
.m-foot .muted { margin-left: auto; font-size: .75rem; }

/* Staking */
.assets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.asset {
    display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer;
    padding: 20px 22px; border-radius: 18px; box-shadow: var(--shadow-sm);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.asset:hover { transform: translateY(-3px); }
.asset.active { border-color: var(--coin); box-shadow: 0 0 0 1px var(--coin), 0 20px 40px -20px var(--coin); }
.asset-info { display: flex; flex-direction: column; flex: 1; line-height: 1.35; }
.asset-info strong { color: var(--heading); font-weight: 600; }
.asset-info span, .asset-apy span { font-size: .78rem; color: var(--muted); }
.asset-apy { text-align: right; display: flex; flex-direction: column; line-height: 1.3; }
.asset-apy strong { font-family: var(--font-head); color: var(--emerald); font-size: 1.35rem; font-weight: 700; }

.calc { margin-top: 28px; display: grid; grid-template-columns: 1fr 1.25fr; overflow: hidden; }
.calc-form { padding: 36px; display: grid; gap: 20px; align-content: start; border-right: 1px solid var(--border); }
.calc-form h3 { margin: 0 0 4px; }
label { display: grid; gap: 8px; font-size: .85rem; font-weight: 500; color: #3b4864; }
input, select {
    font: inherit; font-size: 1rem; color: var(--heading);
    padding: .85rem 1rem; border-radius: 12px; width: 100%;
    background: var(--bg); border: 1px solid var(--border-2);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
input::placeholder { color: #9aa5b8; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a37c22' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
input:focus, select:focus { outline: none; background-color: #fff; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 162, 74, .18); }
.input-prefix { position: relative; display: block; }
.input-prefix > span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--gold-dark); font-weight: 600; }
.input-prefix input { padding-left: 34px; }
.range-label { display: flex; justify-content: space-between; }
.range-label output { color: var(--gold-dark); font-weight: 600; }
input[type="range"] { -webkit-appearance: none; appearance: none; padding: 0; height: 6px; border: 0; border-radius: 99px; background: linear-gradient(90deg, var(--gold) var(--p, 30%), rgba(15, 43, 87, .1) var(--p, 30%)); box-shadow: none; }
input[type="range"]:focus { box-shadow: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 5px solid var(--gold); box-shadow: 0 4px 12px rgba(163, 124, 34, .45); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 5px solid var(--gold); cursor: pointer; }
.calc-result { padding: 36px; display: flex; flex-direction: column; gap: 16px; background: linear-gradient(160deg, #fffdf6, var(--tint)); }
.calc-figs { display: flex; gap: 40px; flex-wrap: wrap; }
.calc-figs > div { display: flex; flex-direction: column; }
.calc-figs .muted { font-size: .85rem; }
.calc-figs strong { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: var(--heading); font-variant-numeric: tabular-nums; }
.calc-figs strong.reward { font-size: 2.4rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.calc-chart { width: 100%; height: 150px; display: block; }
.calc-result small { font-size: .76rem; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.timeline::before {
    content: ""; position: absolute; top: 37px; left: 12%; right: 12%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--emerald), transparent);
    opacity: .5;
}
.timeline li { text-align: center; padding: 0 20px 10px; border-radius: var(--radius); }
.timeline p { color: var(--muted); margin: 0; }
.t-num {
    position: relative; display: grid; place-items: center; width: 74px; height: 74px; margin: 0 auto 24px; border-radius: 50%;
    font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: #f3dc9b;
    background: linear-gradient(160deg, var(--navy-2), var(--navy));
    box-shadow: 0 0 0 8px var(--bg), 0 0 0 9px rgba(201, 162, 74, .4), 0 20px 30px -12px rgba(15, 43, 87, .5);
}

/* Brand */
.brand-section { background: linear-gradient(180deg, transparent, var(--tint) 20%, var(--tint) 80%, transparent); }
.brand-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: center; }
.brand-art { display: grid; place-items: center; }
.brand-plate {
    position: relative; padding: 40px 50px; border-radius: 32px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(201, 162, 74, .35), 0 40px 80px -30px rgba(163, 124, 34, .45);
    transform: rotate(-3deg);
    transition: transform .5s ease;
}
.brand-plate:hover { transform: rotate(0) scale(1.02); }
.brand-plate img { width: 280px; }
.brand-copy .muted { font-size: 1.08rem; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.pillars div { padding: 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 4px; }
.pillars b { font-family: var(--font-head); color: var(--gold-dark); }
.pillars span { color: var(--muted); font-size: .88rem; line-height: 1.5; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 0 24px; transition: border-color .2s, box-shadow .2s; box-shadow: var(--shadow-sm); }
.faq details[open] { border-color: rgba(201, 162, 74, .5); box-shadow: var(--shadow); }
.faq summary {
    cursor: pointer; list-style: none; padding: 22px 0; font-family: var(--font-head); font-weight: 600; color: var(--heading); font-size: 1.05rem;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
    background: var(--gold-soft); color: var(--gold-dark); font-size: 1.2rem; transition: transform .25s, background .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--gold); color: #fff; }
.faq details p { color: var(--muted); padding-bottom: 22px; margin: 0; }

/* CTA */
.cta-panel {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
    padding: 64px; border-radius: 32px;
    background:
        radial-gradient(600px 400px at 0% 0%, rgba(201, 162, 74, .25), transparent 60%),
        radial-gradient(500px 400px at 100% 100%, rgba(31, 157, 107, .14), transparent 60%),
        linear-gradient(160deg, #fffdf6, var(--tint));
    border: 1px solid rgba(201, 162, 74, .35);
    box-shadow: var(--shadow);
}
.cta-copy, .join-form { position: relative; }
.join-form { padding: 32px; display: grid; gap: 18px; }
.seg { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg legend { font-size: .85rem; font-weight: 500; color: #3b4864; margin-bottom: 8px; padding: 0; }
.seg-opt { display: block; position: relative; }
.seg-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.seg-opt span {
    display: block; text-align: center; padding: .75rem; border-radius: 12px; cursor: pointer;
    border: 1px solid var(--border-2); background: var(--bg); color: #3b4864; font-weight: 500; transition: .2s;
}
.seg-opt input:checked + span { border-color: var(--navy); background: var(--navy); color: #f3dc9b; }
.seg-opt input:focus-visible + span { box-shadow: 0 0 0 4px rgba(201, 162, 74, .25); }
.seg .err { grid-column: 1 / -1; }
.err { color: var(--red); font-weight: 500; font-size: .8rem; }
.alert { padding: 12px 16px; border-radius: 12px; font-size: .92rem; }
.alert.success { background: var(--emerald-soft); border: 1px solid rgba(31, 157, 107, .35); color: var(--emerald); font-weight: 500; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 32px; background: #fff; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand .muted { margin-top: 14px; font-size: .85rem; letter-spacing: .1em; }
.footer-cols { display: flex; gap: 72px; }
.footer-cols div { display: flex; flex-direction: column; gap: 10px; }
.footer-cols h4 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 6px; }
.footer-cols a { color: var(--muted); font-size: .93rem; transition: color .2s; }
.footer-cols a:hover { color: var(--heading); }
.disclaimer { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--border); font-size: .78rem; line-height: 1.75; color: #7a869c; }
.disclaimer strong { color: var(--heading); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .bento { grid-template-columns: repeat(2, 1fr); }
    .tile, .tile-lg { grid-column: span 1; }
    .tile-lg { grid-column: span 2; min-height: 0; }
    .assets { grid-template-columns: repeat(2, 1fr); }
    .forex-grid, .brand-grid, .cta-panel { grid-template-columns: 1fr; gap: 48px; }
    .cta-panel { padding: 48px; }
}
@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .nav-menu {
        position: fixed; top: 76px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: rgba(251, 250, 246, .98); backdrop-filter: blur(18px);
        border-bottom: 1px solid var(--border); box-shadow: 0 20px 40px -20px rgba(15, 43, 87, .3);
        padding: 8px 24px 24px;
        transform: translateY(-10px); opacity: 0; pointer-events: none; transition: .25s;
    }
    .nav-menu.open { transform: none; opacity: 1; pointer-events: auto; }
    .nav-menu a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--border); }
    .nav-menu a:not(.btn)::after { display: none; }
    .nav-menu .nav-cta { margin-top: 16px; }
    .site-header:has(.nav-menu.open) { background: rgba(251, 250, 246, .98); }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .hero { padding-top: 120px; }
    .hero-grid { grid-template-columns: 1fr; gap: 56px; padding-bottom: 60px; }
    .hero-visual { max-width: 460px; }
    .stats { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
    .stat:nth-child(3)::before { display: none; }
    .calc { grid-template-columns: 1fr; }
    .calc-form { border-right: 0; border-bottom: 1px solid var(--border); }
    .timeline { grid-template-columns: 1fr; gap: 40px; }
    .timeline::before { top: 0; bottom: 0; left: 36px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--gold), var(--emerald)); }
    .timeline li { text-align: left; padding: 0 0 0 100px; position: relative; min-height: 74px; }
    .t-num { position: absolute; left: 0; top: 0; margin: 0; }
    .section { padding: 84px 0; }
}
@media (max-width: 600px) {
    .container { padding: 0 16px; }
    .bento, .assets, .pillars { grid-template-columns: 1fr; }
    .tile-lg { grid-column: span 1; }
    .tile-coins { grid-template-columns: repeat(2, 1fr); }
    .hero-cta .btn { flex: 1 1 100%; }
    .float-card { padding: 10px 14px; }
    .float-card strong { font-size: 1.05rem; }
    .fc-rate { left: 0; top: 2%; }
    .fc-apy { right: 0; bottom: 6%; }
    .fc-candles { display: none; }
    .o-chip { width: 42px; height: 42px; margin: -21px 0 0 -21px; font-size: .95rem; }
    .ring-2 .o-chip { width: 38px; height: 38px; margin: -19px 0 0 -19px; font-size: .58rem; }
    .market { padding: 16px; }
    .m-price { font-size: 1.9rem; }
    .m-chart-wrap { height: 200px; }
    .m-foot .muted { margin-left: 0; }
    .calc-form, .calc-result { padding: 24px; }
    .calc-figs { gap: 24px; }
    .cta-panel { padding: 28px 20px; border-radius: 24px; }
    .join-form { padding: 22px; }
    .brand-plate { padding: 28px 32px; }
    .brand-plate img { width: 200px; }
    .footer-cols { gap: 48px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .draw { stroke-dashoffset: 0; }
    .apy-ring .bar { stroke-dashoffset: 30; }
    .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   Landing nav: login link
   ===================================================================== */
.nav-menu .nav-login { font-weight: 600; color: var(--navy); }
@media (max-width: 900px) {
    .nav-menu .nav-login { border-bottom: 0; }
}

/* =====================================================================
   Auth pages (login / register)
   ===================================================================== */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); min-height: 100vh; min-height: 100dvh; }
.auth-aside {
    position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; isolation: isolate;
    display: flex; flex-direction: column; justify-content: space-between; padding: 40px 56px;
    background: linear-gradient(160deg, #fffdf6, var(--tint));
    border-right: 1px solid var(--border);
}
.auth-aside .glow { z-index: -1; }
.auth-aside .g1 { top: -200px; right: -200px; }
.auth-aside .g3 { bottom: -260px; left: -120px; right: auto; }
.auth-aside-body { max-width: 440px; }
.auth-aside h2 { font-size: clamp(2rem, 3.2vw, 2.8rem); }
.auth-aside .muted { font-size: 1.05rem; }
.auth-emblem {
    width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 32px;
    background: radial-gradient(circle at 30% 25%, #fff, var(--cream) 60%, #f6eccf);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, .8), 0 0 0 9px rgba(201, 162, 74, .45), 0 30px 60px -20px rgba(163, 124, 34, .45);
    animation: bob 6s ease-in-out infinite;
}
.auth-emblem img { width: 82%; height: auto; }
.auth-aside-foot { font-size: .8rem; letter-spacing: .12em; margin: 0; }

.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px; position: relative; }
.auth-back { position: absolute; top: 28px; right: 32px; font-size: .9rem; font-weight: 500; color: var(--muted); transition: color .2s; }
.auth-back:hover { color: var(--heading); }
.auth-card { width: 100%; max-width: 460px; }
.auth-card h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: .3rem; }
.auth-card > .muted { margin-bottom: 28px; }
.auth-mobile-brand { display: none; margin-bottom: 28px; }
.link { color: var(--gold-dark); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(163, 124, 34, .35); text-underline-offset: 3px; }
.link:hover { text-decoration-color: currentColor; }

.auth-form { display: grid; gap: 18px; margin-top: 8px; }
.auth-form .btn { margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row > * { min-width: 0; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
input[aria-invalid="true"] { border-color: var(--red); background: #fff7f8; }
.pw-field { position: relative; display: block; }
.pw-field input { padding-right: 70px; }
.pw-toggle {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    border: 0; background: none; cursor: pointer; padding: 6px 10px; border-radius: 8px;
    font-size: .8rem; font-weight: 600; color: var(--gold-dark);
}
.pw-toggle:hover { background: var(--gold-soft); }
.pw-meter { display: block; height: 4px; border-radius: 99px; background: rgba(15, 43, 87, .08); overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; border-radius: inherit; transition: width .3s, background .3s; }
.pw-hint { font-size: .78rem; font-weight: 400; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; color: var(--muted); line-height: 1.5; cursor: pointer; }
.check input { width: 20px; height: 20px; padding: 0; flex: none; margin: 1px 0 0; accent-color: var(--gold); cursor: pointer; }
.alert.error { background: #fdecee; border: 1px solid rgba(220, 75, 92, .35); color: #b4303f; font-weight: 500; margin-bottom: 18px; }
.alert.info { background: #eef3fb; border: 1px solid rgba(29, 68, 131, .2); color: var(--navy-2); font-weight: 500; margin-bottom: 18px; }
.auth-card .alert.success { margin-bottom: 18px; }
.auth-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; font-size: .82rem; }
.auth-secure svg { width: 16px; height: 16px; fill: none; stroke: var(--emerald); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 960px) {
    .auth { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
    .auth-mobile-brand { display: flex; }
    .auth-main { justify-content: flex-start; padding-top: 72px; }
    .auth-back { top: 22px; right: 20px; }
}
@media (max-width: 520px) {
    .form-row { grid-template-columns: 1fr; }
    .auth-main { padding: 64px 16px 40px; }
}

/* =====================================================================
   Dashboard
   ===================================================================== */
.avatar {
    width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(160deg, var(--navy-2), var(--navy)); color: #f3dc9b;
    font-family: var(--font-head); font-weight: 700;
}
.dash { padding-top: 48px; padding-bottom: 80px; }
.dash-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.dash-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-bottom: .3rem; }
.dash-hero .muted { margin: 0; max-width: 34rem; }
.is-disabled { opacity: .6; pointer-events: none; }
.pill-soon {
    display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .72rem; font-weight: 600;
    background: var(--gold-soft); color: var(--gold-dark); font-family: var(--font-body);
}
.btn .pill-soon { background: rgba(255, 255, 255, .55); }
.dash-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.dash-grid > * { min-width: 0; }
.dash-card { padding: 28px; }
.dash-card h3 { margin-bottom: .3rem; }
.dash-card p { font-size: .95rem; }
.dash-card.balance { display: flex; flex-direction: column; justify-content: center; gap: 4px; background: linear-gradient(160deg, var(--navy-2), var(--navy)); border: 0; color: #c9d4e8; }
.dash-card.balance .muted { color: #a9b6cf; }
.dash-card.balance strong { font-family: var(--font-head); font-size: 2.8rem; color: #fff; letter-spacing: -.02em; }
.small { font-size: .85rem; }
.account dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 16px 0 0; }
.account dl > div { min-width: 0; }
.account dt { font-size: .8rem; color: var(--muted); margin-bottom: 2px; }
.account dd { margin: 0; font-weight: 600; color: var(--heading); overflow-wrap: anywhere; }
@media (max-width: 900px) {
    .dash-grid { grid-template-columns: 1fr; }
    .account dl { grid-template-columns: 1fr 1fr; }
    }
@media (max-width: 520px) {
    .account dl { grid-template-columns: 1fr; }
    .dash-hero .btn { width: 100%; }
}

/* =====================================================================
   Member ID
   ===================================================================== */
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .04em; }
input.mono { text-transform: uppercase; }
input.mono::placeholder { text-transform: none; letter-spacing: 0; font-family: var(--font-body); }
.member-card {
    display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
    padding: 24px 28px; margin-bottom: 32px; border-radius: var(--radius);
    background: linear-gradient(120deg, var(--emerald-soft), #fffdf6 60%, var(--gold-soft));
    border: 1px solid rgba(31, 157, 107, .3); box-shadow: var(--shadow-sm);
}
.member-card-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--emerald); box-shadow: 0 8px 20px -8px rgba(31, 157, 107, .7); }
.member-card-icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.member-card h2 { font-size: 1.3rem; margin: 0 0 .2rem; }
.member-card p { margin: 0; color: var(--muted); }
.member-card p b { color: var(--heading); }
.member-id-box { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 22px; border-radius: 16px; background: #fff; border: 1px dashed var(--gold); }
.member-id-box .muted { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; }
.member-id-box strong { font-size: 1.6rem; color: var(--navy); }
@media (max-width: 760px) {
    .member-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .member-id-box { width: 100%; }
    }
.pill-admin { padding: 3px 10px; border-radius: 99px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--navy); color: #f3dc9b; }

/* =====================================================================
   PINs, packages & admin
   ===================================================================== */
.dash > .dash-card + .dash-card, .dash > .dash-grid + .dash-card { margin-top: 20px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; border-radius: var(--radius); }
.kpi strong { font-family: var(--font-head); font-size: 2rem; color: var(--heading); letter-spacing: -.02em; }
.dash-card.balance.kpi strong { font-size: 2rem; color: #fff; }
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin: 12px 0 20px; }
.inline-form label { flex: 1 1 180px; min-width: 0; }
.inline-form .btn { flex: 0 0 auto; }
.table-wrap { overflow-x: auto; margin: 0 -8px; padding: 0 8px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.data-table th { text-align: left; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--border-2); white-space: nowrap; }
.data-table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; white-space: nowrap; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .num { text-align: right; }
.data-table td.num a { color: var(--navy-2); font-weight: 600; }
.data-table form { margin: 0; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .75rem; font-weight: 600; font-family: var(--font-body); }
.badge.unused, .badge.paid { background: var(--gold-soft); color: var(--gold-dark); }
.badge.used { background: var(--emerald-soft); color: var(--emerald); }
.badge.blocked, .badge.zero { background: #eef0f4; color: var(--muted); }
.codes-box { margin-bottom: 28px; border-color: rgba(31, 157, 107, .35); }
.codes-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.codes-box pre { margin: 12px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--cream); border: 1px dashed var(--gold); max-height: 320px; overflow: auto; font-size: .95rem; line-height: 1.8; }
.activation { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px 32px; align-items: center; margin-bottom: 20px; }
.activation-status { display: flex; flex-direction: column; gap: 4px; }
.activation-status strong { font-family: var(--font-head); font-size: 1.4rem; color: var(--heading); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.activation .inline-form { margin: 0; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.pager-rows { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0; }
.pager-rows label { display: flex; align-items: center; gap: 8px; }
.pager-rows select { width: auto; padding-top: 8px; padding-bottom: 8px; }
.pager-btns { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pager-btns .btn { padding: .5rem .9rem; }
.pager-btns .btn:hover { transform: none; }
.pager-page { padding: 0 8px; font-size: .88rem; color: var(--muted); white-space: nowrap; }
.pager-page b { color: var(--heading); }
@media (max-width: 1100px) {
    .kpi-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .activation { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .kpi-grid { grid-template-columns: 1fr; }
    .inline-form .btn { width: 100%; }
    .pager-btns { width: 100%; justify-content: space-between; }
    .pager-btns .btn { padding: .5rem .7rem; }
    .pager-page { order: -1; width: 100%; text-align: center; }
}

/* =====================================================================
   Admin layout (sidebar)
   ===================================================================== */
.app-shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.app-sidebar {
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
    display: flex; flex-direction: column; gap: 28px; padding: 22px 18px;
    background: rgba(255, 255, 255, .85); border-right: 1px solid var(--border);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.app-sidebar > .brand { padding: 0 8px; }
.app-nav { display: flex; flex-direction: column; gap: 4px; }
.app-nav-label { padding: 0 12px 6px; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.app-nav a:not(.btn) {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
    font-weight: 600; font-size: .94rem; color: #3b4864; transition: background .15s, color .15s;
}
.app-nav a:not(.btn):hover { background: var(--tint); color: var(--heading); }
.app-nav a[aria-current="page"] { background: var(--navy); color: #f3dc9b; box-shadow: 0 8px 20px -10px rgba(15, 43, 87, .6); }
.app-nav a[aria-current="page"]:hover { background: var(--navy); color: #f3dc9b; }
.app-nav svg, .app-foot-link svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding-top: 16px; border-top: 1px solid var(--border); }
.app-sidebar-foot form { margin: 0; }
.app-me { display: flex; align-items: center; gap: 10px; padding: 4px 8px 10px; min-width: 0; }
.app-me > span:last-child { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.app-me b { color: var(--heading); font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.app-me .pill-admin { font-size: .62rem; padding: 2px 8px; }
.app-foot-link {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border-radius: 12px;
    background: none; border: 0; cursor: pointer; text-align: left; font-size: .9rem; font-weight: 500; color: #3b4864;
}
.app-foot-link:hover { background: var(--tint); color: var(--heading); }
.app-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; padding: 40px clamp(16px, 3.5vw, 48px) 80px; }
.app-main > * { margin-top: 0; margin-bottom: 0; }
.app-main .dash-hero { margin-bottom: 4px; align-items: center; }
.app-main .dash-hero h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0; }
.app-topbar { display: none; }
.app-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(11, 33, 71, .35); }
.app-menu-btn { background: none; border: 0; padding: 8px; cursor: pointer; }
.app-menu-btn span { display: block; width: 22px; height: 2px; margin: 5px 0; border-radius: 2px; background: var(--navy); }
@media (max-width: 900px) {
    .app-shell { grid-template-columns: minmax(0, 1fr); }
    .app-topbar {
        display: flex; align-items: center; gap: 8px; height: 64px; padding: 0 12px; position: sticky; top: 0; z-index: 30;
        background: rgba(251, 250, 246, .9); border-bottom: 1px solid var(--border);
        backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    }
    .app-topbar .brand-badge, .app-topbar .brand-badge img { width: 38px; height: 38px; }
    .app-sidebar {
        position: fixed; left: 0; top: 0; bottom: 0; z-index: 50; width: min(280px, 84vw);
        background: #fff; transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow);
    }
    .app-menu-open .app-sidebar { transform: none; }
    .app-menu-open { overflow: hidden; }
    .app-main { padding-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .app-sidebar { transition: none; }
}

/* Admin "login as member" banner */
.impersonate-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 12px 10px 18px; border-radius: 14px; background: var(--navy); color: #dbe3f1; font-size: .9rem; }
.impersonate-bar b { color: #fff; }
.impersonate-bar .mono { color: #f3dc9b; margin-left: 4px; }
.impersonate-bar form { margin: 0; }

/* Referral link */
.referral { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px 32px; align-items: center; margin-bottom: 20px; }
.referral p { margin: 0; }
.referral-link { display: flex; gap: 10px; }
.referral-link input { flex: 1; min-width: 0; font-size: .9rem; }
@media (max-width: 900px) {
    .referral { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .referral-link { flex-direction: column; }
}
.data-table td.contact span { display: block; }

/* Member panel */
.tile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.kpi-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi .link { margin-top: 4px; }
.kpi strong.mono { font-size: 1.5rem; }
.referral, .activation { margin-bottom: 0; }
.app-main .member-card { margin-bottom: 0; }
.app-me .mono { font-size: .75rem; }
@media (max-width: 900px) {
    .kpi-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .tile-grid, .kpi-grid-3 { grid-template-columns: 1fr; }
}
.field-note { display: block; margin-top: -8px; font-size: .8rem; }

/* Downline level filter */
.level-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.level-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--border-2); font-size: .86rem; font-weight: 600; color: #3b4864; }
.level-tabs a span { font-weight: 500; color: var(--muted); }
.level-tabs a:hover { border-color: var(--navy); }
.level-tabs a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #f3dc9b; }
.level-tabs a[aria-current="page"] span { color: #c9d4e8; }
.badge.level { background: #e8eef8; color: var(--navy-2); }

/* Income limit */
.limit-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.limit-bar { height: 10px; border-radius: 99px; background: rgba(15, 43, 87, .08); overflow: hidden; margin: 10px 0 12px; }
.limit-bar span { display: block; height: 100%; border-radius: inherit; background: var(--grad); }
.day-chip { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--border-2); font-size: .86rem; font-weight: 600; color: #3b4864; }

/* Withdrawals */
.kpi strong.kpi-small { font-size: 1.3rem; }
.payout-form { display: grid; gap: 14px; margin-top: 12px; }
.payout-form .btn { justify-self: start; }
.cell-sub { display: block; }
.withdraw-table td { vertical-align: top; }
.withdraw-table td.dest { white-space: normal; min-width: 200px; max-width: 280px; font-size: .86rem; }
.row-actions { display: flex; flex-direction: column; gap: 6px; }
.row-actions form { display: flex; gap: 6px; }
.row-actions input { width: 130px; padding: 6px 10px; font-size: .85rem; }

/* Awards */
.award-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.award { display: flex; flex-direction: column; gap: 6px; }
.award.is-won { border-color: rgba(201, 162, 74, .55); background: linear-gradient(160deg, #fffdf6, var(--gold-soft)); }
.award-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.award-head h3 { margin: 2px 0 0; }
.award .limit-bar { margin: 8px 0 4px; }
.leg-parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .86rem; }
.leg-parts li { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); white-space: nowrap; font-size: .84rem; }
.leg-parts .ok { color: var(--emerald); font-weight: 600; }
.withdraw-table td.legs { white-space: normal; max-width: 220px; }

/* Admin settings */
.settings-form { display: flex; flex-direction: column; gap: 20px; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 12px; }
.settings-grid small { font-weight: 400; font-size: .78rem; }
.weekday-picks { border: 0; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.weekday-picks legend { font-size: .85rem; font-weight: 500; color: #3b4864; margin-bottom: 8px; padding: 0; }
.input-sm { padding: 8px 10px; font-size: .9rem; width: 120px; }
.input-wide { width: 200px; }

/* Admin member detail */
.h1-sub { font-size: 1.1rem; font-weight: 500; letter-spacing: .04em; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.action-list { display: flex; flex-direction: column; gap: 8px; }
.action-list .inline-form { margin: 0; }
.action-row { display: flex; gap: 10px; flex-wrap: wrap; }
.action-row form { margin: 0; }
.btn-danger { color: #b4303f; border-color: rgba(220, 75, 92, .35); }
.mini-dl { display: grid; gap: 8px; margin: 8px 0 0; }
.mini-dl div { display: flex; gap: 12px; }
.mini-dl dt { min-width: 80px; color: var(--muted); font-size: .85rem; }
.mini-dl dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.plain-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; font-size: .92rem; }
@media (max-width: 1000px) {
    .detail-grid { grid-template-columns: 1fr; }
}
.app-nav-label ~ .app-nav-label { margin-top: 12px; }
.narrow-form { max-width: 420px; }

/* Grouped admin menu: tighter rows so it fits without scrolling on most screens */
.app-sidebar { gap: 20px; }
.app-nav a:not(.btn) { padding: 8px 12px; }
.app-nav-label ~ .app-nav-label { margin-top: 8px; }
.settings-grid { align-items: start; } .settings-grid > label { align-content: start; }

/* Copy E-PINs */
.table-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.copy-btn { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: 4px; padding: 0; border-radius: 8px; border: 1px solid var(--border-2); background: var(--card); color: var(--muted); cursor: pointer; vertical-align: middle; }
.copy-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.copy-btn:hover { color: var(--navy); border-color: var(--navy); }
.copy-btn.is-copied { color: var(--emerald); border-color: var(--emerald); background: var(--emerald-soft); }
.data-table .sr { width: 1%; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; padding-right: 4px; }
