/* ═══════════════════════════════════════════════════════════════════════════
   STABLEGOLD — stylesheet
   Theme: deep charcoal + gold + deep navy
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:        #cc9c58;
  --gold-light:  #fcd888;
  --gold-dark:   #905c30;
  --gold-dim:    rgba(204,156,88,.4);
  --brand-green: #84b864;
  --bg:          #0d0e12;
  --bg-card:     #14161e;
  --bg-dark:     #090a0d;
  --border:      rgba(204,156,88,.18);
  --text:        #e8e8ec;
  --text-muted:  #8a8a9a;
  --green:       #84b864;
  --burn-red:    #f87171;
  --radius:      14px;
  --radius-sm:   8px;
  --shadow:      0 4px 32px rgba(0,0,0,.45);
  --shadow-gold: 0 0 32px rgba(212,168,67,.18);
  --font-body:   'Source Sans 3', 'Nunito Sans', 'Avenir Next', 'Segoe UI', sans-serif;
  --font-display:'Space Grotesk', 'Avenir Next', 'Trebuchet MS', sans-serif;
  --font:        var(--font-body);
  --transition:  .22s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

h1,h2,h3,h4,h5 {
  line-height: 1.25;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -.01em;
}

.gold { color: var(--gold); }
.stable-green { color: var(--brand-green); }

.logo-text,
.hero-brand-label,
.footer-tagline .stable-green,
.footer-tagline .gold {
  text-shadow: none;
}

.logo-text .stable-green,
.hero-brand-label .stable-green,
.footer-tagline .stable-green {
  color: #9ad878;
  text-shadow: none;
}

.logo-text .gold,
.hero-brand-label .gold,
.footer-tagline .gold {
  color: #e7bd73;
  text-shadow: none;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Navbar ────────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13,14,18,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0);
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.navbar.scrolled {
  background: rgba(13,14,18,.97);
  box-shadow: 0 14px 40px rgba(0,0,0,.3);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-wallet-btn {
  padding-inline: 18px;
}

.devnet-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(204,156,88,.18);
  border: 1.5px solid var(--gold);
  color: var(--gold-light);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  flex-shrink: 0;
  cursor: default;
  user-select: none;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.5px;
  flex-shrink: 0;
}
.logo-icon { font-size: 1.5rem; color: var(--gold); }

/* ─── Logo image styles ─────────────────────────────────────────────────────── */
/* Navbar icon mark */
.logo-img {
  width: 36px;
  height: 36px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;          /* clip PNG logo into circle in navbar */
  flex-shrink: 0;
  filter: drop-shadow(0 1px 4px rgba(212,168,67,.45));
}

/* Hero full wordmark — PNG is square so we show it as a larger coin */
.hero-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto 20px;
}
.hero-logo {
  display: block;
  width: 110px;
  height: 110px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;           /* circular hero coin */
  filter: drop-shadow(0 6px 28px rgba(212,168,67,.45));
  transition: filter var(--transition), transform var(--transition);
}
.hero-logo:hover {
  filter: drop-shadow(0 8px 36px rgba(212,168,67,.65));
  transform: scale(1.04);
}

/* Footer full wordmark */
.footer-logo {
  display: block;
  width: 52px;
  height: 52px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  max-width: 52px;
  object-fit: contain;
  margin-bottom: 10px;
  filter: drop-shadow(0 2px 8px rgba(212,168,67,.2));
}

/* Phone mockup mini icon */
.phone-logo {
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 6px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(212,168,67,.3));
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-muted);
  font-size: .92rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--gold); }

.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  margin-left: auto;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}
.hamburger-icon {
  display: block;
  width: 18px;
  height: 12px;
  color: currentColor;
  font-size: 0;
  line-height: 0;
  background:
    linear-gradient(currentColor 0 0) top / 100% 2px no-repeat,
    linear-gradient(currentColor 0 0) center / 100% 2px no-repeat,
    linear-gradient(currentColor 0 0) bottom / 100% 2px no-repeat;
}
.hamburger-label {
  display: none;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hamburger:hover {
  background: rgba(212,168,67,.08);
  border-color: rgba(212,168,67,.35);
  color: var(--gold);
}
.hamburger[aria-expanded="true"] {
  background: rgba(212,168,67,.12);
  border-color: rgba(212,168,67,.4);
  color: var(--gold);
}

@media (min-width: 901px) {
  .hero-logo-wrap {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-title {
    font-size: clamp(1.9rem, 3.9vw, 3.45rem);
  }
}

/* ─── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  font-family: var(--font-display);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #0d0e12;
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: #0d0e12;
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-outline:hover {
  background: rgba(212,168,67,.1);
}
.btn-lg { padding: 9px 18px; font-size: .85rem; border-radius: var(--radius); }
.btn-sm { padding: 7px 16px; font-size: .82rem; }
.btn-block { width: 100%; margin-top: 16px; padding: 14px; font-size: 1rem; border-radius: var(--radius); }

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(9,10,13,.78);
  backdrop-filter: blur(8px);
}

.modal-shell[hidden] {
  display: none;
}

.modal-card {
  width: min(560px, 100%);
  background: linear-gradient(180deg, rgba(20,22,30,.98), rgba(13,14,18,.98));
  border: 1px solid rgba(212,168,67,.28);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
  padding: 24px;
}

.phantom-help-card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.phantom-help-card p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.wallet-connect-card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.wallet-connect-card p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.wallet-connect-section {
  margin-top: 18px;
}

.wallet-connect-section-label {
  color: var(--text);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.wallet-connect-status {
  color: var(--text);
  font-weight: 700;
}

.wallet-connect-hint {
  font-size: .92rem;
}

.wallet-connect-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.wallet-connect-actions .btn {
  width: 100%;
  min-height: 50px;
}

.wallet-browser-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.wallet-browser-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 160px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(212,168,67,.2);
  color: var(--text);
  background: rgba(255,255,255,.03);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.wallet-browser-card:hover {
  transform: translateY(-1px);
  border-color: rgba(212,168,67,.45);
  box-shadow: 0 18px 38px rgba(0,0,0,.22);
  color: var(--text);
}

.wallet-browser-name {
  font-size: 1rem;
  font-weight: 800;
}

.wallet-browser-copy {
  color: var(--text-muted);
  font-size: .86rem;
  line-height: 1.45;
}

.wallet-browser-action {
  margin-top: auto;
  color: var(--gold-light);
  font-weight: 700;
}

.wallet-browser-phantom {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(20,22,30,.96));
}

.wallet-browser-solflare {
  background: linear-gradient(180deg, rgba(240,201,106,.08), rgba(20,22,30,.96));
}

.wallet-browser-backpack {
  background: linear-gradient(180deg, rgba(52,211,153,.09), rgba(20,22,30,.96));
}

.wallet-connect-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}

.wallet-connect-footnote {
  margin: 0;
  color: var(--text-muted);
  font-size: .84rem;
  line-height: 1.45;
}

.phantom-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}

.phantom-help-url-label {
  color: var(--text);
  font-weight: 700;
  margin-bottom: 6px;
}

.phantom-help-url {
  font-size: .86rem;
  line-height: 1.45;
  word-break: break-all;
  color: var(--gold-light);
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(212,168,67,.22);
  background: rgba(255,255,255,.02);
}

/* ─── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 88px;
  padding-bottom: 14px;
}

.hero-glow {
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(212,168,67,.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 0;
  padding-bottom: 24px;
  text-align: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 760px;
  margin: 0 auto 28px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  background: rgba(212,168,67,.1);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 6px 16px;
  max-width: 100%;
  font-size: .83rem;
  color: var(--gold);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
  text-align: center;
}

.hero-title {
  max-width: 840px;
  margin: 0 auto 16px;
  font-size: clamp(1.25rem, 2.55vw, 2.25rem);
  letter-spacing: -.045em;
  line-height: .98;
  color: var(--text);
}
/* "STABLEGOLD —" label above the hero h1 */
.hero-brand-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: clamp(1.2rem, 2.8vw, 1.95rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    inset 0 -10px 18px rgba(0,0,0,.22),
    0 12px 30px rgba(0,0,0,.24);
}

.hero-sub {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.hero-highlights {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  color: var(--text);
  font-size: .84rem;
  font-weight: 600;
  max-width: 100%;
  text-align: center;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  width: 100%;
  max-width: 520px;
  margin: 0 auto 24px;
}

.hero-install-status {
  margin: -6px auto 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: .9rem;
  display: none;
}

.hero-install-status:not(:empty) {
  display: block;
}

/* Stats bar */
.stats-bar {
  display: flex;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 980px;
  margin: 0 auto;
  flex-wrap: wrap;
  box-shadow: 0 18px 48px rgba(0,0,0,.18);
}
.stat-item {
  flex: 1;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  gap: 4px;
}
.stat-label { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.stat-value { font-size: 1.1rem; font-weight: 700; color: var(--gold); }
.stat-divider { width: 1px; background: var(--border); flex-shrink: 0; }

/* ─── Sections ──────────────────────────────────────────────────────────────── */
.section {
  padding: 52px 0;
}
.section-dark {
  background: var(--bg-dark);
}
.section-title {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  text-align: center;
  margin-bottom: 8px;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
}

.section-tight {
  padding-top: 12px;
  padding-bottom: 30px;
}

.section-tight .section-sub {
  margin-bottom: 20px;
}

.section-tight .pnl-bar {
  margin-bottom: 24px;
}

.section-tight .dash-section-title-spacious {
  margin-top: 24px;
}

/* ─── Stats + Vault Panel (unified redesign) ─────────────────────────────── */
.svp-section {
  padding: 44px 0 40px;
}

.stats-vault-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 22px 56px rgba(0,0,0,.24);
}

/* Price row */
.svp-prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border);
}

.svp-price-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 22px;
  border-right: 1px solid var(--border);
  transition: background var(--transition);
  position: relative;
}
.svp-price-card:last-child { border-right: none; }
.svp-price-card:hover { background: rgba(255,255,255,.022); }

.svp-price-sgld {
  background:
    radial-gradient(circle at 90% 50%, rgba(204,156,88,.09), transparent 55%),
    linear-gradient(135deg, rgba(204,156,88,.05), transparent 60%);
}

.svp-logo-img {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(212,168,67,.35));
}

.svp-price-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  line-height: 1;
}
.svp-icon-sol {
  color: #9945ff;
  font-size: 1.6rem;
  font-weight: 900;
  font-style: normal;
}
.svp-icon-xau {
  color: var(--gold);
  font-size: 1.5rem;
}

.svp-price-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.svp-price-label {
  font-size: .71rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.svp-price-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  font-family: var(--font-display);
  letter-spacing: -.02em;
  line-height: 1.1;
}

.svp-price-badge {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 999px;
  padding: 2px 8px;
}
.svp-badge-live {
  background: rgba(132,184,100,.14);
  border-color: rgba(132,184,100,.3);
  color: var(--brand-green);
}

/* Value colour helpers */
.svp-vv-gold { color: var(--gold); }
.svp-vv-xau  { color: var(--gold-light); }
.svp-vv-blue { color: #60a5fa; }

/* Inner section divider */
.svp-inner-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.012);
}
.svp-inner-divider::before,
.svp-inner-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.svp-inner-divider span {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Vault stats grid */
.svp-vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.svp-vault-item {
  padding: 18px 20px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background var(--transition);
}
.svp-vault-item:hover { background: rgba(255,255,255,.018); }

.svp-vault-label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
}

.svp-vault-value {
  font-size: .98rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}
.svp-vault-featured .svp-vault-value {
  font-size: 1.1rem;
  font-weight: 800;
}

/* Pie inside grid cell */
.svp-vault-pie { grid-column: span 2; }

.svp-pie-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}
.svp-pie-row .pie {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.svp-pie-legend {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: .76rem;
  color: var(--text-muted);
}
.svp-pie-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Footer links */
.svp-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.008);
}
.svp-footer a {
  font-size: .82rem;
  color: var(--gold);
}
.svp-footer a:hover { color: var(--gold-light); }

.svp-price-source {
  margin: 0 0 0 auto;
  text-align: right;
  font-size: .72rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .svp-prices {
    grid-template-columns: 1fr;
  }
  .svp-price-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .svp-price-card:last-child { border-bottom: none; }
  .svp-vault-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .svp-vault-pie { grid-column: span 3; }
}

@media (max-width: 600px) {
  .svp-section { padding: 32px 0 28px; }
  .svp-price-card { padding: 16px 16px; gap: 12px; }
  .svp-price-value { font-size: 1.2rem; }
  .svp-vault-grid { grid-template-columns: repeat(2, 1fr); }
  .svp-vault-item { padding: 14px 14px; }
  .svp-vault-pie { grid-column: span 2; }
  .svp-footer { padding: 12px 16px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .svp-price-source { margin: 0; text-align: left; }
}

/* ─── Feature cards ─────────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(204,156,88,.14);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.16);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  border-color: rgba(204,156,88,.3);
  box-shadow: 0 14px 34px rgba(0,0,0,.24);
  transform: translateY(-2px);
}
.feature-icon { font-size: 2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.feature-card p  { font-size: .9rem; color: var(--text-muted); }

/* ─── Tokenomics tiers ──────────────────────────────────────────────────────── */
.tiers-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.tier-card {
  background: var(--bg-card);
  border: 1px solid rgba(204,156,88,.14);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,.16);
}
.tier-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.tier-icon { font-size: 1.6rem; }
.tier-header h3 { font-size: 1.05rem; }

.tier-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.tier-row {
  display: grid;
  grid-template-columns: 160px 1fr 52px;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
}
.tier-label { color: var(--text-muted); }
.tier-bar-wrap {
  background: rgba(255,255,255,.06);
  border-radius: 99px;
  height: 7px;
  overflow: hidden;
}
.tier-bar {
  display: block;
  height: 100%;
  background: var(--gold);
  border-radius: 99px;
  min-width: 4px;
  max-width: 100%;
}
.tier-bar.burn { background: var(--burn-red); }
.tier-bar.tier-w-0-1 { width: .1%; }
.tier-bar.tier-w-0-9 { width: .9%; }
.tier-bar.tier-w-2-9 { width: 2.9%; }
.tier-bar.tier-w-97 { width: 97%; }
.tier-bar.tier-w-99 { width: 99%; }
.tier-bar.tier-w-100 { width: 100%; }
.tier-row.highlight .tier-label { color: var(--text); }
.tier-pct { font-weight: 700; text-align: right; font-size: .82rem; }
.tier-note { font-size: .82rem; color: var(--text-muted); }

/* ─── Widget ────────────────────────────────────────────────────────────────── */
.widget-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

.widget-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.widget-card {
  background: var(--bg-card);
  border: 1px solid rgba(204,156,88,.14);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0,0,0,.2);
}

.gift-card-card {
  padding: 18px;
}

.gift-card-card .gift-card-builder {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}
.widget-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}
.tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 14px 10px;
  cursor: pointer;
  font-size: .84rem;
  font-weight: 600;
  transition: all var(--transition);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.tab .badge-free {
  margin-left: 6px;
  vertical-align: middle;
}
.tab-panel { display: none; padding: 28px; }
.tab-panel.active { display: block; }

.stable-card-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stable-card-fields .input-group {
  margin-bottom: 0;
}

.trade-mode-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
  padding: 4px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.trade-mode-tab {
  flex: 1;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: 10px 12px;
  cursor: pointer;
  transition: all var(--transition);
}

.trade-mode-tab:hover {
  color: var(--text);
}

.trade-mode-tab.active {
  color: var(--gold);
  border-color: rgba(212,168,67,.45);
  background: rgba(212,168,67,.12);
}

.trade-mode-panel { display: none; }
.trade-mode-panel.active { display: block; }

.input-group { margin-bottom: 16px; }
.input-group label {
  display: block;
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.token-select-wrap {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.token-select-wrap select,
.token-select-wrap input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 1rem;
  padding: 12px 14px;
  font-family: var(--font);
  width: 100%;
}
.token-select-wrap select {
  width: auto;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  cursor: pointer;
  font-weight: 600;
}
.token-badge {
  background: rgba(212,168,67,.12);
  color: var(--gold);
  border-right: 1px solid var(--border);
  padding: 12px 14px;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.token-badge .stable-green,
.token-badge .gold {
  font-weight: 800;
}

.token-badge .stable-green { color: var(--brand-green); }
.token-badge .gold { color: var(--gold); }

.token-badge.small { padding: 10px 10px; font-size: .78rem; }
.full-input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .95rem;
  padding: 12px 14px;
  outline: none;
  width: 100%;
  font-family: var(--font);
  transition: border-color var(--transition);
}
.full-input:focus { border-color: var(--gold-dark); }

.recipient-input-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.recipient-input-row .full-input {
  flex: 1;
}

.recipient-scan-btn {
  min-width: 92px;
  padding-inline: 16px;
}

.arrow-row { text-align: center; color: var(--gold); font-size: 1.4rem; margin: 6px 0; }
.fee-summary {
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--text-muted);
  padding: 8px 0;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.receive-split {
  display: flex;
  align-items: center;
  gap: 8px;
}
.receive-item { flex: 1; }
.receive-item .token-select-wrap { width: 100%; }
.plus { color: var(--gold); font-size: 1.2rem; flex-shrink: 0; }

/* Toggle (tap-to-pay) */
.transfer-mode-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 14px 0 4px;
}
.toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.toggle-label input { display: none; }
.toggle-slider {
  width: 40px; height: 22px;
  background: rgba(255,255,255,.12);
  border-radius: 99px;
  position: relative;
  flex-shrink: 0;
  transition: background var(--transition);
}
.toggle-slider::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all var(--transition);
}
.toggle-label input:checked ~ .toggle-slider { background: var(--gold); }
.toggle-label input:checked ~ .toggle-slider::after {
  left: calc(100% - 19px);
  background: #0d0e12;
}
.toggle-text { font-size: .88rem; }
.badge-free {
  background: var(--green);
  color: #0d0e12;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: .72rem;
  font-weight: 700;
  margin-left: 4px;
}
.transfer-mode-note {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: .88rem;
  line-height: 1.5;
}

.gift-card-builder {
  margin: 16px 0 0;
  padding: 18px;
  border: 1px solid rgba(212,168,67,.22);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top right, rgba(212,168,67,.14), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
}

.gift-card-builder-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.gift-card-builder-head p {
  color: var(--text-muted);
  font-size: .88rem;
  line-height: 1.5;
}

.gift-card-builder-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(212,168,67,.32);
  background: rgba(212,168,67,.12);
  color: var(--gold-light);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 10px;
  white-space: nowrap;
}

.gift-amount-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.gift-amount-chip {
  border: 1px solid rgba(212,168,67,.34);
  background: rgba(255,255,255,.03);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.gift-amount-chip::before {
  content: '$';
  opacity: .7;
  margin-right: 1px;
}

.gift-amount-chip:hover,
.gift-amount-chip.active {
  border-color: rgba(212,168,67,.9);
  background: rgba(212,168,67,.2);
  color: var(--gold-light);
}

.gift-amount-note {
  margin: 0;
  color: var(--text-muted);
  font-size: .84rem;
}

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

.gift-message-group {
  grid-column: 1 / -1;
}

.gift-message-input {
  min-height: 108px;
  resize: vertical;
}

.gift-card-preview-shell {
  margin-top: 18px;
}

.gift-card-preview-card {
  position: relative;
  overflow: hidden;
  min-height: 292px;
  padding: 26px 24px 22px;
  border-radius: 28px;
  border: 1px solid rgba(204,156,88,.42);
  background:
    linear-gradient(90deg, rgba(132,184,100,.95) 0 14px, rgba(132,184,100,0) 14px),
    linear-gradient(180deg, rgba(252,216,136,.06) 0%, rgba(252,216,136,0) 26%),
    radial-gradient(circle at 22% 18%, rgba(132,184,100,.18), transparent 26%),
    radial-gradient(circle at 88% 14%, rgba(252,216,136,.24), transparent 28%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 10px, rgba(255,255,255,0) 10px 22px),
    linear-gradient(145deg, #18202a 0%, #101720 56%, #090d13 100%);
  box-shadow: 0 20px 60px rgba(0,0,0,.46), inset 0 0 0 1px rgba(252,216,136,.08);
}

.gift-card-preview-card::selection {
  background: rgba(204,156,88,.28);
}

.gift-card-preview-card::marker {
  color: transparent;
}

.gift-card-preview-card::before,
.gift-card-preview-card::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.gift-card-preview-card::before {
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0) 32%);
  opacity: .55;
}

.gift-card-preview-card::after {
  width: 168px;
  height: 168px;
  right: -34px;
  bottom: -56px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(132,184,100,.24) 0%, rgba(132,184,100,0) 72%);
  filter: blur(2px);
}

.gift-card-preview-card .gift-card-kicker::before {
  content: '';
  display: block;
  width: 124px;
  height: 5px;
  border-radius: 999px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, #84b864 0%, #fcd888 100%);
  box-shadow: 0 0 18px rgba(252,216,136,.16);
}

.gift-card-logo {
  position: absolute;
  top: -22px;
  right: -18px;
  width: 198px;
  height: 198px;
  border-radius: 0;
  border: none;
  background: transparent;
  padding: 0;
  z-index: 1;
  opacity: .96;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.38));
}

.gift-card-logo::after {
  content: '';
}

.gift-card-preview-card[data-theme="holiday"] {
  background: linear-gradient(145deg, #183227 0%, #0e1b16 48%, #08110d 100%);
}

.gift-card-preview-card[data-theme="thankyou"] {
  background: linear-gradient(145deg, #242844 0%, #171a2c 50%, #0c0f19 100%);
}

.gift-card-preview-card[data-theme="welcome"] {
  background: linear-gradient(145deg, #3a2418 0%, #241710 48%, #120c08 100%);
}

.gift-card-kicker,
.gift-card-amount,
.gift-card-to,
.gift-card-message,
.gift-card-wallet,
.gift-card-meta {
  position: relative;
  z-index: 1;
}

.gift-card-kicker {
  margin-top: 4px;
  max-width: calc(100% - 152px);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(232,232,236,.92);
  margin-bottom: 18px;
  line-height: 1.25;
}

.gift-card-kicker .stable-green {
  color: #84b864;
}

.gift-card-kicker .gold {
  color: #fcd888;
}

.gift-card-amount {
  max-width: calc(100% - 126px);
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1;
  font-weight: 800;
  color: #fff1cf;
  margin-bottom: 10px;
  letter-spacing: -.03em;
  text-shadow: 0 4px 18px rgba(0,0,0,.28);
}

.gift-card-to {
  max-width: calc(100% - 152px);
  font-size: 1.02rem;
  font-weight: 700;
  color: #d6e8ca;
  margin-bottom: 10px;
}

.gift-card-message {
  max-width: 30ch;
  font-size: .92rem;
  line-height: 1.55;
  color: rgba(232,232,236,.82);
  margin-bottom: 16px;
}

.gift-card-wallet {
  font-size: .82rem;
  color: rgba(232,232,236,.72);
  margin-bottom: 22px;
}

.gift-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .78rem;
  color: rgba(255,255,255,.84);
  margin-top: auto;
}

.gift-card-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
}

.gift-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.gift-card-actions .btn {
  flex: 1;
  min-width: 144px;
}

.gift-card-status,
.gift-card-preview-note {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: .84rem;
  line-height: 1.5;
}

.gift-card-link {
  display: block;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(212,168,67,.18);
  background: rgba(255,255,255,.03);
  color: var(--gold-light);
  font-size: .82rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.gift-card-link.is-disabled,
.gift-card-link[aria-disabled="true"] {
  color: var(--text-muted);
  pointer-events: none;
}

/* Widget sidebar */
.widget-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.info-block {
  background: var(--bg-card);
  border: 1px solid rgba(204,156,88,.14);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 10px 26px rgba(0,0,0,.14);
}
.info-block h4 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.info-note {
  margin: 0 0 10px;
  font-size: .84rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.trust-label {
  margin: 14px 0 8px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--gold);
}
.balance-hint { color: var(--text-muted); font-size: .9rem; }
.price-display { font-size: 1.3rem; font-weight: 700; color: var(--gold); }
.balance-display { font-size: 1.5rem; font-weight: 700; color: var(--gold); }
.address-display {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-family: 'SFMono-Regular', 'Consolas', monospace;
  font-size: .82rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.address-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.address-actions .btn {
  flex: 1;
  min-width: 132px;
}
.token-address-link.is-disabled,
.token-address-link[aria-disabled="true"] {
  opacity: .55;
  pointer-events: none;
}

/* ─── How-to-buy strip ──────────────────────────────────────────────────────── */
.how-to-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(204,156,88,.07);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-bottom: 28px;
}

.how-to-step {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 180px;
}

.how-to-num {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0d0e12;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .88rem;
}

.how-to-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.how-to-body strong {
  font-size: .9rem;
  color: var(--text);
}

.how-to-body span {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.how-to-arrow {
  color: var(--gold-dim);
  font-size: 1.3rem;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .how-to-arrow { display: none; }
  .how-to-step { min-width: 100%; }

  .widget-tabs {
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    border-bottom: none;
  }

  .tab {
    flex: 1 1 calc(50% - 6px);
    min-width: 138px;
    border: 1px solid rgba(204,156,88,.2);
    border-radius: 10px;
    white-space: normal;
    line-height: 1.3;
    text-align: center;
    padding: 10px 8px;
  }

  .tab.active {
    border-color: var(--gold);
    background: rgba(204,156,88,.1);
  }

  .tab .badge-free {
    display: inline-block;
    margin-top: 4px;
    margin-left: 0;
  }

  .stable-card-fields,
  .gift-card-grid {
    grid-template-columns: 1fr;
  }

  .gift-card-builder-head {
    flex-direction: column;
  }

  .gift-amount-chip {
    min-width: calc(50% - 6px);
    text-align: center;
  }

  .gift-card-preview-card {
    min-height: 268px;
    padding: 20px 16px 16px;
  }

  .gift-card-logo {
    top: 10px;
    right: 6px;
    width: 126px;
    height: 126px;
    opacity: .38;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,.34));
  }

  .gift-card-kicker,
  .gift-card-to,
  .gift-card-message,
  .gift-card-wallet {
    max-width: calc(100% - 90px);
  }

  .gift-card-amount {
    max-width: calc(100% - 74px);
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .gift-card-actions {
    flex-direction: column;
  }

  .gift-card-actions .btn {
    min-width: 100%;
  }
}

/* Pie chart */
.pie-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pie { width: 80px; height: 80px; transform: rotate(-90deg); }
.pie-bg { fill: none; stroke: rgba(255,255,255,.06); stroke-width: 3.8; }
.pie-usdc { fill: none; stroke: #3b82f6; stroke-width: 3.8; stroke-linecap: round; }
.pie-xaum { fill: none; stroke: var(--gold); stroke-width: 3.8; stroke-linecap: round; }
.pie-legend {
  display: flex;
  gap: 14px;
  font-size: .8rem;
  color: var(--text-muted);
  align-items: center;
}
.legend-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.legend-dot.usdc { background: #3b82f6; }
.legend-dot.xaum { background: var(--gold); }

/* ─── Tap to Pay ────────────────────────────────────────────────────────────── */
.tap-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.tap-steps { display: flex; flex-direction: column; gap: 28px; }
.step { display: flex; gap: 20px; align-items: flex-start; }
.step-num {
  width: 36px; height: 36px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0d0e12;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .9rem;
}
.step-body h4 { font-size: .97rem; margin-bottom: 4px; }
.step-body p  { font-size: .87rem; color: var(--text-muted); }

/* Phone mockup */
.phone-mockup {
  width: 220px;
  background: #1a1c26;
  border-radius: 32px;
  border: 2px solid rgba(212,168,67,.3);
  box-shadow: var(--shadow), var(--shadow-gold);
  overflow: hidden;
  flex-shrink: 0;
}
.phone-screen { padding: 24px 18px; }
.phone-header { display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.phone-brand { font-size: .82rem; font-weight: 800; color: var(--text-muted); letter-spacing: .04em; }
.phone-brand .stable-green { color: var(--brand-green); }
.phone-brand .gold { color: var(--gold); }
.phone-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); text-align: center; margin-bottom: 6px; }
.phone-amount { text-align: center; font-size: 1.7rem; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.phone-amount span { font-size: .9rem; color: var(--text-muted); }
.phone-amount .stable-green { color: var(--brand-green); }
.phone-amount .gold { color: var(--gold); }
.phone-merchant { text-align: center; font-size: .82rem; color: var(--text-muted); margin-bottom: 12px; }
.phone-badge {
  text-align: center;
  background: rgba(52,211,153,.15);
  color: var(--green);
  border: 1px solid rgba(52,211,153,.3);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: .72rem;
  font-weight: 700;
  margin: 0 auto 14px;
  width: fit-content;
}
.qr-placeholder {
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 16px;
}
.qr-inner { background: #fff; }
.qr-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5px;
  width: 100%;
  aspect-ratio: 1;
}
.qr-cell {
  background: #000;
  border-radius: 1px;
}
.phone-confirm { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.phone-confirm .btn { width: 100%; }
/* ─── FAQ ────────────────────────────────────────────────────────────────────── */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item[open] { border-color: var(--gold-dark); }
.faq-item summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: .97rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--gold);
  font-size: 1.3rem;
  transition: transform var(--transition);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  padding: 0 22px 18px;
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.7;
}

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding-top: 36px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  padding-bottom: 28px;
}
.footer-brand { margin-bottom: 0; }
.footer-tagline { color: var(--text-muted); font-size: .85rem; max-width: 240px; margin-top: 6px; }
/* Give the footer logo the same bottom spacing the old text nav-logo had */
.footer-logo { margin-bottom: 6px; }
.footer-links { display: flex; gap: 28px; }
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col h5 {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.footer-col a { font-size: .88rem; color: var(--text-muted); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 24px;
  text-align: center;
  font-size: .78rem;
  color: var(--text-muted);
}

/* ─── Toast ──────────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(24px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  font-size: .9rem;
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  transition: all .3s ease;
  pointer-events: none;
  z-index: 999;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.success { border-color: var(--green); color: var(--green); }
.toast.error   { border-color: var(--burn-red); color: var(--burn-red); }
.toast.gold    { border-color: var(--gold); color: var(--gold); }

/* ─── Reveal animations ──────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Pay animation ──────────────────────────────────────────────────────────── */
@keyframes checkPop {
  0%   { transform: scale(0) rotate(-30deg); opacity: 0; }
  60%  { transform: scale(1.2) rotate(3deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.pay-success {
  animation: checkPop .45s cubic-bezier(.2,1.4,.5,1) forwards;
}

.pay-success-mark {
  animation: checkPop .45s ease forwards;
  display: inline-block;
  color: var(--green);
}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px 20px;
    gap: 14px;
    box-shadow: 0 24px 48px rgba(0,0,0,.35);
  }
  .nav-inner {
    position: relative;
    height: 58px;
    gap: 16px;
    justify-content: space-between;
  }
  .hero-content {
    padding-top: 0;
    padding-bottom: 30px;
  }
  .hero-copy { margin-bottom: 24px; }
  .hero-sub { margin-bottom: 14px; }
  .hero-cta { margin-bottom: 18px; }
  .section { padding: 44px 0; }
  .hamburger {
    display: inline-flex;
    width: auto;
    padding: 0 14px;
  }
  .hamburger-label { display: inline-block; }
  #connectWalletBtn { display: none; }

  .widget-wrap { grid-template-columns: 1fr; }
  .widget-info { display: grid; grid-template-columns: repeat(2, 1fr); }

  .tap-wrap { grid-template-columns: 1fr; }
  .phone-mockup { margin: 0 auto; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { flex-wrap: wrap; gap: 32px; }
}

@media (max-width: 600px) {
  .stats-bar { flex-direction: column; }
  .stat-divider { width: 100%; height: 1px; }
  .tiers-wrap { grid-template-columns: 1fr; }
  .tier-row { grid-template-columns: 120px 1fr 44px; }
  .hero-title {
    font-size: clamp(1.2rem, 5.4vw, 1.85rem);
    line-height: 1.02;
  }
  .hero-cta {
    max-width: 300px;
  }
  .hero-install-status {
    font-size: .84rem;
    margin-top: -2px;
  }
  .widget-info { grid-template-columns: 1fr; }
  .receive-split { flex-direction: column; }
  .footer-links { flex-direction: column; }
  /* Logo sizes on small screens */
  .hero-logo { width: 72px; height: 72px; }
  .footer-logo { width: 40px; height: 40px; }
}
/* ─── Green / Red stat values ────────────────────────────────────────────────── */
.green { color: var(--green) !important; }
.red   { color: var(--burn-red) !important; }
.stat-value.green { color: var(--green); }

/* ─── P&L Summary Bar ────────────────────────────────────────────────────────── */
.pnl-bar {
  display: flex;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 40px;
  overflow: hidden;
}
.pnl-item {
  flex: 1 1 130px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pnl-divider { width: 1px; background: var(--border); margin: 14px 0; flex-shrink: 0; }
.pnl-label { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.pnl-value { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.pnl-value.green { color: var(--green); }

/* ─── Dashboard section heading ─────────────────────────────────────────────── */
.dash-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
}
.dash-note {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.dash-section-title-spacious { margin-top: 40px; }
.dash-section-title-medium { margin-top: 32px; }

.price-source {
  text-align: center;
  font-size: .75rem;
  color: var(--text-muted);
  padding: 4px 0 2px;
}

.program-status-line {
  text-align: center;
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: -8px;
  margin-bottom: 12px;
}

.program-status-value { font-weight: 600; }
.transfer-fee-free { color: var(--green); }
.tier-note-emphasis { margin-top: 14px; font-size: .83rem; }

.comments-card {
  max-width: 760px;
  margin: 0 auto;
}

.comments-panel { display: block; }
.comments-gate {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}
.comments-name-group { margin-top: 14px; }
.comments-textarea { resize: vertical; }
.comments-reset-btn {
  margin-top: 10px;
  border-color: rgba(248, 113, 113, .65);
  color: #fca5a5;
}
.comments-reset-btn:hover {
  background: rgba(248, 113, 113, .12);
  color: #fecaca;
  border-color: rgba(248, 113, 113, .9);
}
.comments-meta { margin-top: 18px; }

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 14px;
}

.comment-card {
  background: var(--bg);
  border: 1px solid rgba(204,156,88,.14);
  border-radius: var(--radius-sm);
  padding: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.comment-time {
  font-size: .75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.comment-body {
  color: var(--text);
  font-size: .9rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.comment-actions-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.comments-reply-btn,
.comments-submit-reply-btn,
.comments-cancel-reply-btn {
  margin-top: 8px;
  padding: 4px 10px;
  font-size: .76rem;
}

.comment-replies {
  margin-top: 10px;
  padding-left: 14px;
  border-left: 2px solid rgba(212, 168, 67, .25);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-reply-box {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(12, 16, 28, .55);
}

.comment-reply-input {
  min-height: 72px;
  resize: vertical;
}

.comment-reply-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.comment-depth-1,
.comment-depth-2,
.comment-depth-3,
.comment-depth-4 {
  background: rgba(10, 14, 24, .75);
}

.no-comments {
  color: var(--text-muted);
  font-size: .9rem;
}
/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .pnl-bar { flex-direction: column; }
  .pnl-divider { width: 100%; height: 1px; margin: 0; }
}
@media (max-width: 600px) {
  .comment-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .comment-time { white-space: normal; }
  .comment-replies { padding-left: 10px; }
}

/* ─── Mobile responsive additions (phone screens) ────────────────────────── */
@media (max-width: 600px) {
  /* Reduce section padding on phones */
  .section { padding: 36px 0; }
  /* Allow hero eyebrow to wrap gracefully on narrow screens */
  .hero-eyebrow {
    width: 100%;
    white-space: normal;
    text-align: center;
    font-size: .76rem;
    line-height: 1.5;
    border-radius: 20px;
  }
  /* Smaller tab panel padding */
  .tab-panel { padding: 16px; }
  .stable-card-fields { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  /* Further reduce section padding on very small phones */
  .section { padding: 40px 0; }
  /* Tighter container gutters */
  .container { padding: 0 16px; }
  /* Tighten section subtitle bottom margin */
  .section-sub { margin-bottom: 36px; }
  /* Reduce hero bottom padding */
  .hero-content { padding-bottom: 48px; }
  /* Compact card load form */
  .card-load-form { padding: 16px; }
  /* Compact trade tab panels */
  .tab-panel { padding: 14px; }
  /* Nav height slightly tighter */
  .nav-inner { height: 56px; }
  .nav-links.open { top: 56px; }
}

/* ─── Comment address ─────────────────────────────────────────────────────── */
.comment-address { font-size: .78rem; color: var(--text-muted); margin: 2px 0 6px; word-break: break-all; }
.comment-address-link { color: var(--gold); text-decoration: none; }
.comment-address-link:hover { text-decoration: underline; }
/* ---- Comments expand / collapse ---- */
.comments-expand-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  background: none;
  border: 1px solid var(--gold, #d4af37);
  color: var(--gold, #d4af37);
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 0.82rem;
  transition: background 0.2s;
}
.comments-expand-btn:hover {
  background: rgba(212,175,55,0.12);
}
.comments-delete-btn {
  margin-top: 8px;
  padding: 4px 10px;
  font-size: .76rem;
}
.comments-hidden {
  display: none;
  flex-direction: column;
  gap: 12px;
}

/* ─── Extra compact mobile tuning ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .container { padding: 0 18px; }
}

@media (max-width: 600px) {
  .container { padding: 0 14px; }

  .nav-inner { padding: 0 14px; }
  .nav-logo { font-size: 1rem; }
  .logo-img { width: 30px; height: 30px; }
  .hamburger {
    width: 42px;
    padding: 0;
    gap: 0;
  }
  .hamburger-label { display: none; }

  .hero { padding-top: 72px; }
  .hero-logo-wrap { margin-bottom: 16px; }
  .hero-brand-label {
    padding: 8px 18px;
    font-size: 1.08rem;
    letter-spacing: .13em;
    margin-bottom: 10px;
  }
  .hero-sub {
    font-size: .93rem;
    line-height: 1.55;
  }
  .hero-highlights { gap: 8px; }
  .hero-chip {
    width: 100%;
    max-width: 320px;
  }
  .btn-lg {
    padding: 8px 15px;
    font-size: .83rem;
  }

  .wallet-connect-actions {
    grid-template-columns: 1fr;
  }

  .stat-item {
    padding: 12px 10px;
    min-width: 0;
  }
  .stat-value { font-size: 1rem; }

  .widget-wrap { gap: 16px; }
  .tab { padding: 13px 8px; font-size: .84rem; }
  .token-select-wrap select,
  .token-select-wrap input,
  .full-input,
  .token-badge { padding: 10px 11px; }
  .recipient-input-row {
    flex-direction: column;
    gap: 8px;
  }
  .recipient-scan-btn {
    width: 100%;
    min-width: 0;
  }
  .fee-summary {
    flex-direction: column;
    gap: 4px;
    font-size: .77rem;
  }

  .tier-card,
  .feature-card,
  .info-block,
  .comment-card { padding: 14px; }

  .tap-steps { gap: 18px; }
  .step { gap: 12px; }
  .step-num {
    width: 30px;
    height: 30px;
    font-size: .8rem;
  }
}

@media (max-width: 480px) {
  .section { padding: 30px 0; }
  .container { padding: 0 12px; }
  .logo-text { display: none; }
  .hero { padding-top: 64px; }

  .section-sub {
    font-size: .88rem;
    margin-bottom: 22px;
  }
  .hero-content { padding-bottom: 20px; }
  .hero-eyebrow {
    padding-inline: 12px;
    font-size: .72rem;
  }
  .card-load-form { padding: 14px; }
  .tab-panel { padding: 12px; }

  .tab {
    flex-basis: 100%;
    min-width: 0;
    font-size: .8rem;
  }

  .gift-card-preview-card {
    min-height: 254px;
    border-radius: 22px;
    padding: 16px 14px 14px;
  }

  .gift-card-logo {
    top: 12px;
    right: 4px;
    width: 104px;
    height: 104px;
    opacity: .34;
  }

  .gift-card-kicker,
  .gift-card-to,
  .gift-card-message,
  .gift-card-wallet {
    max-width: calc(100% - 70px);
  }

  .gift-card-amount {
    max-width: calc(100% - 58px);
    font-size: clamp(1.45rem, 7.6vw, 1.95rem);
  }

  .nav-inner {
    height: 52px;
    padding: 0 12px;
  }
  .hamburger {
    width: 40px;
    height: 40px;
    padding: 0;
    gap: 0;
  }
  .nav-links.open {
    top: calc(100% + 8px);
    padding: 12px;
    gap: 12px;
  }
}

@media (max-width: 480px) and (orientation: portrait) {
  .hero { padding-top: 54px; }
  .hero-content { padding-bottom: 10px; }
  .hero-copy { margin-bottom: 14px; }
  .hero-logo-wrap { margin-bottom: 10px; }
  .hero-logo {
    width: 50px;
    height: 50px;
  }
  .hero-eyebrow {
    margin-bottom: 10px;
    padding: 5px 10px;
    font-size: .68rem;
    line-height: 1.35;
  }
  .hero-brand-label {
    padding: 7px 15px;
    font-size: .9rem;
    letter-spacing: .11em;
    margin-bottom: 7px;
  }
  .hero-title {
    font-size: clamp(1.05rem, 4.9vw, 1.28rem);
    line-height: 1.02;
    margin-bottom: 10px;
  }
  .hero-sub {
    font-size: .82rem;
    line-height: 1.42;
  }
  .hero-highlights {
    display: none;
  }
  .hero-cta {
    gap: 8px;
    max-width: 240px;
    margin-bottom: 12px;
  }
  .hero-install-status {
    font-size: .78rem;
  }
  .btn-lg {
    padding: 7px 12px;
    font-size: .78rem;
  }
}
