:root {
  /* ==========================================================================
     WARM EDITORIAL 3B — BENTO SAND DESIGN SYSTEM
     Warm Sand (#f6f3ec), Terracotta-Amber (#b45309), Cobalt (#1d4ed8)
     ========================================================================== */

  /* Neutral Surface & Canvas — Warm Sand Light */
  --bg-app: #f6f3ec;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-muted: #f2ede3;
  --bg-surface-sunken: #e7dfd0;

  /* Typography Colors */
  --text-primary: #18181b;
  --text-secondary: #57534e;
  --text-muted: #78716c;
  --color-text-main: #18181b;
  --color-text-muted: #78716c;
  --text-inverse: #ffffff;
  --bg-surface-subtle: #f6f3ec;
  --color-surface: #ffffff;
  --color-surface-hover: #f2ede3;
  --color-border-subtle: rgba(24, 24, 27, 0.09);
  --color-primary-600: #1d4ed8;
  --color-primary-500: #b45309;
  --color-primary-50: rgba(29, 78, 216, 0.09);

  /* Border & Dividers */
  --border-subtle: rgba(24, 24, 27, 0.09);
  --border-default: rgba(24, 24, 27, 0.16);
  --border-strong: rgba(24, 24, 27, 0.25);
  --border-glass: rgba(255, 255, 255, 0.75);

  /* Primary Accent: Hot Crimson (Urgency & Flash Deals) */
  --accent-crimson: #f43f5e;
  --accent-crimson-hover: #e11d48;
  --accent-crimson-subtle: #fff1f2;
  --accent-crimson-text: #be123c;

  /* Secondary Accent: Warm Amber (replaces Teal for Bento Sand) */
  --accent-teal: #b45309;
  --accent-teal-hover: #92400e;
  --accent-teal-subtle: rgba(180, 83, 9, 0.10);
  --accent-teal-text: #b45309;

  /* Tertiary Accent: Gold / Amber */
  --accent-gold: #f59e0b;
  --accent-gold-hover: #d97706;
  --accent-gold-subtle: #fffbeb;
  --accent-gold-text: #b45309;

  /* Semantic State Colors */
  --state-success: #10b981;
  --state-success-subtle: #ecfdf5;
  --state-warning: #f59e0b;
  --state-danger: #ef4444;
  --state-info: #3b82f6;

  /* Financing Brand Badges */
  --snapppay-blue: #1d4ed8;
  --snapppay-badge-bg: rgba(29, 78, 216, 0.09);
  --hamta-gold: #c59b27;
  --hamta-badge-bg: #fdfaf2;

  /* Elevation & Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 2px 8px -2px rgba(15, 23, 42, 0.06), 0 1px 4px -1px rgba(15, 23, 42, 0.04);
  --shadow-glow-crimson: 0 0 20px -3px rgba(244, 63, 94, 0.35);

  /* Bento Sand Extended Tokens */
  --bento-amber: #b45309;
  --bento-amber-hover: #92400e;
  --bento-amber-soft: rgba(180, 83, 9, 0.10);
  --bento-cobalt: #1d4ed8;
  --bento-cobalt-hover: #1e40af;
  --bento-cobalt-soft: rgba(29, 78, 216, 0.09);
  --bento-radius: 22px;
  --warm-stage-bg: radial-gradient(circle at 50% 45%, #fcfaf6 22%, #f1ebe0 100%);
  --bento-shadow: 0 12px 30px -14px rgba(42, 34, 24, 0.10), 0 2px 8px rgba(42, 34, 24, 0.03);
  --bento-shadow-hover: 0 20px 42px -14px rgba(42, 34, 24, 0.16), 0 6px 16px rgba(42, 34, 24, 0.05);
  --warm-cutout-shadow: drop-shadow(0 12px 18px rgba(34, 26, 18, 0.16));
}

/* ==========================================================================
   DARK THEME — Warm Editorial Bento Sand Dark
   ========================================================================== */
[data-theme="dark"] {
  --bg-app: #11141a;
  --bg-surface: #181c24;
  --bg-surface-elevated: #1e2430;
  --bg-surface-muted: #202632;
  --bg-surface-sunken: #141820;

  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #8a8a93;
  --color-text-main: #f4f4f5;
  --color-text-muted: #a1a1aa;
  --text-inverse: #09090b;
  --bg-surface-subtle: #181c24;
  --color-surface: #181c24;
  --color-surface-hover: #202632;
  --color-border-subtle: rgba(255, 255, 255, 0.09);
  --color-primary-600: #60a5fa;
  --color-primary-500: #f59e0b;
  --color-primary-50: rgba(96, 165, 250, 0.14);

  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-default: rgba(255, 255, 255, 0.16);
  --border-strong: rgba(255, 255, 255, 0.24);
  --border-glass: rgba(255, 255, 255, 0.08);

  --accent-crimson: #fb7185;
  --accent-crimson-hover: #f43f5e;
  --accent-crimson-subtle: rgba(244, 63, 94, 0.15);
  --accent-crimson-text: #fda4af;

  --accent-teal: #f59e0b;
  --accent-teal-hover: #d97706;
  --accent-teal-subtle: rgba(245, 158, 11, 0.14);
  --accent-teal-text: #fbbf24;

  --accent-gold: #fbbf24;
  --accent-gold-hover: #f59e0b;
  --accent-gold-subtle: rgba(251, 191, 36, 0.15);
  --accent-gold-text: #fde68a;

  --snapppay-blue: #60a5fa;
  --snapppay-badge-bg: rgba(96, 165, 250, 0.14);
  --hamta-gold: #f6c85f;
  --hamta-badge-bg: rgba(246, 200, 95, 0.15);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.7);
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.45);
  --shadow-glow-crimson: 0 0 25px -2px rgba(251, 113, 133, 0.3);

  /* Bento Sand Extended Dark Tokens */
  --bento-amber: #f59e0b;
  --bento-amber-hover: #d97706;
  --bento-amber-soft: rgba(245, 158, 11, 0.14);
  --bento-cobalt: #60a5fa;
  --bento-cobalt-hover: #3b82f6;
  --bento-cobalt-soft: rgba(96, 165, 250, 0.14);
  --warm-stage-bg: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.02) 100%);
  --bento-shadow: 0 16px 36px -14px rgba(0, 0, 0, 0.55), 0 2px 10px rgba(0, 0, 0, 0.3);
  --bento-shadow-hover: 0 24px 48px -16px rgba(0, 0, 0, 0.72), 0 8px 20px rgba(0, 0, 0, 0.4);
  --warm-cutout-shadow: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.52));
}
