/* ==========================================================================
   tokens.css — Canonical Virtual Try-On design tokens (SINGLE SOURCE OF TRUTH)

   Theme: Royal Imperial & Champagne Gold
   Brand Base:   Royal Sapphire & Velvet Indigo (matched to logo.jpg)
   Royal Touch:  Champagne Gold & Burnished Gold accents
   Dark Canvas:  Midnight Velvet #05081c (sampled from logo.jpg deep base)
   Light Canvas: Luxe Silk Ivory #faf9f6 (neutral luxury retail stage)

   Every surface of the product (admin panel, store manager, marketing site,
   auth funnel, public shop, store partner panel) resolves its colours from
   the semantic tokens defined here.
   ========================================================================== */

:root {
    /* ------------------------------------------------------------------
     * Royal Brand Palette — Imperial Sapphire & Velvet Indigo (from Logo)
     * ------------------------------------------------------------------ */
    --brand-300: #93c5fd;
    --brand-400: #6366f1;
    --brand-500: #4338ca;   /* Imperial Sapphire Primary */
    --brand-600: #3730a3;   /* Deep Royal Sapphire       */
    --brand-700: #312e81;   /* Velvet Midnight Indigo    */

    /* Royal Brand Gradient (Imperial Sapphire -> Luminous Royal Glow) */
    --brand-gradient: linear-gradient(135deg, #1e1b4b 0%, #3730a3 55%, #4338ca 100%);
    --brand-gradient-soft: linear-gradient(135deg, rgba(55, 48, 163, 0.12), rgba(197, 160, 89, 0.12));

    /* ------------------------------------------------------------------
     * Royal Gold & Luxury Micro-Accents
     * ------------------------------------------------------------------ */
    --accent-gold: #c5a059;              /* Champagne Gold */
    --accent-gold-hover: #b48c3b;
    --accent-gold-soft: rgba(197, 160, 89, 0.14);
    --gold-gradient: linear-gradient(135deg, #d4af37, #c5a059);

    /* ------------------------------------------------------------------
     * Semantic tokens — Admin & Store Manager surfaces
     * ------------------------------------------------------------------ */
    --bg: #faf9f6;                       /* Warm Silk Ivory Canvas */
    --panel: #ffffff;                    /* Pure Atelier White */
    --line: #e5e7eb;
    --line-strong: #d1d5db;
    --text: #0f172a;
    --sub: #4b5563;
    --muted: #9ca3af;

    --primary: var(--brand-500);
    --primary-dark: var(--brand-600);
    --primary-soft: rgba(67, 56, 202, 0.10);
    --primary-soft-strong: rgba(67, 56, 202, 0.18);

    --accent-blue: #2563eb;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-amber: #c5a059;             /* Gilded Champagne Gold */
    --accent-cyan: #06b6d4;

    --shadow-xs: 0 1px 3px rgba(15, 23, 42, 0.05);
    --shadow: 0 4px 14px -4px rgba(55, 48, 163, 0.09), 0 10px 24px -14px rgba(15, 23, 42, 0.10);
    --shadow-lg: 0 8px 30px -6px rgba(55, 48, 163, 0.14), 0 20px 40px -18px rgba(15, 23, 42, 0.16);

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 20px;

    --sidebar-bg: #ffffff;
    --sidebar-width: 268px;

    /* ------------------------------------------------------------------
     * Semantic tokens — Marketing & Public surfaces (Landing, Shop, Auth)
     * ------------------------------------------------------------------ */
    --bg-color: #faf9f6;
    --blob-1: #c7d2fe;                   /* Royal Ice Sapphire */
    --blob-2: #ddd6fe;                   /* Velvet Lavender Mist */
    --blob-3: #fef3c7;                   /* Warm Champagne Gold Ambient Glow */
    --card-bg: rgba(255, 255, 255, 0.82);
    --card-solid: #ffffff;
    --card-border: rgba(197, 160, 89, 0.22); /* Hairline Gilded Border */
    --text-primary: #0f172a;
    --text-secondary: #475569;

    --accent-start: #3730a3;             /* Imperial Sapphire */
    --accent-end: #6366f1;               /* Luminous Royal Indigo Glow */
    --accent-soft: rgba(67, 56, 202, 0.10);

    --shadow-soft: 0 20px 40px -15px rgba(30, 27, 75, 0.12);
    --icon-bg: #f3f4f6;
    --toggle-bg: rgba(255, 255, 255, 0.85);
    --section-bg: rgba(255, 255, 255, 0.65);
    --ok: #16a34a;
    --danger: #dc2626;

    /* Public topbar (base.html) — fixed-header glass */
    --topbar-bg: rgba(250, 249, 246, 0.75);
    --topbar-border: rgba(197, 160, 89, 0.20);
}

/* ------------------------------------------------------------------------
 * Dark theme — Velvet Midnight & Luminous Royal Sapphire (from Logo base)
 * ------------------------------------------------------------------------ */
html[data-theme="dark"],
:root[data-theme="dark"] {
    /* Admin / app dark */
    --bg: #05081c;                       /* Midnight Velvet (from logo.jpg) */
    --panel: #0b102d;                    /* Royal Dark Panel */
    --line: #181f4a;
    --line-strong: #272f6b;
    --text: #f8fafc;
    --sub: #94a3b8;
    --muted: #64748b;

    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-soft: rgba(99, 102, 241, 0.18);
    --primary-soft-strong: rgba(99, 102, 241, 0.28);

    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow: 0 4px 14px -4px rgba(99, 102, 241, 0.18), 0 10px 24px -14px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 8px 30px -6px rgba(99, 102, 241, 0.24), 0 20px 40px -18px rgba(0, 0, 0, 0.8);

    --sidebar-bg: #070c24;

    /* Marketing / public dark */
    --bg-color: #03071e;
    --blob-1: #1e1b4b;                   /* Imperial Navy */
    --blob-2: #2e1065;                   /* Royal Violet */
    --blob-3: #582b06;                   /* Burnished Amber Gold Glow */
    --card-bg: rgba(11, 16, 45, 0.72);
    --card-solid: #0b102d;
    --card-border: rgba(197, 160, 89, 0.25); /* Subtle Gilded Outline */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;

    --accent-start: #6366f1;
    --accent-end: #818cf8;
    --accent-soft: rgba(99, 102, 241, 0.16);

    --shadow-soft: 0 20px 40px -15px rgba(0, 0, 0, 0.65);
    --icon-bg: #151b3d;
    --toggle-bg: rgba(11, 16, 45, 0.85);
    --section-bg: rgba(11, 16, 45, 0.45);
    --ok: #4ade80;
    --danger: #f87171;

    --topbar-bg: rgba(3, 7, 30, 0.75);
    --topbar-border: rgba(197, 160, 89, 0.22);
}
