:root {
  --bg-primary: #0a0f1a;
  --bg-secondary: #111827;
  --bg-card: #1a2234;
  --bg-card-hover: #1f2a3f;
  --accent: #34d399;
  --accent-dim: #059669;
  --accent-glow: rgba(52, 211, 153, 0.15);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --danger: #f87171;
  --warning: #fbbf24;
  --border: rgba(148, 163, 184, 0.08);
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60vh;
  background: radial-gradient(ellipse at 30% 0%, rgba(52, 211, 153, 0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 0%, rgba(59, 130, 246, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

#root {
  position: relative;
  z-index: 1;
}

.mono {
  font-family: 'DM Mono', monospace;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.2s ease;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(148, 163, 184, 0.12);
}

.balance-glow {
  text-shadow: 0 0 40px rgba(52, 211, 153, 0.3);
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
  opacity: 0;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.slide-up {
  animation: slideUp 0.5s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}

.transaction-row {
  transition: all 0.15s ease;
  border-bottom: 1px solid var(--border);
}

.transaction-row:hover {
  background: rgba(52, 211, 153, 0.03);
}

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

.tab-active {
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: 600;
}

.tab-inactive {
  color: var(--text-secondary);
  background: transparent;
}

.tab-inactive:hover {
  color: var(--text-primary);
  background: rgba(148, 163, 184, 0.06);
}

.sparkline-container {
  position: relative;
}

.input-field {
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
  width: 100%;
}

.input-field:focus {
  border-color: var(--accent);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: 600;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  transition: all 0.15s ease;
}

.btn-primary:hover {
  background: #4ade80;
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-secondary);
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 20px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-primary);
}

.progress-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(148, 163, 184, 0.1);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s ease;
}

.chart-bar {
  transition: height 0.5s ease;
  border-radius: 4px 4px 0 0;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.15);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.25);
}

@media (max-width: 768px) {
  .card {
    border-radius: 12px;
  }
}