:root {
  /* Color Palette - "Atelier & Pigment" */
  --bg-app: #0e0f12;
  --bg-surface: #16181e;
  --bg-surface-elevated: #1f222b;
  --bg-surface-hover: #292d39;
  --bg-glass: rgba(22, 24, 30, 0.88);

  --border-subtle: #2b2f3d;
  --border-strong: #3d4355;

  /* Typography Colors */
  --text-primary: #f8f6f0;       /* Fine cotton paper cream */
  --text-secondary: #a7acb9;     /* Charcoal wash */
  --text-muted: #6e7587;         /* Soft graphite */
  --text-inverse: #0e0f12;

  /* Signature Brand Color: #e1a92b */
  --accent-brand: #e1a92b;               /* Golden Amber requested by user */
  --accent-brand-hover: #f0ba3e;
  --accent-brand-active: #c9931d;
  --accent-brand-glow: rgba(225, 169, 43, 0.28);
  --accent-brand-subtle: rgba(225, 169, 43, 0.12);
  --accent-brand-border: rgba(225, 169, 43, 0.35);

  /* Legacy variable alias for full backwards compatibility */
  --accent-terracotta: var(--accent-brand);
  --accent-terracotta-hover: var(--accent-brand-hover);
  --accent-terracotta-glow: var(--accent-brand-glow);

  --accent-ochre: #e1a92b;
  --accent-cream: #f4f1de;

  /* Status & Financial Indicators */
  --status-profit: #2ec4b6;      /* Positive balance & Net Profit */
  --status-profit-bg: rgba(46, 196, 182, 0.12);
  --status-profit-border: rgba(46, 196, 182, 0.35);

  --status-loss: #e76f51;        /* Expenses, COGS & Discrepancies */
  --status-loss-bg: rgba(231, 111, 81, 0.12);
  --status-loss-border: rgba(231, 111, 81, 0.35);

  --status-warning: #e1a92b;     /* Warning / Low stock */
  --status-warning-bg: rgba(225, 169, 43, 0.12);
  --status-warning-border: rgba(225, 169, 43, 0.35);

  --status-soldout: #6c757d;

  /* Typography */
  --font-family-serif: 'Playfair Display', Georgia, serif;
  --font-family-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-family-mono: 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;

  /* Spacing */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 20px;
  --space-xl: 24px;
  --space-2xl: 32px;

  /* Border Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Elevations */
  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 6px 18px rgba(0, 0, 0, 0.4);
  --shadow-elevated: 0 12px 32px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 22px var(--accent-brand-glow);

  /* Transitions */
  --trans-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-bounce: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Mobile Safe Area Insets & Responsive Dimensions */
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: calc(var(--safe-area-top) + 14px);
  --safe-bottom: max(var(--safe-area-bottom), 6px);

  /* Heights */
  --header-base-height: 58px;
  --header-height: calc(var(--header-base-height) + var(--safe-top));
  --bottom-nav-base-height: 64px;
  --bottom-nav-height: calc(var(--bottom-nav-base-height) + var(--safe-bottom));
}
