/* Halaman /launch/ — luncurkan koin lewat ROTUNDA. Dimuat setelah site.css + app.css. */
.lx-head { display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: 40px; align-items: end; margin: 0 0 48px; }
.lx-head .display { margin: 40px 0 0; font-size: clamp(48px, 6.4vw, 104px); }
.lx-head p { margin: 0; color: var(--muted); font-size: 16px; }
.lx-closed { margin: 0 0 16px; }

.lx-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 16px; align-items: start; }
.lx-form { display: grid; gap: 16px; min-width: 0; }
.lx .lx-form > section.lx-sec { max-width: none; margin: 0; position: static; border: 1px solid var(--line); border-radius: 4px; background: var(--bg2); padding: 0 24px 8px; }
.lx-sh { display: flex; align-items: baseline; gap: 14px; padding: 20px 0 18px; margin: 0 0 22px; border-bottom: 1px solid var(--line); }
.lx-sh .n { font: 500 12px 'Geist Mono', monospace; color: var(--accent); letter-spacing: .08em; }
.lx-sh h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; flex: 1; }
.lx-sh .mono { font-size: 10.5px; color: var(--soft); }
.lx-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lx-p { margin: 4px 0 18px; font-size: 13.5px; color: var(--muted); max-width: 640px; }

/* kolom */
.lx .field { margin-bottom: 20px; gap: 9px; align-content: start; }
.lx .field label em, .lx .field .mono em { font-style: normal; color: var(--soft); margin-left: 6px; letter-spacing: .12em; }
.lx .field label .count { float: right; margin: 0; }
.lx .field .hint { font-size: 12.5px; color: var(--soft); line-height: 1.45; }
.lx .field .hint b { color: var(--muted); font-weight: 600; }
.lx .field .err { display: none; font-size: 12.5px; color: #ffb4a8; }
.lx .field.bad .err { display: block; }
.lx .field.bad input, .lx .field.bad textarea, .lx .field.bad .affix { border-color: rgba(255,180,168,.6); }
.lx-input { width: 100%; height: 44px; padding: 0 12px; border-radius: 3px; border: 1px solid var(--line2); background: rgba(255,255,255,.02); color: var(--ink); font: 400 15px 'Geist', sans-serif; }
.lx-input:focus { outline: none; border-color: var(--accent); }
.lx input::placeholder, .lx textarea::placeholder { color: #47474d; }
.affix { display: flex; align-items: center; height: 44px; border: 1px solid var(--line2); border-radius: 3px; background: rgba(255,255,255,.02); }
.affix:focus-within { border-color: var(--accent); }
.lx .field .affix input { border: 0; background: transparent; height: 42px; min-width: 0; flex: 1; }
.affix span { font: 500 12px 'Geist Mono', monospace; color: var(--soft); letter-spacing: .08em; padding: 0 12px; }
.affix.pre span { padding: 0 0 0 12px; font-size: 15px; color: var(--muted); }
.affix.pre input { padding-left: 4px; text-transform: uppercase; font-family: 'Geist Mono', monospace; letter-spacing: .06em; }
.affix.post input { font-variant-numeric: tabular-nums; font-weight: 600; }
.lx .chips .chip-btn { font-variant-numeric: tabular-nums; }

/* logo */
.logo-box { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: start; }
.logo-drop { position: relative; width: 112px; height: 112px; padding: 0; border: 1px dashed var(--line2); border-radius: 4px; background: #0d0d10; overflow: hidden; display: grid; place-items: center; }
.logo-drop:hover, .logo-drop.over { border-color: var(--accent); }
.logo-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.logo-empty { font: 500 10px 'Geist Mono', monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); text-align: center; line-height: 1.6; }
.logo-busy { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(4,4,5,.7); color: var(--accent-ink); }
.logo-ctl { display: grid; gap: 9px; min-width: 0; }
.logo-btns { display: flex; align-items: center; gap: 14px; }
.lx-x { background: none; border: 0; padding: 4px 0; font-size: 10.5px; color: var(--muted); border-bottom: 1px solid var(--line2); }
.lx-x:hover { color: var(--ink); }
.alt-label { margin-top: 6px; font-size: 10.5px; color: var(--soft) !important; }
[data-logo-state].ok { color: var(--accent-ink); }
[data-logo-state].warn { color: #ffb4a8; }

/* pajak: segmen */
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; margin-bottom: 14px; }
.seg button { display: grid; gap: 4px; justify-items: start; padding: 16px 16px 14px; border: 0; background: var(--bg2); text-align: left; position: relative; transition: background .15s; }
.seg button b { font-size: 26px; font-weight: 900; letter-spacing: -.04em; line-height: 1; color: var(--muted); }
.seg button small { font: 500 10px 'Geist Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.seg button:hover { background: #0e0e12; }
.seg button[aria-checked='true'] { background: #0d0f19; }
.seg button[aria-checked='true'] b { color: var(--ink); }
.seg button[aria-checked='true']::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); }

/* ringkasan */
.lx-side { display: grid; gap: 16px; min-width: 0; }
@media (min-width: 1001px) and (min-height: 860px) { .lx-side { position: sticky; top: 92px; } }
.lx-sum { padding: 22px; display: grid; gap: 18px; scroll-margin-top: 84px; }
.lx-side .panel + .panel { margin-top: 0; }
.sum-top { display: flex; justify-content: space-between; align-items: center; }
.sum-state { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; }
.sum-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--soft); }
.sum-state.ready { color: var(--ink); }
.sum-state.ready i, .sum-state.live i { background: var(--accent); }
.sum-state.live { color: var(--accent-ink); }

.coin { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 14px; padding: 16px; border: 1px solid var(--line); border-radius: 4px; background: #0c0c0f; }
.coin-logo { grid-row: span 2; width: 56px; height: 56px; border-radius: 4px; background: #16161a center / cover no-repeat; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; font-style: normal; }
.coin-logo span { font-weight: 900; font-size: 22px; color: var(--soft); letter-spacing: -.04em; }
.coin-logo.has span { display: none; }
.coin-id { display: grid; gap: 2px; align-self: end; min-width: 0; }
.coin-id b { font-size: 19px; font-weight: 800; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin-id .mono { color: var(--accent-ink); font-size: 11.5px; letter-spacing: .1em; text-transform: none; }
.coin-desc { grid-column: 1 / -1; margin: 10px 0 0; font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; min-height: 2.9em; }
.coin-desc.ph { color: var(--soft); }
.coin-tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.coin-tags span { font-size: 10px; letter-spacing: .12em; padding: 5px 8px; border: 1px solid var(--line); border-radius: 2px; color: var(--muted); }

.sum-kv { font-size: 13.5px; }
.sum-kv dd { font-variant-numeric: tabular-nums; }
.sum-total { display: flex; align-items: baseline; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.sum-total .mono { flex: 1; font-size: 10.5px; }
.sum-total b { font-weight: 900; font-size: 46px; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.sum-total em { font-style: normal; font-weight: 600; color: var(--muted); font-size: 16px; }

.est { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.est > div { background: #0c0c0f; padding: 14px; display: grid; gap: 4px; min-width: 0; }
.est small { font: 500 10px 'Geist Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.est strong { font-size: 22px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.est span { font-size: 12px; color: var(--muted); }
.est-note { margin: -8px 0 0; font-size: 11.5px; color: var(--soft); line-height: 1.45; }
.go-msg { margin: -8px 0 0; font-size: 13px; color: #ffb4a8; min-height: 0; }
.go-msg:empty { display: none; }
.go-msg.info { color: var(--muted); }
.go-msg a { color: var(--accent-ink); border-bottom: 1px solid var(--line2); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.busy { pointer-events: none; }
.btn.busy .dot { display: none; }

/* sukses */
.lx-sum.launched > :not(.done):not(.sum-top) { display: none; }
.done { display: grid; gap: 14px; }
.done[hidden], .lx [hidden] { display: none !important; }
.done-k { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-ink); }
.done-k i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(76,111,255,.18); }
.done-tick { font-weight: 900; font-size: 52px; line-height: .95; letter-spacing: -.05em; overflow-wrap: anywhere; }
.done .ca-addr code { font-size: 12.5px; color: var(--ink); white-space: normal; word-break: break-all; min-width: 0; }
.done .ca-addr .mono { flex: none; }
.lx-grid > *, .lx-sum > * { min-width: 0; }
.done .kv { font-size: 13.5px; }
.done .kv dd { font-variant-numeric: tabular-nums; }

.lx-steps { padding: 22px; }
.lx-steps ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; }
.lx-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.lx-steps li b { font: 500 11.5px 'Geist Mono', monospace; color: var(--accent); padding-top: 2px; }
.lx-steps p { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.lx-steps p b { color: var(--ink); }

.lx-form.locked { opacity: .5; pointer-events: none; }

@media (max-width: 1180px) { .lx-grid { grid-template-columns: minmax(0, 1fr) 380px; } }
@media (max-width: 1000px) {
  .lx-grid { grid-template-columns: 1fr; }
  .lx-head { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 760px) {
  .lx-head { margin-bottom: 28px; }
  .lx-head .display { margin-top: 28px; font-size: clamp(46px, 14vw, 64px); }
  .lx-head p { font-size: 15px; }
  .lx .lx-form > section.lx-sec { padding: 0 16px 4px; }
  .lx-sh { padding: 16px 0 14px; margin-bottom: 18px; }
  .lx-sh h2 { font-size: 18px; }
  .lx-row { grid-template-columns: 1fr; gap: 0; }
  .logo-box { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; }
  .logo-drop { width: 88px; height: 88px; }
  .seg { grid-template-columns: 1fr 1fr; }
  .seg button { padding: 14px; }
  .lx-sum, .lx-steps { padding: 18px; }
  .sum-total b { font-size: 40px; }
  .est strong { font-size: 19px; }
  .done-tick { font-size: 42px; }
}
