:root {
  --bg: #1E1E1E;
  --bg-card: rgba(40, 40, 40, 0.6);
  --bg-card-hover: rgba(51, 51, 51, 0.8);
  --accent: #3B82F6;
  --accent-jup: #3B82F6;
  --accent-bybit: #FFC107;
  --accent-muted: #8B7CF6;
  --text: #f5f5f5;
  --text-dim: #9e9e9e;
  --border: rgba(255,255,255,0.08);
  --success: #22c55e;
  --error: #ef4444;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(160deg, #1a1a1e 0%, #1E1E1E 50%, #252530 100%);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
body { padding: 20px; padding-bottom: 88px; }

.header {
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(59, 130, 246, 0.08));
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 12px;
  flex-shrink: 0;
  color: var(--accent);
}
.header-icon svg {
  width: 24px;
  height: 24px;
}
.header-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.header-text p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 24px;
}
.btn-refresh {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  background: rgba(40, 40, 40, 0.6);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-refresh:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  color: var(--accent);
}
.btn-refresh svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.btn-refresh.loading .btn-refresh-icon {
  animation: btn-refresh-spin 0.8s linear infinite;
}
@keyframes btn-refresh-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.select-styled {
  padding: 8px 12px;
  padding-right: 32px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  background: rgba(40, 40, 40, 0.6);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  min-width: 90px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239e9e9e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.select-styled:hover {
  border-color: var(--text-dim);
}
.period-select { min-width: 140px; padding: 10px 14px; padding-right: 32px; font-size: 0.9rem; }

.clear { clear: both; }
.checkBox {
  display: inline-block;
  cursor: pointer;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  box-shadow: 0px 0px 0px 2px var(--text);
  flex-shrink: 0;
}
.checkBox div {
  width: 40px;
  height: 40px;
  background-color: #fff;
  top: -36px;
  left: -36px;
  position: absolute;
  transform: rotateZ(45deg);
  z-index: 10;
}
.checkBox input[type=checkbox]:checked + div {
  left: -8px;
  top: -8px;
}
.checkBox input[type=checkbox] {
  position: absolute;
  left: 50px;
  visibility: hidden;
}
.transition {
  transition: 300ms ease;
}

.chart-card {
  background: linear-gradient(145deg, rgba(35, 35, 40, 0.72) 0%, rgba(28, 28, 32, 0.85) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 26px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.02) inset;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, border-color 0.2s ease;
}
.chart-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.04) inset;
  border-color: rgba(255,255,255,0.08);
}
.chart-card h2 {
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.chart-wrap {
  width: 100%;
  min-height: 220px;
  height: 220px;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  cursor: crosshair;
  background: radial-gradient(140% 140% at 25% 0%, rgba(47, 128, 255, 0.12) 0%, transparent 50%),
              radial-gradient(120% 120% at 75% 5%, rgba(0, 209, 143, 0.1) 0%, transparent 50%),
              rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.05);
  transform: translateZ(0);
  will-change: auto;
}
.chart-canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 14px;
}
.chart-tooltip {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(18, 18, 22, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}
.chart-tooltip.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.chart-tooltip-time {
  font-weight: 700;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 0.95em;
}
.chart-tooltip-row { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.chart-tooltip-dot { width: 8px; height: 8px; border-radius: 99px; flex-shrink: 0; }
.chart-tooltip-dot.jupiter { background: #2F80FF; box-shadow: 0 0 8px rgba(47,128,255,0.4); }
.chart-tooltip-dot.bybit { background: #00D18F; box-shadow: 0 0 8px rgba(0,209,143,0.35); }
.chart-tooltip-minmax {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.9em;
  color: rgba(255,255,255,0.6);
}
.chart-tooltip-minmax .chart-tooltip-row { margin-top: 2px; }

.legend {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 500;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.legend-dot.jupiter { background: var(--accent); }
.legend-dot.bybit { background: var(--accent-bybit); }

.stats-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.stat-badge {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
}
.stat-badge.jupiter { background: rgba(59, 130, 246, 0.2); color: var(--accent); }
.stat-badge.bybit { background: rgba(255, 193, 7, 0.15); color: var(--accent-bybit); }

.status {
  text-align: center;
  padding: 16px;
  font-size: 0.9rem;
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: 500;
}
.status.loading {
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px dashed var(--border);
}
.status.error {
  color: var(--error);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.status.success {
  color: var(--success);
  font-size: 0.8rem;
}

.footer {
  text-align: center;
  margin-top: 28px;
  font-size: 0.75rem;
  color: var(--text-dim);
}
.footer code {
  background: var(--bg-card);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
}

.history-card {
  background: rgba(40, 40, 40, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}
.history-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
}
.history-header h2 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.history-toggle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: transform 0.2s;
}
.history-card.expanded .history-toggle {
  transform: rotate(180deg);
}
.history-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.history-card.expanded .history-body {
  max-height: 500px;
}
.history-toolbar {
  display: flex;
  gap: 12px;
  margin: 16px 0 12px;
  align-items: center;
  flex-wrap: wrap;
}
.history-hide-stale {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
}
.history-period { min-width: 100px; }
.history-list {
  list-style: none;
  max-height: 320px;
  overflow-y: auto;
}
.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 6px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.2s ease;
}
.history-item:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
}
.history-item-token {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}
.history-item-direction {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 2px;
}
.history-item-stale-label {
  font-size: 0.7em;
  color: var(--text-dim);
}
.history-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.history-item-meta {
  text-align: right;
}
.history-item-profit {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.9rem;
}
.history-item-time {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 2px;
}
.history-item.stale {
  opacity: 0.65;
}
.history-item.stale .history-item-token,
.history-item.stale .history-item-profit {
  text-decoration: line-through;
  color: var(--text-dim);
}
.history-item-actions {
  display: flex;
  gap: 6px;
  margin-left: 8px;
}
.history-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: var(--border);
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: background 0.15s, color 0.15s;
}
.history-anim-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.history-anim-clock {
  animation: clock-pulse 1.2s ease-in-out infinite;
}
.history-dir-dot {
  margin-right: 8px;
  flex-shrink: 0;
  display: inline-block;
  background: transparent;
  box-shadow: none;
  animation: none;
  font-size: 13px;
  line-height: 1;
}
.history-dir-dot.jup {
  animation: dot-emoji-green 1.6s ease-in-out infinite;
}
.history-dir-dot.bybit {
  animation: dot-emoji-red 1.6s ease-in-out infinite;
}
.history-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text);
}
.history-btn.stale-btn {
  background: rgba(255, 193, 7, 0.18);
  color: var(--accent-bybit);
}
.history-btn.stale-btn:hover {
  background: rgba(255, 193, 7, 0.28);
  color: var(--accent-bybit);
}
.history-btn.del-btn {
  background: rgba(239, 68, 68, 0.18);
  color: var(--error);
}
.history-btn.del-btn:hover {
  background: rgba(239, 68, 68, 0.28);
  color: var(--error);
}
.history-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}

@keyframes dot-emoji-green {
  0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 0 rgba(34, 197, 94, 0)); }
  50% { transform: translateY(-1px) scale(1.15); filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.35)); }
}
@keyframes dot-emoji-red {
  0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 0 rgba(239, 68, 68, 0)); }
  50% { transform: translateY(-1px) scale(1.15); filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.35)); }
}
@keyframes clock-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

.nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(37, 37, 37, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-item.active {
  color: var(--accent);
  font-weight: 600;
}
.nav-item:hover {
  color: var(--accent);
  transform: scale(1.08);
}
.nav-item:hover svg {
  transform: scale(1.1);
}
.nav-item svg {
  width: 22px;
  height: 22px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}

.status-block {
  background: rgba(40, 40, 40, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}
.status-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.status-block h2 {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.status-row:last-child {
  border-bottom: none;
}
.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 12px;
  flex-shrink: 0;
}
.status-indicator.ok {
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.6);
  animation: pulse-blue 1.5s ease-in-out infinite;
}
.status-indicator.err {
  background: var(--error);
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
  animation: pulse-red 1.5s ease-in-out infinite;
}
.status-indicator.unknown {
  background: var(--text-dim);
  opacity: 0.6;
}
@keyframes pulse-blue {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0); }
}
@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}
.status-label {
  display: flex;
  align-items: center;
  flex: 1;
}
.status-value {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.settings-block {
  background: rgba(40, 40, 40, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}
.settings-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.settings-block h2 {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.settings-list {
  max-height: 400px;
  overflow-y: auto;
  padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
}
.settings-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  min-height: 48px;
  border-radius: 10px;
  margin-bottom: 6px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 0.85rem;
  gap: 16px;
  position: relative;
}

.settings-item-key {
  color: var(--text-dim);
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}
.settings-item-val {
  font-weight: 500;
  color: var(--text);
  margin-left: auto;
}
.settings-input {
  width: 90px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.85rem;
  text-align: right;
  box-sizing: border-box;
}
.settings-input::-webkit-outer-spin-button,
.settings-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.settings-input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
.settings-input:focus {
  outline: none;
  border-color: var(--accent);
}
.settings-toggle {
  position: relative;
  width: 44px;
  height: 26px;
  background: var(--border);
  border-radius: 12px;
  cursor: pointer;
  flex-shrink: 0;
}
.settings-toggle.on {
  background: var(--accent);
}
.settings-toggle.off {
  background: var(--error);
}
.settings-toggle::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
}
.settings-toggle.on::after {
  transform: translateX(20px);
}

.exchange-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: rgba(40, 40, 40, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}
.exchange-toggle-wrap:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.exchange-toggle-wrap[role="button"] {
  cursor: pointer;
}
.exchange-toggle-label {
  font-weight: 500;
}
.exchange-toggle {
  position: relative;
  width: 52px;
  height: 28px;
  background: var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}
.exchange-toggle.on {
  background: var(--accent);
}
.exchange-toggle.off {
  background: var(--error);
}
.exchange-toggle::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.2s;
  pointer-events: none;
}
.exchange-toggle.on::after {
  transform: translateX(24px);
}

.console-card {
  background: rgba(40, 40, 40, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.console-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.console-toolbar h2 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.console-output {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.75rem;
  line-height: 1.5;
  background: rgba(0,0,0,0.4);
  border-radius: 10px;
  padding: 16px;
  max-height: 400px;
  overflow-y: auto;
  color: #a0aec0;
  white-space: pre-wrap;
  word-break: break-all;
}
.console-line { margin-bottom: 2px; }
.console-line.error { color: #fc8181; }
.console-line.warning { color: #f6ad55; }
.console-empty { color: var(--text-dim); text-align: center; padding: 24px; }
.console-auto-refresh { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-dim); }
.header-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.console-toolbar-actions { display: flex; align-items: center; gap: 12px; }

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f5f5;
    --bg-card: #fff;
    --bg-card-hover: #f0f0f0;
    --text: #1a1a1a;
    --text-dim: #6b6b6b;
    --border: #e0e0e0;
  }
}
