/* Purrpy v2: Hyperliquid mint theme. Landing + app share these tokens. */
:root {
  --bg: #04060C;
  --bg2: #0B1216;
  --card: #0F1A1F;
  --card2: #13222A;
  --line: #1F2E33;
  --accent: #50D2C1;
  --bright: #97FCE4;
  --text: #F6FEFD;
  --muted: #949E9C;
  --red: #ED7088;
  --glow: #50D2C1;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 20px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
h1, h2, h3, p { margin: 0; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--bright); outline-offset: 2px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.neg { color: var(--red); }
.pos { color: var(--accent); }
.cap { text-transform: capitalize; }
.center { text-align: center; }
.ico { display: inline-flex; vertical-align: middle; }
.mascot { display: inline-flex; line-height: 0; }
.mascot-img { display: block; }

/* ---------- buttons ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 10px 20px; font-weight: 500; font-size: 15px; line-height: 1.2; transition: transform .15s, background .15s, border-color .15s, box-shadow .15s; white-space: nowrap; }
.pill-white { background: #fff; color: #0A1014; }
.pill-white:hover:not(:disabled) { background: var(--bright); box-shadow: 0 0 0 4px rgba(80,210,193,.18); }
.pill-dark { background: #121D22; color: var(--text); border-color: var(--line); }
.pill-dark:hover:not(:disabled) { background: #182830; border-color: #2B4249; }
.pill-lg { padding: 16px 28px; font-size: 17px; }
.pill-sm { padding: 7px 14px; font-size: 13.5px; }
.pill-block { width: 100%; padding: 14px 20px; }
.pill:active:not(:disabled) { transform: scale(.98); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); padding: 0; }
.icon-btn:hover { background: #162329; color: var(--text); }

/* ---------- landing nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 14px clamp(16px, 3vw, 48px); background: rgba(4,6,12,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand-logo { display: inline-flex; line-height: 0; }
.nav-links { display: flex; gap: 36px; }
.nav-links a { color: var(--muted); font-size: 15px; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav .pill { justify-self: end; }

/* ---------- landing sections ---------- */
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.section { padding: clamp(80px, 12vw, 160px) 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--bg2); }
.display { font-size: clamp(40px, 7vw, 88px); line-height: 1.02; letter-spacing: -.045em; font-weight: 700; text-wrap: balance; }
.display-md { font-size: clamp(36px, 5.6vw, 72px); line-height: 1.04; letter-spacing: -.04em; font-weight: 700; text-align: center; text-wrap: balance; }
.lead { font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); max-width: 640px; margin-inline: auto; text-wrap: balance; }
.sub { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); text-align: center; max-width: 660px; margin: 22px auto 0; text-wrap: balance; }
.sub.left { text-align: left; margin: 26px 0 0; max-width: 520px; }
.mono-note { font-family: var(--mono); font-size: 12.5px; color: var(--muted); text-align: center; margin: 28px auto 0; max-width: 760px; display: flex; gap: 10px; align-items: center; justify-content: center; }
.dot-mint { width: 8px; height: 8px; border-radius: 3px; background: var(--accent); flex: none; box-shadow: 0 0 10px var(--accent); }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }

/* hero */
.hero { position: relative; overflow: hidden; text-align: center; padding: clamp(40px, 7vw, 90px) 24px clamp(80px, 10vw, 140px); background: radial-gradient(ellipse at 50% 18%, #0C1A1F 0%, var(--bg) 62%); }
.hero-glow { position: absolute; left: 50%; top: 4%; width: min(860px, 120vw); aspect-ratio: 1; transform: translateX(-50%); background: radial-gradient(circle, color-mix(in srgb, var(--glow) 28%, transparent) 0%, transparent 62%); filter: blur(30px); pointer-events: none; }
.hero-mascot-wrap { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; margin-bottom: 38px; min-height: 420px; }
.hero-mascot { animation: bob 6s ease-in-out infinite; filter: drop-shadow(0 20px 50px color-mix(in srgb, var(--glow) 35%, transparent)); line-height: 0; }
.hero-mascot .hero-img { width: clamp(250px, 32vw, 400px); height: auto; }
.hero-floor { width: 230px; height: 26px; margin-top: 18px; border-radius: 50%; background: radial-gradient(ellipse, rgba(0,0,0,.7), transparent 70%); animation: floor 6s ease-in-out infinite; }
.hero .display, .hero .lead, .hero .cta-row { position: relative; z-index: 2; }
.hero .display { max-width: 1000px; margin-inline: auto; margin-bottom: 26px; }
.hero-drift { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.drift { position: absolute; opacity: .3; filter: saturate(.7) blur(.4px); animation: drift 18s ease-in-out infinite; line-height: 0; }
.drift.d1 { animation-duration: 23s; animation-direction: reverse; }
.drift.d2 { animation-duration: 28s; opacity: .22; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-18px) rotate(1.2deg); } }
@keyframes floor { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(.82); opacity: .55; } }
@keyframes drift { 0%, 100% { transform: translate(0, 0) rotate(-4deg); } 33% { transform: translate(14px, -22px) rotate(5deg); } 66% { transform: translate(-12px, 12px) rotate(-2deg); } }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.model-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 64px; }
.model-card { padding: 22px; display: flex; flex-direction: column; min-height: 240px; }
.glyph { display: inline-flex; height: 44px; margin-bottom: 22px; }
.model-card h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; flex: 1; }
.model-foot { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 22px; display: grid; gap: 4px; }
.served { color: var(--accent); font-size: 17px; }

/* split + phone */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: center; }
.split-copy .display-md, .split .display-md { text-align: left; }
.phone { background: #0C161B; border: 1px solid var(--line); border-radius: 32px; padding: 22px; display: grid; gap: 14px; box-shadow: 0 40px 90px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.02) inset; max-width: 560px; width: 100%; }
.phone-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.chat-avatar { line-height: 0; }
.tag-example { margin-left: auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
.post { background: #0F1A1F; border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 10px; min-width: 0; }
.post-demo { background: #101D23; }
.post-dim { opacity: .75; }
.post-top, .post-who { font-size: 14px; }
.post-top { display: flex; align-items: center; gap: 10px; }
.post-who { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 2px; }
.post-text { font-size: 15.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-link { color: var(--muted); padding: 2px 6px; border-radius: 6px; }
.post-link:hover { color: var(--bright); background: #162329; }
.post-stats { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.post-compact { padding: 12px; background: transparent; }
.av { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; background: #1B2E36; color: var(--bright); font-weight: 700; flex: none; width: 40px; height: 40px; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-a { background: linear-gradient(135deg, #2A5C8A, #1B3350); font-size: 14px; }
.av-b { background: linear-gradient(135deg, #5A4A8A, #2B2250); font-size: 14px; }
.bubble { display: flex; gap: 12px; padding: 4px 8px 4px 4px; align-items: flex-start; }
.bubble-av { flex: none; line-height: 0; margin-top: 2px; }
.bubble-main { min-width: 0; }
.bubble p { font-size: 15px; line-height: 1.45; margin-top: 6px; overflow-wrap: anywhere; }
.bubble-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bubble-bad p { color: #f3c0ca; }
.bubble-wait { opacity: .7; }
.chip { display: inline-block; font-family: var(--mono); font-weight: 700; font-size: 12.5px; letter-spacing: .02em; border-radius: 8px; padding: 4px 10px; line-height: 1.3; }
.chip-long { background: rgba(80,210,193,.14); color: var(--bright); border: 1px solid rgba(80,210,193,.4); }
.chip-short { background: rgba(237,112,136,.14); color: var(--red); border: 1px solid rgba(237,112,136,.4); }
.chip-skip { background: #151F24; color: var(--muted); border: 1px solid var(--line); }
.mini-tag { display: inline-block; font-family: var(--mono); font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; margin-left: 6px; text-transform: lowercase; }
.mini-bad { color: var(--red); border-color: rgba(237,112,136,.4); }
.mini-ok { color: var(--bright); border-color: rgba(80,210,193,.4); }

/* flow */
.flow { display: grid; grid-template-columns: 1fr 110px 0.8fr 110px 1fr; align-items: center; gap: 4px; margin-top: 72px; }
.flow-card { display: grid; gap: 10px; align-content: start; }
.flow-card p { overflow-wrap: anywhere; }
.flow-agent { justify-items: center; text-align: center; border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 0 80px color-mix(in srgb, var(--accent) 14%, transparent); padding-block: 28px; }
.flow-mascot { line-height: 0; animation: bob 7s ease-in-out infinite; }
.arrow { display: grid; justify-items: center; gap: 8px; color: #6FA9A2; font-size: 13px; }
.arrow svg { width: 100%; height: 20px; }
.arrow span { color: var(--muted); }
.pos-head { display: flex; align-items: center; gap: 10px; }
.hl-mark { width: 28px; height: 28px; border-radius: 9px; background: radial-gradient(circle at 35% 30%, var(--bright), var(--accent) 60%, #1B7F7C); box-shadow: 0 0 20px rgba(80,210,193,.35); }
.pos-row { display: flex; justify-content: space-between; align-items: center; }
.pos-pnl { color: var(--bright); font-weight: 700; font-size: 20px; }
.pos-meta { display: flex; gap: 16px; font-size: 12px; color: var(--muted); }
.spark { width: 100%; height: 70px; margin-top: 4px; }

/* rules card (shared with app) */
.rules-card { padding: 8px 28px 28px; box-shadow: 0 40px 90px rgba(0,0,0,.45); }
.trow { display: flex; align-items: center; gap: 18px; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--line); cursor: pointer; flex-direction: row-reverse; }
.tcopy { display: grid; gap: 2px; flex: 1; min-width: 0; }
.tcopy strong { font-weight: 600; font-size: 16px; }
.tcopy > span { color: var(--muted); font-size: 14px; }
.tgl { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 46px; height: 26px; margin: 0; border-radius: 999px; background: #26343A; cursor: pointer; transition: background .2s; }
.tgl::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #9AA7A5; transition: transform .2s, background .2s; }
.tgl:checked { background: var(--accent); }
.tgl:checked::after { transform: translateX(20px); background: #05221F; }
.tgl:disabled { opacity: .5; cursor: not-allowed; }
.stats4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; }
.stats4 > div { background: #0B1418; border-radius: 14px; padding: 12px 14px; display: grid; gap: 4px; min-width: 0; }
.stats4 span { color: var(--muted); font-size: 12.5px; }
.stats4 b { font-size: 19px; font-weight: 500; }
.stats4-sm { margin-top: 14px; }
.stats4-sm b { font-size: 16px; }
.stats3 { grid-template-columns: repeat(3, 1fr); }

/* venues */
.venue-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 64px; }
.venue { display: grid; gap: 12px; align-content: start; min-height: 220px; padding: 28px; }
.venue h3 { font-size: 24px; letter-spacing: -.02em; margin-top: 18px; }
.badge { justify-self: start; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; border-radius: 999px; padding: 4px 10px; border: 1px solid var(--line); text-transform: uppercase; }
.badge-live { color: var(--bright); background: rgba(80,210,193,.12); border-color: rgba(80,210,193,.45); }
.badge-soon { color: var(--muted); }
.badge-test { color: var(--bright); background: rgba(80,210,193,.1); border-color: rgba(80,210,193,.35); }
.badge-main { color: #FFD27A; background: rgba(255,210,122,.1); border-color: rgba(255,210,122,.4); }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 64px; }
.price { display: flex; flex-direction: column; gap: 20px; padding: 30px; }
.price-rec { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 70px rgba(80,210,193,.1); }
.price-top { display: flex; align-items: center; justify-content: space-between; min-height: 28px; gap: 8px; }
.price-top h3 { font-size: 21px; font-weight: 600; }
.badge-rec { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; background: var(--accent); color: #04211E; border-radius: 999px; padding: 4px 10px; }
.badge-cur { background: #fff; }
.price-amt b { font-size: 44px; letter-spacing: -.03em; font-weight: 700; }
.price-amt span { color: var(--muted); margin-left: 4px; }
.price ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1; color: #C6D1CF; font-size: 15px; }
.price li { position: relative; padding-left: 18px; }
.price li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* final + footer */
.final { text-align: center; }
.final-mascot { line-height: 0; margin-bottom: 20px; animation: bob 6s ease-in-out infinite; filter: drop-shadow(0 20px 40px rgba(80,210,193,.25)); }
.footer { border-top: 1px solid var(--line); padding: 56px 0 80px; }
.foot-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.foot-grid p { margin-top: 10px; }
.foot-links { display: flex; gap: 28px; color: var(--muted); }
.foot-links a:hover { color: var(--text); }
.legal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.legal h3 { color: var(--text); font-size: 15px; margin-bottom: 8px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ============================ APP ============================ */
body.in-app { background: var(--bg); }
.app-head { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px clamp(14px, 2.5vw, 32px); background: rgba(4,6,12,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.app-head-right { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.chip-btn { background: #121D22; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; color: var(--text); }
.chip-btn:hover { border-color: var(--accent); }
.kill { border: 1px solid rgba(237,112,136,.5); background: rgba(237,112,136,.1); color: var(--red); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.kill:hover:not(:disabled) { background: rgba(237,112,136,.2); }
.kill.on { background: var(--red); color: #1A0A0E; }
.banners { display: grid; }
.banner { display: flex; gap: 10px; align-items: center; padding: 8px clamp(14px, 2.5vw, 32px); font-size: 13.5px; border-bottom: 1px solid var(--line); }
.banner-warn { background: rgba(255,210,122,.08); color: #FFD27A; }
.banner-error { background: rgba(237,112,136,.1); color: var(--red); }
.banner-info { background: rgba(80,210,193,.07); color: var(--bright); }
.banner-inline { display: flex; gap: 10px; align-items: center; color: #FFD27A; margin-top: 18px; font-size: 14px; }
.app-body { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0; max-width: 1240px; margin: 0 auto; min-height: calc(100vh - 62px); }
.app-nav { position: sticky; top: 62px; align-self: start; display: grid; gap: 4px; padding: 24px 14px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; color: var(--muted); font-weight: 500; font-size: 15px; transition: background .15s, color .15s; }
.nav-item:hover { background: #101B20; color: var(--text); }
.nav-item.on { background: #13242B; color: var(--bright); }
.app-main { padding: 28px clamp(14px, 3vw, 40px) 80px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.035em; font-weight: 700; }
.page-head p { margin-top: 6px; }
.live { display: flex; align-items: center; gap: 8px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #4A5558; }
.live-dot.on { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.live-dot.wait { background: #FFD27A; }
.feed, .ev-list, .rule-list, .acct-list { display: grid; gap: 18px; }
.tl-item { display: grid; gap: 6px; max-width: 720px; }
.tl-item .post { border-radius: 18px; }
.tl-item .bubble { padding-left: 14px; margin-left: 12px; border-left: 2px solid var(--line); }
.tl-traded .bubble { border-left-color: var(--accent); }

.meter-wrap { max-width: 520px; margin-bottom: 20px; }
.meter-top { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.meter-top strong { font-size: 22px; }
.meter { height: 8px; border-radius: 99px; background: #17252B; overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--bright)); border-radius: 99px; transition: width .4s; }
.add-form { display: flex; align-items: center; gap: 10px; max-width: 520px; padding: 10px 10px 10px 18px; margin-bottom: 18px; border-radius: 999px; }
.add-form input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); font: inherit; outline: none; padding: 8px 0; }
.at { color: var(--muted); }
.upsell { display: flex; justify-content: space-between; align-items: center; gap: 16px; max-width: 520px; margin-bottom: 18px; border-color: rgba(80,210,193,.4); flex-wrap: wrap; }
.acct { display: flex; align-items: center; gap: 14px; max-width: 520px; padding: 14px 16px; }
.acct-who { display: grid; flex: 1; min-width: 0; }
.acct-who span { overflow: hidden; text-overflow: ellipsis; }

.ev { display: grid; gap: 14px; }
.ev-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ev-time { margin-left: auto; }
.ev-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.ev-post { border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.ev-reason { font-size: 15px; margin-bottom: 12px; overflow-wrap: anywhere; }
.kv { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; font-size: 13px; }
.kv > div { min-width: 0; }
.kv dt { color: var(--muted); font-size: 11.5px; margin-bottom: 2px; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.kv-col { grid-template-columns: 1fr; }
.status { font-family: var(--mono); font-size: 12px; border-radius: 6px; padding: 2px 8px; border: 1px solid var(--line); }
.status-ok { color: var(--bright); border-color: rgba(80,210,193,.4); background: rgba(80,210,193,.1); }
.status-bad { color: var(--red); border-color: rgba(237,112,136,.4); background: rgba(237,112,136,.1); }
.status-info { color: #FFD27A; border-color: rgba(255,210,122,.35); background: rgba(255,210,122,.08); }
.center-row { display: flex; justify-content: center; margin-top: 22px; }

/* forms */
.field { display: grid; gap: 7px; min-width: 0; }
.field-label { font-size: 13.5px; font-weight: 600; }
.field-hint { font-size: 12.5px; color: var(--muted); }
input[type=text], input[type=number], textarea, select { width: 100%; background: #0B1418; border: 1px solid var(--line); border-radius: 12px; color: var(--text); font: inherit; padding: 11px 14px; outline: none; transition: border-color .15s; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 96px; line-height: 1.45; }
input[type=number] { font-family: var(--mono); }
input[type=range] { width: 100%; accent-color: var(--accent); }
.range-row { display: flex; align-items: center; gap: 12px; padding-top: 8px; }
.range-row output { min-width: 34px; color: var(--bright); }
.editor { display: grid; gap: 20px; margin-bottom: 22px; border-color: rgba(80,210,193,.35); }
.editor-head, .editor-actions, .compose-head, .compose-actions, .rule-top, .rule-actions, .row-gap { display: flex; gap: 12px; align-items: center; }
.editor-head, .rule-top { justify-content: space-between; }
.editor-actions, .compose-actions { justify-content: flex-end; flex-wrap: wrap; }
.row-gap { flex-wrap: wrap; margin-top: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trows { background: #0B1418; border-radius: 14px; padding: 2px 18px; }
.trows .trow:last-child { border-bottom: 0; }
.trow .inline-wrap { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--muted); }
.inline-num { width: 76px; padding: 6px 10px; }
.segs { display: flex; gap: 8px; flex-wrap: wrap; }
.seg { background: #0B1418; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; color: var(--muted); font-size: 14px; }
.seg:hover:not(:disabled) { color: var(--text); border-color: #2B4249; }
.seg.on { background: rgba(80,210,193,.12); border-color: var(--accent); color: var(--bright); }
.form-err { font-size: 14px; }
.note { display: flex; gap: 10px; align-items: center; background: rgba(80,210,193,.07); border-radius: 12px; padding: 10px 14px; font-size: 14px; color: var(--bright); }
.compose { display: grid; gap: 16px; margin-bottom: 22px; }
.compose-head { align-items: center; }
.compose-head h3 { font-size: 19px; }
.chipinput { position: relative; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; background: #0B1418; border: 1px solid var(--line); border-radius: 12px; padding: 7px 9px; min-height: 46px; cursor: text; }
.chips:focus-within { border-color: var(--accent); }
.chips-input { flex: 1; min-width: 110px; background: none !important; border: 0 !important; padding: 5px !important; border-radius: 0 !important; }
.chip-tag { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 12.5px; background: #15252C; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 3px 4px 3px 9px; }
.chip-tag.solid { background: rgba(80,210,193,.12); border-color: rgba(80,210,193,.35); color: var(--bright); padding: 3px 9px; }
.chip-tag button { background: none; border: 0; color: var(--muted); padding: 2px; display: inline-flex; }
.chip-tag button:hover { color: var(--red); }
.suggest { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); background: #0F1A1F; border: 1px solid #2B4249; border-radius: 12px; padding: 6px; max-height: 280px; overflow: auto; box-shadow: 0 18px 50px rgba(0,0,0,.6); }
.suggest-item { display: flex; justify-content: space-between; gap: 12px; width: 100%; background: none; border: 0; padding: 9px 10px; border-radius: 8px; text-align: left; }
.suggest-item:hover { background: #17272E; }
.rule { display: grid; gap: 12px; }
.rule-off { opacity: .6; }
.rule-top h3 { font-size: 19px; }
.rule-strategy { color: #C6D1CF; font-size: 15px; overflow-wrap: anywhere; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tags .mini-tag { margin-left: 0; }
.rule-actions { margin-top: 4px; }

/* wallet / plan */
.wallet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.wallet-grid h3, .pay h3 { font-size: 18px; margin-bottom: 14px; }
.wallet-grid .card > * + * { margin-top: 12px; }
.card-wide { grid-column: 1 / -1; }
.table-wrap { overflow-x: auto; margin-top: 6px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12.5px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 10px; border-bottom: 1px solid #172429; vertical-align: middle; }
.table .num { text-align: right; }
.table th:nth-child(n+2) { text-align: right; }
.model-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 16px !important; }
.mp { display: grid; gap: 6px; text-align: left; justify-items: start; background: #0B1418; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.mp:hover:not(:disabled) { border-color: #2B4249; }
.mp.on { border-color: var(--accent); background: rgba(80,210,193,.08); }
.mp.locked { opacity: .5; }
.plan-status { display: flex; gap: clamp(20px, 5vw, 64px); flex-wrap: wrap; margin-bottom: 22px; }
.plan-status h3 { font-size: 22px; margin-top: 4px; }
.app-price { margin-top: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.app-price .price { padding: 22px; }
.app-price .price-amt b { font-size: 36px; }
.price-current { border-color: #fff; }
.pay { margin-top: 24px; display: grid; gap: 14px; max-width: 640px; }
.pay-kv { gap: 14px; }
.pay-kv .big { font-size: 22px; color: var(--bright); }
.addr { font-size: 13px; overflow-wrap: anywhere; }

/* empty / login / modal / toast */
.empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 56px 20px; border: 1px dashed var(--line); border-radius: var(--r); }
.empty h3 { font-size: 20px; margin-top: 8px; }
.empty p { max-width: 420px; }
.login { width: 100%; max-width: 420px; margin: 0 auto; text-align: center; display: grid; justify-items: center; gap: 14px; padding: 36px 28px; border-radius: 24px; }
.app-body.logged-out { grid-template-columns: minmax(0, 1fr); }
.app-body.logged-out .app-main { grid-column: 1 / -1; display: grid; place-items: center; min-height: calc(100vh - 140px); padding-bottom: 40px; }
.login h1 { font-size: 30px; letter-spacing: -.03em; }
.login .mascot { animation: bob 6s ease-in-out infinite; }
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(2,4,8,.72); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; }
.modal { width: min(460px, 100%); background: var(--card); border: 1px solid #2B4249; border-radius: 24px; padding: 24px; display: grid; gap: 16px; box-shadow: 0 40px 100px rgba(0,0,0,.7); max-height: 90vh; overflow: auto; }
.modal-wide { width: min(640px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; }
.modal-head h3 { font-size: 20px; }
.modal-body { display: grid; gap: 10px; overflow-wrap: anywhere; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.wallet-list { display: grid; gap: 8px; }
.wallet-opt { display: flex; align-items: center; gap: 12px; background: #0B1418; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-weight: 500; text-align: left; }
.wallet-opt:hover { border-color: var(--accent); }
.wallet-opt img { border-radius: 8px; }
.wallet-ph { width: 28px; height: 28px; border-radius: 8px; background: #1B2E36; }
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 120; display: grid; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: #13222A; border: 1px solid #2B4249; border-radius: 14px; padding: 12px 16px; font-size: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.6); animation: pop .25s ease; overflow-wrap: anywhere; }
.toast.out { opacity: 0; transform: translateY(6px); transition: .25s; }
.toast-ok { border-color: rgba(80,210,193,.5); }
.toast-error { border-color: rgba(237,112,136,.55); color: #ffd3db; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }

/* ============================ responsive ============================ */
@media (max-width: 1080px) {
  .model-grid { grid-template-columns: repeat(3, 1fr); }
  .price-grid, .app-price { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: 1fr; gap: 10px; }
  .arrow { grid-template-columns: 70px auto; justify-content: center; }
  .arrow svg { transform: rotate(90deg); width: 70px; height: 70px; }
  .arrow { height: 70px; }
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-copy .display-md, .split .display-md { text-align: center; }
  .sub.left { text-align: center; margin-inline: auto; }
  .split > .split-copy { order: -1; }
  .venue-grid, .legal { grid-template-columns: 1fr; }
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .ev-body, .grid2, .grid3, .wallet-grid { grid-template-columns: 1fr; }
  .card-wide { grid-column: auto; }

  /* app: bottom tab bar */
  .app-body { display: block; }
  .app-nav { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; top: auto; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(8,13,17,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .nav-item { flex-direction: column; gap: 3px; padding: 7px 2px; font-size: 10.5px; text-align: center; }
  .app-main { padding-bottom: 100px; }
  #to-site { display: none; }
  .brand-name { font-size: 16px; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .model-grid { grid-template-columns: 1fr 1fr; }
  .model-card { min-height: 200px; }
  .price-grid, .app-price { grid-template-columns: 1fr; }
  .stats4 { grid-template-columns: repeat(2, 1fr); }
  .stats3 { grid-template-columns: 1fr; }
  .app-head .brand-name { display: none; }
  .kill { padding: 6px 10px; font-size: 12.5px; }
  .chip-btn { padding: 5px 9px; font-size: 12px; }
  .hero-mascot-wrap { min-height: 290px; }
  .phone { border-radius: 26px; padding: 16px; }
  .rules-card { padding: 4px 18px 18px; }
  /* responsive table -> stacked cards */
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .table td { border: 0; padding: 4px 0; text-align: left !important; }
  .table td[data-l] { display: flex; justify-content: space-between; }
  .table td[data-l]::before { content: attr(data-l); color: var(--muted); font-family: var(--sans); }
}
/* v3: login options, funds, onboarding */
.stack { display: flex; flex-direction: column; gap: 12px; }
.login .stack { align-items: stretch; align-self: stretch; margin: 14px 0; }
.login .stack .pill { width: 100%; }
.input { background: #0B1418; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; color: var(--text); font: inherit; min-width: 0; }
.input:focus { outline: none; border-color: var(--accent); }
.funds-host { margin-bottom: 16px; }
.addr-line { word-break: break-all; }
.onb { margin-bottom: 16px; }
.onb-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.onb-list li { display: flex; align-items: center; gap: 10px; }
.onb-list li.on span:nth-child(2) { color: var(--muted, #8aa0a8); text-decoration: line-through; }
.onb-dot { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); display: inline-grid; place-items: center; font-size: 12px; flex: none; }
.onb-list li.on .onb-dot { background: var(--accent); color: #062; border-color: var(--accent); }
.onb-funds { margin-top: 14px; }
.onb-funds .card { box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
