/* ============================================================
   STREAMVAULT — Premium IPTV  |  style.css
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ── CSS Variables ── */
:root {
  /* Brand */
  --cyan:     #00e5ff;
  --cyan-dim: #00b8cc;
  --violet:   #7c3aed;
  --violet-2: #9f5bff;
  --pink:     #ff2d78;

  /* Dark theme (default) */
  --bg:          #05080f;
  --bg-2:        #0a0f1e;
  --bg-card:     rgba(255,255,255,.04);
  --bg-card-hov: rgba(255,255,255,.08);
  --border:      rgba(255,255,255,.07);
  --border-glow: rgba(0,229,255,.25);
  --txt:         #e8eaf6;
  --txt-muted:   #8892a4;
  --txt-head:    #ffffff;
  --nav-bg:      rgba(5,8,15,.85);
  --shadow:      0 8px 40px rgba(0,0,0,.6);
  --shadow-glow: 0 0 40px rgba(0,229,255,.18);

  /* Spacing */
  --r: 14px;
  --r-lg: 22px;
  --section-py: 96px;
  --nav-h: 68px;
}

/* ── Light theme ── */
[data-theme="light"] {
  --bg:          #f0f4ff;
  --bg-2:        #ffffff;
  --bg-card:     rgba(255,255,255,.8);
  --bg-card-hov: rgba(255,255,255,1);
  --border:      rgba(0,0,0,.08);
  --border-glow: rgba(124,58,237,.3);
  --txt:         #1a2035;
  --txt-muted:   #5a6480;
  --txt-head:    #0a0f1e;
  --nav-bg:      rgba(240,244,255,.9);
  --shadow:      0 8px 40px rgba(0,0,0,.12);
  --shadow-glow: 0 0 40px rgba(124,58,237,.15);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background: var(--bg);
  color: var(--txt);
  transition: background .35s, color .35s;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Typography ── */
h1,h2,h3,h4,h5 {
  font-family: 'Syne', sans-serif;
  color: var(--txt-head);
  line-height: 1.18;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--txt); }

/* ── Gradient text ── */
.grad {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--violet-2) 60%, var(--pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.grad-2 {
  background: linear-gradient(135deg, var(--violet-2), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Container ── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-wide { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 28px; }

/* ── Section ── */
.section { padding: var(--section-py) 0; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 16px;
}
.section-label::before, .section-label::after {
  content: ''; width: 28px; height: 1px; background: var(--cyan); opacity: .5;
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-header p { color: var(--txt-muted); max-width: 560px; margin: 12px auto 0; font-size: 1.05rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 30px; border-radius: 50px; font-size: .95rem; font-weight: 600;
  border: none; transition: all .25s; position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0);
  transition: background .2s;
}
.btn:hover::after { background: rgba(255,255,255,.08); }

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--violet-2));
  color: #fff;
  box-shadow: 0 4px 24px rgba(0,229,255,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,229,255,.5);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-glow);
  color: var(--txt-head);
}
.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 20px rgba(0,229,255,.2);
  transform: translateY(-2px);
}
.btn-ghost {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--txt);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--bg-card-hov); transform: translateY(-2px); }
.btn-sm { padding: 9px 20px; font-size: .85rem; }
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }

/* Ripple */
.ripple { position: relative; overflow: hidden; }
.ripple-effect {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.25);
  transform: scale(0); animation: ripple-anim .6s linear;
  pointer-events: none;
}
@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* ── Glassmorphism card ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  backdrop-filter: blur(16px);
  transition: all .3s;
}
.card:hover {
  background: var(--bg-card-hov);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* ── Badge ── */
.badge {
  display: inline-block; padding: 4px 14px; border-radius: 50px;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.badge-cyan { background: rgba(0,229,255,.12); color: var(--cyan); border: 1px solid rgba(0,229,255,.25); }
.badge-violet { background: rgba(124,58,237,.15); color: var(--violet-2); border: 1px solid rgba(124,58,237,.25); }
.badge-pink { background: rgba(255,45,120,.12); color: var(--pink); border: 1px solid rgba(255,45,120,.25); }
.badge-gold { background: rgba(255,193,7,.12); color: #ffc107; border: 1px solid rgba(255,193,7,.25); }

/* ── Stars ── */
.stars { display: flex; gap: 3px; color: #ffc107; font-size: .9rem; }
.star-svg { fill: #ffc107; width: 16px; height: 16px; }

/* ── Divider ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
  margin: 0;
}

/* ================================================================
   NAVIGATION
   ================================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background .3s, border-color .3s;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; gap: 16px;
}
/* Logo */
.nav-logo {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.25rem;
  color: var(--txt-head); white-space: nowrap;
}
.nav-logo svg { flex-shrink: 0; }

/* Desktop links */
.nav-links {
  display: flex; align-items: center; gap: 2px;
}
.nav-links a {
  padding: 7px 13px; border-radius: 8px; font-size: .88rem; font-weight: 500;
  color: var(--txt-muted); transition: all .18s;
  white-space: nowrap;
}
.nav-links a:hover  { color: var(--txt-head); background: rgba(255,255,255,.05); }
.nav-links a.active { color: var(--cyan);     background: rgba(0,229,255,.08); }

/* Right-side actions */
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Theme toggle */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; color: var(--txt-muted); flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--border-glow); color: var(--cyan); }
.theme-toggle svg   { width: 16px; height: 16px; }

/* Get Started button */
.nav-cta-btn { display: none; }
@media (min-width: 640px) { .nav-cta-btn { display: flex; } }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 38px; height: 38px; align-items: center; justify-content: center;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 9px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block; width: 18px; height: 2px;
  background: var(--txt); border-radius: 2px;
  transition: transform .28s ease, opacity .2s ease;
}

/* ── Mobile Nav Drawer ───────────────────────────────── */
.nav-mobile {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  z-index: 999;
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
  /* slide animation */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height .38s cubic-bezier(.4,0,.2,1),
              opacity .25s ease,
              transform .28s ease;
  pointer-events: none;
}
.nav-mobile.open {
  max-height: 520px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.nav-mobile-links { padding: 10px 14px 6px; }

.nav-mobile-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 10px;
  font-size: .93rem; font-weight: 500;
  color: var(--txt); transition: background .15s, color .15s;
  margin-bottom: 2px; text-decoration: none;
}
.nav-mobile-link:hover,
.nav-mobile-link.active {
  background: var(--bg-card);
  color: var(--cyan);
}
.nav-mobile-link.active .nav-mobile-icon { color: var(--cyan); }

.nav-mobile-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--txt-muted); flex-shrink: 0;
  transition: background .15s, color .15s;
}
.nav-mobile-link:hover .nav-mobile-icon {
  background: rgba(0,229,255,.08);
  border-color: rgba(0,229,255,.2);
  color: var(--cyan);
}

.nav-mobile-footer {
  padding: 10px 14px 16px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

/* Responsive breakpoint */
@media (max-width: 1023px) {
  .nav-links     { display: none; }
  .nav-hamburger { display: flex; }
}
@media (min-width: 1024px) {
  .nav-mobile    { display: none !important; }
  .nav-hamburger { display: none !important; }
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex; align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}
#hero-canvas {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
.hero-bg-grad {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,229,255,.08) 0%, transparent 70%),
              radial-gradient(ellipse 60% 50% at 80% 80%, rgba(124,58,237,.1) 0%, transparent 60%),
              var(--bg);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; max-width: 780px; margin: 0 auto;
  padding: 80px 20px 40px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,229,255,.08); border: 1px solid rgba(0,229,255,.2);
  border-radius: 50px; padding: 6px 16px;
  font-size: .82rem; font-weight: 600; color: var(--cyan);
  margin-bottom: 28px;
}
.hero-eyebrow svg { width: 14px; height: 14px; fill: var(--cyan); }
.hero h1 { margin-bottom: 22px; }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--txt-muted); max-width: 560px; margin: 0 auto 36px;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.hero-trust {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  flex-wrap: wrap; font-size: .85rem; color: var(--txt-muted);
}
.hero-trust-item { display: flex; align-items: center; gap: 6px; }
.hero-trust-item svg { width: 16px; height: 16px; fill: var(--cyan); }

/* Slider */
.hero-slider-wrap {
  position: relative; z-index: 2;
  max-width: 1100px; margin: 0 auto;
  padding: 0 20px 60px;
}
.hero-slider {
  position: relative; border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border-glow);
  box-shadow: 0 20px 80px rgba(0,229,255,.15), var(--shadow);
}
.hero-slide {
  display: none; position: relative;
}
.hero-slide.active { display: block; animation: fadeSlide .6s ease; }
@keyframes fadeSlide {
  from { opacity: 0; transform: scale(1.03); }
  to   { opacity: 1; transform: scale(1); }
}
.hero-slide img {
  width: 100%; height: 420px; object-fit: cover;
  filter: brightness(.85);
}
.hero-slide-caption {
  position: absolute; bottom: 20px; left: 20px;
  background: rgba(5,8,15,.8); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 16px; font-size: .85rem; font-weight: 600; color: var(--txt);
}
.slider-dots {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.slider-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.3); cursor: pointer; transition: all .3s; border: none;
}
.slider-dot.active { background: var(--cyan); width: 24px; border-radius: 4px; }

/* ================================================================
   STATS
   ================================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-card {
  text-align: center; padding: 32px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(12px);
  transition: all .3s;
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet-2));
  opacity: 0; transition: opacity .3s;
}
.stat-card:hover::before { opacity: 1; }
.stat-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}
.stat-icon {
  width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
}
.stat-icon svg { width: 26px; height: 26px; }
.stat-num {
  font-family: 'Syne', sans-serif; font-size: 2.2rem; font-weight: 800;
  line-height: 1; margin-bottom: 6px;
}
.stat-label { font-size: .9rem; color: var(--txt-muted); font-weight: 500; }

/* ================================================================
   FEATURES
   ================================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feat-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(12px);
  transition: all .3s;
}
.feat-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}
.feat-icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,229,255,.1);
}
.feat-icon svg { width: 24px; height: 24px; stroke: var(--cyan); fill: none; stroke-width: 1.7; }
.feat-card h4 { margin-bottom: 8px; }
.feat-card p { font-size: .9rem; color: var(--txt-muted); }

/* ================================================================
   DEVICES
   ================================================================ */
.devices-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
}
.device-card {
  text-align: center; padding: 22px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(10px);
  transition: all .3s; cursor: pointer;
}
.device-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(0,229,255,.2);
  transform: translateY(-6px);
}
.device-card img {
  width: 56px; height: 56px; object-fit: contain; margin: 0 auto 12px;
}
.device-card p { font-size: .82rem; font-weight: 600; color: var(--txt-muted); }

/* ================================================================
   PRICING (shared)
   ================================================================ */
.pricing-tabs {
  display: flex; gap: 8px; justify-content: center; margin-bottom: 48px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 50px; padding: 6px; width: fit-content; margin-left: auto; margin-right: auto;
  backdrop-filter: blur(12px);
}
.pricing-tab {
  padding: 10px 28px; border-radius: 50px; font-size: .9rem; font-weight: 600;
  border: none; background: transparent; color: var(--txt-muted); transition: all .25s;
}
.pricing-tab.active {
  background: linear-gradient(135deg, var(--cyan), var(--violet-2));
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,229,255,.35);
}
.pricing-tab:hover:not(.active) { color: var(--txt-head); }

.pricing-panel { display: none; animation: fadeIn .4s ease; }
.pricing-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.pricing-grid {
  display: grid; gap: 20px;
}
.pricing-grid-3 { grid-template-columns: repeat(3, 1fr); }
.pricing-grid-4 { grid-template-columns: repeat(4, 1fr); }
.pricing-grid-5 { grid-template-columns: repeat(5, 1fr); }

.price-card {
  position: relative; padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(16px);
  transition: all .3s;
  overflow: hidden;
}
.price-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--border); transition: background .3s;
}
.price-card:hover, .price-card.featured {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}
.price-card.featured::before,
.price-card:hover::before {
  background: linear-gradient(90deg, var(--cyan), var(--violet-2));
}
.price-card.featured { transform: scale(1.03); }
.popular-badge {
  position: absolute; top: 16px; right: 16px;
}
.price-name { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.price-desc { font-size: .88rem; color: var(--txt-muted); margin-bottom: 20px; min-height: 40px; }
.price-amount {
  display: flex; align-items: flex-end; gap: 4px; margin-bottom: 6px;
}
.price-currency { font-size: 1.3rem; font-weight: 700; color: var(--cyan); align-self: flex-start; margin-top: 8px; }
.price-num { font-family: 'Syne', sans-serif; font-size: 3rem; font-weight: 800; line-height: 1; color: var(--txt-head); }
.price-period { font-size: .85rem; color: var(--txt-muted); margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.price-features { margin-bottom: 28px; }
.price-feature {
  display: flex; align-items: center; gap: 10px;
  font-size: .88rem; padding: 5px 0; color: var(--txt);
}
.price-feature svg { width: 16px; height: 16px; flex-shrink: 0; fill: var(--cyan); }
.price-card .btn { width: 100%; }

/* ================================================================
   REVIEWS
   ================================================================ */
.reviews-section { overflow: hidden; }
.marquee-wrap { margin-bottom: 16px; overflow: hidden; }
.marquee-track {
  display: flex; gap: 16px;
  animation: marquee-left 35s linear infinite;
  width: max-content;
}
.marquee-track.reverse {
  animation: marquee-right 38s linear infinite;
}
@keyframes marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }

.review-card {
  flex-shrink: 0; width: 300px; padding: 22px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(12px);
}
.review-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet-2));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: .9rem; color: #fff;
  flex-shrink: 0;
}
.review-meta strong { display: block; font-size: .9rem; font-weight: 700; }
.review-meta span { font-size: .78rem; color: var(--txt-muted); }
.review-text { font-size: .88rem; color: var(--txt-muted); line-height: 1.6; }

/* ================================================================
   CTA SECTION
   ================================================================ */
.cta-section {
  position: relative; overflow: hidden; text-align: center;
  padding: 100px 20px;
}
.cta-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,229,255,.06) 0%, rgba(124,58,237,.1) 50%, rgba(255,45,120,.06) 100%);
}
.cta-bg::before {
  content: ''; position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1593784991095-a205069470b6?w=1600&q=80') center/cover;
  opacity: .06;
}
.cta-section h2 { position: relative; z-index: 1; margin-bottom: 16px; }
.cta-section p { position: relative; z-index: 1; color: var(--txt-muted); max-width: 480px; margin: 0 auto 36px; }
.cta-btns { position: relative; z-index: 1; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer::before {
  content: ''; display: block; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--violet-2), var(--pink), transparent);
  margin-bottom: 1px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand p { font-size: .9rem; color: var(--txt-muted); margin: 14px 0 20px; max-width: 280px; }
.footer-socials { display: flex; gap: 10px; }
.footer-social {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; color: var(--txt-muted);
}
.footer-social:hover { border-color: var(--cyan); color: var(--cyan); }
.footer-social svg { width: 16px; height: 16px; }
.footer-col h5 {
  font-family: 'Syne', sans-serif; font-size: .95rem; font-weight: 700;
  margin-bottom: 16px; color: var(--txt-head);
}
.footer-col a {
  display: block; font-size: .88rem; color: var(--txt-muted);
  padding: 4px 0; transition: color .2s;
}
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: .83rem; color: var(--txt-muted); }

/* ================================================================
   FAQ
   ================================================================ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item:hover { border-color: var(--border-glow); }
.faq-item.open { border-color: var(--border-glow); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; cursor: pointer;
  font-weight: 600; font-size: 1rem;
  background: none; border: none; width: 100%;
  text-align: left; color: var(--txt-head);
}
.faq-q svg {
  width: 20px; height: 20px; stroke: var(--txt-muted); transition: transform .3s;
  flex-shrink: 0;
}
.faq-item.open .faq-q svg { transform: rotate(45deg); stroke: var(--cyan); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease, padding .4s;
  font-size: .93rem; color: var(--txt-muted); padding: 0 24px;
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 24px 20px; }

/* ================================================================
   BLOG
   ================================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: all .3s;
}
.blog-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 22px; }
.blog-card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.blog-date { font-size: .78rem; color: var(--txt-muted); }
.blog-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.blog-card p { font-size: .88rem; color: var(--txt-muted); margin-bottom: 16px; }
.blog-card a.read-more {
  font-size: .85rem; font-weight: 600; color: var(--cyan); display: inline-flex; align-items: center; gap: 4px;
}
.blog-card a.read-more:hover { gap: 8px; }

/* ================================================================
   BLOG POST
   ================================================================ */
.blog-post-hero {
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 60px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,229,255,.07) 0%, transparent 70%), var(--bg);
}
.blog-post-article { max-width: 760px; margin: 0 auto; padding: 60px 20px; }
.blog-post-article h2 { margin: 36px 0 14px; font-size: 1.6rem; }
.blog-post-article h3 { margin: 28px 0 10px; font-size: 1.2rem; }
.blog-post-article p { margin-bottom: 18px; }
.blog-post-article ul { padding-left: 24px; margin-bottom: 18px; }
.blog-post-article ul li { margin-bottom: 8px; color: var(--txt-muted); }

/* ================================================================
   CONTACT
   ================================================================ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start;
}
.contact-info-item {
  display: flex; align-items: center; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(0,229,255,.1); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg { width: 22px; height: 22px; stroke: var(--cyan); fill: none; stroke-width: 1.8; }
.contact-info-item h4 { font-size: .9rem; margin-bottom: 2px; }
.contact-info-item p { font-size: .88rem; color: var(--txt-muted); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--txt-muted); }
.form-control {
  padding: 13px 16px; border-radius: var(--r);
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--txt-head); font-family: inherit; font-size: .95rem;
  transition: all .2s; backdrop-filter: blur(8px);
}
.form-control:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,229,255,.12); }
.form-control::placeholder { color: var(--txt-muted); }
textarea.form-control { resize: vertical; min-height: 140px; }
select.form-control { appearance: none; }

/* ── Order modal form fields — dark premium style ── */
.order-form-v2 .form-control {
  background: rgba(255,255,255,.04);
  border: 1.5px solid rgba(255,255,255,.09);
  border-radius: 12px;
  color: #e2e8f0;
  font-size: .9rem;
  padding: 13px 16px;
  transition: border-color .2s, background .2s, box-shadow .2s;
  width: 100%;
}
.order-form-v2 .form-control::placeholder {
  color: #475569;
  font-size: .88rem;
}
.order-form-v2 .form-control:focus {
  outline: none;
  border-color: rgba(0,229,255,.5);
  background: rgba(0,229,255,.04);
  box-shadow: 0 0 0 3px rgba(0,229,255,.1);
}
.order-form-v2 .form-control:hover:not(:focus) {
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}
.order-form-v2 select.form-control {
  appearance: none;
  cursor: pointer;
}
.order-form-v2 textarea.form-control {
  resize: none;
  min-height: 80px;
  line-height: 1.5;
}
/* map-banner styles moved to bottom of file */

/* ================================================================
   ORDER PAGES
   ================================================================ */
.order-page { padding: calc(var(--nav-h) + 60px) 0 80px; }
.order-container { max-width: 640px; margin: 0 auto; }
.order-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 40px; backdrop-filter: blur(16px);
}
.order-title { text-align: center; margin-bottom: 32px; }
.order-title h1 { font-size: 1.8rem; margin-bottom: 8px; }
.order-title p { color: var(--txt-muted); font-size: .9rem; }
.order-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.order-divider { height: 1px; background: var(--border); margin: 8px 0; }
.order-plan-badge {
  background: rgba(0,229,255,.08); border: 1px solid rgba(0,229,255,.2);
  border-radius: var(--r); padding: 16px 20px; margin-bottom: 24px; text-align: center;
}
.order-plan-badge .plan-name { font-weight: 700; color: var(--cyan); font-size: 1rem; }
.order-plan-badge .plan-price { font-family: 'Syne', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--txt-head); }

/* Confirmation */
.confirm-card { text-align: center; padding: 56px 40px; }
.confirm-icon {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 24px;
  background: rgba(0,229,255,.1); border: 2px solid var(--cyan);
  display: flex; align-items: center; justify-content: center;
}
.confirm-icon svg { width: 40px; height: 40px; stroke: var(--cyan); fill: none; stroke-width: 2; }
.confirm-details {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r);
  padding: 20px; margin: 24px 0; text-align: left;
}
.confirm-row {
  display: flex; justify-content: space-between; padding: 8px 0;
  border-bottom: 1px solid var(--border); font-size: .9rem;
}
.confirm-row:last-child { border-bottom: none; }
.confirm-row strong { color: var(--txt-head); }

/* ================================================================
   LEGAL PAGES
   ================================================================ */
.legal-page { padding: calc(var(--nav-h) + 60px) 0 80px; }
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h1 { margin-bottom: 8px; }
.legal-date { color: var(--txt-muted); font-size: .88rem; margin-bottom: 40px; }
.legal-content h2 { font-size: 1.3rem; margin: 32px 0 12px; }
.legal-content p { margin-bottom: 14px; color: var(--txt-muted); font-size: .95rem; }
.legal-content ul { padding-left: 20px; margin-bottom: 14px; }
.legal-content ul li { margin-bottom: 6px; color: var(--txt-muted); font-size: .95rem; }

/* ================================================================
   SCROLL ANIMATIONS
   ================================================================ */
.reveal {
  opacity: 0; transform: translateY(28px); transition: all .7s cubic-bezier(.2,1,.4,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ================================================================
   PAGE HERO (inner pages)
   ================================================================ */
.page-hero {
  padding: calc(var(--nav-h) + 72px) 0 72px;
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,229,255,.07) 0%, transparent 70%), var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { color: var(--txt-muted); font-size: 1.05rem; max-width: 540px; margin: 0 auto; }
.breadcrumb {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: .83rem; color: var(--txt-muted); margin-bottom: 16px;
}
.breadcrumb a { color: var(--cyan); }
.breadcrumb svg { width: 12px; height: 12px; stroke: var(--txt-muted); fill: none; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1200px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .devices-grid { grid-template-columns: repeat(4, 1fr); }
  .pricing-grid-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  :root { --section-py: 72px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 768px) {
  :root { --section-py: 60px; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .devices-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .pricing-grid-4 { grid-template-columns: 1fr 1fr; }
  .pricing-grid-5 { grid-template-columns: 1fr 1fr; }
  .pricing-grid-3 { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .blog-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .order-card { padding: 28px 20px; }
  .hero-slide img { height: 260px; }
  .pricing-tabs { flex-wrap: wrap; width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .devices-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-ctas { flex-direction: column; align-items: center; }
  .pricing-grid-4 { grid-template-columns: 1fr; }
  .pricing-grid-5 { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 320px) {
  .container { padding: 0 14px; }
  h1 { font-size: 1.9rem; }
  .pricing-tabs { padding: 4px; }
  .pricing-tab { padding: 9px 16px; font-size: .82rem; }
}

/* ================================================================
   MISC UTILITIES
   ================================================================ */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-24 { margin-bottom: 24px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-12 { gap: 12px; }
.hidden { display: none !important; }

/* ================================================================
   ORDER MODAL OVERLAY
   ================================================================ */
/* old modal styles removed — see ORDER MODAL v2 at bottom */

/* ================================================================
   SELECT DROPDOWN — fix option visibility in dark theme
   ================================================================ */
select.form-control option {
  background: #1a2035;
  color: #e8eaf6;
  padding: 8px 12px;
}
/* Light theme select options */
[data-theme="light"] select.form-control option {
  background: #ffffff;
  color: #1a2035;
}
/* Fix select arrow colour */
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300e5ff' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
[data-theme="light"] select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

/* ── Spin animation for loading button ── */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Modal close button z-index fix ── */
.modal-close {
  z-index: 10;
  cursor: pointer;
}

/* ================================================================
   WORLD MAP — contact page
   ================================================================ */
.map-banner {
  margin-top: 60px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border-glow);
  position: relative;
  min-height: 340px;
  background: linear-gradient(135deg, #03081a 0%, #080d20 40%, #0d0618 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="light"] .map-banner {
  background: linear-gradient(135deg, #0a1628 0%, #0d1f3c 40%, #0a1240 100%);
}

/* SVG map fills the banner */
.world-map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
}

/* Continent shapes */
.continent {
  fill: rgba(0, 180, 255, 0.08);
  stroke: rgba(0, 229, 255, 0.25);
  stroke-width: 0.8;
  transition: fill 0.3s;
}
.europe-highlight {
  fill: rgba(0, 229, 255, 0.18);
  stroke: rgba(0, 229, 255, 0.55);
  stroke-width: 1.2;
}
.uk-highlight {
  fill: rgba(0, 229, 255, 0.25);
  stroke: rgba(0, 229, 255, 0.7);
  stroke-width: 1.4;
}

[data-theme="light"] .continent         { fill: rgba(0, 120, 200, 0.15); stroke: rgba(0, 160, 255, 0.4); }
[data-theme="light"] .europe-highlight  { fill: rgba(0, 180, 255, 0.30); stroke: rgba(0, 200, 255, 0.7); }
[data-theme="light"] .uk-highlight      { fill: rgba(0, 200, 255, 0.40); stroke: rgba(0, 220, 255, 0.9); }

/* Connection lines */
.conn-line {
  stroke: rgba(0, 229, 255, 0.12);
  stroke-width: 0.6;
  stroke-dasharray: 4 4;
}
.conn-line-short {
  stroke: rgba(0, 229, 255, 0.2);
  stroke-width: 0.8;
  stroke-dasharray: 3 3;
}

/* City dots */
.city-dot { transition: r 0.3s; }
.city-primary   { fill: #00e5ff; }
.city-secondary { fill: #7c3aed; }
.city-tertiary  { fill: rgba(0,229,255,0.6); }
.city-world     { fill: rgba(0,229,255,0.25); }

/* Pulse rings */
.city-pulse {
  fill: none;
  stroke: #00e5ff;
  stroke-width: 1;
  opacity: 0;
  animation: cityPulse 2.4s ease-out infinite;
}
.city-pulse-delay1 { animation-delay: 0.8s; }
.city-pulse-delay2 { animation-delay: 1.6s; }
.city-pulse-delay3 { animation-delay: 0.4s; }

@keyframes cityPulse {
  0%   { opacity: 0.7; r: 6;  }
  100% { opacity: 0;   r: 22; }
}

/* City labels */
.city-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 5.5px;
  fill: rgba(0, 229, 255, 0.65);
  font-weight: 600;
  letter-spacing: 0.03em;
}
.city-label-primary {
  font-size: 6.5px;
  fill: #00e5ff;
}

/* Overlay text */
.map-overlay-text {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 36px 24px;
  pointer-events: none;
}
.map-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  text-shadow: 0 0 30px rgba(0,229,255,0.4);
}
[data-theme="light"] .map-title { color: #fff; }

.map-subtitle {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.65);
  max-width: 440px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

/* Server pills */
.map-server-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.server-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
}
.server-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 6px #00e5ff;
  animation: serverBlink 2s ease-in-out infinite;
  flex-shrink: 0;
}
.server-pill:nth-child(2) .server-dot { animation-delay: 0.3s; }
.server-pill:nth-child(3) .server-dot { animation-delay: 0.6s; background: #7c3aed; box-shadow: 0 0 6px #7c3aed; }
.server-pill:nth-child(4) .server-dot { animation-delay: 0.9s; }
.server-pill:nth-child(5) .server-dot { animation-delay: 1.2s; background: #7c3aed; box-shadow: 0 0 6px #7c3aed; }
.server-pill:nth-child(6) .server-dot { animation-delay: 1.5s; }

@keyframes serverBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.75); }
}

@media (max-width: 600px) {
  .map-banner { min-height: 280px; }
  .map-server-dots { gap: 6px; }
  .server-pill { font-size: 0.72rem; padding: 4px 10px; }
}

/* ================================================================
   DEVICES — premium icon card grid (new style)
   ================================================================ */
.devices-grid-new {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.device-card-new {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 20px 26px;
  text-align: center;
  backdrop-filter: blur(14px);
  transition: all .35s cubic-bezier(.2,1,.4,1);
  cursor: pointer;
  overflow: hidden;
}

/* Glow top line on hover */
.device-card-new::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--dev-color, var(--cyan)), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.device-card-new:hover::before { opacity: 1; }

/* Subtle glow behind icon */
.device-card-new::after {
  content: '';
  position: absolute;
  top: 20px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 100px; border-radius: 50%;
  background: radial-gradient(circle, var(--dev-color, var(--cyan)) 0%, transparent 70%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.device-card-new:hover::after { opacity: .08; }

.device-card-new:hover {
  border-color: var(--dev-color, var(--border-glow));
  box-shadow: 0 8px 40px color-mix(in srgb, var(--dev-color, #00e5ff) 20%, transparent);
  transform: translateY(-6px);
}

/* Icon circle */
.device-icon-wrap {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--dev-bg, rgba(0,229,255,.1));
  border: 1.5px solid color-mix(in srgb, var(--dev-color, #00e5ff) 30%, transparent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  transition: all .35s;
  position: relative; z-index: 1;
}
.device-card-new:hover .device-icon-wrap {
  transform: scale(1.08);
  box-shadow: 0 0 24px color-mix(in srgb, var(--dev-color, #00e5ff) 30%, transparent);
}

.device-card-new h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--txt-head);
  transition: color .2s;
}
.device-card-new:hover h4 { color: var(--dev-color, var(--cyan)); }

.device-card-new p {
  font-size: .82rem;
  color: var(--txt-muted);
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 1100px) {
  .devices-grid-new { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .devices-grid-new { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .device-icon-wrap { width: 72px; height: 72px; }
  .device-icon-wrap svg { width: 40px; height: 40px; }
}
@media (max-width: 400px) {
  .devices-grid-new { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .device-card-new { padding: 22px 12px 18px; }
}

/* ================================================================
   ORDER MODAL v2 — split-panel premium layout
   ================================================================ */

/* Overlay */
#order-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
#order-overlay.open {
  opacity: 1; pointer-events: all;
}
#order-modal-wrap {
  width: 100%; max-width: 920px;
  max-height: 90vh; overflow-y: auto;
  border-radius: 20px;
}
#order-modal-wrap::-webkit-scrollbar { width: 6px; }
#order-modal-wrap::-webkit-scrollbar-track { background: transparent; }
#order-modal-wrap::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 3px; }

/* Split layout */
.order-modal-v2 {
  display: grid;
  grid-template-columns: 300px 1fr;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: #080e20;
}

/* ── LEFT panel ── */
.om-left {
  background: linear-gradient(160deg, #05091a 0%, #0a0f26 60%, #0d0a22 100%);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  border-right: 1px solid rgba(255,255,255,.07);
  position: relative;
  /* Force dark panel — works in both themes */
  color-scheme: dark;
}

/* Close button — positioned top-right of whole modal */
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8; cursor: pointer; z-index: 10;
  transition: all .2s;
}
.modal-close:hover { background: rgba(255,255,255,.14); color: #fff; }
/* On mobile close is top-right of entire card */
@media (max-width: 700px) {
  .modal-close { position: fixed; top: 20px; right: 20px; }
}

.om-badge {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 50px;
  font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; border: 1px solid;
  margin-bottom: 20px; width: fit-content;
}

.om-check-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: rgba(0,229,255,.1);
  border: 1.5px solid rgba(0,229,255,.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan); margin-bottom: 20px;
}

.om-plan-name {
  font-size: 1.25rem; font-weight: 800;
  color: #ffffff; margin-bottom: 4px;
  text-shadow: 0 0 20px rgba(0,229,255,.15);
}
.om-price-big {
  font-size: 2.8rem; font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--violet-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1.1;
  transition: transform .3s;
}
.om-price-big.price-bump { animation: priceBump .4s ease; }
@keyframes priceBump {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.om-duration {
  font-size: .85rem; color: #94a3b8 !important; margin-top: 4px; margin-bottom: 8px;
}
.om-divider {
  height: 1px; background: rgba(255,255,255,.07);
  margin: 16px 0;
}
.om-features {
  list-style: none; display: flex; flex-direction: column; gap: 9px;
  margin-bottom: 20px;
}
.om-features li {
  display: flex; align-items: center; gap: 8px;
  font-size: .85rem; color: #cbd5e1 !important;
}
.om-features li svg { color: var(--cyan); flex-shrink: 0; }

.om-trust {
  display: flex; flex-direction: column; gap: 7px;
  margin-top: auto; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.om-trust-item {
  display: flex; align-items: center; gap: 7px;
  font-size: .78rem; color: #94a3b8 !important;
}
.om-trust-item svg { color: #22c55e; flex-shrink: 0; }
.om-order-ref {
  margin-top: 12px;
  font-size: .72rem; color: #334155;
}
.om-order-ref strong { color: var(--cyan); }

/* ── RIGHT panel ── */
.om-right {
  background: #080e20;
  padding: 36px 36px 32px;
  overflow-y: auto;
  max-height: 90vh;
}
.om-form-title {
  font-size: 1.5rem; font-weight: 800;
  color: var(--txt-head); margin-bottom: 6px;
}
.om-form-sub {
  font-size: .88rem; color: var(--txt-muted);
  margin-bottom: 24px; line-height: 1.5;
}
.order-form-v2 { display: flex; flex-direction: column; gap: 0; }

/* Section labels */
.of-section-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .12em;
  color: #475569; text-transform: uppercase;
  margin-bottom: 10px; margin-top: 18px;
}
.of-section-label:first-child { margin-top: 0; }

/* Field row */
.of-field-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 10px;
}
.of-field { margin-bottom: 10px; }
.of-field:last-child { margin-bottom: 0; }

/* Connection buttons */
.of-conn-row {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 8px;
  margin-bottom: 4px;
}
.of-conn-btn {
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 8px; border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
  cursor: pointer; transition: all .2s;
  color: var(--txt-muted);
}
.of-conn-btn:hover {
  border-color: rgba(0,229,255,.3);
  background: rgba(0,229,255,.05);
  color: var(--txt-head);
}
.of-conn-btn.active {
  border-color: var(--cyan);
  background: rgba(0,229,255,.1);
  color: var(--cyan);
}
.of-conn-num  { font-size: 1.4rem; font-weight: 900; line-height: 1; }
.of-conn-lbl  { font-size: .72rem; margin-top: 2px; }
.of-conn-price { font-size: .68rem; margin-top: 4px; opacity: .7; }
.of-conn-btn.active .of-conn-price { color: var(--cyan); opacity: 1; }

/* Submit button */
.of-submit-btn {
  width: 100%; justify-content: center; margin-top: 20px;
  padding: 15px 24px; font-size: 1rem; font-weight: 700; border-radius: 12px;
  gap: 8px;
}

/* ── Success screen — occupies right panel only ── */
.order-success-v2 {
  grid-column: 2;
  display: flex; flex-direction: column; justify-content: center;
  padding: 36px 36px 32px;
  background: #080e20;
  overflow-y: auto;
}
.order-success-v2.hidden { display: none; }

/* inner wrapper for centering content */
.os-content {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; max-width: 420px; margin: 0 auto; width: 100%;
}

.os-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(0,229,255,.1);
  border: 2px solid rgba(0,229,255,.35);
  display: flex; align-items: center; justify-content: center;
  color: #00e5ff; margin-bottom: 20px;
  box-shadow: 0 0 32px rgba(0,229,255,.2);
}
.os-content h3 {
  font-size: 1.6rem; font-weight: 800; color: #ffffff;
  margin-bottom: 8px;
}
.os-content p {
  color: #64748b; font-size: .88rem; line-height: 1.6;
  margin-bottom: 24px;
}

/* Order summary rows */
.os-details {
  width: 100%;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
  background: rgba(255,255,255,.02);
}
.os-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: .85rem;
}
.os-row:last-child { border-bottom: none; }
.os-row span  { color: #475569; font-weight: 500; }
.os-row strong { color: #e2e8f0; font-weight: 600; text-align: right; }
.os-row.last { background: rgba(0,229,255,.04); }
.os-processing {
  color: #00e5ff !important;
  font-size: .82rem;
  display: flex; align-items: center; gap: 5px;
}
.os-processing::before {
  content: '';
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; background: #00e5ff;
  animation: osPulse 1.4s ease-in-out infinite;
}
@keyframes osPulse {
  0%,100% { opacity:1; transform: scale(1); }
  50% { opacity:.4; transform: scale(.8); }
}

/* Original price strikethrough */
.om-original-price {
  font-size: 1.1rem;
  color: #475569 !important;
  -webkit-text-fill-color: #475569 !important;
  text-decoration: line-through;
  margin-left: 8px;
  font-weight: 600;
}

/* Mobile */
@media (max-width: 700px) {
  .order-success-v2 {
    grid-column: 1;
    padding: 24px 20px;
  }
}

/* Mobile — stack panels */
@media (max-width: 700px) {
  .order-modal-v2 {
    grid-template-columns: 1fr;
    border-radius: 16px;
    max-height: 92vh; overflow-y: auto;
  }
  .om-left {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.07);
    padding: 24px 20px;
  }
  .om-right { padding: 24px 20px; }
  .of-field-row { grid-template-columns: 1fr; }
  .om-price-big { font-size: 2.2rem; }
}

/* ── Order form fields — light theme stays dark inside modal ── */
[data-theme="light"] .order-form-v2 .form-control {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color: #e2e8f0;
}
[data-theme="light"] .order-form-v2 .form-control::placeholder { color: #64748b; }
[data-theme="light"] .order-form-v2 .form-control:focus {
  border-color: rgba(0,229,255,.55);
  background: rgba(0,229,255,.05);
}

/* ── Tighter field spacing in modal ── */
.order-form-v2 .of-field { margin-bottom: 8px; }
.order-form-v2 .of-field-row { gap: 8px; margin-bottom: 8px; }
.order-form-v2 .of-section-label {
  font-size: .67rem;
  letter-spacing: .14em;
  color: #334155;
  margin-top: 20px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

/* ── Connection buttons — tighter, sharper ── */
.of-conn-btn {
  background: rgba(255,255,255,.03) !important;
  border: 1.5px solid rgba(255,255,255,.09) !important;
  border-radius: 12px !important;
  padding: 14px 6px !important;
}
.of-conn-btn:hover {
  border-color: rgba(0,229,255,.3) !important;
  background: rgba(0,229,255,.05) !important;
}
.of-conn-btn.active {
  border-color: var(--cyan) !important;
  background: rgba(0,229,255,.1) !important;
  box-shadow: 0 0 16px rgba(0,229,255,.12) !important;
}
.of-conn-num { font-size: 1.5rem !important; font-weight: 900 !important; }

/* ── Submit button glow ── */
.of-submit-btn {
  background: linear-gradient(135deg, #0ea5e9, #6366f1, #ec4899) !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 15px 24px !important;
  font-size: .95rem !important;
  font-weight: 700 !important;
  letter-spacing: .01em;
  box-shadow: 0 8px 32px rgba(14,165,233,.3) !important;
  transition: transform .2s, box-shadow .2s !important;
}
.of-submit-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 40px rgba(14,165,233,.4) !important;
}
.of-submit-btn:active { transform: translateY(0) !important; }

/* ── Discount apply row ── */
.of-discount-row {
  display: flex; gap: 8px; align-items: stretch;
  margin-bottom: 4px;
}
.of-apply-btn {
  padding: 0 18px;
  border-radius: 12px;
  font-size: .82rem; font-weight: 700;
  background: rgba(0,229,255,.1);
  border: 1.5px solid rgba(0,229,255,.25);
  color: #00e5ff;
  white-space: nowrap;
  transition: all .2s; cursor: pointer; flex-shrink: 0;
}
.of-apply-btn:hover:not(:disabled) {
  background: rgba(0,229,255,.18);
  border-color: rgba(0,229,255,.5);
}
.of-apply-btn:disabled { opacity: .6; cursor: default; }

/* Discount status message */
.discount-status { min-height: 20px; margin-top: 6px; margin-bottom: 4px; }
.ds-success {
  font-size: .8rem; color: #22c55e; font-weight: 600;
  display: flex; align-items: center; gap: 5px;
}
.ds-error {
  font-size: .8rem; color: #f87171; font-weight: 500;
}
