/* ============================================
   MODERN FINANCE APP - Mobile First Design
   ============================================ */

:root {
  /* Colors - Modern Dark Theme */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a24;
  --bg-card-hover: #22222e;
  --bg-elevated: #252532;
  
  /* Accent Colors */
  --accent-primary: #6366f1;
  --accent-primary-light: #818cf8;
  --accent-secondary: #22d3ee;
  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  --accent-danger: #ef4444;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  --gradient-success: linear-gradient(135deg, #10b981 0%, #22d3ee 100%);
  --gradient-card: linear-gradient(145deg, #1a1a24 0%, #12121a 100%);
  
  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Borders & Shadows */
  --border-color: rgba(255, 255, 255, 0.06);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Typography */
  --font-sans: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;
  
  /* Safe areas for iPhone */
  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
  --safe-left: env(safe-area-inset-left);
  --safe-right: env(safe-area-inset-right);
  
  /* Nav height */
  --nav-height: 70px;
}

/* ============================================
   RESET & BASE
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 20px);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: 16px; /* Prevents zoom on iOS */
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.page-content {
  padding-top: var(--space-md);
  padding-bottom: var(--space-xl);
  min-height: calc(100vh - var(--nav-height));
  min-height: calc(100dvh - var(--nav-height));
}

/* ============================================
   HEADER - Minimal & Clean
   ============================================ */

.header {
  background: transparent;
  padding: calc(var(--safe-top) + var(--space-lg)) var(--space-md) var(--space-md);
  position: relative;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.75rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header__title span:first-child {
  font-size: 1.5rem;
  -webkit-text-fill-color: initial;
}

.logout-btn {
  font-size: 1.25rem;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
  text-decoration: none;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* ============================================
   BOTTOM NAVIGATION - iOS Style
   ============================================ */

.nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  top: auto;
  background: rgba(18, 18, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  padding-bottom: var(--safe-bottom);
  z-index: 9999;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.nav__list {
  display: flex;
  justify-content: space-around;
  align-items: center;
  list-style: none;
  height: var(--nav-height);
  max-width: 500px;
  margin: 0 auto;
}

.nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--space-sm) var(--space-md);
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  position: relative;
}

.nav__link span:first-child {
  font-size: 1.5rem;
  transition: transform 0.2s ease;
}

.nav__link.active {
  color: var(--accent-primary-light);
}

.nav__link.active span:first-child {
  transform: scale(1.1);
}

.nav__badge {
  position: absolute;
  top: 2px;
  right: 8px;
  background: var(--accent-danger);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* ============================================
   CARDS - Glassmorphism Style
   ============================================ */

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  margin-bottom: var(--space-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card__header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-color);
}

.card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.card__body {
  padding: var(--space-lg);
}

.card--success {
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.1) 0%, var(--bg-card) 100%);
}

/* ============================================
   STATS GRID - Dashboard Stats
   ============================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.stat-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0.5;
}

.stat-card__value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-card__value--warning {
  color: var(--accent-warning);
}

.stat-card__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--space-xs);
}

/* ============================================
   EXPENSE LIST ITEMS
   ============================================ */

.expense-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-color);
  transition: background 0.15s ease;
  cursor: pointer;
}

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

.expense-item:hover,
.expense-item:active {
  background: var(--bg-card-hover);
}

.expense-item__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.expense-item__content {
  flex: 1;
  min-width: 0;
}

.expense-item__merchant {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.expense-item__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: 2px;
}

.expense-item__amount {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.expense-item__amount--negative {
  color: var(--accent-danger);
}

/* ============================================
   MONTH SELECTOR
   ============================================ */

.month-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
  margin-bottom: var(--space-md);
}

.month-selector__btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.month-selector__btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.month-selector__current {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 150px;
  text-align: center;
}

/* ============================================
   CHART BARS
   ============================================ */

.chart-bar {
  margin-bottom: var(--space-md);
}

.chart-bar:last-child {
  margin-bottom: 0;
}

.chart-bar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xs);
}

.chart-bar__label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.chart-bar__value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.chart-bar__track {
  height: 8px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.chart-bar__fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s ease;
  min-height: 48px;
}

.btn--primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-sm), 0 0 20px rgba(99, 102, 241, 0.3);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), 0 0 30px rgba(99, 102, 241, 0.4);
}

.btn--secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn--secondary:hover {
  background: var(--bg-elevated);
}

.btn--danger {
  background: var(--accent-danger);
  color: white;
}

.btn--success {
  background: var(--gradient-success);
  color: white;
}

.btn--block {
  width: 100%;
}

.btn--sm {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
  min-height: 36px;
}

.btn--ghost {
  background: transparent;
  color: var(--accent-primary-light);
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-select {
  width: 100%;
  padding: var(--space-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-input::placeholder {
  color: var(--text-muted);
}

textarea.form-input {
  min-height: 100px;
  resize: vertical;
}

/* ============================================
   BADGES & TAGS
   ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge--success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-success);
}

.badge--warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-warning);
}

.badge--danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-danger);
}

.badge--primary {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-primary-light);
}

/* ============================================
   EMPTY STATES
   ============================================ */

.empty-state {
  text-align: center;
  padding: var(--space-2xl);
}

.empty-state__icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.empty-state__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.empty-state__text {
  color: var(--text-muted);
}

/* ============================================
   ALERTS & MESSAGES
   ============================================ */

.alert {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.alert--success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-success);
}

.alert--error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--accent-danger);
}

.alert--warning {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent-warning);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--accent-success); }
.text-warning { color: var(--accent-warning); }
.text-danger { color: var(--accent-danger); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-1 { gap: var(--space-xs); }
.gap-2 { gap: var(--space-sm); }
.gap-3 { gap: var(--space-md); }
.gap-4 { gap: var(--space-lg); }

.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }

.p-3 { padding: var(--space-md); }
.p-4 { padding: var(--space-lg); }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.hidden { display: none; }

/* ============================================
   ANIMATIONS
   ============================================ */

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-fadeIn {
  animation: fadeIn 0.3s ease forwards;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-card-hover) 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ============================================
   BIG TOTAL DISPLAY
   ============================================ */

.big-total {
  text-align: center;
  padding: var(--space-xl) 0;
  margin-bottom: var(--space-lg);
}

.big-total__amount {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.big-total__label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--space-sm);
}

/* ============================================
   DETAIL PAGE
   ============================================ */

.detail-header {
  text-align: center;
  padding: var(--space-xl) 0;
  margin-bottom: var(--space-lg);
}

.detail-header__amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.detail-header__merchant {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: var(--space-sm);
}

.detail-header__date {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

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

.detail-row:last-child {
  border-bottom: none;
}

.detail-row__label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.detail-row__value {
  color: var(--text-primary);
  font-weight: 500;
}

/* ============================================
   QUICK AMOUNT GRID
   ============================================ */

.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.amount-btn {
  padding: var(--space-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 600;
  transition: all 0.15s ease;
}

.amount-btn:hover,
.amount-btn:active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

/* ============================================
   SYNC STATUS
   ============================================ */

.sync-status {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.sync-status__indicator {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--accent-success);
  box-shadow: 0 0 10px var(--accent-success);
}

.sync-status__indicator--error {
  background: var(--accent-danger);
  box-shadow: 0 0 10px var(--accent-danger);
}

.sync-status__text {
  flex: 1;
}

.sync-status__title {
  font-weight: 600;
  color: var(--text-primary);
}

.sync-status__subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ============================================
   CONFIDENCE INDICATOR
   ============================================ */

.confidence {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.confidence__bar {
  flex: 1;
  height: 4px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.confidence__fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.confidence__fill--high {
  background: var(--accent-success);
}

.confidence__fill--medium {
  background: var(--accent-warning);
}

.confidence__fill--low {
  background: var(--accent-danger);
}

/* ============================================
   PULL TO REFRESH INDICATOR
   ============================================ */

.ptr-indicator {
  display: none;
  justify-content: center;
  padding: var(--space-md);
  color: var(--text-muted);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

/* Mobile: Fixed bottom nav - prevents rubber band scrolling effect */
@media (max-width: 767px) {
  html {
    height: 100%;
    overflow: hidden;
  }
  
  body {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
    padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 20px) !important;
  }
  
  .nav {
    position: fixed !important;
    bottom: 0 !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 700px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .nav {
    top: 0;
    bottom: auto;
    border-top: none;
    border-bottom: 1px solid var(--border-color);
    padding-top: var(--safe-top);
    padding-bottom: 0;
  }
  
  .nav__list {
    justify-content: center;
    gap: var(--space-xl);
  }
  
  .nav__link {
    flex-direction: row;
    font-size: 0.875rem;
  }
  
  .page-content {
    padding-top: calc(var(--nav-height) + var(--space-lg));
    padding-bottom: var(--space-xl);
  }
  
  body {
    padding-bottom: 0;
  }
}

/* ============================================
   DARK MODE SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ============================================
   SELECTION
   ============================================ */

::selection {
  background: var(--accent-primary);
  color: white;
}

/* ============================================
   TOUCH FEEDBACK
   ============================================ */

@media (hover: none) {
  .expense-item:active,
  .btn:active,
  .card:active {
    transform: scale(0.98);
  }
}

/* ============================================
   FILTER CHIPS
   ============================================ */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  margin-bottom: var(--space-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s ease;
}

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

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

/* ============================================
   IMPROVED CONTRAST COLORS
   ============================================ */

/* Override text colors for better readability */
.expense-item__merchant {
  color: #ffffff;
}

.expense-item__amount {
  color: #ffffff;
}

.stat-card__value {
  color: #ffffff;
}

.month-selector__current {
  color: #ffffff;
}

.card__title {
  color: #e2e8f0;
}

.chart-bar__label {
  color: #cbd5e1;
}

.chart-bar__value {
  color: #ffffff;
}

.btn--primary {
  color: #ffffff;
}

.detail-header__amount {
  color: #ffffff;
}

.detail-header__merchant {
  color: #e2e8f0;
}

.detail-row__value {
  color: #ffffff;
}

/* Better muted text */
.text-muted,
.expense-item__meta,
.stat-card__label,
.detail-header__date,
.detail-row__label {
  color: #94a3b8;
}

/* Navigation improvements */
.nav__link {
  color: #94a3b8;
}

.nav__link.active {
  color: #a5b4fc;
}

.nav__link span:first-child {
  filter: brightness(1.1);
}

/* ============================================
   RECURRING EXPENSES
   ============================================ */

.recurring-category {
  margin-bottom: var(--space-lg);
}

.recurring-category__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-card);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border-bottom: 1px solid var(--border-color);
}

.recurring-category__name {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.recurring-category__total {
  font-weight: 600;
  color: var(--accent-primary-light);
  font-size: 0.9rem;
}

.recurring-list {
  background: var(--bg-card);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  overflow: hidden;
}

.recurring-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s ease;
  text-decoration: none;
  color: inherit;
}

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

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

.recurring-item__main {
  flex: 1;
  min-width: 0;
}

.recurring-item__name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.recurring-item__details {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.recurring-item__amount {
  text-align: right;
  margin-left: var(--space-md);
}

.recurring-item__value {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.recurring-item__monthly {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Summary Cards */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.summary-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
}

.summary-card__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.summary-card__value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Filter Chips */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.filter-chip {
  padding: var(--space-xs) var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all 0.2s ease;
  text-decoration: none;
}

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

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

/* Page Header with Button */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

/* Form Styles */
.form {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-select {
  width: 100%;
  padding: var(--space-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-select {
  cursor: pointer;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
}

.form-checkbox input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent-primary);
}

.form-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--gradient-primary);
  color: white;
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.btn--danger {
  background: var(--accent-danger);
  color: white;
}

.btn--danger:hover {
  background: #dc2626;
}

.btn--large {
  padding: var(--space-md) var(--space-xl);
  font-size: 1rem;
}

/* Back Link */
.back-link {
  display: inline-block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
  text-decoration: none;
}

.back-link:hover {
  color: var(--text-primary);
}

/* Alert */
.alert {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.alert--error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--accent-danger);
  color: var(--accent-danger);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--space-2xl);
}

.empty-state__icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.empty-state__text {
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

/* ============================================
   YEARLY OVERVIEW
   ============================================ */

/* Year Navigation */
.year-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.year-nav__current {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.year-nav__btn {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.year-nav__btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

/* Yearly Stats */
.yearly-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.stat-card--large {
  grid-column: 1 / -1;
  background: var(--gradient-primary);
  border: none;
}

.stat-card--large .stat-card__value {
  font-size: 2.5rem;
}

.stat-card--large .stat-card__label {
  color: rgba(255, 255, 255, 0.8);
}

/* Year Comparison */
.year-comparison {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
  text-align: center;
}

.year-comparison__label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.year-comparison__value {
  font-size: 1.5rem;
  font-weight: 700;
}

.year-comparison__value.positive {
  color: var(--accent-success);
}

.year-comparison__value.negative {
  color: var(--accent-danger);
}

.year-comparison__prev {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

/* Section */
.section {
  margin-bottom: var(--space-xl);
}

.section__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

/* Bar Chart */
.chart-container {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  overflow-x: auto;
}

.bar-chart {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 200px;
  gap: var(--space-xs);
  min-width: 100%;
}

.bar-chart__column {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 40px;
}

.bar-chart__value {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
  height: 20px;
  display: flex;
  align-items: flex-end;
}

.bar-chart__bar-container {
  width: 100%;
  height: 150px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.bar-chart__bar {
  width: 70%;
  max-width: 30px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  min-height: 4px;
  transition: height 0.3s ease;
}

.bar-chart__column.current .bar-chart__bar {
  background: var(--gradient-success);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.bar-chart__column.future .bar-chart__bar {
  background: var(--bg-elevated);
  opacity: 0.3;
}

.bar-chart__label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
  text-transform: uppercase;
}

.bar-chart__column.current .bar-chart__label {
  color: var(--accent-success);
  font-weight: 600;
}

/* Chart Legend */
.chart-legend {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-md);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.chart-legend__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.chart-legend__color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.chart-legend__color.avg {
  background: var(--gradient-primary);
}

.chart-legend__color.current {
  background: var(--gradient-success);
}

/* Monthly Table */
.monthly-table {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.monthly-table__header {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-elevated);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.monthly-table__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--space-md);
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}

.monthly-table__row:last-child {
  border-bottom: none;
}

.monthly-table__row:hover {
  background: var(--bg-card-hover);
}

.monthly-table__row.current {
  background: rgba(16, 185, 129, 0.1);
}

.monthly-table__month {
  font-weight: 500;
}

.monthly-table__amount {
  font-weight: 600;
  color: var(--text-primary);
}

.monthly-table__count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Category List (Yearly) */
.category-list {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

.category-item {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-color);
}

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

.category-item__info {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-xs);
}

.category-item__name {
  font-weight: 500;
  color: var(--text-primary);
}

.category-item__percent {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.category-item__bar-container {
  height: 8px;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-xs);
}

.category-item__bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.category-item__amount {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: right;
}

/* Merchant List */
.merchant-list {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.merchant-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-color);
}

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

.merchant-item__rank {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.merchant-item:nth-child(1) .merchant-item__rank {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #000;
}

.merchant-item:nth-child(2) .merchant-item__rank {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  color: #000;
}

.merchant-item:nth-child(3) .merchant-item__rank {
  background: linear-gradient(135deg, #cd7f32, #a0522d);
  color: #fff;
}

.merchant-item__info {
  flex: 1;
  min-width: 0;
}

.merchant-item__name {
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.merchant-item__count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.merchant-item__amount {
  font-weight: 600;
  color: var(--text-primary);
}

/* Recurring Summary */
.recurring-summary {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  align-items: center;
}

.recurring-summary__item {
  display: flex;
  flex-direction: column;
}

.recurring-summary__label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.recurring-summary__value {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.recurring-summary__link {
  margin-left: auto;
  color: var(--accent-primary-light);
  font-size: 0.9rem;
  text-decoration: none;
}

.recurring-summary__link:hover {
  text-decoration: underline;
}

/* Yearly Link on Dashboard */
.yearly-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.yearly-link:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.yearly-link span:first-child {
  font-size: 1.2rem;
}

.yearly-link span:last-child {
  color: var(--accent-primary-light);
}

/* ============================================
   BANK IMPORT & TRANSACTIONS
   ============================================ */

/* Bank Summary */
.bank-summary {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.bank-summary__card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
}

.bank-summary__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.bank-summary__value {
  font-size: 1.1rem;
  font-weight: 700;
}

.bank-summary__card.income .bank-summary__value {
  color: var(--accent-success);
}

.bank-summary__card.expenses .bank-summary__value {
  color: var(--accent-danger);
}

.bank-summary__card.balance.positive .bank-summary__value {
  color: var(--accent-success);
}

.bank-summary__card.balance.negative .bank-summary__value {
  color: var(--accent-danger);
}

/* Transaction List */
.transaction-list {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.transaction-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: var(--space-md);
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}

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

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

.transaction-item__date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.transaction-item__main {
  min-width: 0;
}

.transaction-item__counterpart {
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.transaction-item__details {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.transaction-item__category {
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
}

.transaction-item__internal {
  background: rgba(99, 102, 241, 0.2);
  color: var(--accent-primary-light);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
}

.transaction-item__amount {
  font-weight: 600;
  font-size: 1rem;
  text-align: right;
  white-space: nowrap;
}

.transaction-item.income .transaction-item__amount {
  color: var(--accent-success);
}

.transaction-item.expense .transaction-item__amount {
  color: var(--text-primary);
}

/* Transaction Detail */
.transaction-detail {
  margin-bottom: var(--space-lg);
}

.transaction-detail__header {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  margin-bottom: var(--space-md);
}

.transaction-detail__header.income {
  border-left: 4px solid var(--accent-success);
}

.transaction-detail__header.expense {
  border-left: 4px solid var(--accent-danger);
}

.transaction-detail__amount {
  font-size: 2rem;
  font-weight: 700;
}

.transaction-detail__header.income .transaction-detail__amount {
  color: var(--accent-success);
}

.transaction-detail__header.expense .transaction-detail__amount {
  color: var(--text-primary);
}

.transaction-detail__date {
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

.transaction-detail__info {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

/* Category Pills */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.category-pill {
  background: var(--bg-card);
  border-radius: var(--radius-full);
  padding: var(--space-sm) var(--space-md);
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.category-pill__name {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.category-pill__value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Import Info */
.import-info {
  display: flex;
  gap: var(--space-lg);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.import-info__icon {
  font-size: 2.5rem;
}

.import-info__text {
  flex: 1;
}

.import-info__text p {
  margin: 0 0 var(--space-sm);
  color: var(--text-secondary);
}

.import-info__text ul {
  margin: 0;
  padding-left: var(--space-lg);
  color: var(--text-muted);
}

.import-info__text li {
  margin-bottom: var(--space-xs);
}

/* File Upload */
.file-upload {
  position: relative;
}

.file-upload__input {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
}

.file-upload__dropzone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  transition: all 0.2s ease;
}

.file-upload__input:hover + .file-upload__dropzone,
.file-upload__input:focus + .file-upload__dropzone {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.05);
}

.file-upload__icon {
  font-size: 2rem;
  display: block;
  margin-bottom: var(--space-sm);
}

.file-upload__text {
  display: block;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.file-upload__hint {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.file-upload__preview {
  display: none;
  margin-top: var(--space-md);
}

.file-preview__item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--bg-elevated);
  padding: var(--space-md);
  border-radius: var(--radius-md);
}

.file-preview__icon {
  font-size: 1.5rem;
}

.file-preview__name {
  flex: 1;
  font-weight: 500;
}

.file-preview__size {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Import Note */
.import-note {
  background: rgba(99, 102, 241, 0.1);
  border-left: 3px solid var(--accent-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-md);
  margin-top: var(--space-lg);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Button Spinner */
.btn__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn__icon {
  font-size: 1.1rem;
}

/* Success Page */
.success-page {
  text-align: center;
  padding: var(--space-2xl) 0;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
}

.success-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-xl);
}

.success-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.success-stat {
  text-align: center;
}

.success-stat__value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-success);
}

.success-stat__label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.success-file {
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

.btn--secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.btn--secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
}

/* Import List */
.import-list {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.import-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
}

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

.import-item__file {
  color: var(--text-primary);
  font-weight: 500;
}

.import-item__count {
  color: var(--text-muted);
}

.import-item__date {
  color: var(--text-muted);
}
