/* ============================================================
   THEME: DRAGON RED
   ============================================================ */
:root, [data-theme="dragon"] {
  --bg: #050505;
  --bg-2: #0a0a0a;
  --surface: rgba(18, 12, 12, 0.65);
  --surface-2: rgba(26, 18, 18, 0.85);
  --surface-solid: #121010;
  --text: #e8e4dc;
  --text-dim: #a09a90;
  --text-mute: #6a6560;
  --text-bright: #ffffff;
  --line: rgba(255, 255, 255, 0.06);
  --line-2: rgba(212, 0, 0, 0.35);
  --line-strong: rgba(212, 0, 0, 0.55);
  --accent: #d40000;
  --accent-light: #ff1a1a;
  --accent-dark: #a00000;
  --accent-soft: rgba(212, 0, 0, 0.12);
  --accent-glow: rgba(255, 26, 26, 0.55);
  --accent-glow-strong: rgba(255, 26, 26, 0.9);
  --secondary: #c9a84c;
  --secondary-soft: rgba(201, 168, 76, 0.12);
  --secondary-glow: rgba(201, 168, 76, 0.45);
  --tertiary: #5a7a5a;
  --tertiary-soft: rgba(90, 122, 90, 0.15);
  --success: #4ade80;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
  --shadow: 0 4px 24px rgba(0,0,0,.5);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.6);
  --theme-color: #050505;
  --color-scheme: dark;
}

/* ===== MIDNIGHT ===== */
[data-theme="dark"] {
  --bg: #08090d; --bg-2: #0e1018;
  --surface: rgba(20, 22, 32, 0.6); --surface-2: rgba(28, 30, 42, 0.85); --surface-solid: #14161f;
  --text: #eef0f5; --text-dim: #9ca3b8; --text-mute: #6b7285; --text-bright: #ffffff;
  --line: rgba(255, 255, 255, 0.08); --line-2: rgba(255, 255, 255, 0.14); --line-strong: rgba(99, 102, 241, 0.5);
  --accent: #6366f1; --accent-light: #818cf8; --accent-dark: #4f46e5;
  --accent-soft: rgba(99, 102, 241, 0.12); --accent-glow: rgba(99, 102, 241, 0.55); --accent-glow-strong: rgba(99, 102, 241, 0.9);
  --secondary: #06b6d4; --secondary-soft: rgba(6, 182, 212, 0.08); --secondary-glow: rgba(6, 182, 212, 0.35);
  --tertiary: #ef4444; --tertiary-soft: rgba(239, 68, 68, 0.15);
  --success: #4ade80;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 4px 24px rgba(0,0,0,.4); --shadow-lg: 0 20px 60px rgba(0,0,0,.5);
  --theme-color: #08090d; --color-scheme: dark;
}

/* ===== OBSIDIAN ===== */
[data-theme="obsidian"] {
  --bg: #000000; --bg-2: #060606;
  --surface: rgba(15, 15, 15, 0.75); --surface-2: rgba(22, 22, 22, 0.9); --surface-solid: #0a0a0a;
  --text: #f5f5f5; --text-dim: #a3a3a3; --text-mute: #666; --text-bright: #ffffff;
  --line: rgba(255, 255, 255, 0.06); --line-2: rgba(255, 255, 255, 0.12); --line-strong: rgba(129, 140, 248, 0.5);
  --accent: #818cf8; --accent-light: #a5b4fc; --accent-dark: #6366f1;
  --accent-soft: rgba(129, 140, 248, 0.12); --accent-glow: rgba(129, 140, 248, 0.5); --accent-glow-strong: rgba(129, 140, 248, 0.9);
  --secondary: #22d3ee; --secondary-soft: rgba(34, 211, 238, 0.08); --secondary-glow: rgba(34, 211, 238, 0.35);
  --tertiary: #f87171; --tertiary-soft: rgba(248, 113, 113, 0.15);
  --success: #34d399;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.6); --shadow: 0 4px 24px rgba(0,0,0,.6); --shadow-lg: 0 20px 60px rgba(0,0,0,.7);
  --theme-color: #000000; --color-scheme: dark;
}

/* ===== SLATE ===== */
[data-theme="slate"] {
  --bg: #1a1d23; --bg-2: #22262e;
  --surface: rgba(38, 42, 51, 0.7); --surface-2: rgba(48, 53, 64, 0.9); --surface-solid: #2a2f38;
  --text: #f1f3f6; --text-dim: #b0b6c2; --text-mute: #7a8496; --text-bright: #ffffff;
  --line: rgba(255, 255, 255, 0.09); --line-2: rgba(255, 255, 255, 0.16); --line-strong: rgba(124, 132, 240, 0.5);
  --accent: #7c84f0; --accent-light: #a5aef5; --accent-dark: #6366f1;
  --accent-soft: rgba(124, 132, 240, 0.12); --accent-glow: rgba(124, 132, 240, 0.5); --accent-glow-strong: rgba(124, 132, 240, 0.9);
  --secondary: #22d3ee; --secondary-soft: rgba(34, 211, 238, 0.08); --secondary-glow: rgba(34, 211, 238, 0.35);
  --tertiary: #f87171; --tertiary-soft: rgba(248, 113, 113, 0.15);
  --success: #4ade80;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.35); --shadow: 0 4px 24px rgba(0,0,0,.35); --shadow-lg: 0 20px 60px rgba(0,0,0,.45);
  --theme-color: #1a1d23; --color-scheme: dark;
}

/* ===== FOREST ===== */
[data-theme="forest"] {
  --bg: #0a1410; --bg-2: #0f1d17;
  --surface: rgba(18, 32, 25, 0.7); --surface-2: rgba(24, 42, 33, 0.9); --surface-solid: #122019;
  --text: #e6f2ea; --text-dim: #94b8a4; --text-mute: #5e7c6c; --text-bright: #ffffff;
  --line: rgba(255, 255, 255, 0.07); --line-2: rgba(255, 255, 255, 0.13); --line-strong: rgba(16, 185, 129, 0.5);
  --accent: #10b981; --accent-light: #34d399; --accent-dark: #059669;
  --accent-soft: rgba(16, 185, 129, 0.12); --accent-glow: rgba(16, 185, 129, 0.55); --accent-glow-strong: rgba(16, 185, 129, 0.9);
  --secondary: #22d3ee; --secondary-soft: rgba(34, 211, 238, 0.08); --secondary-glow: rgba(34, 211, 238, 0.35);
  --tertiary: #f59e0b; --tertiary-soft: rgba(245, 158, 11, 0.15);
  --success: #4ade80;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 4px 24px rgba(0,0,0,.4); --shadow-lg: 0 20px 60px rgba(0,0,0,.5);
  --theme-color: #0a1410; --color-scheme: dark;
}

/* ===== OCEAN ===== */
[data-theme="ocean"] {
  --bg: #061524; --bg-2: #0a1d33;
  --surface: rgba(15, 32, 55, 0.7); --surface-2: rgba(20, 42, 68, 0.9); --surface-solid: #0e2138;
  --text: #e3f0ff; --text-dim: #8fb0d4; --text-mute: #5a7a9e; --text-bright: #ffffff;
  --line: rgba(255, 255, 255, 0.07); --line-2: rgba(255, 255, 255, 0.13); --line-strong: rgba(56, 189, 248, 0.5);
  --accent: #38bdf8; --accent-light: #7dd3fc; --accent-dark: #0ea5e9;
  --accent-soft: rgba(56, 189, 248, 0.12); --accent-glow: rgba(56, 189, 248, 0.55); --accent-glow-strong: rgba(56, 189, 248, 0.9);
  --secondary: #06b6d4; --secondary-soft: rgba(6, 182, 212, 0.08); --secondary-glow: rgba(6, 182, 212, 0.35);
  --tertiary: #f59e0b; --tertiary-soft: rgba(245, 158, 11, 0.15);
  --success: #4ade80;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 4px 24px rgba(0,0,0,.4); --shadow-lg: 0 20px 60px rgba(0,0,0,.5);
  --theme-color: #061524; --color-scheme: dark;
}

/* ===== PLUM ===== */
[data-theme="plum"] {
  --bg: #14081f; --bg-2: #1c0e2b;
  --surface: rgba(33, 18, 50, 0.7); --surface-2: rgba(45, 25, 65, 0.9); --surface-solid: #221133;
  --text: #f3e8ff; --text-dim: #b9a0d4; --text-mute: #7d6494; --text-bright: #ffffff;
  --line: rgba(255, 255, 255, 0.07); --line-2: rgba(255, 255, 255, 0.13); --line-strong: rgba(192, 132, 252, 0.5);
  --accent: #c084fc; --accent-light: #d8b4fe; --accent-dark: #a855f7;
  --accent-soft: rgba(192, 132, 252, 0.12); --accent-glow: rgba(192, 132, 252, 0.55); --accent-glow-strong: rgba(192, 132, 252, 0.9);
  --secondary: #22d3ee; --secondary-soft: rgba(34, 211, 238, 0.08); --secondary-glow: rgba(34, 211, 238, 0.35);
  --tertiary: #f472b6; --tertiary-soft: rgba(244, 114, 182, 0.15);
  --success: #4ade80;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 4px 24px rgba(0,0,0,.4); --shadow-lg: 0 20px 60px rgba(0,0,0,.5);
  --theme-color: #14081f; --color-scheme: dark;
}

/* ===== PERSIAN GOLD ===== */
[data-theme="persian"] {
  --bg: #0a0608;
  --bg-2: #140b10;
  --surface: rgba(22, 12, 18, 0.65);
  --surface-2: rgba(30, 18, 26, 0.85);
  --surface-solid: #1a0f14;
  --text: #f5efe0;
  --text-dim: #c5b8a5;
  --text-mute: #8a7d6e;
  --text-bright: #ffffff;
  --line: rgba(212, 164, 60, 0.12);
  --line-2: rgba(212, 164, 60, 0.28);
  --line-strong: rgba(212, 164, 60, 0.5);
  --accent: #d4a43c;
  --accent-light: #f0cc6a;
  --accent-dark: #b8922e;
  --accent-soft: rgba(212, 164, 60, 0.12);
  --accent-glow: rgba(212, 164, 60, 0.55);
  --accent-glow-strong: rgba(212, 164, 60, 0.9);
  --secondary: #00d4ff;
  --secondary-soft: rgba(0, 212, 255, 0.08);
  --secondary-glow: rgba(0, 212, 255, 0.35);
  --tertiary: #8b1a2b;
  --tertiary-soft: rgba(139, 26, 43, 0.15);
  --success: #4ade80;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 4px 24px rgba(0,0,0,.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.5);
  --theme-color: #0a0608;
  --color-scheme: dark;
}

/* ===== ARABIC GOLD ===== */
[data-theme="arabic"] {
  --bg: #060608;
  --bg-2: #0e0e12;
  --surface: rgba(18, 16, 14, 0.65);
  --surface-2: rgba(26, 22, 18, 0.85);
  --surface-solid: #12100e;
  --text: #efe8d8;
  --text-dim: #b8a888;
  --text-mute: #7d6f57;
  --text-bright: #ffffff;
  --line: rgba(201, 150, 59, 0.12);
  --line-2: rgba(201, 150, 59, 0.28);
  --line-strong: rgba(201, 150, 59, 0.5);
  --accent: #c9963b;
  --accent-light: #e8c96a;
  --accent-dark: #a87a2c;
  --accent-soft: rgba(201, 150, 59, 0.12);
  --accent-glow: rgba(201, 150, 59, 0.55);
  --accent-glow-strong: rgba(201, 150, 59, 0.9);
  --secondary: #0d9488;
  --secondary-soft: rgba(13, 148, 136, 0.12);
  --secondary-glow: rgba(13, 148, 136, 0.45);
  --tertiary: #8b1a1a;
  --tertiary-soft: rgba(139, 26, 26, 0.15);
  --success: #4ade80;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
  --shadow: 0 4px 24px rgba(0,0,0,.5);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.6);
  --theme-color: #060608;
  --color-scheme: dark;
}

/* ===== RUSSIAN HERITAGE ===== */
[data-theme="russian"] {
  --bg: #0a0f1a;
  --bg-2: #0f1626;
  --surface: rgba(20, 30, 50, 0.65);
  --surface-2: rgba(28, 42, 68, 0.85);
  --surface-solid: #141e32;
  --text: #f0f3fa;
  --text-dim: #8ea1c4;
  --text-mute: #5a6a8a;
  --text-bright: #ffffff;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(0, 57, 166, 0.4);
  --line-strong: rgba(0, 57, 166, 0.6);
  --accent: #0039a6;
  --accent-light: #2a6bff;
  --accent-dark: #002a7a;
  --accent-soft: rgba(0, 57, 166, 0.15);
  --accent-glow: rgba(42, 107, 255, 0.55);
  --accent-glow-strong: rgba(42, 107, 255, 0.9);
  --secondary: #d52b1e;
  --secondary-soft: rgba(213, 43, 30, 0.12);
  --secondary-glow: rgba(213, 43, 30, 0.45);
  --tertiary: #fbbf24;
  --tertiary-soft: rgba(251, 191, 36, 0.15);
  --success: #4ade80;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 4px 24px rgba(0,0,0,.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.5);
  --theme-color: #0a0f1a;
  --color-scheme: dark;
}

/* ===== JAPAN BLUE ===== */
[data-theme="japan"] {
  --bg: #050816;
  --bg-2: #0a0f20;
  --surface: rgba(10, 15, 32, 0.65);
  --surface-2: rgba(17, 24, 50, 0.85);
  --surface-solid: #0f1428;
  --text: #f0f3fa;
  --text-dim: #8899bb;
  --text-mute: #5a6a8a;
  --text-bright: #ffffff;
  --line: rgba(255, 255, 255, 0.06);
  --line-2: rgba(91, 140, 255, 0.28);
  --line-strong: rgba(91, 140, 255, 0.5);
  --accent: #5b8cff;
  --accent-light: #8fb5ff;
  --accent-dark: #3d6ee0;
  --accent-soft: rgba(91, 140, 255, 0.12);
  --accent-glow: rgba(91, 140, 255, 0.55);
  --accent-glow-strong: rgba(91, 140, 255, 0.9);
  --secondary: #63e6ff;
  --secondary-soft: rgba(99, 230, 255, 0.10);
  --secondary-glow: rgba(99, 230, 255, 0.45);
  --tertiary: #a78bfa;
  --tertiary-soft: rgba(167, 139, 250, 0.15);
  --success: #4ade80;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 4px 24px rgba(0,0,0,.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.5);
  --theme-color: #050816;
  --color-scheme: dark;
}

/* ===== DAYLIGHT ===== */
[data-theme="light"] {
  --bg: #faf8f4; --bg-2: #f2ece4;
  --surface: rgba(255, 255, 255, 0.75); --surface-2: rgba(255, 255, 255, 0.95); --surface-solid: #ffffff;
  --text: #1a0f0a; --text-dim: #5c4a3e; --text-mute: #8a7d6e; --text-bright: #000000;
  --line: rgba(60, 30, 20, 0.1); --line-2: rgba(212, 0, 0, 0.28); --line-strong: rgba(212, 0, 0, 0.5);
  --accent: #b00000; --accent-light: #d40000; --accent-dark: #8a0000;
  --accent-soft: rgba(176, 0, 0, 0.1); --accent-glow: rgba(176, 0, 0, 0.4); --accent-glow-strong: rgba(176, 0, 0, 0.7);
  --secondary: #9a7f2e; --secondary-soft: rgba(154, 127, 46, 0.1); --secondary-glow: rgba(154, 127, 46, 0.35);
  --tertiary: #3d6b3d; --tertiary-soft: rgba(61, 107, 61, 0.1);
  --success: #16a34a;
  --shadow-sm: 0 1px 2px rgba(60,30,20,.06); --shadow: 0 4px 24px rgba(60,30,20,.1); --shadow-lg: 0 20px 60px rgba(60,30,20,.15);
  --theme-color: #faf8f4; --color-scheme: light;
}

/* ===== SEPIA ===== */
[data-theme="sepia"] {
  --bg: #f4ede0; --bg-2: #ede4d3;
  --surface: rgba(255, 251, 240, 0.85); --surface-2: rgba(255, 251, 240, 0.95); --surface-solid: #fffaf0;
  --text: #2a2118; --text-dim: #5c5142; --text-mute: #8a7f6d; --text-bright: #000000;
  --line: rgba(60, 40, 20, 0.1); --line-2: rgba(124, 82, 149, 0.28); --line-strong: rgba(124, 82, 149, 0.5);
  --accent: #7c5295; --accent-light: #9d6fb3; --accent-dark: #5c3a72;
  --accent-soft: rgba(124, 82, 149, 0.1); --accent-glow: rgba(124, 82, 149, 0.4); --accent-glow-strong: rgba(124, 82, 149, 0.7);
  --secondary: #2a7c8c; --secondary-soft: rgba(42, 124, 140, 0.05); --secondary-glow: rgba(42, 124, 140, 0.3);
  --tertiary: #b8860b; --tertiary-soft: rgba(184, 134, 11, 0.1);
  --success: #4d7c0f;
  --shadow-sm: 0 1px 2px rgba(60,40,20,.08); --shadow: 0 4px 24px rgba(60,40,20,.1); --shadow-lg: 0 20px 60px rgba(60,40,20,.15);
  --theme-color: #f4ede0; --color-scheme: light;
}

/* ===== ROSE ===== */
[data-theme="rose"] {
  --bg: #fff1f5; --bg-2: #ffe4ec;
  --surface: rgba(255, 255, 255, 0.85); --surface-2: rgba(255, 255, 255, 0.95); --surface-solid: #ffffff;
  --text: #3d1f2c; --text-dim: #7a5566; --text-mute: #a88b98; --text-bright: #000000;
  --line: rgba(61, 31, 44, 0.1); --line-2: rgba(225, 29, 72, 0.28); --line-strong: rgba(225, 29, 72, 0.5);
  --accent: #e11d48; --accent-light: #f43f5e; --accent-dark: #be123c;
  --accent-soft: rgba(225, 29, 72, 0.1); --accent-glow: rgba(225, 29, 72, 0.4); --accent-glow-strong: rgba(225, 29, 72, 0.7);
  --secondary: #0891b2; --secondary-soft: rgba(8, 145, 178, 0.05); --secondary-glow: rgba(8, 145, 178, 0.3);
  --tertiary: #7c5295; --tertiary-soft: rgba(124, 82, 149, 0.1);
  --success: #16a34a;
  --shadow-sm: 0 1px 2px rgba(61,31,44,.06); --shadow: 0 4px 24px rgba(61,31,44,.08); --shadow-lg: 0 20px 60px rgba(61,31,44,.12);
  --theme-color: #fff1f5; --color-scheme: light;
}

/* ===== MINT ===== */
[data-theme="mint"] {
  --bg: #f0fdf9; --bg-2: #dcfce7;
  --surface: rgba(255, 255, 255, 0.85); --surface-2: rgba(255, 255, 255, 0.95); --surface-solid: #ffffff;
  --text: #0f2820; --text-dim: #4a6d5e; --text-mute: #7c9a8a; --text-bright: #000000;
  --line: rgba(15, 40, 32, 0.1); --line-2: rgba(5, 150, 105, 0.28); --line-strong: rgba(5, 150, 105, 0.5);
  --accent: #059669; --accent-light: #10b981; --accent-dark: #047857;
  --accent-soft: rgba(5, 150, 105, 0.1); --accent-glow: rgba(5, 150, 105, 0.4); --accent-glow-strong: rgba(5, 150, 105, 0.7);
  --secondary: #0891b2; --secondary-soft: rgba(8, 145, 178, 0.05); --secondary-glow: rgba(8, 145, 178, 0.3);
  --tertiary: #b8860b; --tertiary-soft: rgba(184, 134, 11, 0.1);
  --success: #16a34a;
  --shadow-sm: 0 1px 2px rgba(15,40,32,.06); --shadow: 0 4px 24px rgba(15,40,32,.08); --shadow-lg: 0 20px 60px rgba(15,40,32,.12);
  --theme-color: #f0fdf9; --color-scheme: light;
}