/* ============ AeonPad — aplikasi (tema gelap AUTARCH) ============ */
body.app { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; background: var(--bg); }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.logo svg, .tok svg { stroke: none; }

/* ---------- sidebar ---------- */
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 20px 14px; background: var(--surface); border-right: 1px solid var(--line); }
.side-logo { padding: 4px 10px 22px; }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 10px; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: background 0.15s ease, color 0.15s ease; }
.side-nav a svg { width: 18px; height: 18px; color: var(--muted); }
.side-nav a:hover { background: var(--surface-2); color: var(--ink); }
.side-nav a.active { background: var(--brand-50); color: var(--brand-900); }
.side-nav a.active svg { color: var(--brand-700); }
.side-nav .count { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 3px; background: var(--brand); color: #03050b; font-size: 11.5px; font-weight: 600; display: grid; place-items: center; }
.side-foot { margin-top: auto; display: grid; gap: 10px; }
.holder-card { padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface)); display: grid; gap: 2px; }
.holder-card.ok { border-color: var(--brand-100); background: linear-gradient(180deg, var(--brand-50), var(--surface)); }
.hc-label { font-size: 12px; color: var(--muted); font-weight: 500; }
.holder-card b { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.hc-sub { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.side-link { font-size: 13.5px; color: var(--muted); text-decoration: none; padding: 6px 10px; }
.side-link:hover { color: var(--ink); }

/* ---------- topbar ---------- */
.main { min-width: 0; }
.top { position: sticky; top: 0; z-index: 20; height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 32px; background: rgba(3, 5, 11, 0.92); border-bottom: 1px solid var(--line); }
.menu { display: none; background: none; border: 0; padding: 6px; }
.menu svg { width: 22px; height: 22px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.crumbs svg { width: 14px; height: 14px; color: var(--faint); }
.crumbs b { font-weight: 600; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.net { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.net i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.demo-tag { font: 700 10.5px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--amber); background: var(--amber-50); border: 1px solid rgba(240,180,90,.35); padding: 6px 9px; }
#walletBtn.connected { background: var(--surface); }
#walletBtn .avatar { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(from 90deg, #0f2447, #3b5bff, #7cc4ff, #0f2447); }

/* ---------- tampilan ---------- */
.view { padding: 34px 32px 64px; max-width: 1240px; }
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.vh-title { font-size: 30px; line-height: 1.15; letter-spacing: -0.03em; font-weight: 650; margin: 0 0 6px; }
.vh-sub { margin: 0; color: var(--muted); font-size: 15px; max-width: 62ch; }
.quota { text-align: right; display: grid; font-size: 13px; }
.quota b { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.small { font-size: 13px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-head.pad { padding: 18px 20px 0; }

/* ---------- formulir ---------- */
.launch-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.form { padding: 22px; }
.row2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.fld { display: grid; gap: 7px; margin-bottom: 16px; }
.fld > span { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 550; color: var(--ink-2); }
.fld > span em { font-style: normal; font-weight: 400; color: var(--faint); }
.fld input[type="text"], .fld textarea {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  padding: 10px 12px;
  font-size: 15px;
  line-height: 1.45;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.fld textarea { resize: vertical; min-height: 96px; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.fld input::placeholder, .fld textarea::placeholder { color: var(--faint); }
.ticker { position: relative; }
.ticker i { position: absolute; left: 12px; top: 50%; translate: 0 -50%; font-style: normal; color: var(--muted); font-family: var(--mono); }
.ticker input { padding-left: 24px !important; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.04em; }
.drop { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px dashed var(--line-2); border-radius: 12px; background: var(--surface-2); cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease; }
.drop:hover, .drop.over { border-color: var(--brand); background: var(--brand-50); }
.drop input { display: none; }
.drop-thumb { width: 44px; height: 44px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; color: var(--muted); flex: none; }
.drop-thumb svg { width: 20px; height: 20px; }
.drop-thumb img { width: 100%; height: 100%; object-fit: cover; }
.drop-text { display: grid; }
.drop-text b { font-size: 14.5px; font-weight: 550; }
.drop-text small { font-size: 12.5px; color: var(--muted); }
.drop-clear { margin-left: auto; background: none; border: 0; font-size: 13px; color: var(--muted); text-decoration: underline; }
.venue { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 12px; margin: 6px 0 16px; overflow: hidden; }
.venue div { padding: 11px 13px; display: grid; gap: 1px; border-left: 1px solid var(--line); }
.venue div:first-child { border-left: 0; }
.venue > div > span { font-size: 12px; }
.venue b { font-size: 14.5px; font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); margin-bottom: 18px; cursor: pointer; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--brand); flex: none; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.hint { margin: 0; font-size: 13.5px; color: var(--muted); }
.hint.err { color: var(--red); }

.side-col { display: grid; gap: 20px; }
.preview { padding: 22px; }
.coin-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
.cc-top { display: flex; align-items: center; gap: 12px; }
.cc-top > div > b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.cc-top > div > span { font-size: 13px; color: var(--muted); font-family: var(--mono); }
.cc-top .pill { margin-left: auto; }
.cc-desc { margin: 12px 0 14px; font-size: 14px; color: var(--ink-2); min-height: 42px; }
.cc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; }
.cc-meta > div > span { color: var(--muted); display: block; }
.cc-meta b { font-weight: 550; }
.next { padding: 22px; }
.steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.steps i { width: 28px; height: 28px; border-radius: 8px; background: var(--brand-50); color: var(--brand-700); font-style: normal; font-weight: 650; font-size: 13px; display: grid; place-items: center; }
.steps b { display: block; font-size: 14.5px; font-weight: 600; }
.steps li > div > span { font-size: 13.5px; color: var(--muted); display: block; }

/* ---------- tabel ---------- */
.table-card { overflow: hidden; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12.5px; font-weight: 550; color: var(--muted); padding: 12px 20px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr.clickable { cursor: pointer; transition: background 0.15s ease; }
.tbl tbody tr.clickable:hover { background: var(--surface-2); }
.tbl tr.flash { animation: rowflash 1.6s ease; }
@keyframes rowflash { 0% { background: var(--brand-50); } 100% { background: transparent; } }
.coin-cell { display: flex; align-items: center; gap: 11px; }
.coin-cell b { display: block; font-weight: 600; line-height: 1.2; }
.coin-cell > div > span { font-size: 12.5px; color: var(--muted); font-family: var(--mono); }
.conf { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; }
.conf i { width: 64px; height: 5px; border-radius: 99px; background: var(--line); position: relative; overflow: hidden; }
.conf i::after { content: ""; position: absolute; inset: 0; width: var(--w, 0%); background: var(--brand); border-radius: 99px; transition: width 0.8s var(--ease); }
.tbl .mono { font-size: 13px; }
.tbl a.lnk { color: var(--brand-700); text-decoration: none; font-weight: 550; }
.tbl a.lnk:hover { text-decoration: underline; }
.empty { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 48px 20px; }
.empty b { font-size: 16px; font-weight: 600; }
.empty span { color: var(--muted); font-size: 14px; margin-bottom: 10px; }

/* ---------- explore ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stats.three { grid-template-columns: repeat(3, 1fr); }
.stat { padding: 16px 18px; display: grid; gap: 2px; }
.stat > span { font-size: 13px; }
.stat b { font-size: 26px; font-weight: 650; letter-spacing: -0.03em; line-height: 1.25; }
.stat b small { font-size: 15px; color: var(--muted); font-weight: 500; }
.stat small { font-size: 12.5px; }
.stat.accent { background: linear-gradient(135deg, rgba(59,91,255,.45), rgba(15,36,71,.9)); border-color: var(--line-2); color: #fff; box-shadow: 0 0 40px rgba(59,91,255,.2); }
.stat.accent > span, .stat.accent > small { color: rgba(255, 255, 255, 0.75); }
.coins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.coins .coin-card { background: var(--surface); box-shadow: var(--shadow-sm); }
.coins .cc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.coins .cc-foot .muted { font-size: 12.5px; }

/* ---------- drawer ---------- */
.drawer-bg { position: fixed; inset: 0; background: rgba(3, 5, 11, 0.7); z-index: 40; animation: fade 0.2s ease; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 460px; max-width: 100%; z-index: 41; background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform 0.35s var(--ease); display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.dh-coin { display: flex; align-items: center; gap: 12px; }
.dh-coin b { display: block; font-size: 17px; font-weight: 600; }
.dh-coin > div > span { font-size: 13px; color: var(--muted); font-family: var(--mono); }
.icon-btn { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; }
.icon-btn svg { width: 16px; height: 16px; }
.drawer-body { padding: 22px; overflow-y: auto; }
.d-quote { margin: 0 0 20px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding-bottom: 20px; }
.tl li::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px; background: var(--line); }
.tl li:last-child::before { display: none; }
.tl .dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); display: grid; place-items: center; transition: all 0.3s ease; }
.tl .dot svg { width: 12px; height: 12px; stroke-width: 2.4; opacity: 0; color: #fff; }
.tl li.done .dot { background: var(--brand); border-color: var(--brand); }
.tl li.done .dot svg { opacity: 1; }
.tl li.done::before { background: var(--brand-100); }
.tl li.active .dot { border-color: var(--sky); box-shadow: 0 0 0 4px var(--sky-50); }
.tl li.active .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); animation: pulse 1.2s ease-in-out infinite; }
.tl li.fail .dot { background: var(--red); border-color: var(--red); }
@keyframes pulse { 50% { transform: scale(0.6); opacity: 0.6; } }
.tl b { display: block; font-size: 14.5px; font-weight: 600; line-height: 24px; }
.tl .sub { font-size: 13px; color: var(--muted); }
.tl li.pending b { color: var(--faint); }
.checks { margin: 10px 0 2px; display: grid; gap: 6px; }
.checks div { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.checks svg { width: 15px; height: 15px; color: var(--brand); stroke-width: 2.2; }
.meter { margin-top: 10px; }
.meter-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.meter-top b { color: var(--ink); font-family: var(--mono); font-weight: 400; }
.meter-bar { position: relative; height: 8px; border-radius: 99px; background: var(--line); margin-top: 6px; }
.meter-bar i { position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); border-radius: 99px; background: linear-gradient(90deg, var(--brand-600), var(--brand)); transition: width 1.2s var(--ease); }
.meter-bar em { position: absolute; top: -4px; bottom: -4px; left: 70%; width: 2px; background: #fff; box-shadow: 0 0 8px #fff; }
.meter small { display: block; margin-top: 6px; font-size: 12px; color: var(--faint); }
.live-box { margin-top: 10px; border: 1px solid var(--brand-100); background: var(--brand-50); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; }
.live-box .kv { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.live-box .kv > span { color: var(--muted); }
.live-box .kv b { font-family: var(--mono); font-weight: 400; }
.live-box .btn { margin-top: 4px; }

/* ---------- modal dompet ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 50; background: rgba(3, 5, 11, 0.75); display: grid; place-items: center; padding: 20px; animation: fade 0.2s ease; }
.modal { width: 400px; max-width: 100%; background: var(--surface); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-lg); animation: pop 0.25s var(--ease); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.wallet-list { display: grid; gap: 8px; margin-bottom: 14px; }
.wallet-list button { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; font-weight: 550; text-align: left; transition: border-color 0.15s ease, background 0.15s ease; }
.wallet-list button:hover { border-color: var(--brand); background: var(--brand-50); }
.wallet-list img, .wallet-list .wl-ic { width: 28px; height: 28px; border-radius: 8px; }
.wallet-list .wl-ic { background: conic-gradient(from 90deg, #0f2447, #3b5bff, #7cc4ff, #0f2447); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } }

/* ---------- toast ---------- */
.toasts { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: grid; gap: 10px; }
.toast { display: flex; gap: 12px; align-items: flex-start; width: 360px; padding: 14px 16px; border-radius: 0; background: #0a1734; border: 1px solid var(--line-2); color: #fff; box-shadow: var(--shadow-lg); animation: pop 0.3s var(--ease); font-size: 14px; }
.toast svg { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: 1px; stroke-width: 2.2; }
.toast.bad svg { color: #ff8a8a; }
.toast b { display: block; font-weight: 600; }
.toast span { color: rgba(255, 255, 255, 0.72); }

/* ---------- responsif ---------- */
@media (max-width: 1100px) {
  .launch-grid { grid-template-columns: 1fr; }
  .coins { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  body.app { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 45; left: 0; width: 260px; transform: translateX(-100%); transition: transform 0.3s var(--ease); box-shadow: var(--shadow-lg); }
  .side.open { transform: none; }
  .menu { display: block; }
  .top { padding: 0 16px; }
  .net, .crumbs .muted, .crumbs svg { display: none; }
  .view { padding: 24px 16px 48px; }
  .view-head { flex-direction: column; align-items: flex-start; }
  .quota { text-align: left; }
  .row2, .venue { grid-template-columns: 1fr 1fr; }
  .venue div:nth-child(3) { border-left: 0; }
  .venue div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .coins, .stats, .stats.three { grid-template-columns: 1fr; }
  .tbl th:nth-child(2), .tbl td:nth-child(2), .tbl th:nth-child(5), .tbl td:nth-child(5) { display: none; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .toast { width: calc(100vw - 32px); }
  .toasts { right: 16px; bottom: 16px; }
}

.dh-coin .pill { margin-left: 4px; }
.tok { font-family: var(--sans); }

/* ---------- kotak prompt (v3) ---------- */
.launch-main { display: grid; gap: 12px; align-content: start; }
.composer { padding: 18px 18px 14px; transition: box-shadow 0.2s ease, border-color 0.2s ease; }
.composer:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50), var(--shadow); }
.cp-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cp-head b { display: block; font-size: 15px; font-weight: 600; line-height: 1.2; }
.cp-head .pill { margin-left: auto; }
.cp-avatar { width: 38px; height: 38px; border-radius: 50%; background: conic-gradient(from 90deg, #0f2447, #3b5bff, #7cc4ff, #0f2447); flex: none; }
#fPrompt { width: 100%; border: 0; resize: none; background: transparent; font-size: 21px; line-height: 1.5; letter-spacing: -0.01em; min-height: 150px; padding: 4px 2px; color: var(--ink); }
#fPrompt:focus { outline: none; }
#fPrompt::placeholder { color: var(--faint); }
.cp-foot { display: flex; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.attach { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font-size: 13.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.attach input { display: none; }
.attach:hover { border-color: var(--line-2); }
.attach-thumb { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; color: var(--muted); }
.attach-thumb svg { width: 16px; height: 16px; }
.attach-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cp-count { margin-left: auto; font-size: 12.5px; color: var(--faint); }
.launch-main .hint { padding: 0 4px; }
.hint.tip { color: var(--amber); }
.examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 4px; }
.examples button { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 500; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.examples button:hover { border-color: var(--brand); color: var(--brand-900); }
.reads-card { padding: 22px; }
.reads { display: grid; gap: 8px; }
.rd-row { display: grid; grid-template-columns: 96px 1fr 18px; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line-2); background: var(--surface-2); transition: all 0.25s ease; }
.rd-row.ok { border-style: solid; border-color: var(--brand-100); background: var(--brand-50); }
.rd-k { font-size: 13px; color: var(--muted); }
.rd-v { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.rd-v em { font-style: normal; font-weight: 400; color: var(--faint); font-size: 13.5px; }
.rd-row i svg { width: 16px; height: 16px; color: var(--brand); stroke-width: 2.4; }
.reads-note { margin: 12px 0 0; font-size: 12.5px; color: var(--faint); }
.sign-prompt { padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.d-prompt { margin: 0 0 20px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 15px; line-height: 1.5; color: var(--ink); }
.d-prompt span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.found { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 4px; }
.found div { border: 1px dashed var(--line-2); border-radius: 10px; padding: 8px 12px; transition: all 0.3s ease; }
.found div.on { border-style: solid; border-color: var(--brand-100); background: var(--brand-50); }
.found span { display: block; font-size: 11.5px; color: var(--muted); }
.found b { font-size: 15px; font-weight: 600; }
.gen { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.gen-img { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--surface-2); }
.gen-img img { width: 100%; height: 100%; object-fit: cover; animation: genin 0.6s var(--ease); }
@keyframes genin { from { opacity: 0; transform: scale(0.9); filter: blur(6px); } }
.gen b { display: block; font-size: 14px; font-weight: 600; }
.gen div > span { font-size: 12.5px; color: var(--muted); }
.shimmer { background: linear-gradient(100deg, #0a1733 30%, #173063 50%, #0a1733 70%); background-size: 200% 100%; animation: shim 1.2s linear infinite; }
@keyframes shim { to { background-position: -200% 0; } }
@media (max-width: 860px) { #fPrompt { font-size: 18px; min-height: 120px; } .cp-foot { flex-wrap: wrap; } .cp-count { margin-left: 0; } }


/* ============ sentuhan AUTARCH (ditambahkan AeonPad) ============ */
body.app { background: radial-gradient(90% 60% at 80% -10%, rgba(59,91,255,.18), transparent 60%), var(--bg); }
.side { background: linear-gradient(180deg, #06102a, #03060f); }
.side-logo { font-size: 15px; }
.side-nav a { border-radius: 0; font: 600 12.5px/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; }
.side-nav a.active { background: linear-gradient(90deg, rgba(59,91,255,.28), transparent); color: #fff; box-shadow: inset 3px 0 0 var(--brand); }
.side-nav a.active svg { color: var(--brand); }
.holder-card { border-radius: 0; background: linear-gradient(180deg, rgba(15,36,71,.6), rgba(5,10,26,.8)); }
.holder-card.ok { border-color: var(--line-2); background: linear-gradient(180deg, rgba(59,91,255,.22), rgba(5,10,26,.8)); }
.hc-label { font: 600 10.5px/1 var(--ui); letter-spacing: .2em; text-transform: uppercase; }
.holder-card b { font-family: var(--ui); letter-spacing: .04em; }
.crumbs { font: 600 12px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; }
.net { border-radius: 0; font: 600 11px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; background: rgba(124,196,255,.05); }
.net i { box-shadow: 0 0 10px var(--brand); }
.vh-title { font: 900 clamp(40px, 4.6vw, 64px)/.95 var(--display); text-transform: uppercase; letter-spacing: .005em;
  background: linear-gradient(180deg, #fff 25%, #9aa8c0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.quota b { font-family: var(--mono); font-weight: 500; }
.card { border-radius: 0; background: linear-gradient(180deg, rgba(15,36,71,.5), rgba(5,10,26,.78)); }
.composer:focus-within { border-color: var(--line-2); box-shadow: 0 0 0 1px var(--brand), 0 0 40px rgba(59,91,255,.25); }
#fPrompt { font-family: var(--sans); color: #fff; }
.cp-avatar { background: url(/brand/aeonpad-logo.webp) center/80% no-repeat, radial-gradient(circle, #0f2447, #03050b); box-shadow: inset 0 0 0 1px var(--line-2); }
.attach, .examples button { border-radius: 0; font-family: var(--ui); letter-spacing: .06em; }
.examples button { background: rgba(124,196,255,.04); }
.examples button:hover { color: #fff; }
.rd-row { border-radius: 0; background: rgba(255,255,255,.015); }
.rd-v { font-family: var(--ui); letter-spacing: .03em; }
.steps i { border-radius: 0; background: rgba(124,196,255,.1); color: var(--brand); font-family: var(--mono); box-shadow: inset 0 0 0 1px var(--line-2); }
.tbl th { font: 600 10.5px/1 var(--ui); letter-spacing: .18em; text-transform: uppercase; background: rgba(255,255,255,.02); }
.coin-card { border-radius: 0; background: linear-gradient(160deg, rgba(15,36,71,.55), rgba(4,9,22,.9)) !important; }
.cc-top > div > b, .coin-cell b, .dh-coin b { font-family: var(--ui); letter-spacing: .03em; }
.stat b { font-family: var(--mono); font-weight: 500; letter-spacing: 0; }
.stat > span { font: 600 10.5px/1.4 var(--ui); letter-spacing: .16em; text-transform: uppercase; }
.drawer { background: linear-gradient(180deg, #0a1734, #040915); border-left-color: var(--line-2); }
.icon-btn { border-radius: 0; background: transparent; }
.d-prompt, .sign-prompt, .d-quote { border-radius: 0; background: rgba(3,7,18,.7); border-color: var(--line-2); font-family: var(--sans); }
.found div, .gen, .live-box, .gen-img { border-radius: 0; }
.live-box { background: rgba(124,196,255,.06); }
.tl .dot { background: #040915; }
.tl li.done .dot svg { color: #03050b; }
.modal { border-radius: 0; background: linear-gradient(180deg, #0a1734, #040915); border: 1px solid var(--line-2); }
.wallet-list button { border-radius: 0; background: rgba(124,196,255,.04); font-family: var(--ui); letter-spacing: .06em; }
.toast b { font-family: var(--ui); letter-spacing: .06em; }

/* ============================================================
   LATAR FUTURISTIK HALAMAN APP
   Semua lapisan position:fixed → tidak ikut menggulir, tidak pernah terpotong,
   dan hanya menganimasikan transform/opacity supaya tetap 60 fps.
   ============================================================ */
.app-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
/* JANGAN set position di .side: di layar kecil dia position:fixed (menu geser),
   dan menimpanya membuat sidebar kembali jadi kolom → halaman melebar ke samping.
   .side sudah sticky/fixed, jadi z-index saja sudah cukup. */
body.app > .main { position: relative; z-index: 1; }
.side { z-index: 2; }

/* kisi cetak biru yang bergeser sangat pelan */
.ab-grid {
  position: absolute; inset: -60px;
  background:
    repeating-linear-gradient(to right, rgba(124,196,255,.07) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(to bottom, rgba(124,196,255,.07) 0 1px, transparent 1px 64px);
  -webkit-mask-image: radial-gradient(120% 100% at 78% 0%, #000 12%, rgba(0,0,0,.45) 48%, transparent 82%);
  mask-image: radial-gradient(120% 100% at 78% 0%, #000 12%, rgba(0,0,0,.45) 48%, transparent 82%);
}

/* cahaya ufuk di kanan atas, bernapas pelan */
.ab-glow {
  position: absolute; right: -10%; top: -28%; width: 76%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(59,91,255,.36), rgba(124,196,255,.13) 55%, transparent 78%);
}

/* satu pita cahaya menyapu turun — pengganti partikel, jauh lebih kalem */
.ab-sweep {
  position: absolute; left: 0; right: 0; height: 260px; top: 0;
  background: linear-gradient(to bottom, transparent, rgba(124,196,255,.055) 45%, rgba(124,196,255,.085) 50%, rgba(124,196,255,.055) 55%, transparent);
  will-change: transform, opacity; animation: abSweep 18s cubic-bezier(.45,0,.55,1) infinite;
}
@keyframes abSweep { 0% { transform: translate3d(0,-280px,0); opacity:0 } 12%,80% { opacity:1 } 100% { transform: translate3d(0,100vh,0); opacity:0 } }

/* garis sirkuit di sudut kiri bawah */
.ab-circuit { position: absolute; left: -40px; bottom: -30px; width: min(420px, 34vw); height: auto;
  fill: none; stroke: rgba(124,196,255,.19); stroke-width: 1; }
.ab-circuit .ab-trace { stroke: rgba(124,196,255,.48); stroke-width: 1.3; stroke-dasharray: 26 300; animation: abTrace 9s linear infinite; }
.ab-circuit .ab-trace-2 { animation-duration: 12s; animation-delay: 2.5s; }
.ab-circuit .ab-dot { fill: rgba(124,196,255,.7); stroke: none; animation: abPulse 9s ease-in-out infinite; }
.ab-circuit .ab-dot-2 { animation-duration: 12s; animation-delay: 2.5s; }
@keyframes abTrace { to { stroke-dashoffset: -326; } }
@keyframes abPulse { 0%,62%,100% { opacity:.25 } 72% { opacity:1 } }

/* siluet android di tepi kanan bawah — hadir tapi tidak mengganggu */
.ab-figure {
  position: absolute; right: -70px; bottom: 0; width: 460px; height: 78vh;
  background: url("/assets/scene-review.webp") right 22% / cover no-repeat;
  opacity: .2; filter: saturate(1.15);
  -webkit-mask-image: linear-gradient(to top, transparent, #000 34%, #000 72%, transparent),
                      linear-gradient(to left, #000 42%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask-image: linear-gradient(to top, transparent, #000 34%, #000 72%, transparent),
              linear-gradient(to left, #000 42%, transparent);
}

@media (max-width: 1180px) { .ab-figure { display: none; } }
@media (max-width: 760px) { .ab-circuit { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .ab-sweep, .ab-trace, .ab-dot { animation: none; }
  .ab-sweep { opacity: 0; }
}
