:root {
  --sa-green: #006C35;
  --in-orange: #FF9933;
  --in-green: #138808;
  --bg: #1a1a2e;
  --card: #16213e;
  --text: #eaeaea;
  --muted: #888;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(0,0,0,0.4);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; }
#bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; height: 60px; background: #0d0d1a; display: flex; border-top: 1px solid #2a2a4a; z-index: 100; }
#bottom-nav button { flex: 1; background: none; border: none; color: var(--muted); font-size: 11px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; cursor: pointer; transition: color .2s; }
#bottom-nav button.active { color: var(--in-orange); }
#bottom-nav button svg { width: 22px; height: 22px; }
.page { display: none; padding: 16px 16px 80px; min-height: 100vh; }
.page.active { display: block; }
.band-saudi { background: linear-gradient(135deg, #006C35 0%, #00a550 100%); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; box-shadow: var(--shadow); }
.band-india { background: linear-gradient(135deg, #FF9933 0%, #ffffff 50%, #138808 100%); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; box-shadow: var(--shadow); color: #1a1a2e; }
.band-title { font-size: 13px; opacity: .8; text-transform: uppercase; letter-spacing: 1px; }
.band-amount { font-size: 28px; font-weight: 700; margin: 4px 0 2px; }
.band-sub { font-size: 13px; opacity: .75; }
.card { background: var(--card); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.card-title { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 10px; }
.account-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #2a2a4a; }
.account-row:last-child { border-bottom: none; }
.account-name { font-size: 14px; }
.account-badge { font-size: 10px; padding: 2px 7px; border-radius: 20px; margin-left: 6px; }
.badge-asset { background: #1a4a2e; color: #4ade80; }
.badge-liability { background: #4a1a1a; color: #f87171; }
.account-amount { font-size: 15px; font-weight: 600; cursor: pointer; }
.account-amount:hover { opacity: .75; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.section-label { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; }
.btn-add { background: none; border: 1px solid #2a2a4a; color: var(--text); border-radius: 8px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.btn-add:hover { background: #2a2a4a; }
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 200; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal { background: var(--card); border-radius: var(--radius); padding: 24px; width: min(90vw, 400px); box-shadow: var(--shadow); }
.modal h3 { margin-bottom: 16px; font-size: 16px; }
.modal input, .modal select { width: 100%; background: #0d0d1a; border: 1px solid #2a2a4a; color: var(--text); border-radius: 8px; padding: 10px 12px; font-size: 14px; margin-bottom: 12px; }
.modal-btns { display: flex; gap: 8px; margin-top: 4px; }
.btn-primary { flex: 1; background: var(--sa-green); color: #fff; border: none; border-radius: 8px; padding: 11px; font-size: 14px; cursor: pointer; }
.btn-primary.india { background: var(--in-orange); color: #1a1a2e; }
.btn-danger { flex: 1; background: #7f1d1d; color: #fca5a5; border: none; border-radius: 8px; padding: 11px; font-size: 14px; cursor: pointer; }
.btn-cancel { flex: 1; background: #2a2a4a; color: var(--text); border: none; border-radius: 8px; padding: 11px; font-size: 14px; cursor: pointer; }
.settings-tab-bar { display: flex; gap: 8px; margin-bottom: 16px; }
.settings-tab { flex: 1; padding: 9px; border-radius: 8px; border: 1px solid #2a2a4a; background: none; color: var(--muted); font-size: 13px; cursor: pointer; }
.settings-tab.active-sa { background: var(--sa-green); color: #fff; border-color: var(--sa-green); }
.settings-tab.active-in { background: var(--in-orange); color: #1a1a2e; border-color: var(--in-orange); }
.etg-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #2a2a4a; }
.etg-row:last-child { border-bottom: none; }
.etg-name { font-size: 14px; }
.etg-amount { font-size: 15px; font-weight: 600; color: #4ade80; cursor: pointer; }
#toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px); background: #333; color: #fff; padding: 10px 20px; border-radius: 20px; font-size: 13px; opacity: 0; transition: all .3s; z-index: 300; pointer-events: none; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 768px) { body { display: flex; justify-content: center; } #app { width: 480px; position: relative; } #bottom-nav { position: fixed; width: 480px; left: 50%; transform: translateX(-50%); } }
.badge-sure { background: #1a4a2e; color: #4ade80; }
.badge-notsure { background: #3a2a00; color: #fbbf24; }
.modal-confidence-row { margin-bottom: 12px; }
.modal-confidence-row label { font-size: 13px; color: var(--muted); display: block; margin-bottom: 6px; }
