/* ============================================================
   VISUAD ATELIER · 2026 LUXURY PHYGITAL DESIGN SYSTEM
   Bespoke Design, Trade-Only Print & Spatial WebAR
   Themes: Obsidian Gold (Default), Imperial Emerald, Royal Cobalt
   ============================================================ */

/* ------------------------------------------------------------
   1. THEME DEFINITIONS & CSS VARIABLES
   ------------------------------------------------------------ */
:root, [data-theme="gold"] {
  --bg: #06070a;
  --bg-gradient: radial-gradient(circle at 50% -20%, #161822 0%, #06070a 60%, #030406 100%);
  --bg-card: rgba(18, 20, 28, 0.72);
  --bg-card-hover: rgba(28, 32, 44, 0.88);
  --border: rgba(212, 175, 55, 0.16);
  --border-hover: rgba(212, 175, 55, 0.45);
  --border-focus: rgba(212, 175, 55, 0.6);
  --text: #f5f7fb;
  --text-muted: #949eb2;
  --accent: #d4af37;
  --accent-light: #f3e5ab;
  --accent-dark: #aa8010;
  --accent-glow: rgba(212, 175, 55, 0.28);
  --accent-gradient: linear-gradient(135deg, #f7e8b6 0%, #d4af37 50%, #997510 100%);
  --badge-bg: rgba(212, 175, 55, 0.12);
  --badge-text: #f3e5ab;
  --glow-orb-1: rgba(212, 175, 55, 0.16);
  --glow-orb-2: rgba(0, 174, 239, 0.12);
  --glow-orb-3: rgba(236, 0, 140, 0.08);
}

[data-theme="emerald"] {
  --bg: #030d09;
  --bg-gradient: radial-gradient(circle at 50% -20%, #0a261c 0%, #030d09 60%, #010604 100%);
  --bg-card: rgba(10, 28, 20, 0.72);
  --bg-card-hover: rgba(16, 42, 30, 0.88);
  --border: rgba(0, 245, 212, 0.18);
  --border-hover: rgba(0, 245, 212, 0.5);
  --border-focus: rgba(0, 245, 212, 0.7);
  --text: #f0fdf9;
  --text-muted: #8bb3a2;
  --accent: #00f5d4;
  --accent-light: #bbf7d0;
  --accent-dark: #059669;
  --accent-glow: rgba(0, 245, 212, 0.3);
  --accent-gradient: linear-gradient(135deg, #ccfbf1 0%, #00f5d4 50%, #047857 100%);
  --badge-bg: rgba(0, 245, 212, 0.14);
  --badge-text: #00f5d4;
  --glow-orb-1: rgba(0, 245, 212, 0.18);
  --glow-orb-2: rgba(255, 209, 102, 0.14);
  --glow-orb-3: rgba(16, 185, 129, 0.1);
}

[data-theme="cobalt"] {
  --bg: #050818;
  --bg-gradient: radial-gradient(circle at 50% -20%, #111a3e 0%, #050818 60%, #02030a 100%);
  --bg-card: rgba(14, 22, 48, 0.72);
  --bg-card-hover: rgba(22, 34, 72, 0.88);
  --border: rgba(0, 229, 255, 0.18);
  --border-hover: rgba(0, 229, 255, 0.5);
  --border-focus: rgba(0, 229, 255, 0.7);
  --text: #f4f6ff;
  --text-muted: #8d9bbd;
  --accent: #00e5ff;
  --accent-light: #d8b4fe;
  --accent-dark: #7c3aed;
  --accent-glow: rgba(0, 229, 255, 0.3);
  --accent-gradient: linear-gradient(135deg, #e0e7ff 0%, #00e5ff 50%, #8b5cf6 100%);
  --badge-bg: rgba(0, 229, 255, 0.14);
  --badge-text: #00e5ff;
  --glow-orb-1: rgba(0, 229, 255, 0.2);
  --glow-orb-2: rgba(168, 85, 247, 0.16);
  --glow-orb-3: rgba(244, 162, 97, 0.1);
}

:root {
  --cmyk-c: #00aeef;
  --cmyk-m: #ec008c;
  --cmyk-y: #ffd200;
  --cmyk-k: #07080a;
  --whatsapp: #25d366;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --radius: 18px;
  --radius-sm: 10px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

/* Dynamic Ambient Glow Orbs */
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.ambient-glow::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 20%;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-orb-1), transparent 70%);
  filter: blur(120px);
  animation: orbFloat 18s ease-in-out infinite alternate;
  transition: background 0.5s ease;
}
.ambient-glow::after {
  content: "";
  position: absolute;
  bottom: -100px;
  right: 15%;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-orb-2), transparent 70%);
  filter: blur(130px);
  animation: orbFloat2 22s ease-in-out infinite alternate;
  transition: background 0.5s ease;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.15); }
}
@keyframes orbFloat2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-50px, -40px) scale(1.1); }
}

.cmyk-line {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  display: flex;
  z-index: 1000;
}
.cmyk-line span { flex: 1; }
.cmyk-line .c { background: var(--cmyk-c); }
.cmyk-line .m { background: var(--cmyk-m); }
.cmyk-line .y { background: var(--cmyk-y); }
.cmyk-line .k { background: rgba(255,255,255,0.2); }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ------------------------------------------------------------
   3. NAVIGATION & THEME SWITCHER
   ------------------------------------------------------------ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(6, 7, 10, 0.78);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.4s ease;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), var(--accent-glow));
  border: 1px solid var(--border-hover);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
  box-shadow: 0 4px 14px var(--accent-glow);
  transition: var(--transition);
}

.brand-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

/* Theme Switcher Dock */
.theme-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 3px;
}

.theme-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.theme-btn .theme-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.theme-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.theme-btn.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* ------------------------------------------------------------
   4. BUTTONS & UI PRIMITIVES
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-accent {
  background: var(--accent-gradient);
  color: #06070a;
  font-weight: 700;
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px var(--accent-glow);
  filter: brightness(1.08);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-hover);
  color: #fff;
}

.btn-wa {
  background: rgba(37, 211, 102, 0.12);
  color: var(--whatsapp);
  border-color: rgba(37, 211, 102, 0.35);
}
.btn-wa:hover {
  background: var(--whatsapp);
  color: #06070a;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  transform: translateY(-2px);
}

/* ------------------------------------------------------------
   5. HERO SECTION & ACCENTS
   ------------------------------------------------------------ */
.hero-section {
  padding: 110px 0 80px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  background: var(--badge-bg);
  border: 1px solid var(--border);
  color: var(--badge-text);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.hero-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 960px;
  margin: 0 auto 24px;
}

.accent-glow-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  text-shadow: 0 0 35px var(--accent-glow);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  max-width: 740px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-item strong {
  color: var(--text);
  font-weight: 700;
}

/* ------------------------------------------------------------
   6. FIVE PILLARS GRID
   ------------------------------------------------------------ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 40px 0 90px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: var(--transition);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-icon {
  font-size: 32px;
  margin-bottom: 18px;
  display: inline-block;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.pillar-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ------------------------------------------------------------
   7. INTERACTIVE PORTFOLIO SHOWCASE
   ------------------------------------------------------------ */
.showcase-section {
  padding: 90px 0;
  border-top: 1px solid var(--border);
  position: relative;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(16px);
}

.showcase-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 24px 50px rgba(0,0,0,0.6);
}

.showcase-preview {
  height: 210px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.06), transparent 70%);
}

.showcase-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border);
  color: var(--accent);
}

.showcase-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.showcase-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.showcase-specs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 14px 0 20px;
  padding: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.showcase-specs span strong {
  color: var(--text);
}

.showcase-action {
  margin-top: auto;
}

/* ------------------------------------------------------------
   8. SENSORY SIMULATOR & WEBAR CANVAS
   ------------------------------------------------------------ */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.section-tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* WebAR Specifics */
.webar-section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  position: relative;
}

.webar-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

@media (max-width: 960px) {
  .webar-grid { grid-template-columns: 1fr; }
}

.webar-canvas-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  text-align: center;
  backdrop-filter: blur(16px);
}

.webar-canvas-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 480px;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.03), transparent 60%);
  cursor: grab;
}

.webar-canvas-container:active { cursor: grabbing; }

#webar-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.webar-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.btn-webar-mode {
  background: var(--badge-bg);
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-webar-mode:hover, .btn-webar-mode.active {
  background: var(--accent);
  color: #06070a;
  box-shadow: 0 0 20px var(--accent-glow);
}

.webar-feature-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.webar-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px;
  transition: var(--transition);
  cursor: pointer;
  backdrop-filter: blur(16px);
}

.webar-feature-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.webar-feature-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.webar-feature-badge {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--badge-bg);
  color: var(--accent);
  font-weight: 700;
}

.webar-feature-title {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  color: #fff;
}

.webar-feature-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Studio Authority Strip */
.studio-network {
  margin-top: 30px;
  padding: 22px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.studio-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.studio-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: var(--transition);
}

.studio-pill:hover {
  border-color: var(--accent);
  color: #fff;
  background: var(--badge-bg);
}

/* ------------------------------------------------------------
   9. CALCULATOR SECTION
   ------------------------------------------------------------ */
.calc-section {
  padding: 90px 0;
  border-top: 1px solid var(--border);
}

.calc-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
}

@media (max-width: 900px) {
  .calc-container { grid-template-columns: 1fr; }
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.form-select, .form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.form-select:focus, .form-input:focus {
  border-color: var(--border-focus);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 16px var(--accent-glow);
}

.chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-item {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.chip-item input {
  display: none;
}

.chip-item:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.chip-item.active {
  background: var(--badge-bg);
  border-color: var(--accent);
  color: var(--accent-light);
  font-weight: 600;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.calc-summary {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
}

.summary-unit {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 700;
}

.summary-price {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--accent);
  margin: 6px 0 12px;
  line-height: 1;
}

.summary-price span {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
}

.summary-lead-time {
  font-size: 12.5px;
  color: var(--accent);
  background: var(--badge-bg);
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 22px;
}

.summary-details {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 13.5px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.detail-row .k { color: var(--text-muted); }
.detail-row .v { color: var(--text); font-weight: 600; text-align: right; }

.cta-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

/* ------------------------------------------------------------
   10. MODAL DRAWER
   ------------------------------------------------------------ */
.webar-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.webar-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.webar-modal-content {
  background: #0a0c12;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  max-width: 520px;
  width: 100%;
  padding: 34px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.webar-modal.open .webar-modal-content {
  transform: scale(1);
}

.webar-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.webar-modal-close:hover { color: #fff; }

/* ------------------------------------------------------------
   11. COOKIE BANNER & FOOTER
   ------------------------------------------------------------ */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 540px;
  background: rgba(14, 16, 24, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  z-index: 9999;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cookie-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.cookie-text strong { display: block; color: var(--text); margin-bottom: 4px; font-size: 14px; }
.cookie-text a { color: var(--accent); }

.cookie-actions { display: flex; gap: 10px; }
.btn-cookie-accept {
  background: var(--accent-gradient);
  color: #06070a;
  border: none;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.btn-cookie-essential {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 60px;
  margin-top: 100px;
  color: var(--text-muted);
  font-size: 13.5px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
