/* Dashboard SABLE — memakai token & komponen dari site.css */
body.app { overflow-x: hidden; }
body.app .ambient { opacity: .55; }
body.app::before { content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse 70% 60% at 60% 40%, rgba(6, 5, 4, .55), rgba(6, 5, 4, .25) 70%, rgba(6, 5, 4, .5)); }
.shell { position: relative; z-index: 1; display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }

/* ---------- sidebar ---------- */
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 16px 18px; border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(8, 7, 6, .9), rgba(6, 5, 4, .94)); backdrop-filter: blur(14px); }
.side .logo { padding: 2px 8px 0; }
.side-label { margin: 28px 10px 10px; font: 500 10px var(--lab); letter-spacing: .2em; text-transform: uppercase; color: var(--mu2); }
.side-nav { display: grid; gap: 3px; }
.side-nav a { position: relative; display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 10px; font-size: 14px; color: var(--tx2); transition: background .25s, color .25s; }
.side-nav a:hover { background: rgba(255, 255, 255, .035); color: var(--tx); }
.side-nav a.on { background: linear-gradient(90deg, rgba(217, 178, 106, .14), rgba(217, 178, 106, .03)); color: var(--tx); box-shadow: 0 0 0 1px rgba(217, 178, 106, .2) inset; }
.side-nav a.on::before { content: ''; position: absolute; left: -16px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--rh); box-shadow: 0 0 12px var(--rh); }
.si { display: inline-grid; place-items: center; width: 20px; color: var(--mu); }
.side-nav a.on .si { color: #f0d9a8; }
.si svg { width: 17px; height: 17px; }
.side-badge { margin-left: auto; padding: 2px 8px; border-radius: 999px; font: 500 9.5px var(--lab); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--mu); border: 1px solid var(--line2); }
.side-badge.open { color: #f0d9a8; border-color: rgba(217, 178, 106, .4); background: rgba(217, 178, 106, .08); }
.side-foot { margin-top: auto; display: grid; gap: 10px; }
.side-net { padding: 14px; border: 1px solid rgba(217, 178, 106, .18); border-radius: 14px; background: rgba(217, 178, 106, .04); }
.side-net-h { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--mu); }
.side-net-rows { margin-top: 12px; display: grid; gap: 6px; font-size: 12px; }
.side-net-rows div { display: flex; justify-content: space-between; color: var(--mu); }
.side-net-rows b { font-weight: 400; color: var(--tx); }
.side .ca-pill { justify-content: center; }
.side-back { display: flex; align-items: center; gap: 10px; padding: 8px 10px; font-size: 13px; color: var(--mu); border-radius: 9px; }
.side-back:hover { color: var(--tx); background: rgba(255, 255, 255, .03); }

/* ---------- main ---------- */
.main { min-width: 0; padding: 0 32px 60px; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; height: 84px; margin: 0 -32px 22px; padding: 0 32px; background: linear-gradient(180deg, rgba(6, 5, 4, .92), rgba(6, 5, 4, .7)); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top-title h1 { font: 500 30px/1.1 var(--serif); letter-spacing: .01em; }
.top-title p { margin-top: 3px; font-size: 14px; color: var(--mu); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.side-toggle { display: none; }
.wallet-btn { gap: 9px; text-transform: none; letter-spacing: .02em; font: 500 13px var(--sans); height: 40px; padding: 0 16px; }
.wallet-btn .wb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mu2); }
.wallet-btn.on .wb-dot { background: var(--rh); box-shadow: 0 0 10px var(--rh); }
.wallet-btn.on { border-color: rgba(217, 178, 106, .35); color: var(--tx); }
.wallet-btn img { width: 18px; height: 18px; border-radius: 5px; }
.netwarn { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding: 12px 16px; border: 1px solid rgba(226, 117, 110, .4); border-radius: 12px; background: rgba(226, 117, 110, .08); font-size: 13.5px; color: var(--tx); }
.netwarn[hidden] { display: none; }
.view[hidden] { display: none; }
.view { animation: inUp .45s var(--ease); }
.card-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.card-h .card-title { margin: 0; }
.fine { margin-top: 14px; font-size: 13px; color: var(--mu); line-height: 1.6; }

/* ---------- overview ---------- */
.welcome { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 18px; padding: 32px 34px; overflow: hidden; border-color: rgba(217, 178, 106, .25); background: linear-gradient(110deg, rgba(217, 178, 106, .12), rgba(9, 8, 7, .9) 55%); }
.welcome[hidden] { display: none; }
.welcome h2 { margin-top: 12px; font: 500 40px/1.05 var(--serif); }
.welcome p { margin-top: 10px; max-width: 560px; font-size: 14.5px; color: var(--tx2); }
.welcome-act { display: flex; align-items: center; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.welcome-act .step-wallets { margin: 0; }
.welcome-mark { width: 120px; height: 120px; opacity: .9; filter: drop-shadow(0 20px 40px rgba(217, 178, 106, .25)); }
.ov-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 16px; }
.networth { position: relative; overflow: hidden; }
.networth::after { content: ''; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; background: radial-gradient(circle, rgba(217, 178, 106, .16), transparent 70%); pointer-events: none; }
.nw-h { display: flex; justify-content: space-between; align-items: center; }
.nw-v { margin-top: 10px; font: 500 52px/1 var(--serif); letter-spacing: -.01em; }
.nw-split { display: flex; height: 6px; margin-top: 18px; border-radius: 6px; overflow: hidden; background: rgba(255, 255, 255, .06); }
.nw-split i { display: block; height: 100%; width: 0; transition: width .8s var(--ease); }
.nw-split i:first-child { background: linear-gradient(90deg, #6b6f76, #a9adb3); }
.nw-split i:last-child { background: linear-gradient(90deg, #a8803e, #f2d39a); }
.nw-legend { display: flex; gap: 22px; margin-top: 12px; font-size: 12.5px; color: var(--mu); }
.nw-legend i { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 2px; }
.nw-legend .lw { background: #a9adb3; }
.nw-legend .lv { background: var(--rh); }
.nw-legend b { margin-left: 6px; font-weight: 400; color: var(--tx); }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 22px; }
.q { display: grid; justify-items: center; gap: 8px; padding: 14px 6px; border: 1px solid var(--line); border-radius: 12px; font-size: 12.5px; color: var(--tx2); background: rgba(0, 0, 0, .25); transition: border-color .25s, color .25s, background .25s; }
.q:hover { border-color: rgba(217, 178, 106, .4); color: var(--tx); background: rgba(217, 178, 106, .06); }
.q span { color: #f0d9a8; }
.q svg { width: 18px; height: 18px; }
.vaultcard .vc-state { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.vaultcard .vc-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line2); color: var(--ch); }
.vaultcard.open .vc-ic { border-color: rgba(217, 178, 106, .45); color: #f0d9a8; box-shadow: 0 0 24px -6px rgba(217, 178, 106, .6); }
.vaultcard .vc-ic svg { width: 20px; height: 20px; }
.vaultcard b { display: block; font: 600 20px var(--serif); letter-spacing: .04em; }
.vaultcard .vc-sub { font-size: 12.5px; color: var(--mu); }
.vaultcard .vc-addr { margin-top: 16px; padding: 10px 12px; border: 1px dashed var(--line2); border-radius: 10px; font: 400 11.5px var(--mono); color: var(--tx2); word-break: break-all; }
.vaultcard .vc-val { margin-top: 14px; font: 500 28px var(--serif); }
.vaultcard .btn { margin-top: 16px; }
.netcard .nc-block { margin-top: 12px; font-size: 28px; letter-spacing: -.02em; }
.summary.flat { margin: 16px 0 0; padding: 0; border: 0; background: none; }
.ov-row { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; margin-top: 16px; align-items: start; }
.ov-side { display: grid; gap: 16px; }
.tbl { display: grid; }
.tr { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.tr:last-child { border-bottom: 0; }
.tr.th { padding-top: 0; font: 500 10.5px var(--lab); letter-spacing: .14em; text-transform: uppercase; color: var(--mu2); }
.tr .tk-c { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tr .tk-c img, .tr .tk-c .tk-ph { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.tr .tk-c b { display: block; font-weight: 500; }
.tr .tk-c span { display: block; font-size: 11.5px; color: var(--mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr .n { text-align: right; font-family: var(--mono); font-size: 12.5px; }
.tr .n.dim { color: var(--mu2); }
.tk-ph { display: inline-grid; place-items: center; background: #1b1a17; font: 500 10px var(--lab); color: var(--mu); }
.mini-list { display: grid; gap: 4px; }
.mini { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.mini:last-child { border: 0; }
.mini img { width: 26px; height: 26px; border-radius: 50%; }
.mini span { font-size: 11.5px; color: var(--mu); display: block; }
.mini .mono { color: #f0d9a8; }
.history.flat { border: 0; border-radius: 0; }
.history.flat .hrow { padding-left: 2px; padding-right: 2px; }

/* ---------- vault / forms (penyesuaian) ---------- */
.view .panel-grid { grid-template-columns: 1.2fr .8fr; }
.asset-pick.two { grid-template-columns: 1fr 1fr; }
.add-token { display: flex; gap: 8px; margin: -6px 0 18px; }
.add-token .input { height: 38px; font-size: 12.5px; }
.add-token .chip { height: 38px; }
.strat-grid { grid-template-columns: 1fr 1fr; }
.strat-apy b { font-size: 34px; }
.strat-apy span { letter-spacing: .1em; }
.seg.inline { margin: 0; display: inline-grid; }
.stages li.act i { border-color: #f0d9a8; box-shadow: 0 0 0 4px rgba(217, 178, 106, .15); }
.stages li.done i { border-color: var(--rh); background: var(--rh); }
.stages li.done::before { background: rgba(217, 178, 106, .45); }
.wl img { background: #fff; }

/* ---------- mobile ---------- */
.tabbar { display: none; }
@media (max-width: 1180px) {
  .ov-grid { grid-template-columns: 1fr 1fr; }
  .networth { grid-column: 1 / -1; }
  .ov-row, .view .panel-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 60; width: 270px; transform: translateX(-102%); transition: transform .4s var(--ease); }
  body.side-open .side { transform: none; box-shadow: 30px 0 60px rgba(0, 0, 0, .6); }
  .side-toggle { display: flex; }
  .main { padding: 0 16px 100px; }
  .top { margin: 0 -16px 18px; padding: 0 16px; height: 70px; }
  .top-title { min-width: 0; }
  .top-title h1 { font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .top-title p { display: none; }
  .top-right .net-chip { display: none; }
  .tabbar { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px; border: 1px solid var(--line2); border-radius: 18px; background: rgba(8, 7, 6, .92); backdrop-filter: blur(16px); }
  .tabbar a { display: grid; justify-items: center; gap: 4px; padding: 8px 0; border-radius: 12px; font-size: 10.5px; color: var(--mu); }
  .tabbar a.on { color: var(--tx); background: rgba(217, 178, 106, .1); }
  .tabbar a.on span { color: #f0d9a8; }
  .tabbar svg { width: 18px; height: 18px; }
  .welcome { padding: 24px; }
  .welcome h2 { font-size: 30px; }
  .welcome-mark { display: none; }
}
@media (max-width: 640px) {
  .ov-grid { grid-template-columns: 1fr; }
  .nw-v { font-size: 40px; }
  .tr { grid-template-columns: 1.4fr 1fr 1fr; }
  .tr .c-price, .tr .c-vault { display: none; }
  .wallet-btn span[data-connect-label] { max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
  .strat-grid { grid-template-columns: 1fr; }
}
.strat-d { margin-top: 10px; font-size: 12.5px; color: var(--mu); line-height: 1.55; min-height: 38px; }

/* ekspor kunci vault */
.vault-key { margin-top: 12px; padding: 16px 18px; border: 1px solid rgba(226, 117, 110, .35); border-radius: 14px; background: linear-gradient(180deg, rgba(34, 16, 14, .96), rgba(16, 10, 9, .96)); }
.vault-key[hidden] { display: none; }
.vault-key h4 { font: 600 16px var(--serif); letter-spacing: .03em; }
.vault-key p { margin-top: 6px; font-size: 12.5px; color: var(--tx2); line-height: 1.6; }
.vault-key .vk-val { margin-top: 12px; padding: 12px; border: 1px dashed var(--line2); border-radius: 10px; font: 400 12px var(--mono); color: var(--tx); word-break: break-all; }
.vault-key .vk-val.blur { filter: blur(6px); user-select: none; }
.vault-key .vk-act { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.wl-sep { margin: 10px 2px 2px; font: 500 10px var(--lab); letter-spacing: .16em; text-transform: uppercase; color: var(--mu2); }

.chip { white-space: nowrap; }
.vault-addr-act { flex-wrap: wrap; }

/* ---------- badge baru, sinkronisasi riwayat ---------- */
.side-badge.new { color: #f0d9a8; border-color: rgba(217, 178, 106, .5); background: rgba(217, 178, 106, .12); }
.side-badge[hidden] { display: none; }
.sync { display: flex; align-items: center; gap: 10px; margin: -4px 0 12px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font: 400 11.5px var(--lab); color: var(--mu); }
.sync span[data-sync-text] { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sync-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mu2); flex: none; }
.sync.loading .sync-dot { background: var(--rh); animation: pulse 1.2s infinite; }
.sync.ok .sync-dot { background: var(--jade); }
.sync.err .sync-dot { background: var(--red); }
.more-btn { margin-top: 12px; }
.more-btn[hidden] { display: none; }
.hrow .amt-in { color: #f0d9a8; }
.hrow .hm .note { color: var(--tx2); }
.hrow.pending { opacity: .7; }
.hrow .tag { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line2); font: 500 9.5px var(--lab); letter-spacing: .08em; text-transform: uppercase; color: var(--mu); vertical-align: 1px; }

/* ---------- swap ---------- */
.swap-card { position: relative; }
.sw-box { padding: 16px; border: 1px solid var(--line2); border-radius: 14px; background: rgba(0, 0, 0, .35); }
.sw-box + .sw-flip + .sw-box { margin-top: -8px; }
.sw-row { display: flex; align-items: center; gap: 10px; }
.sw-row input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font: 400 28px var(--mono); color: var(--tx); }
.sw-row input::placeholder { color: var(--mu2); }
.sw-out { flex: 1; min-width: 0; font-size: 28px; color: var(--tx2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-usd { margin-top: 6px; min-height: 16px; font-size: 11.5px; color: var(--mu); }
.tok-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 8px; border: 1px solid var(--line2); border-radius: 999px; background: rgba(255, 255, 255, .04); font: 500 13.5px var(--sans); color: var(--tx); flex: none; transition: border-color .25s; }
.tok-btn:hover { border-color: rgba(217, 178, 106, .45); }
.tok-btn img, .tok-btn .tk-ph { width: 24px; height: 24px; border-radius: 50%; }
.tok-btn::after { content: ''; width: 6px; height: 6px; margin-left: 2px; border-right: 1.5px solid var(--mu); border-bottom: 1.5px solid var(--mu); transform: rotate(45deg) translateY(-2px); }
.sw-flip { position: relative; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; margin: -6px auto -6px; border: 1px solid var(--line2); border-radius: 11px; background: #0d0c0b; color: #f0d9a8; transition: transform .35s var(--ease); }
.sw-flip:hover { transform: rotate(180deg); }
.swap-card .summary { margin-top: 16px; }
.bullets { list-style: none; display: grid; gap: 10px; font-size: 13px; color: var(--tx2); line-height: 1.6; }
.bullets li { position: relative; padding-left: 16px; }
.bullets li::before { content: ''; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--rh); }
.panel-side > .card + .card { margin-top: 16px; }
.tok-list { display: grid; gap: 4px; margin-top: 12px; max-height: 420px; overflow: auto; }
.tok-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 10px; text-align: left; transition: background .2s; }
.tok-row:hover { background: rgba(255, 255, 255, .04); }
.tok-row img, .tok-row .tk-ph { width: 30px; height: 30px; border-radius: 50%; }
.tok-row b { display: block; font-weight: 500; font-size: 14px; }
.tok-row span { font-size: 12px; color: var(--mu); }
.tok-row .tb { text-align: right; font: 400 12px var(--mono); color: var(--tx2); }
#tokenModal .input { margin-top: 14px; }

/* ---------- receive ---------- */
.recv { display: flex; gap: 22px; align-items: center; padding: 6px 0 4px; }
.recv .qr { width: 196px; height: 196px; padding: 12px; border-radius: 16px; background: #f4efe4; flex: none; }
.recv .qr svg { width: 100%; height: 100%; }
.recv .k { font: 500 10.5px var(--lab); letter-spacing: .16em; text-transform: uppercase; color: var(--mu); }
.recv .addr { margin-top: 8px; font: 400 15px/1.5 var(--mono); color: var(--tx); word-break: break-all; }
.recv .acts { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.recv .net { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(217, 178, 106, .3); background: rgba(217, 178, 106, .06); font: 500 11px var(--lab); color: #f0d9a8; }
.warn-box { display: flex; gap: 12px; margin-top: 20px; padding: 14px 16px; border: 1px solid rgba(226, 117, 110, .3); border-radius: 12px; background: rgba(226, 117, 110, .05); font-size: 12.5px; color: var(--tx2); line-height: 1.6; }
.warn-box span { color: var(--red); margin-top: 2px; }
.warn-box b { color: var(--tx); font-weight: 500; }
.bridges { display: grid; gap: 8px; }
.bridge { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; transition: border-color .25s, background .25s; }
.bridge:hover { border-color: rgba(217, 178, 106, .4); background: rgba(217, 178, 106, .04); }
.bridge b { display: block; font-weight: 500; font-size: 14px; }
.bridge span { font-size: 12px; color: var(--mu); }
.bridge em { font: 500 9.5px var(--lab); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: #f0d9a8; padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(217, 178, 106, .35); flex: none; }
.link-inline { color: #f0d9a8; text-decoration: underline; text-underline-offset: 3px; }
.gas-card .gc { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--tx2); line-height: 1.6; }
.gas-card .gc span { color: #f0d9a8; margin-top: 2px; }
.gas-card .gc.low span { color: var(--red); }
.tab-more { display: grid; justify-items: center; gap: 4px; padding: 8px 0; border-radius: 12px; font-size: 10.5px; color: var(--mu); }
.tab-more svg { width: 18px; height: 18px; }
@media (max-width: 640px) {
  .recv { flex-direction: column; align-items: flex-start; }
  .recv .qr { width: 168px; height: 168px; }
  .sw-row input, .sw-out { font-size: 22px; }
}

.recv .net .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--rh); box-shadow: 0 0 8px var(--rh); }

/* HP: area sentuh & input (PRD) */
@media (max-width: 640px) {
  .tabbar { bottom: max(10px, env(safe-area-inset-bottom)); }
  .wallet-btn, .side-toggle { min-height: 44px; }
  .seg button { min-height: 44px; }
  .asset-pick button { height: 44px; }
  .tok-btn { height: 44px; }
  .sync .link-btn { min-height: 36px; }
}
.side .ca-pill .v { white-space: normal; overflow-wrap: anywhere; text-align: left; }
.side .ca-pill { height: auto; min-height: 36px; padding: 8px 12px; }
@media (max-width: 1020px) { .side-nav a { height: 44px; } .side .logo { min-height: 44px; } dd.mono, .summary div, .fine, .note-box { font-size: 14px; } }
