/* ============================================================
   CryptoBazaar design tokens — FINTECH CLEAN DARK (2026-11-12).
   The owner reviewed another AI's redesign proposal, liked the
   style, and explicitly ordered the same design built properly
   ("i like their style can you do same?"), superseding the
   Swiss Slate theme and his no-rebuild rule for this project.
   One source of truth: deep charcoal surfaces, crisp 1px
   borders, Binance gold for primary actions, emerald for
   verified states, red for errors, Inter + JetBrains Mono.
   Every token name the stylesheets already reference is kept —
   only values change — so no rule loses its footing.
   ============================================================ */
:root {
    color-scheme: dark;

    /* Surfaces (Fintech Clean Dark charcoal system) */
    --color-bg: #0b0e11;
    --color-surface: #181a20;
    --color-surface-muted: #1e2329;
    --color-card: #1e2329;

    /* Text */
    --color-text: #eaecef;
    --color-text-muted: #9aa3b2;
    --color-text-faint: #a2adbc;
    --color-text-inverse: #0b0e11;

    /* Lines */
    --color-border: #2b3139;
    --color-border-strong: #3a4149;
    --color-control-border: #707a8a; /* 4.01:1 on --color-surface: form-control boundaries clear WCAG 1.4.11 */
    --color-control-border-hover: #848e9c;
    --color-line: #2b3139;
    --color-muted: #1e2329;

    /* Brand — Binance gold, flat (no gradient washes) */
    --color-brand: #f0b90b;
    --color-brand-hover: #f8c626;
    --color-brand-active: #d9a507;
    --color-brand-text: #f0b90b;
    --color-brand-soft: rgba(240, 185, 11, 0.14);
    --color-surface-elevated: #232830;
    --focus-ring: 0 0 0 3px rgba(240, 185, 11, 0.36);
    --color-brand-grad: linear-gradient(135deg, #f0b90b, #f0b90b);
    --color-brand-grad-135: linear-gradient(135deg, #f0b90b, #f0b90b);
    --color-gold-line: rgba(240, 185, 11, 0.38);
    --color-gold-text: #f0b90b;

    /* Accent — steel, for the one tertiary highlight (step 3) */
    --color-accent: #707a8a;
    --color-accent-text: #b7bdc6;

    /* States */
    --color-success: #0ecb81;
    --color-success-bg: rgba(14, 203, 129, 0.12);
    --color-danger: #f6465d;
    --color-warning: #f0b90b;
    --color-warning-bg: rgba(240, 185, 11, 0.12);

    /* Legacy bazaar awning (kept for the rules that use it) */
    --color-awning: #1e2329;
    --color-awning-text: #eaecef;

    /* Glass + shadows — flat and crisp, minimal glow */
    --glass-tint: rgba(24, 26, 32, 0.82);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.5), 0 16px 32px -16px rgba(0, 0, 0, 0.55);
    --shadow-card-soft: 0 1px 2px rgba(0, 0, 0, 0.45), 0 8px 20px -10px rgba(0, 0, 0, 0.5);
    --shadow-card-hover: 0 2px 3px rgba(0, 0, 0, 0.5), 0 22px 40px -16px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(240, 185, 11, 0.25);
    --shadow-qr: 0 12px 28px -10px rgba(0, 0, 0, 0.65);
    --glow-btn: 0 6px 16px -8px rgba(240, 185, 11, 0.45);
    --glow-btn-hover: 0 8px 22px -8px rgba(240, 185, 11, 0.6);

    /* Type — Inter for everything, JetBrains Mono for numbers */
    --font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --font-size-base: 16px;
    --font-size-xs: 12px;
    --font-size-sm: 13px;
    --font-size-lg: 17px;
    --font-size-xl: 21px;
    --font-size-2xl: 25px;
    --font-size-amount: 36px;

    /* Shape + layout */
    --radius-sm: 10px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-pill: 999px;
    --max-width-card: 440px;

    /* Spacing rhythm */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 28px;
    --space-8: 32px;

    /* Control heights */
    --control-h: 44px;
    --control-h-sm: 38px;

    /* Motion — subtle 180-220ms hover band */
    --dur: 0.2s;
    --ease-out: cubic-bezier(0.22, 0.9, 0.3, 1);
}
