/* ══════════════════════════════════════════════════════════════
   BUDGENEFITS — RETINA NEON PREMIUM OVERHAUL
   Focused on high-fidelity details, depth, and crisp glows.
   ══════════════════════════════════════════════════════════════ */

:root {
  --glow-intensity: 20px;
  --glass-bg-deep: rgba(10, 14, 35, 0.75);
  --glass-border-deep: rgba(255, 255, 255, 0.1);
  --glass-shine: linear-gradient(110deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
  --accent-gold-neon: #ffcc33;
  --accent-green-neon: #39ff14;
  --accent-red-neon: #ff3131;
  --text-gradient-primary: linear-gradient(to right, #fff, var(--text-secondary));
}

.light-mode {
  --glass-bg-deep: rgba(255, 255, 255, 0.85);
  --glass-border-deep: rgba(0, 0, 0, 0.08);
  --glass-shine: linear-gradient(110deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
  --text-gradient-primary: linear-gradient(to right, #121212, #4b5563);
  --header-stat-border: rgba(0, 0, 0, 0.1);
  --sidebar-active-bg: rgba(212, 168, 67, 0.15);
  --sidebar-hover-bg: rgba(0, 0, 0, 0.05);
}

body.light-mode {
  background: #fbfcfd !important;
}

/* Ensure Ticker Colors in Light Mode */
.light-mode .ticker-value.red { color: #ef4444 !important; }
.light-mode .ticker-value.green { color: #22c55e !important; }

/* Text Logo Styling */
.text-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.85rem;
  font-weight: 850;
  letter-spacing: -2.5px;
  display: flex;
  align-items: center;
  gap: 0;
  text-transform: lowercase;
}
.logo-budge { color: var(--gold); }
.logo-nefit { color: var(--text-primary); }
.light-mode .logo-nefit { color: #1a1a1a; }

.light-mode .exchange-bar {
  background: linear-gradient(135deg, #f1f5f9 0%, #f8fafc 100%) !important;
  border-bottom: 3px solid transparent !important;
  border-image: linear-gradient(to right, #e2e8f0, var(--gold), #e2e8f0) 1 !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.05) !important;
  position: relative;
  z-index: 10;
}

.light-mode .exchange-item .ex-label { 
  color: #475569 !important; 
  font-weight: 700 !important; 
  background: rgba(212, 168, 67, 0.05);
  padding: 4px 10px;
  border-radius: 20px;
}

.light-mode .exchange-item .ex-label { color: #64748b !important; font-weight: 600 !important; }
.light-mode .exchange-item .ex-value { color: #1e293b !important; font-weight: 800 !important; }

/* Enhanced Sidebar for Light Mode */
.light-mode .sidebar {
  background: #ffffff !important;
  border-right: 1px solid rgba(0,0,0,0.08) !important;
}

.light-mode .nav-item { 
  color: #475569 !important; 
  font-weight: 500 !important;
}
.light-mode .nav-item:hover { 
  background: rgba(0,0,0,0.03) !important; 
  color: #1e293b !important; 
}
.light-mode .nav-item.active { 
  background: rgba(212, 168, 67, 0.12) !important; 
  color: #a07830 !important; 
  font-weight: 700 !important;
}

.light-mode .quick-add-btn {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #1e293b !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
}

.light-mode .quick-add-btn:hover {
  background: #fffbef !important;
  border-color: var(--gold) !important;
}

/* Sidebar Logo Size Polish */
.sidebar-logo img {
  width: 240px !important; /* Maximum horizontal impact */
  max-width: 90%;
  height: auto;
  border-radius: 0;
  filter: drop-shadow(0 0 15px rgba(212, 168, 67, 0.1));
}

.page-section {
  display: none;
  max-width: 1400px;
  margin: 0 auto !important;
  width: 100% !important;
  padding: var(--space-xl) var(--space-xl) var(--space-2xl) var(--space-xl);
  box-sizing: border-box;
}

.page-section.active {
  display: block;
  animation: pageEnter 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes pageEnter {
  from { opacity: 0; transform: translateY(20px); filter: blur(10px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Page header styles removed from here, consolidated below */

.header-stat {
  padding-left: var(--space-xl);
  border-left: 1px solid var(--glass-border-deep);
  position: relative;
}

.header-stat .label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: block;
}

.header-stat .value {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ── Flow Columns: The Cinema Look ── */
.flow-container {
  gap: var(--space-2xl);
}

.flow-column:first-child, .flow-column:last-child {
  background: var(--glass-bg-deep);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: 36px;
  padding: var(--space-xl);
  border: 1px solid var(--glass-border-deep);
  box-shadow: var(--shadow-retina);
  position: relative;
  overflow: hidden;
}

.flow-column::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.03), transparent);
  pointer-events: none;
}

.flow-header {
  border-bottom: 1px solid var(--glass-border-deep);
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-xl);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.flow-header h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0;
}

.flow-column:first-child .flow-header h3 { color: var(--green-light); text-shadow: 0 0 15px var(--green-glow); }
.flow-column:last-child .flow-header h3 { color: var(--red-light); text-shadow: 0 0 15px var(--red-glow); }

/* ── Quick Cockpit: The Command Center ── */
.cockpit-container {
  background: var(--glass-bg-deep);
  border: 1px solid var(--glass-border-deep);
  border-radius: 32px;
  padding: var(--space-xl);
  box-shadow: var(--shadow-retina);
  position: relative;
  overflow: hidden;
}

.cockpit-header {
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: var(--space-md);
}

.cockpit-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--gold);
  text-shadow: 0 0 10px var(--gold-glow);
  margin-bottom: var(--space-md);
}

.cockpit-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  gap: 4px;
  position: relative;
  width: fit-content;
}

.cockpit-tab {
  background: transparent;
  border: none;
  padding: 8px 20px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.5px;
}

.cockpit-tab.active {
  color: #fff;
  background: rgba(212, 168, 67, 0.15);
  box-shadow: 0 0 15px rgba(212, 168, 67, 0.1), inset 0 0 0 1px rgba(212, 168, 67, 0.2);
}

.cockpit-tab:hover:not(.active) {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.03);
}

.quick-add-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.quick-add-btn {
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 18px !important;
  padding: 16px !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  color: #fff !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
  position: relative;
  overflow: hidden;
}

.quick-add-btn span:first-child {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.2));
  transition: transform 0.3s ease;
}

.quick-add-btn:hover {
  background: rgba(212, 168, 67, 0.1) !important;
  border-color: var(--gold) !important;
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4), 0 0 15px var(--gold-glow);
}

.quick-add-btn:hover span:first-child {
  transform: scale(1.2) rotate(5deg);
}

.quick-add-btn::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.quick-add-btn:hover::after { opacity: 1; }

/* ── Flow Items: High Polish High Density ── */
.flow-item {
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.03);
  padding: 10px 16px !important;
  border-radius: 14px;
  margin-bottom: 6px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: relative;
  overflow: visible;
}

.flow-item:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
  transform: translateX(4px);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5), 0 0 15px rgba(255,255,255,0.05);
  z-index: 10;
}

.page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.page-header-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.page-header-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.page-header-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.03em;
  background: var(--text-gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.flow-item-header {
  display: grid;
  grid-template-columns: 40px 1fr auto 160px 80px;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.flow-item .item-icon {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px;
  transition: all 0.3s var(--transition-base);
}

.flow-item .item-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.flow-item:hover .item-icon {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(212, 168, 67, 0.3);
  transform: scale(1.05);
}

.nav-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  transition: all 0.3s ease;
}

.nav-item:hover .sidebar-logo {
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-md);
}

.sidebar-logo img {
  height: 28px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(212, 168, 67, 0.3));
}

#splashScreen img {
  max-width: 280px;
  height: auto;
  filter: drop-shadow(0 0 25px rgba(212, 168, 67, 0.5));
}

.landing-brand img {
  height: 24px;
  width: auto;
}

.nav-item:hover .nav-icon svg,
.nav-item.active .nav-icon svg {
  filter: drop-shadow(0 0 5px currentColor);
}

.flow-item .item-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.flow-item .item-name {
  font-size: 0.85rem;
  font-weight: 750;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flow-item .item-detail {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 1px;
}

.flow-item .amount-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.flow-item .amount-input {
  width: 100px !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: inherit;
  font-family: inherit;
  font-weight: 800 !important;
  font-size: 1.1rem !important;
  text-align: right;
  padding: 0;
  margin: 0;
  transition: transform 0.2s;
}

.flow-item .amount-input:focus {
  transform: scale(1.05);
  text-shadow: 0 0 10px currentColor;
}

.flow-item .currency-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
}

.flow-item .item-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  opacity: 0.3;
  transition: opacity 0.3s;
}

.flow-item:hover .item-actions {
  opacity: 1;
}

.action-btn-mini {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: all 0.2s;
  font-size: 0.85rem;
}

.action-btn-mini:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.condition-badge-small {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 4px 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ── Stat Cards: The Heavy Hitters ── */
.stat-card {
  background: var(--glass-bg-deep);
  border: 1px solid var(--glass-border-deep);
  box-shadow: var(--shadow-retina);
  border-radius: 28px;
  padding: var(--space-xl);
  transition: all 0.5s var(--transition-base);
}

.stat-card:hover {
  border-color: var(--gold);
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6), 0 18px 36px -18px rgba(0, 0, 0, 0.3), 0 0 30px var(--gold-glow);
}

.stat-card .stat-value {
  font-size: 2.2rem;
  margin-top: var(--space-sm);
  letter-spacing: -0.05em;
}

/* ── Premium Buttons: The Shimmer ── */
.btn-gold {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  box-shadow: 0 4px 15px var(--gold-glow);
  z-index: 1;
}

.btn-gold::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: rotate(45deg);
  transition: 0.6s;
  opacity: 0;
}

.btn-gold:hover::after {
  left: 100%;
  top: 100%;
  opacity: 1;
}

/* ── The Workbench (Inline Expansion) ── */
.workbench-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  background: rgba(0,0,0,0.4);
  padding: var(--space-xl);
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.05);
  gap: var(--space-lg);
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}

.wb-input {
  background: rgba(0,0,0,0.5) !important;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: #fff !important;
  width: 100%;
  transition: all 0.3s;
}

.wb-input:focus {
  border-color: var(--gold);
  background: rgba(13, 17, 41, 0.9) !important;
  box-shadow: 0 0 15px var(--gold-glow);
  outline: none;
}

/* ── Custom Retina Dropdowns ── */
.retina-select-container {
  position: relative;
  width: 100%;
}

.retina-select-trigger {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.85rem;
  color: #fff;
  user-select: none;
}

.retina-select-trigger:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(212, 168, 67, 0.4);
}

.retina-select-trigger.active {
  border-color: var(--gold);
  box-shadow: 0 0 15px var(--gold-glow);
  background: rgba(212, 168, 67, 0.05);
}

.retina-select-trigger .arrow {
  font-size: 0.6rem;
  opacity: 0.5;
  transition: transform 0.4s;
}

.retina-select-trigger.active .arrow {
  transform: rotate(180deg);
  opacity: 1;
}

.retina-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: rgba(6, 9, 24, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  max-height: 250px;
  overflow-y: auto;
  z-index: 10000;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.retina-select-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.retina-option {
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 10px;
}

.retina-option:hover {
  background: rgba(212, 168, 67, 0.1);
  color: #fff;
}

/* ── Side Drawer Chart ── */
.drawer-chart-container {
  margin-top: 2rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 24px 16px;
  position: relative;
}

.drawer-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.drawer-chart-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
}

.drawer-chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 100px;
  gap: 4px;
}

.dr-bar-wrapper {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}

.dr-bar {
  width: 100%;
  min-height: 2px;
  border-radius: 4px 4px 2px 2px;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.dr-bar.income {
  background: linear-gradient(to top, rgba(34, 197, 94, 0.2), var(--green-light));
  box-shadow: 0 0 10px var(--green-glow);
}

.dr-bar.expense {
  background: linear-gradient(to top, rgba(239, 68, 68, 0.2), var(--red-light));
  box-shadow: 0 0 10px var(--red-glow);
}

.dr-bar.asset {
  background: linear-gradient(to top, rgba(212, 168, 67, 0.2), var(--gold));
  box-shadow: 0 0 10px var(--gold-glow);
}

.dr-bar-label {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.2);
  margin-top: 8px;
  font-weight: 700;
}

.dr-bar-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
  background: #000;
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s;
  border: 1px solid rgba(255,255,255,0.1);
  z-index: 10;
}

.dr-bar-wrapper:hover .dr-bar-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}

.retina-option.selected {
  background: rgba(212,168,67,0.25);
  color: var(--gold);
  font-weight: 700;
}

.retina-option .option-flag { font-size: 1.1rem; }

/* ── Side Drawer: Retina Utility ── */
.side-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 420px;
  max-width: 90vw;
  height: 100%;
  background: #060918;
  z-index: 100000;
  box-shadow: -20px 0 50px rgba(0,0,0,0.8);
  transition: right 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 1px solid var(--glass-border-deep);
  display: flex;
  flex-direction: column;
  padding: 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.side-drawer.active {
  right: 0;
}

.drawer-header {
  margin-bottom: var(--space-2xl);
}

.drawer-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
  color: #fff;
  background: linear-gradient(to right, #fff, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.drawer-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 8px;
}

.drawer-close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1.5rem;
}

.drawer-close:hover {
  background: var(--red);
  border-color: var(--red);
  transform: rotate(90deg);
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding-right: 10px;
}

/* Hide flow expansion in favor of drawer */
.flow-item-expansion {
  display: none !important;
}

.flow-item {
  position: relative;
  overflow: visible;
}

.flow-item-header {
  position: relative;
  z-index: 2;
}

.condition-pill-right {
  background: rgba(212, 168, 67, 0.15);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 0 10px var(--gold-glow);
}

/* ── Sidebar: Luxury Navigation ── */
.sidebar {
  background: #02040a; /* Pure deep black */
  border-right: 1px solid rgba(255,255,255,0.03);
  box-shadow: 10px 0 30px rgba(0,0,0,0.5);
}

.nav-item {
  margin: 2px 12px;
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item.active {
  background: linear-gradient(to right, rgba(212,168,67,0.15), transparent) !important;
  box-shadow: inset 2px 0 0 var(--gold);
}

.nav-item:hover:not(.active) {
  background: rgba(255,255,255,0.03);
  transform: translateX(5px);
}

/* ── Retina Modal Inputs ── */
.retina-modal-input {
  background: rgba(255, 255, 255, 0.03) !important;
  border: none !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 0 !important;
  padding: 12px 0 !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  transition: all 0.3s ease !important;
  width: 100% !important;
  outline: none !important;
  font-family: 'Outfit', sans-serif !important;
}

.retina-modal-input:focus {
  border-bottom-color: var(--gold) !important;
  background: rgba(212, 168, 67, 0.03) !important;
  padding-left: 10px !important;
}

.retina-amount-display-container {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 24px;
  padding: 20px;
  margin: var(--space-lg) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.retina-amount-display-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
}

.retina-amount-input {
  background: transparent !important;
  border: none !important;
  color: #fff !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 3rem !important;
  font-weight: 900 !important;
  text-align: center !important;
  width: 100% !important;
  outline: none !important;
  letter-spacing: -0.05em !important;
  padding: 0 !important;
  margin: 0 !important;
  text-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.retina-amount-input::placeholder {
  color: rgba(255,255,255,0.1);
}

/* Theme Accents for Amounts */
.retina-amount-display-container.income { border-color: rgba(57, 255, 20, 0.2); box-shadow: 0 0 15px rgba(57, 255, 20, 0.05); }
.retina-amount-display-container.expense { border-color: rgba(255, 49, 49, 0.2); box-shadow: 0 0 15px rgba(255, 49, 49, 0.05); }
.retina-amount-display-container.asset { border-color: rgba(212, 168, 67, 0.2); box-shadow: 0 0 15px rgba(212, 168, 67, 0.05); }
.retina-amount-display-container.blue { border-color: rgba(59, 130, 246, 0.2); box-shadow: 0 0 15px rgba(59, 130, 246, 0.05); }

.retina-amount-display-container.income .retina-amount-input { color: var(--accent-green-neon) !important; text-shadow: 0 0 20px rgba(57, 255, 20, 0.3); }
.retina-amount-display-container.expense .retina-amount-input { color: var(--accent-red-neon) !important; text-shadow: 0 0 20px rgba(255, 49, 49, 0.3); }
.retina-amount-display-container.asset .retina-amount-input { color: var(--gold) !important; text-shadow: 0 0 20px rgba(212, 168, 67, 0.3); }
.retina-amount-display-container.blue .retina-amount-input { color: #3b82f6 !important; text-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }

/* ── Theme Toggle Button ── */
.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  padding: 0;
  margin-left: 10px;
}

.theme-toggle-btn:hover {
  transform: rotate(15deg) scale(1.1);
  border-color: var(--gold);
  box-shadow: 0 0 15px var(--gold-glow);
}

.mode-icon {
  position: absolute;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  font-size: 1.2rem;
}

/* Default (Dark Mode): Sun is hidden above, Moon is visible */
#themeToggle .sun { transform: translateY(-30px); opacity: 0; }
#themeToggle .moon { transform: translateY(0); opacity: 1; color: var(--gold); }

/* Light Mode State */
.light-mode #themeToggle .sun { transform: translateY(0); opacity: 1; color: #ff8c00; }
.light-mode #themeToggle .moon { transform: translateY(30px); opacity: 0; }

.light-mode .theme-toggle-btn {
  background: #fff;
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
