/* Fee Launchpad — calm dark cockpit (Jupiter-style). Phone-first: bottom tab bar under 820px. */
:root {
  --bg: #080b12; --bg2: #0c1019; --panel: #111621; --panel2: #161c2a; --line: #1f2737; --line2: #2a3448;
  --text: #e9edf5; --mute: #8a94a8; --dim: #5d677c;
  --accent: #c7f284; --accent-ink: #0b1006; --teal: #74e3c3; --blue: #78a9ff; --warn: #ffb547; --bad: #ff6b6b; --good: #5be49b;
  --r: 18px; --r2: 12px;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 20px 40px -24px rgba(0,0,0,.6);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
body { background: radial-gradient(1200px 600px at 80% -10%, rgba(199,242,132,.06), transparent 60%), radial-gradient(900px 500px at -10% 10%, rgba(120,169,255,.05), transparent 60%), var(--bg); background-attachment: fixed; min-height: 100vh; }
.hidden { display: none !important; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.015em; }
h2 { font-size: 19px; } h3 { font-size: 15px; color: var(--mute); font-weight: 600; }
a { color: var(--teal); text-decoration: none; }
input, textarea, select { width: 100%; background: var(--bg2); border: 1px solid var(--line); color: var(--text); border-radius: var(--r2); padding: 12px 14px; font: inherit; outline: none; transition: border-color .15s; }
input:focus, textarea:focus, select:focus { border-color: var(--line2); }
textarea { min-height: 90px; resize: vertical; }
label { display: block; font-size: 12.5px; color: var(--mute); margin: 14px 0 6px; font-weight: 500; }
.mute { color: var(--mute); } .small { font-size: 13px; } .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; word-break: break-all; }
.hint { display: block; color: var(--mute); font-size: 13px; line-height: 1.45; margin: 6px 0 0; }
.err { color: var(--bad); min-height: 1em; margin: 0; font-size: 14px; }
.pos { color: var(--good); } .neg { color: var(--bad); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: var(--r2); padding: 10px 16px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { border-color: var(--line2); background: #1a2132; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.danger { color: var(--bad); }
.btn.big { padding: 15px 22px; font-size: 16px; width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.small-btn { padding: 6px 11px; font-size: 12.5px; border-radius: 10px; }
.small-btn.on { background: var(--warn); color: #120c02; border-color: var(--warn); }
.small-btn.auto-on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* pills / chips */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--panel2); color: var(--mute); border: 1px solid var(--line); white-space: nowrap; }
.pill.warn { color: var(--warn); border-color: #4a3a1c; background: rgba(255,181,71,.07); }
.pill.good { color: var(--good); border-color: #1c4a33; background: rgba(91,228,155,.07); }
.pill.bad { color: var(--bad); border-color: #4a2020; background: rgba(255,107,107,.07); }
.pill.blue { color: var(--blue); border-color: #22385c; background: rgba(120,169,255,.07); }
.pill.acc { color: var(--accent); border-color: #3e4d22; background: rgba(199,242,132,.07); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--mute); padding: 5px 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--bg2); }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); display: inline-block; }
.chip.live i { background: var(--good); box-shadow: 0 0 0 4px rgba(91,228,155,.15); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(91,228,155,0); } }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card { width: min(380px, 100%); text-align: center; display: grid; gap: 14px; padding: 32px 26px; }
.logo-big { font-size: 38px; color: var(--accent); }

/* layout */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 20px; padding-top: max(12px, env(safe-area-inset-top)); background: rgba(8,11,18,.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand-mark { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; }
.logo-mark { color: var(--accent); font-size: 18px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
#tabs { position: sticky; top: 59px; z-index: 15; display: flex; gap: 4px; padding: 10px 20px; background: rgba(8,11,18,.7); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
#tabs button { display: flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--mute); font: inherit; font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 11px; cursor: pointer; }
#tabs button svg { width: 18px; height: 18px; fill: currentColor; }
#tabs button:hover { color: var(--text); }
#tabs button.on { color: var(--text); background: var(--panel2); }
#tabs button.on svg { fill: var(--accent); }
main { max-width: 1120px; margin: 0 auto; padding: 18px 20px 60px; }
.tab { display: none; animation: fade .25s ease; } .tab.on { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.sec-title { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 4px 14px; margin: 26px 0 12px; }
.sec-title h2, .sec-title h3 { flex: 0 0 auto; }
.sec-title .hint { flex: 1 1 260px; margin: 0; }
.sec-title .btn { margin-left: auto; }
.card { background: linear-gradient(180deg, rgba(255,255,255,.015), transparent 40%), var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.card + .card, .two-col + .card, .card + .two-col { margin-top: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.list { display: grid; gap: 10px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; margin-top: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chart-title { font-weight: 650; margin-bottom: 10px; font-size: 15px; }

/* segmented control inside a tab */
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; max-width: 100%; overflow-x: auto; }
.seg button { background: none; border: 0; color: var(--mute); font: inherit; font-weight: 600; font-size: 13.5px; padding: 8px 14px; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.seg button.on { background: var(--panel2); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset; }
.subpanel { display: none; } .subpanel.on { display: block; animation: fade .2s ease; }

/* home */
.hero-card { position: relative; overflow: hidden; border-radius: 22px; padding: 22px; border: 1px solid #2a3a1f; background: radial-gradient(500px 220px at 90% -40%, rgba(199,242,132,.18), transparent 70%), linear-gradient(160deg, #121a14, var(--panel) 60%); box-shadow: var(--shadow); }
.hero-card .state { font-size: 13px; color: var(--mute); display: flex; align-items: center; gap: 8px; }
.hero-card .headline { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 4px; line-height: 1.15; }
.hero-card .sub { color: var(--mute); font-size: 14px; }
.hero-card .row { margin-top: 16px; }
.attn { display: grid; gap: 8px; margin-top: 12px; }
.attn button.attn-item { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; text-align: left; width: 100%; padding: 12px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: var(--text); font: inherit; cursor: pointer; }
.attn button.attn-item:hover { border-color: var(--line2); }
.attn .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; background: var(--panel2); }
.attn b { display: block; font-size: 14px; } .attn span.d { color: var(--mute); font-size: 12.5px; }
.attn .go { color: var(--dim); font-size: 18px; }
.attn .warn .ico { background: rgba(255,181,71,.12); } .attn .bad .ico { background: rgba(255,107,107,.12); }
.setup { margin-top: 26px; }
.setup .steps-list { display: grid; gap: 8px; margin-top: 12px; }
.setup .st { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); }
.setup .st .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--panel2); color: var(--mute); }
.setup .st.done .n { background: var(--good); color: #05140c; }
.setup .st.done { opacity: .62; }
.setup .st b { display: block; font-size: 14px; } .setup .st span { color: var(--mute); font-size: 12.5px; }
.progress { height: 6px; border-radius: 99px; background: var(--bg2); overflow: hidden; margin-top: 10px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--accent)); border-radius: 99px; }
.coin-mini { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: center; }
.coin-mini img, .coin-mini .ph { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; background: var(--panel2); }
.coin-mini .nums { display: flex; gap: 14px; margin-top: 6px; font-size: 12.5px; color: var(--mute); flex-wrap: wrap; }
.coin-mini .nums b { color: var(--text); font-size: 14px; display: block; }
.empty { text-align: center; padding: 26px 18px; color: var(--mute); border: 1px dashed var(--line2); border-radius: var(--r); }

/* stats */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.stat .k { color: var(--mute); font-size: 12px; font-weight: 500; }
.stat .v { font-size: 21px; font-weight: 750; margin-top: 4px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }

/* brand cards */
.bcard { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: start; }
.bcard img, .ph { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; background: var(--panel2); }
.bcard .t { font-weight: 700; font-size: 15px; } .bcard .s { color: var(--mute); font-size: 12.5px; margin-top: 3px; }
.bcard .actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.idea p { margin: 12px 0 0; color: #c9d0dc; font-size: 14px; }

/* live launch card */
.live { margin-top: 12px; border-color: #26361f; background: radial-gradient(500px 200px at 100% 0, rgba(199,242,132,.08), transparent 70%), var(--panel); }
.live-head { display: flex; gap: 14px; align-items: center; }
.live-head img { width: 60px; height: 60px; border-radius: 16px; object-fit: cover; }
.live-title { font-size: 19px; font-weight: 750; }
.big-state { font-size: 14px; margin-top: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.countdown { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin: 14px 0 4px; font-variant-numeric: tabular-nums; }
.post-box { background: var(--bg2); border: 1px dashed #3a4a2c; border-radius: 14px; padding: 14px; white-space: pre-wrap; margin: 10px 0; font-size: 14px; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 14px 0; }
.kv div { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.kv b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; } .kv span { color: var(--mute); font-size: 12px; }
.steps { display: flex; gap: 6px; margin: 14px 0 4px; flex-wrap: wrap; }
.steps span { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: var(--bg2); border: 1px solid var(--line); color: var(--mute); }
.steps span.done { color: var(--good); border-color: #1f5a3b; } .steps span.cur { color: var(--accent); border-color: var(--accent); }
.auto-card { font-size: 14px; }

/* next launch */
.next-card { margin-top: 12px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.next-card .cd { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.next-card img, .next-card .ph { width: 60px; height: 60px; border-radius: 16px; object-fit: cover; }
.next-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--mute); margin-top: 6px; align-items: center; }
.next-meta b { color: var(--text); font-weight: 600; }
.up-list { margin-top: 6px; display: grid; gap: 6px; grid-column: 1 / -1; }
.up-list div { display: grid; grid-template-columns: 100px 1fr auto; gap: 10px; font-size: 13px; padding: 9px 12px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; align-items: center; }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--dim); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
tr:last-child td { border-bottom: 0; }

/* charts */
.chart { position: relative; height: 190px; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart .tip { position: absolute; pointer-events: none; background: var(--panel2); border: 1px solid var(--line2); border-radius: 10px; padding: 6px 10px; font-size: 12px; white-space: nowrap; transform: translate(-50%, -110%); }
.spark { height: 46px; margin-top: 8px; width: 100%; }

/* health */
.hl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.hl div { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; color: var(--mute); }
.hl b { display: block; font-size: 13.5px; color: var(--text); margin-bottom: 2px; }
.ok b::before { content: "● "; color: var(--good); } .notok b::before { content: "● "; color: var(--bad); } .meh b::before { content: "● "; color: var(--warn); }

/* feeds / logs */
.feed { display: grid; gap: 4px; max-height: 260px; overflow: auto; margin-top: 10px; }
.feed div { display: grid; grid-template-columns: 54px 42px 70px 1fr; gap: 8px; font-size: 13px; padding: 5px 8px; background: var(--bg2); border-radius: 8px; }
.buy { color: var(--good); } .sell { color: var(--bad); }
details summary { cursor: pointer; color: var(--mute); margin-top: 12px; font-size: 13.5px; font-weight: 600; }
.log .ev { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 9px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; font-size: 13.5px; }
.log .ev .tm { color: var(--dim); font-size: 12px; font-variant-numeric: tabular-nums; }
.log .ev.error, .log .ev.warn { border-color: #4a2626; }
.label-in { background: transparent; border: 1px dashed var(--line2); padding: 5px 9px; border-radius: 8px; font-size: 13px; min-width: 160px; }
.news-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.news-row:last-child { border-bottom: 0; }
.news-feed { max-height: 520px; } .news-feed .news-row { background: none; padding: 9px 4px; font-size: 14px; }
.ideas-list { color: var(--mute); margin: 8px 0 0; padding-left: 20px; } ul { margin: 6px 0 0; padding-left: 20px; } li { margin: 4px 0; }
.kit { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.kitv { flex: 1; min-width: 180px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 13px; white-space: pre-wrap; }
.plan-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.plan-row span { color: var(--mute); } .plan-row:last-child { border-bottom: 0; }
.plan-verdict { margin-top: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); font-size: 16px; }
.plan-verdict.ok { border-color: var(--good); } .plan-verdict.short { border-color: var(--bad); }
.plan-verdict b { font-size: 22px; display: block; }
.extra-amts { display: flex; gap: 8px; flex-wrap: wrap; } .extra-amts input { max-width: 110px; }
.settings h3 { margin-top: 24px; color: var(--teal); font-size: 14px; } .settings h3:first-child { margin-top: 0; }
.settings .two { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 16px; }
.gen-card { margin-bottom: 12px; border-color: #2a3a1f; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--panel2); border: 1px solid var(--line2); padding: 12px 18px; border-radius: 14px; max-width: calc(100% - 32px); z-index: 50; box-shadow: 0 20px 40px -10px rgba(0,0,0,.6); font-size: 14px; }
.toast.bad { border-color: var(--bad); color: var(--bad); }

/* phone: bottom tab bar, compact header */
@media (max-width: 820px) {
  .top { padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); }
  .brand-name { display: none; }
  #tabs { position: fixed; top: auto; bottom: 0; left: 0; right: 0; justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); border-bottom: 0; background: rgba(8,11,18,.94); }
  #tabs button { flex-direction: column; gap: 3px; font-size: 10.5px; padding: 6px 4px; flex: 1; }
  #tabs button.on { background: none; color: var(--accent); }
  #tabs button svg { width: 22px; height: 22px; }
  main { padding: 14px 14px calc(96px + env(safe-area-inset-bottom)); }
  .hero-card .headline { font-size: 22px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .countdown, .next-card .cd { font-size: 30px; }
  .next-card { grid-template-columns: 1fr; }
  .up-list div { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
}
.coin-mini .nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.coin-mini .row-between { flex-wrap: nowrap; }
.coin-mini .row-between b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
#homeLive { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.hero-card .state { flex-wrap: wrap; } .hero-card .state > span { white-space: nowrap; }
@media (max-width: 820px) { .hero-card [data-go] { display: none; } .hero-card .row .btn { flex: 1; } }

/* launch screen (full-screen overlay) */
.lv { position: fixed; inset: 0; z-index: 60; background: rgba(5,7,12,.86); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.lv-inner { max-width: 760px; margin: 0 auto; padding: 18px 16px 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.lv-inner > *, .lv-kv > div > *, .lv-steps > div > * { min-width: 0; }
.lv-head { display: flex; align-items: center; gap: 14px; justify-content: space-between; flex-direction: row-reverse; }
.lv-id { display: flex; align-items: center; gap: 12px; } .lv-id img { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; }
.lv-name { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.lv-hero { text-align: center; padding: 26px 18px; }
.lv-hero.is-live { border-color: #3e4d22; box-shadow: 0 0 0 1px rgba(199,242,132,.15), 0 20px 60px -30px rgba(199,242,132,.5); }
.lv-count { font-size: clamp(44px, 12vw, 72px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin: 6px 0 6px; font-variant-numeric: tabular-nums; color: var(--accent); }
.lv-hero .row { justify-content: center; } .btn.big { padding: 14px 26px; font-size: 16px; }
.lv-steps { display: grid; gap: 8px; } .lv-steps > div { display: grid; grid-template-columns: 22px minmax(120px, 210px) 1fr; gap: 8px; align-items: baseline; font-size: 14px; }
.lv-steps .ok { color: var(--good); } .lv-steps .wait { color: var(--dim); } .lv-steps .warnc { color: var(--warn); } .lv-steps .badc { color: var(--bad); }
.lv-kv { display: grid; gap: 10px; } .lv-kv > div { display: grid; grid-template-columns: 150px 1fr auto; gap: 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.lv-kv > div:last-child { border-bottom: 0; padding-bottom: 0; } .lv-kv span { color: var(--mute); font-size: 13px; } .lv-kv b { font-weight: 600; word-break: break-word; }
.lv-post { white-space: pre-wrap; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r2); padding: 12px 14px; margin-top: 6px; font-size: 14px; }
@media (max-width: 560px) { .lv-kv > div { grid-template-columns: 1fr auto; } .lv-kv > div > span { grid-column: 1 / -1; } .lv-steps > div { grid-template-columns: 22px 1fr; } .lv-steps > div > .small { grid-column: 2; } }

.kit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 8px; }
.kit-item { display: grid; gap: 6px; align-content: start; }
.kit-item img, .kit-item video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); }
