:root {
  --bg: #000000;
  --card: #0a0a0a;
  --border: rgba(255,255,255,0.08);
  --text: #ffffff;
  --muted: rgba(255,255,255,0.6);
  --radius: 18px;
    --accent-blue-1: #4f8cff;
  --accent-blue-2: #6aa8ff;
  --accent-blue-glow: rgba(79,140,255,0.55);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Base Link Styles */
a { text-decoration: none; }
a:hover { text-decoration: none; }

/* ---------------- TOP BAR ---------------- */

.topbar {
  border-bottom: 1px solid var(--border);
  background: #000;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 16px 0;
}

.brand {
  position: absolute;
  left: 40px;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.4px;
  background: linear-gradient(90deg, rgba(255,255,255,1), rgba(255,255,255,0.55));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 12px;
  transition: 0.2s ease;
}

.nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.14);
}

/* Topbar dropdown */
.nav-dd {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dd-btn {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.nav-caret {
  opacity: .75;
  margin-left: 6px;
  font-size: 0.95em;
}

.nav-dd-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  padding: 10px;
  border-radius: 14px;
  display: none;
  z-index: 100;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(10,10,10,0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 55px rgba(0,0,0,0.55);
}

.nav-dd.open .nav-dd-menu { display: block; }

.nav-dd-item {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(255,255,255,0.88);
}

.nav-dd-item:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* ---------------- HERO ---------------- */

.hero {
  padding: 90px 0;
  display: flex;
  justify-content: center;
}

.hero-card {
  max-width: 720px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 900;
  margin-bottom: 14px;
}

.hero p {
  font-size: 16px;
  color: var(--muted);
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* ---------------- BUTTONS ---------------- */

.btn {
  padding: 14px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--border);
  background: transparent;
  color: #fff;
  transition: 0.2s ease;
}

.btn.primary {
  background: #ffffff;
  color: #000000;
  border: none;
}

.btn.primary:hover {
  background: rgba(255,255,255,0.86);
  color: #000;
  opacity: 1;
}

.btn:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.16);
}

/* ---------------- PLANS & PRICING ---------------- */

.page, 
.plans-page {
  padding: 70px 0;
}

.page-title {
  text-align: center;
  font-size: 40px;
  font-weight: 900;
}

.plans-page .muted {
  display: block;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 18px;
  padding: 0 12px;
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.plan-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 24px 0 32px;
}

.tab-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: .2s;
}

.tab-btn:hover { background: rgba(255,255,255,0.16); }
.tab-btn.active { background: #fff; color: #000; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* --- Plan Grid Layout (Default) --- */
.plan-grid {
  display: grid;
  justify-content: center;
  align-items: stretch;
  padding: 0 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  max-width: 980px;
  margin: 26px auto 0;
}

/* --- V1 Plan Cards --- */
.plan-card {
  padding: 22px 22px 20px;
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.06),
    rgba(255,255,255,0.02)
  );
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 12px 38px rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plan-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.plan-card .price {
  font-size: 1.55rem;
  font-weight: 900;
  margin: 2px 0 6px;
}

.plan-specs {
  list-style: none;
  padding: 0;
  margin: 6px 0 10px;
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
}
.plan-specs li { margin: 8px 0; }

.plan-card .btn {
  margin-top: auto;
  align-self: flex-start;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

/* Plan Dropdown Controls */
.plans-controls {
  display:flex;
  justify-content:center;
  margin: 22px 0 10px;
}

.dropdown { position: relative; width: min(360px, 92vw); }

.dropdown-btn {
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  cursor:pointer;
}

.dropdown-btn strong { font-weight: 800; }
.dropdown-arrow { opacity: .8; }

.dropdown-menu {
  position:absolute;
  top: calc(100% + 10px);
  left:0; right:0;
  padding:8px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(10,10,10,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display:none;
  z-index:50;
}

.dropdown.open .dropdown-menu { display:block; }

.dropdown-item {
  width:100%;
  text-align:left;
  padding:10px 12px;
  border-radius:12px;
  background:transparent;
  border:none;
  color: rgba(255,255,255,0.9);
  cursor:pointer;
}

.dropdown-item:hover { background: rgba(255,255,255,0.08); }

/* --- PLANS V2 --- */
.plans-v2 {
  padding: 56px 0 80px;
  text-align: center;
}

.plans-hero {
  margin-bottom: 20px;
}

.country-row, .category-row, .pill-wrap {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 16px 0;
}

.country-pill, .cat-pill {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.90);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  text-decoration: none;
}

.country-pill:hover, .cat-pill:hover {
  background: rgba(255,255,255,0.10);
  transform: translateY(-1px);
}

.country-pill.active, .cat-pill.active {
  background: rgba(255,255,255,0.92);
  color: #000;
  border-color: rgba(255,255,255,0.92);
}

.country-pill .flag {
  margin-right: 8px;
  font-size: 16px;
}

/* V2 Override for Grid */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  gap: 18px;
  justify-content: center;
  margin-top: 22px;
}

@media (max-width: 820px) {
  .plan-grid { grid-template-columns: minmax(0, 420px); }
}

.plan-card-v2 {
  text-align: left;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}

.plan-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.plan-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.plan-price {
  font-size: 18px;
  font-weight: 900;
}

.plan-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
}

.meta-chip {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}

.plan-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.plan-loc {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.70);
  font-size: 13px;
}

.plan-loc .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #31e981;
  box-shadow: 0 0 10px rgba(49,233,129,0.25);
}

.plan-specs-v2 {
  margin: 14px 0 18px;
  display: grid;
  gap: 10px;
}

.spec-row {
  display: grid;
  grid-template-columns: 18px 70px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
}

.spec-ico {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}

.spec-ico svg {
  width: 18px;
  height: 18px;
  fill: rgba(255,255,255,0.85);
}

.spec-label {
  font-size: 12px;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.60);
  text-transform: uppercase;
  font-weight: 700;
}

.spec-val {
  color: rgba(255,255,255,0.92);
  font-weight: 700;
}

/* ---------------- SERVERS & MAP ---------------- */

.servers {
  padding: 48px 0;
}

.servers-head {
  text-align: center;
  margin-bottom: 18px;
}

.servers h2 {
  margin: 0;
  font-size: 34px;
  font-weight: 900;
}

/* Map Containers */
.map-wrap, 
.world-map,
.map-world-inline {
  position: relative;
  width: min(980px, 92vw);
  height: 360px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 22px;
  overflow: hidden;
  background: #000;
}

/* Map Shell (Alternative Container) */
.map-shell {
  position: relative;
  margin-top: 16px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 18px 50px rgba(0,0,0,0.55);
}

/* Map Card (Responsive) */
.map-card {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 18px auto 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 18px 50px rgba(0,0,0,0.55);
  aspect-ratio: 2 / 1;
  max-height: 520px;
}

/* Margin Variations */
.map-wrap, .world-map { margin: 18px auto 22px; }
.map-world-inline { margin: 18px auto 0; }

/* Dotted Background */
.map-dots,
.world-map {
  background: radial-gradient(rgba(255,255,255,0.11) 1px, transparent 1px);
  background-size: 12px 12px;
}

/* Vignette Effect */
.world-map::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side, transparent 55%, rgba(0,0,0,0.55));
  pointer-events: none;
}

/* SVG Map Content */
.map-world {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.map-world path {
  fill: rgba(255,255,255,0.05);
  stroke: rgba(255,255,255,0.12);
  stroke-width: 0.6;
}

.map-wrap.hovering .map-world path {
  fill: rgba(255,255,255,0.08);
}

/* Inline SVG specific styles */
.map-world-inline svg circle.pin { stroke: rgba(0,0,0,0.35); stroke-width: 1; }

.map-world-inline svg path {
  fill: rgba(255,255,255,0.05);
  stroke: rgba(255,255,255,0.14);
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
}

.map-wrap.hovering .map-world-inline svg path {
  fill: rgba(255,255,255,0.075);
}

.map-world-inline svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Updated World SVG (Fill Card) */
.world-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Background dots pattern styling (SVG internal) */
#bgDots circle {
  fill: rgba(255,255,255,0.06);
}

/* Countries styling */
.sphere {
  fill: rgba(255,255,255,0.02);
  stroke: rgba(255,255,255,0.10);
  stroke-width: 1.2;
}

.country {
  fill: rgba(255,255,255,0.035);
  stroke: rgba(255,255,255,0.12);
  stroke-width: 0.6;
}

/* --- PINS --- */

/* HTML/Absolute Pins (Divs) - Fallback */
.pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(255,255,255,0.40);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.06);
  transition: transform 0.14s ease, box-shadow 0.14s ease, opacity 0.14s ease, filter 0.15s ease;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.08));
}

.pin:focus {
  transform: translate(-50%, -50%) scale(1.15);
  opacity: 0.95;
  outline: none;
}

/* SVG Map Pins & Animations */
.map-pin {
  cursor: pointer;
  stroke: rgba(0,0,0,0.45);
  stroke-width: 2;
}

/* Active Pin (SVG & Class Shared) */
.pin.on, 
.map-pin.on {
  fill: #31e981;
  stroke: rgba(49, 233, 129, 0.6);
  stroke-width: 2;
  animation: pinBlink 1.8s infinite;
  filter: drop-shadow(0 0 6px rgba(49,233,129,0.45));
}
.pin.on:hover, 
.map-pin.on:hover {
  animation-play-state: paused;
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(49,233,129,0.8));
}

/* Inactive Pin */
.pin.off, 
.map-pin.off {
  fill: #666;
  opacity: 0.6;
}

/* Pin Animation Keyframes */
@keyframes pinPulse {
  0% { transform: scale(1); opacity: 1; }
  45% { transform: scale(0.75); opacity: 0.65; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes pinBlink {
  0%   { opacity: 1; }
  40%  { opacity: 0.35; }
  100% { opacity: 1; }
}

/* Pin Pseudo-element (Content only, positioning handled by implementation) */
.pin.on::after {
  content: "";
  position: absolute;
}

/* SVG Specific Overrides for .pin class usage inside SVG */
.map-world-inline svg .pin {
  position: static !important;
  left: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  translate: none !important;
  outline: none !important;
}

.map-world-inline svg .pin:focus,
.map-world-inline svg .pin:active {
  transform: none !important;
  translate: none !important;
}

/* --- TOOLTIP --- */

.map-tooltip {
  position: fixed;
  z-index: 9999;
  min-width: 200px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(10px);
  color: #fff;
  box-shadow: 0 16px 40px rgba(0,0,0,0.55);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.map-tooltip.show { opacity: 1; transform: translateY(0); }

.tip-title { font-weight: 900; font-size: 14px; letter-spacing: 0.2px; }
.tip-sub { margin-top: 2px; font-size: 12px; color: rgba(255,255,255,0.65); }
.tip-row { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }

.tip-status, .tip-pill {
  font-size: 12px;
  font-weight: 800;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  display: inline-block;
}

.tip-status.ok, .tip-pill.ok {
  color: #0b1b10;
  background: rgba(61,255,122,0.85);
  border-color: rgba(61,255,122,0.55);
}

.tip-status.bad, .tip-pill.bad {
  color: #fff;
  background: rgba(255,255,255,0.10);
}

.tip-pill.neutral {
  color: rgba(255,255,255,0.90);
  background: rgba(255,255,255,0.08);
}

/* --- LOCATION LIST --- */

.locations-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  width: min(980px, 92vw);
  margin: 0 auto;
}

.loc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
}

.loc-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.loc-dot.off { background: rgba(255,255,255,0.35); }
.loc-dot.on { background: #3dff7a; }

.loc-name { font-weight: 800; }
.loc-status { margin-left: auto; font-size: 13px; }

/* ---------------- FOOTER ---------------- */

.site-footer {
  position: relative;
  margin-top: 80px;
  padding: 28px 18px 18px;
  background: rgba(10,10,10,0.55);
  border-top: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 -18px 45px rgba(0,0,0,0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(14px);
  transition: transform .55s ease, opacity .55s ease;
}

.site-footer.revealed { opacity: 1; transform: translateY(0); }

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  flex: 1;
  min-width: 260px;
  text-align: left;
}

.footer-logo {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: .6px;
  background: linear-gradient(90deg, #fff, rgba(255,255,255,0.55));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-tagline {
  margin: 8px 0 0;
  color: rgba(255,255,255,0.62);
  font-size: .92rem;
  line-height: 1.55;
  max-width: 560px;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  white-space: nowrap;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #3dff7a;
  box-shadow: 0 0 0 6px rgba(61,255,122,0.16);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: .75; }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding-top: 4px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-weight: 600;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}

.footer-link:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  transform: translateY(-1px);
}

.footer-link .ico, .footer-link svg { width: 18px; height: 18px; display: inline-flex; }

.footer-bottom {
  color: rgba(255,255,255,0.48);
  font-size: .85rem;
  padding-top: 6px;
}

.footer-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  transition: background .15s ease, transform .15s ease;
}

.footer-close:hover {
  background: rgba(255,255,255,0.12);
  transform: scale(1.04);
}

/* Footer Reopen Button (Reworked) */
#footerReopen {
  all: unset;
  box-sizing: border-box;
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: 46px;
  height: 38px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(10,10,10,0.55);
  color: rgba(255,255,255,0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  z-index: 2147483647;
}

#footerReopen:hover {
  transform: translateX(-50%);
  filter: brightness(1.12);
  background: rgba(255,255,255,0.12);
}

@media (max-width: 720px) {
  .footer-top { justify-content: center; }
  .footer-brand { text-align: center; }
}

@media (max-width: 640px) {
  .map-card { max-height: 320px; }
}

/* ================= Plans V3 (separate styling) ================= */

.plansV3 {
  padding: 64px 0 90px;
  text-align: center;
}

.plansV3Head {
  max-width: 800px;
  margin: 0 auto 22px;
}

.plansV3Title {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 900;
  letter-spacing: -1px;
  margin: 0 0 10px;
}

.plansV3Sub {
  margin: 0;
  color: rgba(255,255,255,0.75);
}

.plansV3Row {
  max-width: 920px;
  margin: 18px auto;
  display: grid;
  gap: 12px;
}

.pillGroup {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease, border-color .15s ease;
  text-decoration: none;
}

.pill:hover {
  background: rgba(255,255,255,0.10);
  transform: translateY(-1px);
}

.pill.active {
  background: rgba(255,255,255,0.92);
  color: #000;
  border-color: rgba(255,255,255,0.92);
}

.pillFlag {
  margin-right: 8px;
}

.pillAuto {
  justify-self: center;
  padding: 11px 16px;
  background: rgba(49,233,129,0.10);
  border-color: rgba(49,233,129,0.25);
}

.pillAuto:hover {
  background: rgba(49,233,129,0.16);
}

.plansV3Hint {
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  min-height: 18px;
}

.plansV3Msg {
  color: rgba(255,255,255,0.70);
  font-size: 14px;
  padding: 10px 0;
}

/* grid */
.plansV3Grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  gap: 18px;
  justify-content: center;
}

@media (max-width: 900px) {
  .plansV3Grid { grid-template-columns: minmax(0, 520px); }
}

/* cards */
.planCard {
  text-align: left;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}

.planTop {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.planName {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.2px;
}

.planPrice {
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.planSpecs {
  margin: 14px 0 18px;
  display: grid;
  gap: 10px;
}

.specRow {
  display: grid;
  grid-template-columns: 18px 70px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
}

.specIco svg {
  width: 18px;
  height: 18px;
  fill: rgba(255,255,255,0.85);
}

.specLabel {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: rgba(255,255,255,0.55);
  font-weight: 800;
}

.specVal {
  color: rgba(255,255,255,0.92);
  font-weight: 800;
}

.planBottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.planLoc {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.70);
}

.locDot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #31e981;
  box-shadow: 0 0 10px rgba(49,233,129,0.25);
}

/* ================= Legal pages (Terms/Privacy) ================= */
.legal {
  padding: 64px 0 110px;
}

.legal-head {
  text-align: center;
  margin: 0 auto 18px;
  max-width: 900px;
}

.legal-title {
  margin: 0 0 8px;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -1px;
}

.legal-sub {
  margin: 0;
  color: rgba(255,255,255,0.70);
}

.legal-card {
  max-width: 980px;
  margin: 22px auto 0;
  padding: 24px 22px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 45px rgba(0,0,0,0.45);
}

.legal-section {
  padding: 18px 6px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.legal-section h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 900;
}

.legal-section h3 {
  margin: 14px 0 8px;
  font-size: 14px;
  font-weight: 900;
  color: rgba(255,255,255,0.88);
}

.legal-section p {
  margin: 0 0 10px;
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
}

.legal-section ul {
  margin: 8px 0 0 18px;
  padding: 0;
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
}

.legal-section li {
  margin: 6px 0;
}

.legal-callout {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 820px) {
  .legal-callout { grid-template-columns: 1fr; }
}

.legal-callout-col {
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
}

.legal-callout-col h3 {
  margin: 0 0 8px;
}

.legal-link {
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
}
.legal-link:hover {
  border-bottom-color: rgba(255,255,255,0.7);
}

.legal-last {
  border-bottom: none;
  padding-bottom: 6px;
}

/* ================= Premium Cookie Banner ================= */
.cookieBanner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display: none;
}

.cookieBanner.show { display: block; }

.cookieCard {
  max-width: 1020px;
  margin: 0 auto;
  background: rgba(255,255,255,0.92);
  color: #0b0b0b;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 20px;
  padding: 14px 14px;
  box-shadow: 0 22px 60px rgba(0,0,0,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;

  animation: cookieIn 360ms cubic-bezier(.2,.9,.2,1);
}

@keyframes cookieIn {
  from { transform: translateY(18px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookieIcon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.06);
  font-size: 18px;
}

.cookieTitle {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: -0.2px;
}

.cookieDesc {
  margin-top: 4px;
  font-size: 12.8px;
  line-height: 1.45;
  color: rgba(0,0,0,0.78);
}

.cookieLinks {
  margin-top: 8px;
  font-size: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: rgba(0,0,0,0.60);
}

.cookieLink {
  color: rgba(0,0,0,0.84);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.20);
}
.cookieLink:hover { border-bottom-color: rgba(0,0,0,0.62); }
.cookieDot { opacity: 0.6; }

.cookieActions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cookieBtn {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 900;
  font-size: 12.5px;
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.96);
  color: #0b0b0b;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, opacity 140ms ease;
}

.cookieBtn:hover {
  transform: translateY(-1px);
  border-color: rgba(0,0,0,0.22);
  background: rgba(255,255,255,1);
}
.cookieBtn:active { transform: translateY(0); }

.cookieBtnIcon {
  width: 18px;
  height: 18px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.08);
  font-size: 12px;
  line-height: 1;
}

.cookieBtn.accept {
  background: #ffffff;
}

.cookieBtn.reject {
  opacity: 0.92;
}

.cookieBtn.ghost {
  background: rgba(255,255,255,0.70);
}

.cookieHide {
  animation: cookieOut 220ms ease-in forwards;
}
@keyframes cookieOut {
  to { transform: translateY(18px); opacity: 0; }
}

/* ===== Modal ===== */
.cookieModal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 18px;
  z-index: 10000;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cookieModal.show { display: grid; }

.cookieModalCard {
  width: min(720px, 100%);
  background: rgba(255,255,255,0.94);
  color: #0b0b0b;
  border-radius: 22px;
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 28px 90px rgba(0,0,0,0.65);
  padding: 16px;
  animation: modalIn 240ms ease-out;
}

@keyframes modalIn {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookieModalHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 6px 10px;
}

.cookieModalTitle {
  font-weight: 900;
  font-size: 16px;
}

.cookieModalSub {
  margin-top: 4px;
  font-size: 12.6px;
  color: rgba(0,0,0,0.70);
}

.cookieX {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.85);
  cursor: pointer;
  font-weight: 900;
}

.cookieX:hover { border-color: rgba(0,0,0,0.22); }

.cookiePrefs {
  display: grid;
  gap: 10px;
  padding: 8px 6px 12px;
}

.cookiePref {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 12px;
  border-radius: 18px;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.08);
}

.cookiePrefName {
  font-weight: 900;
  font-size: 13px;
}

.cookiePrefDesc {
  margin-top: 4px;
  font-size: 12.4px;
  color: rgba(0,0,0,0.70);
  line-height: 1.4;
}

.cookieBadge {
  font-weight: 900;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.10);
}

.cookieModalActions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 8px 6px 4px;
}

/* Toggle */
.cookieToggle {
  position: relative;
  width: 46px;
  height: 28px;
  display: inline-block;
}

.cookieToggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookieSlider {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  transition: 150ms ease;
}

.cookieSlider::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 2px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  transition: 150ms ease;
}

.cookieToggle input:checked + .cookieSlider {
  background: rgba(0,0,0,0.80);
}
.cookieToggle input:checked + .cookieSlider::after {
  transform: translateX(18px);
}

/* Mobile */
@media (max-width: 900px) {
  .cookieCard {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "icon text"
      "actions actions";
  }
  .cookieIcon { grid-area: icon; }
  .cookieText { grid-area: text; }
  .cookieActions { grid-area: actions; justify-content: flex-end; flex-wrap: wrap; }
}
/* ================= Cursor Glow ================= */
#cursorGlow{
  position: fixed;
  top: 0;
  left: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;

  background: radial-gradient(
    circle,
    rgba(255,255,255,0.75) 0%,
    rgba(255,255,255,0.35) 40%,
    rgba(255,255,255,0.12) 55%,
    rgba(255,255,255,0.00) 70%
  );

  filter: blur(8px);
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 220ms ease;
  will-change: transform;
}

/* Show only on devices with a real cursor */
@media (hover: hover) and (pointer: fine) {
  #cursorGlow{
    opacity: 1;
  }
}

/* Optional: subtle pulse on hover */
.cursorGlow--active{
  animation: cursorPulse 900ms ease-out infinite;
}

@keyframes cursorPulse{
  0%{
    transform: translate3d(-50%, -50%, 0) scale(1);
    opacity: 0.9;
  }
  100%{
    transform: translate3d(-50%, -50%, 0) scale(1.4);
    opacity: 0.15;
  }
}
