/* ==========================================================================
   FINKU ZEN — COMMAND CENTER PREMIUM UI (zen.css)
   True Glassmorphism & Bento Grid Architecture
   ========================================================================== */

/* --------------------------------------------------------------------------
   Dynamic Greeting Section
   -------------------------------------------------------------------------- */
.zen-greeting-section {
  padding: 4px 4px 0;
  margin-bottom: 8px;
}
.zen-greeting-title {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px;
  letter-spacing: -0.03em;
  line-height: 1.22;
}
.zen-greeting-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   Spotlight Style AI Bar
   -------------------------------------------------------------------------- */
.zen-spotlight-container {
  margin-bottom: 12px;
}
.zen-spotlight-bar {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--border-radius-lg);
  padding: 10px 14px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}
.zen-spotlight-bar:focus-within {
  border-color: rgba(0, 217, 139, 0.3);
  box-shadow: 0 0 0 3px rgba(0,217,139,0.08), 0 8px 32px rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.04);
}
.zen-spotlight-icon {
  color: var(--text-secondary);
  margin-right: 12px;
  flex-shrink: 0;
}
.zen-spotlight-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
}
.zen-spotlight-input::placeholder {
  color: var(--text-muted);
}
.zen-spotlight-btn {
  background: var(--gradient-primary);
  color: #000;
  border: none;
  padding: 8px 18px;
  border-radius: var(--border-radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  letter-spacing: 0.01em;
}
.zen-spotlight-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 217, 139, 0.35);
  opacity: 0.92;
}

.zen-spotlight-shortcuts {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none; /* Firefox */
}
.zen-spotlight-shortcuts::-webkit-scrollbar {
  display: none; /* Chrome */
}
.zen-ai-shortcut {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.zen-ai-shortcut:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}
.zen-ai-shortcut svg {
  width: 14px;
  height: 14px;
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Bento Grid Architecture
   -------------------------------------------------------------------------- */
.zen-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(140px, auto);
  gap: 16px;
}
.zen-bento-box {
  background: rgba(18, 18, 24, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-xl, 24px);
  padding: 22px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s;
}
.zen-bento-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.08);
  border-top-color: rgba(255,255,255,0.14);
}

/* Box 1: Health Score (Main) spans 8 cols and 2 rows */
.zen-health-card {
  grid-column: span 8;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}

/* Box 2 & 3: Glance Stats span 4 cols */
.zen-glance-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
/* Add a subtle glow behind glance cards */
.zen-glance-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.02) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.zen-glance-card > * {
  z-index: 1;
}

.glance-icon {
  margin-bottom: 12px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.glance-icon.text-danger {
  color: #ff4d4f;
  background: rgba(255, 77, 79, 0.1);
}
.glance-content {
  display: flex;
  flex-direction: column;
}
.glance-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.glance-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

/* Action Board spans full width */
.zen-action-section {
  grid-column: span 12;
}

/* NEW: Insight Card (AXIOM Brief) spans 12 cols */
.zen-insight-card {
  grid-column: span 12;
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(0, 217, 139, 0.04), rgba(56, 189, 248, 0.04));
  border-left: 3px solid var(--accent-green);
  border-radius: var(--border-radius-xl, 24px);
}
.insight-icon {
  font-size: 24px;
  flex-shrink: 0;
}
.insight-text {
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0;
}

/* NEW: Budget Radar and Live Activity span 6 cols each */
.zen-half-card {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
}
.zen-card-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.zen-card-title svg {
  color: var(--accent-green);
}

/* Budget Mini-Tracker Styles */
.budget-mini-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.budget-mini-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.budget-mini-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-primary);
}
.budget-mini-bar-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}
.budget-mini-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease, background 0.3s ease;
}

/* Live Activity Styles */
.activity-mini-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.activity-mini-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.activity-info {
  display: flex;
  flex-direction: column;
}
.activity-name {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}
.activity-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.activity-amount {
  font-size: 0.95rem;
  font-weight: 600;
}
.activity-amount.income {
  color: var(--accent-green);
}
.activity-amount.expense {
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   Health Score SVG Animation & Layout
   -------------------------------------------------------------------------- */
.zen-health-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.zen-health-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0;
}
.zen-health-badge {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* Dynamic colors for the badge based on health */
.zen-health-badge.excellent { background: rgba(0, 217, 139, 0.12); color: var(--accent-green); border: 1px solid rgba(0,217,139,0.25); }
.zen-health-badge.warning { background: rgba(245, 158, 11, 0.12); color: var(--accent-yellow); border: 1px solid rgba(245,158,11,0.25); }
.zen-health-badge.critical { background: rgba(244, 63, 94, 0.12); color: var(--accent-red); border: 1px solid rgba(244,63,94,0.25); }

.zen-health-score-container {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
}

.zen-health-dial {
  position: relative;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}

.zen-circular-chart {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 250px;
}
.zen-circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 8;
}
.zen-circle-progress {
  fill: none;
  stroke: #00d4ff;
  stroke-width: 8;
  stroke-linecap: round;
  /* SVG path length is approx 251.2 for r=40 */
  stroke-dasharray: 251.2;
  stroke-dashoffset: 251.2; 
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.5s ease;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.4));
}

.zen-health-dial-content {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zen-health-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -1px;
}

.zen-health-message {
  flex: 1;
}
.zen-brutal-text {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0;
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   Action Board Cards
   -------------------------------------------------------------------------- */
.zen-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.zen-action-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.zen-action-card:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}
.zen-action-icon {
  margin-bottom: 4px;
}
.zen-action-card h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-primary);
}
.zen-action-card p {
  margin: 0 0 16px 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

/* Action Buttons */
.zen-action-btn {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}
.zen-action-btn.primary {
  background: rgba(0, 212, 255, 0.1);
  color: #00d4ff;
  border: 1px solid rgba(0, 212, 255, 0.2);
}
.zen-action-btn.primary:hover {
  background: rgba(0, 212, 255, 0.2);
}
.zen-action-btn.danger {
  background: rgba(255, 82, 82, 0.1);
  color: #FF5252;
  border: 1px solid rgba(255, 82, 82, 0.2);
}
.zen-action-btn.danger:hover {
  background: rgba(255, 82, 82, 0.2);
}

/* --------------------------------------------------------------------------
   Responsive Layouts
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .zen-health-card {
    grid-column: span 12;
    grid-row: auto;
  }
  .zen-glance-card {
    grid-column: span 6;
  }
  .zen-half-card {
    grid-column: span 12;
  }
}

@media (max-width: 600px) {
  .zen-greeting-title { font-size: 1.35rem; }
  .zen-bento-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .zen-health-score-container {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  .zen-health-dial {
    width: 160px;
    height: 160px;
  }
  .zen-health-number {
    font-size: 3.5rem;
  }
  .zen-glance-card {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
  }
  .glance-icon { margin-bottom: 0; }
}

/* --------------------------------------------------------------------------
   Dynamic AI Bar Chip Buttons (zen-shortcut-btn)
   -------------------------------------------------------------------------- */
.zen-shortcut-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  padding: 7px 14px;
  min-height: 36px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  font-family: var(--font-ui);
}
.zen-shortcut-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}
.zen-shortcut-btn.urgent-chip {
  background: rgba(255, 138, 101, 0.1);
  border-color: rgba(255, 138, 101, 0.32);
  color: #FF8A65;
  font-weight: 600;
  animation: pulse-chip 2.6s ease-in-out infinite;
}
.zen-shortcut-btn.urgent-chip:hover {
  background: rgba(255, 138, 101, 0.18);
  border-color: rgba(255, 138, 101, 0.45);
  color: #FFAB91;
}
@keyframes pulse-chip {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,138,101,0.22); }
  50% { box-shadow: 0 0 0 5px rgba(255,138,101,0); }
}

/* Beranda section labels + Lihat semua (in-place expand) */
.zen-nw-hint {
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--text-muted);
  margin: 0 0 10px;
}
.zen-list-section {
  margin-bottom: 10px;
}
.zen-list-section:last-child {
  margin-bottom: 0;
}
.zen-list-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 4px 0 6px;
}
.zen-list-section:not(.is-expanded) .zen-list-item.is-extra,
.zen-list-section:not(.is-expanded) .zen-budget-row.is-extra {
  display: none;
}
.zen-lihat-semua {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 6px 0;
  background: transparent;
  border: none;
  color: var(--accent-green);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.zen-lihat-semua:hover {
  text-decoration: underline;
}

/* Soft budget progress bars */
.zen-budget-row {
  margin-bottom: 6px;
}
.zen-budget-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  gap: 8px;
}
.zen-budget-row-name {
  font-size: 0.84rem;
  color: var(--text-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.zen-budget-row-name .finku-icon {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
}
.zen-budget-row-meta {
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.zen-budget-row-meta.is-ok { color: var(--accent-green); }
.zen-budget-row-meta.is-warn { color: var(--accent-yellow); }
.zen-budget-row-meta.is-hot { color: var(--accent-red); }
.zen-budget-row-meta.is-full { color: var(--accent-red); }
.zen-budget-row-meta.is-lunas { color: var(--accent-green); }
.zen-budget-row-meta.is-due { color: var(--text-secondary); }
.zen-budget-bar-track {
  height: 4px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}
.zen-budget-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  transition: width 0.7s ease;
}
.zen-budget-bar-fill.is-ok { background: var(--accent-green); }
.zen-budget-bar-fill.is-warn { background: var(--accent-yellow); }
.zen-budget-bar-fill.is-hot { background: var(--accent-red); }
.zen-budget-bar-fill.is-full {
  background: linear-gradient(90deg, var(--accent-yellow), var(--accent-red));
}
.zen-budget-bar-fill.is-lunas {
  background: var(--accent-green);
}
.zen-budget-bar-fill.is-due {
  background: var(--text-muted);
  opacity: 0.55;
}

/* Bill list polish */
.zen-bill-item {
  border-left: 3px solid rgba(255, 138, 101, 0.55);
}
.zen-icon-bill {
  color: #FF8A65;
  background: rgba(255, 138, 101, 0.1);
}
.zen-icon-wallet {
  color: var(--text-secondary);
}
.zen-bill-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.zen-bill-pay-btn {
  color: #FF8A65;
  border-color: rgba(255, 138, 101, 0.3);
}

/* Kurs widget */
.zen-kurs-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.zen-kurs-rates {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.zen-kurs-rate-card {
  flex: 1;
  min-width: 72px;
  padding: 8px 6px;
  background: var(--bg-tertiary);
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--border-color);
}
.zen-kurs-cur {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.zen-kurs-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}
.zen-kurs-convert {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.zen-kurs-input {
  flex: 1;
  font-size: 13px;
}
.zen-kurs-select {
  width: 88px;
  font-size: 13px;
}
.zen-kurs-result {
  min-width: 100px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-green);
  white-space: nowrap;
}
.zen-kurs-offline {
  font-size: 12px;
  color: var(--text-muted);
}

/* Triage card action button micro-interaction */
.zen-triage-card button:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  transition: filter 0.15s, transform 0.15s;
}

/* --------------------------------------------------------------------------
   Gelombang 2 — Dense Pusat Kendali (#view-home only)
   -------------------------------------------------------------------------- */
#view-home .zen-compact-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#view-home .zen-compact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

#view-home .zen-compact-header h3 {
  font-size: 0.92rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}

#view-home #zen-net-worth,
#view-home #zen-safe-to-spend-compact {
  font-size: 1rem;
  font-weight: 700;
}

#view-home #zen-wallet-list,
#view-home #zen-upcoming-bills-list,
#view-home #zen-recent-tx-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#view-home #zen-budget-radar-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#view-home #zen-axiom-pulse-compact {
  gap: 10px;
  padding: 10px 12px;
}

#view-home .zen-list-item {
  min-height: 40px;
  padding: 8px 10px;
}

#view-home .zen-list-item-left {
  gap: 10px;
}

#view-home .zen-list-item-title {
  font-size: 0.88rem;
}

#view-home .zen-list-item-subtitle {
  font-size: 0.75rem;
}

#view-home .zen-list-item-value {
  font-size: 0.88rem;
}

#view-home .zen-list-item-action {
  min-height: 36px;
  padding: 6px 10px;
}

@media (max-width: 768px) {
  /* Style B — slightly roomier Pusat Kendali on phone; desktop density unchanged */
  #view-home .zen-greeting-title {
    font-size: 1.5rem;
  }
  #view-home .zen-greeting-subtitle {
    font-size: 0.98rem;
    margin-top: 6px;
  }
  #view-home .zen-greeting-section {
    margin-bottom: 18px;
  }
  #view-home .zen-compact-grid {
    gap: 16px;
  }
  #view-home .zen-spotlight-bar {
    padding: 12px 14px;
    min-height: 52px;
  }
  #view-home .zen-spotlight-input {
    font-size: 16px; /* prevent iOS zoom */
  }
  #view-home .zen-spotlight-btn {
    min-height: 42px;
    padding: 8px 16px;
    font-size: 0.92rem;
  }
  #view-home .zen-compact-header {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
  }
  #view-home .zen-compact-header h3 {
    font-size: 1.05rem;
  }
  #view-home #zen-net-worth,
  #view-home #zen-safe-to-spend-compact {
    font-size: 1.18rem;
    overflow-wrap: anywhere;
  }
  #view-home #zen-wallet-list,
  #view-home #zen-upcoming-bills-list,
  #view-home #zen-recent-tx-list {
    gap: 10px;
  }
  #view-home #zen-budget-radar-list {
    gap: 12px;
  }
  #view-home .zen-list-item {
    min-height: 56px;
    padding: 14px;
    flex-wrap: wrap;
    gap: 10px;
  }
  #view-home .zen-list-item-left {
    flex: 1;
    min-width: 0;
    gap: 12px;
  }
  #view-home .zen-list-item-icon {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
  }
  #view-home .zen-list-item-icon svg {
    width: 18px;
    height: 18px;
  }
  #view-home .zen-list-item-title {
    font-size: 1rem;
    overflow-wrap: anywhere;
  }
  #view-home .zen-list-item-subtitle {
    font-size: 0.84rem;
  }
  #view-home .zen-list-item-right {
    width: 100%;
    text-align: left;
    padding-left: 50px;
  }
  #view-home .zen-list-item-value {
    font-size: 1.05rem;
    overflow-wrap: anywhere;
  }
  #view-home .zen-list-item-action {
    min-height: 44px;
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  #view-home .zen-budget-row-head {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  #view-home .zen-budget-row-name {
    font-size: 0.98rem;
    flex: 1;
    min-width: 0;
  }
  #view-home .zen-budget-row-meta {
    font-size: 0.9rem;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  #view-home .zen-budget-bar-track {
    height: 7px;
  }
  #view-home .zen-bill-actions {
    flex-wrap: wrap;
    gap: 8px;
  }
  #view-home .zen-kurs-rates {
    gap: 10px;
  }
  #view-home .zen-kurs-rate-card {
    min-width: 0;
    flex: 1 1 calc(50% - 8px);
    padding: 12px 10px;
  }
  #view-home .zen-kurs-cur {
    font-size: 12px;
  }
  #view-home .zen-kurs-val {
    font-size: 15px;
    overflow-wrap: anywhere;
    white-space: normal;
  }
  #view-home .zen-kurs-convert {
    flex-wrap: wrap;
  }
  #view-home .zen-kurs-result {
    white-space: normal;
    overflow-wrap: anywhere;
    min-width: 0;
    width: 100%;
    font-size: 15px;
  }
  #view-home .zen-kurs-input,
  #view-home .zen-kurs-select {
    font-size: 16px;
    min-height: 44px;
  }
  .zen-shortcut-btn {
    min-height: 42px;
    font-size: 0.92rem;
    padding: 8px 14px;
  }
  .zen-spotlight-shortcuts {
  gap: 8px;
  padding-bottom: 4px;
}
}

/* --------------------------------------------------------------------------
   LIGHT MODE — zen bento/chips (dark text vars on dark bento = faint)
   -------------------------------------------------------------------------- */
body.light-mode .zen-bento-box {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
body.light-mode .zen-bento-box:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.06);
  border-top-color: rgba(0, 0, 0, 0.12);
}
body.light-mode .zen-ai-shortcut,
body.light-mode .zen-shortcut-btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text-secondary);
}
body.light-mode .zen-ai-shortcut:hover,
body.light-mode .zen-shortcut-btn:hover {
  background: rgba(0, 0, 0, 0.07);
  border-color: rgba(0, 0, 0, 0.16);
  color: var(--text-primary);
}
body.light-mode .zen-shortcut-btn.urgent-chip {
  background: rgba(194, 65, 12, 0.08);
  border-color: rgba(194, 65, 12, 0.28);
  color: #C2410C;
}
body.light-mode .zen-shortcut-btn.urgent-chip:hover {
  background: rgba(194, 65, 12, 0.14);
  border-color: rgba(194, 65, 12, 0.4);
  color: #9A3412;
}
body.light-mode .glance-icon {
  background: rgba(0, 0, 0, 0.05);
}
body.light-mode .zen-health-badge {
  background: rgba(0, 0, 0, 0.06);
}
body.light-mode .zen-circle-bg {
  stroke: rgba(0, 0, 0, 0.08);
}
body.light-mode .zen-circle-progress {
  stroke: var(--accent-blue);
}
body.light-mode .activity-amount.income,
body.light-mode .zen-budget-row-meta.is-ok {
  color: var(--accent-green);
}
body.light-mode .zen-budget-row-meta.is-warn {
  color: var(--accent-yellow);
}
body.light-mode .zen-budget-row-meta.is-hot {
  color: var(--accent-red);
}
body.light-mode .zen-budget-row-meta.is-full {
  color: var(--accent-red);
}
body.light-mode .zen-budget-row-meta.is-lunas {
  color: var(--accent-green);
}
body.light-mode .zen-budget-row-meta.is-due {
  color: var(--text-secondary);
}
body.light-mode .zen-budget-bar-fill.is-ok { background: var(--accent-green); }
body.light-mode .zen-budget-bar-fill.is-warn { background: var(--accent-yellow); }
body.light-mode .zen-budget-bar-fill.is-hot { background: var(--accent-red); }
body.light-mode .zen-budget-bar-fill.is-lunas { background: var(--accent-green); }
body.light-mode .zen-budget-bar-fill.is-due { background: var(--text-muted); opacity: 0.55; }
body.light-mode .zen-icon-bill,
body.light-mode .zen-bill-pay-btn {
  color: #C2410C;
}
body.light-mode .zen-icon-bill {
  background: rgba(194, 65, 12, 0.1);
}
body.light-mode .zen-bill-pay-btn {
  border-color: rgba(194, 65, 12, 0.28);
}
body.light-mode .zen-bill-item {
  border-left-color: rgba(194, 65, 12, 0.45);
}

