/* ============================================
   COMPLETE THEME SYSTEM - Perfect Dark & Light
   Inspired by nextforum.hailovers.com
   ============================================ */

/* Note: Vendor-specific prefixes (-webkit-, -moz-) are intentional for cross-browser compatibility */

:root[data-theme="dark"] {
    /* Primary Colors */
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --primary-rgb: 59, 130, 246;

    /* Background Colors — true black */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #141414;
    --bg-quaternary: #1e1e1e;
    --bg-hover: rgba(255, 255, 255, 0.06);

    /* Border Colors */
    --border-color: #1e1e1e;
    --border-color-light: #2a2a2a;

    /* Text Colors — high contrast on black */
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --text-inverse: #000000;

    /* Status Colors — slightly brighter for black bg */
    --success: #22c55e;
    --warning: #facc15;
    --danger: #f43f5e;
    --info: #60a5fa;

    /* Shadows — deeper on true black */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.7);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.8);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.9);

    /* Gradients */
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);

    /* Special */
    --backdrop-blur: blur(20px);
    --navbar-bg: rgba(0, 0, 0, 0.85);
    --navbar-bg-scrolled: rgba(0, 0, 0, 0.95);
    --card-bg: rgba(10, 10, 10, 0.8);

    /* Game modal accent (shared with game themes) */
    --color-accent: #3b82f6;
    --color-accent-rgb: 59, 130, 246;
    --color-bg-primary: #000000;
}

:root[data-theme="dim"] {
    /* Primary Colors */
    --primary-color: #5b8def;
    --primary-hover: #4a7de0;
    --primary-rgb: 91, 141, 239;

    /* Background Colors — warm slate gray */
    --bg-primary: #1c2333;
    --bg-secondary: #242d3f;
    --bg-tertiary: #2e384d;
    --bg-quaternary: #39445c;
    --bg-hover: rgba(255, 255, 255, 0.08);

    /* Border Colors */
    --border-color: #3d4a63;
    --border-color-light: #4d5b78;

    /* Text Colors — soft contrast */
    --text-primary: #d5dbe8;
    --text-secondary: #8b96ad;
    --text-muted: #5e6b82;
    --text-inverse: #1c2333;

    /* Status Colors */
    --success: #22c55e;
    --warning: #facc15;
    --danger: #f43f5e;
    --info: #60a5fa;

    /* Shadows — moderate */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.5);

    /* Gradients */
    --gradient-1: linear-gradient(135deg, #5b8def 0%, #7c6dd8 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);

    /* Special */
    --backdrop-blur: blur(20px);
    --navbar-bg: rgba(28, 35, 51, 0.9);
    --navbar-bg-scrolled: rgba(28, 35, 51, 0.97);
    --card-bg: rgba(36, 45, 63, 0.85);

    /* Game modal accent */
    --color-accent: #5b8def;
    --color-accent-rgb: 91, 141, 239;
    --color-bg-primary: #1c2333;
}

:root[data-theme="light"] {
    /* Primary Colors */
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-rgb: 37, 99, 235;

    /* Background Colors — true white */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f0f1f3;
    --bg-quaternary: #e8e9eb;
    --bg-hover: rgba(0, 0, 0, 0.04);
    --hover-neutral: rgba(0, 0, 0, 0.05);

    /* Border Colors — visible on white */
    --border-color: #d1d5db;
    --border-color-light: #9ca3af;

    /* Text Colors — max contrast on white */
    --text-primary: #111111;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --text-inverse: #ffffff;

    /* Status Colors — darker for white bg readability */
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #2563eb;

    /* Shadows — subtle on white */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.10);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.14);

    /* Gradients */
    --gradient-1: linear-gradient(135deg, #4f6de8 0%, #6d42a0 100%);
    --gradient-2: linear-gradient(135deg, #e870f0 0%, #f04060 100%);
    --gradient-3: linear-gradient(135deg, #3a9df0 0%, #00d4f0 100%);

    /* Special */
    --backdrop-blur: blur(20px);
    --navbar-bg: rgba(255, 255, 255, 0.92);
    --navbar-bg-scrolled: rgba(255, 255, 255, 0.98);
    --card-bg: rgba(255, 255, 255, 0.95);

    /* Game modal accent (shared with game themes) */
    --color-accent: #2563eb;
    --color-accent-rgb: 37, 99, 235;
    --color-bg-primary: #ffffff;
}

/* ============================================
   GAME THEMES (imported from Table Romaneasca)
   Each theme sets both root vars and game vars
   ============================================ */

/* Default - Walnut & Brass Gold */
/* Remi Wood & Gold — tema specifică Remi */
:root[data-theme="remi"] {
    --primary-color: #d4a544;
    --primary-hover: #a8822a;
    --primary-rgb: 212, 165, 68;
    --bg-primary: #2a1b0e;
    --bg-secondary: #3a2310;
    --bg-tertiary: #4a2e16;
    --bg-quaternary: #5a3a1c;
    --bg-hover: rgba(212, 165, 68, 0.1);
    --border-color: #4a2e16;
    --border-color-light: #5a3a1c;
    --text-primary: #f4ecd8;
    --text-secondary: #b8ac8e;
    --text-muted: rgba(244, 236, 216, 0.4);
    --text-inverse: #2a1b0e;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.7);
    --gradient-1: linear-gradient(135deg, #d4a544 0%, #a8822a 100%);
    --gradient-2: linear-gradient(135deg, #f0c66a 0%, #d4a544 100%);
    --gradient-3: linear-gradient(135deg, #d4a544 0%, #6b4422 100%);
    --navbar-bg: rgba(58, 35, 16, 0.85);
    --navbar-bg-scrolled: rgba(42, 27, 14, 0.95);
    --card-bg: rgba(58, 35, 16, 0.65);
    --backdrop-blur: blur(20px);
    --color-accent: #d4a544;
    --color-accent-rgb: 212, 165, 68;
    --color-bg-primary: #2a1b0e;
}

:root[data-theme="default"] {
    --primary-color: #d4a040;
    --primary-hover: #a07828;
    --primary-rgb: 212, 160, 64;
    --bg-primary: #0e0a07;
    --bg-secondary: #1a1210;
    --bg-tertiary: #241c16;
    --bg-quaternary: #2e2218;
    --bg-hover: rgba(212, 160, 64, 0.1);
    --border-color: #2e2218;
    --border-color-light: #3a2c20;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0f172a;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.7);
    --gradient-1: linear-gradient(135deg, #d4a040 0%, #a07828 100%);
    --gradient-2: linear-gradient(135deg, #e8be60 0%, #d4a040 100%);
    --gradient-3: linear-gradient(135deg, #d4a040 0%, #6b4430 100%);
    --navbar-bg: rgba(26, 18, 16, 0.8);
    --navbar-bg-scrolled: rgba(14, 10, 7, 0.95);
    --card-bg: rgba(26, 18, 16, 0.6);
    --backdrop-blur: blur(20px);
    --color-accent: #d4a040;
    --color-accent-rgb: 212, 160, 64;
    --color-bg-primary: #0e0a07;
}

/* Midnight Blue */
:root[data-theme="midnight"] {
    --primary-color: #e0e7ff;
    --primary-hover: #9ca3af;
    --primary-rgb: 224, 231, 255;
    --bg-primary: #0a0e1a;
    --bg-secondary: #141a27;
    --bg-tertiary: #1e2632;
    --bg-quaternary: #243052;
    --bg-hover: rgba(224, 231, 255, 0.1);
    --border-color: #243052;
    --border-color-light: #2d3a62;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0f172a;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.7);
    --gradient-1: linear-gradient(135deg, #e0e7ff 0%, #9ca3af 100%);
    --gradient-2: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    --gradient-3: linear-gradient(135deg, #2d5a8f 0%, #1e3a5f 100%);
    --navbar-bg: rgba(20, 26, 39, 0.8);
    --navbar-bg-scrolled: rgba(10, 14, 26, 0.95);
    --card-bg: rgba(20, 26, 39, 0.6);
    --backdrop-blur: blur(20px);
    --color-accent: #e0e7ff;
    --color-accent-rgb: 224, 231, 255;
    --color-bg-primary: #0a0e1a;
}

/* Ruby Passion */
:root[data-theme="ruby"] {
    --primary-color: #ffd700;
    --primary-hover: #b8960a;
    --primary-rgb: 255, 215, 0;
    --bg-primary: #0e0a0a;
    --bg-secondary: #1a1414;
    --bg-tertiary: #261e1e;
    --bg-quaternary: #3a2d2d;
    --bg-hover: rgba(255, 215, 0, 0.1);
    --border-color: #3a2d2d;
    --border-color-light: #4a3d3d;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0f172a;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.7);
    --gradient-1: linear-gradient(135deg, #ffd700 0%, #b8960a 100%);
    --gradient-2: linear-gradient(135deg, #ffe44d 0%, #ffd700 100%);
    --gradient-3: linear-gradient(135deg, #7a2e2e 0%, #4a1e1e 100%);
    --navbar-bg: rgba(26, 20, 20, 0.8);
    --navbar-bg-scrolled: rgba(14, 10, 10, 0.95);
    --card-bg: rgba(26, 20, 20, 0.6);
    --backdrop-blur: blur(20px);
    --color-accent: #ffd700;
    --color-accent-rgb: 255, 215, 0;
    --color-bg-primary: #0e0a0a;
}

/* Royal Purple */
:root[data-theme="purple"] {
    --primary-color: #d4af37;
    --primary-hover: #a48f27;
    --primary-rgb: 212, 175, 55;
    --bg-primary: #0e0a1a;
    --bg-secondary: #1a1427;
    --bg-tertiary: #261e32;
    --bg-quaternary: #362d52;
    --bg-hover: rgba(212, 175, 55, 0.1);
    --border-color: #362d52;
    --border-color-light: #463d62;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0f172a;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.7);
    --gradient-1: linear-gradient(135deg, #d4af37 0%, #a48f27 100%);
    --gradient-2: linear-gradient(135deg, #f4cf57 0%, #d4af37 100%);
    --gradient-3: linear-gradient(135deg, #5d3a8f 0%, #3d2a5f 100%);
    --navbar-bg: rgba(26, 20, 39, 0.8);
    --navbar-bg-scrolled: rgba(14, 10, 26, 0.95);
    --card-bg: rgba(26, 20, 39, 0.6);
    --backdrop-blur: blur(20px);
    --color-accent: #d4af37;
    --color-accent-rgb: 212, 175, 55;
    --color-bg-primary: #0e0a1a;
}

/* Ocean Breeze */
:root[data-theme="ocean"] {
    --primary-color: #ff6b6b;
    --primary-hover: #cc5555;
    --primary-rgb: 255, 107, 107;
    --bg-primary: #0a1414;
    --bg-secondary: #141a1a;
    --bg-tertiary: #1e2626;
    --bg-quaternary: #2d3a3a;
    --bg-hover: rgba(255, 107, 107, 0.1);
    --border-color: #2d3a3a;
    --border-color-light: #3d4a4a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0f172a;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.7);
    --gradient-1: linear-gradient(135deg, #ff6b6b 0%, #cc5555 100%);
    --gradient-2: linear-gradient(135deg, #ff8b8b 0%, #ff6b6b 100%);
    --gradient-3: linear-gradient(135deg, #2e7a7a 0%, #1e4d4d 100%);
    --navbar-bg: rgba(20, 26, 26, 0.8);
    --navbar-bg-scrolled: rgba(10, 20, 20, 0.95);
    --card-bg: rgba(20, 26, 26, 0.6);
    --backdrop-blur: blur(20px);
    --color-accent: #ff6b6b;
    --color-accent-rgb: 255, 107, 107;
    --color-bg-primary: #0a1414;
}

/* Texas Hold'em Gold */
:root[data-theme="texas"] {
    --primary-color: #ffb700;
    --primary-hover: #cc9200;
    --primary-rgb: 255, 183, 0;
    --bg-primary: #0d0a00;
    --bg-secondary: #1a1400;
    --bg-tertiary: #2a2000;
    --bg-quaternary: #3a3000;
    --bg-hover: rgba(255, 183, 0, 0.1);
    --border-color: #3a3000;
    --border-color-light: #4a4000;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0f172a;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.7);
    --gradient-1: linear-gradient(135deg, #ffb700 0%, #cc9200 100%);
    --gradient-2: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    --gradient-3: linear-gradient(135deg, #4a3a00 0%, #2a2000 100%);
    --navbar-bg: rgba(26, 20, 0, 0.8);
    --navbar-bg-scrolled: rgba(13, 10, 0, 0.95);
    --card-bg: rgba(26, 20, 0, 0.6);
    --backdrop-blur: blur(20px);
    --color-accent: #ffb700;
    --color-accent-rgb: 255, 183, 0;
    --color-bg-primary: #0d0a00;
}

/* Vegas Neon */
:root[data-theme="vegas"] {
    --primary-color: #ff00ff;
    --primary-hover: #cc00cc;
    --primary-rgb: 255, 0, 255;
    --bg-primary: #0e000e;
    --bg-secondary: #1a0a1a;
    --bg-tertiary: #2a1a2a;
    --bg-quaternary: #3a2a3a;
    --bg-hover: rgba(255, 0, 255, 0.1);
    --border-color: #3a2a3a;
    --border-color-light: #4a3a4a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0f172a;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.7);
    --gradient-1: linear-gradient(135deg, #ff00ff 0%, #cc00cc 100%);
    --gradient-2: linear-gradient(135deg, #ff69ff 0%, #ff00ff 100%);
    --gradient-3: linear-gradient(135deg, #7a1e7a 0%, #4a0e4a 100%);
    --navbar-bg: rgba(26, 10, 26, 0.8);
    --navbar-bg-scrolled: rgba(14, 0, 14, 0.95);
    --card-bg: rgba(26, 10, 26, 0.6);
    --backdrop-blur: blur(20px);
    --color-accent: #ff00ff;
    --color-accent-rgb: 255, 0, 255;
    --color-bg-primary: #0e000e;
}

/* Monte Carlo Elegance */
:root[data-theme="monaco"] {
    --primary-color: #e8e8e8;
    --primary-hover: #b8b8b8;
    --primary-rgb: 232, 232, 232;
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-tertiary: #1e1e1e;
    --bg-quaternary: #2d2d2d;
    --bg-hover: rgba(232, 232, 232, 0.1);
    --border-color: #2d2d2d;
    --border-color-light: #3d3d3d;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0f172a;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.7);
    --gradient-1: linear-gradient(135deg, #e8e8e8 0%, #b8b8b8 100%);
    --gradient-2: linear-gradient(135deg, #ffffff 0%, #e8e8e8 100%);
    --gradient-3: linear-gradient(135deg, #4a4a4a 0%, #2a2a2a 100%);
    --navbar-bg: rgba(20, 20, 20, 0.8);
    --navbar-bg-scrolled: rgba(10, 10, 10, 0.95);
    --card-bg: rgba(20, 20, 20, 0.6);
    --backdrop-blur: blur(20px);
    --color-accent: #e8e8e8;
    --color-accent-rgb: 232, 232, 232;
    --color-bg-primary: #0a0a0a;
}

/* Macau Fortune */
:root[data-theme="macau"] {
    --primary-color: #ffd700;
    --primary-hover: #ccaa00;
    --primary-rgb: 255, 215, 0;
    --bg-primary: #1a0000;
    --bg-secondary: #2a0a0a;
    --bg-tertiary: #3a1414;
    --bg-quaternary: #4a1e1e;
    --bg-hover: rgba(255, 215, 0, 0.1);
    --border-color: #4a1e1e;
    --border-color-light: #5a2e2e;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0f172a;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.7);
    --gradient-1: linear-gradient(135deg, #ffd700 0%, #ccaa00 100%);
    --gradient-2: linear-gradient(135deg, #ffe44d 0%, #ffd700 100%);
    --gradient-3: linear-gradient(135deg, #b22222 0%, #8b0000 100%);
    --navbar-bg: rgba(42, 10, 10, 0.8);
    --navbar-bg-scrolled: rgba(26, 0, 0, 0.95);
    --card-bg: rgba(42, 10, 10, 0.6);
    --backdrop-blur: blur(20px);
    --color-accent: #ffd700;
    --color-accent-rgb: 255, 215, 0;
    --color-bg-primary: #1a0000;
}

/* Atlantic Sunset */
:root[data-theme="atlantic"] {
    --primary-color: #ff8c42;
    --primary-hover: #cc6e35;
    --primary-rgb: 255, 140, 66;
    --bg-primary: #0a1420;
    --bg-secondary: #14202a;
    --bg-tertiary: #1e2e3a;
    --bg-quaternary: #2d3e4a;
    --bg-hover: rgba(255, 140, 66, 0.1);
    --border-color: #2d3e4a;
    --border-color-light: #3d4e5a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0f172a;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.7);
    --gradient-1: linear-gradient(135deg, #ff8c42 0%, #cc6e35 100%);
    --gradient-2: linear-gradient(135deg, #ffaa69 0%, #ff8c42 100%);
    --gradient-3: linear-gradient(135deg, #2e6a9a 0%, #1e4a6a 100%);
    --navbar-bg: rgba(20, 32, 42, 0.8);
    --navbar-bg-scrolled: rgba(10, 20, 32, 0.95);
    --card-bg: rgba(20, 32, 42, 0.6);
    --backdrop-blur: blur(20px);
    --color-accent: #ff8c42;
    --color-accent-rgb: 255, 140, 66;
    --color-bg-primary: #0a1420;
}

/* Black Diamond */
:root[data-theme="diamond"] {
    --primary-color: #00d4ff;
    --primary-hover: #0099cc;
    --primary-rgb: 0, 212, 255;
    --bg-primary: #000000;
    --bg-secondary: #0a0a0f;
    --bg-tertiary: #14141f;
    --bg-quaternary: #1a1a2e;
    --bg-hover: rgba(0, 212, 255, 0.1);
    --border-color: #1a1a2e;
    --border-color-light: #252540;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0f172a;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.7);
    --gradient-1: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    --gradient-2: linear-gradient(135deg, #5ae4ff 0%, #00d4ff 100%);
    --gradient-3: linear-gradient(135deg, #1a1a2e 0%, #000000 100%);
    --navbar-bg: rgba(10, 10, 15, 0.8);
    --navbar-bg-scrolled: rgba(0, 0, 0, 0.95);
    --card-bg: rgba(10, 10, 15, 0.6);
    --backdrop-blur: blur(20px);
    --color-accent: #00d4ff;
    --color-accent-rgb: 0, 212, 255;
    --color-bg-primary: #000000;
}

/* Onyx Gold */
:root[data-theme="onyx"] {
    --primary-color: #c9a961;
    --primary-hover: #a08948;
    --primary-rgb: 201, 169, 97;
    --bg-primary: #000000;
    --bg-secondary: #0a0a08;
    --bg-tertiary: #14140f;
    --bg-quaternary: #1f1f14;
    --bg-hover: rgba(201, 169, 97, 0.1);
    --border-color: #1f1f14;
    --border-color-light: #2a2a1e;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0f172a;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.7);
    --gradient-1: linear-gradient(135deg, #c9a961 0%, #a08948 100%);
    --gradient-2: linear-gradient(135deg, #e0c589 0%, #c9a961 100%);
    --gradient-3: linear-gradient(135deg, #1f1f14 0%, #000000 100%);
    --navbar-bg: rgba(10, 10, 8, 0.8);
    --navbar-bg-scrolled: rgba(0, 0, 0, 0.95);
    --card-bg: rgba(10, 10, 8, 0.6);
    --backdrop-blur: blur(20px);
    --color-accent: #c9a961;
    --color-accent-rgb: 201, 169, 97;
    --color-bg-primary: #000000;
}

/* Crimson Shadow */
:root[data-theme="crimson"] {
    --primary-color: #dc143c;
    --primary-hover: #a00020;
    --primary-rgb: 220, 20, 60;
    --bg-primary: #000000;
    --bg-secondary: #0a0000;
    --bg-tertiary: #140505;
    --bg-quaternary: #1f0a0a;
    --bg-hover: rgba(220, 20, 60, 0.1);
    --border-color: #1f0a0a;
    --border-color-light: #2a1414;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0f172a;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.7);
    --gradient-1: linear-gradient(135deg, #dc143c 0%, #a00020 100%);
    --gradient-2: linear-gradient(135deg, #ff1744 0%, #dc143c 100%);
    --gradient-3: linear-gradient(135deg, #1f0a0a 0%, #000000 100%);
    --navbar-bg: rgba(10, 0, 0, 0.8);
    --navbar-bg-scrolled: rgba(0, 0, 0, 0.95);
    --card-bg: rgba(10, 0, 0, 0.6);
    --backdrop-blur: blur(20px);
    --color-accent: #dc143c;
    --color-accent-rgb: 220, 20, 60;
    --color-bg-primary: #000000;
}

/* Emerald Night */
:root[data-theme="emerald"] {
    --primary-color: #50c878;
    --primary-hover: #3a9b5c;
    --primary-rgb: 80, 200, 120;
    --bg-primary: #000000;
    --bg-secondary: #000a05;
    --bg-tertiary: #00140a;
    --bg-quaternary: #0a2f1a;
    --bg-hover: rgba(80, 200, 120, 0.1);
    --border-color: #0a2f1a;
    --border-color-light: #143f24;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0f172a;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.7);
    --gradient-1: linear-gradient(135deg, #50c878 0%, #3a9b5c 100%);
    --gradient-2: linear-gradient(135deg, #7ce39d 0%, #50c878 100%);
    --gradient-3: linear-gradient(135deg, #0a2f1a 0%, #000000 100%);
    --navbar-bg: rgba(0, 10, 5, 0.8);
    --navbar-bg-scrolled: rgba(0, 0, 0, 0.95);
    --card-bg: rgba(0, 10, 5, 0.6);
    --backdrop-blur: blur(20px);
    --color-accent: #50c878;
    --color-accent-rgb: 80, 200, 120;
    --color-bg-primary: #000000;
}

/* Platinum Elite */
:root[data-theme="platinum"] {
    --primary-color: #e5e4e2;
    --primary-hover: #b8b7b5;
    --primary-rgb: 229, 228, 226;
    --bg-primary: #000000;
    --bg-secondary: #050505;
    --bg-tertiary: #0f0f0f;
    --bg-quaternary: #1a1a1a;
    --bg-hover: rgba(229, 228, 226, 0.1);
    --border-color: #1a1a1a;
    --border-color-light: #252525;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0f172a;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.7);
    --gradient-1: linear-gradient(135deg, #e5e4e2 0%, #b8b7b5 100%);
    --gradient-2: linear-gradient(135deg, #ffffff 0%, #e5e4e2 100%);
    --gradient-3: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    --navbar-bg: rgba(5, 5, 5, 0.8);
    --navbar-bg-scrolled: rgba(0, 0, 0, 0.95);
    --card-bg: rgba(5, 5, 5, 0.6);
    --backdrop-blur: blur(20px);
    --color-accent: #e5e4e2;
    --color-accent-rgb: 229, 228, 226;
    --color-bg-primary: #000000;
}

/* Purple Haze */
:root[data-theme="haze"] {
    --primary-color: #667eea;
    --primary-hover: #764ba2;
    --primary-rgb: 102, 126, 234;
    --bg-primary: #0a0e1a;
    --bg-secondary: #0f1323;
    --bg-tertiary: #1a1f3a;
    --bg-quaternary: #1e2438;
    --bg-hover: rgba(102, 126, 234, 0.1);
    --border-color: #1e2438;
    --border-color-light: #252b45;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0f172a;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.7);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #a78bfa 0%, #667eea 100%);
    --gradient-3: linear-gradient(135deg, #1a1f3a 0%, #0a0e1a 100%);
    --navbar-bg: rgba(15, 19, 35, 0.8);
    --navbar-bg-scrolled: rgba(10, 14, 26, 0.95);
    --card-bg: rgba(15, 19, 35, 0.6);
    --backdrop-blur: blur(20px);
    --color-accent: #667eea;
    --color-accent-rgb: 102, 126, 234;
    --color-bg-primary: #0a0e1a;
}

/* Emerald Forest */
:root[data-theme="forest"] {
    --primary-color: #10b981;
    --primary-hover: #059669;
    --primary-rgb: 16, 185, 129;
    --bg-primary: #0a1410;
    --bg-secondary: #0f1915;
    --bg-tertiary: #14241d;
    --bg-quaternary: #1a2f25;
    --bg-hover: rgba(16, 185, 129, 0.1);
    --border-color: #1a2f25;
    --border-color-light: #203a2d;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0f172a;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.7);
    --gradient-1: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-2: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    --gradient-3: linear-gradient(135deg, #1a2f1a 0%, #0a1410 100%);
    --navbar-bg: rgba(15, 25, 21, 0.8);
    --navbar-bg-scrolled: rgba(10, 20, 16, 0.95);
    --card-bg: rgba(15, 25, 21, 0.6);
    --backdrop-blur: blur(20px);
    --color-accent: #10b981;
    --color-accent-rgb: 16, 185, 129;
    --color-bg-primary: #0a1410;
}

/* Poker Table — premium casino felt + gold accents */
:root[data-theme="poker"] {
    /* Gold accent — rich casino chip gold */
    --primary-color: #d4a843;
    --primary-hover: #e8be5a;
    --primary-rgb: 212, 168, 67;

    /* Backgrounds — deep green felt with subtle warmth */
    --bg-primary: #0c1f12;
    --bg-secondary: #122c1a;
    --bg-tertiary: #183d24;
    --bg-quaternary: #1f4e2e;
    --bg-hover: rgba(212, 168, 67, 0.08);

    /* Borders — muted green, visible but not harsh */
    --border-color: #1a3d24;
    --border-color-light: #245a35;

    /* Text — warm ivory like card paper */
    --text-primary: #f4edd8;
    --text-secondary: #b0c4a0;
    --text-muted: #6d8a5c;
    --text-inverse: #0c1f12;

    /* Status — vibrant on dark green */
    --success: #4ade80;
    --warning: #d4a843;
    --danger: #e5383b;
    --info: #7dbbe0;

    /* Shadows — deep green-tinted */
    --shadow-sm: 0 1px 3px rgba(5, 15, 8, 0.6);
    --shadow-md: 0 4px 14px rgba(5, 15, 8, 0.6);
    --shadow-lg: 0 10px 40px rgba(5, 15, 8, 0.7);
    --shadow-xl: 0 20px 60px rgba(5, 15, 8, 0.8);

    /* Gradients — gold-to-bronze & emerald depth */
    --gradient-1: linear-gradient(135deg, #d4a843 0%, #9a7420 100%);
    --gradient-2: linear-gradient(135deg, #f0d06a 0%, #d4a843 100%);
    --gradient-3: linear-gradient(135deg, #1a3d24 0%, #0c1f12 100%);

    /* Chrome — glass over felt */
    --navbar-bg: rgba(18, 44, 26, 0.9);
    --navbar-bg-scrolled: rgba(12, 31, 18, 0.97);
    --card-bg: rgba(18, 44, 26, 0.75);
    --backdrop-blur: blur(20px);

    /* Game accent sync */
    --color-accent: #d4a843;
    --color-accent-rgb: 212, 168, 67;
    --color-bg-primary: #0c1f12;
}

/* Midnight Velvet — deep purple velvet + silver accents */
:root[data-theme="velvet"] {
    --primary-color: #c0c0c0;
    --primary-hover: #d8d8d8;
    --primary-rgb: 192, 192, 192;
    --bg-primary: #0e0a18;
    --bg-secondary: #160f24;
    --bg-tertiary: #1e1530;
    --bg-quaternary: #281e40;
    --bg-hover: rgba(192, 192, 192, 0.08);
    --border-color: #281e40;
    --border-color-light: #362a54;
    --text-primary: #ede8f5;
    --text-secondary: #a99cc4;
    --text-muted: #6b5d85;
    --text-inverse: #0e0a18;
    --success: #4ade80;
    --warning: #fbbf24;
    --danger: #f43f5e;
    --info: #a78bfa;
    --shadow-sm: 0 1px 3px rgba(10, 5, 20, 0.6);
    --shadow-md: 0 4px 14px rgba(10, 5, 20, 0.6);
    --shadow-lg: 0 10px 40px rgba(10, 5, 20, 0.7);
    --shadow-xl: 0 20px 60px rgba(10, 5, 20, 0.8);
    --gradient-1: linear-gradient(135deg, #c0c0c0 0%, #8a7fb0 100%);
    --gradient-2: linear-gradient(135deg, #e0d8f0 0%, #c0c0c0 100%);
    --gradient-3: linear-gradient(135deg, #1e1530 0%, #0e0a18 100%);
    --navbar-bg: rgba(22, 15, 36, 0.9);
    --navbar-bg-scrolled: rgba(14, 10, 24, 0.97);
    --card-bg: rgba(22, 15, 36, 0.75);
    --backdrop-blur: blur(20px);
    --color-accent: #c0c0c0;
    --color-accent-rgb: 192, 192, 192;
    --color-bg-primary: #0e0a18;
}

/* Royal Flush — black + regal red + gold trim */
:root[data-theme="royalflush"] {
    --primary-color: #e8b830;
    --primary-hover: #f0cc50;
    --primary-rgb: 232, 184, 48;
    --bg-primary: #080406;
    --bg-secondary: #12080a;
    --bg-tertiary: #1c0e12;
    --bg-quaternary: #28141a;
    --bg-hover: rgba(232, 184, 48, 0.08);
    --border-color: #28141a;
    --border-color-light: #3a1c26;
    --text-primary: #f8f0e0;
    --text-secondary: #c4a08a;
    --text-muted: #7a5c4c;
    --text-inverse: #080406;
    --success: #4ade80;
    --warning: #e8b830;
    --danger: #cc1630;
    --info: #60a5fa;
    --shadow-sm: 0 1px 3px rgba(8, 2, 4, 0.7);
    --shadow-md: 0 4px 14px rgba(8, 2, 4, 0.7);
    --shadow-lg: 0 10px 40px rgba(8, 2, 4, 0.8);
    --shadow-xl: 0 20px 60px rgba(8, 2, 4, 0.9);
    --gradient-1: linear-gradient(135deg, #e8b830 0%, #cc1630 100%);
    --gradient-2: linear-gradient(135deg, #f0d060 0%, #e8b830 100%);
    --gradient-3: linear-gradient(135deg, #1c0e12 0%, #080406 100%);
    --navbar-bg: rgba(18, 8, 10, 0.9);
    --navbar-bg-scrolled: rgba(8, 4, 6, 0.97);
    --card-bg: rgba(18, 8, 10, 0.75);
    --backdrop-blur: blur(20px);
    --color-accent: #e8b830;
    --color-accent-rgb: 232, 184, 48;
    --color-bg-primary: #080406;
}

/* Neon Arcade — black + cyan neon + pink electric */
:root[data-theme="neon"] {
    --primary-color: #00e5ff;
    --primary-hover: #40efff;
    --primary-rgb: 0, 229, 255;
    --bg-primary: #05050a;
    --bg-secondary: #0a0a14;
    --bg-tertiary: #0f0f1e;
    --bg-quaternary: #16162a;
    --bg-hover: rgba(0, 229, 255, 0.08);
    --border-color: #16162a;
    --border-color-light: #20203a;
    --text-primary: #e8f8ff;
    --text-secondary: #80c8d8;
    --text-muted: #4a7a88;
    --text-inverse: #05050a;
    --success: #00ff88;
    --warning: #ffe500;
    --danger: #ff2a6d;
    --info: #00e5ff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.7);
    --shadow-md: 0 4px 14px rgba(0, 229, 255, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 229, 255, 0.1);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.8);
    --gradient-1: linear-gradient(135deg, #00e5ff 0%, #ff2a6d 100%);
    --gradient-2: linear-gradient(135deg, #40efff 0%, #00e5ff 100%);
    --gradient-3: linear-gradient(135deg, #0f0f1e 0%, #05050a 100%);
    --navbar-bg: rgba(10, 10, 20, 0.9);
    --navbar-bg-scrolled: rgba(5, 5, 10, 0.97);
    --card-bg: rgba(10, 10, 20, 0.8);
    --backdrop-blur: blur(20px);
    --color-accent: #00e5ff;
    --color-accent-rgb: 0, 229, 255;
    --color-bg-primary: #05050a;
}

/* Whiskey Lounge — dark brown + warm amber */
:root[data-theme="whiskey"] {
    --primary-color: #d4920a;
    --primary-hover: #e8a820;
    --primary-rgb: 212, 146, 10;
    --bg-primary: #100a04;
    --bg-secondary: #1a1008;
    --bg-tertiary: #24180c;
    --bg-quaternary: #302012;
    --bg-hover: rgba(212, 146, 10, 0.08);
    --border-color: #302012;
    --border-color-light: #40301a;
    --text-primary: #f4e8d4;
    --text-secondary: #b8a088;
    --text-muted: #7a6450;
    --text-inverse: #100a04;
    --success: #4ade80;
    --warning: #d4920a;
    --danger: #dc2626;
    --info: #60a5fa;
    --shadow-sm: 0 1px 3px rgba(10, 6, 2, 0.6);
    --shadow-md: 0 4px 14px rgba(10, 6, 2, 0.6);
    --shadow-lg: 0 10px 40px rgba(10, 6, 2, 0.7);
    --shadow-xl: 0 20px 60px rgba(10, 6, 2, 0.8);
    --gradient-1: linear-gradient(135deg, #d4920a 0%, #8a5a00 100%);
    --gradient-2: linear-gradient(135deg, #f0b830 0%, #d4920a 100%);
    --gradient-3: linear-gradient(135deg, #24180c 0%, #100a04 100%);
    --navbar-bg: rgba(26, 16, 8, 0.9);
    --navbar-bg-scrolled: rgba(16, 10, 4, 0.97);
    --card-bg: rgba(26, 16, 8, 0.75);
    --backdrop-blur: blur(20px);
    --color-accent: #d4920a;
    --color-accent-rgb: 212, 146, 10;
    --color-bg-primary: #100a04;
}

/* Ice Casino — glacial blue + silver white */
:root[data-theme="ice"] {
    --primary-color: #7dd3fc;
    --primary-hover: #a5e0fd;
    --primary-rgb: 125, 211, 252;
    --bg-primary: #060c14;
    --bg-secondary: #0a1420;
    --bg-tertiary: #101e30;
    --bg-quaternary: #162840;
    --bg-hover: rgba(125, 211, 252, 0.08);
    --border-color: #162840;
    --border-color-light: #1e3854;
    --text-primary: #e8f4fc;
    --text-secondary: #90b8d4;
    --text-muted: #5a8098;
    --text-inverse: #060c14;
    --success: #4ade80;
    --warning: #fbbf24;
    --danger: #f43f5e;
    --info: #7dd3fc;
    --shadow-sm: 0 1px 3px rgba(4, 8, 16, 0.6);
    --shadow-md: 0 4px 14px rgba(4, 8, 16, 0.6);
    --shadow-lg: 0 10px 40px rgba(4, 8, 16, 0.7);
    --shadow-xl: 0 20px 60px rgba(4, 8, 16, 0.8);
    --gradient-1: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 100%);
    --gradient-2: linear-gradient(135deg, #bae6fd 0%, #7dd3fc 100%);
    --gradient-3: linear-gradient(135deg, #101e30 0%, #060c14 100%);
    --navbar-bg: rgba(10, 20, 32, 0.9);
    --navbar-bg-scrolled: rgba(6, 12, 20, 0.97);
    --card-bg: rgba(10, 20, 32, 0.75);
    --backdrop-blur: blur(20px);
    --color-accent: #7dd3fc;
    --color-accent-rgb: 125, 211, 252;
    --color-bg-primary: #060c14;
}

/* Dragon Fortune — black + Chinese red + imperial gold */
:root[data-theme="dragon"] {
    --primary-color: #e83020;
    --primary-hover: #f04838;
    --primary-rgb: 232, 48, 32;
    --bg-primary: #0a0404;
    --bg-secondary: #140808;
    --bg-tertiary: #1e0c0c;
    --bg-quaternary: #2a1212;
    --bg-hover: rgba(232, 48, 32, 0.08);
    --border-color: #2a1212;
    --border-color-light: #3c1a1a;
    --text-primary: #f8ece8;
    --text-secondary: #c4a098;
    --text-muted: #7a5c54;
    --text-inverse: #0a0404;
    --success: #4ade80;
    --warning: #f0c030;
    --danger: #e83020;
    --info: #60a5fa;
    --shadow-sm: 0 1px 3px rgba(8, 2, 2, 0.6);
    --shadow-md: 0 4px 14px rgba(8, 2, 2, 0.6);
    --shadow-lg: 0 10px 40px rgba(8, 2, 2, 0.7);
    --shadow-xl: 0 20px 60px rgba(8, 2, 2, 0.8);
    --gradient-1: linear-gradient(135deg, #e83020 0%, #f0c030 100%);
    --gradient-2: linear-gradient(135deg, #f06050 0%, #e83020 100%);
    --gradient-3: linear-gradient(135deg, #1e0c0c 0%, #0a0404 100%);
    --navbar-bg: rgba(20, 8, 8, 0.9);
    --navbar-bg-scrolled: rgba(10, 4, 4, 0.97);
    --card-bg: rgba(20, 8, 8, 0.75);
    --backdrop-blur: blur(20px);
    --color-accent: #e83020;
    --color-accent-rgb: 232, 48, 32;
    --color-bg-primary: #0a0404;
}

/* Sahara Gold — sand beige + intense gold */
:root[data-theme="sahara"] {
    --primary-color: #e8a830;
    --primary-hover: #f0c050;
    --primary-rgb: 232, 168, 48;
    --bg-primary: #100c06;
    --bg-secondary: #1a140a;
    --bg-tertiary: #241c10;
    --bg-quaternary: #302616;
    --bg-hover: rgba(232, 168, 48, 0.08);
    --border-color: #302616;
    --border-color-light: #403420;
    --text-primary: #f8f0e0;
    --text-secondary: #c4b090;
    --text-muted: #8a7860;
    --text-inverse: #100c06;
    --success: #4ade80;
    --warning: #e8a830;
    --danger: #dc2626;
    --info: #60a5fa;
    --shadow-sm: 0 1px 3px rgba(10, 8, 4, 0.6);
    --shadow-md: 0 4px 14px rgba(10, 8, 4, 0.6);
    --shadow-lg: 0 10px 40px rgba(10, 8, 4, 0.7);
    --shadow-xl: 0 20px 60px rgba(10, 8, 4, 0.8);
    --gradient-1: linear-gradient(135deg, #e8a830 0%, #c48010 100%);
    --gradient-2: linear-gradient(135deg, #f0c860 0%, #e8a830 100%);
    --gradient-3: linear-gradient(135deg, #241c10 0%, #100c06 100%);
    --navbar-bg: rgba(26, 20, 10, 0.9);
    --navbar-bg-scrolled: rgba(16, 12, 6, 0.97);
    --card-bg: rgba(26, 20, 10, 0.75);
    --backdrop-blur: blur(20px);
    --color-accent: #e8a830;
    --color-accent-rgb: 232, 168, 48;
    --color-bg-primary: #100c06;
}

/* Cyber Punk — black + matrix green + electric yellow */
:root[data-theme="cyber"] {
    --primary-color: #39ff14;
    --primary-hover: #66ff44;
    --primary-rgb: 57, 255, 20;
    --bg-primary: #040604;
    --bg-secondary: #080c08;
    --bg-tertiary: #0e140e;
    --bg-quaternary: #141e14;
    --bg-hover: rgba(57, 255, 20, 0.06);
    --border-color: #141e14;
    --border-color-light: #1e2e1e;
    --text-primary: #e0ffe0;
    --text-secondary: #80c080;
    --text-muted: #4a7a4a;
    --text-inverse: #040604;
    --success: #39ff14;
    --warning: #ffe500;
    --danger: #ff1744;
    --info: #40c4ff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.7);
    --shadow-md: 0 4px 14px rgba(57, 255, 20, 0.1);
    --shadow-lg: 0 10px 40px rgba(57, 255, 20, 0.08);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.8);
    --gradient-1: linear-gradient(135deg, #39ff14 0%, #ffe500 100%);
    --gradient-2: linear-gradient(135deg, #66ff44 0%, #39ff14 100%);
    --gradient-3: linear-gradient(135deg, #0e140e 0%, #040604 100%);
    --navbar-bg: rgba(8, 12, 8, 0.9);
    --navbar-bg-scrolled: rgba(4, 6, 4, 0.97);
    --card-bg: rgba(8, 12, 8, 0.8);
    --backdrop-blur: blur(20px);
    --color-accent: #39ff14;
    --color-accent-rgb: 57, 255, 20;
    --color-bg-primary: #040604;
}

/* Champagne — warm cream + rose gold elegance */
:root[data-theme="champagne"] {
    --primary-color: #d4856a;
    --primary-hover: #e09880;
    --primary-rgb: 212, 133, 106;
    --bg-primary: #100c0a;
    --bg-secondary: #1a1410;
    --bg-tertiary: #241c18;
    --bg-quaternary: #302620;
    --bg-hover: rgba(212, 133, 106, 0.08);
    --border-color: #302620;
    --border-color-light: #40342c;
    --text-primary: #f8f0ea;
    --text-secondary: #c4b0a4;
    --text-muted: #8a7a6e;
    --text-inverse: #100c0a;
    --success: #4ade80;
    --warning: #fbbf24;
    --danger: #f43f5e;
    --info: #d4856a;
    --shadow-sm: 0 1px 3px rgba(10, 8, 6, 0.6);
    --shadow-md: 0 4px 14px rgba(10, 8, 6, 0.6);
    --shadow-lg: 0 10px 40px rgba(10, 8, 6, 0.7);
    --shadow-xl: 0 20px 60px rgba(10, 8, 6, 0.8);
    --gradient-1: linear-gradient(135deg, #d4856a 0%, #b06848 100%);
    --gradient-2: linear-gradient(135deg, #e8a890 0%, #d4856a 100%);
    --gradient-3: linear-gradient(135deg, #241c18 0%, #100c0a 100%);
    --navbar-bg: rgba(26, 20, 16, 0.9);
    --navbar-bg-scrolled: rgba(16, 12, 10, 0.97);
    --card-bg: rgba(26, 20, 16, 0.75);
    --backdrop-blur: blur(20px);
    --color-accent: #d4856a;
    --color-accent-rgb: 212, 133, 106;
    --color-bg-primary: #100c0a;
}

/* Steampunk — bronze + copper + vintage green */
:root[data-theme="steampunk"] {
    --primary-color: #cd7f32;
    --primary-hover: #da9548;
    --primary-rgb: 205, 127, 50;
    --bg-primary: #0c0a06;
    --bg-secondary: #14100a;
    --bg-tertiary: #1e1810;
    --bg-quaternary: #282016;
    --bg-hover: rgba(205, 127, 50, 0.08);
    --border-color: #282016;
    --border-color-light: #382c1e;
    --text-primary: #f0e8d8;
    --text-secondary: #b8a890;
    --text-muted: #7a6c58;
    --text-inverse: #0c0a06;
    --success: #6db56d;
    --warning: #cd7f32;
    --danger: #c44040;
    --info: #6a9fb5;
    --shadow-sm: 0 1px 3px rgba(8, 6, 4, 0.6);
    --shadow-md: 0 4px 14px rgba(8, 6, 4, 0.6);
    --shadow-lg: 0 10px 40px rgba(8, 6, 4, 0.7);
    --shadow-xl: 0 20px 60px rgba(8, 6, 4, 0.8);
    --gradient-1: linear-gradient(135deg, #cd7f32 0%, #8b5a20 100%);
    --gradient-2: linear-gradient(135deg, #da9548 0%, #cd7f32 100%);
    --gradient-3: linear-gradient(135deg, #1e1810 0%, #0c0a06 100%);
    --navbar-bg: rgba(20, 16, 10, 0.9);
    --navbar-bg-scrolled: rgba(12, 10, 6, 0.97);
    --card-bg: rgba(20, 16, 10, 0.75);
    --backdrop-blur: blur(20px);
    --color-accent: #cd7f32;
    --color-accent-rgb: 205, 127, 50;
    --color-bg-primary: #0c0a06;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*, *::before, *::after {
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    line-height: 1.6;
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */

.theme-toggle-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-1);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: var(--shadow-xl);
}

.theme-toggle-btn:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .theme-toggle-btn {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-quaternary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ============================================
   SELECTION
   ============================================ */

::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* ============================================
   FOCUS STYLES
   ============================================ */

:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ============================================
   BOOTSTRAP OVERRIDES
   ============================================ */

/* Navbar */
.navbar {
    background: var(--navbar-bg) !important;
    backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid var(--border-color) !important;
}

/* ============================================
   SITE HEADER - Nav Bar Primary (Septica style)
   ============================================ */

.site-header {
    background: var(--navbar-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid var(--border-color);
    padding: 6px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled {
    background: var(--navbar-bg-scrolled);
    padding: 4px 0 2px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15), var(--shadow-md);
}

/* Header Brand (pinned to left edge of header) */
.header-brand {
    display: none;
}

.header-brand-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.header-brand-logo {
    max-height: 28px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
}

.header-brand-name {
    display: none;
}

/* Nav Bar Primary */
.nav-bar-primary {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    width: 100%;
    margin: 0 auto;
    padding: 0 4px;
}

.nav-bar-btn {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    height: 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-bar-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    border-radius: 50%;
}

.nav-bar-btn:hover::before {
    width: 120px;
    height: 120px;
}

.nav-bar-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
    text-decoration: none !important;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.15),
        0 0 20px rgba(102, 126, 234, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-bar-btn.active {
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.18) 0%,
        rgba(102, 126, 234, 0.08) 100%
    );
    color: var(--primary-color);
    border: 2px solid rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
    box-shadow:
        0 0 25px rgba(102, 126, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(102, 126, 234, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15); }
    50% { box-shadow: 0 0 30px rgba(102, 126, 234, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15); }
}

/* Icon styles kept for backward compatibility (icons removed from navbar) */
.nav-bar-btn .material-symbols-rounded {
    display: none;
}

.nav-bar-label {
    font-size: clamp(11px, 2vw, 14px);
    font-weight: 900;
    letter-spacing: 1px;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    background: linear-gradient(180deg, var(--text-secondary, #999), var(--text-muted, #555));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-bar-btn:hover .nav-bar-label {
    opacity: 0.85;
    transform: translateX(2px);
    background: linear-gradient(180deg, var(--text-primary, #eee), var(--text-secondary, #999));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-bar-btn.active .nav-bar-label {
    font-size: clamp(12px, 2.2vw, 15px);
    background: linear-gradient(180deg, var(--text-secondary, #999), var(--text-muted, #555));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 1;
}

/* Nav Badge */
.nav-badge {
    position: absolute;
    top: 4px;
    right: calc(50% - 16px);
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 9px;
    font-weight: 700;
    border-radius: 100px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    z-index: 2;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 2px 16px rgba(239, 68, 68, 0.6); }
}

/* ── FAB Button (center nav) ── */
.nav-bar-fab {
    position: relative;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    background: linear-gradient(145deg, #e20821 0%, #931414 50%, #10172c 100% 100%);
    border: 3px solid var(--bg-primary, #0a0e1a);
    border-radius: 50%;
    color: white !important;
    cursor: pointer;
    text-decoration: none !important;
    transform: translateY(-10px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.5),
        0 8px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.nav-bar-fab::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.2) 0%, transparent 70%);
    z-index: -1;
    opacity: 1;
    transition: opacity 0.35s ease;
}

.nav-bar-fab:hover {
    transform: translateY(-12px) scale(1.06);
    color: white !important;
    text-decoration: none !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.12),
        0 6px 16px rgba(0, 0, 0, 0.6),
        0 12px 32px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.nav-bar-fab:hover::before {
    opacity: 1;
}

/* ── FAB Flip (avatar / logout) ── */
.fab-flipper-wrap {
    perspective: 400px;
}
.fab-flipper {
    width: 42px;
    height: 42px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.fab-flipper.flipped {
    transform: rotateY(180deg);
}
.fab-face {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    border-radius: 50%;
    overflow: hidden;
}
.fab-front {
    z-index: 2;
}
.fab-back {
    transform: rotateY(180deg);
    background: linear-gradient(145deg, #dc2626, #991b1b);
    z-index: 1;
}
.fab-back .material-symbols-rounded {
    font-size: 22px;
    color: #fff;
}
/* Peek animation — subtle hint flip */
@keyframes fabPeek {
    0%   { transform: rotateY(0deg); }
    30%  { transform: rotateY(90deg); }
    50%  { transform: rotateY(180deg); }
    70%  { transform: rotateY(180deg); }
    100% { transform: rotateY(360deg); }
}
.fab-flipper.peek {
    animation: fabPeek 1.5s ease-in-out;
}

/* (FAB flip handles logout hint visually via .fab-back face) */

.nav-bar-fab:active {
    transform: translateY(-8px) scale(0.96);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.25);
}

.nav-bar-fab .material-symbols-rounded {
    font-size: 22px;
    font-variation-settings: 'FILL' 1;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.nav-bar-fab .nav-bar-label {
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ── FAB Logo (guest) ── */
.nav-bar-fab-logo {
    padding: 0;
    overflow: visible;
    animation: fabGuestBounce 3s ease-in-out 2s infinite;
}
.fab-logo-img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 50%;
    pointer-events: none;
}
.fab-logo-icon {
    font-size: 22px;
    color: #fff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Pulsing ring — draws attention */
.nav-bar-fab-logo::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--primary-color, #667eea);
    opacity: 0;
    animation: fabRingPulse 3s ease-in-out 2s infinite;
    pointer-events: none;
}

/* Label "Intră" sub FAB */
.nav-bar-fab-logo .fab-guest-label {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-color, #667eea);
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    animation: fabLabelFade 3s ease-in-out 2s infinite;
}

@keyframes fabRingPulse {
    0%, 100% { opacity: 0; transform: scale(1); }
    15% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 0; transform: scale(1.35); }
}
@keyframes fabGuestBounce {
    0%, 100% { transform: translateY(-10px); }
    12% { transform: translateY(-15px); }
    24% { transform: translateY(-10px); }
}
@keyframes fabLabelFade {
    0%, 100% { opacity: 0.5; }
    15% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ── FAB Avatar + Logout Pill (logged in) ── */
.fab-avatar-wrap {
    position: relative;
    flex: 0 0 auto;
    z-index: 2;
}

.nav-bar-fab-avatar {
    background: linear-gradient(145deg, #0f0f10 0%, #0f172b 50%, #d5c672 100%);
    padding: 0;
    overflow: visible;
}
.nav-bar-fab-avatar::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.15);
    pointer-events: none;
    z-index: 3;
}

.fab-avatar-img {
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    top: 3px; left: 3px;
    z-index: 1;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}
.fab-avatar-text {
    font-size: 16px;
    font-weight: 800;
    color: white;
    letter-spacing: 1px;
    line-height: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Logout pill — slides out from under avatar on hover */
.fab-logout-pill {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    border: 2px solid var(--bg-primary, #0a0e1a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none !important;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    box-shadow: 0 3px 10px rgba(220, 38, 38, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.fab-logout-pill .material-symbols-rounded {
    font-size: 14px;
    display: block;
}
.fab-avatar-wrap:hover .fab-logout-pill {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(80%);
}
.fab-logout-pill:hover {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    transform: translateX(-50%) translateY(80%) scale(1.15) !important;
    color: #fff;
}

.fab-badge {
    position: absolute;
    top: 3px;
    right: -2px;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    border-radius: 7px;
    background: var(--danger, #ef4444);
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    line-height: 14px;
    text-align: center;
    z-index: 10;
    box-shadow: 0 1px 4px rgba(239, 68, 68, 0.4), 0 0 0 1.5px var(--bg-primary, #0a0e1a);
    animation: fabBadgePulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes fabBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ============================================
   DRAWER PANEL
   ============================================ */

.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.drawer-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 70vh;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    border-radius: 20px 20px 0 0;
    padding: 0 16px 20px;
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
}

.drawer-panel.open {
    transform: translateY(0);
}

.drawer-handle {
    display: flex;
    justify-content: center;
    padding: 12px 0 8px;
    cursor: grab;
}

.drawer-handle-bar {
    width: 40px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 2px;
    opacity: 0.4;
}

/* Drawer Quick Toggles */
.drawer-toggles {
    display: flex;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 12px;
}

.drawer-toggle-btn {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
}

.drawer-toggle-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    color: var(--primary-color);
    text-decoration: none !important;
}

.drawer-toggle-btn .material-symbols-rounded {
    font-size: 20px;
}

.drawer-toggle-btn .nav-badge {
    position: static;
    margin-left: 2px;
}

/* Theme Picker */
.theme-picker {
    padding: 0 0 10px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 12px;
    animation: themePickerSlide 0.25s ease-out;
}

@keyframes themePickerSlide {
    from { opacity: 0; max-height: 0; transform: translateY(-8px); }
    to { opacity: 1; max-height: 300px; transform: translateY(0); }
}

.theme-picker-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.theme-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 2px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-swatch:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.theme-swatch.active {
    background: rgba(var(--color-accent-rgb, 59, 130, 246), 0.12);
    border-color: var(--color-accent, var(--primary-color));
}

.theme-swatch.active .swatch-color {
    box-shadow: 0 0 0 2px var(--bg-primary, #0a0e1a), 0 0 0 4px var(--color-accent, var(--primary-color));
}

.swatch-color {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.swatch-name {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.theme-swatch.active .swatch-name {
    color: var(--color-accent, var(--primary-color));
}

.theme-swatch:hover .swatch-name {
    color: var(--text-secondary);
}

/* Theme toggle arrow indicator */
#themeToggle .theme-arrow {
    font-size: 16px;
    transition: transform 0.2s ease;
}

#themeToggle.picker-open .theme-arrow {
    transform: rotate(180deg);
}

/* Drawer Categories */
.drawer-category {
    margin-bottom: 12px;
}

.drawer-category-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 4px 0;
}

.drawer-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.drawer-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 4px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none !important;
}

.drawer-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(102, 126, 234, 0.3);
    color: var(--text-primary);
    text-decoration: none !important;
}

.drawer-item:active {
    transform: scale(0.96);
}

.drawer-item .material-symbols-rounded {
    font-size: 22px;
    transition: all 0.3s ease;
}

.drawer-item:hover .material-symbols-rounded {
    color: var(--primary-color);
    transform: scale(1.1);
}

.drawer-item .nav-badge {
    position: absolute;
    top: 4px;
    right: 4px;
}

.drawer-item-exit {
    color: var(--danger) !important;
}

.drawer-item-exit .material-symbols-rounded {
    color: var(--danger) !important;
}

/* ============================================
   LIGHT THEME OVERRIDES - Nav Bar
   ============================================ */

:root[data-theme="light"] .nav-bar-btn {
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

:root[data-theme="light"] .nav-bar-btn:hover {
    color: var(--text-primary);
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
}

:root[data-theme="light"] .nav-bar-btn.active {
    color: var(--primary-color);
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.15) 0%,
        rgba(102, 126, 234, 0.08) 100%
    );
    border-color: var(--primary-color);
}

:root[data-theme="light"] .nav-bar-label {
    background: linear-gradient(180deg, var(--text-secondary, #555), var(--text-muted, #888));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
:root[data-theme="light"] .nav-bar-btn.active .nav-bar-label {
    background: linear-gradient(180deg, var(--text-secondary, #555), var(--text-muted, #888));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

:root[data-theme="light"] .nav-bar-fab {
    color: white !important;
    border-color: var(--bg-primary, #f8f9fa);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.06),
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
:root[data-theme="light"] .fab-badge {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2), 0 0 0 2px var(--bg-primary, #f8f9fa);
}

:root[data-theme="light"] .drawer-panel {
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.1);
}

:root[data-theme="light"] .drawer-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}

:root[data-theme="light"] .drawer-item:hover {
    background: rgba(102, 126, 234, 0.08);
}

:root[data-theme="light"] .drawer-toggle-btn {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] .theme-swatch:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] .theme-swatch.active {
    background: rgba(59, 130, 246, 0.08);
    border-color: var(--primary-color);
}

:root[data-theme="light"] .theme-swatch.active .swatch-color {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--primary-color);
}

:root[data-theme="light"] .theme-picker {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

/* ===== Theme Popup (navbar) ===== */
.theme-popup-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.theme-popup-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.theme-popup {
    position: fixed;
    bottom: 70px;
    right: 16px;
    width: min(320px, calc(100vw - 32px));
    max-height: 60vh;
    overflow-y: auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    z-index: 2000;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(20px);
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.theme-popup.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.theme-popup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}
.theme-popup-header .material-symbols-rounded {
    font-size: 20px;
    color: var(--primary-color);
}

/* Light theme override */
:root[data-theme="light"] .theme-popup {
    background: var(--bg-primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* ============================================
   RESPONSIVE - Nav Bar
   ============================================ */

@media (min-width: 992px) {
    .nav-bar-primary {
        max-width: 600px;
        gap: 8px;
    }
    .nav-bar-btn {
        height: 46px;
    }
    .nav-bar-fab {
        width: 52px;
        height: 50px;
    }
    .nav-bar-fab .material-symbols-rounded {
        font-size: 24px;
    }
    .nav-bar-label {
        font-size: clamp(12px, 1.8vw, 15px);
    }
}

@media (max-width: 575.98px) {
    .site-header {
        padding: 6px 0 2px;
    }
    .header-brand {
        display: none;
    }
    .nav-bar-btn {
        height: 40px;
    }
    .nav-bar-fab {
        width: 44px;
        height: 44px;
        transform: translateY(-8px);
        border-width: 2.5px;
    }
    .nav-bar-fab:hover {
        transform: translateY(-10px) scale(1.05);
    }
    .nav-bar-label {
        font-size: clamp(9px, 2.5vw, 12px);
    }
}

@media (max-width: 374px) {
    .nav-bar-btn {
        height: 36px;
    }
    .nav-bar-btn .nav-badge {
        display: none;
    }
    .nav-bar-fab {
        width: 44px;
        height: 44px;
        transform: translateY(-6px);
    }
    .nav-bar-fab .material-symbols-rounded {
        font-size: 22px;
    }
    .nav-bar-label {
        font-size: clamp(8px, 2.2vw, 10px);
        letter-spacing: 0.5px;
    }
}
/* Cards */
.card {
    background: var(--bg-tertiary) !important; /* slightly darker than page */
    border: 1px solid rgba(15,23,42,0.06) !important; /* subtle but visible */
    color: var(--text-primary) !important;
}

.form-control,
.form-select {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

/* ============================================
   MODAL & AUTH BUTTON STYLES (GLOBAL)
   Ensures Login/Register/Contact modals look identical across pages
   ============================================ */

.modal-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.modal-divider::before,
.modal-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: rgba(102, 126, 234, 0.12);
}

.modal-divider::before { left: 0; }
.modal-divider::after { right: 0; }

.btn-close {
    filter: invert(1);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 16px 24px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 8px 24px rgba(102, 126, 234, 0.4),
        0 4px 12px rgba(118, 75, 162, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-gradient:hover::before {
    left: 100%;
}

.btn-gradient:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(102, 126, 234, 0.6),
        0 8px 20px rgba(118, 75, 162, 0.5),
        0 0 60px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-gradient:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 
        0 6px 20px rgba(102, 126, 234, 0.5),
        0 3px 10px rgba(118, 75, 162, 0.4);
}

.btn-gradient i {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-gradient:hover i {
    transform: scale(1.2) rotate(5deg);
}

.btn-outline:hover,
.btn-outline:focus {
    background: var(--hover-neutral) !important;
    border-color: rgba(15,23,42,0.08) !important;
}

.card-header {
    background: var(--bg-tertiary) !important;
    border-bottom: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.card-body {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

.card-footer {
    background: var(--bg-tertiary) !important;
    border-top: 1px solid var(--border-color) !important;
}

/* Modals */
.modal-content {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.modal-header {
    background: var(--bg-secondary) !important;
    border-bottom: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.modal-body {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

.modal-footer {
    background: var(--bg-secondary) !important;
    border-top: 1px solid var(--border-color) !important;
}

.modal-title {
    color: var(--text-primary) !important;
}

.btn-close {
    filter: invert(1);
}
:root[data-theme="light"] .btn-close {
    filter: invert(0);
}

/* Dropdowns */
.dropdown-menu {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-lg) !important;
}

.dropdown-item {
    color: var(--text-primary) !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--hover-neutral) !important;
    color: var(--text-primary) !important;
}

.dropdown-divider {
    border-top-color: var(--border-color) !important;
}

/* Forms */
.form-control,
.form-select {
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.form-control:focus,
.form-select:focus {
    background: var(--bg-tertiary) !important;
    border-color: var(--primary-color) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25) !important;
}

.form-control::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.7;
}

.form-label {
    color: var(--text-primary) !important;
}

.form-text {
    color: var(--text-secondary) !important;
}

.form-check-input {
    background-color: var(--bg-tertiary) !important;
    border: 1px solid var(--border-color) !important;
}

.form-check-input:checked {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.form-check-label {
    color: var(--text-primary) !important;
}

/* Tables */
.table {
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

.table > :not(caption) > * > * {
    background-color: transparent !important;
    border-bottom-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: var(--bg-quaternary) !important;
}

.table-hover > tbody > tr:hover > * {
    background-color: var(--hover-neutral) !important;
}

/* Alerts */
.alert {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: var(--success) !important;
    color: var(--success) !important;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: var(--danger) !important;
    color: var(--danger) !important;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.15) !important;
    border-color: var(--warning) !important;
    color: var(--warning) !important;
}

.alert-info {
    background: rgba(59, 130, 246, 0.15) !important;
    border-color: var(--info) !important;
    color: var(--info) !important;
}

/* Badges */
.badge {
    background: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
}

.badge.bg-primary {
    background: var(--primary-color) !important;
    color: white !important;
}

.badge.bg-success {
    background: var(--success) !important;
    color: white !important;
}

.badge.bg-danger {
    background: var(--danger) !important;
    color: white !important;
}

/* Pagination */
.pagination .page-link {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.pagination .page-link:hover {
    background: var(--hover-neutral) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.pagination .page-item.active .page-link {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

/* Breadcrumb */
.breadcrumb {
    background: var(--bg-secondary) !important;
}

.breadcrumb-item a {
    color: var(--primary-color) !important;
}

.breadcrumb-item.active {
    color: var(--text-secondary) !important;
}

/* List Group */
.list-group-item {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.list-group-item:hover {
    background: var(--hover-neutral) !important;
}

/* Navbar Toggler */
.navbar-toggler {
    border-color: var(--border-color) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(248, 250, 252, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

:root[data-theme="light"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(15, 23, 42, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ============================================
   LOADING & ANIMATIONS
   ============================================ */

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--bg-quaternary);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   TOAST CONTAINER
   ============================================ */

#toastContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    pointer-events: none;
}

#toastContainer > * {
    pointer-events: auto;
}

/* ============================================
   LOADING OVERLAY
   ============================================ */

#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    backdrop-filter: blur(10px);
    pointer-events: none;
}

:root[data-theme="light"] #loadingOverlay {
    background: rgba(255, 255, 255, 0.95);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.fade-in {
    animation: fadeIn 0.3s ease;
}

.hidden {
    display: none !important;
}

.blur {
    filter: blur(5px);
}

/* Text Colors */
.text-theme-primary {
    color: var(--text-primary) !important;
}

.text-theme-secondary {
    color: var(--text-secondary) !important;
}

.text-theme-muted {
    color: var(--text-muted) !important;
}

/* Background Colors */
.bg-theme-primary {
    background: var(--bg-primary) !important;
}

.bg-theme-secondary {
    background: var(--bg-secondary) !important;
}

.bg-theme-tertiary {
    background: var(--bg-tertiary) !important;
}

/* Border Colors */
.border-theme {
    border-color: var(--border-color) !important;
}

/* ============================================
   LINKS
   ============================================ */

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-hover);
}

/* ============================================
   BUTTONS (if not using Bootstrap)
   ============================================ */

.btn {
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

.btn:hover {
    background: var(--hover-neutral) !important;
}

/* Particles canvas should not intercept header clicks */
#particles-js {
    pointer-events: none; /* allow clicks through to header */
}

/* ============================================
   VALIDATION STATUS COLORS
   ============================================ */
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--info) !important; }
.text-muted-theme { color: var(--text-muted) !important; }