/* ============================================
   ZECSCRIPTIONS · xAI-inspired aesthetic
   Pure black canvas, sharp typography, technical
   ============================================ */

:root {
  --bg: #000000;
  --bg-elev: #0a0a0a;
  --bg-card: #0d0d0d;
  --line: #2a2a2a;   /* was #1a1a1a — too faint against pure black */
  --line-2: #3a3a3a; /* was #262626 — borders barely visible */
  --text: #f5f5f5;
  --text-dim: #cbcbcb;   /* was #888888 — too dim against pure black */
  --text-muted: #a3a3a3; /* was #555555 — borderline unreadable */
  --accent: #f4b728;        /* zcash gold */
  --accent-dim: #b8881e;
  --green: #4ade80;
  --red: #f87171;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  /* No max-width: we want the brand flush to the far left and the
     Holdings + wallet cluster flush to the far right on any screen
     size, with just edge padding for breathing room. Page content
     elsewhere still respects the 1400px container; only the nav bar
     itself spans the full viewport. */
  width: 100%;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 13px;
}

/* .brand-mark is the small Z logo that sits next to the wordmark in
   the nav and footer. As of the logo refresh it's an SVG file rather
   than a styled letter, so the old background/color/font rules are
   no-ops. Sizing + radius stay so the image scales cleanly. */
.brand-mark {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 2px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--text); }

/* Active-page highlight (the link matching the current page glows
   in accent gold). Lives here in the global stylesheet so every
   page — including Deploy, which doesn't pull trade.css — picks it
   up. */
.nav-links a.active { color: var(--accent); }

/* Right side of the nav: groups Holdings + Connect Wallet + hamburger.
   Was an unstyled flex child of .nav-inner; now an explicit flex row so
   the new Holdings link sits cleanly next to the wallet button. */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* The "Holdings" link sitting next to the wallet pill. Styled like a
   nav-links anchor but lives in the right-hand cluster so it shows next
   to the connect button on both desktop and mobile. */
.nav-cta-link {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.nav-cta-link:hover { color: var(--text); }
.nav-cta-link.active { color: var(--accent); }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  margin-left: 12px;
}
.nav-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-dim);
  transition: all 0.2s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: all 0.15s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover {
  background: #fff;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}
.btn-secondary:hover {
  border-color: var(--text);
  background: var(--bg-elev);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
  padding: 9px 16px;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-block { width: 100%; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 40px 80px;
  overflow: hidden;
}

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  opacity: 0.6;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(244, 183, 40, 0.08);
  border: 1px solid rgba(244, 183, 40, 0.25);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 36px;
}

.dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(244, 183, 40, 0.7); }
  50% { opacity: 0.6; box-shadow: 0 0 0 8px rgba(244, 183, 40, 0); }
}

.display {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
  font-family: var(--sans);
}

.display .accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}

.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 620px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 80px;
  flex-wrap: wrap;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: 1100px;
}

.stat {
  padding: 28px 24px 28px 0;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat:not(:first-child) { padding-left: 24px; }

.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.stat-value {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px 40px;
}

.section-alt {
  background: var(--bg-elev);
  max-width: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-alt > * {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  margin-bottom: 64px;
  max-width: 800px;
}

.section-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.section-sub {
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ============================================
   ABOUT · TWO COL
   ============================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.col-text p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.col-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.card {
  background: var(--bg);
  padding: 32px 28px;
  transition: background 0.2s ease;
}

.card:hover { background: var(--bg-card); }

.card-icon {
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 18px;
  font-family: var(--mono);
}

.card h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ============================================
   DEPLOY
   ============================================ */
.deploy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.deploy-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.form-row input,
.form-row select {
  background: var(--bg);
  border: 1px solid var(--line-2);
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text);
  border-radius: 2px;
  transition: border-color 0.15s ease;
}

.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-row input::placeholder { color: var(--text-muted); }

.deploy-preview {
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  overflow: hidden;
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-2);
  background: var(--bg-elev);
}

.preview-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.preview-status {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.code {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
  padding: 24px;
  background: transparent;
  white-space: pre-wrap;
  word-break: break-word;
}

.preview-meta {
  border-top: 1px solid var(--line-2);
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preview-meta div {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
}

.preview-meta span { color: var(--text-muted); }
.preview-meta strong { color: var(--text); font-weight: 500; }

/* ============================================
   MINT
   ============================================ */
.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.chip {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  transition: all 0.15s ease;
}

.chip:hover { color: var(--text); border-color: var(--text-dim); }

.chip-active {
  background: var(--text);
  color: #000;
  border-color: var(--text);
}

.mint-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.mint-grid-page {
  grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 1200px) { .mint-grid-page { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 960px)  { .mint-grid-page { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .mint-grid-page { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .mint-grid-page { grid-template-columns: 1fr; } }

.mint-page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.mint-page-footer .zp-pager { padding: 0; }
.mint-page-footer .zp-meta { display: none; }

/* ============================================================
   Shared pagination footer (pagination.js).
   Renders arrows + numeric buttons + an "X items · page Y/Z"
   meta tag on the right. Used on /mint, /trade, and /buy/:tick.
   ============================================================ */
.zp-pager {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  padding: 28px 0 8px;
  font-family: var(--mono);
}
.zp-arrow, .zp-num {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.zp-arrow:hover:not([disabled]),
.zp-num:hover { color: var(--accent); border-color: var(--accent); }
.zp-arrow[disabled] { opacity: 0.4; cursor: not-allowed; }
.zp-num-active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.zp-num-active:hover { color: var(--bg); }
.zp-gap {
  color: var(--text-muted);
  font-size: 12px;
  padding: 0 4px;
  letter-spacing: 0.06em;
}
.zp-meta {
  margin-left: auto;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.04em;
}
@media (max-width: 720px) {
  .zp-meta { margin-left: 0; flex-basis: 100%; padding-top: 6px; }
}

.mint-card {
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  padding: 24px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  position: relative;
}

.mint-card:hover {
  background: var(--bg-card);
  border-color: var(--accent);
}

/* When .mint-card is rendered as an <a> (the whole card is clickable),
   strip default link styling and inherit text colors so child elements
   look identical to the old <div> version. */
a.mint-card,
.mint-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
a.mint-card:hover,
.mint-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.mint-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.mint-ticker {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Launchpad rank badge — #1 next to ticker. v2 native deploys get
   1, 2, 3… in order; legacy v1 (ZERO) is rank #0 (only visible on
   trade page; mint page filters TRADING_LOCKED tickers out). */
.mint-rank {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(244, 183, 40, 0.08);
  border: 1px solid rgba(244, 183, 40, 0.25);
  padding: 3px 7px;
  border-radius: 2px;
}

.mint-tag {
  font-family: var(--mono);
  font-size: 10px;
  padding: 3px 8px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.mint-progress-wrap {
  margin-bottom: 14px;
}

.mint-progress-track {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.mint-progress-bar {
  height: 100%;
  background: var(--accent);
  transition: width 0.4s ease;
}

.mint-progress-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
}

.mint-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
}

.mint-meta-item span { color: var(--text-muted); display: block; margin-bottom: 4px; letter-spacing: 0.06em; }
.mint-meta-item strong { color: var(--text); font-weight: 500; font-size: 13px; }

.mint-action {
  display: block;
  margin-top: 18px;
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  border-radius: 2px;
  transition: all 0.15s ease;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.mint-action:hover { background: var(--accent); color: #000; border-color: var(--accent); }

/* ============================================
   TRADE / MARKET TABLE
   ============================================ */
.market-table {
  border: 1px solid var(--line);
  background: var(--bg);
}

.market-head,
.market-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.8fr 1fr 1fr 0.8fr;
  gap: 16px;
  padding: 16px 24px;
  align-items: center;
  font-family: var(--mono);
  font-size: 13px;
}

.market-head {
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.market-row {
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}

.market-row:last-child { border-bottom: none; }
.market-row:hover { background: var(--bg-elev); }

.market-ticker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.market-ticker .icon {
  width: 28px;
  height: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--accent);
}

.change-pos { color: var(--green); }
.change-neg { color: var(--red); }

.trade-btn {
  display: inline-block;
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  border-radius: 2px;
  transition: all 0.15s ease;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.trade-btn:hover { background: var(--accent); color: #000; border-color: var(--accent); }

.inline-link {
  color: var(--accent);
  border-bottom: 1px solid rgba(244, 183, 40, 0.3);
  transition: border-color 0.15s ease;
  white-space: nowrap;
}
.inline-link:hover { border-color: var(--accent); }

.section-cta {
  margin-top: 32px;
  text-align: center;
}

/* ============================================
   DOCS
   ============================================ */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.doc-card {
  background: var(--bg);
  padding: 36px 32px;
}

.doc-card h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 12px;
}

.doc-card p {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 20px;
  line-height: 1.55;
}

.doc-card .code {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 16px;
  font-size: 12px;
  color: var(--accent);
  border-radius: 2px;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 900px;
  border-top: 1px solid var(--line-2);
}

.faq-list details {
  border-bottom: 1px solid var(--line-2);
  padding: 24px 0;
  cursor: pointer;
}

.faq-list summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  position: relative;
  padding-right: 32px;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: '+';
  position: absolute;
  right: 0;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  content: '−';
}

.faq-list p {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.6;
  max-width: 720px;
}

/* ============================================
   CTA
   ============================================ */
.cta {
  padding: 160px 40px;
  text-align: center;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(244, 183, 40, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.cta .display { margin-bottom: 20px; }
.cta .lede { margin-left: auto; margin-right: auto; margin-bottom: 36px; }
.cta .hero-actions { justify-content: center; margin-bottom: 0; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 40px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 13px;
}

.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}

.footer-nav a:hover { color: var(--text); }

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */
/* Below 820px: hide inline nav links, show the burger. The old 640px
   threshold left a dead zone (641-720px) where the brand + Deploy +
   Mint + Trade + FAQ + Wallet + Connect Wallet pill all tried to fit
   on one row and either wrapped ugly or overflowed off-screen on
   tablets. 820px is comfortably above the iPad portrait width (768px),
   so tablets get the burger UI too. */
@media (max-width: 820px) {
  .nav-burger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 14px 24px;
    font-size: 14px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-inner { padding: 16px 24px; position: relative; }
}

/* Below 480px: the Wallet "Holdings" pill duplicates the burger menu's
   Wallet link AND eats horizontal real estate from the brand. Drop it;
   users still hit the wallet via the burger and the Connect Wallet
   button stays visible. Also tighten side padding so a 360px phone
   isn't fighting the brand + burger + connect button for space. */
@media (max-width: 480px) {
  .nav-cta-link { display: none; }
  .nav-inner { padding: 14px 16px; }
  .nav-cta { gap: 10px; }
}

@media (max-width: 980px) {
  .hero { padding: 120px 24px 60px; }
  .section { padding: 80px 24px; }
  .section-alt { padding-left: 24px; padding-right: 24px; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-last-child(-n+2) { border-bottom: none; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .col-cards { grid-template-columns: 1fr 1fr; }
  .deploy-grid { grid-template-columns: 1fr; gap: 32px; }
  .docs-grid { grid-template-columns: 1fr; }
  /* .footer-inner is display:flex; flex-direction:column kicks in at 600px
     in another media block. grid-template-columns on a flex container is a
     no-op, so this used to be a dead rule. Keep just the gap. */
  .footer-inner { gap: 40px; }
  .market-head, .market-row {
    grid-template-columns: 1fr 0.8fr 0.6fr 0.8fr;
    font-size: 11px;
  }
  .market-head > div:nth-child(5),
  .market-head > div:nth-child(6),
  .market-row > div:nth-child(5),
  .market-row > div:nth-child(6) {
    display: none;
  }
}

@media (max-width: 600px) {
  .display { font-size: 44px; }
  .section-title { font-size: 32px; }
  .col-cards { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-nav { gap: 20px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ============================================
   WALLET MODAL
   ============================================ */
.wallet-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

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

.wallet-modal {
  background: var(--bg);
  border: 1px solid var(--line-2);
  width: 100%;
  max-width: 520px;
  /* Use 100dvh (dynamic viewport height) so iOS Safari's address bar +
     keyboard shrinking doesn't push the bottom of the modal off-screen.
     Fall back to 100vh for browsers without dvh support. */
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 2px;
  animation: walletPop 0.18s ease-out;
}

@keyframes walletPop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.wallet-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.wallet-modal-head h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.wallet-modal-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 2px;
  transition: color 0.15s ease;
}
.wallet-modal-close:hover { color: var(--text); }

.wallet-list {
  list-style: none;
  padding: 8px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wallet-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: all 0.12s ease;
}

.wallet-option:hover {
  background: var(--bg-elev);
  border-color: var(--line-2);
}

.wallet-option-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-elev);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
}

.wallet-option-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wallet-option-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.wallet-option-blurb {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.wallet-option-status {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
  padding: 3px 8px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  letter-spacing: 0.08em;
}

.wallet-modal-foot {
  padding: 14px 24px 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  text-align: center;
}

.wallet-modal-foot a {
  color: var(--accent);
  margin-left: 4px;
}

/* ----- Step 2: address entry ----- */
.wallet-addr-step {
  padding: 20px 24px 24px;
}

.wallet-back-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 0;
  margin-bottom: 16px;
  transition: color 0.15s ease;
}
.wallet-back-btn:hover { color: var(--accent); }

.wallet-addr-hint {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 20px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg-elev);
}

.wallet-addr-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.wallet-addr-input {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}
.wallet-addr-input:focus { border-color: var(--accent); }
.wallet-addr-input::placeholder { color: var(--text-muted); }

.wallet-addr-error {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--red, #f44);
  min-height: 18px;
  margin: 8px 0;
}

.wallet-addr-submit {
  margin-bottom: 16px;
}

.wallet-addr-note {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* ============================================
   WALLET MODAL · new in-browser flow
   ============================================ */
.ww-intro {
  padding: 18px 24px 0;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}
.ww-intro code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}

.ww-actions {
  padding: 18px 24px 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ww-or {
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding: 2px 0;
}

.ww-import { font-family: inherit; }
.ww-import summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  padding: 10px 0;
  letter-spacing: 0.04em;
  text-align: center;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.ww-import summary::-webkit-details-marker { display: none; }
.ww-import summary:hover { border-color: var(--accent); color: var(--text); }
.ww-import[open] summary { border-color: var(--accent); color: var(--text); margin-bottom: 12px; }

.ww-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 4px 0 8px;
}

.ww-input {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  padding: 12px 14px;
  border-radius: 2px;
  outline: none;
  margin-bottom: 12px;
  transition: border-color 0.15s ease;
}
.ww-input:focus { border-color: var(--accent); }

.ww-error {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--red);
  letter-spacing: 0.02em;
  margin-top: 8px;
  min-height: 14px;
}

.ww-warn {
  margin: 18px 24px 24px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  background: rgba(248, 113, 113, 0.04);
  border-left: 2px solid var(--red);
  border-radius: 2px;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.55;
}
.ww-warn strong { color: var(--red); font-weight: 600; }

.ww-warn-inline {
  padding: 10px 12px;
  border-left: 2px solid var(--red);
  background: rgba(248, 113, 113, 0.04);
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 10px 0 12px;
}

/* Connected state */
.ww-addr-block {
  display: flex;
  gap: 18px;
  padding: 20px 24px;
  align-items: flex-start;
}
.ww-qr {
  flex-shrink: 0;
  width: 152px;
  height: 152px;
  background: #fff;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ww-qr svg { display: block; }
.ww-addr-side {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ww-addr-row {
  background: var(--bg-elev);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  padding: 10px 12px;
}
.ww-addr {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
  word-break: break-all;
  line-height: 1.5;
}
.ww-addr-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ww-action.btn {
  padding: 8px 12px;
  font-size: 11px;
  letter-spacing: 0.04em;
  flex: 1;
  text-align: center;
}
.ww-hint {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  line-height: 1.55;
}
.ww-hint code { color: var(--accent); }

.ww-divider {
  height: 1px;
  background: var(--line);
  margin: 0 24px;
}

/* .ww-reveal styling now comes from .ww-collapsible (above). The class
   is retained on the <details> element so any JS that still queries it
   by class name keeps working. */

.ww-key-row {
  background: var(--bg-elev);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  padding: 10px 12px;
  margin: 10px 0;
}
.ww-key {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  word-break: break-all;
  line-height: 1.5;
}
.ww-key-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

/* ============================================
   WALLET MODAL · backup-key view (post-generate)
   The single most important moment in the wallet lifecycle: the
   user just generated a wallet, the key is visible exactly once
   in this screen, and they need to copy/save it before continuing.
   Visually loud — red warning panel, key prominently displayed.
   ============================================ */
.ww-backup {
  padding: 8px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ww-backup-warn {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(248, 113, 113, 0.07);
  border: 1px solid rgba(248, 113, 113, 0.45);
  border-left: 3px solid var(--red);
  border-radius: 2px;
}
.ww-backup-warn-mark {
  flex-shrink: 0;
  color: var(--red);
  font-size: 18px;
  line-height: 1.4;
}
.ww-backup-warn-body {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
}
.ww-backup-warn-body strong { color: var(--text); font-weight: 600; }

.ww-backup-key-row {
  background: var(--bg-elev);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  padding: 12px 14px;
}
.ww-backup-key {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  word-break: break-all;
  line-height: 1.55;
  display: block;
}

.ww-backup-tip {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.55;
  padding: 4px 2px;
}

/* ============================================
   WALLET MODAL · receive view (default)
   Single-job screen: show address + QR + copy.
   Settings + key export live behind the gear.
   ============================================ */
.wallet-modal-receive .wallet-modal-head { padding-bottom: 12px; }

/* Receive / Send toggle that sits below the header. Two prominent
   buttons that act as tabs — the active one is outlined in accent
   gold + faintly tinted. Tapping swaps the body below. */
.ww-tab-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 22px 16px;
}
.ww-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  cursor: pointer;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 14px;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.ww-tab:hover { color: var(--text); border-color: var(--text-muted); }
.ww-tab-active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(244, 183, 40, 0.06);
}
.ww-tab-icon { flex-shrink: 0; }
.ww-tab-label { font-weight: 500; letter-spacing: 0.01em; }

.ww-tab-body { padding: 0; }

/* Send form: address + amount + Max button + balance/fee + Send. */
.ww-send {
  padding: 4px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ww-send .ww-label { margin-top: 8px; }
.ww-send-addr {
  width: 100%;
  font-family: var(--mono);
  font-size: 12px;
}

.ww-amount-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.ww-send-amount {
  flex: 1;
  font-family: var(--mono);
  font-size: 14px;
}
.ww-amount-unit {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  padding: 0 4px;
}
.ww-amount-max {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.ww-amount-max:hover { color: var(--accent); border-color: var(--accent); }

.ww-send-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-elev);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  padding: 12px 14px;
  margin: 14px 0 4px;
}
.ww-send-meta-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
}
.ww-send-meta-row span { color: var(--text-dim); }
.ww-send-meta-row strong { color: var(--text); font-weight: 500; }

.ww-send #wwSendBtn { margin-top: 14px; }

/* Collapsible burn-risk warning below the send button — mostly
   advisory; users who already know what they're doing skip it. */
.ww-send-warn {
  margin-top: 14px;
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: 2px;
  background: rgba(248, 113, 113, 0.04);
}
.ww-send-warn summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--red);
  letter-spacing: 0.02em;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ww-send-warn summary::-webkit-details-marker { display: none; }
/* Visual affordance that the row is expandable. Chevron at the right
   edge that rotates 90° when the details element is open. Same pattern
   we use elsewhere; signals "click me" without needing tooltips. */
.ww-send-warn summary::after {
  content: '▸';
  margin-left: auto;
  color: var(--red);
  font-size: 11px;
  transition: transform 0.15s ease;
}
.ww-send-warn[open] summary::after { transform: rotate(90deg); }
.ww-send-warn[open] summary { border-bottom: 1px solid rgba(248, 113, 113, 0.25); }
.ww-send-warn-body {
  padding: 10px 12px 12px;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* Send success screen (replaces the form after broadcast). */
.ww-send-success {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.ww-success-mark-big {
  width: 64px; height: 64px;
  border: 2px solid var(--green);
  color: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  line-height: 1;
  margin-bottom: 8px;
}
.ww-success-title-big {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.ww-success-sub-big {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.ww-head-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ww-head-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.ww-head-btn:hover { color: var(--text); border-color: var(--line-2); }

.ww-back-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.ww-back-btn:hover { color: var(--text); border-color: var(--line-2); }

.ww-receive {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 8px 24px 28px;
}
.ww-receive-qr {
  background: #fff;
  border-radius: 4px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ww-receive-qr svg { display: block; }
.ww-receive-addr {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  text-align: center;
  word-break: break-all;
  line-height: 1.5;
  padding: 10px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  width: 100%;
  max-width: 380px;
}
.ww-receive-copy {
  max-width: 380px;
  width: 100%;
}
.ww-receive-hint {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
  text-align: center;
  max-width: 380px;
  margin: 0;
}

/* ============================================
   WALLET MODAL · settings view
   ============================================ */
.ww-settings { padding: 8px 0 20px; }

.ww-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
}
.ww-setting-row:first-child { border-top: 0; }

.ww-setting-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.ww-setting-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.ww-setting-value {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.ww-setting-action {
  padding: 8px 14px;
  font-size: 11px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.ww-setting-danger:hover {
  color: var(--red) !important;
  border-color: var(--red) !important;
}

.ww-settings-warn {
  margin: 8px 24px 0;
  padding: 14px 16px;
  background: rgba(248, 113, 113, 0.05);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-left: 3px solid var(--red);
  border-radius: 2px;
}
.ww-settings-warn-head {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 6px;
}
.ww-settings-warn-body {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* Threat-model disclosure (collapsible). Calmer styling than the
   red warning — this is reference info, not "act now". */
.ww-settings-disclosure {
  margin: 8px 24px 0;
  padding: 0 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.ww-settings-disclosure summary {
  cursor: pointer;
  padding: 12px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  font-family: var(--sans);
  list-style: none;
}
.ww-settings-disclosure summary::-webkit-details-marker { display: none; }
.ww-settings-disclosure summary::after {
  content: '+';
  float: right;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 14px;
}
.ww-settings-disclosure[open] summary::after { content: '−'; }
.ww-settings-disclosure-body {
  padding: 0 0 14px;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
}
.ww-settings-disclosure-body p { margin: 0 0 10px; }
.ww-settings-disclosure-body p:last-child { margin: 0; }
.ww-settings-disclosure-body strong { color: var(--text); font-weight: 500; }

/* ============================================
   WALLET MODAL · UTXO splitter (mint slots)
   ============================================ */
.ww-split-body {
  padding: 8px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ww-split-explain {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
}
.ww-split-field {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ww-split-field label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-width: 60px;
}
.ww-split-field input {
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-family: var(--mono);
  font-size: 16px;
  padding: 10px 12px;
  width: 80px;
  border-radius: 2px;
}
.ww-split-hint {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-muted);
}
.ww-split-summary {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ww-split-line {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}
.ww-split-line strong {
  color: var(--text);
  font-weight: 500;
}
.ww-split-total {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  margin-top: 4px;
}
.ww-split-total strong { color: var(--accent); font-size: 13px; }
.ww-split-have { font-size: 11.5px; color: var(--text-muted); }
.ww-split-have strong { color: var(--text-dim); font-weight: 400; }

.ww-split-success {
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.ww-split-success-mark {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: #000;
  font-size: 24px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.ww-split-success-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.ww-split-success-sub {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
  max-width: 380px;
}

/* ============================================
   WALLET MODAL · export-key view
   ============================================ */
.ww-export-body {
  padding: 8px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Legacy class kept for backwards compat with any code that still
   references it. New modal views don't emit this. */
.ww-meta-row {
  padding: 8px 24px 16px;
  display: flex;
  justify-content: flex-end;
}

/* Generic collapsible row used for the burn-risk warning and the
   reveal-key block. Both are secondary information — keep them out
   of the user's face on the primary "here's how to receive ZEC"
   surface, but easy to expand when they want. */
.ww-collapsible {
  margin: 0 24px 6px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  background: transparent;
  transition: border-color 0.15s ease;
}
.ww-collapsible[open] { border-color: var(--text-muted); }
.ww-collapsible summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}
.ww-collapsible summary::-webkit-details-marker { display: none; }
.ww-collapsible summary::after {
  content: '▸';
  margin-left: auto;
  color: var(--text-muted);
  transition: transform 0.15s ease;
}
.ww-collapsible[open] summary::after { transform: rotate(90deg); }
.ww-collapsible summary:hover { color: var(--text); }
.ww-collapsible-mark {
  color: var(--text-muted);
  font-size: 13px;
}
.ww-collapsible-body {
  padding: 4px 14px 14px;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.55;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.ww-collapsible-body strong { color: var(--text); font-weight: 600; }

/* The burn-risk variant: same structure as a normal collapsible but
   slightly more visually charged so it stands out from the reveal-key
   row sitting right below it. */
.ww-collapsible-warn { border-color: rgba(248, 113, 113, 0.35); }
.ww-collapsible-warn[open] { border-color: rgba(248, 113, 113, 0.55); }
.ww-collapsible-warn .ww-collapsible-mark { color: var(--red); }
.ww-collapsible-warn summary { color: var(--text); }

/* Legacy burn-warn block kept for any references that still use it.
   The connected modal no longer emits this block; it lives inside
   ww-collapsible-warn now. */
.ww-burn-warn {
  margin: 18px 24px 0;
  padding: 14px 16px;
  background: rgba(248, 113, 113, 0.06);
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-left: 3px solid var(--red);
  border-radius: 2px;
}
.ww-burn-warn-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.45;
}
.ww-burn-warn-head strong {
  color: var(--text);
  font-weight: 600;
}
.ww-burn-warn-mark {
  color: var(--red);
  font-size: 16px;
  line-height: 1.2;
  flex-shrink: 0;
}
.ww-burn-warn-body {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.55;
  padding-left: 26px;
}

.ww-row-actions {
  display: flex;
  gap: 10px;
  padding: 12px 24px 24px;
}
.ww-row-action {
  flex: 1;
  color: var(--text-dim);
  border-color: var(--line-2);
  font-size: 12px;
  padding: 10px 12px;
  letter-spacing: 0.04em;
}
.ww-row-action:hover {
  color: var(--text);
  border-color: var(--accent);
}
.ww-row-action.ww-disconnect:hover {
  color: var(--red);
  border-color: var(--red);
}

.ww-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.ww-label-row .ww-label { margin: 0; }

.ww-label-opt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: none;
  margin-left: 6px;
}

.ww-badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 2px;
  border: 1px solid var(--line-2);
  text-transform: uppercase;
}
.ww-badge-locked {
  color: var(--green);
  border-color: rgba(74, 222, 128, 0.4);
  background: rgba(74, 222, 128, 0.06);
}
.ww-badge-warn {
  color: var(--accent);
  border-color: rgba(244, 183, 40, 0.4);
  background: rgba(244, 183, 40, 0.05);
}

.ww-import-help {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  background: var(--bg-elev);
}
.ww-import-help code { font-family: var(--mono); color: var(--accent); font-size: 11px; }

/* ============================================
   WALLET MODAL · entry view (no wallet yet)
   Two big choice tiles. Nothing else. The intro
   paragraph and warnings used to dominate this
   screen — moved into the per-path next steps.
   ============================================ */
.ww-entry {
  padding: 28px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ww-entry-choice {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 2px;
  align-items: center;
  padding: 18px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
  color: var(--text);
}
.ww-entry-choice:hover { border-color: var(--accent); }
.ww-entry-choice:disabled { opacity: 0.6; cursor: default; }

.ww-entry-choice-icon {
  grid-row: 1 / span 2;
  grid-column: 1;
  font-family: var(--mono);
  font-size: 22px;
  line-height: 1;
  color: var(--accent);
  text-align: center;
  align-self: center;
}
.ww-entry-choice-label {
  grid-row: 1;
  grid-column: 2;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.ww-entry-choice-sub {
  grid-row: 2;
  grid-column: 2;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.ww-entry-choice-primary {
  background: rgba(244, 183, 40, 0.08);
  border-color: rgba(244, 183, 40, 0.4);
}
.ww-entry-choice-primary:hover {
  border-color: var(--accent);
  background: rgba(244, 183, 40, 0.12);
}

.ww-entry-tagline {
  margin-top: 8px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  line-height: 1.55;
}

/* Import view body — same padding pattern as receive view. */
.ww-import-body {
  padding: 16px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ww-import-body .ww-input { margin: 0; }
.ww-import-body .ww-import-textarea { margin-bottom: 0; }

/* Tab toggle inside the Import details: lets the user choose between
   pasting a 12-word recovery phrase (Trust Wallet etc.) and pasting a
   single 64-hex private key (Zerdinals backup, Trust Wallet Developer
   Mode export). Default is the phrase tab since that's the more
   common artifact users have access to. */
.ww-import-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.ww-import-tab {
  padding: 9px 10px;
  background: var(--bg-elev);
  border: 1px solid var(--line-2);
  color: var(--text-dim);
  font-family: inherit;
  font-size: 12px;
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.ww-import-tab:hover { color: var(--text); border-color: var(--text-muted); }
.ww-import-tab-active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(244, 183, 40, 0.06);
}

.ww-import-pane[hidden] { display: none; }

/* Textarea for the recovery phrase. Mono-spaced so 12 words break
   sensibly; auto-wraps with no horizontal scroll. */
.ww-import-textarea {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 2px;
  outline: none;
  resize: vertical;
  min-height: 56px;
  margin-bottom: 8px;
  line-height: 1.5;
}
.ww-import-textarea:focus { border-color: var(--accent); }

/* Per-pane help/warn blocks. The phrase warn is red because pasting
   a seed phrase is a higher-risk action; the priv-key tip is neutral. */
.ww-import-warn {
  margin: 4px 0 12px;
  padding: 12px 14px;
  background: rgba(248, 113, 113, 0.05);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-left: 3px solid var(--red);
  border-radius: 2px;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.55;
}
.ww-import-warn strong { color: var(--red); font-weight: 600; }
.ww-import-warn em { color: var(--text); font-style: normal; }
.ww-import-warn code { font-family: var(--mono); color: var(--accent); font-size: 11px; }

.ww-import-tip {
  margin: 4px 0 12px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (max-width: 520px) {
  .ww-addr-block { flex-direction: column; align-items: center; }
  .ww-addr-side { width: 100%; }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============================================
   SELECTION
   ============================================ */
::selection { background: var(--accent); color: #000; }

/* ============================================
   INSCRIPTION WALLET MODAL (commit-reveal flow)
   ============================================ */
.iw-modal-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.78);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.iw-modal {
  background: var(--bg-elev);
  border: 1px solid var(--line-2);
  width: 560px; max-width: 100%;
  /* 100dvh accounts for the iOS soft keyboard pushing the viewport up;
     90vh would leave the Confirm button below the keyboard with no scroll. */
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-family: var(--sans);
  color: var(--text);
}
.iw-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.iw-modal-title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.iw-modal-close {
  background: none; border: none; color: var(--text-dim);
  font-size: 22px; cursor: pointer; line-height: 1; padding: 4px 8px;
}
.iw-modal-close:hover { color: var(--text); }

.iw-modal-body { padding: 8px 22px 22px; }
.iw-step {
  display: grid; grid-template-columns: 28px 1fr; gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0.45;
  transition: opacity 0.2s;
}
.iw-step:last-child { border-bottom: none; }
.iw-step-active, .iw-step-done { opacity: 1; }

.iw-step-num {
  width: 28px; height: 28px;
  border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px;
  color: var(--text-dim);
}
.iw-step-active .iw-step-num {
  border-color: var(--accent); color: var(--accent);
}
.iw-step-done .iw-step-num {
  border-color: var(--green); color: var(--green);
}
.iw-step-title {
  font-weight: 600; font-size: 14px; margin-bottom: 8px;
}
.iw-step-body { font-size: 13px; color: var(--text-dim); line-height: 1.55; }
.iw-step-body strong { color: var(--text); font-weight: 500; }

.iw-addr-box {
  margin: 12px 0;
  display: flex; gap: 8px; align-items: stretch;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  padding: 10px 12px;
}
.iw-addr {
  flex: 1; font-family: var(--mono); font-size: 12px;
  color: var(--text); word-break: break-all;
}
.iw-copy {
  background: transparent; border: 1px solid var(--line-2);
  color: var(--text-dim); padding: 4px 10px;
  font-size: 11px; cursor: pointer;
  font-family: var(--mono);
}
.iw-copy:hover { color: var(--accent); border-color: var(--accent); }

.iw-hint { color: var(--text-muted); font-size: 12px; margin-top: 10px; }

.iw-txid-input {
  display: block; width: 100%; margin: 12px 0;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  color: var(--text); padding: 10px 12px;
  font-family: var(--mono); font-size: 12px;
}
.iw-txid-input:focus { outline: none; border-color: var(--accent); }

.iw-look-up, .iw-broadcast {
  background: var(--accent); color: #000;
  border: none; padding: 9px 16px;
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  cursor: pointer;
}
.iw-look-up:disabled, .iw-broadcast:disabled {
  background: var(--line-2); color: var(--text-muted); cursor: not-allowed;
}
.iw-look-up:hover:not(:disabled), .iw-broadcast:hover:not(:disabled) {
  background: var(--accent-dim);
}

.iw-reveal-preview { margin: 12px 0; }
.iw-kv {
  display: flex; justify-content: space-between;
  font-size: 12px; padding: 4px 0;
}
.iw-kv span { color: var(--text-dim); }
.iw-kv strong { color: var(--text); font-weight: 500; }

.iw-mono { font-family: var(--mono); font-size: 12px; color: var(--accent); word-break: break-all; }

.iw-error { color: var(--red); font-size: 12px; margin-top: 8px; min-height: 1.2em; }

/* ============================================
   IW · in-browser fund+sign flow (v3)
   ============================================ */
.iw-primary-btn {
  background: var(--accent); color: #000;
  border: none; padding: 12px 16px;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  cursor: pointer;
  width: 100%;
  border-radius: 2px;
  transition: background 0.15s ease;
}
.iw-primary-btn:hover:not(:disabled) { background: #fff; }
.iw-primary-btn:disabled {
  background: var(--line-2);
  color: var(--text-muted);
  cursor: default;
}

/* Password unlock prompt (only shown when wallet is encrypted) */
.iw-pwd-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 8px 8px;
  gap: 12px;
}
.iw-pwd-icon { font-size: 32px; line-height: 1; }
.iw-pwd-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.iw-pwd-hint {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 360px;
}
.iw-pwd-input {
  width: 100%;
  max-width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  padding: 11px 14px;
  border-radius: 2px;
  outline: none;
}
.iw-pwd-input:focus { border-color: var(--accent); }
.iw-pwd-prompt .iw-primary-btn { max-width: 320px; }

/* Confirm screen */
.iw-confirm {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 12px 0 8px;
}
.iw-confirm-headline {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.iw-confirm-sub {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
  margin-top: -10px;
}
.iw-confirm-cost {
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.iw-kv-total {
  border-top: 1px solid var(--line);
  padding-top: 10px !important;
  margin-top: 6px;
}
.iw-kv-total strong { color: var(--accent) !important; font-size: 14px !important; }
.iw-balance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  padding: 0 4px;
}
.iw-balance-label { color: var(--text-dim); letter-spacing: 0.02em; }
.iw-balance-row strong { color: var(--text); font-weight: 500; }
.iw-confirm-foot {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.02em;
  margin-top: 4px;
}

/* ============================================
   IW · gas selector (mint/deploy/transfer)
   ============================================ */
.iw-gas-picker {
  margin: 4px 0 8px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.iw-gas-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.iw-gas-head .iw-gas-sub {
  text-transform: none;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.iw-gas-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.iw-gas-btn {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  padding: 8px 4px;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.15s ease;
  text-align: center;
}
.iw-gas-btn:hover {
  border-color: var(--text-dim);
}
.iw-gas-btn-active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  font-weight: 600;
}
.iw-gas-custom-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.iw-gas-custom-wrap input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 2px;
}
.iw-gas-custom-hint {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
}
.iw-gas-foot {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 8px;
  letter-spacing: 0.01em;
}

/* Success state */
.iw-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px 16px;
  gap: 10px;
}
.iw-success-mark {
  font-size: 38px;
  color: var(--green);
  width: 64px; height: 64px;
  border: 2px solid var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.iw-success-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.iw-success-sub {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 360px;
  margin-bottom: 10px;
}
.iw-success-kv {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 360px;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: 2px;
}
.iw-success-kv span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.iw-success-kv code { font-size: 11px; }

/* ============================================
   BULK MINT progress modal (N parallel mints)
   ============================================ */
.iw-bulk-overall {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.04em;
}
.iw-bulk-overall.iw-bulk-ok      { color: var(--green); }
.iw-bulk-overall.iw-bulk-partial { color: var(--accent); }
.iw-bulk-overall.iw-bulk-allfail { color: var(--red); }
.iw-bulk-list {
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 50vh;
  overflow-y: auto;
}
.iw-bulk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.iw-bulk-num {
  color: var(--text-dim);
  letter-spacing: 0.04em;
  min-width: 40px;
}
.iw-bulk-status {
  color: var(--text-muted);
  font-size: 11.5px;
}
.iw-bulk-row.iw-bulk-done {
  border-left: 3px solid var(--green);
}
.iw-bulk-row.iw-bulk-done .iw-bulk-status {
  color: var(--green);
}
.iw-bulk-row.iw-bulk-fail {
  border-left: 3px solid var(--red);
}
.iw-bulk-row.iw-bulk-fail .iw-bulk-status {
  color: var(--red);
}
.iw-modal-body > #bulkClose {
  margin: 18px;
  width: calc(100% - 36px);
}

/* ============================================
   PHONE OPTIMIZATIONS (<=480px)
   Targeted overrides for the smallest screens. Bigger breakpoints
   (640, 720, 820, 980) handle tablets above; this block tightens the
   things that still cramp on a 360-420px phone.
   ============================================ */
@media (max-width: 480px) {
  /* Hero spacing: less wasted vertical above the fold. */
  .hero { padding: 96px 20px 56px; }
  .section { padding: 56px 20px; }

  /* Gas selector: 2x2 instead of 1x4. With 4 columns and ~310px of
     modal-body width, button labels like "Custom"/"Medium" truncate
     or wrap. 2x2 gives every button ~140px and lets labels stay
     full-size + readable. */
  .iw-gas-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .iw-gas-btn { font-size: 12px; padding: 10px 6px; }

  /* Inscribe modal: drop backdrop padding from 24px → 12px so the
     modal itself has more room on narrow phones. */
  .iw-modal-backdrop { padding: 12px; }
  .iw-modal-head { padding: 14px 16px; }

  /* Wallet modal head: tighten gap so the close button doesn't crowd
     the title on narrow screens. */
  .wallet-modal-head { padding: 14px 16px; }

  /* Font-size floor: anything below 12px is hard to read on a phone.
     The 10/11px labels on data-dense rows get bumped up. */
  .iw-gas-sub,
  .iw-success-kv span,
  .iw-success-kv code,
  .footer-bottom span,
  .legend,
  .table-footer { font-size: 12px; }
}
