/* ===== YIELDPRINTR — lime × dark ===== */

:root {
  --bg: #050505;
  --bg-elev-1: #0c0c0c;
  --bg-elev-2: #141414;
  --bg-elev-3: #1c1c1c;
  --line: rgba(255,255,255,0.06);
  --line-strong: rgba(255,255,255,0.12);
  --fg: #ffffff;
  --fg-2: rgba(255,255,255,0.72);
  --fg-3: rgba(255,255,255,0.45);
  --fg-4: rgba(255,255,255,0.28);

  --lime: #9EFD2C;
  --lime-2: #BAFA77;
  --amber: #FFB800;
  --magenta: #d42672;
  --cream: #f5e9be;

  --lime-glow: rgba(158, 253, 44, 0.42);
  --amber-glow: rgba(255, 184, 0, 0.35);

  --up: var(--lime);
  --down: var(--magenta);

  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --max: 1280px;
  --pad: clamp(1rem, 2.6vw, 1.75rem);
  --space: clamp(4.5rem, 7vw, 7.5rem);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 9999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--lime); color: #000; }

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 400 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  min-height: 100vh;
}

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

.skip-link {
  position: absolute; top: -40px; left: 1rem;
  background: var(--lime); color: #000;
  padding: .5rem 1rem; z-index: 100;
  font: 600 12px/1 var(--sans);
  border-radius: var(--r-sm);
}
.skip-link:focus { top: .75rem; }

/* Topbar */
.topbar {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center;
  padding: 0 12px;
  pointer-events: none;
}
.topbar__pill {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; width: 100%; max-width: 720px;
  padding: 8px 8px 8px 14px;
  background: rgba(12, 12, 12, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.brand {
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none; color: var(--fg);
  font-weight: 600; font-size: 14px; letter-spacing: -0.02em;
}
.brand__mark { width: 26px; height: 26px; display: inline-flex; }
.brand__mark img { width: 26px; height: 26px; border-radius: 50%; }

.topbar__nav { display: flex; gap: 0.25rem; list-style: none; }
.topbar__nav a {
  font-size: 13px; font-weight: 500;
  color: var(--fg-3); text-decoration: none;
  padding: 7px 11px; border-radius: var(--r-sm);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.topbar__nav a:hover { color: var(--fg); background: rgba(255,255,255,0.05); }

.topbar__cta {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--lime); color: #001722;
  border: 0; border-radius: var(--r-pill);
  padding: 8px 14px; font-family: inherit;
  font-size: 13px; font-weight: 600; letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .25s var(--ease);
}
.topbar__cta:hover { transform: translateY(-1px); background: var(--lime-2); box-shadow: 0 8px 22px -10px var(--lime-glow); }
.topbar__cta .arrow { transition: transform .2s var(--ease); }
.topbar__cta:hover .arrow { transform: translateX(2px); }

.topbar__connected { position: relative; display: inline-flex; }
.topbar__connected[hidden] { display: none; }
.connected__btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.06); color: var(--fg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: 5px 10px 5px 5px;
  font-family: var(--mono); font-size: 12.5px;
  cursor: pointer;
}
.connected__btn:hover { background: rgba(255,255,255,0.09); border-color: rgba(158,253,44,0.32); }
.connected__avatar {
  width: 22px; height: 22px;
  border-radius: 6px; background: var(--bg-elev-3);
  object-fit: cover; flex-shrink: 0;
}
.connected__chev { color: var(--fg-3); transition: transform .25s var(--ease); }
.connected__btn[aria-expanded="true"] .connected__chev { transform: rotate(180deg); color: var(--lime); }
.connected__menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 200px;
  background: rgba(12,12,12,0.92);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 6px; display: grid; gap: 2px;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,0.7);
  z-index: 60;
}
.connected__menu[hidden] { display: none; }
.connected__menu-item {
  display: block; width: 100%; text-align: left;
  background: transparent; border: 0;
  padding: 8px 10px; border-radius: var(--r-sm);
  color: var(--fg-2); font-family: inherit; font-size: 13px;
  cursor: pointer; text-decoration: none;
}
.connected__menu-item:hover { background: rgba(255,255,255,0.05); color: var(--fg); }
.connected__menu-item--danger { color: rgba(255,130,130,0.92); }
.connected__menu-item--danger:hover { background: rgba(212,38,114,0.12); }

@media (max-width: 720px) {
  .topbar__nav { display: none; }
  .topbar__pill { max-width: 96vw; }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(6rem, 9vw, 9rem) var(--pad) clamp(3.5rem, 6vw, 5rem);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__glow {
  position: absolute; width: 80vw; max-width: 1100px;
  aspect-ratio: 1 / 0.7; border-radius: 50%;
  filter: blur(110px); opacity: 0.55;
}
.hero__glow--lime {
  top: -25%; left: 50%; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--lime-glow), transparent 70%);
}
.hero__glow--amber {
  top: 20%; left: 10%; width: 60vw; max-width: 700px;
  background: radial-gradient(closest-side, var(--amber-glow), transparent 70%);
  opacity: 0.25;
}
/* Centered hero — distinct from stockprintr's split layout */
.hero__inner {
  position: relative; z-index: 2;
  max-width: 920px; margin: 0 auto;
  text-align: center;
  padding: 0 var(--pad);
}

.hero__title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700; letter-spacing: -0.045em; line-height: 1.02;
  margin: 0;
}
.hero__title-accent {
  font-style: normal;
  background: linear-gradient(180deg, #ffffff 0%, var(--lime) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__pitch {
  margin: 1.5rem auto 0; max-width: 56ch;
  font-size: clamp(0.95rem, 1.1vw, 1.125rem);
  color: var(--fg-2); line-height: 1.65;
}
.hero__pitch .muted { color: var(--fg-3); }
.hero__cta {
  margin-top: 2rem;
  display: flex; gap: 0.6rem; flex-wrap: wrap;
  justify-content: center;
}

/* Horizontal stats row below hero */
.hero__stats {
  position: relative; z-index: 2;
  max-width: var(--max);
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 12px;
}
@media (max-width: 760px) {
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .stat--feature { grid-column: span 2; }
}

.stat {
  background: var(--bg-elev-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.stat:hover { border-color: var(--line-strong); background: var(--bg-elev-2); transform: translateY(-2px); }
.stat__label {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.13em; color: var(--fg-3);
}
.stat__value {
  font: 700 clamp(1.5rem, 2.4vw, 1.85rem)/1 var(--sans);
  letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
}
.stat__sub { font-family: var(--mono); font-size: 11px; color: var(--fg-3); }
.stat--feature {
  position: relative;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(158,253,44,0.10), transparent 60%),
    var(--bg-elev-1);
  border-color: rgba(158,253,44,0.20);
  padding: 22px;
}
.stat--feature::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--lime);
  box-shadow: 0 0 16px var(--lime-glow);
}
.stat--feature .stat__value {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  color: var(--lime);
  text-shadow: 0 0 28px var(--lime-glow);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 11px 18px; border-radius: var(--r-pill);
  font-family: var(--sans); font-size: 13.5px; font-weight: 600;
  letter-spacing: -0.01em; text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .22s var(--ease), background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.btn .arrow { display: inline-block; transition: transform .22s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn--primary {
  background: var(--lime); color: #001722;
  box-shadow: 0 8px 26px -10px var(--lime-glow);
}
.btn--primary:hover { transform: translateY(-1px); background: var(--lime-2); }
.btn--ghost {
  background: rgba(255,255,255,0.04); color: var(--fg-2);
  border-color: var(--line);
}
.btn--ghost:hover { color: var(--fg); border-color: var(--line-strong); background: rgba(255,255,255,0.07); transform: translateY(-1px); }

/* Metrics */
.hero__col--right { display: grid; gap: 10px; }
.metric {
  background: var(--bg-elev-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.metric:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.metric__label {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.13em; color: var(--fg-3);
}
.metric__value {
  font: 700 clamp(1.4rem, 2.2vw, 1.7rem)/1 var(--sans);
  letter-spacing: -0.035em; font-variant-numeric: tabular-nums;
  color: var(--fg);
}
.metric__sub { font-family: var(--mono); font-size: 11px; color: var(--fg-3); }
.metric--feature {
  position: relative;
  background: radial-gradient(120% 100% at 0% 0%, rgba(158,253,44,0.10), transparent 60%), var(--bg-elev-1);
  padding: 22px;
  border-color: rgba(158,253,44,0.18);
  overflow: hidden;
}
.metric--feature::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--lime);
  box-shadow: 0 0 16px var(--lime-glow);
}
.metric--feature .metric__value {
  font-size: clamp(2.6rem, 6vw, 3.6rem); color: var(--lime);
  text-shadow: 0 0 28px var(--lime-glow); letter-spacing: -0.04em;
}
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Ticker */
.ticker {
  background: var(--lime); color: #001722;
  border-top: 1px solid rgba(0,0,0,0.18);
  border-bottom: 1px solid rgba(0,0,0,0.18);
  overflow: hidden;
}
.ticker__track {
  display: inline-flex; white-space: nowrap;
  animation: ticker 75s linear infinite;
  padding: 11px 0;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__row { display: inline-flex; }
.ticker__item {
  padding: 0 22px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.02em;
  border-right: 1px solid rgba(0,0,0,0.18);
}
.ticker__item b { font-weight: 700; margin-right: 6px; }
.ticker__item em { font-style: normal; font-weight: 700; margin-left: 6px; }
.ticker__item .up { color: #00481c; }
.ticker__item .dn { color: #6a0d20; }
.ticker__item--brand {
  background: #001a00;
  color: #9EFD2C;
  padding: 0 24px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ticker__item--brand b { color: #BAFA77; margin-right: 10px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Section */
.section { padding: var(--space) var(--pad); max-width: var(--max); margin: 0 auto; }
.section__head { max-width: 760px; margin-bottom: clamp(2.5rem, 4.5vw, 3.5rem); }
.kicker {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--lime);
  padding: 5px 11px; border-radius: var(--r-pill);
  background: rgba(158,253,44,0.08);
  border: 1px solid rgba(158,253,44,0.18);
  margin-bottom: 1.25rem;
}
.section__title {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  font-weight: 700; letter-spacing: -0.045em; line-height: 1.04;
}
.section__title em {
  font-style: normal;
  background: linear-gradient(180deg, #ffffff 0%, var(--lime) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section__lede {
  margin-top: 1rem; color: var(--fg-2);
  font-size: clamp(0.95rem, 1.1vw, 1.0625rem);
  line-height: 1.65; max-width: 60ch;
}

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  background: var(--bg-elev-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 280px; overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.step:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--bg-elev-2); }
.step::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0;
  height: 2px; background: var(--accent, var(--lime));
  box-shadow: 0 0 22px var(--accent-glow, var(--lime-glow));
}
.step--lime { --accent: var(--lime); --accent-glow: var(--lime-glow); }
.step--amber { --accent: var(--amber); --accent-glow: var(--amber-glow); }
.step--cream { --accent: var(--cream); --accent-glow: rgba(245,233,190,0.32); }
.step__num {
  font-family: var(--mono); font-weight: 600; font-size: 11.5px;
  color: var(--accent); letter-spacing: 0.18em;
  text-transform: uppercase;
}
.step__title { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.step p { color: var(--fg-2); line-height: 1.6; font-size: 14.5px; }
.step__meta {
  margin-top: auto; padding-top: 16px;
  border-top: 1px dashed var(--line);
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--mono); font-size: 11px; color: var(--fg-3);
  letter-spacing: 0.06em; text-transform: uppercase;
}

/* Leaderboard portfolio — different from stockprintr's bento */
.leaderboard {
  background: var(--bg-elev-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.leaderboard__head, .leaderboard__row {
  display: grid;
  grid-template-columns: 50px minmax(160px, 2fr) 1fr 1fr minmax(180px, 2.5fr);
  align-items: center;
  gap: 1.5rem;
  padding: 16px 24px;
}
.leaderboard__head {
  font-family: var(--mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--fg-3);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.015);
}
.leaderboard__row {
  border-bottom: 1px solid var(--line);
  transition: background .25s var(--ease);
}
.leaderboard__row:hover { background: var(--bg-elev-2); }
.leaderboard__row:last-child { border-bottom: 0; }
.leaderboard__row--total {
  background: rgba(158,253,44,0.04);
  border-top: 1px solid rgba(158,253,44,0.16);
}
.leaderboard__row--total:hover { background: rgba(158,253,44,0.08); }
.lb-rank {
  font-family: var(--mono); font-size: 16px; font-weight: 600;
  color: var(--lime); letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.lb-asset { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lb-asset__sym {
  font-weight: 700; font-size: 17px; letter-spacing: -0.02em;
  color: var(--fg);
}
.lb-asset__name {
  font-size: 12.5px; color: var(--fg-3);
}
.lb-weight {
  font-family: var(--sans); font-weight: 700; font-size: 17px;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
  color: var(--fg);
}
.lb-change {
  font-family: var(--mono); font-weight: 600; font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}
.lb-bar {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}
.lb-bar > span {
  display: block; height: 100%;
  width: var(--w, 0%);
  background: linear-gradient(90deg, var(--lime), #6dca1a);
  border-radius: 4px;
  box-shadow: 0 0 12px var(--lime-glow);
}
.up { color: var(--lime); font-style: normal; font-weight: 600; }
.dn { color: var(--magenta); font-style: normal; font-weight: 600; }
.bar { height: 6px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
.bar > span { display: block; height: 100%; width: var(--w, 0%); background: var(--lime); border-radius: 3px; box-shadow: 0 0 10px var(--lime-glow); }

@media (max-width: 720px) {
  .leaderboard__head { display: none; }
  .leaderboard__row {
    grid-template-columns: 40px 1fr auto;
    grid-template-areas:
      'rank asset weight'
      '. change change'
      '. bar bar';
    gap: 0.5rem 1rem;
  }
  .lb-rank { grid-area: rank; }
  .lb-asset { grid-area: asset; }
  .lb-weight { grid-area: weight; text-align: right; }
  .lb-change { grid-area: change; }
  .lb-bar { grid-area: bar; margin-top: 6px; }
}

.port-quote {
  margin-top: 2rem;
  background: linear-gradient(135deg, var(--lime) 0%, #6dca1a 100%);
  color: #0a1f00;
  border-radius: var(--r-lg);
  padding: clamp(2rem, 4vw, 3rem);
  display: flex; flex-direction: column; gap: 1rem;
}
.port-quote p {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 0;
}
.port-quote p em { font-style: normal; font-weight: 800; }
.port-quote cite {
  font-family: var(--mono); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.18em;
  font-weight: 600; opacity: 0.75;
  font-style: normal;
}

/* Tokenomics */
.tok-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 768px) { .tok-grid { grid-template-columns: repeat(2, 1fr); } }
.tok-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.tok-card:hover { border-color: var(--line-strong); }
.tok-card__label { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--fg-3); }
.tok-card__value { font: 700 clamp(1.5rem, 2.4vw, 2.05rem)/1 var(--sans); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.tok-card:nth-child(1) .tok-card__value { color: var(--lime); }
.tok-card:nth-child(2) .tok-card__value { color: var(--lime-2); }
.tok-card:nth-child(3) .tok-card__value { color: var(--amber); }
.tok-card:nth-child(4) .tok-card__value { color: var(--cream); }
.tok-card__note { font-family: var(--mono); font-size: 11px; color: var(--fg-3); }

/* FAQ — 2-column grid (different from stockprintr's stacked accordions) */
.faq__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: start;
}
@media (max-width: 900px) { .faq__grid { grid-template-columns: 1fr; } }
.faq-item {
  position: relative;
  background: var(--bg-elev-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.faq-item:hover { border-color: var(--line-strong); background: var(--bg-elev-2); }
.faq-item[open] { border-color: rgba(158,253,44,0.32); background: var(--bg-elev-1); }
.faq-item summary {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1.25rem;
  padding: 22px 24px;
  cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__num {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: var(--lime); letter-spacing: 0.16em; text-transform: uppercase;
  padding: 4px 9px; min-width: 38px; text-align: center;
  background: rgba(158,253,44,0.08);
  border: 1px solid rgba(158,253,44,0.18);
  border-radius: var(--r-pill);
}
.faq-item__q {
  font-size: clamp(1rem, 1.35vw, 1.18rem); font-weight: 600;
  letter-spacing: -0.025em; color: var(--fg);
}
.faq-item:hover .faq-item__q, .faq-item[open] .faq-item__q { color: var(--lime); }
.faq-item__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .42s var(--ease); }
.faq-item__a > p {
  overflow: hidden; min-height: 0;
  padding: 0 24px 24px calc(38px + 24px + 1.25rem);
  color: var(--fg-2); line-height: 1.7;
  max-width: 64ch; font-size: 14.5px;
}
.faq-item[open] .faq-item__a { grid-template-rows: 1fr; }

/* Drop modal */
.drop-modal, .wallet-modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.drop-modal[hidden], .wallet-modal[hidden] { display: none; }
.drop-modal__overlay, .wallet-modal__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
}
.drop-modal__panel, .wallet-modal__panel {
  position: relative; width: 100%; max-width: 520px;
  max-height: 86vh; overflow-y: auto;
  background: var(--bg-elev-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7);
}
.drop-modal__head, .wallet-modal__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; margin-bottom: 1.1rem;
}
.drop-modal__head h3, .wallet-modal__head h3 {
  font-size: 17px; font-weight: 700; letter-spacing: -0.025em;
}
.drop-modal__sub, .wallet-modal__sub {
  font-size: 12.5px; color: var(--fg-3); margin-top: 4px;
}
.drop-modal__close, .wallet-modal__close {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  border-radius: 50%; color: var(--fg-2);
  cursor: pointer; font-family: inherit;
  font-size: 18px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}

.drop-empty { text-align: center; padding: 18px 8px; }
.drop-empty p { color: var(--fg-2); font-size: 14px; line-height: 1.55; margin-bottom: 16px; }

.drop-wallet {
  font-family: var(--mono); font-size: 11px; color: var(--fg-3);
  margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.13em;
}
.drop-wallet span { color: var(--lime); font-weight: 600; }

.drop-input { margin-bottom: 14px; }
.drop-input label {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: 0.13em; color: var(--fg-3); margin-bottom: 8px;
}
.drop-input-row { display: flex; align-items: center; gap: 12px; }
.drop-input input {
  flex: 1; background: var(--bg-elev-2);
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 11px 14px; color: var(--fg);
  font: 600 16px/1 var(--sans);
  font-variant-numeric: tabular-nums;
  outline: none;
}
.drop-input input:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(158,253,44,0.12); }
.drop-input-suffix { font-family: var(--mono); font-size: 13px; color: var(--fg-3); }

.drop-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.drop-stat {
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px;
}
.drop-stat--accent {
  background: radial-gradient(120% 100% at 0% 0%, rgba(158,253,44,0.10), transparent 60%), var(--bg-elev-2);
  border-color: rgba(158,253,44,0.22);
}
.drop-stat__label {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.13em; color: var(--fg-3);
}
.drop-stat__value {
  display: block; margin-top: 6px;
  font: 800 clamp(1.4rem, 3vw, 1.8rem)/1 var(--sans);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}
.drop-stat--accent .drop-stat__value { color: var(--lime); }
.drop-stat__sub { display: block; margin-top: 6px; font-family: var(--mono); font-size: 11px; color: var(--fg-3); }

.drop-source {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.05em;
}
.drop-source--live { color: var(--lime); }
.drop-source--mock { color: var(--fg-3); }
.drop-source--checking { color: var(--amber); }
.drop-source--error { color: var(--magenta); }

.drop-breakdown { display: grid; gap: 6px; }
.drop-row {
  display: grid; grid-template-columns: 60px 1fr auto;
  align-items: center; gap: 12px;
  padding: 10px 12px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 13px;
}
.drop-row__sym { font-family: var(--mono); font-weight: 700; font-size: 11.5px; color: var(--lime); letter-spacing: 0.04em; }
.drop-row__name { color: var(--fg-2); }
.drop-row__val { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-variant-numeric: tabular-nums; }
.drop-row__usd { font-weight: 700; color: var(--fg); }
.drop-row__shares { font-family: var(--mono); font-size: 10.5px; color: var(--fg-3); }

/* Wallet modal */
.wallet-modal__list { list-style: none; display: grid; gap: 6px; margin-bottom: 1.1rem; }
.wallet-card {
  width: 100%;
  display: grid; grid-template-columns: 32px 1fr auto;
  align-items: center; gap: 12px;
  padding: 11px 14px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--fg); cursor: pointer;
  text-align: left; font-family: inherit;
}
.wallet-card:hover { background: var(--bg-elev-3); border-color: var(--line-strong); }
.wallet-card__avatar {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--bg-elev-3); object-fit: cover;
}
.wallet-card__name { font-weight: 600; font-size: 14px; }
.wallet-card__status {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--fg-3);
  padding: 3px 8px; border: 1px solid var(--line); border-radius: var(--r-pill);
}
.wallet-card__status--installed {
  color: var(--lime);
  border-color: rgba(158,253,44,0.22);
  background: rgba(158,253,44,0.08);
}
.wallet-empty { padding: 14px 4px 10px; display: grid; gap: 6px; }
.wallet-empty__title { font-size: 14px; font-weight: 600; color: var(--fg); }
.wallet-empty__sub { font-size: 12px; color: var(--fg-3); line-height: 1.5; }
.wallet-empty__rescan {
  justify-self: start; margin-top: 4px;
  background: rgba(158,253,44,0.08);
  border: 1px solid rgba(158,253,44,0.22);
  color: var(--lime);
  padding: 6px 12px; border-radius: var(--r-pill);
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.05em; cursor: pointer;
}
.wallet-modal__note { font-family: var(--mono); font-size: 10.5px; color: var(--fg-4); line-height: 1.5; }

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 3rem var(--pad);
  max-width: var(--max); margin: 0 auto;
  display: flex; flex-direction: column; gap: 1.75rem;
}
.foot__top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 2rem; flex-wrap: wrap;
}
.foot__brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 600; font-size: 14px; text-decoration: none; color: var(--fg);
}
.foot__brand img { border-radius: 50%; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; }
.foot__nav a {
  color: var(--fg-3); text-decoration: none;
  font-size: 12.5px; transition: color .2s var(--ease);
}
.foot__nav a:hover { color: var(--lime); }
.foot__legal {
  font-family: var(--mono); font-size: 11px; color: var(--fg-3);
  line-height: 1.7; max-width: 88ch;
}
.foot__copy { font-family: var(--mono); font-size: 11px; color: var(--fg-4); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .ticker__track { animation: none; }
}
