/* SKFaq — stylesheet bersama (jurnal + keuangan) */

  /* ╔══════════════════════════════════════════════════════════╗
     ║  SKFaq — Jurnal Trading Harian                            ║
     ║  Input saldo awal → saldo akhir, per hari kerja           ║
     ╚══════════════════════════════════════════════════════════╝ */

  :root {
    --void: #07090d;
    --bg-base: #0a0d14;
    --bg-elevated: #0e131c;
    --bg-card: #131824;
    --bg-card-hover: #181e2c;
    --bg-input: #1a2030;
    --bg-glass: rgba(19, 24, 36, 0.78);

    --line-faint: rgba(255, 255, 255, 0.04);
    --line-subtle: rgba(255, 255, 255, 0.07);
    --line-base: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.16);

    --text-primary: #f0f4fa;
    --text-secondary: #a6aebd;
    --text-tertiary: #7b8494;
    --text-faint: #565f70;

    --gold: #e3b341;
    --gold-bright: #f5c659;
    --gold-dim: #b58a2a;
    --gold-deep: #7a5c1a;
    --gold-glow: rgba(227, 179, 65, 0.18);

    --signature: #6f9cf2;
    --signature-glow: rgba(91, 141, 239, 0.16);

    --green: #10b981;
    --green-bright: #3ddba2;
    --green-bg: rgba(16, 185, 129, 0.12);
    --red: #ef4444;
    --red-bright: #f98080;
    --red-bg: rgba(239, 68, 68, 0.12);
    --amber: #fbbf24;
    --amber-bg: rgba(245, 158, 11, 0.12);
    --violet: #b49cfb;
    --violet-bg: rgba(167, 139, 250, 0.12);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, .4);
    --shadow-lg: 0 12px 38px rgba(0, 0, 0, .5);
    --shadow-gold: 0 8px 28px rgba(227, 179, 65, .16);

    --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 26px; --r-full: 9999px;

    --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
    --ease-out-quart: cubic-bezier(.25, 1, .5, 1);
    --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

  body {
    background: var(--void);
    color: var(--text-primary);
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -.005em;
  }

  body::before {
    content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
      radial-gradient(ellipse 1100px 760px at 82% -18%, rgba(227,179,65,.08), transparent 52%),
      radial-gradient(ellipse 880px 600px at 0% 100%, rgba(91,141,239,.05), transparent 52%);
    animation: ambient 22s ease-in-out infinite;
  }
  @keyframes ambient {
    0%, 100% { opacity: 1; transform: translate(0,0); }
    50% { opacity: .86; transform: translate(18px,-10px); }
  }
  body::after {
    content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .55;
    background-image:
      linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
    background-size: 64px 64px;
  }

  .app { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }

  /* ═══ FOCUS / A11Y ═══ */
  :focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 2px;
    border-radius: var(--r-xs);
  }
  .sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
  }

  /* ═══ NAV ═══ */
  .nav {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--line-base);
    padding: 14px 32px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: sticky; top: 0; z-index: 60;
  }
  .brand { display: flex; align-items: center; gap: 13px; }
  .brand-mark {
    width: 38px; height: 38px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
    border-radius: var(--r-sm); font-weight: 800; font-size: 13px; color: var(--void);
    letter-spacing: -.04em; box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255,255,255,.22);
    transition: transform .4s var(--ease-spring);
  }
  .brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }
  .brand-text { display: flex; flex-direction: column; line-height: 1.15; }
  .brand-name {
    font-size: 17px; font-weight: 700; letter-spacing: -.02em;
    background: linear-gradient(90deg, var(--text-primary), var(--gold-bright));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  }
  .brand-tag {
    font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 500;
    color: var(--text-tertiary); letter-spacing: .1em; text-transform: uppercase;
  }
  .nav-right { display: flex; align-items: center; gap: 10px; }

  .status-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: var(--r-full);
    font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600;
    border: 1px solid; text-transform: uppercase; letter-spacing: .08em;
  }
  .status-pill.live { color: var(--green-bright); border-color: rgba(16,185,129,.32); background: rgba(16,185,129,.07); }
  .status-pill.idle { color: var(--amber); border-color: rgba(245,158,11,.32); background: rgba(245,158,11,.07); }
  .status-pill.off  { color: var(--text-tertiary); border-color: var(--line-base); background: var(--bg-input); }
  .status-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; position: relative; }
  .status-pill.live .dot::before {
    content: ''; position: absolute; inset: -3px; border-radius: 50%;
    background: currentColor; opacity: .4; animation: ping 2s var(--ease-out-quart) infinite;
  }
  @keyframes ping { 0% { transform: scale(.6); opacity: .6; } 100% { transform: scale(2.4); opacity: 0; } }

  .icon-btn {
    width: 40px; height: 40px; min-width: 40px; display: grid; place-items: center;
    border-radius: var(--r-sm); border: 1px solid var(--line-base);
    background: var(--bg-card); color: var(--text-secondary); cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease-out-quart);
  }
  .icon-btn:hover { background: var(--bg-card-hover); color: var(--text-primary); border-color: var(--line-strong); transform: translateY(-1px); }
  .icon-btn:active { transform: translateY(0); }

  /* ═══ MAIN ═══ */
  .main { max-width: 1480px; width: 100%; margin: 0 auto; padding: 36px 32px 72px; flex: 1; }
  .page-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 20px; flex-wrap: wrap; margin-bottom: 26px;
  }
  .page-head h1 {
    font-size: clamp(26px, 4vw, 38px); font-weight: 700; letter-spacing: -.03em;
    line-height: 1.1; margin-bottom: 6px;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  }
  .page-head p { font-size: 15px; color: var(--text-secondary); }

  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 11px 18px; border-radius: var(--r-sm);
    font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
    border: 1px solid var(--line-base); background: var(--bg-card); color: var(--text-secondary);
    transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease-out-quart), box-shadow .2s;
  }
  .btn:hover:not(:disabled) { background: var(--bg-card-hover); color: var(--text-primary); border-color: var(--line-strong); transform: translateY(-1px); }
  .btn:active:not(:disabled) { transform: translateY(0); }
  .btn:disabled { opacity: .5; cursor: not-allowed; }
  .btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
    color: #12141a; border-color: transparent; box-shadow: var(--shadow-gold);
  }
  .btn-primary:hover:not(:disabled) { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #12141a; }
  .btn-danger { color: var(--red-bright); border-color: rgba(239,68,68,.3); background: var(--red-bg); }
  .btn-danger:hover:not(:disabled) { background: rgba(239,68,68,.2); color: var(--red-bright); }
  .btn .spinner { display: none; width: 15px; height: 15px; border-radius: 50%;
    border: 2px solid rgba(0,0,0,.25); border-top-color: #12141a; animation: spin .7s linear infinite; }
  .btn.loading .spinner { display: block; }
  .btn.loading .btn-label { opacity: .7; }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* ═══ HERO ═══ */
  .hero {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
    border: 1px solid var(--line-subtle); border-radius: var(--r-xl);
    padding: 32px; margin-bottom: 22px; position: relative; overflow: hidden;
    box-shadow: var(--shadow-md), inset 0 1px 0 var(--line-faint);
  }
  .hero::before {
    content: ''; position: absolute; top: -55%; right: -18%; width: 580px; height: 580px;
    background: radial-gradient(circle, var(--gold-glow), transparent 62%);
    pointer-events: none; animation: orb 14s ease-in-out infinite;
  }
  .hero::after {
    content: ''; position: absolute; bottom: -34%; left: -10%; width: 400px; height: 400px;
    background: radial-gradient(circle, var(--signature-glow), transparent 62%);
    pointer-events: none; animation: orb 18s ease-in-out infinite reverse;
  }
  @keyframes orb {
    0%, 100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(-28px,28px) scale(1.1); }
  }
  .hero-grid {
    display: grid; grid-template-columns: 1.55fr 1fr 1fr; gap: 34px;
    position: relative; z-index: 1;
  }
  .hero-block { display: flex; flex-direction: column; gap: 9px; }
  .hero-block.primary { border-right: 1px solid var(--line-base); padding-right: 34px; }
  .hero-label {
    display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-tertiary);
    font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  }
  .hero-label svg { width: 14px; height: 14px; opacity: .75; }
  .hero-value {
    font-size: clamp(34px, 5vw, 54px); font-weight: 700; letter-spacing: -.04em;
    line-height: 1; font-variant-numeric: tabular-nums; color: var(--text-primary);
  }
  .hero-block.primary .hero-value {
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 52%, var(--gold-dim) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  }
  .hero-cur {
    font-size: .42em; font-weight: 600; color: var(--text-tertiary); margin-right: 6px;
    -webkit-text-fill-color: var(--text-tertiary); vertical-align: .12em;
  }
  .hero-meta {
    display: flex; align-items: center; gap: 8px; margin-top: 4px;
    font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 500;
    color: var(--text-secondary);
  }
  .hero-meta.up { color: var(--green-bright); }
  .hero-meta.down { color: var(--red-bright); }
  .meta-badge {
    display: inline-grid; place-items: center; width: 22px; height: 22px;
    border-radius: var(--r-xs); font-size: 12px; font-weight: 700;
  }
  .hero-meta.up .meta-badge { background: var(--green-bg); }
  .hero-meta.down .meta-badge { background: var(--red-bg); }

  /* ═══ STATS ═══ */
  .stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 14px; margin-bottom: 30px;
  }
  .stat {
    background: var(--bg-card); border: 1px solid var(--line-subtle);
    border-radius: var(--r-md); padding: 20px; position: relative; overflow: hidden;
    transition: background .25s, border-color .25s, transform .25s var(--ease-out-quart), box-shadow .25s;
  }
  .stat::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; opacity: 0;
    background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
    transition: opacity .25s;
  }
  .stat:hover { background: var(--bg-card-hover); border-color: var(--line-base); transform: translateY(-2px); box-shadow: var(--shadow-md); }
  .stat:hover::before { opacity: 1; }
  .stat-icon {
    width: 38px; height: 38px; border-radius: var(--r-sm); display: grid; place-items: center;
    margin-bottom: 14px; background: var(--bg-input); color: var(--text-secondary);
    transition: transform .3s var(--ease-spring);
  }
  .stat:hover .stat-icon { transform: scale(1.08); }
  .stat-icon svg { width: 19px; height: 19px; }
  .stat.green .stat-icon  { background: var(--green-bg);  color: var(--green-bright); }
  .stat.red .stat-icon    { background: var(--red-bg);    color: var(--red-bright); }
  .stat.amber .stat-icon  { background: var(--amber-bg);  color: var(--amber); }
  .stat.gold .stat-icon   { background: var(--gold-glow); color: var(--gold-bright); }
  .stat.blue .stat-icon   { background: var(--signature-glow); color: var(--signature); }
  .stat.violet .stat-icon { background: var(--violet-bg); color: var(--violet); }
  .stat-label {
    font-size: 12px; color: var(--text-tertiary); font-weight: 600; margin-bottom: 7px;
    text-transform: uppercase; letter-spacing: .06em;
  }
  .stat-value {
    font-size: 26px; font-weight: 700; letter-spacing: -.025em; line-height: 1.05;
    margin-bottom: 6px; font-variant-numeric: tabular-nums;
  }
  .stat-meta { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-tertiary); }

  /* ═══ CARD / PANEL ═══ */
  .panel {
    background: var(--bg-card); border: 1px solid var(--line-subtle);
    border-radius: var(--r-md); overflow: hidden; transition: border-color .3s;
  }
  .panel:hover { border-color: var(--line-base); }
  .panel-head {
    padding: 18px 22px; border-bottom: 1px solid var(--line-faint);
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  }
  .panel-title {
    font-size: 15px; font-weight: 700; letter-spacing: -.015em;
    display: flex; align-items: center; gap: 9px;
  }
  .panel-title-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
  .panel-meta { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-tertiary); letter-spacing: .04em; }

  /* ═══ FORM INPUT HARIAN ═══ */
  .entry-card {
    background: linear-gradient(150deg, var(--bg-card), var(--bg-elevated));
    border: 1px solid var(--line-base); border-radius: var(--r-lg);
    margin-bottom: 30px; overflow: hidden; box-shadow: var(--shadow-md);
    position: relative;
  }
  .entry-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-deep) 26%, var(--gold-bright) 50%, var(--gold-deep) 74%, transparent);
    opacity: .55;
  }
  .entry-head {
    padding: 20px 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  }
  .entry-head h2 { font-size: 17px; font-weight: 700; letter-spacing: -.02em; display: flex; align-items: center; gap: 9px; }
  .edit-flag {
    display: none; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--r-full);
    font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--signature); background: var(--signature-glow); border: 1px solid rgba(91,141,239,.3);
  }
  .edit-flag.show { display: inline-flex; }

  .form-grid {
    padding: 18px 24px 4px; display: grid; gap: 16px;
    grid-template-columns: 1fr 1fr 1fr 1.25fr;
  }
  .field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
  .field label {
    font-size: 12px; font-weight: 600; color: var(--text-tertiary);
    text-transform: uppercase; letter-spacing: .06em;
  }
  .input-wrap { position: relative; display: flex; align-items: center; }
  .input-prefix {
    position: absolute; left: 14px; font-family: 'JetBrains Mono', monospace;
    font-size: 13px; color: var(--text-faint); pointer-events: none;
  }
  .input {
    width: 100%; min-height: 46px; padding: 12px 14px;
    background: var(--bg-input); border: 1px solid var(--line-base); border-radius: var(--r-sm);
    color: var(--text-primary); font-family: 'JetBrains Mono', monospace; font-size: 15px;
    font-variant-numeric: tabular-nums;
    transition: border-color .2s, background .2s, box-shadow .2s;
  }
  .input.has-prefix { padding-left: 32px; }
  .input::placeholder { color: var(--text-faint); }
  .input:hover { border-color: var(--line-strong); }
  .input:focus { outline: none; border-color: var(--gold-dim); background: var(--bg-card-hover); box-shadow: 0 0 0 3px rgba(227,179,65,.12); }
  .input:focus-visible { outline: none; }
  .input.invalid { border-color: rgba(239,68,68,.55); box-shadow: 0 0 0 3px rgba(239,68,68,.1); }
  .input[type="date"] { font-family: 'JetBrains Mono', monospace; color-scheme: dark; }
  .field-hint {
    font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--text-faint);
    min-height: 14px; letter-spacing: .02em;
  }
  .field-hint.warn { color: var(--amber); }
  .field-hint.danger { color: var(--red-bright); }
  .field-hint.ok { color: var(--green-bright); }

  .entry-foot {
    padding: 8px 24px 22px; display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
  }
  .foot-left { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
  .checkbox {
    display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
    font-size: 13px; color: var(--text-secondary); min-height: 44px;
  }
  .checkbox input { width: 18px; height: 18px; accent-color: var(--gold); cursor: pointer; }
  .foot-actions { display: flex; gap: 10px; flex-wrap: wrap; }

  /* Preview P/L live */
  .preview {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    padding: 12px 16px; border-radius: var(--r-sm);
    background: var(--bg-input); border: 1px solid var(--line-faint);
    transition: border-color .3s, background .3s;
  }
  .preview.up { border-color: rgba(16,185,129,.28); background: rgba(16,185,129,.07); }
  .preview.down { border-color: rgba(239,68,68,.28); background: rgba(239,68,68,.07); }
  .preview-item { display: flex; flex-direction: column; gap: 2px; }
  .preview-k {
    font-size: 10px; text-transform: uppercase; letter-spacing: .08em;
    color: var(--text-tertiary); font-weight: 600;
  }
  .preview-v {
    font-family: 'JetBrains Mono', monospace; font-size: 16px; font-weight: 700;
    font-variant-numeric: tabular-nums;
  }
  .preview-sep { width: 1px; align-self: stretch; background: var(--line-base); }

  .holiday-banner {
    display: none; align-items: flex-start; gap: 10px; margin: 0 24px 4px;
    padding: 12px 15px; border-radius: var(--r-sm);
    background: var(--amber-bg); border: 1px solid rgba(245,158,11,.28);
    color: var(--amber); font-size: 13px; line-height: 1.45;
  }
  .holiday-banner.show { display: flex; animation: slide-in .3s var(--ease-out-quart); }
  .holiday-banner svg { flex-shrink: 0; margin-top: 2px; }
  @keyframes slide-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

  /* ═══ CHART ═══ */
  .chart-card {
    background: var(--bg-card); border: 1px solid var(--line-subtle);
    border-radius: var(--r-md); padding: 24px; margin-bottom: 24px;
    position: relative; overflow: hidden;
  }
  .chart-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; opacity: .4;
    background: linear-gradient(90deg, transparent, var(--gold-deep) 30%, var(--gold-bright) 50%, var(--gold-deep) 70%, transparent);
  }
  .chart-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 22px; flex-wrap: wrap; gap: 14px;
  }
  .chart-title h3 { font-size: 17px; font-weight: 700; letter-spacing: -.015em; }
  .chart-title p { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-tertiary); margin-top: 3px; }
  .chart-controls { display: flex; gap: 8px; flex-wrap: wrap; }
  .tabs {
    display: flex; gap: 3px; background: var(--bg-input); padding: 4px;
    border-radius: var(--r-sm); border: 1px solid var(--line-faint);
  }
  .tab {
    min-height: 36px; padding: 8px 14px; border: none; background: transparent;
    border-radius: var(--r-xs); font-family: inherit; font-size: 12.5px; font-weight: 600;
    color: var(--text-tertiary); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s;
  }
  .tab.active { background: var(--bg-card); color: var(--gold-bright); box-shadow: var(--shadow-sm), inset 0 1px 0 var(--line-base); }
  .tab:hover:not(.active) { color: var(--text-secondary); }
  .chart-canvas { position: relative; height: 340px; }

  /* ═══ DUO ═══ */
  .duo { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; margin-bottom: 24px; }

  /* ═══ KALENDER ═══ */
  .cal-nav { display: flex; align-items: center; gap: 6px; }
  .cal-month {
    font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600;
    color: var(--text-secondary); min-width: 96px; text-align: center; letter-spacing: .04em;
  }
  .cal-body { padding: 18px 22px 22px; }
  .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
  .cal-dow {
    text-align: center; font-size: 10px; font-weight: 700; color: var(--text-faint);
    text-transform: uppercase; letter-spacing: .08em; padding-bottom: 6px;
  }
  .cal-dow.we { color: var(--text-tertiary); opacity: .6; }
  .cal-cell {
    position: relative; aspect-ratio: 1 / 1; min-height: 44px; border-radius: var(--r-sm);
    border: 1px solid var(--line-faint); background: var(--bg-input);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    cursor: pointer; padding: 2px; overflow: hidden;
    transition: transform .2s var(--ease-out-quart), border-color .2s, background .2s;
    opacity: 0; animation: cell-in .3s var(--ease-out-quart) forwards;
  }
  @keyframes cell-in { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }
  .cal-cell:hover { transform: translateY(-2px) scale(1.04); border-color: var(--line-strong); z-index: 2; }
  .cal-cell.blank { background: transparent; border-color: transparent; cursor: default; animation: none; opacity: 1; }
  .cal-cell.blank:hover { transform: none; }
  .cal-cell.weekend { background: repeating-linear-gradient(135deg, rgba(255,255,255,.02) 0 5px, transparent 5px 10px); cursor: not-allowed; }
  .cal-cell.weekend .cal-day { color: var(--text-faint); }
  .cal-cell.future { opacity: .45; }
  .cal-cell.today { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold-deep), 0 0 16px rgba(227,179,65,.18); }
  .cal-cell.win { background: rgba(16,185,129,calc(.1 + var(--a) * .45)); border-color: rgba(16,185,129,.3); }
  .cal-cell.loss { background: rgba(239,68,68,calc(.1 + var(--a) * .45)); border-color: rgba(239,68,68,.3); }
  .cal-cell.flat { background: var(--bg-card-hover); border-color: var(--line-base); }
  .cal-day { font-size: 12px; font-weight: 600; color: var(--text-secondary); font-variant-numeric: tabular-nums; line-height: 1; }
  .cal-cell.win .cal-day, .cal-cell.loss .cal-day { color: var(--text-primary); }
  .cal-pnl {
    font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 600;
    line-height: 1; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  }
  .cal-cell.win .cal-pnl { color: var(--green-bright); }
  .cal-cell.loss .cal-pnl { color: var(--red-bright); }
  .cal-legend {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-faint);
    font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--text-tertiary);
  }
  .legend-item { display: inline-flex; align-items: center; gap: 6px; }
  .legend-swatch { width: 11px; height: 11px; border-radius: 3px; border: 1px solid var(--line-base); }
  .legend-swatch.win { background: rgba(16,185,129,.42); border-color: rgba(16,185,129,.4); }
  .legend-swatch.loss { background: rgba(239,68,68,.42); border-color: rgba(239,68,68,.4); }
  .legend-swatch.we { background: repeating-linear-gradient(135deg, rgba(255,255,255,.09) 0 4px, transparent 4px 8px); }

  /* ═══ REKAP BULANAN ═══ */
  .months { padding: 16px 22px 20px; display: flex; flex-direction: column; gap: 15px; }
  .month-row { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; }
  .month-name { font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; }
  .month-sub { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text-tertiary); margin-top: 2px; }
  .month-bar { height: 8px; background: var(--bg-input); border-radius: var(--r-full); overflow: hidden; position: relative; }
  .month-fill {
    height: 100%; border-radius: var(--r-full); width: 0;
    background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright));
    transition: width 1.1s var(--ease-out-expo); position: relative; overflow: hidden;
  }
  .month-fill.neg { background: linear-gradient(90deg, #b1343a, var(--red-bright)); }
  .month-fill::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
    animation: shimmer 2.6s ease-in-out infinite;
  }
  @keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
  .month-stats { text-align: right; min-width: 92px; }
  .month-pnl { font-family: 'JetBrains Mono', monospace; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
  .month-pct { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--text-tertiary); margin-top: 3px; }

  /* ═══ TABEL ═══ */
  .scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
  .table thead th {
    padding: 13px 20px; text-align: left; font-size: 10px; font-weight: 700;
    color: var(--text-tertiary); text-transform: uppercase; letter-spacing: .1em;
    background: var(--bg-elevated); border-bottom: 1px solid var(--line-faint); white-space: nowrap;
  }
  .table thead th.right { text-align: right; }
  .table tbody td {
    padding: 14px 20px; border-bottom: 1px solid var(--line-faint);
    vertical-align: middle; white-space: nowrap;
  }
  .table tbody td.right { text-align: right; font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; }
  .table tbody tr { transition: background .2s; }
  .table tbody tr:hover { background: var(--bg-card-hover); }
  .table tbody tr:last-child td { border-bottom: none; }
  .cell-date { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; font-weight: 600; }
  .cell-dow { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; }
  .cell-note {
    color: var(--text-tertiary); font-size: 12.5px; max-width: 220px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .row-actions { display: flex; gap: 6px; justify-content: flex-end; }
  .mini-btn {
    width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--r-xs);
    border: 1px solid var(--line-base); background: var(--bg-input); color: var(--text-tertiary);
    cursor: pointer; transition: color .2s, background .2s, border-color .2s;
  }
  .mini-btn:hover { color: var(--text-primary); background: var(--bg-card-hover); border-color: var(--line-strong); }
  .mini-btn.danger:hover { color: var(--red-bright); border-color: rgba(239,68,68,.4); background: var(--red-bg); }

  .pill {
    display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px;
    border-radius: var(--r-xs); border: 1px solid;
    font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  }
  .pill-win { color: var(--green-bright); border-color: rgba(16,185,129,.32); background: var(--green-bg); }
  .pill-win::before { content: '↗'; font-size: 12px; }
  .pill-loss { color: var(--red-bright); border-color: rgba(239,68,68,.32); background: var(--red-bg); }
  .pill-loss::before { content: '↘'; font-size: 12px; }
  .pill-flat { color: var(--text-tertiary); border-color: var(--line-base); background: var(--bg-input); }
  .pill-flat::before { content: '—'; }
  .pill-we { color: var(--amber); border-color: rgba(245,158,11,.3); background: var(--amber-bg); }

  /* ═══ EMPTY / SKELETON ═══ */
  .empty { padding: 60px 24px; text-align: center; }
  .empty-icon {
    width: 54px; height: 54px; margin: 0 auto 18px; border-radius: var(--r-md);
    background: var(--bg-input); border: 1px solid var(--line-faint);
    display: grid; place-items: center; color: var(--text-faint);
  }
  .empty-title { font-size: 15px; font-weight: 600; color: var(--text-secondary); margin-bottom: 5px; }
  .empty-sub { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-tertiary); }

  .skel {
    background: linear-gradient(90deg, var(--bg-card) 0%, var(--bg-card-hover) 50%, var(--bg-card) 100%);
    background-size: 200% 100%; animation: skel 1.5s infinite;
    border-radius: var(--r-xs); color: transparent !important;
  }
  @keyframes skel { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

  /* ═══ TOAST ═══ */
  .toasts {
    position: fixed; bottom: 24px; right: 24px; z-index: 200;
    display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 32px));
  }
  .toast {
    display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px;
    border-radius: var(--r-sm); background: var(--bg-card-hover);
    border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg);
    font-size: 13.5px; line-height: 1.45; color: var(--text-primary);
    animation: toast-in .35s var(--ease-spring);
  }
  .toast.out { animation: toast-out .25s var(--ease-out-quart) forwards; }
  .toast.success { border-color: rgba(16,185,129,.4); }
  .toast.success .toast-icon { color: var(--green-bright); }
  .toast.error { border-color: rgba(239,68,68,.4); }
  .toast.error .toast-icon { color: var(--red-bright); }
  .toast.info .toast-icon { color: var(--signature); }
  .toast-icon { flex-shrink: 0; margin-top: 1px; }
  @keyframes toast-in { from { opacity: 0; transform: translateX(24px) scale(.96); } to { opacity: 1; transform: none; } }
  @keyframes toast-out { to { opacity: 0; transform: translateX(24px) scale(.96); } }

  /* ═══ MODAL ═══ */
  .overlay {
    position: fixed; inset: 0; z-index: 150; display: none; place-items: center; padding: 20px;
    background: rgba(4,6,10,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  }
  .overlay.show { display: grid; animation: fade-in .2s ease-out; }
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
  .modal {
    width: 100%; max-width: 420px; background: var(--bg-card);
    border: 1px solid var(--line-strong); border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg); overflow: hidden;
    animation: modal-in .3s var(--ease-spring);
  }
  @keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
  .modal-head { padding: 20px 22px 0; }
  .modal-head h3 { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
  .modal-head p { font-size: 13.5px; color: var(--text-secondary); margin-top: 6px; line-height: 1.5; }
  .modal-body { padding: 18px 22px 0; display: flex; flex-direction: column; gap: 14px; }
  .modal-foot { padding: 20px 22px; display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

  /* ═══ FOOTER ═══ */
  .footer { margin-top: 56px; padding: 28px 0 12px; border-top: 1px solid var(--line-subtle); text-align: center; }
  .footer-mark {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-tertiary);
    letter-spacing: .1em; text-transform: uppercase;
  }
  .footer-mark::before, .footer-mark::after { content: ''; width: 24px; height: 1px; background: var(--line-base); }

  /* ═══ UTIL ═══ */
  .mono { font-family: 'JetBrains Mono', monospace; }
  .text-green { color: var(--green-bright); }
  .text-red { color: var(--red-bright); }
  .text-sec { color: var(--text-secondary); }
  .text-ter { color: var(--text-tertiary); }
  .text-gold { color: var(--gold-bright); }

  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: var(--void); }
  ::-webkit-scrollbar-thumb { background: var(--line-base); border-radius: var(--r-full); border: 2px solid var(--void); }
  ::-webkit-scrollbar-thumb:hover { background: var(--line-strong); }

  .reveal { opacity: 0; transform: translateY(14px); animation: reveal .6s var(--ease-out-expo) forwards; }
  .reveal:nth-child(1) { animation-delay: .04s; }
  .reveal:nth-child(2) { animation-delay: .08s; }
  .reveal:nth-child(3) { animation-delay: .12s; }
  .reveal:nth-child(4) { animation-delay: .16s; }
  .reveal:nth-child(5) { animation-delay: .2s; }
  .reveal:nth-child(6) { animation-delay: .24s; }
  .reveal:nth-child(7) { animation-delay: .28s; }
  .reveal:nth-child(8) { animation-delay: .32s; }
  @keyframes reveal { to { opacity: 1; transform: none; } }

  /* ═══ RESPONSIVE ═══ */
  @media (max-width: 1180px) {
    .duo { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
    .hero-block.primary { grid-column: 1 / -1; border-right: none; padding-right: 0; padding-bottom: 22px; border-bottom: 1px solid var(--line-base); }
  }
  @media (max-width: 768px) {
    .nav { padding: 12px 16px; }
    .main { padding: 22px 16px 56px; }
    .brand-tag { display: none; }
    .hero { padding: 22px; border-radius: var(--r-lg); }
    .hero-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .form-grid { grid-template-columns: 1fr; padding: 16px 18px 4px; }
    .entry-head, .holiday-banner { padding-left: 18px; padding-right: 18px; margin-left: 0; margin-right: 0; }
    .holiday-banner { margin: 0 18px 4px; }
    .entry-foot { padding: 8px 18px 20px; }
    .foot-actions { width: 100%; }
    .foot-actions .btn { flex: 1; }
    .chart-canvas { height: 260px; }
    .chart-card, .cal-body, .months { padding: 18px; }
    .table thead th, .table tbody td { padding: 12px 14px; }
    .toasts { right: 16px; left: 16px; bottom: 16px; max-width: none; }
    .cal-grid { gap: 5px; }
    .cal-pnl { display: none; }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: .001ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: .001ms !important;
      scroll-behavior: auto !important;
    }
    .reveal, .cal-cell { opacity: 1; transform: none; }
  }

/* ╔══════════════════════════════════════════════════════════╗
   ║  NAVIGASI ANTAR HALAMAN                                   ║
   ╚══════════════════════════════════════════════════════════╝ */
.page-tabs {
  display: flex; gap: 3px; margin-left: 22px; padding: 4px;
  background: var(--bg-input); border: 1px solid var(--line-faint); border-radius: var(--r-sm);
}
.page-tab {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 36px; padding: 8px 15px; border-radius: var(--r-xs);
  font-size: 13px; font-weight: 600; color: var(--text-tertiary);
  text-decoration: none; white-space: nowrap;
  transition: background .2s, color .2s, box-shadow .2s;
}
.page-tab svg { width: 15px; height: 15px; }
.page-tab:hover { color: var(--text-secondary); }
.page-tab.active {
  background: var(--bg-card); color: var(--gold-bright);
  box-shadow: var(--shadow-sm), inset 0 1px 0 var(--line-base);
}
@media (max-width: 860px) {
  .page-tabs { margin-left: 10px; }
  .page-tab { padding: 8px 11px; }
  .page-tab span { display: none; }
  .page-tab svg { width: 17px; height: 17px; }
}

/* ╔══════════════════════════════════════════════════════════╗
   ║  HALAMAN KEUANGAN                                         ║
   ╚══════════════════════════════════════════════════════════╝ */

/* ═══ PEMILIH BULAN ═══ */
.month-picker {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.month-label {
  font-size: 15px; font-weight: 700; letter-spacing: -.015em;
  min-width: 132px; text-align: center; font-variant-numeric: tabular-nums;
}
.month-label small { display: block; font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text-tertiary); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; margin-top: 2px; }

/* ═══ BAR ALOKASI ═══ */
.alloc-bar {
  display: flex; height: 16px; border-radius: var(--r-full); overflow: hidden;
  background: var(--bg-input); border: 1px solid var(--line-faint); margin-bottom: 14px;
}
.alloc-seg {
  height: 100%; width: 0; transition: width 1.1s var(--ease-out-expo);
  position: relative; overflow: hidden;
}
.alloc-seg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  animation: shimmer 3s ease-in-out infinite;
}
.alloc-seg.debt   { background: linear-gradient(90deg, #8b4ad8, var(--violet)); }
.alloc-seg.fixed  { background: linear-gradient(90deg, #b1663a, var(--amber)); }
.alloc-seg.var    { background: linear-gradient(90deg, #3a6fb1, var(--signature)); }
.alloc-seg.buffer { background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright)); }
.alloc-seg.over   { background: linear-gradient(90deg, #b1343a, var(--red-bright)); }

.alloc-legend { display: flex; flex-wrap: wrap; gap: 14px 20px; }
.alloc-item { display: flex; align-items: center; gap: 9px; }
.alloc-swatch { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.alloc-swatch.debt { background: var(--violet); }
.alloc-swatch.fixed { background: var(--amber); }
.alloc-swatch.var { background: var(--signature); }
.alloc-swatch.buffer { background: var(--gold-bright); }
.alloc-swatch.over { background: var(--red-bright); }
.alloc-k { font-size: 11.5px; color: var(--text-tertiary); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.alloc-v { font-family: 'JetBrains Mono', monospace; font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 1px; }

/* ═══ KARTU HUTANG ═══ */
.debt-grid {
  padding: 18px 22px 22px; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.debt-card {
  background: var(--bg-input); border: 1px solid var(--line-base);
  border-radius: var(--r-md); padding: 18px; position: relative; overflow: hidden;
  transition: border-color .25s, transform .25s var(--ease-out-quart), box-shadow .25s;
}
.debt-card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.debt-card.lunas { opacity: .62; }
.debt-card.lunas::after {
  content: 'LUNAS'; position: absolute; top: 13px; right: -30px;
  transform: rotate(38deg); background: var(--green-bg); color: var(--green-bright);
  font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 800;
  letter-spacing: .14em; padding: 4px 34px; border-top: 1px solid rgba(16,185,129,.35); border-bottom: 1px solid rgba(16,185,129,.35);
}
.debt-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.debt-name { font-size: 15px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; }
.debt-sub { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--text-tertiary); margin-top: 4px; letter-spacing: .03em; }
.debt-figures { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.debt-remaining { font-family: 'JetBrains Mono', monospace; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.debt-of { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-tertiary); }
.progress { height: 7px; background: rgba(0,0,0,.28); border-radius: var(--r-full); overflow: hidden; }
.progress-fill {
  height: 100%; width: 0; border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright));
  transition: width 1.1s var(--ease-out-expo);
}
.progress-fill.done { background: linear-gradient(90deg, var(--green), var(--green-bright)); }
.debt-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.due-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px;
  border-radius: var(--r-xs); border: 1px solid var(--line-base); background: var(--bg-card);
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px; font-weight: 600; letter-spacing: .04em;
  color: var(--text-secondary);
}
.due-chip.soon { color: var(--amber); border-color: rgba(245,158,11,.32); background: var(--amber-bg); }
.due-chip.late { color: var(--red-bright); border-color: rgba(239,68,68,.32); background: var(--red-bg); }
.due-chip.paid { color: var(--green-bright); border-color: rgba(16,185,129,.32); background: var(--green-bg); }
.debt-actions { display: flex; gap: 6px; }

/* ═══ DAFTAR RINGKAS (pemasukan / pengeluaran) ═══ */
.list { padding: 8px 0; }
.list-row {
  display: flex; align-items: center; gap: 14px; padding: 13px 22px;
  border-bottom: 1px solid var(--line-faint); transition: background .2s;
}
.list-row:last-child { border-bottom: none; }
.list-row:hover { background: var(--bg-card-hover); }
.list-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: var(--text-faint); }
.list-main { flex: 1; min-width: 0; }
.list-title { font-size: 14px; font-weight: 600; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-sub { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--text-tertiary); margin-top: 3px; letter-spacing: .03em; }
.list-amount { font-family: 'JetBrains Mono', monospace; font-size: 14.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.list-actions { display: flex; gap: 5px; flex-shrink: 0; }
.list-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; border-top: 1px solid var(--line-base); background: var(--bg-elevated);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-tertiary);
}
.list-foot .total { font-family: 'JetBrains Mono', monospace; font-size: 16px; letter-spacing: -.01em; text-transform: none; }

/* ═══ KATEGORI ═══ */
.cat {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px;
  border-radius: var(--r-xs); border: 1px solid var(--line-base); background: var(--bg-input);
  font-family: 'JetBrains Mono', monospace; font-size: 9.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; color: var(--text-tertiary); white-space: nowrap;
}
.cat.gaji      { color: var(--green-bright); border-color: rgba(16,185,129,.3); background: var(--green-bg); }
.cat.bonus     { color: var(--gold-bright); border-color: var(--gold-deep); background: var(--gold-glow); }
.cat.trading   { color: var(--gold-bright); border-color: var(--gold-deep); background: var(--gold-glow); }
.cat.tagihan   { color: var(--amber); border-color: rgba(245,158,11,.3); background: var(--amber-bg); }
.cat.transport { color: var(--signature); border-color: rgba(91,141,239,.3); background: var(--signature-glow); }
.cat.makan     { color: var(--red-bright); border-color: rgba(239,68,68,.28); background: var(--red-bg); }
.cat.keluarga  { color: var(--violet); border-color: rgba(167,139,250,.3); background: var(--violet-bg); }
.cat.rutin     { color: var(--violet); border-color: rgba(167,139,250,.3); background: var(--violet-bg); }

/* ═══ SELECT ═══ */
select.input {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  font-family: 'Manrope', sans-serif; font-size: 14px; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237b8494' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
select.input option { background: var(--bg-elevated); color: var(--text-primary); }

/* ═══ MODAL LEBAR ═══ */
.modal.wide { max-width: 560px; }
.modal-body.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal-body.two .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .modal-body.two { grid-template-columns: 1fr; } }

/* ═══ RINGKASAN DONUT ═══ */
.donut-wrap { position: relative; height: 260px; padding: 4px 0 0; }
.donut-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; pointer-events: none; gap: 3px;
}
.donut-k { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-tertiary); }
.donut-v { font-family: 'JetBrains Mono', monospace; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }

@media (max-width: 768px) {
  .debt-grid { padding: 16px; grid-template-columns: 1fr; }
  .list-row { padding: 12px 16px; gap: 10px; }
  .list-foot { padding: 13px 16px; }
  .month-label { min-width: 110px; font-size: 14px; }
}
