/* ===== Nexo Reserva — Design Tokens ===== */
/* Based on Claude Design system */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Backgrounds */
  --bg-0: #f0f2f5;
  --bg-1: #fdfdfe;
  --bg-2: #e4e7eb;
  --bg-3: #d1d5db;

  /* Glass surfaces */
  --glass-1: rgba(255, 255, 255, 0.7);
  --glass-2: rgba(255, 255, 255, 0.85);
  --glass-3: rgba(255, 255, 255, 0.95);
  --glass-stroke: rgba(0, 0, 0, 0.09);
  --glass-stroke-strong: rgba(0, 0, 0, 0.15);

  /* Text */
  --text-1: #0f172a;
  --text-2: #334155;
  --text-3: #64748b;
  --text-4: #94a3b8;

  /* Accents */
  --coral: #3b82f6;
  --coral-soft: #60a5fa;
  --coral-deep: #2563eb;
  --coral-glow: rgba(59, 130, 246, 0.15);
  --btn-coral-text: #ffffff;

  --teal: #0ea5e9;
  --teal-soft: #38bdf8;
  --teal-deep: #0284c7;
  --teal-glow: rgba(14, 165, 233, 0.15);

  /* States */
  --status-confirmed: #0ea5e9;
  --status-pending: #f59e0b;
  --status-cancelled: #ef4444;
  --status-available: #dbeafe;
  --status-busy: #fee2e2;

  /* Gradients */
  --grad-coral: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
  --grad-teal: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  --grad-bg: radial-gradient(ellipse 1200px 700px at 15% -10%, rgba(59,130,246,0.03), transparent 60%),
             radial-gradient(ellipse 1000px 600px at 110% 110%, rgba(14,165,233,0.02), transparent 55%),
             linear-gradient(180deg, #f0f2f5 0%, #fdfdfe 60%, #f0f2f5 100%);

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 36px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06), 0 0 0 1px var(--glass-stroke);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08), 0 0 0 1px var(--glass-stroke);
  --shadow-lg: 0 30px 70px rgba(15, 23, 42, 0.12), 0 0 0 1px var(--glass-stroke);
  --shadow-coral: 0 8px 20px rgba(59,130,246,0.25);
  --shadow-coral-hover: 0 12px 28px rgba(59,130,246,0.35);
  --shadow-teal: 0 8px 20px rgba(14,165,233,0.25);
  --sidebar-bg: rgba(255, 255, 255, 0.85);
  --sidebar-text: #334155;
  --sidebar-text-muted: #64748b;
  --sidebar-hover-bg: rgba(255, 255, 255, 0.7);
  --sidebar-active-bg: rgba(255, 255, 255, 0.85);
  --sidebar-active-text: #0f172a;
  --sidebar-indicator: #3b82f6;
  --glass-blur: none;
  --orb-opacity: 0.3;
}

[data-theme="dark"] {
  --orb-opacity: 0.45;
  --bg-0: #0a0e1a;
  --bg-1: #0f1424;
  --bg-2: #141a2e;
  --bg-3: #1a2138;
  --glass-1: rgba(255, 255, 255, 0.035);
  --glass-2: rgba(255, 255, 255, 0.06);
  --glass-3: rgba(255, 255, 255, 0.085);
  --glass-stroke: rgba(255, 255, 255, 0.08);
  --glass-stroke-strong: rgba(255, 255, 255, 0.14);
  --text-1: #f4ece4;
  --text-2: #b9c0d4;
  --text-3: #7d869f;
  --text-4: #545d77;
  --coral: #ff7a59;
  --coral-soft: #ffa388;
  --coral-deep: #e85a3a;
  --coral-glow: rgba(255, 122, 89, 0.35);
  --btn-coral-text: #1a0a05;
  --teal: #66e0c8;
  --teal-soft: #93eddc;
  --teal-deep: #2bb8a0;
  --teal-glow: rgba(102, 224, 200, 0.28);
  --grad-coral: linear-gradient(135deg, #ff8a6c 0%, #ff5a36 100%);
  --grad-teal: linear-gradient(135deg, #93eddc 0%, #2bb8a0 100%);
  --grad-bg: radial-gradient(ellipse 1200px 700px at 15% -10%, rgba(255,122,89,0.18), transparent 60%), radial-gradient(ellipse 1000px 600px at 110% 110%, rgba(102,224,200,0.15), transparent 55%), linear-gradient(180deg, #0a0e1a 0%, #0f1424 60%, #0a0e1a 100%);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3), 0 0 0 1px var(--glass-stroke);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.35), 0 0 0 1px var(--glass-stroke);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px var(--glass-stroke);
  --shadow-coral: 0 12px 36px rgba(255,90,54,0.4);
  --shadow-coral-hover: 0 18px 44px rgba(255,90,54,0.5);
  --shadow-teal: 0 12px 36px rgba(43,184,160,0.3);
  --sidebar-bg: rgba(10, 14, 26, 0.85);
  --sidebar-text: #b9c0d4;
  --sidebar-text-muted: #7d869f;
  --sidebar-hover-bg: rgba(255,255,255,0.04);
  --sidebar-active-bg: rgba(255,255,255,0.08);
  --sidebar-active-text: #f4ece4;
  --sidebar-indicator: #ff7a59;
  --glass-blur: none;
}

[data-theme="neo"] {
  --orb-opacity: 0.4;
  --bg-0: #1a1a2e;
  --bg-1: #16213e;
  --bg-2: #0f3460;
  --bg-3: #e94560;
  --glass-1: rgba(15, 52, 96, 0.4);
  --glass-2: rgba(15, 52, 96, 0.6);
  --glass-3: rgba(15, 52, 96, 0.8);
  --glass-stroke: rgba(233, 69, 96, 0.2);
  --glass-stroke-strong: rgba(233, 69, 96, 0.4);
  --text-1: #ffffff;
  --text-2: #e0e0e0;
  --text-3: #a0a0a0;
  --text-4: #808080;
  --coral: #e94560;
  --coral-soft: #ff6b81;
  --coral-deep: #c0392b;
  --coral-glow: rgba(233, 69, 96, 0.4);
  --btn-coral-text: #ffffff;
  --teal: #a29bfe;
  --teal-soft: #dfe6e9;
  --teal-deep: #6c5ce7;
  --teal-glow: rgba(162, 155, 254, 0.4);
  --grad-coral: linear-gradient(135deg, #ff6b81 0%, #e94560 100%);
  --grad-teal: linear-gradient(135deg, #dfe6e9 0%, #a29bfe 100%);
  --grad-bg: radial-gradient(ellipse 1200px 700px at 15% -10%, rgba(233,69,96,0.15), transparent 60%), radial-gradient(ellipse 1000px 600px at 110% 110%, rgba(162,155,254,0.15), transparent 55%), linear-gradient(180deg, #1a1a2e 0%, #16213e 60%, #1a1a2e 100%);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4), 0 0 0 1px var(--glass-stroke);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.5), 0 0 0 1px var(--glass-stroke);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px var(--glass-stroke);
  --shadow-coral: 0 12px 36px rgba(233, 69, 96, 0.5);
  --shadow-coral-hover: 0 18px 44px rgba(233, 69, 96, 0.6);
  --shadow-teal: 0 12px 36px rgba(162, 155, 254, 0.4);
  --sidebar-bg: rgba(15, 52, 96, 0.85);
  --sidebar-text: #e0e0e0;
  --sidebar-text-muted: #a0a0a0;
  --sidebar-hover-bg: rgba(255,255,255,0.06);
  --sidebar-active-bg: rgba(255,255,255,0.1);
  --sidebar-active-text: #ffffff;
  --sidebar-indicator: #e94560;
  --glass-blur: none;
}

[data-theme="minimal"] {
  --orb-opacity: 0;
  --bg-0: #f3f4f6;
  --bg-1: #ffffff;
  --bg-2: #f9fafb;
  --bg-3: #e5e7eb;
  --glass-1: #ffffff;
  --glass-2: #ffffff;
  --glass-3: #f9fafb;
  --glass-stroke: #e5e7eb;
  --glass-stroke-strong: #d1d5db;
  --text-1: #111827;
  --text-2: #374151;
  --text-3: #6b7280;
  --text-4: #9ca3af;
  --coral: #111827;
  --coral-soft: #4b5563;
  --coral-deep: #000000;
  --coral-glow: transparent;
  --btn-coral-text: #ffffff;
  --teal: #6b7280;
  --teal-soft: #9ca3af;
  --teal-deep: #374151;
  --teal-glow: transparent;
  --grad-coral: #111827;
  --grad-teal: #4b5563;
  --grad-bg: #f9fafb;
  --sidebar-bg: #ffffff;
  --glass-blur: none;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.05);
  --shadow-lg: 0 12px 24px rgba(0,0,0,0.08);
  --shadow-coral: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-coral-hover: 0 6px 16px rgba(0,0,0,0.15);
  --shadow-teal: 0 4px 12px rgba(0,0,0,0.1);
  --sidebar-text: #374151;
  --sidebar-text-muted: #6b7280;
  --sidebar-hover-bg: #f9fafb;
  --sidebar-active-bg: #f3f4f6;
  --sidebar-active-text: #111827;
  --sidebar-indicator: #111827;
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 24px;
  --r-pill: 999px;
}

[data-theme="ocean"] {
  --orb-opacity: 0.5;
  --bg-0: #071628;
  --bg-1: #0c1e35;
  --bg-2: #102540;
  --bg-3: #153050;
  --glass-1: rgba(0, 180, 216, 0.06);
  --glass-2: rgba(0, 180, 216, 0.1);
  --glass-3: rgba(0, 180, 216, 0.15);
  --glass-stroke: rgba(0, 180, 216, 0.12);
  --glass-stroke-strong: rgba(0, 180, 216, 0.2);
  --text-1: #e0f4ff;
  --text-2: #90c9e8;
  --text-3: #5b92b5;
  --text-4: #3a6580;
  --coral: #00b4d8;
  --coral-soft: #48cae4;
  --coral-deep: #0096c7;
  --coral-glow: rgba(0, 180, 216, 0.3);
  --btn-coral-text: #071628;
  --teal: #90e0ef;
  --teal-soft: #ade8f4;
  --teal-deep: #48cae4;
  --teal-glow: rgba(144, 224, 239, 0.25);
  --grad-coral: linear-gradient(135deg, #48cae4 0%, #0096c7 100%);
  --grad-teal: linear-gradient(135deg, #ade8f4 0%, #48cae4 100%);
  --grad-bg: radial-gradient(ellipse 1200px 700px at 15% -10%, rgba(0,180,216,0.15), transparent 60%), radial-gradient(ellipse 1000px 600px at 110% 110%, rgba(144,224,239,0.1), transparent 55%), linear-gradient(180deg, #071628 0%, #0c1e35 60%, #071628 100%);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.35), 0 0 0 1px var(--glass-stroke);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.4), 0 0 0 1px var(--glass-stroke);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.55), 0 0 0 1px var(--glass-stroke);
  --shadow-coral: 0 8px 24px rgba(0,180,216,0.4);
  --shadow-coral-hover: 0 12px 32px rgba(0,180,216,0.5);
  --shadow-teal: 0 8px 24px rgba(144,224,239,0.3);
  --sidebar-bg: rgba(7, 22, 40, 0.9);
  --sidebar-text: #90c9e8;
  --sidebar-text-muted: #5b92b5;
  --sidebar-hover-bg: rgba(255,255,255,0.04);
  --sidebar-active-bg: rgba(255,255,255,0.08);
  --sidebar-active-text: #e0f4ff;
  --sidebar-indicator: #00b4d8;
  --glass-blur: none;
}

[data-theme="forest"] {
  --orb-opacity: 0.45;
  --bg-0: #0d1f0d;
  --bg-1: #112411;
  --bg-2: #152a15;
  --bg-3: #1a331a;
  --glass-1: rgba(82, 183, 136, 0.06);
  --glass-2: rgba(82, 183, 136, 0.1);
  --glass-3: rgba(82, 183, 136, 0.15);
  --glass-stroke: rgba(82, 183, 136, 0.12);
  --glass-stroke-strong: rgba(82, 183, 136, 0.22);
  --text-1: #d8f3dc;
  --text-2: #95d5b2;
  --text-3: #52b788;
  --text-4: #40916c;
  --coral: #52b788;
  --coral-soft: #74c69d;
  --coral-deep: #40916c;
  --coral-glow: rgba(82, 183, 136, 0.3);
  --btn-coral-text: #0d1f0d;
  --teal: #b7e4c7;
  --teal-soft: #d8f3dc;
  --teal-deep: #74c69d;
  --teal-glow: rgba(183, 228, 199, 0.25);
  --grad-coral: linear-gradient(135deg, #74c69d 0%, #40916c 100%);
  --grad-teal: linear-gradient(135deg, #b7e4c7 0%, #74c69d 100%);
  --grad-bg: radial-gradient(ellipse 1200px 700px at 15% -10%, rgba(82,183,136,0.18), transparent 60%), radial-gradient(ellipse 1000px 600px at 110% 110%, rgba(183,228,199,0.12), transparent 55%), linear-gradient(180deg, #0d1f0d 0%, #112411 60%, #0d1f0d 100%);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.35), 0 0 0 1px var(--glass-stroke);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.4), 0 0 0 1px var(--glass-stroke);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.55), 0 0 0 1px var(--glass-stroke);
  --shadow-coral: 0 8px 24px rgba(82,183,136,0.4);
  --shadow-coral-hover: 0 12px 32px rgba(82,183,136,0.5);
  --shadow-teal: 0 8px 24px rgba(183,228,199,0.3);
  --sidebar-bg: rgba(13, 31, 13, 0.9);
  --sidebar-text: #95d5b2;
  --sidebar-text-muted: #52b788;
  --sidebar-hover-bg: rgba(255,255,255,0.04);
  --sidebar-active-bg: rgba(255,255,255,0.08);
  --sidebar-active-text: #d8f3dc;
  --sidebar-indicator: #52b788;
  --glass-blur: none;
}

[data-theme="sunset"] {
  --orb-opacity: 0.5;
  --bg-0: #1a0f08;
  --bg-1: #211510;
  --bg-2: #2a1c14;
  --bg-3: #33221a;
  --glass-1: rgba(244, 132, 95, 0.06);
  --glass-2: rgba(244, 132, 95, 0.1);
  --glass-3: rgba(244, 132, 95, 0.15);
  --glass-stroke: rgba(244, 132, 95, 0.12);
  --glass-stroke-strong: rgba(244, 132, 95, 0.22);
  --text-1: #fff0e8;
  --text-2: #e8c9b8;
  --text-3: #b8896e;
  --text-4: #7d5540;
  --coral: #f4845f;
  --coral-soft: #f9a07c;
  --coral-deep: #e05f38;
  --coral-glow: rgba(244, 132, 95, 0.35);
  --btn-coral-text: #1a0f08;
  --teal: #ffd166;
  --teal-soft: #ffe199;
  --teal-deep: #f0b429;
  --teal-glow: rgba(255, 209, 102, 0.28);
  --grad-coral: linear-gradient(135deg, #f9a07c 0%, #e05f38 100%);
  --grad-teal: linear-gradient(135deg, #ffe199 0%, #f0b429 100%);
  --grad-bg: radial-gradient(ellipse 1200px 700px at 15% -10%, rgba(244,132,95,0.2), transparent 60%), radial-gradient(ellipse 1000px 600px at 110% 110%, rgba(255,209,102,0.15), transparent 55%), linear-gradient(180deg, #1a0f08 0%, #211510 60%, #1a0f08 100%);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.35), 0 0 0 1px var(--glass-stroke);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.4), 0 0 0 1px var(--glass-stroke);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.55), 0 0 0 1px var(--glass-stroke);
  --shadow-coral: 0 8px 24px rgba(244,132,95,0.45);
  --shadow-coral-hover: 0 12px 32px rgba(244,132,95,0.55);
  --shadow-teal: 0 8px 24px rgba(255,209,102,0.3);
  --sidebar-bg: rgba(26, 15, 8, 0.9);
  --sidebar-text: #e8c9b8;
  --sidebar-text-muted: #b8896e;
  --sidebar-hover-bg: rgba(255,255,255,0.04);
  --sidebar-active-bg: rgba(255,255,255,0.08);
  --sidebar-active-text: #fff0e8;
  --sidebar-indicator: #f4845f;
  --glass-blur: none;
}

[data-theme="lavender"] {
  --orb-opacity: 0.3;
  --bg-0: #f5f0ff;
  --bg-1: #ffffff;
  --bg-2: #ede8ff;
  --bg-3: #ddd6fe;
  --glass-1: rgba(255, 255, 255, 0.7);
  --glass-2: rgba(255, 255, 255, 0.85);
  --glass-3: rgba(255, 255, 255, 0.95);
  --glass-stroke: rgba(124, 58, 237, 0.1);
  --glass-stroke-strong: rgba(124, 58, 237, 0.18);
  --text-1: #1e1b4b;
  --text-2: #4338ca;
  --text-3: #6d28d9;
  --text-4: #8b5cf6;
  --coral: #7c3aed;
  --coral-soft: #a78bfa;
  --coral-deep: #6d28d9;
  --coral-glow: rgba(124, 58, 237, 0.15);
  --btn-coral-text: #ffffff;
  --teal: #6d28d9;
  --teal-soft: #8b5cf6;
  --teal-deep: #5b21b6;
  --teal-glow: rgba(109, 40, 217, 0.12);
  --grad-coral: linear-gradient(135deg, #a78bfa 0%, #6d28d9 100%);
  --grad-teal: linear-gradient(135deg, #8b5cf6 0%, #5b21b6 100%);
  --grad-bg: radial-gradient(ellipse 1200px 700px at 15% -10%, rgba(124,58,237,0.05), transparent 60%), radial-gradient(ellipse 1000px 600px at 110% 110%, rgba(109,40,217,0.04), transparent 55%), linear-gradient(180deg, #f5f0ff 0%, #ffffff 60%, #f5f0ff 100%);
  --shadow-sm: 0 1px 2px rgba(124,58,237,0.08), 0 0 0 1px var(--glass-stroke);
  --shadow-md: 0 8px 24px rgba(124,58,237,0.1), 0 0 0 1px var(--glass-stroke);
  --shadow-lg: 0 24px 60px rgba(124,58,237,0.15), 0 0 0 1px var(--glass-stroke);
  --shadow-coral: 0 8px 20px rgba(124,58,237,0.25);
  --shadow-coral-hover: 0 12px 28px rgba(124,58,237,0.35);
  --shadow-teal: 0 8px 20px rgba(109,40,217,0.2);
  --sidebar-bg: rgba(255, 255, 255, 0.85);
  --sidebar-text: #4338ca;
  --sidebar-text-muted: #6d28d9;
  --sidebar-hover-bg: rgba(255,255,255,0.7);
  --sidebar-active-bg: rgba(255,255,255,0.85);
  --sidebar-active-text: #1e1b4b;
  --sidebar-indicator: #7c3aed;
  --glass-blur: none;
}

[data-theme="coral"] {
  --orb-opacity: 0.25;
  --bg-0: #fff7f5;
  --bg-1: #ffffff;
  --bg-2: #fff0ed;
  --bg-3: #ffe4de;
  --glass-1: rgba(255, 255, 255, 0.7);
  --glass-2: rgba(255, 255, 255, 0.85);
  --glass-3: rgba(255, 255, 255, 0.95);
  --glass-stroke: rgba(232, 90, 79, 0.1);
  --glass-stroke-strong: rgba(232, 90, 79, 0.18);
  --text-1: #2d0a07;
  --text-2: #7a1e18;
  --text-3: #b53530;
  --text-4: #d45e59;
  --coral: #e85a4f;
  --coral-soft: #f08080;
  --coral-deep: #c0392b;
  --coral-glow: rgba(232, 90, 79, 0.15);
  --btn-coral-text: #ffffff;
  --teal: #c0392b;
  --teal-soft: #e85a4f;
  --teal-deep: #962d22;
  --teal-glow: rgba(192, 57, 43, 0.12);
  --grad-coral: linear-gradient(135deg, #f08080 0%, #c0392b 100%);
  --grad-teal: linear-gradient(135deg, #e85a4f 0%, #962d22 100%);
  --grad-bg: radial-gradient(ellipse 1200px 700px at 15% -10%, rgba(232,90,79,0.05), transparent 60%), radial-gradient(ellipse 1000px 600px at 110% 110%, rgba(192,57,43,0.04), transparent 55%), linear-gradient(180deg, #fff7f5 0%, #ffffff 60%, #fff7f5 100%);
  --shadow-sm: 0 1px 2px rgba(232,90,79,0.08), 0 0 0 1px var(--glass-stroke);
  --shadow-md: 0 8px 24px rgba(232,90,79,0.1), 0 0 0 1px var(--glass-stroke);
  --shadow-lg: 0 24px 60px rgba(232,90,79,0.14), 0 0 0 1px var(--glass-stroke);
  --shadow-coral: 0 8px 20px rgba(232,90,79,0.3);
  --shadow-coral-hover: 0 12px 28px rgba(232,90,79,0.4);
  --shadow-teal: 0 8px 20px rgba(192,57,43,0.25);
  --sidebar-bg: rgba(255, 255, 255, 0.85);
  --sidebar-text: #7a1e18;
  --sidebar-text-muted: #b53530;
  --sidebar-hover-bg: rgba(255,255,255,0.7);
  --sidebar-active-bg: rgba(255,255,255,0.85);
  --sidebar-active-text: #2d0a07;
  --sidebar-indicator: #e85a4f;
  --glass-blur: none;
}

[data-theme="mint"] {
  --orb-opacity: 0.25;
  --bg-0: #f0fdf9;
  --bg-1: #ffffff;
  --bg-2: #ecfdf5;
  --bg-3: #d1fae5;
  --glass-1: rgba(255, 255, 255, 0.7);
  --glass-2: rgba(255, 255, 255, 0.85);
  --glass-3: rgba(255, 255, 255, 0.95);
  --glass-stroke: rgba(5, 150, 105, 0.1);
  --glass-stroke-strong: rgba(5, 150, 105, 0.18);
  --text-1: #064e3b;
  --text-2: #065f46;
  --text-3: #059669;
  --text-4: #10b981;
  --coral: #059669;
  --coral-soft: #10b981;
  --coral-deep: #047857;
  --coral-glow: rgba(5, 150, 105, 0.15);
  --btn-coral-text: #ffffff;
  --teal: #34d399;
  --teal-soft: #6ee7b7;
  --teal-deep: #10b981;
  --teal-glow: rgba(52, 211, 153, 0.2);
  --grad-coral: linear-gradient(135deg, #10b981 0%, #047857 100%);
  --grad-teal: linear-gradient(135deg, #6ee7b7 0%, #10b981 100%);
  --grad-bg: radial-gradient(ellipse 1200px 700px at 15% -10%, rgba(5,150,105,0.05), transparent 60%), radial-gradient(ellipse 1000px 600px at 110% 110%, rgba(52,211,153,0.04), transparent 55%), linear-gradient(180deg, #f0fdf9 0%, #ffffff 60%, #f0fdf9 100%);
  --shadow-sm: 0 1px 2px rgba(5,150,105,0.08), 0 0 0 1px var(--glass-stroke);
  --shadow-md: 0 8px 24px rgba(5,150,105,0.1), 0 0 0 1px var(--glass-stroke);
  --shadow-lg: 0 24px 60px rgba(5,150,105,0.14), 0 0 0 1px var(--glass-stroke);
  --shadow-coral: 0 8px 20px rgba(5,150,105,0.28);
  --shadow-coral-hover: 0 12px 28px rgba(5,150,105,0.38);
  --shadow-teal: 0 8px 20px rgba(52,211,153,0.22);
  --sidebar-bg: rgba(255, 255, 255, 0.85);
  --sidebar-text: #065f46;
  --sidebar-text-muted: #059669;
  --sidebar-hover-bg: rgba(255,255,255,0.7);
  --sidebar-active-bg: rgba(255,255,255,0.85);
  --sidebar-active-text: #064e3b;
  --sidebar-indicator: #059669;
  --glass-blur: none;
}

[data-theme="honey"] {
  --orb-opacity: 0.25;
  --bg-0: #fffbeb;
  --bg-1: #ffffff;
  --bg-2: #fef3c7;
  --bg-3: #fde68a;
  --glass-1: rgba(255, 255, 255, 0.7);
  --glass-2: rgba(255, 255, 255, 0.85);
  --glass-3: rgba(255, 255, 255, 0.95);
  --glass-stroke: rgba(217, 119, 6, 0.12);
  --glass-stroke-strong: rgba(217, 119, 6, 0.2);
  --text-1: #451a03;
  --text-2: #78350f;
  --text-3: #92400e;
  --text-4: #b45309;
  --coral: #d97706;
  --coral-soft: #f59e0b;
  --coral-deep: #b45309;
  --coral-glow: rgba(217, 119, 6, 0.15);
  --btn-coral-text: #ffffff;
  --teal: #f59e0b;
  --teal-soft: #fbbf24;
  --teal-deep: #d97706;
  --teal-glow: rgba(245, 158, 11, 0.2);
  --grad-coral: linear-gradient(135deg, #fbbf24 0%, #b45309 100%);
  --grad-teal: linear-gradient(135deg, #fde68a 0%, #f59e0b 100%);
  --grad-bg: radial-gradient(ellipse 1200px 700px at 15% -10%, rgba(217,119,6,0.06), transparent 60%), radial-gradient(ellipse 1000px 600px at 110% 110%, rgba(245,158,11,0.05), transparent 55%), linear-gradient(180deg, #fffbeb 0%, #ffffff 60%, #fffbeb 100%);
  --shadow-sm: 0 1px 2px rgba(217,119,6,0.08), 0 0 0 1px var(--glass-stroke);
  --shadow-md: 0 8px 24px rgba(217,119,6,0.1), 0 0 0 1px var(--glass-stroke);
  --shadow-lg: 0 24px 60px rgba(217,119,6,0.14), 0 0 0 1px var(--glass-stroke);
  --shadow-coral: 0 8px 20px rgba(217,119,6,0.3);
  --shadow-coral-hover: 0 12px 28px rgba(217,119,6,0.4);
  --shadow-teal: 0 8px 20px rgba(245,158,11,0.25);
  --sidebar-bg: rgba(255, 255, 255, 0.85);
  --sidebar-text: #78350f;
  --sidebar-text-muted: #92400e;
  --sidebar-hover-bg: rgba(255,255,255,0.7);
  --sidebar-active-bg: rgba(255,255,255,0.85);
  --sidebar-active-text: #451a03;
  --sidebar-indicator: #d97706;
  --glass-blur: none;
}

[data-theme="terracotta_luxe"] {
  --orb-opacity: 0.24;
  --bg-0: #FFF6EF;
  --bg-1: #FFFFFF;
  --bg-2: #FFF0E6;
  --bg-3: #FBEADF;
  --glass-1: rgba(255, 255, 255, 0.76);
  --glass-2: rgba(255, 255, 255, 0.9);
  --glass-3: rgba(255, 255, 255, 0.96);
  --glass-stroke: rgba(181, 83, 50, 0.12);
  --glass-stroke-strong: rgba(181, 83, 50, 0.2);
  --text-1: #2B1710;
  --text-2: #5F3528;
  --text-3: #8A5A48;
  --text-4: #B07A66;
  --coral: #B55332;
  --coral-soft: #E3A27C;
  --coral-deep: #914226;
  --coral-glow: rgba(181, 83, 50, 0.18);
  --btn-coral-text: #FFFFFF;
  --teal: #E3A27C;
  --teal-soft: #F6C7A6;
  --teal-deep: #C67B5B;
  --teal-glow: rgba(227, 162, 124, 0.18);
  --grad-coral: linear-gradient(135deg, #E3A27C 0%, #B55332 100%);
  --grad-teal: linear-gradient(135deg, #F6C7A6 0%, #E3A27C 100%);
  --grad-bg: radial-gradient(ellipse 1200px 700px at 15% -10%, rgba(181,83,50,0.06), transparent 60%), radial-gradient(ellipse 1000px 600px at 110% 110%, rgba(227,162,124,0.05), transparent 55%), linear-gradient(180deg, #FFF6EF 0%, #FFFFFF 60%, #FFF6EF 100%);
  --shadow-sm: 0 1px 2px rgba(43,23,16,0.06), 0 0 0 1px var(--glass-stroke);
  --shadow-md: 0 10px 30px rgba(43,23,16,0.08), 0 0 0 1px var(--glass-stroke);
  --shadow-lg: 0 30px 70px rgba(43,23,16,0.12), 0 0 0 1px var(--glass-stroke);
  --shadow-coral: 0 8px 20px rgba(181,83,50,0.26);
  --shadow-coral-hover: 0 12px 28px rgba(181,83,50,0.36);
  --shadow-teal: 0 8px 20px rgba(227,162,124,0.22);
  --sidebar-bg: #FBEADF;
  --sidebar-text: #5F3528;
  --sidebar-text-muted: #8A5A48;
  --sidebar-hover-bg: rgba(255,255,255,0.55);
  --sidebar-active-bg: rgba(255,255,255,0.76);
  --sidebar-active-text: #2B1710;
  --sidebar-indicator: #B55332;
  --glass-blur: none;
}

[data-theme="sand_editorial"] {
  --orb-opacity: 0.18;
  --bg-0: #FAF5EC;
  --bg-1: #FFFFFF;
  --bg-2: #F7F0E4;
  --bg-3: #F2E8D9;
  --glass-1: rgba(255, 255, 255, 0.78);
  --glass-2: rgba(255, 255, 255, 0.9);
  --glass-3: rgba(255, 255, 255, 0.96);
  --glass-stroke: rgba(155, 118, 83, 0.12);
  --glass-stroke-strong: rgba(155, 118, 83, 0.2);
  --text-1: #2D241B;
  --text-2: #564536;
  --text-3: #7B6855;
  --text-4: #A1907D;
  --coral: #9B7653;
  --coral-soft: #D8C3A5;
  --coral-deep: #7A5B3E;
  --coral-glow: rgba(155, 118, 83, 0.16);
  --btn-coral-text: #FFFFFF;
  --teal: #D8C3A5;
  --teal-soft: #EEE1CF;
  --teal-deep: #B99D79;
  --teal-glow: rgba(216, 195, 165, 0.16);
  --grad-coral: linear-gradient(135deg, #D8C3A5 0%, #9B7653 100%);
  --grad-teal: linear-gradient(135deg, #EEE1CF 0%, #D8C3A5 100%);
  --grad-bg: radial-gradient(ellipse 1200px 700px at 15% -10%, rgba(155,118,83,0.04), transparent 60%), radial-gradient(ellipse 1000px 600px at 110% 110%, rgba(216,195,165,0.05), transparent 55%), linear-gradient(180deg, #FAF5EC 0%, #FFFFFF 60%, #FAF5EC 100%);
  --shadow-sm: 0 1px 2px rgba(45,36,27,0.05), 0 0 0 1px var(--glass-stroke);
  --shadow-md: 0 10px 30px rgba(45,36,27,0.07), 0 0 0 1px var(--glass-stroke);
  --shadow-lg: 0 30px 70px rgba(45,36,27,0.1), 0 0 0 1px var(--glass-stroke);
  --shadow-coral: 0 8px 20px rgba(155,118,83,0.22);
  --shadow-coral-hover: 0 12px 28px rgba(155,118,83,0.32);
  --shadow-teal: 0 8px 20px rgba(216,195,165,0.2);
  --sidebar-bg: #F2E8D9;
  --sidebar-text: #564536;
  --sidebar-text-muted: #7B6855;
  --sidebar-hover-bg: rgba(255,255,255,0.58);
  --sidebar-active-bg: rgba(255,255,255,0.8);
  --sidebar-active-text: #2D241B;
  --sidebar-indicator: #9B7653;
  --glass-blur: none;
}

[data-theme="graphite_gold"] {
  --orb-opacity: 0.22;
  --bg-0: #111111;
  --bg-1: #1A1A1A;
  --bg-2: #202020;
  --bg-3: #2A2A2A;
  --glass-1: rgba(255, 255, 255, 0.035);
  --glass-2: rgba(255, 255, 255, 0.06);
  --glass-3: rgba(255, 255, 255, 0.09);
  --glass-stroke: rgba(201, 151, 43, 0.14);
  --glass-stroke-strong: rgba(201, 151, 43, 0.24);
  --text-1: #F8F8F8;
  --text-2: #DDDDDD;
  --text-3: #B8B8B8;
  --text-4: #8F8F8F;
  --coral: #C9972B;
  --coral-soft: #E4C978;
  --coral-deep: #D6A93A;
  --coral-glow: rgba(201, 151, 43, 0.28);
  --btn-coral-text: #111111;
  --teal: #6B7280;
  --teal-soft: #9CA3AF;
  --teal-deep: #4B5563;
  --teal-glow: rgba(107, 114, 128, 0.2);
  --grad-coral: linear-gradient(135deg, #E4C978 0%, #C9972B 100%);
  --grad-teal: linear-gradient(135deg, #9CA3AF 0%, #6B7280 100%);
  --grad-bg: radial-gradient(ellipse 1200px 700px at 15% -10%, rgba(201,151,43,0.16), transparent 60%), radial-gradient(ellipse 1000px 600px at 110% 110%, rgba(107,114,128,0.12), transparent 55%), linear-gradient(180deg, #111111 0%, #1A1A1A 60%, #111111 100%);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.38), 0 0 0 1px var(--glass-stroke);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.42), 0 0 0 1px var(--glass-stroke);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.58), 0 0 0 1px var(--glass-stroke);
  --shadow-coral: 0 10px 26px rgba(201,151,43,0.34);
  --shadow-coral-hover: 0 14px 34px rgba(201,151,43,0.44);
  --shadow-teal: 0 8px 20px rgba(107,114,128,0.22);
  --sidebar-bg: #0B0B0B;
  --sidebar-text: #E5E7EB;
  --sidebar-text-muted: #B8B8B8;
  --sidebar-hover-bg: rgba(255,255,255,0.04);
  --sidebar-active-bg: rgba(201,151,43,0.16);
  --sidebar-active-text: #F8F8F8;
  --sidebar-indicator: #C9972B;
  --glass-blur: none;
}

[data-theme="wine_boutique"] {
  --orb-opacity: 0.22;
  --bg-0: #FFF5F7;
  --bg-1: #FFFFFF;
  --bg-2: #FCECEF;
  --bg-3: #F8E4E8;
  --glass-1: rgba(255, 255, 255, 0.76);
  --glass-2: rgba(255, 255, 255, 0.9);
  --glass-3: rgba(255, 255, 255, 0.96);
  --glass-stroke: rgba(122, 31, 53, 0.11);
  --glass-stroke-strong: rgba(122, 31, 53, 0.18);
  --text-1: #301018;
  --text-2: #5B2231;
  --text-3: #81535D;
  --text-4: #AA7A84;
  --coral: #7A1F35;
  --coral-soft: #C88B99;
  --coral-deep: #5D1728;
  --coral-glow: rgba(122, 31, 53, 0.16);
  --btn-coral-text: #FFFFFF;
  --teal: #C88B99;
  --teal-soft: #F0C7CF;
  --teal-deep: #A56374;
  --teal-glow: rgba(200, 139, 153, 0.18);
  --grad-coral: linear-gradient(135deg, #C88B99 0%, #7A1F35 100%);
  --grad-teal: linear-gradient(135deg, #F0C7CF 0%, #C88B99 100%);
  --grad-bg: radial-gradient(ellipse 1200px 700px at 15% -10%, rgba(122,31,53,0.05), transparent 60%), radial-gradient(ellipse 1000px 600px at 110% 110%, rgba(200,139,153,0.05), transparent 55%), linear-gradient(180deg, #FFF5F7 0%, #FFFFFF 60%, #FFF5F7 100%);
  --shadow-sm: 0 1px 2px rgba(48,16,24,0.05), 0 0 0 1px var(--glass-stroke);
  --shadow-md: 0 10px 30px rgba(48,16,24,0.08), 0 0 0 1px var(--glass-stroke);
  --shadow-lg: 0 30px 70px rgba(48,16,24,0.12), 0 0 0 1px var(--glass-stroke);
  --shadow-coral: 0 8px 20px rgba(122,31,53,0.24);
  --shadow-coral-hover: 0 12px 28px rgba(122,31,53,0.34);
  --shadow-teal: 0 8px 20px rgba(200,139,153,0.22);
  --sidebar-bg: #F8E4E8;
  --sidebar-text: #5B2231;
  --sidebar-text-muted: #81535D;
  --sidebar-hover-bg: rgba(255,255,255,0.56);
  --sidebar-active-bg: rgba(255,255,255,0.8);
  --sidebar-active-text: #301018;
  --sidebar-indicator: #7A1F35;
  --glass-blur: none;
}

[data-theme="champagne_black"] {
  --orb-opacity: 0.16;
  --bg-0: #FCFAF5;
  --bg-1: #FFFFFF;
  --bg-2: #F7F2E8;
  --bg-3: #F3EEE3;
  --glass-1: rgba(255, 255, 255, 0.78);
  --glass-2: rgba(255, 255, 255, 0.9);
  --glass-3: rgba(255, 255, 255, 0.96);
  --glass-stroke: rgba(185, 151, 91, 0.12);
  --glass-stroke-strong: rgba(185, 151, 91, 0.2);
  --text-1: #1F1F1F;
  --text-2: #423D35;
  --text-3: #6B6254;
  --text-4: #978A74;
  --coral: #B9975B;
  --coral-soft: #E8D3A1;
  --coral-deep: #8A6A35;
  --coral-glow: rgba(185, 151, 91, 0.16);
  --btn-coral-text: #111111;
  --teal: #2B2B2B;
  --teal-soft: #4B4B4B;
  --teal-deep: #111111;
  --teal-glow: rgba(43, 43, 43, 0.12);
  --grad-coral: linear-gradient(135deg, #E8D3A1 0%, #B9975B 100%);
  --grad-teal: linear-gradient(135deg, #4B4B4B 0%, #111111 100%);
  --grad-bg: radial-gradient(ellipse 1200px 700px at 15% -10%, rgba(185,151,91,0.05), transparent 60%), radial-gradient(ellipse 1000px 600px at 110% 110%, rgba(43,43,43,0.03), transparent 55%), linear-gradient(180deg, #FCFAF5 0%, #FFFFFF 60%, #FCFAF5 100%);
  --shadow-sm: 0 1px 2px rgba(31,31,31,0.05), 0 0 0 1px var(--glass-stroke);
  --shadow-md: 0 10px 30px rgba(31,31,31,0.08), 0 0 0 1px var(--glass-stroke);
  --shadow-lg: 0 30px 70px rgba(31,31,31,0.12), 0 0 0 1px var(--glass-stroke);
  --shadow-coral: 0 8px 20px rgba(185,151,91,0.22);
  --shadow-coral-hover: 0 12px 28px rgba(185,151,91,0.32);
  --shadow-teal: 0 8px 20px rgba(43,43,43,0.16);
  --sidebar-bg: #F3EEE3;
  --sidebar-text: #423D35;
  --sidebar-text-muted: #6B6254;
  --sidebar-hover-bg: rgba(255,255,255,0.58);
  --sidebar-active-bg: rgba(255,255,255,0.82);
  --sidebar-active-text: #1F1F1F;
  --sidebar-indicator: #B9975B;
  --glass-blur: none;
}

[data-theme="rojo_noir"] {
  --orb-opacity: 0.12;
  --bg-0: #F7F7F8;
  --bg-1: #FFFFFF;
  --bg-2: #F1F2F4;
  --bg-3: #E5E7EB;
  --glass-1: rgba(255, 255, 255, 0.78);
  --glass-2: rgba(255, 255, 255, 0.9);
  --glass-3: rgba(255, 255, 255, 0.97);
  --glass-stroke: rgba(17, 24, 39, 0.08);
  --glass-stroke-strong: rgba(17, 24, 39, 0.14);
  --text-1: #1A1A1A;
  --text-2: #374151;
  --text-3: #6B7280;
  --text-4: #9CA3AF;
  --coral: #C1121F;
  --coral-soft: #EF4444;
  --coral-deep: #9F0E18;
  --coral-glow: rgba(193, 18, 31, 0.16);
  --btn-coral-text: #FFFFFF;
  --teal: #111827;
  --teal-soft: #374151;
  --teal-deep: #030712;
  --teal-glow: rgba(17, 24, 39, 0.12);
  --grad-coral: linear-gradient(135deg, #E11D2E 0%, #9F0E18 100%);
  --grad-teal: linear-gradient(135deg, #374151 0%, #111827 100%);
  --grad-bg: radial-gradient(ellipse 1200px 700px at 15% -10%, rgba(193,18,31,0.04), transparent 60%), radial-gradient(ellipse 1000px 600px at 110% 110%, rgba(17,24,39,0.03), transparent 55%), linear-gradient(180deg, #F7F7F8 0%, #FFFFFF 60%, #F7F7F8 100%);
  --shadow-sm: 0 1px 2px rgba(17,24,39,0.05), 0 0 0 1px var(--glass-stroke);
  --shadow-md: 0 10px 30px rgba(17,24,39,0.08), 0 0 0 1px var(--glass-stroke);
  --shadow-lg: 0 30px 70px rgba(17,24,39,0.12), 0 0 0 1px var(--glass-stroke);
  --shadow-coral: 0 8px 20px rgba(193,18,31,0.24);
  --shadow-coral-hover: 0 12px 28px rgba(193,18,31,0.34);
  --shadow-teal: 0 8px 20px rgba(17,24,39,0.14);
  --sidebar-bg: #111111;
  --sidebar-text: #F9FAFB;
  --sidebar-text-muted: #D1D5DB;
  --sidebar-hover-bg: rgba(255,255,255,0.06);
  --sidebar-active-bg: #C1121F;
  --sidebar-active-text: #FFFFFF;
  --sidebar-indicator: #C1121F;
  --glass-blur: none;
}

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

html, body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-feature-settings: "ss01", "cv11";
  color: var(--text-1);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

.serif { font-family: 'Instrument Serif', 'Times New Roman', serif; font-weight: 400; letter-spacing: -0.01em; }
.mono  { font-family: 'JetBrains Mono', ui-monospace, monospace; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0; }
input, select, textarea { font-family: inherit; }

/* ===== Glass surfaces ===== */
.glass {
  background: var(--glass-1);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-stroke);
  border-radius: var(--r-lg);
  transform: translateZ(0);
  will-change: transform, backdrop-filter;
}
.glass-strong {
  background: linear-gradient(180deg, var(--glass-2), var(--glass-1));
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-stroke);
  border-radius: var(--r-lg);
  transform: translateZ(0);
  will-change: transform, backdrop-filter;
}

/* ===== Buttons ===== */
.btn-coral {
  background: var(--grad-coral);
  color: var(--btn-coral-text);
  font-weight: 600;
  border-radius: var(--r-pill);
  padding: 14px 26px;
  box-shadow: var(--shadow-coral), inset 0 1px 0 rgba(255,255,255,0.35);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  font-size: 15px;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-coral:hover { transform: translateY(-1px); box-shadow: var(--shadow-coral-hover), inset 0 1px 0 rgba(255,255,255,0.35); filter: brightness(1.05); }

.btn-ghost {
  background: var(--glass-2);
  color: var(--text-1);
  border-radius: var(--r-pill);
  padding: 14px 26px;
  border: 1px solid var(--glass-stroke-strong);
  font-weight: 500;
  font-size: 15px;
  transition: background 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-ghost:hover { background: var(--glass-3); }

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; }

/* ===== Chips ===== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}
.chip-coral  { background: rgba(255,122,89,0.13); color: var(--coral-soft); border-color: rgba(255,122,89,0.25); }
.chip-teal   { background: rgba(102,224,200,0.13); color: var(--teal); border-color: rgba(102,224,200,0.25); }
.chip-yellow { background: rgba(245,207,106,0.12); color: #f5cf6a; border-color: rgba(245,207,106,0.25); }
.chip-muted  { background: var(--glass-2); color: var(--text-2); border-color: var(--glass-stroke); }

/* ===== Dots ===== */
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot-teal { background: var(--teal); box-shadow: 0 0 10px var(--teal-glow); }
.dot-coral { background: var(--coral); box-shadow: 0 0 10px var(--coral-glow); }
.dot-yellow { background: #f5cf6a; box-shadow: 0 0 10px rgba(245,207,106,0.4); }

/* ===== Decorative ===== */
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: var(--orb-opacity);
  transform: translateZ(0);
  will-change: transform;
}
.orb-coral { background: radial-gradient(circle, var(--coral) 0%, transparent 70%); }
.orb-teal  { background: radial-gradient(circle, var(--teal) 0%, transparent 70%); }

/* ===== SortableJS Ghost ===== */
.gallery-ghost {
  opacity: 0.4;
  background: var(--glass-2);
  border: 1px dashed var(--coral) !important;
}

.bg-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ===== Forms ===== */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 6px;
  font-weight: 500;
}
.form-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--glass-1);
  border: 1px solid var(--glass-stroke-strong);
  border-radius: var(--r-sm);
  color: var(--text-1);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px var(--coral-glow);
}
.form-input::placeholder { color: var(--text-4); }

select.form-input option {
  background-color: var(--bg-1);
  color: var(--text-1);
}

/* ===== Scrollbars ===== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--glass-2); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--glass-3); }

/* ===== Toast notifications ===== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 20px;
  border-radius: var(--r-md);
  font-size: 13px;
  z-index: 1000;
  animation: slideUp 0.3s ease;
}
.toast-success { background: rgba(102,224,200,0.15); border: 1px solid rgba(102,224,200,0.3); color: var(--teal-soft); }
.toast-error { background: rgba(255,122,89,0.15); border: 1px solid rgba(255,122,89,0.3); color: var(--coral-soft); }

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

/* ===== Responsive helpers ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 48px; } }
@media (min-width: 1024px) { .container { padding: 0 64px; } }

.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: block; } }
.hide-desktop { display: block; }
@media (min-width: 768px) { .hide-desktop { display: none; } }

/* ===== Mobile Responsiveness Admin & Portal ===== */
@media (max-width: 768px) {
  /* Admin Sidebar */
  .sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    height: 100vh;
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-lg);
  }
  .sidebar.active {
    left: 0;
  }
  
  /* Mobile Topbar for Admin */
  .mobile-header {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
  }
  
  /* Main Content */
  .main-content {
    margin-left: 0;
    width: 100%;
    padding: 20px 16px;
  }
  
  /* Tables */
  .glass { padding: 16px !important; }
  .data-table {
    display: block;
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
  }
  .data-table th, .data-table td {
    white-space: nowrap;
    padding: 12px 8px;
  }
  
  /* Forms & modal layouts that do need stacking on mobile */
  #form-register > div[style*="grid-template-columns"],
  .modal div[style*="grid-template-columns:1fr 1fr"],
  .modal div[style*="grid-template-columns:1fr 1fr 1fr"],
  .modal div[style*="grid-template-columns:2fr 1fr"],
  #bk-content div[style*="grid-template-columns:1fr 1fr"],
  #bk-content div[style*="grid-template-columns:2fr 1fr"],
  #m-content .modal div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  /* Portal & Booking Adjustments */
  h1.serif { font-size: 42px !important; }
  h2.serif { font-size: 28px !important; }
  #portal-view section, #booking-view {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  #booking-view {
    padding-top: 20px !important;
    padding-bottom: 32px !important;
  }
  #bk-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 12px;
  }
  #bk-stepper > div {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }
  #bk-stepper .step-item {
    min-width: 45px;
  }

  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}

/* ===== Utility Classes — Anti-Overflow ===== */
.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.text-wrap-safe {
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
  max-width: 100%;
}

.text-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-width: 0;
}

.text-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-width: 0;
}
