/* StonQ Launchpad — Design System */
:root {
  --bg: #0a0a0f; --bg-card: #12121a; --bg-elevated: #1a1a26;
  --border: #1e1e2e; --border-hover: #2e2e44;
  --text: #e4e4ef; --text-muted: #8888a4; --text-dim: #55556a;
  --primary: #6366f1; --primary-hover: #818cf8; --primary-glow: rgba(99,102,241,.25);
  --accent: #a855f7; --accent-glow: rgba(168,85,247,.2);
  --green: #22c55e; --green-bg: rgba(34,197,94,.12);
  --amber: #f59e0b; --amber-bg: rgba(245,158,11,.12);
  --red: #ef4444; --red-bg: rgba(239,68,68,.12);
  --blue: #3b82f6; --blue-bg: rgba(59,130,246,.12);
  --gradient: linear-gradient(135deg, var(--primary), var(--accent));
  --radius: 12px; --radius-sm: 8px; --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,.4);
  --font: 'Inter', -apple-system, sans-serif;
  --font-display: 'Space Grotesk', var(--font);
  --transition: .2s cubic-bezier(.4,0,.2,1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; width: 100%; overflow-x: hidden; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh; width: 100%; overflow-x: hidden; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--primary); color: #fff; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 720px; }
.section { padding: 80px 0; }
.section-dark { background: var(--bg-card); }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.section-title { font-family: var(--font-display); font-size: 28px; font-weight: 700; }
.section-sub { color: var(--text-muted); font-size: 15px; max-width: 500px; }
.page-header { margin-bottom: 40px; }
.page-header h1 { font-family: var(--font-display); font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.page-header p { color: var(--text-muted); font-size: 16px; }
.page { display: none; } .page.active { display: block; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(10,10,15,.85); backdrop-filter: blur(16px) saturate(180%); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; height: 64px; gap: 32px; }
.nav-logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--text); }
.logo-mark { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: var(--gradient); color: #fff; border-radius: 6px; font-size: 14px; }
.logo-accent { color: var(--accent); }
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-link { padding: 8px 14px; border-radius: var(--radius-sm); color: var(--text-muted); font-size: 14px; font-weight: 500; transition: all var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--bg-elevated); }
.nav-mobile-toggle { display: none; background: none; border: none; color: var(--text); font-size: 22px; }
@media (max-width: 768px) {
  .nav-links { display: none; } .nav-mobile-toggle { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 16px; gap: 8px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; border: none; transition: all var(--transition); white-space: nowrap; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 2px 12px var(--primary-glow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 20px var(--primary-glow); }
.btn-primary:disabled { opacity: .5; pointer-events: none; }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--border-hover); color: var(--text); background: var(--bg-elevated); }
.badge-mock { background: var(--amber-bg); color: var(--amber); font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 700; }
.link-btn { background: none; border: none; color: var(--text-muted); font-size: 13px; text-decoration: underline; cursor: pointer; }

/* Hero */
.hero { position: relative; padding: 100px 0 80px; text-align: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, var(--primary-glow) 0%, transparent 60%), radial-gradient(ellipse at 80% 80%, var(--accent-glow) 0%, transparent 50%); pointer-events: none; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 999px; padding: 6px 16px; font-size: 13px; font-weight: 500; color: var(--text-muted); margin-bottom: 24px; }
.hero-title { font-family: var(--font-display); font-size: clamp(32px, 5vw, 56px); font-weight: 900; line-height: 1.15; margin-bottom: 20px; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { color: var(--text-muted); font-size: 18px; max-width: 560px; margin: 0 auto 32px; line-height: 1.6; }
.hero-cta { display: flex; gap: 16px; justify-content: center; margin-bottom: 48px; }
.hero-steps { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.step { text-align: center; }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-elevated); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; margin: 0 auto 6px; color: var(--primary); }
.step-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.step-arrow { color: var(--text-dim); font-size: 18px; }

/* Cards */
.vault-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.vault-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; transition: all var(--transition); position: relative; overflow: hidden; }
.vault-card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow); }
.vault-card.available { border-left: 3px solid var(--green); }
.vault-card.limited { border-left: 3px solid var(--amber); }
.vault-card.coming-soon { border-left: 3px solid var(--text-dim); opacity: .6; }
.vault-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.vault-card-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.status-badge { padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.status-badge.available { background: var(--green-bg); color: var(--green); }
.status-badge.limited { background: var(--amber-bg); color: var(--amber); }
.status-badge.coming-soon { background: var(--bg-elevated); color: var(--text-dim); }
.source-badge { border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .4px; line-height: 1; padding: 4px 8px; text-transform: uppercase; }
.source-preview { background: var(--bg-elevated); color: var(--text-muted); border: 1px solid var(--border); }
.source-devnet { background: var(--blue-bg); color: var(--blue); border: 1px solid rgba(59,130,246,.25); }
.source-live { background: var(--green-bg); color: var(--green); border: 1px solid rgba(34,197,94,.22); }
.vault-card-leverage { font-size: 28px; font-weight: 800; font-family: var(--font-display); margin: 8px 0; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.vault-card-asset { font-size: 14px; color: var(--text-muted); }
.vault-card-action { margin-top: 16px; }

/* Meme cards */
.meme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.meme-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition); cursor: pointer; }
.meme-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 24px var(--primary-glow); }
.meme-card-img { width: 100%; height: 180px; object-fit: cover; background: var(--bg-elevated); }
.meme-card-body { padding: 20px; }
.meme-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.meme-card-name { font-weight: 700; font-size: 16px; }
.meme-card-symbol { font-size: 13px; color: var(--accent); font-weight: 600; }
.meme-card-vault { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.meme-card-stats { display: flex; gap: 16px; }
.meme-stat { font-size: 12px; }
.meme-stat-label { color: var(--text-dim); }
.meme-stat-value { font-weight: 600; }
.progress-bar { height: 4px; border-radius: 2px; background: var(--bg-elevated); margin-top: 12px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--gradient); border-radius: 2px; transition: width .5s ease; }

/* Trade detail */
.trade-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; min-width: 0; }
@media (max-width: 900px) { .trade-layout { grid-template-columns: 1fr; } }
.trade-info { min-width: 0; max-width: 100%; }
.trade-info h2 { font-family: var(--font-display); font-size: 28px; margin-bottom: 4px; }
.trade-meta { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.meme-source-note { background: rgba(59,130,246,.08); border: 1px solid rgba(59,130,246,.18); border-radius: var(--radius-sm); color: var(--text-muted); display: inline-block; font-size: 12px; margin-top: -10px; padding: 8px 12px; }
.trade-chart-placeholder { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); height: 300px; display: flex; align-items: center; justify-content: center; color: var(--text-dim); margin-bottom: 24px; font-size: 14px; }
.trade-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; position: sticky; top: 88px; }
.trade-tabs { display: flex; gap: 4px; margin-bottom: 20px; }
.trade-tab { flex: 1; padding: 10px; text-align: center; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; background: var(--bg-elevated); color: var(--text-muted); border: none; transition: all var(--transition); }
.trade-tab.active { background: var(--gradient); color: #fff; }
.back-btn { margin-bottom: 24px; }
.pay-method-group { margin-bottom: 20px; }
.pay-method-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-method-btn { align-items: center; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-muted); display: flex; justify-content: space-between; min-height: 46px; padding: 8px 12px; transition: all var(--transition); }
.pay-method-btn span { color: var(--text); font-size: 14px; font-weight: 700; }
.pay-method-btn small { color: var(--text-dim); font-size: 10px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; }
.pay-method-btn.active { border-color: var(--primary); background: rgba(99,102,241,.12); box-shadow: 0 0 0 1px rgba(99,102,241,.18) inset; }
.pay-method-btn.active small { color: var(--primary-hover); }
.pay-method-sol.active { border-color: var(--amber); background: rgba(245,158,11,.12); box-shadow: 0 0 0 1px rgba(245,158,11,.2) inset; }
.pay-method-sol.active small { color: var(--amber); }
.pay-method-note { color: var(--text-dim); font-size: 11px; line-height: 1.45; margin-top: 8px; }
.trade-preview { padding: 10px; background: var(--bg-elevated); border-radius: var(--radius-sm); color: var(--text-dim); font-size: 11px; font-family: monospace; white-space: pre-wrap; overflow-wrap: break-word; }
.trades-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.trades-table th { text-align: left; padding: 8px 12px; color: var(--text-dim); font-weight: 600; border-bottom: 1px solid var(--border); }
.trades-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); }
.trades-table .buy { color: var(--green); } .trades-table .sell { color: var(--red); }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.form-input { width: 100%; padding: 10px 14px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 14px; transition: border-color var(--transition); outline: none; }
.form-input:focus { border-color: var(--primary); }
.form-textarea { min-height: 80px; resize: vertical; }
.form-hint { font-size: 12px; color: var(--text-dim); margin-top: 4px; display: block; }

/* Wizard */
.wizard { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.wizard-steps { display: flex; gap: 0; padding: 20px 24px; border-bottom: 1px solid var(--border); align-items: center; }
.wizard-step { display: flex; align-items: center; gap: 8px; }
.ws-num { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-elevated); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--text-dim); transition: all var(--transition); }
.wizard-step.active .ws-num { background: var(--primary); color: #fff; border-color: var(--primary); }
.wizard-step.done .ws-num { background: var(--green); color: #fff; border-color: var(--green); }
.ws-label { font-size: 13px; font-weight: 500; color: var(--text-dim); }
.wizard-step.active .ws-label { color: var(--text); }
.wizard-connector { flex: 1; height: 1px; background: var(--border); margin: 0 8px; min-width: 16px; }
.wizard-body { padding: 32px 24px; }
.wizard-panel { display: none; } .wizard-panel.active { display: block; }
.wizard-hint { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.wizard-vault-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.wizard-footer { display: flex; justify-content: space-between; padding: 16px 24px; border-top: 1px solid var(--border); }
.image-preview { width: 100%; height: 160px; background: var(--bg-elevated); border: 1px dashed var(--border); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--text-dim); font-size: 13px; margin-bottom: 20px; overflow: hidden; }
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.review-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.review-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.review-row:last-child { border: none; }
.review-label { color: var(--text-muted); }

.atomic-buy-note { background: rgba(99,102,241,.08); border: 1px solid rgba(99,102,241,.18); border-radius: var(--radius-sm); color: var(--text-muted); font-size: 13px; line-height: 1.6; margin-top: -4px; padding: 12px 14px; }
.atomic-buy-note strong { color: var(--text); }

/* Info boxes */
.info-box { padding: 16px 20px; border-radius: var(--radius-sm); font-size: 14px; }
.info-box-blue { background: var(--blue-bg); border: 1px solid rgba(59,130,246,.2); color: var(--blue); }

/* Filter */
.filter-bar { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.filter-btn { padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted); cursor: pointer; transition: all var(--transition); }
.filter-btn.active, .filter-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(99,102,241,.08); }

/* Connect wall */
.connect-wall { text-align: center; padding: 80px 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.connect-icon { font-size: 48px; margin-bottom: 16px; }
.connect-wall h3 { margin-bottom: 8px; }
.connect-wall p { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.wallet-inline-state { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-muted); font-size: 13px; margin-bottom: 12px; padding: 10px 12px; text-align: center; }
.portfolio-panel { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); margin: 0 auto 20px; max-width: 420px; overflow: hidden; text-align: left; }
.portfolio-row { display: flex; justify-content: space-between; gap: 20px; padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.portfolio-row:last-child { border-bottom: 0; }
.portfolio-row span { color: var(--text-muted); }
.portfolio-row strong { color: var(--text); font-weight: 700; }

/* Leaderboard table */
.lb-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lb-table th { text-align: left; padding: 12px 16px; color: var(--text-dim); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid var(--border); }
.lb-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.lb-table tr:hover { background: var(--bg-elevated); }
.lb-rank { font-weight: 800; font-size: 18px; color: var(--primary); width: 40px; }
.lb-name { font-weight: 600; }
.lb-symbol { color: var(--accent); font-size: 13px; }

/* Risk */
.risk-card { display: flex; flex-direction: column; gap: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.risk-item { display: flex; gap: 16px; padding: 24px; border-bottom: 1px solid var(--border); }
.risk-item:last-child { border: none; }
.risk-icon { font-size: 24px; flex-shrink: 0; }
.risk-item h4 { font-weight: 700; margin-bottom: 4px; }
.risk-item p { color: var(--text-muted); font-size: 14px; }

/* Docs */
.docs-layout { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
@media (max-width: 768px) { .docs-layout { grid-template-columns: 1fr; } .docs-nav { display: none; } }
.docs-nav { position: sticky; top: 88px; align-self: start; }
.docs-nav-title { font-weight: 700; font-size: 14px; margin-bottom: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .5px; }
.docs-nav-link { display: block; padding: 6px 12px; font-size: 14px; color: var(--text-muted); border-radius: var(--radius-sm); margin-bottom: 2px; transition: all var(--transition); }
.docs-nav-link:hover, .docs-nav-link.active { color: var(--text); background: var(--bg-elevated); }
.docs-content h1, .docs-content h2 { font-family: var(--font-display); margin-bottom: 16px; margin-top: 40px; }
.docs-content h1 { font-size: 28px; margin-top: 0; }
.docs-content h2 { font-size: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.docs-content h3 { margin: 20px 0 8px; font-size: 16px; }
.docs-content p, .docs-content ul, .docs-content ol { margin-bottom: 16px; color: var(--text-muted); font-size: 15px; line-height: 1.7; }
.docs-content li { margin-bottom: 6px; }
.docs-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 16px 0; }
.docs-table th { text-align: left; padding: 10px; background: var(--bg-elevated); font-weight: 600; border-bottom: 1px solid var(--border); }
.docs-table td { padding: 10px; border-bottom: 1px solid var(--border); }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px; }
.faq-q { font-weight: 700; margin-bottom: 8px; }
.faq-a { color: var(--text-muted); font-size: 14px; }

/* Explainer */
.explainer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 768px) { .explainer-grid { grid-template-columns: 1fr; } }
.tag { display: inline-block; background: var(--primary-glow); color: var(--primary); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .5px; }
.explainer-text h2 { font-family: var(--font-display); font-size: 32px; margin-bottom: 12px; }
.explainer-text p { color: var(--text-muted); font-size: 15px; line-height: 1.7; margin-bottom: 20px; }
.explainer-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.explainer-stat { background: var(--bg-elevated); padding: 16px; border-radius: var(--radius-sm); }
.explainer-stat-label { font-size: 12px; color: var(--text-dim); margin-bottom: 4px; }
.explainer-stat-value { font-size: 20px; font-weight: 700; font-family: var(--font-display); }
.curve-diagram { background: var(--bg-elevated); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(8px); z-index: 200; display: none; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); max-width: 520px; width: 90%; max-height: 85vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-size: 18px; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 24px; cursor: pointer; }
.modal-body { padding: 24px; color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.modal-body ul { padding-left: 20px; margin: 12px 0; }
.modal-body li { margin-bottom: 6px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); text-align: right; }

/* Footer */
.footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 48px 0 24px; margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; margin-bottom: 32px; flex-wrap: wrap; }
.footer-tagline { color: var(--text-dim); font-size: 14px; margin-top: 8px; }
.footer-links { display: flex; gap: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col-title { font-size: 12px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: var(--text-muted); }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-dim); flex-wrap: wrap; gap: 8px; }


/* Preview copy expansion */
.hero-microcopy { color: var(--text-dim); font-size: 13px; line-height: 1.6; max-width: 620px; margin: -18px auto 30px; }
.hero-microcopy a { color: var(--primary-hover); font-weight: 700; }
.hero-infra-card {
  align-items: center;
  background: linear-gradient(135deg, rgba(99,102,241,.16), rgba(34,197,94,.08));
  border: 1px solid rgba(99,102,241,.32);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(99,102,241,.14);
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 10px;
  justify-content: center;
  line-height: 1.6;
  margin: -12px auto 28px;
  max-width: 840px;
  padding: 14px 18px;
}
.hero-infra-card strong { color: var(--text); }
.hero-infra-kicker {
  background: rgba(34,197,94,.14);
  border-radius: 999px;
  color: #86efac;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 4px 9px;
  text-transform: uppercase;
}

.geo-banner { background: linear-gradient(90deg, rgba(99,102,241,.14), rgba(168,85,247,.12)); border-bottom: 1px solid rgba(99,102,241,.24); color: var(--text-muted); font-size: 13px; position: relative; z-index: 90; }
.geo-banner.hidden { display: none; }
.geo-banner-inner { align-items: center; display: flex; gap: 12px; justify-content: center; margin: 0 auto; max-width: 1200px; min-height: 38px; padding: 8px 24px; text-align: center; }
.geo-banner-inner a { color: var(--primary-hover); font-weight: 700; }
.geo-banner-close { align-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 999px; color: var(--text-muted); display: inline-flex; font-size: 16px; height: 24px; justify-content: center; line-height: 1; margin-left: 4px; width: 24px; }
.geo-banner-close:hover { color: var(--text); border-color: var(--border-hover); }

.why-grid, .trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.why-card, .trust-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; transition: all var(--transition); }
.why-card:hover, .trust-card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow); }
.why-icon { align-items: center; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 12px; display: flex; font-size: 22px; height: 44px; justify-content: center; margin-bottom: 16px; width: 44px; }
.why-card h3 { font-family: var(--font-display); font-size: 18px; margin-bottom: 8px; }
.why-card p { color: var(--text-muted); font-size: 14px; line-height: 1.65; }

.vs-table-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow-x: auto; }
.vs-table { border-collapse: collapse; min-width: 680px; width: 100%; }
.vs-table th, .vs-table td { border-bottom: 1px solid var(--border); padding: 14px 16px; text-align: left; }
.vs-table th { background: rgba(255,255,255,.02); color: var(--text-dim); font-size: 12px; letter-spacing: .5px; text-transform: uppercase; }
.vs-table td { color: var(--text-muted); font-size: 14px; }
.vs-table tr:last-child td { border-bottom: 0; }
.vs-good { color: var(--text) !important; font-weight: 700; }
.vs-disclaimer, .trust-disclaimer { color: var(--text-dim); font-size: 13px; margin-top: 14px; }

.trust-stat { color: var(--text); font-family: var(--font-display); font-size: 26px; font-weight: 800; line-height: 1.1; margin-bottom: 8px; }
.trust-label { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

.wizard-tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.wizard-tips span { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-muted); font-size: 12px; line-height: 1.5; padding: 10px 12px; }
.wizard-footnote { color: var(--text-dim); font-size: 12px; line-height: 1.6; margin-top: 14px; }

.page-header-meta { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.meta-pill { background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px; color: var(--text-muted); font-size: 12px; font-weight: 700; padding: 5px 10px; }

.vault-convert-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.vault-convert-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.vault-convert-card h2 { font-family: var(--font-display); font-size: 28px; margin-bottom: 8px; }
.vault-convert-copy { color: var(--text-muted); font-size: 14px; line-height: 1.7; margin-bottom: 22px; }
.vault-convert-tabs { margin-bottom: 20px; }
.vault-convert-info { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 900px) { .vault-convert-layout { grid-template-columns: 1fr; } }

.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.footer-social a, .footer-sublink { color: var(--text-dim); font-size: 12px; }
.footer-social a:hover, .footer-sublink:hover { color: var(--text); }
.status-line { align-items: center; color: var(--text-dim); display: flex; font-size: 12px; gap: 8px; margin-top: 8px; }
.status-line span { background: var(--green); border-radius: 999px; box-shadow: 0 0 10px rgba(34,197,94,.35); display: inline-block; height: 7px; width: 7px; }
.footer-col span.footer-sublink { display: block; line-height: 1.5; }
.footer-col .link-btn.footer-sublink { padding: 0; text-align: left; text-decoration: none; }

@media (max-width: 768px) {
  .why-grid, .trust-grid, .wizard-tips { grid-template-columns: 1fr; }
  .geo-banner-inner { align-items: flex-start; flex-direction: column; gap: 6px; padding: 10px 16px; text-align: left; }
  .geo-banner-close { position: absolute; right: 12px; top: 10px; }
  .hero-microcopy { margin-top: -18px; padding: 0 8px; }
  .hero-infra-card { align-items: flex-start; justify-content: flex-start; margin-top: -10px; padding: 12px; text-align: left; }
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.page.active { animation: fadeIn .3s ease; }
.notice { display: inline-block; background: var(--amber-bg); border: 1px solid rgba(245,158,11,.2); color: var(--amber); padding: 8px 16px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; margin-top: 16px; }

/* ── Launch Curve Chart (LCC) ──────────────────────────────────────── */
.launch-curve-chart { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; max-width: 100%; contain: layout paint; }
.lcc-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.lcc-title { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.lcc-intervals { display: flex; gap: 4px; }
.lcc-interval-btn { padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--bg-elevated); color: var(--text-muted); border: 1px solid var(--border); cursor: pointer; transition: all var(--transition); }
.lcc-interval-btn:hover { color: var(--text); border-color: var(--border-hover); }
.lcc-interval-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.lcc-chart-wrap { padding: 12px 16px 0; max-width: 100%; overflow: hidden; }
.lcc-main-chart, .lcc-volume-chart { max-width: 100%; overflow: hidden; position: relative; cursor: grab; overscroll-behavior: contain; }
.lcc-main-chart:active, .lcc-volume-chart:active { cursor: grabbing; }
.lcc-main-chart canvas, .lcc-volume-chart canvas { max-width: 100% !important; }
.lcc-main-chart .tv-lightweight-charts, .lcc-volume-chart .tv-lightweight-charts { max-width: 100% !important; overflow: hidden !important; pointer-events: auto; touch-action: none; }
.lcc-status { padding: 6px 16px 10px; font-size: 11px; color: var(--text-dim); }
.lcc-loading, .lcc-empty, .lcc-error { height: 300px; display: flex; align-items: center; justify-content: center; color: var(--text-dim); font-size: 14px; }
.lcc-error { color: var(--red); }
.lcc-graduated-banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: linear-gradient(90deg, rgba(34,197,94,.08) 0%, transparent 100%); border-bottom: 1px solid rgba(34,197,94,.15); }
.lcc-grad-icon { font-size: 24px; }
.lcc-grad-title { font-weight: 700; color: var(--green); font-size: 14px; }
.lcc-grad-sub { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.lcc-pool-addr { font-family: monospace; color: var(--text-muted); }

/* ── LCC Mobile QA ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .page-header { margin-bottom: 28px; }
  .trade-info h2 { font-size: 24px; }
  .trades-table { font-size: 12px; table-layout: fixed; }
  .trades-table th, .trades-table td { padding: 8px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lcc-header { flex-wrap: wrap; gap: 8px; }
  .lcc-title { font-size: 11px; }
  .lcc-interval-btn { padding: 3px 8px; font-size: 11px; }
  .lcc-loading, .lcc-empty, .lcc-error { height: 200px; font-size: 13px; }
  .lcc-chart-wrap { padding: 10px 10px 0; }
  .lcc-graduated-banner { padding: 10px 12px; }
  .lcc-grad-icon { font-size: 20px; }
}

.explainer-note {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  background: rgba(99,102,241,.08);
  border: 1px solid rgba(99,102,241,.18);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

/* Devnet staging wallet-write status — hidden behind runtime flag in JS */
.staging-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, .22);
  background: rgba(15, 23, 42, .42);
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}
.staging-status.ok {
  border-color: rgba(34, 197, 94, .32);
  background: rgba(34, 197, 94, .08);
  color: #22c55e;
}
.staging-status.warn {
  border-color: rgba(245, 158, 11, .32);
  background: rgba(245, 158, 11, .08);
  color: #f59e0b;
}
.staging-status.error {
  border-color: rgba(239, 68, 68, .32);
  background: rgba(239, 68, 68, .08);
  color: #ef4444;
}


.market-tape-section { padding-top: 54px; }
.ticker-source { color: var(--text-dim); font-size: 12px; border: 1px solid var(--border); border-radius: 999px; padding: 6px 10px; background: var(--bg-card); }
.market-ticker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ticker-card { background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02)); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; overflow: hidden; position: relative; }
.ticker-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--text-dim); opacity: .75; }
.ticker-card.up::before { background: var(--green); }
.ticker-card.down::before { background: var(--red); }
.ticker-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ticker-symbol { font-family: var(--font-display); font-size: 18px; font-weight: 800; }
.ticker-vault { color: var(--text-muted); font-size: 11px; border: 1px solid var(--border); border-radius: 999px; padding: 3px 7px; }
.ticker-price { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.ticker-move { font-weight: 700; font-size: 13px; }
.ticker-move.up { color: var(--green); }
.ticker-move.down { color: var(--red); }
.ticker-levered { color: var(--text-muted); font-size: 12px; margin-top: 4px; }
.ticker-skeleton { grid-column: 1 / -1; color: var(--text-muted); border: 1px dashed var(--border); border-radius: var(--radius-lg); padding: 18px; text-align: center; }
@media (max-width: 900px) { .market-ticker { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .market-ticker { grid-template-columns: 1fr; } .ticker-source { margin-top: 8px; } }


/* Launchpad-style token cards: logo + MC/volume/change/progress, following common pump/DexScreener/GMGN discovery patterns. */
.meme-card-hero { height: 156px; background: radial-gradient(circle at 25% 20%, var(--primary-glow), transparent 35%), radial-gradient(circle at 80% 10%, var(--accent-glow), transparent 32%), var(--bg-elevated); display: flex; align-items: flex-end; justify-content: space-between; padding: 16px; }
.meme-card-logo { width: 78px; height: 78px; border-radius: 22px; border: 1px solid rgba(255,255,255,.16); overflow: hidden; background: var(--bg-card); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; }
.meme-card-logo-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.meme-card-logo-fallback { font-family: var(--font-display); font-size: 18px; font-weight: 900; color: var(--text); letter-spacing: -.5px; }
.meme-card-badges { display: flex; align-items: flex-end; flex-direction: column; gap: 8px; }
.meme-card-change { border-radius: 999px; font-size: 12px; font-weight: 800; padding: 5px 9px; white-space: nowrap; }
.meme-card-change.up { color: var(--green); background: var(--green-bg); }
.meme-card-change.down { color: var(--red); background: rgba(239,68,68,.12); }
.meme-card-vault { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.meme-card-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.meme-stat { background: rgba(255,255,255,.035); border: 1px solid var(--border); border-radius: 10px; padding: 9px; min-width: 0; }
.meme-stat-value { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meme-card-progress-row { color: var(--text-muted); display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; margin-top: 14px; }
@media (max-width: 560px) { .meme-card-hero { height: 132px; } .meme-card-logo { width: 64px; height: 64px; border-radius: 18px; } }


.form-label-row { align-items: baseline; display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.form-label-row .form-label { margin-bottom: 0; }
.trade-balance { color: var(--text-dim); font-size: 11px; white-space: nowrap; }
.amount-preset-row, .slippage-preset-row { display: grid; gap: 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 8px; }
.amount-preset, .slippage-preset { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 999px; color: var(--text-muted); cursor: pointer; font-size: 12px; font-weight: 800; padding: 7px 8px; transition: all var(--transition); }
.amount-preset:hover, .slippage-preset:hover { border-color: var(--border-hover); color: var(--text); }
.slippage-preset.active { background: rgba(99,102,241,.14); border-color: var(--primary); color: var(--primary-hover); box-shadow: 0 0 0 1px rgba(99,102,241,.16) inset; }
@media (max-width: 420px) { .amount-preset-row, .slippage-preset-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Token detail header — mature launchpad style */
.token-detail-header { align-items: center; display: flex; gap: 16px; margin-bottom: 10px; }
.token-detail-logo { flex: 0 0 auto; height: 64px; width: 64px; }
.token-detail-logo .meme-card-logo-img, .token-detail-logo .meme-card-logo-fallback { border-radius: 18px; height: 64px; width: 64px; }
.token-detail-title-wrap { min-width: 0; }
.token-detail-title-wrap h2 { align-items: baseline; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.token-detail-title-wrap h2 span { color: var(--accent); font-size: 16px; }
.token-detail-card { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015)); border: 1px solid var(--border); border-radius: var(--radius-lg); display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr); margin: 18px 0 16px; padding: 16px; }
.token-detail-stats { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.token-detail-stat { background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.055); border-radius: 12px; padding: 11px 12px; }
.token-detail-stat span { color: var(--text-dim); display: block; font-size: 11px; font-weight: 800; letter-spacing: .35px; margin-bottom: 5px; text-transform: uppercase; }
.token-detail-stat strong { color: var(--text); display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.token-detail-actions { display: flex; flex-direction: column; gap: 10px; justify-content: center; min-width: 0; }
.token-contract-row { align-items: center; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.055); border-radius: 12px; display: flex; gap: 8px; min-width: 0; padding: 10px 12px; }
.token-contract-row span { color: var(--text-dim); flex: 0 0 auto; font-size: 11px; font-weight: 800; letter-spacing: .35px; text-transform: uppercase; }
.token-contract-row code { color: var(--text-muted); flex: 1 1 auto; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.token-copy-btn { background: rgba(99,102,241,.14); border: 1px solid rgba(99,102,241,.35); border-radius: 999px; color: var(--primary-hover); cursor: pointer; flex: 0 0 auto; font-size: 11px; font-weight: 800; padding: 5px 9px; }
.token-copy-btn:hover { border-color: var(--primary); color: var(--text); }
.token-explorer-link { text-decoration: none; }
.token-preview-hint { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 999px; color: var(--text-dim); flex: 0 0 auto; font-size: 11px; font-weight: 800; padding: 5px 9px; text-transform: none; }
.token-link-row { display: flex; flex-wrap: wrap; gap: 8px; }
.token-link-pill { background: rgba(255,255,255,.035); border: 1px solid var(--border); border-radius: 999px; color: var(--text-muted); font-size: 12px; font-weight: 800; padding: 7px 11px; text-decoration: none; }
.token-link-pill:hover { border-color: var(--border-hover); color: var(--text); }
.token-link-empty { color: var(--text-dim); font-size: 12px; padding: 7px 0; }
.dex-pool-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; min-width: 0; }
.dex-pool-row { align-items: center; background: rgba(34,197,94,.045); border: 1px solid rgba(34,197,94,.16); border-radius: 12px; display: flex; gap: 10px; justify-content: space-between; min-width: 0; padding: 10px 12px; }
.dex-pool-meta { display: grid; gap: 2px; min-width: 0; }
.dex-pool-meta span { color: var(--text-dim); font-size: 10px; font-weight: 900; letter-spacing: .4px; text-transform: uppercase; }
.dex-pool-meta strong { color: var(--text); font-size: 12px; }
.dex-pool-meta code { color: var(--text-muted); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dex-pool-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
@media (max-width: 900px) { .token-detail-card { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .token-detail-header { align-items: flex-start; }
  .token-detail-logo, .token-detail-logo .meme-card-logo-img, .token-detail-logo .meme-card-logo-fallback { height: 52px; width: 52px; }
  .token-detail-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .token-contract-row { align-items: flex-start; flex-direction: column; }
  .token-copy-btn { align-self: flex-start; }
  .dex-pool-row { align-items: flex-start; flex-direction: column; }
  .dex-pool-actions { justify-content: flex-start; }
}

/* xStocks relationship proof card */
.rwa-proof-card { background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(14,165,233,.06)); border: 1px solid rgba(99,102,241,.24); border-radius: var(--radius-lg); margin: 22px 0; max-width: 860px; padding: 18px 20px; }
.rwa-proof-kicker { color: var(--primary-hover); font-size: 11px; font-weight: 900; letter-spacing: .5px; margin-bottom: 8px; text-transform: uppercase; }
.rwa-proof-card strong { color: var(--text); display: block; font-size: 16px; margin-bottom: 8px; }
.rwa-proof-card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin: 0 0 8px; }
.rwa-proof-card .rwa-proof-note { color: var(--text-dim); font-size: 12px; }
.rwa-proof-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rwa-proof-links a { background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 999px; color: var(--text-muted); font-size: 12px; font-weight: 800; padding: 7px 11px; text-decoration: none; }
.rwa-proof-links a:hover { border-color: var(--border-hover); color: var(--text); }

/* Meme price zero-count notation */
.zero-count-price { white-space: nowrap; }
.zero-count-price sub { bottom: -.15em; color: var(--text-dim); font-size: .72em; margin: 0 1px; position: relative; vertical-align: baseline; }

/* Public media upload */
.media-upload-row { align-items: center; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) auto; margin-top: 8px; }
.media-upload-row input[type="file"] { color: var(--text-muted); font-size: 13px; }
@media (max-width: 640px) { .media-upload-row { grid-template-columns: 1fr; } }
