/* ============================================================
   PEMBUKUAN MANDIRI — OFFICIAL myBCA EXECUTIVE FINTECH THEME
   BCA Signature Palette (#0060AF, #002D62, #00A3E0) · Dual Theme
   ============================================================ */

:root {
  /* MYBCA DARK THEME (MIDNIGHT NAVY BLUE) */
  --bg-app: #061325;
  --bg-sidebar: #091a33;
  --bg-topbar: rgba(9, 26, 51, 0.94);
  --bg-surface: #0c203d;
  --bg-card: #0e2547;
  --bg-card-hover: #143059;
  --bg-input: #08172c;
  --bg-badge: rgba(0, 163, 224, 0.15);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(0, 163, 224, 0.22);
  --border-hover: rgba(0, 163, 224, 0.55);
  
  --text-primary: #ffffff;
  --text-secondary: #d1e2f4;
  --text-muted: #8eaecf;
  --text-dim: #5c7e9f;
  
  --bca-blue-primary: #0060af;
  --bca-blue-dark: #002d62;
  --bca-cyan: #00a3e0;
  --bca-gold: #f59e0b;
  
  --accent-blue: #00a3e0;
  --accent-emerald: #00c97b;
  --accent-rose: #ff5252;
  --accent-amber: #f59e0b;
  --accent-indigo: #0060af;
  
  --income-color: #00c97b;
  --income-bg: rgba(0, 201, 123, 0.16);
  --income-border: rgba(0, 201, 123, 0.4);
  
  --expense-color: #ff5252;
  --expense-bg: rgba(255, 82, 82, 0.16);
  --expense-border: rgba(255, 82, 82, 0.4);
  
  --balance-color: #00a3e0;
  --balance-bg: rgba(0, 163, 224, 0.16);
  --balance-border: rgba(0, 163, 224, 0.4);
  
  --net-color: #fbbf24;
  --net-bg: rgba(245, 158, 11, 0.16);
  --net-border: rgba(245, 158, 11, 0.4);

  --shadow-card: 0 4px 18px rgba(0, 20, 50, 0.4), 0 0 0 1px rgba(0, 163, 224, 0.15);
  --shadow-modal: 0 25px 60px rgba(0, 15, 40, 0.85);
}

/* 100% AUTHENTIC MYBCA LIGHT THEME (OFFICIAL BCA BLUE & WHITE) */
body.light-theme {
  --bg-app: #f0f4fa;
  --bg-sidebar: #ffffff;
  --bg-topbar: rgba(255, 255, 255, 0.95);
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f7faff;
  --bg-input: #f4f7fc;
  --bg-badge: rgba(0, 96, 175, 0.08);
  
  --border-subtle: #e2e8f0;
  --border-card: #dbe4f0;
  --border-hover: #0060af;
  
  --text-primary: #002d62;
  --text-secondary: #274060;
  --text-muted: #5b738e;
  --text-dim: #8b9fb4;
  
  --bca-blue-primary: #0060af;
  --bca-blue-dark: #002d62;
  --bca-cyan: #00a3e0;
  --bca-gold: #ff991f;

  --accent-blue: #0060af;
  --accent-emerald: #00875a;
  --accent-rose: #de350b;
  --accent-amber: #ff991f;
  --accent-indigo: #004b87;
  
  --income-color: #00875a;
  --income-bg: #e3fcef;
  --income-border: #abf5d1;
  
  --expense-color: #de350b;
  --expense-bg: #ffebe6;
  --expense-border: #ffbdad;
  
  --balance-color: #0060af;
  --balance-bg: #deebff;
  --balance-border: #b3d4ff;
  
  --net-color: #ff991f;
  --net-bg: #fff0b3;
  --net-border: #ffe380;

  --shadow-card: 0 2px 12px rgba(0, 45, 98, 0.06), 0 0 0 1px rgba(0, 45, 98, 0.06);
  --shadow-modal: 0 20px 50px rgba(0, 45, 98, 0.16);
}

/* Base resets & typography */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", system-ui, sans-serif;
  line-height: 1.4;
  background-color: var(--bg-app);
  color: var(--text-primary);
  transition: background-color 0.2s ease, color 0.2s ease;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Compact App Shell */
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  max-width: 100vw;
  overflow-x: hidden;
}

/* Compact Sidebar */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 14px 10px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
  z-index: 40;
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  color: var(--text-primary);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
}
.brand b { font-size: 13px; font-weight: 800; line-height: 1.15; color: var(--text-primary); }
.brand em { font-style: normal; color: var(--accent-blue); }
.brand-version { display: block; font-size: 8px; font-weight: 800; letter-spacing: 1px; color: var(--text-dim); }

.nav-caption {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-dim);
  padding: 8px 8px 4px;
}
.nav-caption-spaced { margin-top: 8px; }

.sidebar nav { display: grid; gap: 2px; }
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}
.sidebar nav a i { font-style: normal; font-size: 14px; width: 16px; text-align: center; color: var(--text-muted); }
.sidebar nav a .nav-arrow { margin-left: auto; font-size: 12px; opacity: 0; }
.sidebar nav a:hover {
  background: var(--bg-hover, rgba(56, 189, 248, 0.08));
  color: var(--text-primary);
}
.sidebar nav a.active {
  background: var(--bg-badge);
  color: var(--accent-blue);
  border-color: var(--border-card);
  font-weight: 700;
}
.sidebar nav a.active i { color: var(--accent-blue); }

.sidebar-bottom {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}
.secure-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}
.secure-indicator span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}
.secure-indicator b { font-size: 10px; color: var(--text-primary); font-weight: 700; }
.secure-indicator small { font-size: 8px; color: var(--text-dim); }

.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(3px); z-index: 38; border: 0; }
body.nav-open .sidebar-overlay { display: block; }

/* Main Canvas - Compact */
.main {
  min-width: 0;
  padding: 0 18px 24px;
}

/* Compact Slim Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  margin: 0 -18px 12px;
  padding: 8px 18px;
  background: var(--bg-topbar);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
}
.menu { display: none; background: transparent; border: 1px solid var(--border-subtle); border-radius: 6px; color: var(--text-primary); width: 32px; height: 32px; font-size: 16px; cursor: pointer; }
.mobile-brand { display: none; align-items: center; gap: 6px; text-decoration: none; color: var(--text-primary); }
.mobile-brand span { width: 28px; height: 28px; font-size: 13px; border-radius: 7px; }
.top-user { margin-right: auto; }
.topbar h1 { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -0.3px; color: var(--text-primary); line-height: 1.2; }
.topbar small { color: var(--text-muted); font-size: 11px; }

.top-actions { display: flex; align-items: center; gap: 8px; }
.global-search {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 220px;
  height: 32px;
  padding: 0 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  color: var(--text-dim);
}
.global-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  outline: none;
  font-size: 11px;
}
.global-search:focus-within { border-color: var(--accent-blue); }

/* Theme Toggle Button - High Contrast & Stylish */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 20px;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.theme-toggle-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-blue);
  transform: translateY(-1px);
}
.theme-icon { font-size: 14px; color: var(--accent-amber); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn:hover { background: var(--bg-card-hover); border-color: var(--border-hover); }
.btn.primary {
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 50%, #4f46e5 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  box-shadow: 0 4px 14px -1px rgba(37, 99, 235, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  font-weight: 700;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.btn.primary:hover {
  filter: brightness(1.12);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px -1px rgba(37, 99, 235, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn.primary:active {
  transform: scale(0.97) translateY(1px);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}
.btn-sm { height: 26px; padding: 0 8px; font-size: 11px; border-radius: 6px; }
.btn-danger { background: var(--expense-bg); border-color: var(--expense-border); color: var(--expense-color); }
.btn-danger:hover { filter: brightness(0.95); }

/* Compact Executive Header Bar */
.exec-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}
.exec-header-title { display: flex; align-items: center; gap: 8px; }
.exec-badge { font-size: 9px; font-weight: 800; padding: 2px 7px; border-radius: 4px; background: var(--bg-badge); color: var(--accent-blue); text-transform: uppercase; }
.exec-header-title b { font-size: 13px; font-weight: 800; color: var(--text-primary); }
.exec-header-meta { font-size: 11px; color: var(--text-muted); display: flex; gap: 14px; }
.exec-header-meta span b { color: var(--text-primary); }

/* ============================================================
   myBCA OFFICIAL BRANDING & DIGITAL BANKING WIDGETS
   ============================================================ */

.mybca-logo {
  display: inline-flex;
  align-items: baseline;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: -0.5px;
}
.mybca-my {
  font-size: 16px;
  font-weight: 800;
  color: #00a3e0;
  font-style: italic;
  margin-right: 2px;
}
.mybca-bca {
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
}
body.light-theme .mybca-bca {
  color: #002d62;
}

/* ============================================================
   XIAO BANK — 4D EXECUTIVE DIGITAL BANKING CARD WITH RUNNING RGB
   ============================================================ */

/* Outer RGB Container Wrapper */
.mybca-hero-card-wrap {
  position: relative;
  border-radius: 20px;
  padding: 3px; /* Ketebalan Running RGB Border */
  margin-bottom: 18px;
  overflow: hidden;
  perspective: 1200px;
}

/* Running RGB Animated Neon Border */
.mybca-hero-card-wrap::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    #ff0055 0%,
    #ff5500 12.5%,
    #ffdd00 25%,
    #00ff66 37.5%,
    #00f0ff 50%,
    #0066ff 62.5%,
    #a855f7 75%,
    #ff00aa 87.5%,
    #ff0055 100%
  );
  animation: runningRgbBorder 3.5s linear infinite;
  z-index: 0;
}

/* Running RGB Neon Aura Glow Behind the Card */
.mybca-hero-card-wrap::after {
  content: "";
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: conic-gradient(
    from 0deg,
    #ff0055 0%,
    #ff5500 12.5%,
    #ffdd00 25%,
    #00ff66 37.5%,
    #00f0ff 50%,
    #0066ff 62.5%,
    #a855f7 75%,
    #ff00aa 87.5%,
    #ff0055 100%
  );
  animation: runningRgbBorder 3.5s linear infinite;
  filter: blur(14px);
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
}

@keyframes runningRgbBorder {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 4D Executive Card Body */
.mybca-hero-card {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #020a17 0%, #061833 35%, #00224d 70%, #010a18 100%);
  border-radius: 17px;
  padding: 22px 24px;
  color: #ffffff;
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.25), inset 0 -3px 12px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
  transform-style: preserve-3d;
  cursor: pointer;
}
.mybca-hero-card::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.2) 0%, transparent 65%);
  pointer-events: none;
}

/* 4D Holographic Iridescent Reflection Sheen */
.card-holo-sheen {
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.04) 35%,
    rgba(0, 240, 255, 0.18) 48%,
    rgba(255, 0, 128, 0.15) 60%,
    transparent 80%
  );
  transform: skewX(-25deg);
  animation: holoSheen 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes holoSheen {
  0%, 25% { left: -150%; }
  65%, 100% { left: 220%; }
}

.mybca-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 3;
}
.mybca-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 3D Realistic Gold EMV Microchip */
.mybca-chip-emv {
  width: 35px;
  height: 26px;
  background: linear-gradient(135deg, #ffe082 0%, #ffd54f 35%, #ffb300 70%, #ff8f00 100%);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9), 0 3px 6px rgba(0, 0, 0, 0.4);
  position: relative;
}
.mybca-chip-emv::after {
  content: "";
  position: absolute;
  inset: 4px 6px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 3px;
  background: repeating-linear-gradient(90deg, transparent, transparent 5px, rgba(0,0,0,0.18) 5px, rgba(0,0,0,0.18) 6px);
}

/* Luxury EXECUTIVE Badge */
.mybca-card-badge.executive-badge {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2.2px;
  padding: 4px 14px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 170, 0, 0.08));
  border: 1px solid rgba(255, 215, 0, 0.65);
  border-radius: 20px;
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
}

.mybca-card-balance-block {
  margin-bottom: 14px;
  position: relative;
  z-index: 3;
}
.mybca-card-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.mybca-eye-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  font-size: 12px;
  padding: 2px 6px;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s;
}
.mybca-eye-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}
.mybca-hero-balance {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 163, 224, 0.3);
}

/* Bottom Card Bar: Contactless NFC & Cardholder */
.mybca-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 12px;
  position: relative;
  z-index: 3;
}
.mybca-card-nfc {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nfc-icon {
  font-size: 14px;
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.7));
}
.card-masked-num {
  font-family: 'Courier New', monospace;
  letter-spacing: 2.5px;
  font-weight: 700;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}
.card-holder-name {
  letter-spacing: 1.5px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  color: #ffffff;
}

/* myBCA 4 Circular Quick Action Buttons */
.mybca-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.mybca-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px 6px;
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.mybca-action-item:hover {
  transform: translateY(-2px);
  border-color: #00a3e0;
  box-shadow: 0 8px 24px rgba(0, 96, 175, 0.2);
}
.mybca-action-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 96, 175, 0.15) 0%, rgba(0, 163, 224, 0.25) 100%);
  color: #00a3e0;
  border: 1px solid rgba(0, 163, 224, 0.3);
  transition: all 0.2s ease;
}
body.light-theme .mybca-action-icon {
  background: linear-gradient(135deg, #e6f2fa 0%, #d8ecf8 100%);
  color: #0060af;
  border: 1px solid #bce0f6;
}
.mybca-action-item:hover .mybca-action-icon {
  background: #0060af;
  color: #ffffff;
  border-color: #0088cc;
}
.mybca-action-item span {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
}

/* myBCA Mobile Bottom Navigation */
.mybca-bottom-nav {
  display: none;
}
@media (max-width: 768px) {
  .mybca-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    backdrop-filter: blur(14px);
    z-index: 999;
    align-items: center;
    justify-content: space-around;
    padding: 0 4px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  }
  .mybca-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    flex: 1;
    height: 100%;
    transition: color 0.15s;
  }
  .mybca-bottom-item.active {
    color: #0060af;
    font-weight: 800;
  }
  body:not(.light-theme) .mybca-bottom-item.active {
    color: #00a3e0;
  }
  .mybca-bottom-item.active .mybca-bottom-icon {
    transform: translateY(-2px);
  }
  .mybca-bottom-icon {
    transition: transform 0.15s;
  }
  .main {
    padding-bottom: 105px !important;
  }
}

/* The Big 4 Summary Cards - 2.5D / 3D Executive Fintech */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.summary-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 18px -2px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}
.summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  border-radius: 14px 14px 0 0;
}
.summary-card:hover {
  transform: translateY(-3px) scale(1.008);
  border-color: var(--border-hover);
  box-shadow: 0 14px 30px -4px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(56, 189, 248, 0.3);
}

.income-card::before { background: linear-gradient(90deg, #10b981 0%, #06b6d4 100%); }
.income-card { background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, var(--bg-card) 60%); }
.income-card .summary-icon {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(6, 182, 212, 0.15) 100%);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}
.income-card strong { color: #34d399; text-shadow: 0 0 20px rgba(52, 211, 153, 0.3); }

.expense-card::before { background: linear-gradient(90deg, #f43f5e 0%, #fb923c 100%); }
.expense-card { background: linear-gradient(180deg, rgba(244, 63, 94, 0.08) 0%, var(--bg-card) 60%); }
.expense-card .summary-icon {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.25) 0%, rgba(251, 146, 60, 0.15) 100%);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.4);
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}
.expense-card strong { color: #fb7185; text-shadow: 0 0 20px rgba(251, 113, 133, 0.3); }

.balance-card::before { background: linear-gradient(90deg, #38bdf8 0%, #818cf8 100%); }
.balance-card { background: linear-gradient(180deg, rgba(56, 189, 248, 0.08) 0%, var(--bg-card) 60%); }
.balance-card .summary-icon {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25) 0%, rgba(129, 140, 248, 0.15) 100%);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}
.balance-card strong { color: #38bdf8; text-shadow: 0 0 20px rgba(56, 189, 248, 0.3); }

.net-card::before { background: linear-gradient(90deg, #f59e0b 0%, #eab308 100%); }
.net-card { background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, var(--bg-card) 60%); }
.net-card .summary-icon {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(234, 179, 8, 0.15) 100%);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}
.net-card strong { color: #fbbf24; text-shadow: 0 0 20px rgba(251, 191, 36, 0.3); }

.summary-card .summary-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 900;
  transform: perspective(400px) rotateX(2deg);
}
.summary-card .summary-body { min-width: 0; flex: 1; }
.summary-card .summary-body small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.summary-card strong {
  display: block;
  font-size: 16.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Compact Split Layouts */
.compact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.panel {
  min-width: 0;
  padding: 15px 18px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 6px 22px -3px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.panel:hover {
  border-color: rgba(56, 189, 248, 0.25);
  box-shadow: 0 10px 28px -4px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
}
.panel-head h2 { margin: 0; font-size: 13px; font-weight: 800; color: var(--text-primary); }
.panel-head small { color: var(--text-muted); font-size: 10px; }
.panel-head a { font-size: 11px; font-weight: 700; color: var(--accent-blue); text-decoration: none; }
.panel-head a:hover { text-decoration: underline; }

/* Chart Area - Compact Height (140px) */
.bar-chart {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  height: 135px;
}
.chart-legend {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.chart-legend span { display: flex; align-items: center; gap: 4px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; }
.income-dot { background: var(--income-color); }
.expense-dot { background: var(--expense-color); }

.y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 6px 18px 0;
  color: var(--text-dim);
  font-size: 9px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.plot-area {
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  padding: 0 4px 18px;
}
.grid-line {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px dashed var(--border-subtle);
}
.bar-day {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}
.bar-pair {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  width: 100%;
  height: 100%;
}
.bar-income, .bar-expense {
  display: block;
  width: min(12px, 34%);
  border-radius: 3px 3px 1px 1px;
  cursor: pointer;
  transition: height 0.3s ease;
}
.bar-income {
  background: linear-gradient(180deg, #34d399 0%, #059669 100%);
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.35);
}
.bar-expense {
  background: linear-gradient(180deg, #fb7185 0%, #e11d48 100%);
  box-shadow: 0 3px 8px rgba(244, 63, 94, 0.35);
}
.bar-day small {
  position: absolute;
  bottom: 0;
  font-size: 9px;
  color: var(--text-dim);
  white-space: nowrap;
}

/* Donut Chart - Compact */
.donut-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 135px;
}
.donut {
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  flex: 0 0 110px;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.donut-hole {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-card);
  text-align: center;
  border: 1px solid var(--border-subtle);
}
.donut-hole strong { font-size: 10px; font-weight: 800; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.donut-hole small { font-size: 8px; color: var(--text-dim); text-transform: uppercase; }
.donut-legend { display: grid; gap: 6px; flex: 1; }
.donut-legend > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 10px;
  color: var(--text-secondary);
}
.donut-legend span { display: flex; align-items: center; gap: 6px; }
.donut-legend span i { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.donut-legend b { color: var(--text-primary); font-variant-numeric: tabular-nums; }

/* Saldo Rekening - 3D Compact Chips */
.account-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}
.account-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%), var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.18s ease, box-shadow 0.18s ease;
}
.account-card:hover {
  transform: translateY(-2.5px) scale(1.01);
  border-color: var(--accent-blue);
  box-shadow: 0 8px 20px -2px rgba(0, 0, 0, 0.35), 0 0 12px rgba(56, 189, 248, 0.25);
}
.account-symbol {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25) 0%, rgba(99, 102, 241, 0.2) 100%);
  color: var(--balance-color);
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  flex: 0 0 30px;
}
.account-card-info { min-width: 0; flex: 1; }
.account-card-info b { display: block; font-size: 11px; font-weight: 700; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-card-info strong { display: block; font-size: 12.5px; font-weight: 800; color: var(--net-color); font-variant-numeric: tabular-nums; text-shadow: 0 0 14px rgba(245, 158, 11, 0.25); }

/* Tables - Compact Clean Minimal */
.table-wrap { overflow-x: auto; width: 100%; -webkit-overflow-scrolling: touch; }
table { width: 100%; min-width: 800px; border-collapse: separate; border-spacing: 0; }
th, td { padding: 9px 12px; text-align: left; font-size: 11px; vertical-align: middle; }
th {
  background: var(--bg-surface);
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap !important;
}
td { border-bottom: 1px solid var(--border-subtle); color: var(--text-primary); white-space: nowrap; }
td:nth-child(2) { white-space: normal; } /* Keterangan diperbolehkan wrap jika panjang */
tbody tr:hover td { background: var(--bg-hover, rgba(56, 189, 248, 0.05)); }
.right { text-align: right; }
.nowrap { white-space: nowrap !important; }
.empty-row { text-align: center; color: var(--text-dim); padding: 18px; font-style: italic; white-space: normal; }

/* Pills & Badges */
.category-pill, .type-pill, .badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 700;
}
.category-pill { background: var(--bg-badge); color: var(--accent-blue); border: 1px solid var(--border-card); }
.type-income { background: var(--income-bg); color: var(--income-color); border: 1px solid var(--income-border); }
.type-expense { background: var(--expense-bg); color: var(--expense-color); border: 1px solid var(--expense-border); }
.badge-income { background: var(--income-bg); color: var(--income-color); border: 1px solid var(--income-border); }
.badge-expense { background: var(--expense-bg); color: var(--expense-color); border: 1px solid var(--expense-border); }
.income { color: var(--income-color) !important; }
.expense { color: var(--expense-color) !important; }

/* Forms & Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  margin-top: 8px;
}
.filters label { flex: 1; min-width: 120px; }
label { display: grid; gap: 4px; font-size: 10px; font-weight: 700; color: var(--text-muted); }
input, select, textarea {
  width: 100%;
  height: 32px;
  padding: 4px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  background: var(--bg-input);
  color: var(--text-primary);
  outline: none;
  font-size: 12px;
  transition: border-color 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px var(--bg-badge);
}
.form-grid { display: grid; gap: 10px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 10px; }
.item-card {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 4px;
}
.list { display: grid; gap: 4px; }
.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}
.list-item b { color: var(--text-primary); }
.action-btns { display: flex; gap: 4px; }

/* SPA Views */
.view-section { display: none; }
.view-section.active { display: block; animation: viewFadeIn 0.18s ease; }
@keyframes viewFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  place-items: center;
  padding: 16px;
}
.modal-overlay.active { display: grid; }
.modal-card {
  width: min(480px, 100%);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  box-shadow: var(--shadow-modal);
  padding: 18px 22px;
  max-height: 90vh;
  overflow-y: auto;
  color: var(--text-primary);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}
.modal-head h3 { margin: 0; font-size: 15px; font-weight: 800; color: var(--text-primary); }
.modal-close {
  background: transparent;
  border: 0;
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}
.modal-close:hover { color: var(--text-primary); background: var(--bg-surface); }

/* Progress Bars */
.progress-bar-bg {
  width: 100%;
  height: 6px;
  border-radius: 10px;
  background: var(--bg-surface);
  overflow: hidden;
  margin: 6px 0;
  border: 1px solid var(--border-subtle);
}
.progress-bar-fill { height: 100%; border-radius: 10px; transition: width 0.3s ease; }

/* Toast */
.toast-container { position: fixed; bottom: 18px; right: 18px; z-index: 120; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.toast-msg {
  pointer-events: auto;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 8px 14px;
  box-shadow: var(--shadow-card);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastFade 0.2s ease;
}
.toast-success { border-color: var(--income-color); color: var(--income-color); }
.toast-error { border-color: var(--expense-color); color: var(--expense-color); }
@keyframes toastFade {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ============================================================
   RESPONSIVE MOBILE / HP OPTIMIZATION (KIRI - KANAN & RINGKAS)
   ============================================================ */
@media (max-width: 1024px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -240px; top: 0; width: 220px; height: 100vh; transition: left 0.2s ease; }
  body.nav-open .sidebar { left: 0; }
  .menu { display: block; }
  .compact-grid, .grid-2 { grid-template-columns: 1fr; }
  .summary-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  /* KIRI - KANAN 2 KOLOM PADA VERSI HP */
  .summary-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
  }
  .summary-card {
    padding: 8px 10px !important;
    gap: 8px !important;
    border-radius: 10px !important;
    min-height: auto !important;
  }
  .summary-card .summary-icon {
    width: 28px !important;
    height: 28px !important;
    flex: 0 0 28px !important;
    font-size: 13px !important;
    border-radius: 7px !important;
  }
  .summary-card .summary-body small {
    font-size: 8.5px !important;
    letter-spacing: 0.2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .summary-card strong {
    font-size: 13.5px !important;
    margin-top: 1px !important;
  }
  .summary-card > span, .summary-card .trend {
    display: none !important;
  }

  /* KIRI - KANAN PADA SALDO REKENING */
  .account-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
  .account-card {
    padding: 6px 8px !important;
    gap: 6px !important;
    border-radius: 8px !important;
  }
  .account-symbol {
    width: 24px !important;
    height: 24px !important;
    flex: 0 0 24px !important;
    font-size: 12px !important;
    border-radius: 5px !important;
  }
  .account-card-info b { font-size: 10px !important; }
  .account-card-info strong { font-size: 11px !important; }

  /* CHART RINGKAS PADA HP */
  .compact-grid {
    gap: 8px !important;
    margin-bottom: 8px !important;
  }
  .panel {
    padding: 10px 12px !important;
    border-radius: 10px !important;
  }
  .panel-head {
    margin-bottom: 6px !important;
    padding-bottom: 4px !important;
  }
  .panel-head h2 { font-size: 12px !important; }
  .panel-head small { font-size: 9px !important; }
  .bar-chart {
    height: 105px !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
  }
  .y-axis {
    font-size: 8px !important;
    padding: 0 4px 14px 0 !important;
  }
  .plot-area {
    padding: 0 2px 14px !important;
  }
  .bar-day small { font-size: 8px !important; }
  .donut-layout {
    gap: 10px !important;
    min-height: 105px !important;
  }
  .donut {
    width: 82px !important;
    height: 82px !important;
    flex: 0 0 82px !important;
  }
  .donut-hole {
    width: 54px !important;
    height: 54px !important;
  }
  .donut-hole strong { font-size: 9px !important; }
  .donut-hole small { font-size: 7px !important; }
  .donut-legend { gap: 4px !important; }
  .donut-legend > div { font-size: 9px !important; }

  /* TOPBAR & PADDING HP */
  .main {
    padding: 0 10px 105px !important;
    padding-bottom: calc(85px + env(safe-area-inset-bottom, 25px)) !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .topbar {
    min-height: 44px !important;
    margin: 0 -10px 8px !important;
    padding: 6px 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 5px !important;
    max-width: 100vw !important;
    overflow: hidden !important;
  }
  .top-user {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    margin-right: 4px !important;
  }
  .top-user h1 {
    font-size: 13px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .top-user small {
    font-size: 9px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .top-actions {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
  }
  .global-search {
    display: none !important;
  }
  .top-actions .btn.primary {
    display: none !important;
  }
  .theme-toggle-btn {
    height: 28px !important;
    width: 28px !important;
    padding: 0 !important;
    font-size: 11px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
  }
  .theme-toggle-btn .theme-label {
    display: none !important;
  }
  .btn-sm {
    height: 28px !important;
    padding: 0 6px !important;
    font-size: 9.5px !important;
  }
  .pwa-install-btn {
    height: 28px !important;
    padding: 0 6px !important;
    font-size: 9.5px !important;
  }
  .btn-text-hide-mobile {
    display: inline !important;
  }
  @media (max-width: 480px) {
    .btn-text-hide-mobile {
      display: none !important;
    }
  }
  .exec-header-bar {
    padding: 5px 8px !important;
    margin-bottom: 8px !important;
    font-size: 10px !important;
  }
  .exec-header-title b { font-size: 11px !important; }
  .exec-header-meta { font-size: 9px !important; }
  table th, table td { padding: 5px 6px !important; font-size: 10px !important; }
}

/* ============================================================
   XIAO BANK — 6 PILAR KEUANGAN & PWA DOWNLOAD APP SUITE
   ============================================================ */

/* Brand XIAO BANK */
.brand-xiao {
  font-size: 16px;
  font-weight: 800;
  color: #00a3e0;
  letter-spacing: 0.5px;
  margin-right: 3px;
}
.brand-bank {
  font-size: 17px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1px;
}
body.light-theme .brand-bank {
  color: #002d62;
}

/* PWA Install Button */
.pwa-install-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(0, 163, 224, 0.2), rgba(0, 96, 175, 0.35));
  border: 1px solid rgba(0, 163, 224, 0.5);
  color: #00a3e0;
  border-radius: 8px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pwa-install-btn:hover {
  background: linear-gradient(135deg, #00a3e0, #0060af);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 163, 224, 0.4);
}
.pwa-install-sidebar {
  width: 100%;
  margin-top: 10px;
  justify-content: center;
  padding: 8px 12px;
}

/* Net Worth Evaluation Widget */
.networth-panel {
  background: linear-gradient(135deg, rgba(12, 32, 61, 0.95), rgba(14, 37, 71, 0.95));
  border: 1px solid rgba(0, 163, 224, 0.25);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: center;
}
body.light-theme .networth-panel {
  background: #ffffff;
  border-color: #cbd5e1;
}
.networth-metric {
  padding: 6px 10px;
  border-left: 3px solid rgba(0, 163, 224, 0.5);
}
.networth-metric small {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.networth-metric strong {
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* 50/30/20 Budgeting Card */
.budget-rule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}
@media (max-width: 640px) {
  .budget-rule-grid { grid-template-columns: 1fr; }
}
.budget-rule-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 12px;
}
.budget-rule-box.needs { border-top: 3px solid #00a3e0; }
.budget-rule-box.wants { border-top: 3px solid #f59e0b; }
.budget-rule-box.savings { border-top: 3px solid #00c97b; }
.budget-rule-title {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
}
.budget-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin: 6px 0;
}
.budget-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* Receipt / Proof Badge */
.receipt-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
  background: rgba(0, 163, 224, 0.15);
  color: #00a3e0;
  border: 1px solid rgba(0, 163, 224, 0.3);
  text-decoration: none;
  cursor: pointer;
}
.receipt-badge:hover {
  background: rgba(0, 163, 224, 0.3);
}

/* PWA Guide Modal */
.pwa-guide-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.pwa-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bca-blue-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}
