/* =========================================================
   FINORA DESIGN SYSTEM — RESPONSIVE WEB & MOBILE DUAL ENGINE
   WITH SUPABASE AUTHENTICATION & CLOUD SYNC
   ========================================================= */

:root {
  /* Primary Cyan & Secondary Violet Accents */
  --primary-cyan: #22D3EE;
  --primary-cyan-hover: #67E8F9;
  --primary-cyan-dark: #06B6D4;
  --primary-yellow: #22D3EE; /* Backward-compatibility alias for primary action */
  --primary-yellow-hover: #67E8F9;
  --primary-yellow-dark: #06B6D4;
  --secondary-violet: #8B5CF6;
  --secondary-violet-hover: #A78BFA;
  --accent-amber: #22D3EE;

  /* Default Dark Mode (Midnight + Dark Slate) Semantic Tokens */
  --bg-app: #070B14;
  --bg-surface: #111827;
  --bg-card: #111827;
  --bg-card-hover: #1E293B;
  --border-color: #1E293B;
  --border-color-subtle: rgba(255, 255, 255, 0.08);

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --badge-bg: rgba(34, 211, 238, 0.12);
  --badge-text: #22D3EE;

  --income-color: #34D399;
  --income-bg: rgba(52, 211, 153, 0.14);
  --expense-color: #FB7185;
  --expense-bg: rgba(251, 113, 133, 0.14);

  --modal-backdrop: rgba(7, 11, 20, 0.82);
  --glass-bg: rgba(17, 24, 39, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.45);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-smooth: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------------------------------------------------------
   DASHBOARD UPGRADE BANNER COMPONENT
   --------------------------------------------------------- */
.dash-upgrade-banner {
  margin-bottom: 18px;
  padding: 14px 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--secondary-violet) 18%, transparent), color-mix(in srgb, var(--primary-cyan) 14%, transparent));
  border: 1px solid color-mix(in srgb, var(--primary-cyan) 35%, transparent);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--primary-cyan) 10%, transparent);
}

.dash-upgrade-banner-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--secondary-violet), var(--primary-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #070B14;
  flex-shrink: 0;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--primary-cyan) 35%, transparent);
}

.dash-upgrade-banner-icon svg {
  width: 20px;
  height: 20px;
  color: #070B14 !important;
  stroke: #070B14 !important;
}

/* ---------------------------------------------------------
   SUNSET ORANGE THEME (DYNAMIC OVERRIDES)
   --------------------------------------------------------- */
body.theme-orange, :root[data-theme="orange"] {
  --primary-cyan: #F97316;
  --primary-cyan-hover: #FB923C;
  --primary-cyan-dark: #EA580C;
  --primary-yellow: #F97316;
  --primary-yellow-hover: #FB923C;
  --primary-yellow-dark: #EA580C;
  --secondary-violet: #F59E0B;
  --secondary-violet-hover: #FBBF24;
  --accent-amber: #F97316;
  --badge-bg: rgba(249, 115, 22, 0.16);
  --badge-text: #FB923C;

  /* Warm Dark Ember / Sunset Charcoal Box & Card Palette */
  --bg-app: #0D0805;
  --bg-surface: #18110B;
  --bg-card: #18110B;
  --bg-card-hover: #231810;
  --border-color: #2D1D13;
  --border-color-subtle: rgba(249, 115, 22, 0.14);

  --glass-bg: rgba(24, 17, 11, 0.90);
  --glass-border: rgba(249, 115, 22, 0.18);
  --modal-backdrop: rgba(13, 8, 5, 0.86);
  --shadow-card: 0 8px 26px rgba(0, 0, 0, 0.6);
}

body.theme-orange .app-header {
  background: rgba(24, 17, 11, 0.92);
  border-bottom: 1px solid rgba(249, 115, 22, 0.22);
  box-shadow: 0 4px 24px rgba(249, 115, 22, 0.08);
}

body.theme-orange .brand-icon-box {
  background: linear-gradient(135deg, #F97316 0%, #F59E0B 100%);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4);
}

body.theme-orange .web-nav-btn.active::after {
  background: #F97316;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.9);
}

body.theme-orange .upgrade-header-btn {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(249, 115, 22, 0.25));
  border: 1px solid rgba(249, 115, 22, 0.55);
  color: #FB923C;
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.2);
}

body.theme-orange .upgrade-header-btn svg {
  color: #F97316 !important;
  stroke: #F97316 !important;
}

body.theme-orange .upgrade-header-btn:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.4), rgba(249, 115, 22, 0.4));
  border-color: #F97316;
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.45);
}

body.theme-orange .dash-upgrade-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(249, 115, 22, 0.16));
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: 0 4px 22px rgba(249, 115, 22, 0.18);
}

body.theme-orange .dash-upgrade-banner-icon {
  background: linear-gradient(135deg, #F59E0B, #F97316);
  box-shadow: 0 2px 12px rgba(249, 115, 22, 0.5);
}

body.theme-orange .btn-upgrade-pill {
  background: linear-gradient(135deg, #F97316 0%, #F59E0B 100%);
  color: #070B14;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
}

body.theme-orange .btn-upgrade-pill:hover {
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.6);
}

/* Sunset Orange Card & Box Refinements */
body.theme-orange .glass-card,
body.theme-orange .dash-section-card,
body.theme-orange .stat-metric-card,
body.theme-orange .budget-item-card,
body.theme-orange .budget-item-box,
body.theme-orange .goal-card,
body.theme-orange .category-item-card,
body.theme-orange .pricing-card,
body.theme-orange .tx-filters-box,
body.theme-orange .chart-card,
body.theme-orange .profile-id-card {
  background: #18110B;
  border: 1px solid rgba(249, 115, 22, 0.18);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

body.theme-orange .glass-card:hover,
body.theme-orange .stat-metric-card:hover,
body.theme-orange .budget-item-box:hover,
body.theme-orange .dash-section-card:hover {
  border-color: rgba(249, 115, 22, 0.38);
}

body.theme-orange .hero-networth-card {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.12) 0%, #18110B 65%);
  border: 1px solid rgba(249, 115, 22, 0.28);
}

body.theme-orange .dash-action-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(249, 115, 22, 0.2);
  color: #F8FAFC;
}

body.theme-orange .dash-action-btn:hover {
  background: rgba(249, 115, 22, 0.12);
  border-color: #F97316;
  color: #FB923C;
}

body.theme-orange .btn-primary {
  background: linear-gradient(135deg, #F97316 0%, #F59E0B 100%);
  color: #070B14;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35);
}

body.theme-orange .btn-primary:hover {
  box-shadow: 0 6px 22px rgba(249, 115, 22, 0.5);
}

body.theme-orange .chip-filter.active,
body.theme-orange .seg-btn.active,
body.theme-orange .filter-chip.active {
  background: linear-gradient(135deg, #F97316 0%, #F59E0B 100%);
  color: #070B14;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(249, 115, 22, 0.35);
}

body.theme-orange .theme-opt-card.active {
  border-color: #F97316 !important;
  background: rgba(249, 115, 22, 0.08) !important;
}

/* ---------------------------------------------------------
   GOLDEN YELLOW THEME (DYNAMIC OVERRIDES)
   --------------------------------------------------------- */
body.theme-yellow, :root[data-theme="yellow"] {
  --primary-cyan: #FACC15;
  --primary-cyan-hover: #FDE047;
  --primary-cyan-dark: #EAB308;
  --primary-yellow: #FACC15;
  --primary-yellow-hover: #FDE047;
  --primary-yellow-dark: #EAB308;
  --secondary-violet: #EAB308;
  --secondary-violet-hover: #F59E0B;
  --accent-amber: #FACC15;
  --badge-bg: rgba(250, 204, 21, 0.16);
  --badge-text: #FACC15;

  /* Warm Dark Charcoal-Gold Box & Card Palette */
  --bg-app: #0C0A04;
  --bg-surface: #17150A;
  --bg-card: #17150A;
  --bg-card-hover: #221F0F;
  --border-color: #2D2812;
  --border-color-subtle: rgba(250, 204, 21, 0.14);

  --glass-bg: rgba(23, 21, 10, 0.90);
  --glass-border: rgba(250, 204, 21, 0.18);
  --modal-backdrop: rgba(12, 10, 4, 0.86);
  --shadow-card: 0 8px 26px rgba(0, 0, 0, 0.6);
}

body.theme-yellow .app-header {
  background: rgba(23, 21, 10, 0.92);
  border-bottom: 1px solid rgba(250, 204, 21, 0.22);
  box-shadow: 0 4px 24px rgba(250, 204, 21, 0.08);
}

body.theme-yellow .brand-icon-box {
  background: linear-gradient(135deg, #FACC15 0%, #EAB308 100%);
  box-shadow: 0 4px 16px rgba(250, 204, 21, 0.4);
}

body.theme-yellow .web-nav-btn.active::after {
  background: #FACC15;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.9);
}

body.theme-yellow .upgrade-header-btn {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.25), rgba(250, 204, 21, 0.25));
  border: 1px solid rgba(250, 204, 21, 0.55);
  color: #FACC15;
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.2);
}

body.theme-yellow .upgrade-header-btn svg {
  color: #FACC15 !important;
  stroke: #FACC15 !important;
}

body.theme-yellow .upgrade-header-btn:hover {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.4), rgba(250, 204, 21, 0.4));
  border-color: #FACC15;
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.45);
}

body.theme-yellow .dash-upgrade-banner {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(250, 204, 21, 0.16));
  border-color: rgba(250, 204, 21, 0.5);
  box-shadow: 0 4px 22px rgba(250, 204, 21, 0.18);
}

body.theme-yellow .dash-upgrade-banner-icon {
  background: linear-gradient(135deg, #FDE047, #EAB308);
  box-shadow: 0 2px 12px rgba(250, 204, 21, 0.5);
}

body.theme-yellow .btn-upgrade-pill {
  background: linear-gradient(135deg, #FACC15 0%, #EAB308 100%);
  color: #070B14;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.4);
}

body.theme-yellow .btn-upgrade-pill:hover {
  box-shadow: 0 6px 20px rgba(250, 204, 21, 0.6);
}

/* Golden Yellow Card & Box Refinements */
body.theme-yellow .glass-card,
body.theme-yellow .dash-section-card,
body.theme-yellow .stat-metric-card,
body.theme-yellow .budget-item-card,
body.theme-yellow .budget-item-box,
body.theme-yellow .goal-card,
body.theme-yellow .category-item-card,
body.theme-yellow .pricing-card,
body.theme-yellow .tx-filters-box,
body.theme-yellow .chart-card,
body.theme-yellow .profile-id-card {
  background: #17150A;
  border: 1px solid rgba(250, 204, 21, 0.18);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

body.theme-yellow .glass-card:hover,
body.theme-yellow .stat-metric-card:hover,
body.theme-yellow .budget-item-box:hover,
body.theme-yellow .dash-section-card:hover {
  border-color: rgba(250, 204, 21, 0.38);
}

body.theme-yellow .hero-networth-card {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.12) 0%, #17150A 65%);
  border: 1px solid rgba(250, 204, 21, 0.28);
}

body.theme-yellow .dash-action-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(250, 204, 21, 0.2);
  color: #F8FAFC;
}

body.theme-yellow .dash-action-btn:hover {
  background: rgba(250, 204, 21, 0.12);
  border-color: #FACC15;
  color: #FACC15;
}

body.theme-yellow .btn-primary {
  background: linear-gradient(135deg, #FACC15 0%, #EAB308 100%);
  color: #070B14;
  box-shadow: 0 4px 16px rgba(250, 204, 21, 0.35);
}

body.theme-yellow .btn-primary:hover {
  box-shadow: 0 6px 22px rgba(250, 204, 21, 0.5);
}

body.theme-yellow .chip-filter.active,
body.theme-yellow .seg-btn.active,
body.theme-yellow .filter-chip.active {
  background: linear-gradient(135deg, #FACC15 0%, #EAB308 100%);
  color: #070B14;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(250, 204, 21, 0.35);
}

body.theme-yellow .theme-opt-card.active {
  border-color: #FACC15 !important;
  background: rgba(250, 204, 21, 0.08) !important;
}

/* ---------------------------------------------------------
   NEON PINK THEME (DYNAMIC OVERRIDES)
   --------------------------------------------------------- */
body.theme-pink, :root[data-theme="pink"] {
  --primary-cyan: #EC4899;
  --primary-cyan-hover: #F472B6;
  --primary-cyan-dark: #DB2777;
  --primary-yellow: #EC4899;
  --primary-yellow-hover: #F472B6;
  --primary-yellow-dark: #DB2777;
  --secondary-violet: #F43F5E;
  --secondary-violet-hover: #FB7185;
  --accent-amber: #EC4899;
  --badge-bg: rgba(236, 72, 153, 0.16);
  --badge-text: #F472B6;

  /* Warm Dark Charcoal-Pink Box & Card Palette */
  --bg-app: #0D070A;
  --bg-surface: #190F14;
  --bg-card: #190F14;
  --bg-card-hover: #26161F;
  --border-color: #311B27;
  --border-color-subtle: rgba(236, 72, 153, 0.14);

  --glass-bg: rgba(25, 15, 20, 0.90);
  --glass-border: rgba(236, 72, 153, 0.18);
  --modal-backdrop: rgba(13, 7, 10, 0.86);
  --shadow-card: 0 8px 26px rgba(0, 0, 0, 0.6);
}

body.theme-pink .app-header {
  background: rgba(25, 15, 20, 0.92);
  border-bottom: 1px solid rgba(236, 72, 153, 0.22);
  box-shadow: 0 4px 24px rgba(236, 72, 153, 0.08);
}

body.theme-pink .brand-icon-box {
  background: linear-gradient(135deg, #EC4899 0%, #F43F5E 100%);
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.4);
}

body.theme-pink .web-nav-btn.active::after {
  background: #EC4899;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.9);
}

body.theme-pink .upgrade-header-btn {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.25), rgba(236, 72, 153, 0.25));
  border: 1px solid rgba(236, 72, 153, 0.55);
  color: #F472B6;
  box-shadow: 0 0 14px rgba(236, 72, 153, 0.2);
}

body.theme-pink .upgrade-header-btn svg {
  color: #EC4899 !important;
  stroke: #EC4899 !important;
}

body.theme-pink .upgrade-header-btn:hover {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.4), rgba(236, 72, 153, 0.4));
  border-color: #EC4899;
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.45);
}

body.theme-pink .dash-upgrade-banner {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.2), rgba(236, 72, 153, 0.16));
  border-color: rgba(236, 72, 153, 0.5);
  box-shadow: 0 4px 22px rgba(236, 72, 153, 0.18);
}

body.theme-pink .dash-upgrade-banner-icon {
  background: linear-gradient(135deg, #FB7185, #EC4899);
  box-shadow: 0 2px 12px rgba(236, 72, 153, 0.5);
}

body.theme-pink .btn-upgrade-pill {
  background: linear-gradient(135deg, #EC4899 0%, #F43F5E 100%);
  color: #FFFFFF;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.4);
}

body.theme-pink .btn-upgrade-pill:hover {
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.6);
}

/* Neon Pink Card & Box Refinements */
body.theme-pink .glass-card,
body.theme-pink .dash-section-card,
body.theme-pink .stat-metric-card,
body.theme-pink .budget-item-card,
body.theme-pink .budget-item-box,
body.theme-pink .goal-card,
body.theme-pink .category-item-card,
body.theme-pink .pricing-card,
body.theme-pink .tx-filters-box,
body.theme-pink .chart-card,
body.theme-pink .profile-id-card {
  background: #190F14;
  border: 1px solid rgba(236, 72, 153, 0.18);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

body.theme-pink .glass-card:hover,
body.theme-pink .stat-metric-card:hover,
body.theme-pink .budget-item-box:hover,
body.theme-pink .dash-section-card:hover {
  border-color: rgba(236, 72, 153, 0.38);
}

body.theme-pink .hero-networth-card {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.12) 0%, #190F14 65%);
  border: 1px solid rgba(236, 72, 153, 0.28);
}

body.theme-pink .dash-action-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(236, 72, 153, 0.2);
  color: #F8FAFC;
}

body.theme-pink .dash-action-btn:hover {
  background: rgba(236, 72, 153, 0.12);
  border-color: #EC4899;
  color: #F472B6;
}

body.theme-pink .btn-primary {
  background: linear-gradient(135deg, #EC4899 0%, #F43F5E 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.35);
}

body.theme-pink .btn-primary:hover {
  box-shadow: 0 6px 22px rgba(236, 72, 153, 0.5);
}

body.theme-pink .chip-filter.active,
body.theme-pink .seg-btn.active,
body.theme-pink .filter-chip.active {
  background: linear-gradient(135deg, #EC4899 0%, #F43F5E 100%);
  color: #FFFFFF;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(236, 72, 153, 0.35);
}

body.theme-pink .theme-opt-card.active {
  border-color: #EC4899 !important;
  background: rgba(236, 72, 153, 0.08) !important;
}

/* ---------------------------------------------------------
   EMERALD GREEN THEME (DYNAMIC OVERRIDES)
   --------------------------------------------------------- */
body.theme-green, :root[data-theme="green"] {
  --primary-cyan: #10B981;
  --primary-cyan-hover: #34D399;
  --primary-cyan-dark: #059669;
  --primary-yellow: #10B981;
  --primary-yellow-hover: #34D399;
  --primary-yellow-dark: #059669;
  --secondary-violet: #14B8A6;
  --secondary-violet-hover: #2DD4BF;
  --accent-amber: #10B981;
  --badge-bg: rgba(16, 185, 129, 0.16);
  --badge-text: #34D399;

  /* Warm Dark Charcoal-Green Box & Card Palette */
  --bg-app: #050D0A;
  --bg-surface: #0B1914;
  --bg-card: #0B1914;
  --bg-card-hover: #11261E;
  --border-color: #17362B;
  --border-color-subtle: rgba(16, 185, 129, 0.14);

  --glass-bg: rgba(11, 25, 20, 0.90);
  --glass-border: rgba(16, 185, 129, 0.18);
  --modal-backdrop: rgba(5, 13, 10, 0.86);
  --shadow-card: 0 8px 26px rgba(0, 0, 0, 0.6);
}

body.theme-green .app-header {
  background: rgba(11, 25, 20, 0.92);
  border-bottom: 1px solid rgba(16, 185, 129, 0.22);
  box-shadow: 0 4px 24px rgba(16, 185, 129, 0.08);
}

body.theme-green .brand-icon-box {
  background: linear-gradient(135deg, #10B981 0%, #14B8A6 100%);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

body.theme-green .web-nav-btn.active::after {
  background: #10B981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.9);
}

body.theme-green .upgrade-header-btn {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.25), rgba(16, 185, 129, 0.25));
  border: 1px solid rgba(16, 185, 129, 0.55);
  color: #34D399;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.2);
}

body.theme-green .upgrade-header-btn svg {
  color: #10B981 !important;
  stroke: #10B981 !important;
}

body.theme-green .upgrade-header-btn:hover {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.4), rgba(16, 185, 129, 0.4));
  border-color: #10B981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.45);
}

body.theme-green .dash-upgrade-banner {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(16, 185, 129, 0.16));
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 4px 22px rgba(16, 185, 129, 0.18);
}

body.theme-green .dash-upgrade-banner-icon {
  background: linear-gradient(135deg, #34D399, #10B981);
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.5);
}

body.theme-green .btn-upgrade-pill {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #070B14;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

body.theme-green .btn-upgrade-pill:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

/* Emerald Green Card & Box Refinements */
body.theme-green .glass-card,
body.theme-green .dash-section-card,
body.theme-green .stat-metric-card,
body.theme-green .budget-item-card,
body.theme-green .budget-item-box,
body.theme-green .goal-card,
body.theme-green .category-item-card,
body.theme-green .pricing-card,
body.theme-green .tx-filters-box,
body.theme-green .chart-card,
body.theme-green .profile-id-card {
  background: #0B1914;
  border: 1px solid rgba(16, 185, 129, 0.18);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

body.theme-green .glass-card:hover,
body.theme-green .stat-metric-card:hover,
body.theme-green .budget-item-box:hover,
body.theme-green .dash-section-card:hover {
  border-color: rgba(16, 185, 129, 0.38);
}

body.theme-green .hero-networth-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, #0B1914 65%);
  border: 1px solid rgba(16, 185, 129, 0.28);
}

body.theme-green .dash-action-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #F8FAFC;
}

body.theme-green .dash-action-btn:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: #10B981;
  color: #34D399;
}

body.theme-green .btn-primary {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #070B14;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

body.theme-green .btn-primary:hover {
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.5);
}

body.theme-green .chip-filter.active,
body.theme-green .seg-btn.active,
body.theme-green .filter-chip.active {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #070B14;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
}

body.theme-green .theme-opt-card.active {
  border-color: #10B981 !important;
  background: rgba(16, 185, 129, 0.08) !important;
}

/* ---------------------------------------------------------
   LOGIN & ONBOARDING ALWAYS FOLLOW DEFAULT CYBER CYAN THEME
   --------------------------------------------------------- */
#onboardingScreen,
#authModalBackdrop {
  --primary-cyan: #22D3EE !important;
  --primary-cyan-hover: #67E8F9 !important;
  --primary-cyan-dark: #06B6D4 !important;
  --primary-yellow: #22D3EE !important;
  --secondary-violet: #8B5CF6 !important;
  --secondary-violet-hover: #A78BFA !important;
  --accent-amber: #22D3EE !important;
  --bg-app: #070B14 !important;
  --bg-surface: #111827 !important;
  --bg-card: #111827 !important;
  --border-color: #1E293B !important;
  --badge-bg: rgba(34, 211, 238, 0.12) !important;
  --badge-text: #22D3EE !important;
}

#onboardingScreen .glass-card,
#authModalBackdrop .modal-sheet {
  background: #111827 !important;
  border: 1px solid #1E293B !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
}

#onboardingScreen a {
  color: #22D3EE !important;
}

/* ---------------------------------------------------------
   BASE STYLES & RESET
   --------------------------------------------------------- */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}


html, body {
  width: 100%;
  min-height: 100%;
  font-family: var(--font-family);
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.45;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
  transition: var(--transition-smooth);
}

input, select {
  font-family: inherit;
  outline: none;
}

/* ---------------------------------------------------------
   APP LAYOUT ARCHITECTURE
   --------------------------------------------------------- */
.app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

/* HEADER NAVBAR */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.brand-icon-box {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--secondary-violet) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--primary-cyan) 35%, transparent);
}

.brand-title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.cloud-status-pill {
  font-size: 10px;
  font-weight: 800;
  background: var(--badge-bg);
  color: var(--badge-text);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid color-mix(in srgb, var(--primary-cyan) 25%, transparent);
  white-space: nowrap;
}

/* Desktop Navigation Links */
.desktop-nav-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.web-nav-btn {
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
  position: relative;
}

.web-nav-btn:hover {
  color: var(--text-primary);
}

.web-nav-btn.active {
  color: var(--text-primary);
  font-weight: 700;
}

.web-nav-btn.active::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--primary-cyan);
  border-radius: 2px;
  box-shadow: 0 0 10px color-mix(in srgb, var(--primary-cyan) 80%, transparent);
}

/* Header Right Actions */
.header-right-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-header-btn {
  padding: 7px 14px;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  font-size: 13px;
  font-weight: 500;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
  cursor: pointer;
  max-width: 170px;
}

.auth-header-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.auth-header-btn .hdr-btn-icon {
  width: 15px;
  height: 15px;
  color: var(--text-secondary);
}

.auth-header-btn #headerUserLabel {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-header-btn .hdr-chevron {
  width: 13px;
  height: 13px;
  color: var(--text-muted);
}

.icon-round-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.icon-round-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.16);
}

.icon-round-btn svg {
  width: 17px;
  height: 17px;
}

.notify-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  background: var(--secondary-violet);
  border-radius: 50%;
}

.action-add-btn {
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--secondary-violet) 0%, var(--primary-cyan) 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--secondary-violet) 35%, transparent);
  transition: var(--transition-smooth);
}

.action-add-btn:hover {
  box-shadow: 0 6px 20px color-mix(in srgb, var(--secondary-violet) 50%, transparent);
  transform: translateY(-1px);
}

/* APP-THEMED BUTTONS */
.btn-primary {
  padding: 12px 22px;
  background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-cyan-dark) 100%) !important;
  color: #070B14 !important;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--primary-cyan) 35%, transparent);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-cyan-hover) 0%, var(--primary-cyan) 100%) !important;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--primary-cyan) 55%, transparent);
  transform: translateY(-1px);
}

.btn-primary.full-width {
  width: 100%;
}

.btn-secondary {
  padding: 8px 16px;
  background: var(--bg-card-hover);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary.danger-border, #settingsAuthActionBtn {
  background: rgba(239, 68, 68, 0.14) !important;
  color: #EF4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  font-weight: 600 !important;
}

.btn-secondary.danger-border:hover, #settingsAuthActionBtn:hover {
  background: rgba(239, 68, 68, 0.25) !important;
  border-color: rgba(239, 68, 68, 0.6) !important;
  color: #FCA5A5 !important;
  transform: translateY(-1px);
}





/* ---------------------------------------------------------
   MAIN CONTENT & SCREEN WRAPPERS
   --------------------------------------------------------- */
.app-main-content {
  flex: 1;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 24px 60px 24px;
}

.screen-view {
  display: none;
  animation: fadeIn 0.25s ease-out forwards;
}

.screen-view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.page-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-round-btn {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.icon-round-btn:hover {
  background: var(--bg-card-hover);
  transform: scale(1.05);
}

/* ---------------------------------------------------------
   CARDS & SURFACES
   --------------------------------------------------------- */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--border-color-subtle);
}

/* ---------------------------------------------------------
   ONBOARDING & AUTH FORMS (WITH CYBERNETIC HERO BACKGROUND)
   --------------------------------------------------------- */
body.onboarding-mode .app-header,
body.onboarding-mode .desktop-nav-tabs,
body.onboarding-mode .header-right-controls,
body.onboarding-mode .mobile-bottom-nav,
body:has(#onboardingScreen.active) .app-header,
body:has(#onboardingScreen.active) .desktop-nav-tabs,
body:has(#onboardingScreen.active) .header-right-controls,
body:has(#onboardingScreen.active) .mobile-bottom-nav {
  display: none !important;
}

body.onboarding-mode .app-main-content {
  padding: 0 !important;
  max-width: 100% !important;
  min-height: 100vh;
}


#onboardingScreen {
  min-height: 100vh;
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 16px 60px 16px;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.4) 0%, rgba(7, 11, 20, 0.75) 45%, #070B14 100%),
              url('login_bg.png') center bottom / cover no-repeat,
              #070B14;
  border-radius: 0;
  overflow: hidden;
}

#onboardingScreen.active {
  display: flex !important;
  flex-direction: column;
}


.onboarding-content {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.onboarding-hero {
  text-align: center;
  margin-bottom: 24px;
}

.hero-logo-glow {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--secondary-violet) 100%);

  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--primary-cyan) 40%, transparent);
}

.hero-title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pill-yellow {
  color: var(--primary-cyan);
}
body.theme-dark .pill-yellow { color: var(--primary-cyan); }

.auth-type-tabs {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 3px;
  margin-bottom: 18px;
}

.auth-tab-btn {
  flex: 1;
  padding: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  text-align: center;
  transition: var(--transition-smooth);
}

.auth-tab-btn.active {
  background: var(--primary-cyan);
  color: #070B14;
  font-weight: 800;
}

/* Google Sign-In & Auth Divider */
.btn-google-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(12px);
}

.btn-google-auth:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: color-mix(in srgb, var(--primary-cyan) 40%, transparent);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.btn-google-auth:active {
  transform: translateY(0);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 14px 0 16px 0;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-divider:not(:empty)::before {
  margin-right: 12px;
}

.auth-divider:not(:empty)::after {
  margin-left: 12px;
}



.auth-form-view,
form.auth-form-view,
.modal-form.auth-form-view {
  display: none !important;
}

.auth-form-view.active,
form.auth-form-view.active,
.modal-form.auth-form-view.active {
  display: flex !important;
  flex-direction: column;
  gap: 14px;
}


.input-with-icon {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0 12px;
}

.input-with-icon .input-icon {
  font-size: 16px;
  margin-right: 8px;
}

.input-with-icon input {
  flex: 1;
  background: none;
  border: none;
  padding: 12px 0;
  color: var(--text-primary);
  font-size: 14px;
}

.auth-error-msg {
  font-size: 12px;
  color: var(--expense-color);
  background: var(--expense-bg);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: none;
}

.avatar-picker {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.avatar-opt {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.avatar-opt.active {
  background: var(--primary-yellow);
  border-color: var(--primary-yellow);
  transform: scale(1.08);
}

.currency-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.curr-opt {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.curr-opt.active {
  background: var(--primary-yellow);
  color: #000000;
  font-weight: 800;
  border-color: var(--primary-yellow);
}

.security-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

/* ---------------------------------------------------------
   DASHBOARD SCREEN ARCHITECTURE (MATCHING REFERENCE DESIGN)
   --------------------------------------------------------- */

.dash-welcome-row {
  margin-bottom: 22px;
}


.time-greeting {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}

.user-name-display {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wave-emoji {
  display: inline-block;
  transform-origin: 70% 70%;
  animation: waveHand 2.2s infinite ease-in-out;
}

@keyframes waveHand {
  0%, 100% { transform: rotate(0deg); }
  20%, 60% { transform: rotate(14deg); }
  40%, 80% { transform: rotate(-10deg); }
}

/* 2-Column Main Grid Layout */
.dashboard-grid-main {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 22px;
  align-items: start;
}

@media (max-width: 1060px) {
  .dashboard-grid-main {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.dash-col-left, .dash-col-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---------------------------------------------------------
   HERO CARD: TOTAL NET WORTH
   --------------------------------------------------------- */
.hero-networth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 22px 24px 18px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hero-card-upper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
}

.hero-balance-info {
  flex: 1;
}

.hero-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-meta-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.balance-privacy-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 6px;
  transition: var(--transition-smooth);
}

.balance-privacy-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.balance-privacy-btn svg {
  width: 16px;
  height: 16px;
}

.hero-balance-val {
  font-size: 38px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 6px 0 10px 0;
}

.hero-trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(34, 197, 94, 0.12);
  color: #22C55E;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.hero-trend-badge.negative {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
}

.hero-trend-badge .trend-caption {
  color: #94A3B8;
  font-weight: 400;
  margin-left: 4px;
}

.hero-chart-box {
  flex: 1;
  max-width: 320px;
  height: 130px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

#dashNetWorthCanvas {
  width: 100%;
  max-width: 320px;
  height: 130px;
}

/* Bottom Metrics Split Row */
.hero-metrics-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-metric-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-metric-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.07);
}

.metric-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-icon-circle svg {
  width: 18px;
  height: 18px;
}

.metric-income {
  background: rgba(34, 197, 94, 0.12);
  color: #22C55E;
}

.metric-expense {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
}

.metric-goal {
  background: color-mix(in srgb, var(--secondary-violet) 12%, transparent);
  color: var(--secondary-violet);
}

.metric-label {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.metric-val {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ---------------------------------------------------------
   COMMAND HUB ACTION TRIO (INCOME, EXPENSE, GOAL)
   --------------------------------------------------------- */
.dash-action-trio {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.dash-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 16px;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 700;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.dash-action-btn svg {
  width: 17px;
  height: 17px;
}

.btn-action-income {
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.22);
  color: #22C55E;
}

.btn-action-income:hover {
  background: rgba(34, 197, 94, 0.14);
  border-color: #22C55E;
  box-shadow: 0 4px 18px rgba(34, 197, 94, 0.22);
  transform: translateY(-1px);
}

.btn-action-expense {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.22);
  color: #EF4444;
}

.btn-action-expense:hover {
  background: rgba(239, 68, 68, 0.14);
  border-color: #EF4444;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.22);
  transform: translateY(-1px);
}

.btn-action-goal {
  background: color-mix(in srgb, var(--secondary-violet) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--secondary-violet) 22%, transparent);
  color: var(--secondary-violet);
}

.btn-action-goal:hover {
  background: color-mix(in srgb, var(--secondary-violet) 14%, transparent);
  border-color: var(--secondary-violet);
  box-shadow: 0 4px 18px color-mix(in srgb, var(--secondary-violet) 22%, transparent);
  transform: translateY(-1px);
}

/* ---------------------------------------------------------
   SPENDING KPIS TRIO
   --------------------------------------------------------- */
.dash-kpi-trio {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

@media (max-width: 640px) {
  .dash-kpi-trio {
    grid-template-columns: 1fr;
  }
}

.stat-metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
  transition: var(--transition-smooth);
}

.stat-metric-card:hover {
  border-color: var(--primary-cyan);
  transform: translateY(-1px);
}

.stat-card-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.stat-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon-circle svg {
  width: 17px;
  height: 17px;
}

.stat-icon-red { background: rgba(239, 68, 68, 0.12); color: #EF4444; }
.stat-icon-blue { background: color-mix(in srgb, var(--secondary-violet) 12%, transparent); color: var(--secondary-violet); }
.stat-icon-green { background: rgba(34, 197, 94, 0.12); color: #22C55E; }

.stat-card-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-card-value {
  font-size: 17px;
  font-weight: 800;
  margin: 3px 0 2px 0;
  letter-spacing: -0.02em;
}

.stat-card-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.text-blue { color: var(--secondary-violet); }
.text-purple { color: #A855F7; }

/* ---------------------------------------------------------
   GENERIC DASHBOARD SECTION CARD
   --------------------------------------------------------- */
.dash-section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
}

.dash-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.dash-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.dash-sub-badge {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 400;
}

.dash-link-btn {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary-cyan);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.dash-link-btn:hover {
  color: #60A5FA;
}

/* ---------------------------------------------------------
   MONTHLY BUDGETS (2-COLUMN GRID)
   --------------------------------------------------------- */
.budget-progress-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 640px) {
  .budget-progress-grid {
    grid-template-columns: 1fr;
  }
}

.budget-item-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.budget-item-box:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.budget-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.budget-cat-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.budget-cat-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.budget-cat-icon-badge svg {
  width: 16px;
  height: 16px;
}

.budget-cat-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.budget-cat-amounts {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.budget-item-pct-col {
  text-align: right;
}

.budget-pct-val {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
}

.budget-left-val {
  font-size: 10.5px;
  color: var(--text-muted);
}

.budget-bar-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 6px;
}

.budget-bar-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.4s ease;
}

/* ---------------------------------------------------------
   RECENT ACTIVITY STACK
   --------------------------------------------------------- */
.recent-activity-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tx-feed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color-subtle);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tx-feed-item:last-child {
  border-bottom: none;
}

.tx-feed-item:hover {
  background: var(--bg-card-hover);
}

.tx-feed-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tx-feed-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tx-feed-icon-circle svg {
  width: 17px;
  height: 17px;
}

.tx-feed-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.tx-feed-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

.tx-feed-amount {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tx-inline-delete-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  opacity: 0.6;
}

.tx-inline-delete-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  opacity: 1;
  transform: scale(1.1);
}

/* ---------------------------------------------------------
   CASH FLOW DUAL CHART CARD
   --------------------------------------------------------- */
.cf-dropdown-wrap .cf-select-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
  outline: none;
}

.cf-chart-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-line {
  width: 14px;
  height: 2px;
  border-radius: 2px;
}

.legend-line-green { background: #22C55E; }
.legend-line-red { background: #EF4444; }

.legend-box-blue {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--secondary-violet);
}

.cf-canvas-container {
  width: 100%;
  height: 150px;
  margin-bottom: 14px;
}

#dashCashFlowCanvas {
  width: 100%;
  height: 150px;
}

.cf-summary-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding-top: 14px;
  border-top: 1px solid var(--border-color-subtle);
}

.cf-summary-label {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-bottom: 3px;
}

.cf-summary-val {
  font-size: 14px;
  font-weight: 700;
}

/* ---------------------------------------------------------
   GOAL PROGRESS WIDGET
   --------------------------------------------------------- */
.goal-widget-card {
  display: flex;
  align-items: center;
  gap: 18px;
}

.goal-donut-box {
  position: relative;
  width: 84px;
  height: 84px;
  flex-shrink: 0;
}

#dashGoalDonutCanvas {
  width: 84px;
  height: 84px;
}

.goal-donut-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.goal-donut-pct {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.goal-donut-sub {
  font-size: 9px;
  color: var(--text-secondary);
}

.goal-info-right {
  flex: 1;
}

.goal-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.goal-title-text {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.goal-saved-text {
  font-size: 13.5px;
  font-weight: 700;
  color: #A855F7;
}

.goal-saved-caption {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 2px;
}

.goal-main-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
  margin: 6px 0 8px 0;
}

.goal-main-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366F1 0%, #A855F7 100%);
  border-radius: 10px;
  transition: width 0.4s ease;
}

.goal-meta-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
}


/* Transaction List Stack */
.tx-list-stack, .tx-full-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tx-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tx-item-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-subtle);
  transform: translateX(2px);
}

.tx-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tx-cat-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.tx-cat-icon-badge svg {
  width: 18px;
  height: 18px;
  display: block;
}


.tx-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.tx-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

.tx-right {
  text-align: right;
}

.tx-amount {
  font-size: 15px;
  font-weight: 800;
}

.tx-amount.expense { color: var(--expense-color); }
.tx-amount.income { color: var(--income-color); }

/* ---------------------------------------------------------
   FILTER CHIPS & SEARCH
   --------------------------------------------------------- */
.search-input-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 12px;
}

.search-input-box input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 13px;
}

.filter-chips-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.chip-filter {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.chip-filter:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.chip-filter.active {
  background: var(--primary-cyan);
  color: #070B14;
  font-weight: 800;
  border-color: var(--primary-cyan);
}

.results-count-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin: 8px 0 12px 0;
}

.clear-filter-btn {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-card);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

/* ---------------------------------------------------------
   BUDGETS SCREEN STYLES
   --------------------------------------------------------- */
.budgets-container {
  max-width: 800px;
}

.budget-total-card {
  margin-bottom: 18px;
}

.budget-spent-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.budget-spent-val {
  font-size: 30px;
  font-weight: 900;
  color: var(--text-primary);
}

.budget-limit-val {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}

.badge-pill {
  font-size: 11px;
  font-weight: 800;
  background: var(--badge-bg);
  color: var(--badge-text);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.progress-bar-track {
  height: 8px;
  background: var(--bg-surface);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-cyan) 0%, var(--secondary-violet) 100%);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}


.budget-remaining-text {
  font-size: 12px;
  color: var(--income-color);
  font-weight: 700;
}

.budget-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.budget-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: var(--transition-smooth);
}

.budget-item-card:hover {
  border-color: var(--border-color-subtle);
}

.b-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.b-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
}

.b-item-right {
  font-size: 12px;
  font-weight: 700;
}

.overspend-alert-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--expense-bg);
  border: 1px solid var(--expense-color);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}

.alert-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--expense-color);
}

.alert-desc {
  font-size: 12px;
  color: var(--text-primary);
}

/* ---------------------------------------------------------
   ANALYTICS SCREEN STYLES
   --------------------------------------------------------- */
.analytics-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  margin-top: 16px;
}

.analytics-col-left, .analytics-col-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.analytics-summary-card {
  padding: 16px;
}

.analytics-kpi-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.analytics-kpi-item {
  text-align: center;
}

.stat-divider-vertical {
  width: 1px;
  height: 34px;
  background: var(--border-color);
}

.analytics-kpi-item .kpi-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
}

.analytics-kpi-item .kpi-val {
  font-size: 16px;
  font-weight: 900;
  margin-top: 2px;
}

.chart-card {
  padding: 20px;
}

.card-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title {
  font-size: 16px;
  font-weight: 800;
}

.tag-badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  color: var(--primary-yellow);
}

.chart-canvas-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0 20px 0;
}

.donut-center-info {
  position: absolute;
  text-align: center;
  pointer-events: none;
}

.donut-center-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.donut-center-val {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-primary);
}

.chart-legend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-secondary);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.bar-chart-container {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 160px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 6px;
}

.bar-pillar {
  width: 100%;
  max-width: 24px;
  background: linear-gradient(180deg, var(--primary-cyan) 0%, var(--secondary-violet) 100%);
  border-radius: 4px 4px 0 0;
  transition: height 0.4s ease;
}

.bar-label {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 600;
}

.category-breakdown-card {
  padding: 20px;
}

.category-bars-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.cat-bar-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cat-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
}

/* ---------------------------------------------------------
   SETTINGS SCREEN & THEME SWITCHER
   --------------------------------------------------------- */
.settings-container {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-id-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
}

.profile-avatar {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--secondary-violet) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--primary-cyan) 35%, transparent);
}


.profile-meta {
  flex: 1;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.profile-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.edit-name-btn, .copy-btn {
  font-size: 13px;
  cursor: pointer;
}

.uuid-row {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.settings-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-group-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  padding-left: 4px;
}

.settings-card-list {
  padding: 0;
  overflow: hidden;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.setting-item:last-child {
  border-bottom: none;
}

.setting-item.clickable:hover {
  background: var(--bg-card-hover);
  cursor: pointer;
}

.setting-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.setting-icon {
  font-size: 20px;
}

.setting-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.setting-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}

.setting-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chevron {
  font-size: 18px;
  color: var(--text-muted);
}

.current-curr-pill {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary-cyan);
}

/* THEME SWITCH CONTROL */
.theme-switch-control {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}

.theme-btn {
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
}

.theme-btn.active {
  background: var(--primary-yellow);
  color: #000000;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(255, 230, 0, 0.25);
}

.danger-item .danger-text { color: var(--expense-color); }
.danger-item:hover { background: var(--expense-bg) !important; }

.version-tag {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding: 10px 0;
}

/* ---------------------------------------------------------
   MODALS & BOTTOM SHEETS
   --------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--modal-backdrop);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-sheet {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-sheet {
  transform: translateY(0) scale(1);
}

#authModalBackdrop .modal-sheet {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.92) 0%, rgba(7, 11, 20, 0.96) 100%),
              url('login_bg.png') center bottom / cover no-repeat;
  border: 1px solid color-mix(in srgb, var(--primary-cyan) 25%, transparent);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px color-mix(in srgb, var(--primary-cyan) 12%, transparent);
}

.modal-handle {

  display: none;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
}

.modal-close-btn {
  font-size: 16px;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
}

.modal-close-btn:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

/* Forms */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.form-group input, .form-select {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--text-primary);
  font-size: 14px;
  transition: var(--transition-smooth);
}

.form-group input:focus, .form-select:focus {
  border-color: var(--primary-yellow);
}

.large-amount-input-box {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 16px;
}

.large-currency-symbol {
  font-size: 20px;
  font-weight: 900;
  color: var(--primary-yellow);
  margin-right: 8px;
}

.large-amount-field {
  border: none !important;
  background: none !important;
  font-size: 26px !important;
  font-weight: 900 !important;
  padding: 0 !important;
}

.type-segmented-control {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
}

.seg-btn {
  flex: 1;
  padding: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.seg-btn.active {
  background: var(--primary-yellow);
  color: #000000;
  font-weight: 800;
}

.category-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 140px;
  overflow-y: auto;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.cat-chip.active {
  background: var(--primary-cyan);
  color: #070B14;
  font-weight: 800;
  border-color: var(--primary-cyan);
}

.setting-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.setting-icon-badge svg {
  width: 18px;
  height: 18px;
}

.icon-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text-primary);
  font-size: 12.5px;
  margin-bottom: 8px;
  transition: var(--transition-smooth);
}

.icon-search-input:focus {
  border-color: var(--primary-cyan);
  background: color-mix(in srgb, var(--primary-cyan) 4%, transparent);
}

.icon-picker-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
  padding: 4px 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.icon-opt {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.icon-opt svg {
  width: 18px;
  height: 18px;
}

.icon-opt:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.icon-opt.active {
  background: color-mix(in srgb, var(--primary-cyan) 18%, transparent) !important;
  border-color: var(--primary-cyan) !important;
  color: var(--primary-cyan) !important;
  box-shadow: 0 0 10px color-mix(in srgb, var(--primary-cyan) 25%, transparent);
}

.link-btn, #btnAddCategoryInline {
  background: color-mix(in srgb, var(--primary-cyan) 8%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--primary-cyan) 25%, transparent) !important;
  color: var(--primary-cyan) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: var(--radius-sm) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  transition: var(--transition-smooth) !important;
}

.link-btn:hover, #btnAddCategoryInline:hover, #btnAddSubcategoryInline:hover {
  background: color-mix(in srgb, var(--primary-cyan) 18%, transparent) !important;
  border-color: color-mix(in srgb, var(--primary-cyan) 45%, transparent) !important;
  color: var(--primary-cyan-hover) !important;
  transform: translateY(-1px) !important;
}

/* Category Color Picker */
.category-color-picker-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  padding: 4px 2px;
}

.color-opt {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-block;
}

.color-opt:hover {
  transform: scale(1.15);
}

.color-opt.active {
  border-color: #FFFFFF !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

/* Category Management Accordion Cards */
.category-accordion-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.category-accordion-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.category-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  background: rgba(255, 255, 255, 0.015);
}

.category-accordion-header:hover {
  background: rgba(255, 255, 255, 0.035);
}

.subcategories-list-drawer {
  padding: 12px 16px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.15);
  display: none;
}

.category-accordion-card.expanded .subcategories-list-drawer {
  display: block;
}

.category-accordion-card.expanded .category-chevron {
  transform: rotate(180deg);
}

.category-chevron {
  transition: transform 0.2s ease;
}

.subcategory-chips-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.subcategory-item-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition-smooth);
}

.subcategory-item-pill:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.subcat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.subcat-chip:hover {
  border-color: var(--border-cyan);
  color: var(--text-primary);
}

.subcat-chip.active {
  background: var(--primary-cyan);
  color: #070B14;
  font-weight: 800;
  border-color: var(--primary-cyan);
  box-shadow: 0 0 10px color-mix(in srgb, var(--primary-cyan) 35%, transparent);
}


.b-item-icon-badge, .cat-mini-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.b-item-icon-badge svg, .cat-mini-badge svg {
  width: 16px;
  height: 16px;
}



/* ---------------------------------------------------------
   NATIVE MOBILE BOTTOM BAR (MOBILE ONLY)
   --------------------------------------------------------- */
.mobile-bottom-nav {
  display: none;
}

/* ---------------------------------------------------------
   RESPONSIVE DUAL-VIEW MEDIA QUERIES (MOBILE VS DESKTOP)
   --------------------------------------------------------- */
@media (max-width: 768px) {
  /* Hide Desktop Navbar Tabs */
  .desktop-nav-tabs {
    display: none;
  }

  .action-add-btn {
    display: none;
  }

  .app-header {
    padding: 6px 0;
  }

  .header-inner {
    padding: 8px 16px;
  }

  .app-main-content {
    padding: 16px 16px 88px 16px;
  }

  /* Single Column Dashboard */
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Single Column Analytics */
  .analytics-layout-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Native Mobile Bottom App Bar */
  .mobile-bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 68px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
    z-index: 999;
    padding: 4px 12px 10px 12px;
  }

  .nav-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    flex: 1;
    transition: var(--transition-smooth);
  }

  .nav-tab-btn.active {
    color: var(--primary-cyan);
    font-weight: 800;
  }
  body.theme-light .nav-tab-btn.active { color: #0284C7; }

  .nav-fab-btn {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--secondary-violet) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #070B14;
    box-shadow: 0 6px 18px color-mix(in srgb, var(--primary-cyan) 40%, transparent);
    margin-top: -24px;
    flex-shrink: 0;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  }


  .nav-fab-btn:active {
    transform: scale(0.92);
  }

  /* Bottom sheet style on mobile */
  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .modal-sheet {
    border-radius: 24px 24px 0 0;
    max-width: 100%;
    transform: translateY(100%);
    padding: 20px 20px 36px 20px;
  }

  .modal-backdrop.open .modal-sheet {
    transform: translateY(0);
  }

  .modal-handle {
    display: block;
    width: 38px;
    height: 4px;
    background: var(--text-muted);
    border-radius: var(--radius-full);
    margin: 0 auto 16px auto;
    opacity: 0.5;
  }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Balance Card Privacy Toggle */
.balance-privacy-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.balance-privacy-btn:hover {
  background: color-mix(in srgb, var(--primary-cyan) 15%, transparent);
  color: var(--primary-cyan);
  border-color: color-mix(in srgb, var(--primary-cyan) 30%, transparent);
}

/* ---------------------------------------------------------
   FUTURISTIC COMMAND HUB (QUICK ACTION TRIO)
   --------------------------------------------------------- */
.command-hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 10px;
}

.cmd-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  white-space: nowrap;
}

.cmd-btn:active {
  transform: scale(0.97);
}

.cmd-icon {
  font-size: 14px;
  font-weight: 900;
}

.cmd-income {
  background: rgba(52, 211, 153, 0.12);
  color: #34D399;
  border-color: rgba(52, 211, 153, 0.25);
  box-shadow: 0 4px 14px rgba(52, 211, 153, 0.15);
}

.cmd-income:hover {
  background: #34D399;
  color: #070B14;
  box-shadow: 0 6px 20px rgba(52, 211, 153, 0.35);
  transform: translateY(-1px);
}

.cmd-expense {
  background: rgba(251, 113, 133, 0.12);
  color: #FB7185;
  border-color: rgba(251, 113, 133, 0.25);
  box-shadow: 0 4px 14px rgba(251, 113, 133, 0.15);
}

.cmd-expense:hover {
  background: #FB7185;
  color: #070B14;
  box-shadow: 0 6px 20px rgba(251, 113, 133, 0.35);
  transform: translateY(-1px);
}

.cmd-goal {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary-cyan) 18%, transparent) 0%, color-mix(in srgb, var(--secondary-violet) 18%, transparent) 100%);
  color: var(--primary-cyan);
  border-color: color-mix(in srgb, var(--primary-cyan) 35%, transparent);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--primary-cyan) 20%, transparent);
}

.cmd-goal:hover {
  background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-cyan-dark) 45%, var(--secondary-violet) 100%);
  color: #070B14;
  box-shadow: 0 6px 22px color-mix(in srgb, var(--primary-cyan) 40%, transparent);
  transform: translateY(-1px);
}

/* ---------------------------------------------------------
   DASHBOARD ACTIVE GOALS SHOWCASE
   --------------------------------------------------------- */
.dash-goals-showcase {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mini-active-goal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: var(--transition-smooth);
}

.mini-active-goal-card:hover {
  border-color: var(--primary-cyan);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 12px color-mix(in srgb, var(--primary-cyan) 10%, transparent);
}

.mini-goal-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.mini-goal-icon {
  font-size: 22px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mini-goal-info {
  flex: 1;
  min-width: 0;
}

.mini-goal-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-goal-progress-sub {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.mini-goal-track {
  height: 5px;
  background: var(--bg-surface);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 4px;
}

.mini-goal-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-cyan) 0%, var(--secondary-violet) 100%);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.mini-goal-deposit-btn {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 800;
  background: color-mix(in srgb, var(--primary-cyan) 12%, transparent);
  color: var(--primary-cyan);
  border: 1px solid color-mix(in srgb, var(--primary-cyan) 30%, transparent);
  border-radius: var(--radius-full);
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.mini-goal-deposit-btn:hover {
  background: var(--primary-cyan);
  color: #070B14;
}

/* ---------------------------------------------------------
   DEDICATED GOALS SCREEN & FUTURISTIC CARDS
   --------------------------------------------------------- */
.goals-screen-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.goals-summary-card {
  padding: 16px 20px;
}

.goals-kpi-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.goal-kpi-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.text-cyan { color: var(--primary-cyan); }
.text-violet { color: var(--secondary-violet); }

.goals-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.futuristic-goal-card {
  background: radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--primary-cyan) 8%, transparent) 0%, transparent 50%),
              radial-gradient(circle at 10% 90%, color-mix(in srgb, var(--secondary-violet) 6%, transparent) 0%, transparent 50%),
              var(--bg-card);
  border: 1px solid color-mix(in srgb, var(--primary-cyan) 16%, transparent);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.futuristic-goal-card:hover {
  border-color: color-mix(in srgb, var(--primary-cyan) 40%, transparent);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px color-mix(in srgb, var(--primary-cyan) 12%, transparent);
}

/* Celebration 100% Achieved State */
.futuristic-goal-card.achieved {
  border-color: color-mix(in srgb, var(--income-color) 50%, transparent);
  background: radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--income-color) 12%, transparent) 0%, transparent 60%),
              radial-gradient(circle at 10% 90%, color-mix(in srgb, var(--primary-cyan) 8%, transparent) 0%, transparent 60%),
              var(--bg-card);
  box-shadow: 0 6px 24px color-mix(in srgb, var(--income-color) 15%, transparent);
}

.goal-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.goal-header-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.goal-avatar-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.goal-title-h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  word-break: break-word;
}

.goal-countdown-chip {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.goal-pct-pill {
  font-size: 13px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--primary-cyan) 12%, transparent);
  color: var(--primary-cyan);
  border: 1px solid color-mix(in srgb, var(--primary-cyan) 30%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--primary-cyan) 15%, transparent);
  flex-shrink: 0;
}

.goal-pct-pill.achieved-pill {
  background: color-mix(in srgb, var(--income-color) 15%, transparent);
  color: var(--income-color);
  border-color: color-mix(in srgb, var(--income-color) 40%, transparent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--income-color) 25%, transparent);
}

.goal-metrics-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.goal-saved-figure {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.goal-target-figure {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.goal-quantum-track {
  height: 8px;
  background: var(--bg-surface);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.goal-quantum-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-cyan) 0%, var(--primary-cyan-dark) 40%, var(--secondary-violet) 100%);
  border-radius: var(--radius-full);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px color-mix(in srgb, var(--primary-cyan) 50%, transparent);
}

.goal-quantum-fill.achieved-fill {
  background: linear-gradient(90deg, var(--income-color) 0%, var(--primary-cyan) 100%);
  box-shadow: 0 0 12px color-mix(in srgb, var(--income-color) 60%, transparent);
}

.goal-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 4px;
}

.btn-goal-fund {
  flex: 1;
  padding: 8px 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary-cyan) 15%, transparent) 0%, color-mix(in srgb, var(--secondary-violet) 15%, transparent) 100%);
  color: var(--primary-cyan);
  border: 1px solid color-mix(in srgb, var(--primary-cyan) 30%, transparent);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.btn-goal-fund:hover {
  background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--secondary-violet) 100%);
  color: #070B14;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--primary-cyan) 35%, transparent);
}

.btn-goal-danger {
  padding: 8px 10px;
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-goal-danger:hover {
  color: var(--expense-color);
  border-color: var(--expense-color);
  background: color-mix(in srgb, var(--expense-color) 10%, transparent);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: max-content;
  max-width: 90vw;
}

.toast {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------------------------------------------------------
   RESPONSIVE DUAL-VIEW MEDIA QUERIES (MOBILE VS TABLET VS DESKTOP)
   --------------------------------------------------------- */
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .analytics-layout-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ---------------------------------------------------------
   FULL RESPONSIVE MOBILE OPTIMIZATIONS (<= 768px)
   --------------------------------------------------------- */
@media (max-width: 768px) {
  /* Hide Desktop Navbar Tabs */
  .desktop-nav-tabs,
  .action-add-btn {
    display: none !important;
  }


  html, body {
    overflow-x: hidden;
    width: 100%;
    -webkit-text-size-adjust: 100%;
  }


  .app-shell {
    max-width: 100%;
    overflow-x: hidden;
  }

  .app-header {
    padding: 6px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .header-inner {
    padding: 8px 14px;
    gap: 8px;
  }

  .desktop-nav-bar {
    display: none !important;
  }

  .brand-group {
    gap: 8px;
  }

  .brand-icon-box {
    width: 32px;
    height: 32px;
  }

  .brand-title {
    font-size: 17px;
  }

  .header-right-controls {
    gap: 8px;
  }

  .action-add-btn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 8px;
  }

  .auth-header-btn {
    padding: 6px 10px;
    font-size: 11.5px;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-radius: 8px;
  }

  .app-main-content {
    padding: 12px 12px calc(env(safe-area-inset-bottom, 0px) + 84px) 12px;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  /* Dashboard Screen Layout */
  .dash-welcome-row {
    margin-bottom: 12px;
  }

  .time-greeting {
    font-size: 12px;
  }

  .user-name-display {
    font-size: clamp(20px, 5.5vw, 25px);
  }

  .dashboard-grid-main {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .dash-col-left, .dash-col-right {
    gap: 14px;
    width: 100%;
  }

  /* Net Worth Hero Card */
  .hero-networth-card {
    padding: 14px;
    border-radius: 16px;
  }

  .hero-card-upper {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
  }

  .hero-balance-val {
    font-size: clamp(22px, 6vw, 30px);
    margin: 2px 0 4px 0;
  }

  .hero-chart-box {
    width: 45%;
    max-width: 140px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  #dashNetWorthCanvas {
    width: 100%;
    max-width: 140px;
    height: 65px;
  }

  /* Net Worth Bottom Metric Strip */
  .hero-metrics-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .hero-metric-divider {
    display: none;
  }

  .hero-metric-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .metric-icon-circle {
    width: 24px;
    height: 24px;
  }

  .metric-icon-circle svg {
    width: 12px;
    height: 12px;
  }

  .metric-label {
    font-size: 9.5px;
  }

  .metric-val {
    font-size: clamp(11px, 3vw, 13px);
    word-break: break-word;
  }

  /* Command Hub Action Trio */
  .dash-action-trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .dash-action-btn {
    padding: 9px 4px;
    font-size: 12px;
    border-radius: 10px;
    gap: 5px;
    justify-content: center;
  }

  .dash-action-btn svg {
    width: 14px;
    height: 14px;
  }

  /* Spending KPIs (Today's Outflow, This Month, Saved) - Compact 3-Column Landscape Row */
  .dash-kpi-trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .stat-metric-card {
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .stat-icon-circle {
    width: 26px;
    height: 26px;
  }

  .stat-card-value {
    font-size: clamp(12px, 3.2vw, 15px);
  }

  .stat-card-label {
    font-size: 9px;
  }

  .stat-card-sub {
    font-size: 8.5px;
  }

  /* Dashboard Section Cards */
  .dash-section-card {
    padding: 12px 12px;
    border-radius: 12px;
  }

  .dash-section-title {
    font-size: 14px;
  }

  .budget-progress-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .budget-item-box {
    padding: 8px 10px;
  }

  .tx-feed-item {
    padding: 8px 0;
  }

  .tx-feed-title {
    font-size: 13px;
  }

  .tx-feed-amount {
    font-size: 13px;
  }

  /* Activity Screen */
  .screen-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .screen-header-row .btn-primary {
    width: 100%;
  }

  .tx-summary-bar {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .tx-summary-item:last-child {
    grid-column: 1 / -1;
  }

  .tx-filters-box {
    padding: 12px;
    gap: 10px;
  }

  .filter-chips-row {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .filter-chips-row::-webkit-scrollbar {
    display: none;
  }

  .chip-filter {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 5px 10px;
    font-size: 11.5px;
  }

  .tx-card {
    padding: 12px;
    gap: 10px;
  }

  .tx-card-amount {
    font-size: clamp(13px, 3.8vw, 15.5px);
  }

  /* Categories Screen */
  .categories-layout-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cat-grid {
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 8px;
  }

  .category-card {
    padding: 10px 12px;
  }

  /* Budgets Screen */
  .budget-overall-card {
    padding: 14px;
  }

  .budget-item-card {
    padding: 12px 14px;
  }

  /* Goals Screen */
  .goals-summary-card {
    padding: 14px;
  }

  .goals-kpi-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .goal-kpi-item:first-child {
    grid-column: 1 / -1;
  }

  .goals-summary-card .stat-divider-vertical {
    display: none;
  }

  .goals-showcase-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .futuristic-goal-card {
    padding: 14px;
    gap: 10px;
  }

  .goal-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto;
    gap: 6px;
  }

  .btn-goal-fund {
    padding: 8px 6px;
    font-size: 11px;
  }

  /* Analytics Screen */
  .analytics-layout-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .analytics-summary-card, .analytics-chart-card {
    padding: 14px;
  }

  .analytics-kpi-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .analytics-kpi-item:last-child {
    grid-column: 1 / -1;
  }

  .analytics-summary-card .stat-divider-vertical {
    display: none;
  }

  /* Settings Screen */
  .settings-profile-card {
    padding: 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .settings-profile-right {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }

  .settings-card-list {
    border-radius: 14px;
  }

  .setting-item {
    padding: 14px 12px;
  }

  /* Native Mobile Bottom Navigation Bar */
  .mobile-bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: rgba(11, 15, 25, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 999;
    padding: 2px 4px calc(env(safe-area-inset-bottom, 0px) + 4px) 4px;
  }

  .nav-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    flex: 1;
    min-width: 0;
    padding: 4px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
  }

  .nav-tab-btn span {
    font-size: 10px;
    white-space: nowrap;
  }

  .nav-tab-btn svg {
    width: 18px;
    height: 18px;
  }

  .nav-tab-btn.active {
    color: var(--primary-cyan);
    font-weight: 800;
  }

  .nav-fab-btn {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-cyan-dark) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #070B14;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--primary-cyan) 45%, transparent);
    margin-top: -18px;
    flex-shrink: 0;
    border: 3px solid var(--bg-app);
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .nav-fab-btn svg {
    width: 22px;
    height: 22px;
  }

  .nav-fab-btn:active {
    transform: scale(0.92);
  }

  /* Modals as Native Bottom Sheets on Mobile */
  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .modal-sheet {
    border-radius: 22px 22px 0 0;
    max-width: 100% !important;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 16px calc(env(safe-area-inset-bottom, 16px) + 24px) 16px;
    transform: translateY(100%);
  }

  .modal-backdrop.open .modal-sheet {
    transform: translateY(0);
  }

  .modal-handle {
    display: block;
    width: 38px;
    height: 4px;
    background: var(--text-muted);
    border-radius: var(--radius-full);
    margin: 0 auto 12px auto;
    opacity: 0.45;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* Prevents auto-zoom in mobile Safari */
  }

  .large-amount-field {
    font-size: 28px;
  }

  .large-currency-symbol {
    font-size: 20px;
  }

  .icon-picker-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    max-height: 190px;
    overflow-y: auto;
  }
}

/* Extra Small Screens (<= 400px) */
@media (max-width: 400px) {
  .hero-metrics-footer {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-metric-item {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .dash-action-btn span {
    font-size: 11.5px;
  }

  .icon-picker-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .auth-header-btn {
    max-width: 90px;
  }
}


/* ---------------------------------------------------------
   EXPORT STATEMENT MODAL STYLING
   --------------------------------------------------------- */
.export-period-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}

@media (max-width: 520px) {
  .export-period-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

.export-period-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  user-select: none;
}

.export-period-btn:hover {
  background: color-mix(in srgb, var(--primary-cyan) 8%, transparent);
  border-color: color-mix(in srgb, var(--primary-cyan) 40%, transparent);
  transform: translateY(-1px);
}

.export-period-btn.active {
  background: color-mix(in srgb, var(--primary-cyan) 14%, transparent) !important;
  border: 1.5px solid var(--primary-cyan) !important;
  box-shadow: 0 0 16px color-mix(in srgb, var(--primary-cyan) 30%, transparent) !important;
}

.export-period-btn .period-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.export-period-btn.active .period-name {
  color: var(--primary-cyan) !important;
  font-weight: 800;
}

.export-period-btn .period-hint {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 3px;
  display: block;
}

.export-period-btn.active .period-hint {
  color: color-mix(in srgb, var(--primary-cyan) 85%, transparent) !important;
}


.export-preview-box {
  background: var(--bg-surface);
  border: 1px solid color-mix(in srgb, var(--primary-cyan) 20%, transparent);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 14px;
}

.preview-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.preview-tag {
  font-size: 9px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  display: block;
}

.preview-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-cyan);
}

.preview-dates {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.preview-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 10px;
}

.preview-metric-col .metric-label {
  font-size: 9px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  display: block;
}

.preview-metric-col .metric-val {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 2px;
  display: block;
}

.preview-metric-col .metric-val.income-text {
  color: var(--income-color);
}

.preview-metric-col .metric-val.expense-text {
  color: var(--expense-color);
}

/* ==============================================================================
   SAAS SUBSCRIPTION & PAYWALL UI STYLES
   ============================================================================== */

/* Header Upgrade Button & Badges */
.upgrade-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--secondary-violet) 25%, transparent), color-mix(in srgb, var(--primary-cyan) 25%, transparent));
  border: 1px solid color-mix(in srgb, var(--secondary-violet) 50%, transparent);
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 14px color-mix(in srgb, var(--secondary-violet) 30%, transparent);
}

.upgrade-header-btn:hover {
  background: linear-gradient(135deg, color-mix(in srgb, var(--secondary-violet) 40%, transparent), color-mix(in srgb, var(--primary-cyan) 40%, transparent));
  border-color: var(--primary-cyan);
  transform: translateY(-1px);
  box-shadow: 0 0 20px color-mix(in srgb, var(--primary-cyan) 40%, transparent);
}

.upgrade-header-btn.is-pro {
  background: color-mix(in srgb, var(--primary-cyan) 12%, transparent);
  border-color: color-mix(in srgb, var(--primary-cyan) 40%, transparent);
  color: var(--primary-cyan);
  box-shadow: 0 0 10px color-mix(in srgb, var(--primary-cyan) 20%, transparent);
}

.pro-tag-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  background: linear-gradient(135deg, var(--secondary-violet), var(--primary-cyan));
  color: #070B14;
  border-radius: 12px;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.tab-lock-icon {
  font-size: 10px;
  margin-left: 4px;
  opacity: 0.85;
}

.plan-badge-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.plan-badge-pill.pro-plan {
  background: linear-gradient(135deg, color-mix(in srgb, var(--secondary-violet) 20%, transparent), color-mix(in srgb, var(--primary-cyan) 20%, transparent));
  border-color: var(--primary-cyan);
  color: var(--primary-cyan);
}

.btn-upgrade-pill {
  background: linear-gradient(135deg, var(--primary-cyan), var(--secondary-violet));
  color: #FFFFFF;
  border: none;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-upgrade-pill:hover {
  transform: scale(1.04);
  box-shadow: 0 0 14px color-mix(in srgb, var(--secondary-violet) 50%, transparent);
}

/* Pricing Modal */
.pricing-modal-sheet {
  background: #0B1120 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding: 28px !important;
}

.pro-crown-badge {
  font-size: 20px;
}

.pricing-modal-subtitle {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 22px;
  line-height: 1.5;
}

/* Billing Toggle */
.billing-switcher-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 30px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--border-color);
}

.billing-opt-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.billing-opt-label.active {
  color: var(--text-primary);
}

.discount-badge {
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #34D399;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
  margin-left: 4px;
}

.billing-toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.billing-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.billing-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.12);
  transition: 0.3s;
  border-radius: 24px;
  border: 1px solid var(--border-color);
}

.billing-toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.billing-toggle-switch input:checked + .billing-toggle-slider {
  background-color: var(--primary-cyan);
}

.billing-toggle-switch input:checked + .billing-toggle-slider:before {
  transform: translateX(20px);
  background-color: var(--bg-app);
}

/* Pricing Grid */
.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .pricing-cards-grid {
    grid-template-columns: 1fr;
  }
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.featured-pricing-card {
  border-color: var(--primary-cyan) !important;
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary-cyan) 8%, transparent) 0%, var(--glass-bg) 100%) !important;
  box-shadow: 0 0 25px color-mix(in srgb, var(--primary-cyan) 15%, transparent);
}

.featured-ribbon {
  position: absolute;
  top: -12px;
  right: 18px;
  background: linear-gradient(135deg, var(--primary-cyan), var(--secondary-violet));
  color: #070B14;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 0.05em;
}

.plan-type-tag {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.plan-type-tag.star-tag {
  color: #F59E0B;
}

.plan-type-tag.crown-tag {
  color: var(--primary-cyan);
}

.plan-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.plan-price-val {
  font-size: 28px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.03em;
}

.plan-price-period {
  font-size: 12px;
  color: var(--text-muted);
}

.plan-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 16px;
  min-height: 34px;
}

.plan-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.plan-features-list li {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-features-list li strong {
  color: var(--text-primary);
}

.feat-disabled {
  color: var(--text-muted) !important;
  text-decoration: line-through;
  opacity: 0.6;
}

.feat-icon.check {
  color: #34D399;
  font-weight: 800;
}

.feat-icon.cross {
  color: #64748B;
  font-weight: 700;
}

.btn-plan-action {
  width: 100%;
  padding: 11px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-plan-action.current {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  cursor: default;
}

.btn-plan-action.btn-gold {
  background: linear-gradient(135deg, var(--primary-cyan), var(--secondary-violet));
  color: #070B14;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--primary-cyan) 35%, transparent);
}

.btn-plan-action.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--primary-cyan) 50%, transparent);
}

.pricing-modal-footer {
  text-align: center;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ---------------------------------------------------------
   DEDICATED MOBILE LANDSCAPE ORIENTATION OPTIMIZATION
   --------------------------------------------------------- */
@media (orientation: landscape) and (max-width: 960px) {
  .dashboard-grid-main {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
  }

  .dash-col-left, .dash-col-right {
    gap: 10px;
  }

  .app-main-content {
    padding: 8px 14px calc(env(safe-area-inset-bottom, 0px) + 60px) 14px;
  }

  .app-header {
    padding: 4px 0;
  }

  .header-inner {
    padding: 4px 14px;
  }

  .dash-welcome-row {
    margin-bottom: 8px;
  }

  .hero-networth-card {
    padding: 12px 14px;
  }

  .hero-card-upper {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
  }

  .hero-chart-box {
    max-width: 130px;
    height: 50px;
  }

  #dashNetWorthCanvas {
    max-width: 130px;
    height: 50px;
  }

  .dash-kpi-trio {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .dash-action-trio {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .analytics-layout-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .goals-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .app-bottom-nav {
    height: 50px;
  }

  .b-nav-item {
    padding: 3px;
  }

  .b-nav-item svg {
    width: 18px;
    height: 18px;
  }

  .b-nav-item span {
    font-size: 9px;
  }

  .modal-dialog {
    max-height: 88vh;
    overflow-y: auto;
  }
}

