/* Token Presale - hand-written CSS, no framework.
   Design language shared with the AURUM landing page:
   dark ink surfaces, a single gold accent, Fraunces / Instrument Sans / IBM Plex Mono,
   hairline borders, 2px corners, mono "kicker" labels, film grain.
   Change --accent below to re-theme the whole app. */

:root {
  color-scheme: dark;

  /* Surfaces (same tokens as the landing page) */
  --bg: #0b0b0e;
  --panel: #101014;
  --panel-2: #14141a;
  --field: rgba(236, 231, 219, .035);
  --bg-soft: rgba(236, 231, 219, .045);

  --ink: #ece7db;
  --ink2: #b7b0a2;
  --ink3: #837d70;
  --text: var(--ink);
  --text-dim: var(--ink2);
  --text-faint: var(--ink3);

  --line: rgba(236, 231, 219, .16);
  --line2: rgba(236, 231, 219, .07);
  --panel-border: var(--line);

  /* Gold accent */
  --accent: #d9a441;
  --accent-hi: #e6b456;
  --accent-ink: #171310;
  --accent-04: rgba(217, 164, 65, .05);
  --accent-12: rgba(217, 164, 65, .12);
  --accent-40: rgba(217, 164, 65, .42);
  --accent-2: var(--accent);
  --accent-grad: var(--accent);

  /* Muted palette ramp (coin dots, social icons, quick actions) - kept as --c1..--c5 for the views */
  --c1: #d9a441;
  --c2: #c98b5a;
  --c3: #8fb59a;
  --c4: #8c9bb8;
  --c5: #b98a94;
  --rainbow: var(--accent);

  /* Status */
  --ok: #7cc6a0;
  --ok-bg: rgba(124, 198, 160, .10);
  --warn: #e0b25a;
  --warn-bg: rgba(224, 178, 90, .10);
  --bad: #e5808a;
  --bad-bg: rgba(229, 128, 138, .10);
  --info: #94aedd;
  --info-bg: rgba(148, 174, 221, .10);

  --radius: 2px;
  --radius-sm: 2px;
  --shadow-sm: none;
  --shadow-md: 0 24px 60px -24px rgba(0, 0, 0, .7);
  --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .8);

  --font-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* soft gold bloom behind the page + film grain, as on the landing page */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(217, 164, 65, .10), transparent 60%),
    radial-gradient(700px 480px at -6% 108%, rgba(217, 164, 65, .05), transparent 60%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
button { font: inherit; color: inherit; }
img, svg { display: block; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--accent-ink);
  padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

a { color: var(--accent); text-decoration: none; }
p a, .help a, td a, .copy-row a { border-bottom: 1px solid var(--accent-40); }
p a:hover, .help a:hover, td a:hover { border-bottom-color: var(--accent); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.015em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.12; }
h2 { font-size: 1.5rem; line-height: 1.2; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; color: var(--ink2); }
strong { color: var(--ink); font-weight: 600; }

code, .mono { font-family: var(--font-mono); }
code { font-size: .86em; background: var(--field); border: 1px solid var(--line2); padding: 1px 6px; }

/* floating gold dust canvas (public/js/particles.js) */
#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s ease .15s; }
#gl.on { opacity: 1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 11, 14, .84); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line2);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); border: 0 !important; }
.brand .bn { font: 600 1rem var(--font-sans); letter-spacing: .02em; }
.brand .bs { font: 500 .58rem var(--font-mono); color: var(--accent); border: 1px solid var(--accent-40); padding: 3px 6px; letter-spacing: .16em; text-transform: uppercase; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  border: 1.4px solid var(--accent); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font: 600 .72rem var(--font-display); letter-spacing: .04em; text-transform: uppercase;
}
.brand-logo { height: 32px; width: auto; max-width: 140px; object-fit: contain; flex-shrink: 0; }
.main-nav { display: flex; align-items: center; gap: 2px; }
.nav-link {
  text-decoration: none; color: var(--ink2); padding: 8px 11px; font: 500 .8rem var(--font-sans);
  transition: color .2s; border: 0 !important; white-space: nowrap;
}
.nav-link:hover { color: var(--ink); }
.nav-link--accent { color: var(--accent); }
.nav-link--button { background: none; border: 0; cursor: pointer; }
.inline-form { display: inline; }
.main-nav .btn { margin-left: 8px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--line2); margin-top: 64px; flex-shrink: 0; background: rgba(11, 11, 14, .92); }
.footer-inner { padding: 34px 20px; color: var(--ink3); font: 400 .7rem var(--font-mono); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }
.footer-inner a { color: var(--ink3); border: 0; }
.footer-inner a:hover { color: var(--accent); }
.footer-about p { margin: 0 0 3px; color: var(--ink3); }

.social-row { display: flex; align-items: center; gap: 10px; }
.social-icon {
  width: 36px; height: 36px; display: grid; place-items: center; text-decoration: none;
  border: 1px solid var(--line); color: var(--ink2) !important; transition: border-color .2s, color .2s;
}
.social-icon svg { width: 15px; height: 15px; }
.social-icon:hover { border-color: var(--accent); color: var(--accent) !important; }

.main-content { position: relative; z-index: 1; padding: 44px 20px 60px; flex: 1 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--accent); color: var(--accent-ink); border: 1px solid transparent; border-radius: var(--radius);
  padding: .9rem 1.55rem; font: 500 .92rem var(--font-sans); cursor: pointer; text-decoration: none;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--accent-hi); }
.btn:active { transform: translateY(1px); }
.btn--small { padding: .58rem 1.05rem; font-size: .8rem; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn--danger { background: transparent; color: var(--bad); border-color: rgba(229, 128, 138, .45); }
.btn--danger:hover { background: var(--bad-bg); border-color: var(--bad); }
.btn--full { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- Cards / panels ---------- */
.card { background: var(--panel); border: 1px solid var(--line2); border-top-color: var(--line); border-radius: var(--radius); padding: 28px; }
.card + .card { margin-top: 20px; }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line2); }
.card-header h2, .card-header h3 { margin: 0; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.stat { background: var(--panel); border: 1px solid var(--line2); border-top: 1px solid var(--accent-40); padding: 18px 20px; }
.stat .label { font: 500 .6rem var(--font-mono); text-transform: uppercase; letter-spacing: .2em; color: var(--ink3); margin-bottom: 8px; }
.stat .value { font: 400 1.45rem var(--font-mono); color: var(--ink); }

/* ---------- Forms ---------- */
label { display: block; font: 500 .82rem var(--font-sans); margin-bottom: 7px; color: var(--ink2); }
.field { margin-bottom: 20px; }
.help { font-size: .8rem; color: var(--ink3); margin-top: 7px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=url],
input[type=datetime-local], input[type=file], textarea, select {
  width: 100%; background: var(--field); border: 1px solid var(--line); color: var(--ink);
  border-radius: var(--radius); padding: 12px 14px; font-family: var(--font-sans); font-size: .92rem;
  transition: border-color .2s, background .2s;
}
input::placeholder, textarea::placeholder { color: var(--ink3); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); background: var(--accent-04); }
input:-webkit-autofill, input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink); caret-color: var(--ink);
  box-shadow: 0 0 0 40px #15151a inset; transition: background-color 9999s;
}
select option { background: #15151a; color: var(--ink); }
input[type=file]::file-selector-button {
  background: transparent; border: 1px solid var(--line); color: var(--ink2); padding: 5px 12px; margin-right: 12px;
  font: 500 .78rem var(--font-sans); cursor: pointer; border-radius: var(--radius);
}
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
textarea { resize: vertical; min-height: 90px; }
.field-error { color: var(--bad); font-size: .82rem; margin-top: 7px; }
.checkbox-row { display: flex; align-items: center; gap: 10px; }
.checkbox-row input { width: auto; }
.checkbox-row label { margin: 0; color: var(--ink); }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }

/* Branding / logo upload */
.logo-upload-row { display: flex; align-items: flex-start; gap: 18px; }
.logo-preview {
  width: 72px; height: 72px; border-radius: var(--radius); background: var(--field);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-preview-empty { font: 400 .62rem var(--font-mono); color: var(--ink3); text-align: center; padding: 4px; }
.logo-preview--small { width: 48px; height: 48px; }
.logo-upload-controls { flex: 1; }

/* Coin search picker (admin > payment methods) */
.coin-search-field { position: relative; }
.coin-search-results {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 30; margin-top: 4px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); max-height: 260px; overflow-y: auto;
}
.coin-search-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; background: none;
  border: 0; border-bottom: 1px solid var(--line2); cursor: pointer; text-align: left; font-family: var(--font-sans); color: var(--ink);
}
.coin-search-item:last-child { border-bottom: 0; }
.coin-search-item:hover { background: var(--accent-04); }
.coin-search-item img { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; }
.coin-search-item-fallback { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.coin-search-item-name { flex: 1; font-size: .88rem; color: var(--ink); }
.coin-search-item-symbol { font-size: .72rem; color: var(--ink3); font-family: var(--font-mono); }
.coin-search-empty { padding: 12px; font-size: .85rem; color: var(--ink3); }

/* ---------- Flash / alerts ---------- */
.alert { border-radius: var(--radius); padding: 13px 16px; margin-bottom: 22px; font-size: .9rem; border: 1px solid var(--line2); border-left-width: 2px; }
.alert--success { background: var(--ok-bg); color: var(--ok); border-left-color: var(--ok); }
.alert--warn, .alert--warning { background: var(--warn-bg); color: var(--warn); border-left-color: var(--warn); }
.alert--danger, .alert--error { background: var(--bad-bg); color: var(--bad); border-left-color: var(--bad); }
.alert--info { background: var(--info-bg); color: var(--info); border-left-color: var(--info); }
.alert strong { color: inherit; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: var(--radius); border: 1px solid currentColor;
  font: 500 .62rem var(--font-mono); text-transform: uppercase; letter-spacing: .14em; background: transparent;
}
.badge--ok { background: var(--ok-bg); color: var(--ok); border-color: rgba(124, 198, 160, .35); }
.badge--warn { background: var(--warn-bg); color: var(--warn); border-color: rgba(224, 178, 90, .35); }
.badge--bad { background: var(--bad-bg); color: var(--bad); border-color: rgba(229, 128, 138, .35); }
.badge--info { background: var(--accent-12); color: var(--accent); border-color: var(--accent-40); }
.badge--muted { background: transparent; color: var(--ink3); border-color: var(--line2); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line2); border-top-color: var(--line); border-radius: var(--radius); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line2); white-space: nowrap; color: var(--ink); }
th { color: var(--ink3); font: 500 .6rem var(--font-mono); text-transform: uppercase; letter-spacing: .2em; background: transparent; border-bottom-color: var(--line); }
tbody tr { transition: background .2s; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--accent-04); }

/* ---------- Progress ---------- */
.progress { height: 3px; background: var(--line2); overflow: hidden; }
.progress-bar { height: 100%; background: var(--accent); transition: width 1.4s cubic-bezier(.3, 0, .2, 1); }

/* ---------- Misc ---------- */
.hero { position: relative; padding: 56px 0 32px; }
.hero p.lead { font-size: 1.12rem; max-width: 52ch; margin: 0 0 28px; color: var(--ink2); }

.copy-row { display: flex; align-items: center; gap: 10px; background: var(--field); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 8px 8px 14px; font-family: var(--font-mono); font-size: .82rem; color: var(--ink2); word-break: break-all; }
.copy-row button { flex-shrink: 0; background: transparent; border: 1px solid var(--line); color: var(--ink2); border-radius: var(--radius); padding: 6px 11px; font: 500 .72rem var(--font-mono); letter-spacing: .06em; cursor: pointer; transition: border-color .2s, color .2s; }
.copy-row button:hover { border-color: var(--accent); color: var(--accent); }
.muted { color: var(--ink3); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tag-list { display: flex; gap: 8px; flex-wrap: wrap; }
.narrow { max-width: 460px; margin: 0 auto; }
.pagination { display: flex; gap: 6px; margin-top: 22px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 6px 13px; font: 400 .78rem var(--font-mono); border: 1px solid var(--line); color: var(--ink2); }
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.admin-tabs { display: flex; gap: 2px; margin-bottom: 28px; border-bottom: 1px solid var(--line2); flex-wrap: wrap; }
.admin-tabs a { padding: 11px 15px; color: var(--ink2); border: 0; border-bottom: 1px solid transparent; margin-bottom: -1px; font: 500 .8rem var(--font-sans); transition: color .2s; }
.admin-tabs a:hover { color: var(--ink); }
.admin-tabs a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* scroll reveal (only when JS is on; see ui.js + the inline <html class="js"> flag) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .6, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* =========================================================
   AUTH EXPERIENCE - split shell (login / register / password / verify)
   ========================================================= */
.auth-shell { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }

.auth-aside {
  position: relative; overflow: hidden; padding: 44px 52px;
  display: flex; flex-direction: column; justify-content: space-between; color: var(--ink);
  background:
    radial-gradient(520px 460px at 100% 100%, rgba(217, 164, 65, .16), transparent 60%),
    radial-gradient(420px 360px at 0% 0%, rgba(217, 164, 65, .06), transparent 60%),
    #0d0d11;
  border-right: 1px solid var(--line2);
}
.auth-aside::after {
  content: ""; position: absolute; right: -140px; bottom: -140px; width: 420px; height: 420px; border-radius: 50%;
  border: 1px solid var(--accent-40); opacity: .35; pointer-events: none;
  box-shadow: inset 0 0 0 38px transparent, 0 0 0 38px rgba(217, 164, 65, .03), 0 0 0 76px rgba(217, 164, 65, .02);
}
.auth-aside-top, .auth-aside-body, .auth-aside-foot { position: relative; z-index: 1; }
.auth-aside-brand { display: flex; align-items: center; gap: 11px; font: 600 1rem var(--font-sans); letter-spacing: .02em; text-decoration: none; color: var(--ink); border: 0 !important; }
.auth-aside-brand .bs { font: 500 .58rem var(--font-mono); color: var(--accent); border: 1px solid var(--accent-40); padding: 3px 6px; letter-spacing: .16em; text-transform: uppercase; }
.auth-aside-brand img { height: 32px; width: auto; max-width: 140px; }
.auth-back-home { display: inline-flex; align-items: center; gap: 7px; margin-top: 24px; color: var(--ink3); font: 500 .66rem var(--font-mono); letter-spacing: .18em; text-transform: uppercase; border: 0 !important; transition: color .2s; }
.auth-back-home:hover { color: var(--accent); }
.auth-back-home svg { width: 13px; height: 13px; }

.auth-aside-body { max-width: 420px; }
.auth-aside-body h1 { font-size: clamp(2rem, 3vw, 2.7rem); line-height: 1.1; margin-bottom: .45em; }
.auth-aside-body p { color: var(--ink2); margin: 0; }

.auth-feature-list { list-style: none; margin: 34px 0 0; padding: 0; border-top: 1px solid var(--line2); }
.auth-feature-list li { display: flex; align-items: flex-start; gap: 14px; color: var(--ink); font-size: .9rem; padding: 15px 0; border-bottom: 1px solid var(--line2); }
.auth-feature-icon {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; margin-top: 0;
  border: 1px solid var(--accent-40); color: var(--accent); display: flex; align-items: center; justify-content: center;
}
.auth-feature-icon svg { width: 11px; height: 11px; }

.auth-aside-foot { display: flex; align-items: center; gap: 9px; color: var(--ink3); font: 400 .68rem var(--font-mono); }
.auth-aside-foot svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--accent); }

.auth-main { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; background: transparent; }
.auth-mobile-brand { display: none; }
.auth-panel { width: 100%; max-width: 400px; }
.auth-panel-head { margin-bottom: 28px; }
.auth-panel-head h1 { font-size: 2rem; margin-bottom: .3em; }
.auth-panel-head p { margin: 0; }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-mobile-brand {
    display: flex; align-items: center; gap: 11px; font: 600 1rem var(--font-sans);
    text-decoration: none; color: var(--ink); margin-bottom: 30px; border: 0 !important;
  }
  .auth-mobile-brand img { height: 32px; width: auto; max-width: 140px; }
}

/* ---------- Auth: refined form controls ---------- */
.input-group { position: relative; }
.input-group input { padding-left: 42px; }
.input-group .input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--ink3); pointer-events: none;
}
.input-group input.has-pw-toggle { padding-right: 42px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; padding: 7px; cursor: pointer; color: var(--ink3); display: flex;
}
.pw-toggle:hover { color: var(--accent); }
.pw-toggle svg { width: 16px; height: 16px; }
.pw-toggle .icon-eye-off { display: none; }
.pw-toggle.is-visible .icon-eye { display: none; }
.pw-toggle.is-visible .icon-eye-off { display: block; }

.divider-text { display: flex; align-items: center; gap: 14px; color: var(--ink3); font: 500 .62rem var(--font-mono); letter-spacing: .2em; text-transform: uppercase; margin: 22px 0; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--line2); }

.btn--google { gap: 10px; }
.google-mark {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: conic-gradient(from -45deg, #4285f4 0deg 90deg, #34a853 90deg 180deg, #fbbc05 180deg 270deg, #ea4335 270deg 360deg);
  color: #fff; font-family: var(--font-sans); font-weight: 700; font-size: 10px;
}

.strength-meter-wrap { display: none; margin-top: 9px; }
.strength-meter { display: flex; gap: 4px; }
.strength-meter span { flex: 1; height: 2px; background: var(--line); transition: background .2s; }
.strength-label { display: inline-block; font: 500 .62rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; margin-top: 6px; color: var(--ink3); }

/* ---------- Shared: loading buttons + copy buttons ---------- */
.btn .btn-spinner {
  display: none; width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid rgba(23, 19, 16, .3); border-top-color: currentColor; animation: btn-spin .7s linear infinite;
}
.btn.is-loading .btn-spinner { display: inline-block; }
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn--ghost .btn-spinner { border-color: var(--line); border-top-color: var(--accent); }
@keyframes btn-spin { to { transform: rotate(360deg); } }

.copy-row button.copy-btn { display: inline-flex; align-items: center; gap: 6px; }
.copy-row button.copy-btn svg { width: 13px; height: 13px; }
.copy-row button.copy-btn.is-copied { background: var(--ok-bg); color: var(--ok); border-color: rgba(124, 198, 160, .4); }

/* =========================================================
   POST-LOGIN EXPERIENCE
   ========================================================= */

/* ---------- Dashboard hero + quick actions ---------- */
.dash-hero {
  position: relative; overflow: hidden; padding: 34px 36px; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line2); border-top-color: var(--line);
}
.dash-hero::before {
  content: ""; position: absolute; top: -140px; right: -100px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 164, 65, .20), transparent 65%); pointer-events: none;
}
.dash-hero-inner { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.dash-hero h1 { margin-bottom: .25em; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.dash-hero p { color: var(--ink2); margin: 0; }
.dash-hero .btn { flex-shrink: 0; }

.quick-actions { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 30px 0 -34px; margin-inline: -36px; border-top: 1px solid var(--line2); }
.quick-action {
  display: flex; align-items: center; gap: 12px; padding: 18px 22px;
  border: 0; border-left: 1px solid var(--line2); background: transparent; text-decoration: none; transition: background .2s;
}
.quick-action:first-child { border-left: 0; padding-left: 36px; }
.quick-action:hover { background: var(--accent-04); }
.quick-action-icon { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--accent); transition: border-color .2s; }
.quick-action:hover .quick-action-icon { border-color: var(--accent); }
.quick-action-icon svg { width: 15px; height: 15px; }
.quick-action-label { font: 500 .66rem var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.quick-action--1 .quick-action-icon, .quick-action--2 .quick-action-icon,
.quick-action--3 .quick-action-icon, .quick-action--4 .quick-action-icon { background: transparent; color: var(--accent); }

.stat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.stat-icon { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--accent); }
.stat-icon svg { width: 13px; height: 13px; }
.stat-head .label { margin: 0; }
.stat--accent .stat-icon, .stat--teal .stat-icon, .stat--amber .stat-icon { background: transparent; color: var(--accent); }

/* ---------- Buy flow ---------- */
.buy-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: flex-start; }
.buy-summary { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }
.price-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 0; }
.price-chip { font: 400 .72rem var(--font-mono); padding: 5px 11px; background: transparent; color: var(--ink2); border: 1px solid var(--line); }
.quote-panel { padding: 24px; border: 1px solid var(--accent-40); background: linear-gradient(160deg, rgba(217, 164, 65, .09), rgba(217, 164, 65, .02) 60%); }
.quote-panel .label { font: 500 .6rem var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink3); margin: 0; }
.quote-tokens-value { font: 500 2rem/1.15 var(--font-display); color: var(--ink); margin: 8px 0 4px; word-break: break-word; }
.quote-bonus-note { font: 500 .68rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.quote-swap-icon { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; margin: 8px auto 12px; }
.quote-swap-icon svg { width: 13px; height: 13px; color: var(--ink3); }
.quote-panel .help { margin: 8px 0 0; }
@media (max-width: 760px) {
  .buy-layout { grid-template-columns: 1fr; }
  .buy-summary { position: static; }
}

/* ---------- Timeline / stepper (orders, KYC) ---------- */
.step-timeline { display: flex; align-items: flex-start; margin: 6px 0 28px; }
.step-timeline-step { flex: 1; position: relative; text-align: center; }
.step-timeline-step:not(:last-child)::after {
  content: ""; position: absolute; top: 13px; left: 50%; width: 100%; height: 1px; background: var(--line); z-index: 0;
}
.step-timeline-step.is-complete:not(:last-child)::after { background: var(--accent); }
.step-timeline-dot {
  position: relative; z-index: 1; width: 27px; height: 27px; border-radius: 50%; margin: 0 auto 9px;
  display: flex; align-items: center; justify-content: center; background: var(--bg);
  border: 1px solid var(--line); color: var(--ink3); font: 500 .66rem var(--font-mono);
}
.step-timeline-dot svg { width: 12px; height: 12px; }
.step-timeline-step.is-complete .step-timeline-dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.step-timeline-step.is-active .step-timeline-dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-12); }
.step-timeline-step.is-bad .step-timeline-dot { background: var(--bad); border-color: var(--bad); color: var(--bg); }
.step-timeline-label { font: 500 .6rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); }
.step-timeline-step.is-complete .step-timeline-label,
.step-timeline-step.is-active .step-timeline-label { color: var(--ink); }
.step-timeline-step.is-bad .step-timeline-label { color: var(--bad); }

/* ---------- Profile ---------- */
.profile-header { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.avatar-circle {
  width: 56px; height: 56px; border-radius: 50%; border: 1.4px solid var(--accent); color: var(--ink);
  display: flex; align-items: center; justify-content: center; font: 600 1.15rem var(--font-display); flex-shrink: 0;
}
.profile-header h1 { margin: 0; }
.profile-header p { margin: 2px 0 0; }
.card-section-icon { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.card-section-icon svg { width: 14px; height: 14px; }

/* ---------- Empty states ---------- */
.empty-state { text-align: center; padding: 38px 18px; }
.empty-state-icon { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; color: var(--ink3); }
.empty-state-icon svg { width: 19px; height: 19px; }
.empty-state p { color: var(--ink3); margin-bottom: 14px; }

/* =========================================================
   HOMEPAGE (mirrors the landing page: hero, kicker sections, ledger rows)
   ========================================================= */
.hero--home { padding: 40px 0 56px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-meta { display: flex; align-items: center; gap: 14px; font: 500 .68rem var(--font-mono); letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin: 0 0 22px; }
.hero-meta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pw-pulse 2.2s infinite; }
.hero-title { font: 500 clamp(3rem, 7.4vw, 6.2rem)/.98 var(--font-display); letter-spacing: -.025em; margin: 0 0 24px; }
.hero--home p.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 .68rem var(--font-mono); letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pw-pulse 2.2s infinite; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.trust-inline { margin-top: 30px; font: 400 .74rem var(--font-mono); color: var(--ink3); display: flex; align-items: center; gap: 10px; }
.trust-inline svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }

.stage-card {
  position: relative; background: rgba(16, 16, 20, .88); backdrop-filter: blur(6px);
  border: 1px solid var(--line); padding: 30px; box-shadow: var(--shadow-md);
}
.stage-card::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; background: var(--accent); }
.stage-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.stage-top .stage-name { font: 500 .6rem var(--font-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--ink3); }
.stage-top .stage-num { font: 500 1.4rem var(--font-display); margin-top: 3px; color: var(--ink); }
.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border: 1px solid var(--accent-40); color: var(--accent); font: 500 .6rem var(--font-mono); letter-spacing: .2em; text-transform: uppercase; }
.live-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pw-pulse 1.8s infinite; }
@keyframes pw-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.65); } }
.price-row .price { font: 400 2.5rem var(--font-mono); letter-spacing: -.02em; color: var(--ink); }
.stage-progress { margin: 18px 0 20px; }
.progress-meta { display: flex; justify-content: space-between; font: 400 .68rem var(--font-mono); color: var(--ink3); margin-top: 10px; }
.stage-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 20px; border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); }
.stage-meta .meta-box { padding: 14px 0; }
.stage-meta .meta-box + .meta-box { padding-left: 20px; border-left: 1px solid var(--line2); }
.stage-meta .label { font: 500 .58rem var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink3); margin: 0 0 5px; }
.stage-meta .val { font: 400 .95rem var(--font-mono); color: var(--ink); }
.countdown { display: flex; gap: 0; border: 1px solid var(--line2); }
.countdown .box { flex: 1; padding: 11px 6px; text-align: center; border-left: 1px solid var(--line2); }
.countdown .box:first-child { border-left: 0; }
.countdown .box b { display: block; font: 400 1.25rem var(--font-mono); color: var(--accent); font-weight: 400; }
.countdown .box span { font: 500 .56rem var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink3); }

/* accepted-coins strip = the landing page's hero-facts bar */
.trust-strip { border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); padding: 20px 0; margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.coin-row { display: flex; gap: 10px; flex-wrap: wrap; }
.coin-chip { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); padding: 6px 14px 6px 7px; font: 400 .76rem var(--font-mono); color: var(--ink); }
.coin-dot { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 600 .62rem var(--font-sans); color: var(--accent-ink); flex-shrink: 0; }
.security-note { display: flex; align-items: center; gap: 10px; font: 400 .72rem var(--font-mono); color: var(--ink3); }
.security-note svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

.page-section { padding: clamp(64px, 8vw, 110px) 0 0; }
.section-head { max-width: 60ch; margin-bottom: 44px; }
.kicker { display: flex; align-items: center; gap: 14px; font: 500 .68rem/1 var(--font-mono); letter-spacing: .26em; text-transform: uppercase; margin-bottom: 22px; color: var(--accent); }
.kicker .no { color: var(--accent); }
.kicker .ln { width: 44px; height: 1px; background: var(--line); }
.kicker .lb { color: var(--ink3); }
.kicker.center { justify-content: center; }
.sec-title, .section-head h2 { font: 500 clamp(2rem, 3.8vw, 3rem)/1.12 var(--font-display); letter-spacing: -.015em; max-width: 22ch; margin: 0; }
.section-head p { color: var(--ink2); margin-top: 16px; font-size: 1.02rem; max-width: 58ch; }

/* how it works - ledger columns */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { position: relative; padding: 28px 24px 8px 0; margin-right: 24px; border-right: 1px solid var(--line2); }
.step:last-child { border-right: 0; margin-right: 0; }
.step-num { font: 500 .66rem var(--font-mono); letter-spacing: .24em; color: var(--accent); margin-bottom: 18px; }
.step h3 { font: 500 1.2rem var(--font-display); margin-bottom: 8px; }
.step p { font-size: .92rem; color: var(--ink2); margin: 0; }

/* roadmap - ledger table */
.roadmap { border-top: 1px solid var(--line); background: transparent; }
.rm-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; align-items: center; padding: 20px 12px; border-bottom: 1px solid var(--line2); font-size: .92rem; transition: background .2s; }
.rm-row:hover { background: var(--accent-04); }
.rm-row.head { padding: 12px; font: 500 .6rem var(--font-mono); text-transform: uppercase; letter-spacing: .2em; color: var(--ink3); border-bottom-color: var(--line); }
.rm-row.head:hover { background: transparent; }
.rm-row.current { background: var(--accent-04); box-shadow: inset 2px 0 0 var(--accent); }
.rm-name { display: flex; align-items: center; gap: 12px; font: 500 1.05rem var(--font-display); color: var(--ink); }
.rm-status { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.rm-status.done { background: var(--ink3); }
.rm-status.live { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-12); }
.rm-status.next { background: transparent; border: 1px solid var(--accent); }
.rm-price, .rm-bonus, .rm-supply { font: 400 .84rem var(--font-mono); color: var(--ink2); }
.rm-tag { font: 500 .6rem var(--font-mono); letter-spacing: .16em; text-transform: uppercase; padding: 3px 9px; border: 1px solid var(--line2); justify-self: start; }
.rm-tag.done { color: var(--ink3); }
.rm-tag.live { color: var(--accent); border-color: var(--accent-40); background: var(--accent-12); }
.rm-tag.next { color: var(--ink2); border-color: var(--line); }

/* faq */
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line2); }
.faq summary { cursor: pointer; font: 500 1.12rem var(--font-display); color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 4px; transition: color .2s; }
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 1.5rem var(--font-sans); color: var(--ink3); transition: transform .35s, color .35s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq details p { color: var(--ink2); font-size: .98rem; margin: 0; padding: 0 4px 24px; max-width: 64ch; }

/* final CTA */
.cta-band { position: relative; padding: clamp(56px, 8vw, 100px) 20px; text-align: center; border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(560px 280px at 50% 100%, rgba(217, 164, 65, .13), transparent 70%); pointer-events: none; }
.cta-band > * { position: relative; }
.cta-band h2 { font: 500 clamp(2.2rem, 5vw, 4rem)/1.05 var(--font-display); letter-spacing: -.02em; max-width: 18ch; margin: 0 auto; }
.cta-band p { color: var(--ink2); margin: 18px auto 32px; max-width: 46ch; }

@media (max-width: 1000px) {
  .main-nav { gap: 0; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line2); padding-bottom: 24px; }
  .rm-row { grid-template-columns: 1.2fr 1fr 1fr; font-size: .84rem; }
  .rm-row > :nth-child(4), .rm-row > :nth-child(5) { display: none; }
  .dash-hero { padding: 28px 24px; }
  .quick-actions { margin: 28px -24px -28px; }
  .quick-action:first-child { padding-left: 24px; }
}
@media (max-width: 760px) {
  .header-inner { height: auto; padding-top: 12px; padding-bottom: 8px; flex-wrap: wrap; gap: 6px; }
  .main-nav { width: 100%; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .main-nav::-webkit-scrollbar { display: none; }
  .brand .bs { display: none; }
  .steps { grid-template-columns: 1fr; }
  .stage-card { padding: 24px; }
  .card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.quote-panel p.mono { color: var(--ink); }
