/* Reset & Base variables */
:root {
  --color-bg-base: #020617;      /* Extremely deep slate background */
  --color-card-bg: rgba(15, 23, 42, 0.55);
  --color-card-border: rgba(255, 255, 255, 0.08);
  --color-card-highlight: rgba(255, 255, 255, 0.03);
  
  --color-text-primary: #f8fafc;  /* crisp off-white */
  --color-text-secondary: #94a3b8;/* slate-400 */
  --color-text-muted: #64748b;    /* slate-500 */
  
  --color-primary: #8b5cf6;       /* Violet accent */
  --color-primary-glow: rgba(139, 92, 246, 0.3);
  --color-primary-dark: #6d28d9;
  
  --color-income: #10b981;        /* Emerald Green */
  --color-income-glow: rgba(16, 185, 129, 0.15);
  
  --color-expense: #f43f5e;       /* Rose Red */
  --color-expense-glow: rgba(244, 63, 94, 0.15);
  
  --color-warning: #f59e0b;       /* Amber */
  --color-info: #06b6d4;          /* Cyan */

  --font-ui: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-numeric: 'Outfit', var(--font-ui);

  --safe-area-top: max(16px, env(safe-area-inset-top));
  --safe-area-bottom: max(12px, env(safe-area-inset-bottom));
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-ui);
  background-color: var(--color-bg-base);
  color: var(--color-text-primary);
  overflow: hidden;
  position: fixed; /* prevent rubber banding scroll in iOS browser chrome */
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* Background Glowing Orbs */
.glow-orb {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
  animation: orbFloat 15s ease-in-out infinite alternate;
}

.glow-1 {
  top: -50px;
  left: -50px;
  background: var(--color-primary);
}

.glow-2 {
  bottom: 50px;
  right: -50px;
  background: var(--color-income);
  animation-duration: 20s;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 30px) scale(1.15); }
}

/* Main Container */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  width: 100%;
  max-width: 500px; /* limits width on ipad/desktop for phone view mock */
  margin: 0 auto;
  position: relative;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  border-left: 1px solid rgba(255, 255, 255, 0.03);
  border-right: 1px solid rgba(255, 255, 255, 0.03);
}

/* Header */
.app-header {
  padding: var(--safe-area-top) 20px 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 10;
}

.app-header h1 {
  font-family: var(--font-numeric);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 30%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-subtitle {
  font-size: 11px;
  color: var(--color-text-muted);
  display: block;
  margin-top: -2px;
  font-weight: 500;
}

.month-selector {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  color: var(--color-text-primary);
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  font-family: var(--font-ui);
  cursor: pointer;
  transition: background-color 0.2s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.month-selector:focus {
  border-color: var(--color-primary);
}

/* App Content viewport */
.app-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 20px 100px 20px; /* leaves space for bottom tab bar */
  position: relative;
}

/* Screen visibility states */
.screen {
  display: none;
  animation: screenFadeIn 0.3s ease-out forwards;
}

.screen.active {
  display: block;
}

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

/* DASHBOARD CARD */
.balance-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.75) 100%);
  border: 1px solid var(--color-card-border);
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 16px;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.balance-card-content {
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease;
}
.balance-card-content.slide-out-left {
  transform: translateX(-60px);
  opacity: 0;
}
.balance-card-content.slide-out-right {
  transform: translateX(60px);
  opacity: 0;
}
.balance-card-content.slide-in-left {
  transform: translateX(60px);
  opacity: 0;
  transition: none !important;
}
.balance-card-content.slide-in-right {
  transform: translateX(-60px);
  opacity: 0;
  transition: none !important;
}

.balance-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.03), transparent);
  pointer-events: none;
}

.balance-label {
  font-size: 13px;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 4px;
}

.balance-value {
  font-family: var(--font-numeric);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--color-text-primary);
  margin-bottom: 24px;
}

.stats-row {
  display: flex;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
}

.stat-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-item.income .stat-icon-wrapper {
  background: rgba(16, 185, 129, 0.12);
  color: var(--color-income);
  border: 1px solid rgba(16, 185, 129, 0.1);
}

.stat-item.expense .stat-icon-wrapper {
  background: rgba(244, 63, 94, 0.12);
  color: var(--color-expense);
  border: 1px solid rgba(244, 63, 94, 0.1);
}

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

.stat-data {
  display: flex;
  flex-direction: column;
}

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

.stat-val {
  font-family: var(--font-numeric);
  font-size: 16px;
  font-weight: 600;
}

.stat-item.income .stat-val {
  color: var(--color-income);
}

.stat-item.expense .stat-val {
  color: var(--color-expense);
}

/* SAVINGS RATE BAR CARD */
.quick-overview-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 18px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.overview-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.overview-label {
  font-size: 11px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.overview-value {
  font-family: var(--font-numeric);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.savings-progress-container {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin: 2px 0;
}

.savings-progress-bar {
  height: 100%;
  background: linear-gradient(95deg, var(--color-primary), var(--color-income));
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.vertical-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.08);
}

/* CHART SECTION HEADER */
.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-title-row h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.chart-tabs {
  background: rgba(255,255,255,0.04);
  padding: 3px;
  border-radius: 12px;
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.chart-tab-btn {
  background: transparent;
  border: none;
  outline: none;
  color: var(--color-text-secondary);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s;
}

.chart-tab-btn.active {
  background: var(--color-card-bg);
  color: var(--color-text-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  border: 1px solid var(--color-card-border);
}

/* CHART CONTAINER */
.chart-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 24px;
  overflow: hidden;
}

.chart-wrapper {
  width: 100%;
  height: 230px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-wrapper.hidden {
  display: none;
}

canvas {
  width: 100% !important;
  height: 100% !important;
}

.no-data-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  gap: 12px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.2);
  border-radius: 16px;
  pointer-events: none;
}

.placeholder-icon {
  width: 48px;
  height: 48px;
  stroke-width: 1.5;
  color: rgba(255, 255, 255, 0.15);
}

.no-data-placeholder p {
  font-size: 13px;
  font-weight: 500;
}

/* SCREEN HEADERS */
.screen-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.screen-header-row h3 {
  font-size: 18px;
  font-weight: 700;
}

/* TRANSACTIONS SCREEN SEARCH & FILTERS */
.search-filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.search-input-wrapper {
  flex: 1;
  position: relative;
}

.search-input-wrapper input {
  width: 100%;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 14px;
  padding: 12px 14px 12px 42px;
  color: var(--color-text-primary);
  font-family: var(--font-ui);
  font-size: 15px; /* prevent iOS auto-zoom */
  outline: none;
  transition: all 0.2s;
}

.search-input-wrapper input:focus {
  border-color: var(--color-primary);
  background: rgba(30, 41, 59, 0.6);
  box-shadow: 0 0 10px var(--color-primary-glow);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-text-secondary);
  pointer-events: none;
}

.btn-icon-secondary {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  color: var(--color-text-primary);
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon-secondary:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.05);
}

/* Filter Chips */
.filters-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  align-items: center;
}

.filters-chips-row.hidden {
  display: none;
}

.filter-chip {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #c084fc;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: popIn 0.2s ease-out;
}

@keyframes popIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.filter-chip svg {
  width: 12px;
  height: 12px;
  cursor: pointer;
}

.clear-filters-link {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  text-decoration: underline;
}

/* TRANSACTIONS LIST */
.transactions-list-container {
  overflow-y: visible;
}

.transactions-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.day-header {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-left: 4px;
}

.day-transactions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.transaction-card-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: transparent; /* No red leak by default */
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1), margin-bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, background-color 0.2s;
}

/* Background is only red when swiping or swiped open */
.transaction-card-wrapper.swipe-active,
.transaction-card-wrapper.swiped {
  background: #7f1d1d;
}

.swipe-delete-btn {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 0; /* Dynamic width */
  overflow: hidden;
  background: var(--color-expense);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Align contents to the right */
  z-index: 1;
  cursor: pointer;
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
  outline: none;
  transition: width 0.25s cubic-bezier(0.1, 0.8, 0.2, 1), background-color 0.2s;
}

.swipe-delete-btn.swipe-active {
  transition: none !important;
}

.swipe-delete-btn.past-threshold {
  background: #b91c1c; /* Darker red when past threshold */
}

.swipe-delete-btn svg {
  width: 20px;
  height: 20px;
  margin-right: 28px; /* Fixed distance from right edge */
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.swipe-delete-btn.past-threshold svg {
  transform: scale(1.3); /* Gmail scale feedback */
}

.transaction-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  z-index: 2; /* sits above delete button */
  transform: translate3d(0, 0, 0);
  transition: transform 0.25s cubic-bezier(0.1, 0.8, 0.2, 1);
  user-select: none;
  -webkit-user-select: none;
}

.transaction-card.swipe-active {
  transition: none; /* disable transition while dragging */
}


.tx-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0; /* truncate note text if too long */
}

.tx-cat-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Dynamic category colors set dynamically in JS or fallbacks */
.tx-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tx-note {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tx-category-name {
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-top: 1px;
}

.tx-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.tx-amount-val {
  font-family: var(--font-numeric);
  font-size: 15px;
  font-weight: 700;
}

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

.tx-amount-val.expense {
  color: var(--color-text-primary);
}

.tx-delete-btn {
  background: transparent;
  border: none;
  outline: none;
  color: var(--color-text-muted);
  opacity: 0;
  cursor: pointer;
  padding: 4px;
  transition: opacity 0.2s;
}

/* Swipe-to-delete or hover triggers for desktop/mouse */
.transaction-card:hover .tx-delete-btn,
.transaction-card:active .tx-delete-btn {
  opacity: 1;
}

/* BUDGETS SCREEN */
.btn-primary-sm {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px var(--color-primary-glow);
}

.btn-primary-sm:active {
  transform: scale(0.95);
}

.budgets-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.budget-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 18px;
  padding: 16px;
  cursor: pointer;
}

.budget-card:active {
  background: rgba(255,255,255,0.02);
}

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

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

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

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

.budget-limits-vals {
  text-align: right;
  font-family: var(--font-numeric);
}

.budget-spent {
  font-size: 14px;
  font-weight: 700;
}

.budget-limit-total {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.budget-bar-container {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.budget-bar-fill {
  height: 100%;
  border-radius: 3px;
  width: 0%;
  transition: width 0.6s cubic-bezier(0.1, 0.8, 0.2, 1), background-color 0.3s;
}

.budget-bar-fill.normal {
  background: linear-gradient(90deg, var(--color-primary), var(--color-income));
}

.budget-bar-fill.warning {
  background: linear-gradient(90deg, var(--color-warning), #ea580c);
}

.budget-bar-fill.danger {
  background: linear-gradient(90deg, var(--color-expense), #be123c);
}

.budget-footer-text {
  font-size: 10px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* SETTINGS GROUP */
.settings-group {
  margin-bottom: 24px;
}

.settings-group h3 {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  padding-left: 6px;
}

.settings-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 18px;
  overflow: hidden;
}

.setting-item {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s;
  color: var(--color-text-primary);
}

.settings-card .setting-item:active {
  background: rgba(255,255,255,0.03);
}

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

.setting-icon {
  width: 20px;
  height: 20px;
}

.text-cyan { color: var(--color-info); }
.text-purple { color: var(--color-primary); }
.text-emerald { color: var(--color-income); }
.text-blue { color: #3b82f6; }
.text-amber { color: var(--color-warning); }
.text-rose { color: var(--color-expense); }

.setting-text {
  display: flex;
  flex-direction: column;
}

.setting-title {
  font-size: 14px;
  font-weight: 600;
}

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

.chevron-arrow {
  width: 16px;
  height: 16px;
  color: var(--color-text-muted);
}

.setting-select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--color-text-primary);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  font-family: var(--font-ui);
}

.setting-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin-left: 50px; /* aligns with item start */
}

.text-danger .setting-title {
  color: var(--color-expense);
}

.settings-footer {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 11px;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* APP NAVBAR */
.app-navbar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border-top: 1px solid var(--color-card-border);
  backdrop-filter: blur(20px);
  padding: 10px 16px var(--safe-area-bottom) 16px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
}

.nav-item {
  background: transparent;
  border: none;
  outline: none;
  color: var(--color-text-muted);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 48px;
  flex: 1;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-item svg {
  width: 24px;
  height: 24px;
  transition: transform 0.2s, color 0.2s;
}

.nav-item span {
  display: none; /* don't show the text labels */
}

.nav-item.active {
  color: var(--color-primary);
}

.nav-item.active svg {
  transform: scale(1.15); /* Scale active icon instead of shifting */
  color: var(--color-primary);
}

/* Floating Action Button (FAB) */
.nav-fab-wrapper {
  position: relative;
  width: 60px;
  height: 60px;
  margin-top: -32px; /* lifts it out of the bottom bar */
  z-index: 110;
}

.nav-fab {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border: 2px solid var(--color-bg-base);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px var(--color-primary-glow);
  transition: all 0.25s cubic-bezier(0.1, 0.8, 0.2, 1);
  outline: none;
}

.nav-fab svg {
  width: 28px;
  height: 28px;
  transition: transform 0.2s;
}

.nav-fab:active {
  transform: scale(0.9) rotate(45deg);
  box-shadow: 0 4px 10px var(--color-primary-glow);
}

/* MODALS LAYOUT */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  width: 100%;
  max-width: 500px;
  max-height: 94vh; /* takes up almost full height on small screens */
  background: #0f172a; /* Solid deep slate background for iOS look */
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 20px calc(12px + env(safe-area-inset-bottom)) 20px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.15, 0.85, 0.35, 1);
  display: flex;
  flex-direction: column;
}

.modal-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}

/* Custom scroll style for scroll area */
.modal-scroll-area::-webkit-scrollbar {
  width: 4px;
}
.modal-scroll-area::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

.modal-fixed-bottom {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 10px;
  flex-shrink: 0;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-header-indicator {
  width: 36px;
  height: 5px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
  margin: 0 auto 16px auto;
  flex-shrink: 0;
}

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

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.btn-close-modal {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.04);
  color: var(--color-text-secondary);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-close-modal svg {
  width: 16px;
  height: 16px;
}

/* TYPE SELECTOR SEGMENTS */
.segmented-control {
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 14px;
  display: flex;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.02);
}

.segment-btn {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 0;
  border-radius: 11px;
  cursor: pointer;
  transition: all 0.25s;
}

.segment-btn.active {
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Segment Active Colors dynamically styles */
#type-expense.segment-btn.active {
  background: var(--color-expense);
}

#type-income.segment-btn.active {
  background: var(--color-income);
}

/* FORM FIELDS */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

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

.form-row {
  display: flex;
  gap: 14px;
}

.flex-1 { flex: 1; }

.form-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-left: 2px;
}

.amount-group {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.amount-symbol {
  font-family: var(--font-numeric);
  font-size: 38px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.amount-display-value {
  color: var(--color-text-primary);
  font-family: var(--font-numeric);
  font-size: 38px;
  font-weight: 700;
  min-width: 100px;
  text-align: left;
  padding: 4px 8px;
  letter-spacing: -0.5px;
}

/* Custom Numpad Grid */
.numpad-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  padding: 8px 0 4px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.numpad-row {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.numpad-key {
  flex: 1;
  max-width: 90px;
  height: 46px; /* Reduced height to save space */
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  color: var(--color-text-primary);
  font-family: var(--font-numeric);
  font-size: 19px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

.numpad-key:active {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--color-primary);
  transform: scale(0.95);
}

.numpad-key.delete-key {
  color: var(--color-text-secondary);
}

.numpad-key.delete-key svg {
  width: 20px;
  height: 20px;
  stroke-width: 2px;
}

.numpad-operators-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 8px;
  width: 100%;
}

.numpad-operator {
  flex: 1;
  max-width: 54px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--color-primary);
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

.numpad-operator:active {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--color-primary);
  transform: scale(0.95);
}

.numpad-operator[data-val="="] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

.numpad-operator[data-val="="]:active {
  background: #7c3aed;
}

.amount-preview-value {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-top: 4px;
  font-family: var(--font-numeric);
  opacity: 0.8;
}


.form-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  color: var(--color-text-primary);
  font-family: var(--font-ui);
  font-size: 16px; /* iOS Auto-zoom prevention */
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.08);
}

/* Category Horizontal Scroll Picker */
.category-grid {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  gap: 10px;
  margin-bottom: 4px;
  padding: 4px 2px 10px 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.category-grid::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.category-picker-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  flex-shrink: 0;
  width: 76px; /* Fixed width for horizontal items */
}

.category-picker-item svg {
  width: 20px;
  height: 20px;
}

.category-picker-item span {
  font-size: 10px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.category-picker-item.selected {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.03);
}

/* Active Category Grid border colors based on selection type */
.modal-overlay.active #modal-transaction .category-picker-item.selected {
  border-color: var(--color-primary);
}

/* BUTTONS */
.btn-primary-block {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 15px var(--color-primary-glow);
  margin: 14px auto 0 auto;
  display: block;
  width: auto;
  min-width: 220px;
  text-align: center;
}

.btn-primary-block:active {
  transform: scale(0.98);
}

.modal-buttons-row {
  display: flex;
  gap: 10px;
}

.btn-danger-outline {
  background: transparent;
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: var(--color-expense);
  padding: 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-danger-outline:active {
  background: rgba(244, 63, 94, 0.05);
}

/* CATEGORY MANAGER MODAL STUFF */
.category-manager-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.cat-mgr-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.cat-mgr-tab.active {
  background: var(--color-card-bg);
  color: var(--color-text-primary);
  border: 1px solid var(--color-card-border);
}

.category-add-inline {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.category-add-inline input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--color-text-primary);
  font-family: var(--font-ui);
  font-size: 14px;
  outline: none;
}

.btn-icon-primary {
  background: var(--color-primary);
  border: none;
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.category-manager-list {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cat-mgr-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cat-mgr-item span {
  font-size: 13px;
  font-weight: 600;
}

.btn-delete-cat {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 4px;
}

.btn-delete-cat:hover {
  color: var(--color-expense);
}

/* FILTER FORM DYNAMICS */
.filter-options-row {
  display: flex;
  gap: 8px;
}

.filter-opt-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text-secondary);
  padding: 10px 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-opt-btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* Utility Helpers */
.hidden { display: none !important; }
.padding-left-symbol { padding-left: 28px; }

.input-symbol-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-symbol {
  position: absolute;
  left: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

/* Swipe actions & quick transition details */
.transaction-card {
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

/* Color Picker & Icon Picker styles */
.color-picker-row {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.color-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
  position: relative;
}

.color-dot.active {
  border-color: #ffffff;
  transform: scale(1.15);
  box-shadow: 0 0 10px rgba(255,255,255,0.4);
}

.icon-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  max-height: 130px;
  overflow-y: auto;
  background: rgba(0,0,0,0.15);
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.04);
  margin-top: 4px;
  -webkit-overflow-scrolling: touch;
}

.icon-picker-item {
  aspect-ratio: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: all 0.15s;
}

.icon-picker-item svg {
  width: 18px;
  height: 18px;
  stroke-width: 2px;
}

.icon-picker-item:active {
  transform: scale(0.9);
}

.icon-picker-item.selected {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  box-shadow: 0 0 8px var(--color-primary-glow);
}

/* Sync status badge styling */
.sync-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.sync-badge.connected {
  background: rgba(16, 185, 129, 0.12);
  color: var(--color-income);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.sync-badge.syncing {
  background: rgba(139, 92, 246, 0.12);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.sync-badge.disconnected {
  background: rgba(255,255,255,0.06);
  color: var(--color-text-secondary);
  border: 1px solid rgba(255,255,255,0.04);
}

.sync-badge.error {
  background: rgba(244, 63, 94, 0.12);
  color: var(--color-expense);
  border: 1px solid rgba(244, 63, 94, 0.2);
}

/* CALENDAR HEATMAP WIDGET */
.calendar-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 2px;
}

.calendar-tab-btn {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.calendar-tab-btn.active {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

.calendar-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  padding: 16px;
  margin-top: 12px;
}

.calendar-header-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 8px;
}

.calendar-header-row span {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-day {
  aspect-ratio: 1;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px;
  transition: all 0.2s;
  box-sizing: border-box;
}

.calendar-day.empty {
  border: none !important;
  background: transparent !important;
}

.cal-day-num {
  font-size: 9px;
  font-family: var(--font-numeric);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
}

.cal-day-amount {
  font-size: 8px;
  font-family: var(--font-numeric);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Recurring Manager styles */
.recurring-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 12px 16px;
  transition: all 0.2s ease;
}

.recurring-card:active {
  transform: scale(0.98);
}

.recurring-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.recurring-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recurring-card-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.recurring-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
}

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

.recurring-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.recurring-card-amount {
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-numeric);
}

.recurring-card-amount.expense {
  color: var(--color-rose);
}

.recurring-card-amount.income {
  color: var(--color-emerald);
}

.btn-delete-recurring {
  background: transparent;
  border: none;
  color: var(--color-rose);
  opacity: 0.7;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-delete-recurring:hover {
  opacity: 1;
  background: rgba(244, 63, 94, 0.1);
}

.recurring-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: 6px;
  color: var(--color-primary);
  vertical-align: middle;
}

.rec-type-btn {
  border: none;
  border-radius: 8px;
  padding: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  color: var(--color-text-secondary);
  background: transparent;
  transition: all 0.2s ease;
}

.rec-type-btn.active {
  color: #fff;
  background: var(--color-primary);
}

/* CHART SWIPE TRANSITIONS */
.chart-wrapper {
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease;
}
.chart-wrapper.slide-out-left {
  transform: translateX(-60px);
  opacity: 0;
}
.chart-wrapper.slide-out-right {
  transform: translateX(60px);
  opacity: 0;
}
.chart-wrapper.slide-in-left {
  transform: translateX(60px);
  opacity: 0;
  transition: none !important;
}
.chart-wrapper.slide-in-right {
  transform: translateX(-60px);
  opacity: 0;
  transition: none !important;
}

/* NOTE INPUT AUTOCOMPLETE */
.autocomplete-suggestions {
  position: absolute;
  background: rgba(30, 41, 59, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-card-border);
  border-radius: 12px;
  max-height: 180px;
  overflow-y: auto;
  z-index: 200; /* Float above the fixed bottom numpad */
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

.autocomplete-suggestion-item {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--color-text-primary);
  cursor: pointer;
  text-align: left;
  transition: background-color 0.15s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.autocomplete-suggestion-item:hover,
.autocomplete-suggestion-item:active {
  background-color: rgba(255, 255, 255, 0.08);
}

/* ANNUAL ANALYTICS */
.annual-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 32px;
  backdrop-filter: blur(16px);
}

.annual-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.annual-stat-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.annual-stat-title {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

.annual-stat-val {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.annual-stat-box.income .annual-stat-val {
  color: #10b981;
}

.annual-stat-box.expense .annual-stat-val {
  color: #f43f5e;
}

.annual-stat-box.savings .annual-stat-val {
  color: #3b82f6;
}

.annual-savings-rate-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  margin-top: 4px;
}

.annual-savings-rate-badge.positive {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.annual-savings-rate-badge.negative {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
}

.annual-categories-section h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 12px;
  text-align: left;
}

.annual-categories-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.annual-category-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.annual-cat-info {
  display: flex;
  align-items: center;
  font-size: 12px;
}

.annual-cat-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}

.annual-cat-name {
  font-weight: 500;
  color: var(--color-text-primary);
  text-align: left;
  flex: 1;
}

.annual-cat-amount {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-right: 10px;
}

.annual-cat-percent {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.annual-cat-progress-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.annual-cat-progress-bar {
  height: 100%;
  border-radius: 3px;
}

.section-subtitle-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  background: var(--color-card-border);
  color: var(--color-text-primary);
  padding: 2px 8px;
  border-radius: 20px;
}

/* ANNUAL TABS & TRANSITIONS */
.annual-tab-btn {
  background: transparent;
  border: none;
  outline: none;
  color: var(--color-text-secondary);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s;
}

.annual-tab-btn.active {
  background: var(--color-card-bg);
  color: var(--color-text-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  border: 1px solid var(--color-card-border);
}

.annual-content-wrapper {
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease;
}

.annual-content-wrapper.hidden {
  display: none !important;
}
