/* Premium Midnight design tokens. Single source of truth for color, spacing, radius, shadow, type.
   Layers: the named palette first, then the names the components use (--color-*), which point at the palette. Components never hard-code colors. */
:root {
  --bg-app: #111C28;
  --bg-bar: #0C1722;
  --surface-1: #1F3040;
  --surface-2: #283B4B;
  --surface-input: #172735;
  --accent-mint: #B7E4D2;
  --accent-mint-strong: #78CEB2;
  /* Aurora gradient (gauge): start to end of the active arc */
  --aurora-1: #B9F4E3;
  --aurora-2: #79E3C8;
  --aurora-3: #5DD3E8;
  --aurora-4: #7F9CFF;
  --aurora-glow: rgba(93, 211, 232, 0.18);
  --gauge-track: #334B63;
  /* Accent by meaning (goal cards) */
  --gauge-amount: #F6F8FC;
  --gauge-sub: #A9B7C8;
  --date-bg: rgba(235, 200, 136, 0.10); --date-border: rgba(235, 200, 136, 0.16); --date-label: #EBC888; --date-value: #F2DEAB;
  --days-bg: rgba(93, 211, 232, 0.10); --days-border: rgba(93, 211, 232, 0.16); --days-label: #8FD8E8; --days-value: #D9F6FB;
  --deposit-bg: rgba(121, 227, 200, 0.10); --deposit-border: rgba(121, 227, 200, 0.18); --deposit-label: #79E3C8; --deposit-value: #D8FFF3;
  --accent-gold: #EBCB88;
  --text-primary: #F6F2E9;
  --text-secondary: #BBC9D1;
  --text-muted: #8FA3B0;
  --border: #385061;
  --border-control: #7F97A8; /* field and control outlines: lighter than --border so they keep 3:1 against the surface */
  --danger: #E99A96;
  --success: #9AD8BD;
  --overlay: #07111DCC;

  --color-canvas: var(--bg-app);
  --color-bar: var(--bg-bar);
  --color-surface: var(--surface-1);
  --color-surface-2: var(--surface-2);
  --color-input-bg: var(--surface-input);
  --color-lavender: var(--surface-2);
  --color-sky: var(--surface-2);
  --color-butter: var(--surface-2);
  --color-mint: color-mix(in srgb, var(--accent-mint) 20%, var(--surface-1));
  --color-pink: color-mix(in srgb, var(--accent-gold) 28%, var(--surface-1));
  --color-primary: var(--accent-gold);
  --color-primary-hover: #F2D79E;
  --color-primary-pressed: #D9B872;
  --color-on-primary: #0C1722;
  --color-text: var(--text-primary);
  --color-text-muted: var(--text-secondary);
  --color-text-faint: var(--text-muted);
  --color-border: var(--border);
  --color-input-border: var(--border-control);
  --color-focus: var(--accent-mint-strong);
  --color-link: var(--accent-mint-strong);
  --color-success: var(--success);
  --color-success-bg: color-mix(in srgb, var(--accent-mint) 14%, var(--surface-1));
  --color-error: var(--danger);
  --color-error-bg: color-mix(in srgb, var(--danger) 14%, var(--surface-1));
  --color-overlay: var(--overlay);

  --space-4: 4px; --space-8: 8px; --space-12: 12px; --space-16: 16px; --space-24: 24px; --space-32: 32px; --space-48: 48px;
  --radius-control: 12px; --radius-card: 18px; --radius-pill: 999px;
  --shadow-card: 0 6px 20px rgba(7, 17, 29, 0.35);
  --font-ui: "Fredoka", "Heebo", "Noto Sans Hebrew", Arial, sans-serif;
  color-scheme: dark;
}
