/* footer info modal (Privacy / Terms / Contact) */
.foot-lnk { display: block; background: none; border: none; padding: 0; margin: 0 0 10px; font: inherit;
  color: var(--muted); cursor: pointer; text-align: left; transition: color .15s; }
.foot-lnk:hover { color: var(--text); }
.foot-links .foot-lnk { display: inline; margin: 0; }
.info-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(0,0,0,.7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.info-modal[hidden] { display: none; }
.info-modal-card { position: relative; width: 100%; max-width: 560px; max-height: 84vh; overflow-y: auto;
  background: #16181c; border: 1px solid #2f3336; border-radius: 18px; padding: 28px 26px;
  box-shadow: 0 30px 80px rgba(0,0,0,.7); animation: modalIn .22s cubic-bezier(.2,.7,.3,1); }
.info-modal-x { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%;
  background: #1c1f24; border: 1px solid #2f3336; color: #71767b; font-size: 13px; cursor: pointer; }
.info-modal-x:hover { color: #e7e9ea; }
.info-modal-card h3 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 14px; color: #e7e9ea; }
.info-modal-body { color: #a9b0b6; font-size: 14.5px; line-height: 1.65; }
.info-modal-body p { margin: 0 0 12px; }
.info-modal-body h4 { color: #e7e9ea; font-size: 14px; margin: 16px 0 6px; }
.info-modal-body a { color: #1d9bf0; }
.info-modal-body ul { margin: 0 0 12px; padding-left: 18px; }
.info-modal-body li { margin-bottom: 6px; }

/* ============================================================
   XMoney - "Musk Index" investing landing.
   X (Twitter) dark DNA: true black, X blue accent, Chirp/system
   sans, mono for numbers, pill buttons, 1px #2f3336 hairlines.
   Premium fintech-terminal execution: one deliberate blue glow,
   inline-SVG sparklines, tabular-mono prices, honest pre-IPO.
   ============================================================ */

:root {
  --bg: #000;
  --bg-elev: #16181c;          /* cards */
  --bg-elev2: #1c1f23;         /* nested / hover */
  --bg-hover: rgba(231,233,234,.1);
  --bg-hover-blue: rgba(29,155,240,.1);
  --border: #2f3336;           /* hairline dividers */
  --border-hover: #3a3f44;
  --border-input: #333639;
  --text: #e7e9ea;
  --muted: #71767b;
  --dim: #536471;              /* pre-IPO / not-trading lines */
  --blue: #1d9bf0;             /* X accent */
  --blue-hover: #1a8cd8;
  --white: #eff3f4;            /* X primary button */
  --white-hover: #d7dbdc;
  --red: #f4212e;              /* destructive / down */
  --green: #00ba7c;            /* positive / live */

  --font: "TwitterChirp", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, monospace;

  --maxw: 1160px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 15px; line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.serif { font-family: var(--font); } /* legacy hook - no serif in X */

.eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.eyebrow .num { color: var(--blue); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- X pill buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: 15px;
  height: 46px; padding: 0 26px; border-radius: 9999px;
  border: 1px solid var(--white); background: var(--white); color: #0f1419;
  cursor: pointer; transition: background .2s, border-color .2s, box-shadow .2s, opacity .2s; white-space: nowrap;
}
.btn:hover { background: var(--white-hover); border-color: var(--white-hover); }
.btn--commit { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 6px 20px rgba(29,155,240,.28); }
.btn--commit:hover { background: var(--blue-hover); border-color: var(--blue-hover); box-shadow: 0 8px 26px rgba(29,155,240,.4); }
.btn--commit:disabled { opacity: .5; cursor: not-allowed; background: var(--blue); border-color: var(--blue); box-shadow: none; }
.btn--ghost { background: transparent; border-color: var(--border); color: var(--text); box-shadow: none; }
.btn--ghost:hover { background: var(--bg-hover-blue); border-color: var(--border-hover); }
.btn--danger { background: transparent; border-color: var(--red); color: var(--red); }
.btn--danger:hover { background: rgba(244,33,46,.1); }

/* ============================================================
   LANDING
   ============================================================ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.accent { font-style: normal; color: var(--blue); }

/* header */
.site-head {
  position: sticky; top: 0; z-index: 30;
  background: rgba(0,0,0,.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brandmark { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-weight: 800; font-size: 21px; letter-spacing: -.01em; }
.brandmark .x-logo { width: 22px; height: 22px; fill: currentColor; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav .navlink { font-size: 14px; font-weight: 600; color: var(--muted); }
.site-nav .navlink:hover { color: var(--text); }
.site-nav .btn { height: 38px; padding: 0 18px; font-size: 14px; }
@media (max-width: 720px) { .site-nav .navlink { display: none; } }

/* ---- ticker tape ---- */
.tapewrap { border-bottom: 1px solid var(--border); background: #050506; overflow: hidden; }
.foot-tape { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #050506; overflow: hidden; }
.tape { display: flex; width: max-content; animation: tapeMove 34s linear infinite; }
.foot-tape .tape { animation-duration: 42s; }
.tape:hover { animation-play-state: paused; }
.tape-run { display: flex; flex: none; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 30px; font-family: var(--font-mono); font-size: 14px; font-weight: 600;
  letter-spacing: .04em; color: var(--text); white-space: nowrap;
  border-right: 1px solid var(--border);
}
.chip em { font-style: normal; font-weight: 700; }
.chip em.up { color: var(--green); }
.chip em.pre { color: var(--blue); }
.chip em.exc { color: var(--muted); }
@keyframes tapeMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- hero ---- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(32px, 5vw, 68px); align-items: center; }
.hero h1 {
  font-family: var(--font); font-weight: 800;
  font-size: clamp(42px, 6vw, 68px); line-height: 1.02; letter-spacing: -.03em;
  margin: 18px 0 20px; text-wrap: balance; color: var(--text);
}
.hero .sub { max-width: 46ch; font-size: 17px; line-height: 1.55; color: var(--muted); margin: 0 0 30px; }
.hero .sub b { color: var(--text); font-weight: 700; }
.hero .actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.trust-strip {
  display: flex; gap: 10px 20px; flex-wrap: wrap; margin-top: 28px; padding-top: 18px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .03em; color: var(--muted); text-transform: uppercase;
}
.trust-strip span { display: inline-flex; align-items: center; }
.trust-strip span::before { content: "✓"; color: var(--green); margin-right: 7px; font-weight: 700; }

/* ---- Musk Index terminal ---- */
.terminal { position: relative; }
.term-glow {
  position: absolute; inset: -18% -12% -12% -12%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 62% 38%, rgba(29,155,240,.16), transparent 68%);
}
.term-card {
  position: relative; z-index: 1;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 18px;
  padding: 22px 24px 18px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.term-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.term-title { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-weight: 600; }
.term-livetag { color: var(--green); font-weight: 700; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(0,186,124,.5); animation: livePulse 2.2s ease-out infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(0,186,124,.5); } 70% { box-shadow: 0 0 0 7px rgba(0,186,124,0); } 100% { box-shadow: 0 0 0 0 rgba(0,186,124,0); } }

.term-price { display: flex; flex-direction: column; margin: 16px 0 4px; }
.tp-eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.tp-big { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; font-size: clamp(30px, 4vw, 42px); letter-spacing: -.02em; color: var(--text); line-height: 1.1; margin-top: 2px; }
.tp-chg { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600; margin-top: 4px; }
.tp-chg.up { color: var(--green); }
.tp-chg.down { color: var(--red); }

.hero-chart { width: 100%; height: auto; display: block; margin: 6px 0 10px; overflow: visible; }
.pulse-ring { transform-box: fill-box; transform-origin: center; animation: pulseRing 2.2s ease-out infinite; }
@keyframes pulseRing { 0% { r: 4; opacity: .7; } 80% { r: 12; opacity: 0; } 100% { r: 12; opacity: 0; } }

.term-watch { border-top: 1px solid var(--border); }
.tw-row {
  display: grid; grid-template-columns: 1fr 84px auto; gap: 12px; align-items: center;
  padding: 11px 0; border-bottom: 1px solid var(--border);
}
.tw-row:last-child { border-bottom: none; }
.tw-tk { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--text); }
.tw-pill { font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: .05em; padding: 2px 7px; border-radius: 9999px; }
.tw-pill.pre { color: var(--blue); border: 1px solid rgba(29,155,240,.5); }
.tw-pill.exc { color: var(--muted); border: 1px solid var(--border); }
.tw-spark svg { width: 72px; height: 24px; display: block; }
.tw-val { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 13px; color: var(--text); text-align: right; }

/* ---- sections ---- */
.section { padding: clamp(52px, 7vw, 96px) 0; border-top: 1px solid var(--border); }
.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 40px; }
.section-head .n { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--blue); }
.section-head h2 { font-family: var(--font); font-weight: 800; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.08; letter-spacing: -.025em; margin: 0; }
.section-head .lede { margin-left: auto; max-width: 42ch; color: var(--muted); font-size: 15px; line-height: 1.5; }
@media (max-width: 820px) { .section-head { flex-direction: column; gap: 10px; } .section-head .lede { margin-left: 0; } }

/* ---- companies showcase ---- */
.stock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stock-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 16px;
  padding: 20px; transition: border-color .18s, box-shadow .18s, transform .18s;
}
.stock-card:hover { border-color: rgba(29,155,240,.4); box-shadow: inset 0 0 0 1px rgba(29,155,240,.25), 0 10px 34px rgba(0,0,0,.55); transform: translateY(-2px); }
.stock-card.featured { grid-column: span 2; border-color: var(--blue); box-shadow: inset 0 0 0 1px rgba(29,155,240,.35); }
.stock-card.featured .sc-mid { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.hero-tag {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .08em;
  color: #fff; background: var(--blue); padding: 3px 9px; border-radius: 9999px;
}
.stock-card.featured .sc-top { padding-right: 84px; }

.sc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sc-id { display: flex; align-items: center; gap: 11px; min-width: 0; }
.sc-logo {
  flex: none; width: 38px; height: 38px; border-radius: 10px; background: #000; border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 14px; color: var(--text); letter-spacing: .02em;
}
.sc-logo--x svg { width: 18px; height: 18px; fill: var(--text); }
.sc-name { display: flex; flex-direction: column; font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.2; min-width: 0; }
.sc-tk { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .04em; margin-top: 2px; }

.pill { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .05em; padding: 4px 10px; border-radius: 9999px; white-space: nowrap; flex: none; }
.pill.pub { color: var(--green); background: rgba(0,186,124,.12); }
.pill.pre { color: var(--blue); background: rgba(29,155,240,.1); border: 1px solid rgba(29,155,240,.5); }
.pill.exc { color: var(--muted); background: transparent; border: 1px solid var(--border); }

.sc-mid { margin-bottom: 14px; }
.sc-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.sc-val { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 24px; font-weight: 600; color: var(--text); letter-spacing: -.01em; }
.stock-card.featured .sc-val { font-size: clamp(28px, 3vw, 36px); }
.sc-chg { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600; }
.sc-chg.up { color: var(--green); }
.sc-chg.down { color: var(--red); }
.sc-chg.muted { color: var(--muted); font-weight: 500; }
.spark { width: 100%; height: auto; display: block; }
.stock-card.featured .spark { max-width: 320px; margin-left: auto; }

.sc-blurb { font-size: 14px; color: var(--muted); line-height: 1.5; margin: 0 0 18px; flex: 1; }
.sc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; flex-wrap: wrap; }
.sc-meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.sc-meta b { color: var(--text); font-weight: 600; }
.sc-cta { height: 38px; padding: 0 20px; font-size: 14px; }

@media (max-width: 980px) {
  .stock-grid { grid-template-columns: repeat(2, 1fr); }
  .stock-card.featured { grid-column: span 2; }
  .stock-card.featured .sc-mid { grid-template-columns: 1fr; }
  .stock-card.featured .spark { margin-left: 0; max-width: none; }
}
@media (max-width: 620px) {
  .stock-grid { grid-template-columns: 1fr; }
  .stock-card.featured { grid-column: span 1; }
}

/* ---- 8% yield ---- */
.yield-block { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.yield-ring-wrap { display: flex; justify-content: center; }
.yield-ring {
  width: 220px; height: 220px; border-radius: 50%;
  background: conic-gradient(from -90deg, var(--blue), #4bb3f5 62%, #0f5b8f 82%, var(--border) 82%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 60px rgba(29,155,240,.18);
}
.yield-ring-inner {
  width: 168px; height: 168px; border-radius: 50%; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 1px solid var(--border);
}
.yr-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 52px; font-weight: 700; color: var(--text); letter-spacing: -.03em; line-height: 1; }
.yr-pct { color: var(--blue); }
.yr-lab { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

.cmp { margin-bottom: 24px; }
.cmp-row { display: grid; grid-template-columns: 160px 1fr 56px; gap: 14px; align-items: center; margin-bottom: 14px; }
.cmp-lab { font-size: 14px; color: var(--muted); }
.cmp-bar { height: 12px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 9999px; overflow: hidden; }
.cmp-fill { display: block; height: 100%; border-radius: 9999px; }
.cmp-fill.blue { background: linear-gradient(90deg, #0f5b8f, var(--blue)); }
.cmp-fill.grey { background: var(--dim); }
.cmp-val { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 600; color: var(--text); text-align: right; }
.yield-points { list-style: none; margin: 0; padding: 0; }
.yield-points li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: var(--muted); line-height: 1.5; padding: 7px 0; }
.yp-tick { color: var(--green); flex: none; font-weight: 700; }
@media (max-width: 720px) {
  .yield-block { grid-template-columns: 1fr; justify-items: center; text-align: left; }
  .cmp-row { grid-template-columns: 120px 1fr 48px; }
}

/* ---- how it works ---- */
.step-flow { display: grid; grid-template-columns: 1fr 36px 1fr 36px 1fr; align-items: stretch; }
.step-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 16px; padding: 26px 22px; }
.step-num { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--blue); margin-bottom: 14px; }
.step-title { font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 8px; letter-spacing: -.01em; }
.step-desc { font-size: 14px; color: var(--muted); line-height: 1.5; }
.step-arrow { font-size: 20px; color: var(--muted); align-self: center; text-align: center; }
@media (max-width: 760px) { .step-flow { grid-template-columns: 1fr; gap: 12px; } .step-arrow { display: none; } }

/* ---- stats band ---- */
.stats-band { background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: clamp(30px, 4vw, 54px) 0; }
.stats-band .wrap { display: flex; align-items: center; justify-content: space-around; gap: 24px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.s-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: clamp(30px, 4vw, 46px); font-weight: 700; color: var(--text); letter-spacing: -.03em; line-height: 1.1; }
.s-lab { font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.stat-div { width: 1px; height: 48px; background: var(--border); flex: none; }
@media (max-width: 640px) { .stat-div { display: none; } .stat-item { min-width: 42%; } }

/* ---- security truth ---- */
.truth { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.truth .col + .col { border-left: 1px solid var(--border); }
.truth .col-head { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 16px 22px; border-bottom: 1px solid var(--border); }
.truth .col--you .col-head { color: var(--green); }
.truth .col--we .col-head { color: var(--blue); }
.truth .row { display: flex; align-items: center; gap: 12px; padding: 15px 22px; font-size: 14px; color: var(--text); border-bottom: 1px solid var(--border); }
.truth .row:last-child { border-bottom: none; }
.truth .mark { flex: none; width: 16px; text-align: center; font-weight: 700; }
.truth .col--you .mark { color: var(--green); }
.truth .mark--blue { color: var(--blue); }
@media (max-width: 640px) { .truth { grid-template-columns: 1fr; } .truth .col + .col { border-left: none; border-top: 1px solid var(--border); } }

/* ---- faq ---- */
.faq dl { margin: 0; border-top: 1px solid var(--border); }
.faq .qa { padding: 24px 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 44px 1fr; gap: 18px; }
.faq dt { font-family: var(--font-mono); color: var(--blue); font-size: 14px; font-weight: 700; }
.faq .q { font-family: var(--font); font-size: 19px; font-weight: 700; margin: 0 0 8px; letter-spacing: -.01em; color: var(--text); }
.faq dd { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 64ch; }
@media (max-width: 640px) { .faq .qa { grid-template-columns: 1fr; gap: 6px; } }

/* ---- CTA band ---- */
.cta-band { position: relative; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: clamp(56px, 8vw, 104px) 0; text-align: center; overflow: hidden; box-shadow: inset 0 1px 0 rgba(29,155,240,.25); }
.cta-glow { position: absolute; left: 50%; bottom: -40%; width: 120%; height: 120%; transform: translateX(-50%); pointer-events: none; background: radial-gradient(ellipse at 50% 100%, rgba(29,155,240,.18), transparent 60%); }
.cta-band .wrap { position: relative; z-index: 1; }
.cta-eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; display: inline-flex; align-items: center; gap: 8px; }
.cta-eyebrow .caret { color: var(--blue); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cta-band h2 { font-family: var(--font); font-weight: 800; font-size: clamp(30px, 5vw, 54px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 16px; color: var(--text); text-wrap: balance; }
.cta-sub { color: var(--muted); font-size: 17px; margin: 0 auto 30px; max-width: 52ch; line-height: 1.5; }
.cta-band .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-trust { font-family: var(--font-mono); font-size: 12px; letter-spacing: .03em; color: var(--muted); margin-top: 28px; }

/* ---- footer ---- */
.site-foot { border-top: 1px solid var(--border); background: var(--bg); }
.site-foot .wrap { padding: 40px var(--gutter) 32px; }
.foot-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; }
.foot-brand .brandmark { font-size: 20px; }
.foot-brand .brandmark .x-logo { width: 20px; height: 20px; }
.foot-tag { color: var(--text); font-size: 15px; margin: 12px 0 2px; }
.foot-dom { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin: 0; }
.market-chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .05em; color: var(--muted); border: 1px solid var(--border); border-radius: 9999px; padding: 7px 14px; }

.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 32px; padding: 28px 0; border-top: 1px solid var(--border); }
.foot-col h4 { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.foot-col a { display: block; font-size: 14px; color: var(--muted); padding: 5px 0; }
.foot-col a:hover { color: var(--text); }
@media (max-width: 680px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }

.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 20px 0; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.foot-links { display: inline-flex; gap: 18px; }
.foot-links a:hover { color: var(--text); }
.foot-risk { font-size: 11px; line-height: 1.6; color: var(--dim); margin: 4px 0 0; max-width: 92ch; }

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .terminal { margin-top: 8px; max-width: 480px; }
}

/* ============================================================
   AUTH APP
   ============================================================ */
body.on-dark { background: var(--bg); color: var(--text); min-height: 100vh; }
body.on-dark::before { display: none; } /* no datum grid */

.app-head {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(16px, 5vw, 32px); border-bottom: 1px solid var(--border);
  font-size: 13px; color: var(--muted);
}
.app-head .brandmark { color: var(--text); font-size: 19px; }
.app-head .brandmark .x-logo { width: 20px; height: 20px; }
.app-head a:hover .x-logo { fill: var(--text); }
.app-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.app-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }

.app-stage { position: relative; z-index: 2; display: flex; justify-content: center; padding: clamp(24px, 6vw, 64px) 20px 80px; }
.panel { width: 100%; max-width: 460px; margin: 0 auto; background: var(--bg); border: 1px solid var(--border); border-radius: 20px; position: relative; padding: clamp(26px, 4vw, 38px);
  box-shadow: 0 24px 70px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.045); }
.panel::before, .panel::after { display: none; } /* no corner brackets */
.panel-tag { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; display: flex; justify-content: space-between; }
.panel h1 { font-family: var(--font); font-weight: 800; font-size: clamp(24px, 3.2vw, 31px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 10px; color: var(--text); }
.panel h1:focus { outline: none; }
.panel .panel-sub { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 0 0 24px; }

.screen { display: none; }
.screen.active { display: block; }

/* X-style bordered inputs */
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.control {
  width: 100%; background: transparent; border: 1px solid var(--border-input); border-radius: 8px;
  color: var(--text); font-family: var(--font); font-size: 16px; padding: 12px 14px;
  transition: border-color .15s;
}
.control::placeholder { color: var(--muted); }
.control:focus { outline: none; border-color: var(--blue); }
textarea.control { resize: vertical; min-height: 92px; line-height: 1.6; font-family: var(--font-mono); font-size: 15px; }
.field .hint { margin-top: 8px; font-size: 12px; color: var(--muted); }
.field.invalid .control { border-color: var(--red); }
.field .err { color: var(--red); font-size: 13px; margin-top: 7px; display: none; }
.field.invalid .err { display: block; }

/* word-count / checksum meter */
.meter { display: flex; align-items: center; justify-content: space-between; margin: -6px 0 20px; font-size: 13px; color: var(--muted); }
.meter .count { font-variant-numeric: tabular-nums; }
.meter .valid { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.meter .valid.ok { color: var(--green); }
.meter .valid .tick { visibility: hidden; }
.meter .valid.ok .tick { visibility: visible; }

/* segmented 12/24 */
.seg { display: flex; gap: 4px; padding: 4px; background: var(--bg-elev2); border: 1px solid var(--border); border-radius: 13px; margin-bottom: 22px; }
.seg button { flex: 1; background: transparent; color: var(--muted); border: none; padding: 11px 0; font-size: 14px; font-weight: 700; cursor: pointer; border-radius: 9px; transition: background .15s, color .15s; }
.seg button:hover { color: var(--text); }
.seg button.on { color: #0a0a0a; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); }

/* seed reveal grid + redaction */
.seed-wrap { position: relative; margin-bottom: 8px; }
.seed-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.seed-grid.cols3 { grid-template-columns: repeat(3, 1fr); }
.seed-cell { display: flex; align-items: baseline; gap: 8px; padding: 11px 12px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 8px; font-family: var(--font-mono); font-size: 15px; color: var(--text); min-width: 0; }
.seed-cell .idx { color: var(--muted); font-size: 12px; min-width: 16px; font-variant-numeric: tabular-nums; }
.seed-cell > span:last-child { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .seed-grid.cols3 { grid-template-columns: repeat(2, 1fr); } }
.redaction {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; color: var(--text);
  cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 700; transition: opacity .18s;
  /* mobile: holding must not scroll the page, select text, or pop the OS callout */
  touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  min-height: 132px;
}
.redaction:active { background: var(--bg-hover); }
.redaction .hint2 { color: var(--muted); font-size: 12px; font-weight: 400; }
.seed-wrap.revealed .redaction { opacity: 0; pointer-events: none; }

.reveal-address { margin: 18px 0 22px; padding: 13px 16px; border: 1px solid var(--border); border-radius: 12px; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.reveal-address .k { color: var(--muted); }
.reveal-address .v { color: var(--text); font-family: var(--font-mono); word-break: break-all; }
.reveal-address .ok { color: var(--green); }

.ack { display: flex; gap: 11px; align-items: flex-start; margin: 4px 0 22px; cursor: pointer; }
.ack input { margin: 2px 0 0; accent-color: var(--blue); width: 18px; height: 18px; flex: none; }
.ack span { font-size: 14px; color: var(--muted); line-height: 1.5; }

.actions-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.actions-row .btn { flex: 1; }
.link-muted { background: none; border: none; cursor: pointer; padding: 0; font-size: 14px; font-weight: 500; color: var(--blue); }
.link-muted:hover { text-decoration: underline; }

.reassure { display: flex; align-items: center; gap: 9px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.reassure svg { flex: none; }

/* recover stepper */
.stepper { display: flex; gap: 8px; margin-bottom: 24px; }
.stepper .step { flex: 1; padding: 10px 0; text-align: center; border: 1px solid var(--border); border-radius: 9999px; font-size: 12px; font-weight: 600; color: var(--muted); }
.stepper .step.on { color: #fff; border-color: var(--blue); background: var(--blue); }
.stepper .step .n { display: block; font-size: 13px; }

/* notice */
.notice { border: 1px solid var(--border); border-left: 3px solid var(--red); border-radius: 8px; padding: 13px 16px; margin: 0 0 22px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.notice.amber { border-left-color: var(--blue); }
.notice b { color: var(--text); font-weight: 700; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--blue); border: none; color: #fff; font-size: 14px; font-weight: 500; padding: 12px 20px; border-radius: 8px; z-index: 100; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; max-width: 90vw; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   COMPANY / WATCHLIST LOGOS
   ============================================================ */
.sc-logo svg { width: 22px; height: 22px; }
.sc-logo.tesla { color: #e82127; }
.sc-logo--x svg { width: 18px; height: 18px; fill: var(--text); }
.tw-logo { display: inline-flex; align-items: center; color: var(--muted); flex: none; }
.tw-logo svg { width: 15px; height: 15px; }

/* ============================================================
   AUTH - X-style gateway + external-wallet connect
   ============================================================ */
.gate { width: 100%; max-width: 1120px; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.gate-panel { order: 1; width: 100%; max-width: 460px; }        /* content LEFT */
.gate-brand { order: 2; flex: 1 1 0%; display: flex; justify-content: flex-end; align-items: center; overflow: hidden; min-height: 45vh; } /* big X RIGHT - matches X login */
.gate-x { width: 100%; max-width: 480px; height: auto; }
.gate-eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.gate-panel h1 { font-family: var(--font); font-weight: 800; font-size: clamp(36px, 5vw, 60px); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 16px; color: var(--text); }
.gate-sub { color: var(--muted); font-size: 16px; line-height: 1.5; margin: 0 0 26px; }
.gate-group { margin-bottom: 18px; }
.gate-label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.gate-btn { width: 100%; margin-bottom: 10px; height: 48px; }
.gate-btn:last-child { margin-bottom: 0; }
.gb-ic { width: 19px; height: 19px; flex: none; }

/* white social-style wallet button (X-login look) */
.btn--wallet { background: var(--white); border-color: var(--white); color: #0f1419; box-shadow: none; }
.btn--wallet:hover { background: var(--white-hover); border-color: var(--white-hover); }
.wl-ic { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.wl-ic svg { width: 20px; height: 20px; }

.gate-or { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.gate-or::before, .gate-or::after { content: ""; height: 1px; background: var(--border); flex: 1; }
.gate-foot { margin-top: 18px; }
.gate-terms { margin-top: 18px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.gate-terms a { color: var(--blue); }
.gate-terms a:hover { text-decoration: underline; }

@media (max-width: 820px) {
  .gate { grid-template-columns: 1fr; max-width: 460px; gap: 8px; }
  .gate-brand { display: none; }
}

/* connect: external-wallet option list */
.wallet-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.wallet-opt {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 16px; color: var(--text); cursor: pointer; font: inherit;
  transition: border-color .16s, background .16s;
}
.wallet-opt:hover { border-color: rgba(29,155,240,.4); background: var(--bg-elev2); }
.wallet-opt.disabled { opacity: .55; cursor: not-allowed; }
.wl-ic--tile { width: 40px; height: 40px; border-radius: 11px; background: #000; border: 1px solid var(--border); }
.wl-name { display: flex; flex-direction: column; font-size: 15px; font-weight: 700; color: var(--text); flex: 1; min-width: 0; }
.wl-desc { font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.wl-arrow { color: var(--muted); font-size: 16px; flex: none; }
.wl-soon { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .06em; color: var(--muted); border: 1px solid var(--border); border-radius: 9999px; padding: 3px 8px; flex: none; }
.connected { margin-top: 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ============================================================
   DASHBOARD
   ============================================================ */
#screen-dashboard { width: 100%; }
.dash { width: 100%; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }

/* balance card */
.dash-card {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 20px;
  padding: 28px 24px 20px; box-shadow: 0 12px 40px rgba(0,0,0,.45);
}
.dash-top { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.db-label { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eye { background: none; border: none; cursor: pointer; padding: 4px; color: var(--muted); display: inline-flex; border-radius: 6px; transition: color .15s; }
.eye:hover { color: var(--text); }
.eye svg { width: 15px; height: 15px; }
.eye .eye-off { display: none; }
.eye[aria-pressed="true"] .eye-open { display: none; }
.eye[aria-pressed="true"] .eye-off { display: inline-flex; }
.db-value { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: clamp(36px, 7vw, 52px); font-weight: 700; letter-spacing: -.03em; color: var(--text); line-height: 1.05; margin-top: 4px; }
.db-change { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); margin-top: 2px; }
.db-change.up { color: var(--green); }
.db-change.dn { color: var(--red); }

/* address pill */
.dash-addr {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
  background: none; border: 1px solid var(--border); border-radius: 9999px;
  padding: 7px 14px; color: var(--muted); font-family: var(--font-mono); font-size: 13px;
  cursor: pointer; transition: border-color .15s, color .15s;
}
.dash-addr:hover { border-color: var(--border-hover); color: var(--text); }
.da-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; box-shadow: 0 0 0 0 rgba(0,186,124,.5); animation: livePulse 2.2s ease-out infinite; }
.dash-addr svg { width: 13px; height: 13px; }

/* Buy / Receive / Send quick actions */
.dash-actions { display: flex; justify-content: center; gap: 20px; padding-top: 18px; }
.dash-act {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: none; border: none; cursor: pointer; color: var(--text); font-size: 13px; font-weight: 600; font-family: var(--font);
  min-width: 64px;
}
.dact-ic {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-elev2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
}
.dact-ic svg { width: 18px; height: 18px; }
.dash-act:hover .dact-ic { background: var(--bg-hover-blue); border-color: rgba(29,155,240,.4); }

/* asset list */
.dash-assets { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 20px; padding: 4px 0; }
.da-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px 10px; font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.asset-empty { padding: 26px 20px; text-align: center; color: var(--muted); font-size: 14px; }
.asset-row {
  display: grid; grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center; gap: 12px; padding: 12px 18px;
  border-top: 1px solid var(--border);
  transition: background .12s;
}
.asset-row:first-child { border-top: none; }
.asset-row:hover { background: var(--bg-hover); }
.ar-logo { width: 38px; height: 38px; flex: none; display: inline-flex; }
.ar-logo .coin-ic { display: block; }
.ar-id { display: flex; flex-direction: column; min-width: 0; }
.ar-sym { font-weight: 700; color: var(--text); font-size: 15px; line-height: 1.25; }
.ar-name { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-val { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.ar-usd { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text); font-weight: 700; font-size: 15px; line-height: 1.25; }
.ar-sub { display: inline-flex; align-items: baseline; gap: 8px; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 12px; }
.ar-amt { color: var(--muted); }
.ar-chg { font-weight: 600; }
.ar-chg.up { color: var(--green); }
.ar-chg.dn { color: var(--red); }

/* dash footer */
.dash-foot { text-align: center; padding: 4px 0 8px; }

/* ============================================================
   RECEIVE screen - address box
   ============================================================ */
.addr-box {
  display: flex; flex-direction: column; gap: 6px; width: 100%;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 20px; cursor: pointer; text-align: left;
  transition: border-color .16s;
}
.addr-box:hover { border-color: rgba(29,155,240,.4); }
.ab-label { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ab-value { font-family: var(--font-mono); font-size: 14px; color: var(--text); word-break: break-all; line-height: 1.5; }
.ab-copy { font-size: 12px; color: var(--blue); margin-top: 4px; }


/* ---- portfolio sparkline (in the balance card) ---- */
.dash-spark { width: 100%; height: auto; display: block; margin: 2px 0 8px; overflow: visible; }
.dash-spark .pulse-ring { transform-box: fill-box; transform-origin: center; animation: pulseRing 2.2s ease-out infinite; }

/* ---- 8% idle-cash yield strip ---- */
.yield-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap;
  background: linear-gradient(180deg, rgba(29,155,240,.09), rgba(29,155,240,.02));
  border: 1px solid rgba(29,155,240,.35); border-radius: 20px; padding: 14px 18px;
  width: 100%; text-align: left; font: inherit; cursor: pointer; transition: border-color .15s, background .15s;
}
.yield-strip:hover { border-color: rgba(29,155,240,.6); background: linear-gradient(180deg, rgba(29,155,240,.14), rgba(29,155,240,.03)); }
.ys-left { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text); }
.ys-right { color: var(--blue); }
.coin-ic { display: block; border-radius: 50%; }
.ys-left b { color: var(--blue); font-weight: 800; }
.ys-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; box-shadow: 0 0 0 0 rgba(0,186,124,.5); animation: livePulse 2.2s ease-out infinite; }
.ys-right { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* ---- Musk Index (reserved) panel ---- */
.da-tag { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .06em; color: var(--blue); border: 1px solid rgba(29,155,240,.5); border-radius: 9999px; padding: 3px 9px; }
.mi-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--border); }
.mi-row:first-child { border-top: none; }
button.mi-row { width: 100%; background: none; border-left: none; border-right: none; border-bottom: none; text-align: left; cursor: pointer; font: inherit; color: inherit; transition: background .12s; }
button.mi-row:hover { background: var(--bg-hover); }
.mi-val em.notowned { color: var(--muted); font-weight: 500; }
.mi-count { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .03em; }
.mi-logo { width: 38px; height: 38px; border-radius: 50%; background: #000; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); flex: none; }
.mi-logo svg { width: 18px; height: 18px; }
.mi-logo.tesla { color: #e82127; }
.mi-id { display: flex; flex-direction: column; min-width: 0; }
.mi-name { font-weight: 700; color: var(--text); font-size: 15px; line-height: 1.25; }
.mi-tk { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .03em; }
.mi-val { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 14px; color: var(--text); font-weight: 600; text-align: right; display: inline-flex; align-items: center; gap: 8px; }
.mi-val em { font-style: normal; font-weight: 600; font-size: 12px; }
.mi-val em.up { color: var(--green); }
.mi-pill { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .05em; padding: 4px 10px; border-radius: 9999px; }
.mi-pill.pre { color: var(--blue); border: 1px solid rgba(29,155,240,.5); }
.mi-cta { display: block; width: 100%; text-align: center; padding: 14px; font-size: 13px; font-weight: 600; color: var(--blue); background: none; border: none; border-top: 1px solid var(--border); cursor: pointer; transition: background .15s; }
.mi-cta:hover { background: var(--bg-hover-blue); }

/* ============================================================
   APP TOP NAV - quick actions + account dropdown
   ============================================================ */
.app-head { position: sticky; top: 0; z-index: 40; background: rgba(0,0,0,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.app-head .app-status { margin-left: auto; }
.app-head .nav-actions { display: none; align-items: center; gap: 8px; margin-left: auto; }
.app-head.signed-in .app-status { display: none; }
.app-head.signed-in .nav-actions { display: flex; }
.nav-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 9999px;
  background: transparent; border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer;
  transition: background .15s, border-color .15s; }
.nav-btn:hover { background: var(--bg-hover-blue); border-color: rgba(29,155,240,.5); }
.nav-btn svg { width: 16px; height: 16px; }
.nav-account-wrap { position: relative; }
.nav-account { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 9999px;
  background: var(--bg-elev); border: 1px solid var(--border); color: var(--text); font-family: var(--font-mono); font-size: 13px; cursor: pointer;
  transition: border-color .15s; }
.nav-account:hover { border-color: var(--border-hover); }
.na-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
.na-chev { width: 14px; height: 14px; color: var(--muted); }
.nav-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 214px; background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 14px; padding: 6px; box-shadow: 0 16px 44px rgba(0,0,0,.6); opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s, transform .16s, visibility .16s; z-index: 50; }
.nav-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 12px; border-radius: 9px;
  background: none; border: none; color: var(--text); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; text-align: left; text-decoration: none; }
.nav-menu-item:hover { background: var(--bg-hover); }
.nav-menu-item svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.nav-menu-item.danger, .nav-menu-item.danger svg { color: var(--red); }
@media (max-width: 560px) { .app-head .nav-btn { display: none; } }

/* ============================================================
   MODALS - receive / send / buy
   ============================================================ */
body.modal-open { overflow: hidden; }
.modal-backdrop { position: fixed; inset: 0; z-index: 60; display: none; align-items: flex-start; justify-content: center;
  padding: clamp(16px, 6vh, 72px) 16px 40px; background: rgba(0,0,0,.66);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); overflow-y: auto; }
.modal-backdrop.open { display: flex; animation: fadeIn .18s ease; }
.modal { width: 100%; max-width: 440px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 20px;
  padding: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.7); animation: modalIn .22s cubic-bezier(.2,.7,.3,1); }
.modal[hidden] { display: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.modal-head h2 { font-family: var(--font); font-weight: 800; font-size: 24px; letter-spacing: -.02em; margin: 0; color: var(--text); }
.modal-head h2:focus { outline: none; }
.modal-x { width: 34px; height: 34px; border-radius: 50%; background: var(--bg-elev2); border: 1px solid var(--border); color: var(--muted);
  font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .15s, color .15s; flex: none; }
.modal-x:hover { background: var(--bg-hover); color: var(--text); }
.modal-sub { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

/* coin selector - a clean wrapping grid (no ugly horizontal scrollbar) */
.coin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin-bottom: 18px; max-height: 232px; overflow-y: auto; }
.coin-chip { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 4px 8px;
  border-radius: 14px; background: var(--bg-elev2); border: 1px solid var(--border); color: var(--muted); cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; transition: border-color .15s, background .15s, color .15s; }
.coin-chip:hover { border-color: var(--border-hover); color: var(--text); }
.coin-chip.on { border-color: var(--blue); background: var(--bg-hover-blue); color: var(--text); box-shadow: inset 0 0 0 1px var(--blue); }
.coin-chip .coin-ic { display: block; }
.cc-sym { letter-spacing: .02em; }

/* receive card */
.rc-net { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.rc-net .coin-ic { display: block; }
.rc-beta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; background: var(--bg-elev2); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.rc-beta-tag { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--blue); border: 1px solid rgba(29,155,240,.5); border-radius: 9999px; padding: 3px 9px; }
.rc-beta p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.rc-beta b { color: var(--text); }

/* send amount row */
.amount-row { display: flex; align-items: center; gap: 8px; }
.amount-row .control { flex: 1; min-width: 0; }
.amount-unit { font-family: var(--font-mono); font-weight: 700; color: var(--muted); font-size: 14px; flex: none; }
.amount-max { background: var(--bg-elev2); border: 1px solid var(--border); border-radius: 8px; color: var(--blue); font-family: var(--font-mono); font-size: 12px; font-weight: 700; padding: 9px 12px; cursor: pointer; transition: border-color .15s; flex: none; }
.amount-max:hover { border-color: rgba(29,155,240,.5); }
.btn-block { width: 100%; margin-top: 4px; }

/* buy - beta notice */
.beta-block { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 16px 6px 10px; }
.beta-badge { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--blue); border: 1px solid rgba(29,155,240,.5); border-radius: 9999px; padding: 4px 12px; }
.beta-title { font-family: var(--font); font-weight: 800; font-size: 19px; color: var(--text); margin: 4px 0 0; }
.beta-text { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0; max-width: 40ch; }
.beta-actions { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }

/* ---- coin detail modal ---- */
.coin-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.coin-hero .coin-ic { flex: none; }
.coin-nm { font-weight: 800; font-size: 18px; color: var(--text); display: flex; align-items: baseline; gap: 8px; }
.coin-tk { font-family: var(--font-mono); font-size: 12px; color: var(--muted); font-weight: 600; }
.coin-px { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 15px; color: var(--text); margin-top: 3px; }
.coin-chg { font-size: 13px; font-weight: 600; margin-left: 4px; }
.coin-chg.up { color: var(--green); }
.coin-chg.dn { color: var(--red); }
.coin-spark { width: 100%; height: 54px; display: block; margin: 2px 0 14px; }
.coin-bal { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; background: var(--bg-elev2); border: 1px solid var(--border); border-radius: 14px; font-size: 14px; }
.coin-bal > span:first-child { color: var(--muted); }
.coin-bal .mono { color: var(--text); font-weight: 600; }
.coin-bal em { color: var(--muted); font-style: normal; font-weight: 500; }
.coin-acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.coin-act { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 14px 6px; background: var(--bg-elev2); border: 1px solid var(--border); border-radius: 14px; color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s; }
.coin-act:hover { border-color: rgba(29,155,240,.45); background: var(--bg-hover-blue); }
.coin-act .dact-ic { width: 40px; height: 40px; }
.coin-act .dact-ic svg { width: 18px; height: 18px; }
.coin-hist { margin-top: 4px; }
.ch-head { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.demo-tag { font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: .06em; color: var(--muted); border: 1px solid var(--border); border-radius: 9999px; padding: 2px 7px; }
.ch-row { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 10px 2px; border-top: 1px solid var(--border); font-size: 14px; }
.ch-ic { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-elev2); border: 1px solid var(--border); font-size: 13px; flex: none; }
.ch-ic.in { color: var(--green); }
.ch-ic.out { color: var(--red); }
.ch-ic.swap { color: var(--blue); }
.ch-t { display: flex; flex-direction: column; color: var(--text); min-width: 0; }
.ch-t em { font-style: normal; font-size: 12px; color: var(--muted); }
.ch-a { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; text-align: right; }
.ch-a.up { color: var(--green); }

/* ---- swap ---- */
.swap-lbl { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 6px 0 8px; }
.swap-flip-wrap { display: flex; justify-content: center; margin: 12px 0 2px; }
.swap-flip { width: 38px; height: 38px; border-radius: 50%; background: var(--bg-elev2); border: 1px solid var(--border); color: var(--blue); font-size: 16px; cursor: pointer; transition: border-color .15s; }
.swap-flip:hover { border-color: rgba(29,155,240,.5); }
.swap-out { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--bg-elev2); border: 1px solid var(--border); border-radius: 14px; margin-top: 6px; }
.so-label { color: var(--muted); font-size: 13px; }
.so-val { font-size: 16px; font-weight: 700; color: var(--text); }

/* compact DEX-style swap boxes */
.swap-box { background: var(--bg-elev2); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; }
.swap-box .swap-lbl { margin: 0; }
.sb-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sb-avail { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.sb-row { display: flex; align-items: center; gap: 10px; }
.sb-amount { flex: 1; min-width: 0; background: none; border: none; border-radius: 0; padding: 0; color: var(--text);
  font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 26px; font-weight: 700; line-height: 1.1; }
.sb-amount:focus { outline: none; border: none; }
.sb-amount::placeholder { color: var(--muted); }
.sb-estimate { display: flex; align-items: center; min-height: 30px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin-select { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px 7px 8px; flex: none;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 9999px; color: var(--text);
  font-weight: 700; font-size: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.coin-select:hover { border-color: var(--border-hover); background: var(--bg-hover); }
.coin-select .cs-sym { font-family: var(--font-mono); letter-spacing: .02em; }
.coin-select .cs-chev { width: 16px; height: 16px; stroke: var(--muted); fill: none; stroke-width: 2; transition: transform .15s; }
.coin-select[aria-expanded="true"] { border-color: var(--blue); }
.coin-select[aria-expanded="true"] .cs-chev { transform: rotate(180deg); }
.sb-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; min-height: 18px; }
.sb-foot .hint { margin: 0; }
.coin-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; margin-top: 12px; max-height: 210px; overflow-y: auto; overflow-x: hidden; }
.coin-picker[hidden] { display: none; }
.coin-picker .coin-chip { width: auto; }

/* ---- card & banking ---- */
.card-strip { margin-top: 12px; }
.card-strip .ys-left { display: inline-flex; align-items: center; gap: 9px; }
.cs-card-ic { width: 18px; height: 18px; color: var(--blue); }
.xcard { position: relative; overflow: hidden; border-radius: 16px; padding: 20px; margin-bottom: 18px; aspect-ratio: 1.586;
  background: linear-gradient(135deg, #23272e 0%, #0a0c0f 55%, #16181c 100%);
  border: 1px solid #363b42; box-shadow: 0 18px 40px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06);
  display: flex; flex-direction: column; color: #e7e9ea; }
.xcard-sheen { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.07) 50%, transparent 60%); pointer-events: none; }
.xcard-top { display: flex; align-items: center; justify-content: space-between; }
.xcard-brand { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.xcard-x { width: 17px; height: 17px; fill: #fff; }
.xcard-type { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .18em; color: #9aa2a9; }
.xcard-chip { width: 38px; height: 28px; margin: 16px 0 auto; border-radius: 6px;
  background: linear-gradient(135deg, #d9b25a, #b8863b); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.xcard-num { font-size: 17px; letter-spacing: .12em; margin-bottom: 14px; color: #f2f4f5; }
.xcard-bot { display: flex; align-items: flex-end; justify-content: space-between; }
.xcard-name { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: #c3c9cf; }
.xcard-visa { font-style: italic; font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: #fff; }
.card-status { display: flex; align-items: center; gap: 9px; padding: 12px 15px; border-radius: 12px; font-size: 13.5px;
  background: rgba(0,186,124,.1); border: 1px solid rgba(0,186,124,.35); color: var(--text); margin-bottom: 6px; }
.card-feats { margin-top: 16px; display: flex; flex-direction: column; }
.cf-row { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; padding: 12px 2px; border-top: 1px solid var(--border); }
.cf-row:first-child { border-top: none; }
.cf-ic { width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-hover-blue); border: 1px solid rgba(29,155,240,.3); color: var(--blue); }
.cf-ic svg { width: 19px; height: 19px; }
.cf-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cf-t b { color: var(--text); font-size: 14.5px; font-weight: 700; }
.cf-t em { font-style: normal; color: var(--muted); font-size: 13px; line-height: 1.5; }
.card-note { text-align: center; font-size: 12.5px; color: var(--muted); margin: 9px 0 0; }
.cp-price { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; margin-bottom: 6px;
  background: var(--bg-elev2); border: 1px solid var(--border); border-radius: 12px; font-size: 15px; color: var(--text); font-weight: 700; }
.cp-price b { font-size: 22px; }
.cp-line { display: flex; align-items: center; justify-content: space-between; padding: 11px 2px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--border); }
.cp-line:first-of-type { border-top: none; }
.cp-line .mono { color: var(--text); font-weight: 600; }

/* clear, tappable copy-phrase button (mobile-friendly) */
.copy-phrase-btn { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; margin: 16px 0 4px;
  min-height: 50px; padding: 12px 16px; border-radius: 13px; background: var(--bg-elev2); border: 1px solid var(--border-input);
  color: var(--text); font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s; -webkit-tap-highlight-color: transparent; }
.copy-phrase-btn:hover { border-color: var(--blue); background: var(--bg-hover-blue); }
.copy-phrase-btn:active { transform: scale(.99); }
.copy-phrase-btn svg { width: 18px; height: 18px; flex: none; }
.copy-phrase-btn.copied { border-color: var(--green); color: var(--green); }

/* glassmorphism - frosted surfaces over the blurred backdrop */
.modal { background: rgba(22,24,28,.8); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
  border-color: rgba(255,255,255,.09); box-shadow: 0 30px 80px rgba(0,0,0,.72), inset 0 1px 0 rgba(255,255,255,.06); }
.info-modal-card { background: rgba(22,24,28,.82); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
  border-color: rgba(255,255,255,.09); }
.yield-strip, .card-strip { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.xcard { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.swap-box + .swap-flip-wrap, .swap-flip-wrap { margin: 10px 0; }

/* ---- musk buy ---- */
.musk-list { display: flex; flex-direction: column; }
.musk-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 6px; border-top: 1px solid var(--border); background: none; border-left: none; border-right: none; border-bottom: none; cursor: pointer; text-align: left; transition: background .12s; }
.musk-item:first-child { border-top: none; }
.musk-item:hover { background: var(--bg-hover); }
.musk-item .mi-logo { width: 40px; height: 40px; border-radius: 50%; background: #000; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.mi-logo.mono { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.mb-hd { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 16px; flex-wrap: wrap; }
.mb-hd .mi-name { font-weight: 800; font-size: 18px; color: var(--text); }
.mpc-line { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; font-size: 14px; color: var(--muted); }
.mpc-line .mono { color: var(--text); font-weight: 600; }
.mpc-line em { color: var(--muted); font-style: normal; font-weight: 500; }
#musk-pay-card { margin: 6px 0 14px; }

/* ---- $/coin toggle ---- */
.lbl-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.lbl-row label { margin-bottom: 0; }
.ccy-toggle { background: none; border: 1px solid var(--border); border-radius: 9999px; color: var(--blue); font-family: var(--font-mono); font-size: 11px; font-weight: 600; padding: 4px 10px; cursor: pointer; transition: border-color .15s; }
.ccy-toggle:hover { border-color: rgba(29,155,240,.5); }

/* ---- QR code ---- */
.qr-wrap { display: flex; justify-content: center; margin: 6px 0 14px; }
.qr-wrap .qr { width: 172px; height: 172px; background: #fff; border-radius: 12px; padding: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.45); }
.qr-wrap.sm .qr { width: 132px; height: 132px; }

/* ---- admin (treasury) ---- */
.admin-hint { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0 0 18px; }
.admin-saved { font-size: 12px; color: var(--green); margin: 10px 0 0; min-height: 16px; }

/* ---- empty balance CTA + onboarding steps + positions ---- */
.empty-cta { text-align: center; padding: 24px 18px 20px; }
.empty-cta p { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 0 16px; }
.empty-cta .ec-title { color: var(--text); font-weight: 800; font-size: 15px; margin: 0 0 16px; }
.ec-steps { list-style: none; margin: 0 0 18px; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 13px; }
.ec-steps li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 13px; line-height: 1.45; }
.ec-steps b { color: var(--text); }
.ec-n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--bg-hover-blue); border: 1px solid rgba(29,155,240,.5); color: var(--blue); font-family: var(--font-mono); font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.rc-guide { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0 0 12px; }
.rc-guide b { color: var(--text); }
.rc-wait { display: flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 12px; color: var(--green); margin: 12px 0; }

/* live badge on the balance hero */
.db-live { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 700; margin-right: 4px; }
.db-live .live-dot { width: 6px; height: 6px; }
.musk-panel .mi-val em { color: var(--muted); font-weight: 500; font-style: normal; }

/* ---- receive network tag on coin chips ---- */
.coin-chip { width: 68px; }
.cc-net { font-size: 8px; letter-spacing: .02em; color: var(--dim); text-transform: uppercase; line-height: 1; }
.coin-chip.on .cc-net { color: var(--muted); }

/* ---- real coin chart ---- */
.coin-chart { width: 100%; height: 54px; margin: 2px 0 14px; }
.coin-chart .coin-spark { width: 100%; height: 54px; display: block; }

/* ---- 4-up dashboard actions ---- */
.dash-actions { gap: 14px; }
.dash-act { min-width: 56px; }

/* ---- invest / earn 8% ---- */
.invest-hero { display: flex; align-items: center; gap: 16px; background: linear-gradient(135deg, rgba(29,155,240,.13), rgba(29,155,240,.03)); border: 1px solid rgba(29,155,240,.3); border-radius: 16px; padding: 16px 18px; margin-bottom: 18px; }
.ih-apy { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 34px; font-weight: 700; color: var(--blue); line-height: 1; flex: none; }
.ih-apy span { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .03em; margin-top: 3px; }
.invest-hero p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.invest-hero b { color: var(--text); }
.invest-active { background: var(--bg-elev2); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; }
.ia-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--muted); padding: 3px 0; }
.ia-row .mono { color: var(--text); font-weight: 600; }
.ia-row .up { color: var(--green); }
.invest-active .link-muted { margin-top: 8px; }
.invest-convert { margin: 4px 0 16px; }
.ic-title { font-size: 13px; color: var(--muted); margin: 0 0 10px; }

/* ============ X Money account features (section 03) ============ */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 16px;
  padding: 22px; transition: border-color .18s, box-shadow .18s, transform .18s;
}
.feat-card:hover {
  border-color: rgba(29,155,240,.4);
  box-shadow: inset 0 0 0 1px rgba(29,155,240,.25), 0 10px 34px rgba(0,0,0,.55);
  transform: translateY(-2px);
}
.feat-card--hero {
  grid-column: span 1; border-color: var(--blue);
  background: linear-gradient(165deg, rgba(29,155,240,.12), var(--bg-elev) 62%);
  box-shadow: inset 0 0 0 1px rgba(29,155,240,.3);
}
.feat-ico {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: #000; border: 1px solid var(--border); color: var(--blue); margin-bottom: 16px;
}
.feat-ico svg { width: 22px; height: 22px; }
.feat-card--hero .feat-ico { background: rgba(29,155,240,.14); border-color: rgba(29,155,240,.4); }
.feat-num {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--blue);
  margin-bottom: 4px;
}
.feat-num-u { font-size: 15px; font-weight: 700; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.feat-title { font-family: var(--font); font-weight: 800; font-size: 16px; letter-spacing: -.01em; margin-bottom: 8px; }
.feat-desc { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.feat-foot {
  margin: 26px auto 0; max-width: 62ch; text-align: center;
  color: var(--muted); font-size: 15px; line-height: 1.55;
}
@media (max-width: 900px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feat-grid { grid-template-columns: 1fr; } }
