/* ============================================================================
   DompetKu — design system "bento warna-warni"
   ========================================================================= */

:root {
  --bg: #F2F1EC;
  --card: #FFFFFF;
  --ink: #1E2330;
  --ink-soft: #5A6072;
  --muted: #9AA0AE;
  --line: #ECEAE3;
  --line-soft: #F2F0EA;

  --radius: 20px;
  --radius-sm: 13px;
  --radius-pill: 999px;

  --accent: #6C5CE7;
  --accent-press: #5b4bd6;
  --pos: #0E9F6E;
  --neg: #E8553C;

  --shadow-sm: 0 1px 2px rgba(24, 24, 48, .04);
  --shadow: 0 1px 2px rgba(24, 24, 48, .04), 0 8px 24px rgba(24, 24, 48, .06);
  --shadow-lg: 0 12px 40px rgba(24, 24, 48, .12);

  --c-mint: #CFF3E4;     --c-mint-ink: #0C6B4A;
  --c-sky: #D6ECFF;      --c-sky-ink: #0C5A9E;
  --c-peach: #FFE2D1;    --c-peach-ink: #9A3B12;
  --c-lavender: #E7DEFF; --c-lavender-ink: #4B3AA7;
  --c-lemon: #FFF0BF;    --c-lemon-ink: #856200;
  --c-rose: #FFD7E1;     --c-rose-ink: #A8194A;
  --c-teal: #CCEFEC;     --c-teal-ink: #0A6E68;
  --c-grape: #ECD9FF;    --c-grape-ink: #6B21A8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 100% -5%, rgba(108, 92, 231, .10), transparent 60%),
    radial-gradient(800px 500px at -5% 105%, rgba(14, 159, 110, .08), transparent 55%);
  background-attachment: fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
i.ti { font-size: 1.15em; line-height: 1; }

/* ---------- shell ---------- */
.app-shell { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  padding: 22px 16px; gap: 8px;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(10px);
  border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 6px 10px 18px; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; font-size: 20px; color: #fff;
  background: linear-gradient(135deg, #6C5CE7, #8E7BFF);
  box-shadow: 0 6px 16px rgba(108, 92, 231, .35);
}
.brand-name { font-size: 20px; font-weight: 700; letter-spacing: -.3px; }
.brand-name b { color: var(--accent); font-weight: 800; }

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 13px;
  font-size: 15px; font-weight: 600; color: var(--ink-soft);
  transition: background .15s, color .15s;
}
.nav-item i { font-size: 19px; }
.nav-item:hover { background: rgba(108, 92, 231, .08); color: var(--ink); }
.nav-item.active { background: var(--accent); color: #fff; box-shadow: 0 8px 18px rgba(108, 92, 231, .30); }
.sidebar-foot { margin-top: auto; padding-top: 12px; }
.nav-item.subtle { color: var(--muted); font-weight: 500; font-size: 14px; }
.nav-item.subtle:hover { background: var(--line-soft); color: var(--ink-soft); }
.sidebar-note { font-size: 11.5px; color: var(--muted); padding: 8px 14px 0; }

/* ---------- main / topbar ---------- */
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  padding: 18px 30px;
  background: rgba(242, 241, 236, .82);
  backdrop-filter: blur(10px);
}
.topbar-title { font-size: 23px; font-weight: 700; letter-spacing: -.4px; }
.quick-actions { margin-left: auto; display: flex; gap: 9px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: transform .12s, background .15s, box-shadow .15s;
}
.btn:active { transform: scale(.97); }
.btn i { font-size: 17px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 18px rgba(108, 92, 231, .28); }
.btn-primary:hover { background: var(--accent-press); }
.btn-soft { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.btn-soft:hover { border-color: #ddd9cd; }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: var(--line-soft); }
.btn-block { width: 100%; justify-content: center; }
.btn-danger { background: #fdecea; color: var(--neg); }
.btn-danger:hover { background: #fbdfdb; }

.icon-btn { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; color: var(--ink); background: #fff; border: 1px solid var(--line); }
.only-mobile { display: none; }

/* ---------- content ---------- */
.content { padding: 8px 30px 48px; }
.section-head { display: flex; align-items: center; gap: 10px; margin: 26px 2px 12px; }
.section-head h2 { font-size: 16px; font-weight: 700; letter-spacing: -.2px; }
.section-head .count { font-size: 13px; color: var(--muted); font-weight: 600; }
.section-head .spacer { margin-left: auto; }

/* ---------- bento grid + cards ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.card {
  background: var(--card); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, .6);
}
.col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; } .col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; } .col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

/* hero kekayaan bersih */
.hero {
  grid-column: span 5; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #5B4BD6 0%, #7C5CFF 50%, #9D7BFF 100%);
  border: none; box-shadow: 0 18px 40px rgba(108, 92, 231, .34);
}
.hero::after {
  content: ''; position: absolute; right: -40px; top: -50px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255, 255, 255, .14);
}
.hero .label { font-size: 13.5px; opacity: .85; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.hero .value { font-size: 38px; font-weight: 800; letter-spacing: -1px; margin: 10px 0 6px; }
.hero .delta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .18); padding: 5px 11px; border-radius: var(--radius-pill); }
.hero .sub { position: relative; margin-top: 18px; display: flex; gap: 22px; }
.hero .sub div span { display: block; }
.hero .sub .k { font-size: 12px; opacity: .8; }
.hero .sub .v { font-size: 16px; font-weight: 700; margin-top: 2px; }

/* stat tiles */
.stat { display: flex; flex-direction: column; gap: 4px; min-height: 104px; justify-content: center; }
.stat .stat-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; margin-bottom: 6px; }
.stat .k { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.stat .v { font-size: 23px; font-weight: 800; letter-spacing: -.5px; }
.stat .v.pos { color: var(--pos); } .stat .v.neg { color: var(--neg); }

/* tone helpers for icons/tiles */
.tone-mint { background: var(--c-mint); color: var(--c-mint-ink); }
.tone-sky { background: var(--c-sky); color: var(--c-sky-ink); }
.tone-peach { background: var(--c-peach); color: var(--c-peach-ink); }
.tone-lavender { background: var(--c-lavender); color: var(--c-lavender-ink); }
.tone-lemon { background: var(--c-lemon); color: var(--c-lemon-ink); }
.tone-rose { background: var(--c-rose); color: var(--c-rose-ink); }
.tone-teal { background: var(--c-teal); color: var(--c-teal-ink); }
.tone-grape { background: var(--c-grape); color: var(--c-grape-ink); }

.card-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.card-title .spacer { margin-left: auto; }
.link-more { font-size: 13px; color: var(--accent); font-weight: 600; }

.chart-wrap { position: relative; width: 100%; height: 230px; }

/* ---------- wallet cards ---------- */
.wallet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 15px; }
.wallet-card {
  position: relative; border-radius: var(--radius); padding: 18px;
  min-height: 132px; display: flex; flex-direction: column;
  box-shadow: var(--shadow); overflow: hidden;
}
.wallet-card .w-top { display: flex; align-items: center; gap: 11px; }
.wallet-card .w-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: rgba(255, 255, 255, .55); }
.wallet-card .w-name { font-weight: 700; font-size: 15.5px; }
.wallet-card .w-type { font-size: 12px; opacity: .8; font-weight: 600; }
.wallet-card .w-bal { margin-top: auto; font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.wallet-card .w-bal small { font-size: 12px; font-weight: 600; opacity: .75; display: block; margin-bottom: 1px; }
.wallet-card .w-acts { position: absolute; top: 12px; right: 12px; display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.wallet-card:hover .w-acts { opacity: 1; }
.w-mini { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 15px; background: rgba(255, 255, 255, .6); color: inherit; }
.w-mini:hover { background: rgba(255, 255, 255, .92); }
.wallet-add {
  border: 2px dashed #d8d4c8; background: rgba(255, 255, 255, .5); color: var(--ink-soft);
  display: grid; place-items: center; gap: 8px; min-height: 132px; border-radius: var(--radius); font-weight: 600;
}
.wallet-add:hover { border-color: var(--accent); color: var(--accent); }
.wallet-add i { font-size: 26px; }

.wallet-chip { display: flex; align-items: center; gap: 11px; padding: 9px 6px; border-radius: 12px; }
.wallet-chip:hover { background: var(--line-soft); }
.wallet-chip .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; }
.wallet-chip .nm { font-size: 14px; font-weight: 600; }
.wallet-chip .ty { font-size: 12px; color: var(--muted); }
.wallet-chip .bal { margin-left: auto; font-weight: 700; font-size: 14px; }

/* ---------- transactions ---------- */
.tx-list { display: flex; flex-direction: column; }
.tx-row { display: flex; align-items: center; gap: 13px; padding: 12px 8px; border-radius: 12px; cursor: pointer; transition: background .12s; }
.tx-row:hover { background: var(--line-soft); }
.tx-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.tx-main { min-width: 0; flex: 1; }
.tx-note { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-meta { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tx-meta .pill { background: var(--line-soft); padding: 1px 8px; border-radius: var(--radius-pill); font-weight: 600; color: var(--ink-soft); }
.tx-amt { font-weight: 800; font-size: 15px; white-space: nowrap; }
.tx-amt.pos { color: var(--pos); } .tx-amt.neg { color: var(--ink); } .tx-amt.tr { color: var(--sky-ink, #0C5A9E); }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.filters .search { flex: 1; min-width: 180px; }

/* ---------- goals ---------- */
.goal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.goal-card { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.goal-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.goal-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; }
.goal-name { font-weight: 700; font-size: 16px; }
.goal-sub { font-size: 12.5px; color: var(--muted); }
.progress { height: 12px; border-radius: var(--radius-pill); background: var(--line); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: var(--radius-pill); transition: width .5s ease; }
.goal-figs { display: flex; justify-content: space-between; margin: 13px 0 16px; }
.goal-figs .k { font-size: 12px; color: var(--muted); }
.goal-figs .v { font-size: 15px; font-weight: 700; }
.goal-figs .v.right { text-align: right; }
.goal-pct { font-weight: 800; font-size: 15px; }

/* ---------- forms ---------- */
.field { margin-bottom: 15px; }
.field > label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 7px; }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; font-size: 15px; font-family: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 13px; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(108, 92, 231, .14); }
.input::placeholder { color: var(--muted); }
.field-row { display: flex; gap: 12px; }
.field-row > .field { flex: 1; }
.amount-input { position: relative; }
.amount-input .pfx { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--ink-soft); }
.amount-input .input { padding-left: 42px; font-size: 18px; font-weight: 700; }

.swatches { display: flex; gap: 9px; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 10px; border: 2px solid transparent; cursor: pointer; position: relative; }
.swatch.sel { border-color: var(--ink); }
.swatch.sel::after { content: '\\2713'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; font-weight: 800; }

.type-tabs { display: flex; gap: 8px; background: var(--line-soft); padding: 5px; border-radius: 14px; margin-bottom: 18px; }
.type-tabs button { flex: 1; padding: 10px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--ink-soft); }
.type-tabs button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------- modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(24, 24, 44, .42); backdrop-filter: blur(3px); padding: 0;
  animation: fade .18s ease;
}
@media (min-width: 600px) { .modal-overlay { align-items: center; padding: 24px; } }
.modal {
  background: #fff; width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto;
  border-radius: 24px 24px 0 0; padding: 24px; box-shadow: var(--shadow-lg);
  animation: slideUp .24s cubic-bezier(.2, .8, .2, 1);
}
@media (min-width: 600px) { .modal { border-radius: 24px; } }
.modal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.modal-head h3 { font-size: 19px; font-weight: 700; }
.modal-head .close { margin-left: auto; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; color: var(--ink-soft); }
.modal-head .close:hover { background: var(--line-soft); }
.modal-actions { display: flex; gap: 10px; margin-top: 22px; }
.modal-actions .btn { flex: 1; justify-content: center; padding: 13px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: -8px; margin-bottom: 14px; }
.warn { font-size: 13px; color: var(--neg); background: #fdecea; padding: 10px 12px; border-radius: 11px; margin-bottom: 14px; display: flex; gap: 8px; align-items: flex-start; }

@keyframes fade { from { opacity: 0; } }
@keyframes slideUp { from { transform: translateY(30px); opacity: .4; } }

/* ---------- empty ---------- */
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty i { font-size: 40px; opacity: .5; }
.empty p { margin-top: 10px; font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 0; z-index: 60; width: 256px;
    transform: translateX(-100%); transition: transform .25s; background: #fff;
  }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .only-mobile { display: grid; }
  .hero, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: span 12; }
  .quick-actions .btn span { display: none; }
  .quick-actions .btn { padding: 11px; }
  .content, .topbar { padding-left: 18px; padding-right: 18px; }
}
@media (min-width: 981px) and (max-width: 1200px) {
  .hero { grid-column: span 12; }
  .col-3 { grid-column: span 6; }
}
.backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 55; }

/* ---------- login ---------- */
body.locked { overflow: hidden; }
.login-screen {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px;
  background:
    radial-gradient(1000px 600px at 80% -10%, rgba(108, 92, 231, .25), transparent 60%),
    radial-gradient(800px 520px at -10% 110%, rgba(14, 159, 110, .16), transparent 55%),
    var(--bg);
}
.login-card { width: 100%; max-width: 384px; background: #fff; border-radius: 24px; padding: 36px 28px; box-shadow: var(--shadow-lg); text-align: center; }
.login-brand { display: flex; justify-content: center; margin-bottom: 16px; }
.brand-logo.big { width: 62px; height: 62px; border-radius: 18px; font-size: 31px; }
.login-title { font-size: 28px; font-weight: 800; letter-spacing: -.6px; }
.login-title b { color: var(--accent); }
.login-tag { color: var(--ink-soft); font-size: 14px; margin: 5px 0 26px; }
.login-card .field { text-align: left; }
.login-card .btn-block { margin-top: 6px; padding: 13px; }

/* ---------- reminder ---------- */
.rem-next { font-size: 12.5px; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; margin-top: 8px; background: var(--line-soft); padding: 8px 11px; border-radius: 10px; }
.rem-next i { color: var(--accent); }

/* ---------- mobile bottom tab bar ---------- */
.mobile-tabbar { display: none; }
@media (max-width: 980px) {
  .mobile-tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: #fff; border-top: 1px solid var(--line);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; align-items: center;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, .06);
  }
  .tab-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; font-size: 10.5px; font-weight: 600; color: var(--muted); border-radius: 12px; }
  .tab-item i { font-size: 21px; }
  .tab-item.active { color: var(--accent); }
  .tab-fab { flex: 0 0 auto; width: 52px; height: 52px; margin-top: -24px; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 8px 18px rgba(108, 92, 231, .42); justify-content: center; }
  .tab-fab i { font-size: 25px; }
  .content { padding-bottom: 92px; }
}

/* ---------- logo ---------- */
.brand-logo-img { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 6px 16px rgba(108, 92, 231, .35); display: block; }
.login-logo { width: 66px; height: 66px; border-radius: 18px; box-shadow: 0 10px 24px rgba(108, 92, 231, .35); display: block; }

/* ---------- catatan (notes) ---------- */
.note-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.note-card { border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); min-height: 120px; display: flex; flex-direction: column; position: relative; }
.note-card .n-title { font-weight: 700; font-size: 15.5px; margin-bottom: 6px; padding-right: 40px; }
.note-card .n-body { font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; opacity: .92; flex: 1; }
.note-card .n-date { font-size: 11.5px; opacity: .6; margin-top: 12px; }
.note-card .n-acts { position: absolute; top: 12px; right: 12px; display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.note-card:hover .n-acts { opacity: 1; }

/* ---------- jadwal harian (routines) ---------- */
.routine-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow-sm); border: 1px solid var(--line); margin-bottom: 10px; }
.routine-time { font-weight: 800; font-size: 17px; color: var(--accent); min-width: 56px; font-variant-numeric: tabular-nums; }
.routine-main { flex: 1; min-width: 0; }
.routine-title { font-weight: 600; font-size: 14.5px; }
.routine-days { font-size: 12px; color: var(--muted); margin-top: 2px; }
.routine-row.off { opacity: .5; }
.routine-row .n-acts { display: flex; gap: 4px; }
.day-picker { display: flex; gap: 6px; flex-wrap: wrap; }
.day-chip { width: 42px; height: 38px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.day-chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.routine-row .w-mini { background: var(--line-soft); color: var(--ink-soft); }
.routine-row .w-mini:hover { background: var(--line); }

/* ---------- market & kalkulator ---------- */
.mk-head { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin: 15px 0 3px; }
.mk-head:first-child { margin-top: 0; }
.mk-row { display: flex; align-items: center; gap: 10px; padding: 7px 2px; border-bottom: 1px solid var(--line-soft); }
.mk-row:last-child { border-bottom: none; }
.mk-sym { font-weight: 700; font-size: 13.5px; display: flex; align-items: baseline; gap: 7px; min-width: 70px; }
.mk-name { font-weight: 500; font-size: 11.5px; color: var(--muted); }
.mk-val { margin-left: auto; font-weight: 600; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.mk-chg { font-size: 12px; font-weight: 700; min-width: 72px; text-align: right; font-variant-numeric: tabular-nums; }
.calc-row { display: flex; gap: 10px; align-items: center; }
.calc-row .input { flex: 1; font-size: 18px; font-weight: 700; }
.calc-row .select { max-width: 100px; }
.calc-eq { text-align: center; color: var(--muted); margin: 10px 0; }
.calc-out { flex: 1; padding: 12px 14px; background: var(--line-soft); border-radius: 13px; font-size: 17px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- market pro (exchange style) ---------- */
.mkt-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.mkt-updated { font-size: 11.5px; color: var(--muted); font-weight: 500; margin-left: auto; }
.mkt-toggle { display: inline-flex; background: var(--line-soft); border-radius: 10px; padding: 3px; gap: 2px; }
.mkt-toggle button { padding: 5px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.mkt-toggle button.on { background: #fff; color: var(--accent); box-shadow: var(--shadow-sm); }
.mkt-featured { display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); gap: 12px; margin-bottom: 20px; }
.ex-card { border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; background: #fff; }
.ex-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ex-name { font-weight: 800; font-size: 14px; }
.ex-name small { font-weight: 500; font-size: 11px; color: var(--muted); margin-left: 3px; }
.ex-price { font-size: 21px; font-weight: 800; letter-spacing: -.4px; margin: 7px 0 2px; font-variant-numeric: tabular-nums; }
.ex-spark { position: relative; height: 46px; margin-top: 4px; }
.mk-chg { font-size: 12px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mk-chg.up { color: var(--pos); }
.mk-chg.down { color: var(--neg); }
.mk-chg.muted { color: var(--muted); }
.mkt-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 8px 22px; }
.mkt-sec-head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin: 6px 0 4px; }
.mkt-gear { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; color: var(--muted); font-size: 15px; }
.mkt-gear:hover { background: var(--line-soft); color: var(--accent); }
.mk-tip { font-size: 13px; color: var(--muted); cursor: help; vertical-align: middle; }
.mk-empty { color: var(--muted); font-size: 13px; padding: 6px 2px; }
.cust-list { display: flex; flex-direction: column; gap: 2px; max-height: 320px; overflow-y: auto; margin-bottom: 6px; }
.cust-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 14px; cursor: pointer; }
.cust-item:hover { background: var(--line-soft); }
.cust-item input { width: 18px; height: 18px; accent-color: var(--accent); }
.icon-btn.spinning i { animation: ff-spin .8s linear infinite; }
@keyframes ff-spin { to { transform: rotate(360deg); } }

/* ---------- zona waktu bar ---------- */
.tz-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin-bottom: 16px; box-shadow: var(--shadow-sm); font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.tz-bar > i { color: var(--accent); font-size: 18px; }
.tz-bar .select { max-width: 300px; width: auto; }
