/* ============================================================
   ApexLinx — style.css  v6
   Dark theme · Inter font · Blue/purple gradient accents
   Polish pass: glassmorphism, micro-interactions, animations
   ============================================================ */

/* ── CSS Houdini: register custom animated property ─────────── */
@property --search-border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* ── Design tokens ──────────────────────────────────────────── */
:root {
  --bg:    #000;
  --panel: rgba(255,255,255,.06);
  --panel2:rgba(255,255,255,.10);
  --text:  #fff;
  --muted: rgba(255,255,255,.72);
  --hair:  rgba(255,255,255,.14);

  /* Accents — slightly more saturated */
  --blue:   rgba(75, 110, 255, .65);
  --purple: rgba(200, 65, 255, .55);
  --accent: #c7d2ff;

  /* Shadow presets */
  --shadow:      0 20px 80px rgba(0,0,0,.65);
  --shadow-card: inset 0 1px 0 rgba(255,255,255,.11), 0 2px 14px rgba(0,0,0,.40);
  --shadow-glow: 0 0 28px rgba(75,110,255,.20), 0 8px 32px rgba(0,0,0,.55);

  /* Shape */
  --radius:  18px;
  --radius2: 26px;
  --max: 1920px; /* legacy */

  /* Easing curves */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --t-fast: 170ms cubic-bezier(.4, 0, .2, 1);
  --t-med:  280ms cubic-bezier(.4, 0, .2, 1);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }

/* ── Custom scrollbar ───────────────────────────────────────── */
::-webkit-scrollbar             { width: 8px; height: 8px; }
::-webkit-scrollbar-track       { background: rgba(255,255,255,.02); }
::-webkit-scrollbar-thumb       { background: rgba(255,255,255,.14); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.26); }

/* ── Selection ──────────────────────────────────────────────── */
::selection { background: rgba(75,110,255,.42); color: #fff; }

/* ── Body ───────────────────────────────────────────────────── */
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }

.container { width: 100%; max-width: none; margin: 0 auto; }
.wrap      { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── Page-load fade-in ──────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0);    }
}
.hero__inner {
  animation: fadeInUp 360ms var(--ease) both;
}
main {
  animation: fadeInUp 400ms var(--ease) 80ms both;
}

/* ─────────────────────────────────────────────────────────────
   HERO
   ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 54vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--hair);
}

/* Animated gradient backdrop */
.hero::before {
  content: "";
  position: absolute;
  inset: -40px;
  background:
    radial-gradient(900px 450px at 20% 20%, rgba(75,110,255,.72), transparent 60%),
    radial-gradient(900px 450px at 80% 65%, rgba(200,65,255,.62), transparent 60%),
    radial-gradient(700px 360px at 55% 35%, rgba(255,255,255,.10), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.06), transparent 40%, rgba(255,255,255,.05));
  transform: scale(1.05);
  /* hue-rotate is GPU-composited via filter — much cheaper than animating bg */
  animation: heroHue 20s ease-in-out infinite alternate;
}

@keyframes heroHue {
  0%   { filter: saturate(1.0) hue-rotate(  0deg); }
  50%  { filter: saturate(1.4) hue-rotate( 15deg); }
  100% { filter: saturate(1.2) hue-rotate(-10deg); }
}

/* CSS-only grain texture overlay */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Tiny SVG noise rendered inline — zero HTTP requests */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding: 64px 20px;
  width: 100%;
}

/* ─────────────────────────────────────────────────────────────
   BRAND
   ──────────────────────────────────────────────────────────── */
.brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}

.brand__name {
  font-size: 44px;
  letter-spacing: -.02em;   /* tighter = more premium */
  text-transform: uppercase;
  font-weight: 800;
  /* Gradient text */
  background: linear-gradient(
    135deg,
    #fff          0%,
    rgba(199,210,255,.96) 38%,
    rgba(210,145,255,.92) 72%,
    #fff          100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* depth via drop-shadow (works with gradient text, unlike text-shadow) */
  filter: drop-shadow(0 2px 24px rgba(75,110,255,.38));
}

.brand__tag {
  max-width: 820px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  text-shadow: 0 1px 10px rgba(0,0,0,.55);
}

/* ─────────────────────────────────────────────────────────────
   NAV
   ──────────────────────────────────────────────────────────── */
.nav {
  position: absolute;
  top: 14px;
  left: 0; right: 0;
  z-index: 10;
}
.nav .wrap       { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nav__logo       { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__logoImg    { height: 42px; width: auto; display: block; filter: drop-shadow(0 10px 30px rgba(0,0,0,.6)); }
.nav__right      { display: flex; gap: 10px; align-items: center; }

/* ── Currency selector (injected into nav__right) ─────────────────────────── */
.currency-selector {
  display: flex;
  align-items: center;
}

.currency-selector__select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255,255,255,.08)
              url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(255,255,255,.55)' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
              no-repeat right 9px center;
  border: 1px solid rgba(170,190,255,.28);
  border-radius: 999px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 30px 8px 12px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background-color var(--t-fast), border-color var(--t-fast);
  line-height: 1;
  letter-spacing: .01em;
}

.currency-selector__select:hover {
  background-color: rgba(255,255,255,.13);
  border-color: rgba(170,190,255,.50);
}

.currency-selector__select:focus {
  outline: 2px solid rgba(120,150,255,.70);
  outline-offset: 2px;
}

.currency-selector__select option {
  background: #1a1d2e;
  color: #fff;
  font-weight: 500;
}

/* ── Checkout currency disclosure notice ─────────────────────────────────── */
.currency-disclosure {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 820px;
  margin: 10px auto 0;
  padding: 10px 14px;
  background: rgba(255,210,80,.07);
  border: 1px solid rgba(255,210,80,.22);
  border-radius: 10px;
  font-size: 13px;
  color: rgba(255,235,160,.85);
  line-height: 1.5;
}

.currency-disclosure strong {
  color: rgba(255,235,160,1);
}

/* ─────────────────────────────────────────────────────────────
   BUTTONS
   ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid rgba(170,190,255,.28);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(90,120,255,.22), rgba(190,80,255,.17));
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .01em;
  font-size: inherit;
  font-family: inherit;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition:
    background  var(--t-fast),
    box-shadow  var(--t-fast),
    border-color var(--t-fast),
    transform   var(--t-fast);
  will-change: transform;
}
.btn:hover {
  background: linear-gradient(135deg, rgba(90,120,255,.38), rgba(190,80,255,.30));
  border-color: rgba(170,190,255,.50);
  box-shadow: 0 0 22px rgba(75,110,255,.28), 0 4px 18px rgba(0,0,0,.35);
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0px);
  box-shadow: 0 0 10px rgba(75,110,255,.14);
}

/* ─────────────────────────────────────────────────────────────
   BUTTON — support ghost variant
   ──────────────────────────────────────────────────────────── */
.btn--support {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255,255,255,.055);
  border-color: rgba(255,255,255,.15);
  gap: 7px;
}
.btn--support:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.28);
  box-shadow: 0 4px 18px rgba(0,0,0,.35);
}
/* On narrow screens hide the text, keep just the icon */
@media (max-width: 500px) {
  .btn--support .btn__support-label { display: none; }
}

/* ─────────────────────────────────────────────────────────────
   BUTTON — LinkedIn icon link
   ──────────────────────────────────────────────────────────── */
.btn--linkedin {
  padding: 9px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.055);
  border-color: rgba(255,255,255,.15);
  color: rgba(255,255,255,.75);
  flex-shrink: 0;
}
.btn--linkedin:hover {
  background: rgba(10,102,194,.25);
  border-color: rgba(10,102,194,.55);
  color: #fff;
  box-shadow: 0 4px 18px rgba(10,102,194,.30), 0 0 0 1px rgba(10,102,194,.20);
}

/* ─────────────────────────────────────────────────────────────
   SUPPORT PAGE
   ──────────────────────────────────────────────────────────── */
.support-card {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--hair);
  border-radius: var(--radius2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), var(--shadow);
  padding: 32px;
}

.support-card__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 0 0 8px;
}

.support-card__intro {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 24px;
}

.support-checklist {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.support-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(170,190,255,.14);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.support-checklist li strong {
  color: rgba(255,255,255,.9);
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
}

.support-checklist__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(90,120,255,.22), rgba(190,80,255,.17));
  border: 1px solid rgba(170,190,255,.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(170,190,255,.8);
}
.support-checklist__icon svg {
  display: block;
  width: 15px;
  height: 15px;
}

.support-cta {
  display: flex;
  justify-content: center;
}

.btn--support-cta {
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 800;
  gap: 10px;
  background: linear-gradient(135deg, rgba(90,120,255,.30), rgba(190,80,255,.24));
  border-color: rgba(170,190,255,.35);
}
.btn--support-cta:hover {
  background: linear-gradient(135deg, rgba(90,120,255,.46), rgba(190,80,255,.38));
  border-color: rgba(170,190,255,.55);
  box-shadow: 0 0 28px rgba(75,110,255,.32), 0 6px 24px rgba(0,0,0,.40);
}

.support-footer-note {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.40);
  line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────
   SECTIONS & HEADINGS
   ──────────────────────────────────────────────────────────── */
.section { padding: 52px 0; }
.h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -.03em;   /* tightened for premium feel */
  margin: 0 0 16px;
}
.p { color: var(--muted); line-height: 1.6; margin: 0 0 18px; }

/* ─────────────────────────────────────────────────────────────
   SEARCH BOX — animated gradient border
   ──────────────────────────────────────────────────────────── */
.search {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  /* Animated gradient border via background-clip trick */
  border: 1.5px solid transparent;
  background:
    rgba(255,255,255,.055) padding-box,
    conic-gradient(
      from var(--search-border-angle),
      rgba(75,110,255,.65)  0%,
      rgba(200,65,255,.55) 25%,
      rgba(255,255,255,.06) 50%,
      rgba(200,65,255,.55) 75%,
      rgba(75,110,255,.65) 100%
    ) border-box;
  border-radius: var(--radius2);
  padding: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: searchBorderSpin 5s linear infinite;
}
@keyframes searchBorderSpin {
  to { --search-border-angle: 360deg; }
}
/* Fallback for browsers without @property */
@supports not (background: conic-gradient(from 0deg, red, blue)) {
  .search {
    border: 1px solid var(--hair);
    background: rgba(255,255,255,.055);
    animation: none;
  }
}

/* ─────────────────────────────────────────────────────────────
   INPUTS
   ──────────────────────────────────────────────────────────── */
.input {
  flex: 1 1 260px;
  min-width: 220px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: rgba(0,0,0,.35);
  color: var(--text);
  padding: 12px 14px;
  outline: none;
  font-size: inherit;
  font-family: inherit;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input:focus {
  border-color: rgba(170,190,255,.55);
  box-shadow: 0 0 0 3px rgba(75,110,255,.18), 0 0 18px rgba(75,110,255,.10);
}
.input::placeholder { color: rgba(255,255,255,.38); }
.input--error {
  border-color: rgba(255,120,120,.65) !important;
  box-shadow:   0 0 0 3px rgba(255,80,80,.12) !important;
}

/* ─────────────────────────────────────────────────────────────
   CHIP
   ──────────────────────────────────────────────────────────── */
.chip {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: rgba(255,255,255,.05);
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────────
   GRID — slightly more breathing room on desktop
   ──────────────────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0,1fr));
  gap: 16px;
  margin-top: 20px;
}
@media (min-width: 640px)  { .grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; } }
@media (min-width: 960px)  { .grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; } }
@media (min-width: 1280px) { .grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 26px; } }

/* ─────────────────────────────────────────────────────────────
   CARDS — glassmorphism + hover micro-interactions
   ──────────────────────────────────────────────────────────── */
.card {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  /* Layered glassmorphism */
  background:
    radial-gradient(600px 220px at 20% 0%,  rgba(75,110,255,.14), transparent 65%),
    radial-gradient(600px 220px at 95% 10%, rgba(200,65,255,.10), transparent 65%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 16px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 120px;
  /* Inner top-edge highlight */
  box-shadow: var(--shadow-card);
  transition:
    border-color var(--t-med),
    box-shadow   var(--t-med),
    transform    var(--t-med),
    background   var(--t-med);
  will-change: transform;
}
.card:hover {
  border-color: rgba(170,190,255,.42);
  background:
    radial-gradient(600px 220px at 30% 0%,  rgba(75,110,255,.22), transparent 65%),
    radial-gradient(600px 220px at 85% 15%, rgba(200,65,255,.18), transparent 65%),
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 0 32px rgba(75,110,255,.20),
    0 8px 36px rgba(0,0,0,.55);
  transform: translateY(-4px) scale(1.006);
}

.card__top   { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.card__title { font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.flag        { display: inline-flex; align-items: center; justify-content: center; margin-right: 8px; vertical-align: middle; }
.flagimg     { width: 18px; height: 18px; display: block; filter: drop-shadow(0 10px 18px rgba(0,0,0,.55)); }
.card__code  {
  font-weight: 800;
  opacity: .85;
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 6px 8px;
  font-size: 12px;
  background: rgba(0,0,0,.25);
  white-space: nowrap;
}
.card__meta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }

/* ─────────────────────────────────────────────────────────────
   TABLE ROWS
   ──────────────────────────────────────────────────────────── */
.table { width: 100%; border-collapse: separate; border-spacing: 0 10px; margin-top: 14px; }
.row {
  background: rgba(255,255,255,.055);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--hair);
  border-radius: 16px;
  transition: background var(--t-fast), box-shadow var(--t-fast);
}
.row:hover {
  background: rgba(255,255,255,.09);
  box-shadow: 0 0 22px rgba(75,110,255,.12);
}
.row td { padding: 14px; }
.row td:first-child { border-top-left-radius:  16px; border-bottom-left-radius:  16px; }
.row td:last-child  { border-top-right-radius: 16px; border-bottom-right-radius: 16px; }
.row__title { font-weight: 800; }

/* ─────────────────────────────────────────────────────────────
   FOOTER — glass effect
   ──────────────────────────────────────────────────────────── */
.footer {
  padding: 34px 0;
  color: rgba(255,255,255,.50);
  font-size: 13px;
  text-align: center;
  border-top: 1px solid var(--hair);
  background: rgba(255,255,255,.022);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ─────────────────────────────────────────────────────────────
   BADGES
   ──────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.badge--recommended {
  margin-left: 10px;
  padding: 6px 10px;
  font-size: 12px;
  letter-spacing: .01em;
  color: rgba(255,255,255,.9);
  border-color: rgba(170,190,255,.28);
  background: linear-gradient(135deg, rgba(90,120,255,.18), rgba(190,80,255,.14));
}

/* Small variant of .badge — used inline in plan spec rows */
.badge--sm {
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  gap: 4px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: filter .15s ease, border-color .15s ease, background .15s ease;
}

/* Badges with a custom tooltip (data-tip) are interactive on desktop and mobile.
   The ⓘ icon inside the badge is the affordance signal. */
.badge--tip {
  cursor: pointer;
  position: relative;
}
.badge--tip:hover,
.badge--tip:focus-visible,
.badge--tip[aria-expanded="true"] {
  filter: brightness(1.18) saturate(1.12);
  border-color: rgba(255, 255, 255, .28);
  outline: none;
}

/* Circle-i info icon appended inside every badge--tip */
.badge__tip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  font-style: italic;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  opacity: 0.45;
  transition: opacity 0.15s ease;
  margin-left: 1px;
}
.badge--tip:hover .badge__tip-icon,
.badge--tip:focus-visible .badge__tip-icon,
.badge--tip[aria-expanded="true"] .badge__tip-icon {
  opacity: 1;
}

/* ── Badge tooltip popover ───────────────────────────────────────
   Single floating panel; JS positions it near the active badge.
   Works for both hover (desktop) and tap (mobile). */
#badge-tip-popover {
  position: fixed;
  z-index: 9999;
  max-width: 260px;
  padding: 9px 13px;
  background: rgba(16, 22, 34, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(5px) scale(0.98);
  transition: opacity 0.14s ease, transform 0.14s ease;
  /* Arrow pointer added via ::before */
}
#badge-tip-popover.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto; /* allow clicking inside on mobile */
}
/* Small arrow at the top of the popover (when shown below badge) */
#badge-tip-popover::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 6px;
  background: rgba(16, 22, 34, 0.97);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

/* 5G confirmed — green tint, trust-positive */
.badge--5g {
  color: rgba(80, 220, 145, .95);
  border-color: rgba(60, 200, 120, .28);
  background: rgba(40, 180, 100, .10);
}

/* LTE (no 5G confirmed) — neutral blue-grey tint */
.badge--lte {
  color: rgba(170, 185, 255, .85);
  border-color: rgba(140, 155, 255, .20);
  background: rgba(100, 115, 220, .08);
}

/* Network identifier badge — legacy fallback shown when provider_slug carries a
   meaningful label (e.g. USIP, IIJ) to differentiate plans that share data+duration.
   Superseded by badge--carrier when carrier_names is available from the backend. */
.badge--network {
  color: rgba(200, 220, 255, .80);
  border-color: rgba(140, 170, 255, .22);
  background: rgba(100, 130, 255, .08);
}

/* Carrier name badge — shown for all plans when carrier data is available,
   treating it as standard plan metadata (not just a duplicate-group differentiator).
   Warm amber tint differentiates it from the network/5G badges. */
.badge--carrier {
  color: rgba(255, 210, 120, .90);
  border-color: rgba(220, 170, 60, .28);
  background: rgba(200, 140, 30, .09);
}

/* Coverage scope badge — shown when a plan covers multiple countries (regional/global).
   Teal tint signals "coverage breadth" — distinct from network-type badges. */
.badge--coverage {
  color: rgba(100, 220, 200, .90);
  border-color: rgba(60, 180, 160, .28);
  background: rgba(30, 160, 140, .09);
}

/* Technical attribute badge — shown for routing/policy differentiators derived from
   the provider slug (e.g. USIP, Non-HK IP, FUP throttle speed).
   These are plan FEATURES, not just dupe-differentiators, so they render always.
   Violet tint distinguishes technical plan attributes from carrier/speed/coverage badges. */
.badge--tech {
  color: rgba(210, 170, 255, .90);
  border-color: rgba(170, 120, 255, .28);
  background: rgba(130, 80, 230, .10);
}

/* Variant tag — kept for backwards compat; no longer emitted by current code */
.badge--variant {
  color: rgba(255, 255, 255, .45);
  border-color: rgba(255, 255, 255, .10);
  background: transparent;
}

/* ── Plan spec chips row (appears below the plan title) ───────── */
.plan-row__specs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}
.plan-spec {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, .72);
}
.plan-spec-sep {
  font-size: 12px;
  color: rgba(255, 255, 255, .28);
  user-select: none;
}

/* ── Activation window pill (location page, shown once above plans) ── */
/* Compact info pill. Reassures buyers they can purchase now and
   activate anytime within 180 days. Shown once per page. */
.activation-window-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px 6px 10px;
  margin: 0 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(100, 160, 255, .28);
  background: rgba(75, 120, 255, .10);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(190, 215, 255, .88);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
  user-select: none;
}
.activation-window-pill__icon {
  flex-shrink: 0;
  opacity: .75;
  color: rgba(130, 185, 255, 1);
}

/* Legacy per-card note — kept for potential reuse; not rendered */
.plan-activate-note {
  font-size: 11px;
  font-weight: 500;
  color: rgba(170, 190, 255, .60);
  margin-top: 6px;
  letter-spacing: .01em;
}

/* ── Fixed plan row layout ────────────────────────────────────── */
/* Mirror the pattern of .plan-row-customizable for consistent UX  */
.plan-row-fixed {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.plan-row-fixed__info {
  flex: 1;
  min-width: 0;
}
.plan-row-fixed__buy {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}
.plan-row-fixed__price {
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
  color: #fff;
}
@media (max-width: 480px) {
  .plan-row-fixed {
    gap: 12px;
  }
  .plan-row-fixed__buy {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
    margin-top: 4px;
  }
}

/* ─────────────────────────────────────────────────────────────
   MISC UTILITIES
   ──────────────────────────────────────────────────────────── */
.small { font-size: 12px; color: rgba(255,255,255,.6); }
.help  { font-size: 12px; color: rgba(255,255,255,.65); line-height: 1.45; }
.error {
  border: 1px solid rgba(255,100,100,.35);
  background: rgba(255,80,80,.08);
  padding: 12px 14px;
  border-radius: 14px;
  color: rgba(255,200,200,.95);
}

/* ─────────────────────────────────────────────────────────────
   INFO SECTION ("What is an eSIM?")
   ──────────────────────────────────────────────────────────── */
.info {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--hair);
  border-radius: var(--radius2);
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    var(--shadow);
  padding: 22px;
}
@media (max-width: 860px) { .info { grid-template-columns: 1fr; } }

.info__list            { margin: 0 0 12px; padding-left: 18px; color: var(--muted); line-height: 1.65; }
.info__list li         { margin: 8px 0; }
.info__list strong     { color: rgba(255,255,255,.92); }
.info__art             { display: flex; justify-content: center; align-items: center; }
.info__art img         { width: min(340px, 100%); height: auto; display: block; border-radius: 16px; }

/* ─────────────────────────────────────────────────────────────
   ORDER STATUS PAGE
   ──────────────────────────────────────────────────────────── */
.order-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 auto 32px;
  max-width: 480px;
  padding: 0;
}

.order-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.order-step__dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--hair);
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  color: var(--muted);
  position: relative;
  z-index: 1;
  transition:
    background    var(--t-med),
    border-color  var(--t-med),
    box-shadow    var(--t-med),
    transform     var(--t-med);
}
.order-step--done .order-step__dot {
  background: linear-gradient(135deg, rgba(75,110,255,.55), rgba(200,65,255,.45));
  border-color: rgba(170,190,255,.50);
  color: #fff;
  box-shadow: 0 0 16px rgba(75,110,255,.32);
  transform: scale(1.06);
}
.order-step--active .order-step__dot {
  background: linear-gradient(135deg, rgba(75,110,255,.78), rgba(200,65,255,.62));
  border-color: rgba(170,190,255,.72);
  color: #fff;
  box-shadow: 0 0 24px rgba(75,110,255,.50), 0 0 8px rgba(200,65,255,.30);
  transform: scale(1.14);
}

.order-step__label {
  font-size: 10px;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
  white-space: nowrap;
  transition: color var(--t-fast);
}
.order-step--done   .order-step__label,
.order-step--active .order-step__label { color: rgba(255,255,255,.9); }

.order-step__line {
  position: absolute;
  top: 14px;
  left:  calc(50% + 16px);
  right: calc(-50% + 16px);
  height: 2px;
  background: var(--hair);
  z-index: 0;
  transition: background var(--t-med);
}
.order-step--done .order-step__line {
  background: linear-gradient(90deg, rgba(75,110,255,.50), rgba(200,65,255,.40));
}

.order-status-msg { text-align: center; margin-bottom: 28px; }
.order-status-msg__text { font-size: 18px; font-weight: 600; color: rgba(255,255,255,.9); }

.order-spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid var(--hair);
  border-top-color: rgba(170,190,255,.75);
  border-radius: 50%;
  animation: order-spin .7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
@keyframes order-spin { to { transform: rotate(360deg); } }

/* QR code — glow + subtle float */
.order-qr { text-align: center; margin: 0 auto 28px; }
.order-qr img {
  width: min(260px, 70vw);
  height: auto;
  border-radius: 16px;
  border: 4px solid rgba(255,255,255,.15);
  background: #fff;
  padding: 12px;
  box-shadow:
    0 0 36px rgba(75,110,255,.28),
    0 0 72px rgba(200,65,255,.12),
    0 10px 36px rgba(0,0,0,.55);
  animation: qrFloat 4s ease-in-out infinite;
}
@keyframes qrFloat {
  0%, 100% { transform: translateY(0);   }
  50%       { transform: translateY(-7px); }
}
.order-qr__caption { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* Order activation code box */
.order-code-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(170,190,255,.20);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 auto 28px;
  max-width: 560px;
  box-shadow: 0 0 18px rgba(75,110,255,.08);
}
.order-code-box__value {
  flex: 1;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  word-break: break-all;
  color: rgba(255,255,255,.85);
  user-select: all;
}
.order-code-box__copy {
  flex-shrink: 0;
  padding: 8px 14px;
  border: 1px solid rgba(170,190,255,.28);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(90,120,255,.20), rgba(190,80,255,.16));
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  transition:
    background  var(--t-fast),
    box-shadow  var(--t-fast),
    transform   var(--t-fast);
  will-change: transform;
}
.order-code-box__copy:hover {
  background: linear-gradient(135deg, rgba(90,120,255,.34), rgba(190,80,255,.28));
  box-shadow: 0 0 14px rgba(75,110,255,.22);
  transform: translateY(-1px);
}
.order-code-box__copy:active { transform: translateY(0); }

.order-instructions { max-width: 560px; margin: 0 auto 28px; }
.order-instructions__title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -.02em;
}
.order-instructions ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}
.order-instructions ol li     { margin: 6px 0; }
.order-instructions ol strong { color: rgba(255,255,255,.9); }

.order-plan-summary {
  max-width: 560px;
  margin: 0 auto 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.order-plan-chip {
  padding: 8px 14px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.order-delivery-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto 28px;
  max-width: 560px;
}
.order-delivery-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--hair);
  background: rgba(255,255,255,.05);
  color: var(--muted);
}
.order-delivery-badge--sent {
  border-color: rgba(100,220,150,.32);
  background:   rgba(100,220,150,.09);
  color:        rgba(150,255,180,.9);
}
.order-delivery-badge--failed {
  border-color: rgba(255,100,100,.32);
  background:   rgba(255,80,80,.09);
  color:        rgba(255,200,200,.9);
}

.order-notes {
  max-width: 560px;
  margin: 0 auto;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 14px 16px;
}
.order-notes p             { margin: 0 0 6px; font-size: 12px; color: var(--muted); line-height: 1.55; }
.order-notes p:last-child  { margin-bottom: 0; }

.order-error-card { max-width: 560px; margin: 0 auto; text-align: center; }
.order-error-card a { color: var(--accent); }

/* ─────────────────────────────────────────────────────────────
   CHECKOUT — trust cues strip
   ──────────────────────────────────────────────────────────── */
.checkout-trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0;
  padding: 14px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}

@media (max-width: 600px) {
  .checkout-trust { grid-template-columns: 1fr; }
}

.checkout-trust__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.checkout-trust__item strong {
  color: rgba(255,255,255,.88);
}

.checkout-trust__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: rgba(170,190,255,.75);
  margin-top: 1px;
}
.checkout-trust__icon svg {
  display: block;
  width: 14px;
  height: 14px;
}

/* ─────────────────────────────────────────────────────────────
   CHECKOUT — payment area
   ──────────────────────────────────────────────────────────── */
#payment-element {
  border: 1px solid rgba(170,190,255,.22) !important;
  border-radius: 16px !important;
  background: rgba(0,0,0,.25) !important;
  box-shadow:
    0 0 22px rgba(75,110,255,.09),
    inset 0 1px 0 rgba(255,255,255,.06) !important;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
#payment-element:focus-within {
  border-color: rgba(170,190,255,.42) !important;
  box-shadow:
    0 0 30px rgba(75,110,255,.15),
    0 0 0 3px rgba(75,110,255,.10),
    inset 0 1px 0 rgba(255,255,255,.08) !important;
}

/* ─────────────────────────────────────────────────────────────
   CUSTOMIZABLE PLAN ROW (location detail page)
   ──────────────────────────────────────────────────────────── */

/* Wrapper: plan info on the left, selector on the right */
.plan-row-customizable {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.plan-row-customizable__info {
  flex: 1 1 200px;
  min-width: 0;
}

/* ─────────────────────────────────────────────────────────────
   DURATION SELECTOR CONTAINER
   ──────────────────────────────────────────────────────────── */
.plan-duration-selector {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 220px;
}

/* ─────────────────────────────────────────────────────────────
   STEPPER  −  N days  +
   ──────────────────────────────────────────────────────────── */
.plan-duration-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(170,190,255,.18);
  border-radius: 999px;
  padding: 4px 8px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.plan-duration-stepper__btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(170,190,255,.28);
  background: linear-gradient(135deg, rgba(90,120,255,.28), rgba(190,80,255,.22));
  color: #fff;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background  var(--t-fast),
    box-shadow  var(--t-fast),
    transform   var(--t-fast);
  will-change: transform;
  padding: 0;
}
.plan-duration-stepper__btn:hover {
  background: linear-gradient(135deg, rgba(90,120,255,.48), rgba(190,80,255,.38));
  box-shadow: 0 0 14px rgba(75,110,255,.32);
  transform: scale(1.08);
}
.plan-duration-stepper__btn:active {
  transform: scale(0.94);
  box-shadow: none;
}

.plan-duration-stepper__input {
  width: 48px;
  text-align: center;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  font-variant-numeric: tabular-nums;
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  /* Remove browser-default number spinners */
  -moz-appearance: textfield;
}
.plan-duration-stepper__input::-webkit-inner-spin-button,
.plan-duration-stepper__input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.plan-duration-stepper__input:focus {
  color: rgba(180,210,255,1);
}

.plan-duration-stepper__unit {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin-left: -4px;
}

/* ─────────────────────────────────────────────────────────────
   DURATION PRICE & BUY BUTTON
   ──────────────────────────────────────────────────────────── */
.plan-duration-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  text-align: right;
}

.plan-duration-price__total {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.01em;
  transition: color var(--t-fast);
}

.plan-duration-price__rate {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .01em;
}

.plan-duration-buy {
  /* Match the fixed-plan Buy button sizing */
  padding: 8px 12px;
  font-size: 13px;
  white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE — mobile: stack selector below plan info
   ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .plan-row-customizable {
    flex-direction: column;
    align-items: stretch;
  }

  .plan-duration-selector {
    align-items: stretch;
    min-width: 0;
    width: 100%;
  }

  .plan-duration-stepper {
    justify-content: center;
  }

  .plan-duration-price {
    align-items: center;
    text-align: center;
  }

  .plan-duration-buy {
    width: 100%;
    justify-content: center;
  }
}

/* ─────────────────────────────────────────────────────────────
   PLAN TABS  (location detail page)
   ──────────────────────────────────────────────────────────── */
#plansTabs {
  margin-top: 20px;
  margin-bottom: -4px; /* visually tuck into the table gap */
}

.plans-tabs {
  display: flex;
  gap: 8px;
  padding: 5px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(170,190,255,.14);
  border-radius: 999px;
  width: fit-content;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.plans-tab {
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition:
    background  var(--t-fast),
    color       var(--t-fast),
    border-color var(--t-fast),
    box-shadow  var(--t-fast);
  white-space: nowrap;
  line-height: 1.3;
}

.plans-tab:hover:not(.plans-tab--active) {
  color: rgba(200,215,255,.85);
  background: rgba(255,255,255,.07);
}

.plans-tab--active {
  background: linear-gradient(135deg, rgba(90,120,255,.38), rgba(190,80,255,.28));
  border-color: rgba(170,190,255,.30);
  color: #fff;
  box-shadow:
    0 0 18px rgba(75,110,255,.22),
    inset 0 1px 0 rgba(255,255,255,.10);
}

.plans-tab__count {
  font-size: 11px;
  font-weight: 500;
  opacity: .75;
  margin-left: 2px;
}

.plans-tab--active .plans-tab__count {
  opacity: .85;
}

/* Mobile: tabs go full-width and stack */
@media (max-width: 480px) {
  .plans-tabs {
    width: 100%;
    border-radius: 16px;
  }

  .plans-tab {
    flex: 1;
    text-align: center;
    padding: 8px 10px;
    font-size: 12px;
  }
}

/* ─────────────────────────────────────────────────────────────
   PHONE INPUT — country-code selector + number field
   ──────────────────────────────────────────────────────────── */

/* Wrapper: pill-shaped container that mimics .input visually */
.phone-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: rgba(0,0,0,.35);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  width: 100%;
  overflow: visible; /* let dropdown escape */
}

.phone-wrap:focus-within {
  border-color: rgba(170,190,255,.55);
  box-shadow: 0 0 0 3px rgba(75,110,255,.18), 0 0 18px rgba(75,110,255,.10);
}

.phone-wrap.input--error {
  border-color: rgba(255,120,120,.65) !important;
  box-shadow:   0 0 0 3px rgba(255,80,80,.12) !important;
}

/* Country selector button (left side of pill) */
.phone-country-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 8px 10px 14px;
  background: none;
  border: none;
  border-right: 1px solid var(--hair);
  color: var(--text);
  cursor: pointer;
  border-radius: 999px 0 0 999px;
  font-family: inherit;
  font-size: inherit;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--t-fast);
  line-height: 1;
}

.phone-country-btn:hover { background: rgba(255,255,255,.06); }
.phone-country-btn:active { background: rgba(255,255,255,.10); }
.phone-country-btn:focus-visible {
  outline: 2px solid rgba(170,190,255,.6);
  outline-offset: -2px;
  border-radius: 999px 0 0 999px;
}

.phone-country-flag {
  font-size: 17px;
  line-height: 1;
  display: inline-block;
  /* Emoji flags can vary in width; fix to avoid layout shift */
  min-width: 1.2em;
  text-align: center;
}

.phone-country-dialcode {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  color: rgba(255,255,255,.85);
}

.phone-country-caret {
  font-size: 9px;
  opacity: .6;
  margin-left: 1px;
}

/* Number text field (right side of pill) */
.phone-number-field {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: inherit;
  padding: 12px 14px 12px 10px;
  /* Round the right end so it matches the pill wrapper (overflow:visible on parent
     means border-radius there no longer clips children automatically) */
  border-radius: 0 999px 999px 0;
  appearance: none;
  -webkit-appearance: none;
}

.phone-number-field::placeholder { color: rgba(255,255,255,.38); }

/* Dropdown panel — rendered as a body-level portal so it escapes any
   stacking context created by backdrop-filter on ancestor cards/sections.
   JS positions it via getBoundingClientRect() + inline top/left. */
.phone-dropdown {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 288px;
  background: #111;
  border: 1px solid var(--hair);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.75), 0 2px 8px rgba(0,0,0,.5);
  /* Animate in */
  animation: phoneDropdownIn 130ms var(--ease) both;
}

@keyframes phoneDropdownIn {
  from { opacity: 0; transform: translateY(-6px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

.phone-dropdown[hidden] { display: none; }

/* Search inside dropdown */
.phone-dropdown-search-wrap {
  padding: 10px 10px 8px;
  border-bottom: 1px solid var(--hair);
}

.phone-dropdown-search {
  width: 100%;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--hair);
  border-radius: 999px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  padding: 7px 12px;
  outline: none;
  transition: border-color var(--t-fast);
}

.phone-dropdown-search:focus {
  border-color: rgba(170,190,255,.55);
}

.phone-dropdown-search::placeholder { color: rgba(255,255,255,.38); }

/* Scrollable country list */
.phone-dropdown-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  overflow-y: auto;
  max-height: 260px;
}

.phone-dropdown-list::-webkit-scrollbar       { width: 5px; }
.phone-dropdown-list::-webkit-scrollbar-track  { background: transparent; }
.phone-dropdown-list::-webkit-scrollbar-thumb  { background: rgba(255,255,255,.15); border-radius: 999px; }

/* Individual country row */
.phone-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
  transition: background var(--t-fast);
}

.phone-dropdown-item:hover,
.phone-dropdown-item--focused { background: rgba(255,255,255,.07); }

.phone-dropdown-item--selected { color: var(--accent); }

.phone-dropdown-item__flag {
  font-size: 17px;
  line-height: 1;
  min-width: 1.3em;
  text-align: center;
  flex-shrink: 0;
}

.phone-dropdown-item__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-dropdown-item__code {
  color: rgba(255,255,255,.50);
  font-size: 13px;
  flex-shrink: 0;
}

/* On very small screens, keep the dropdown full-width */
@media (max-width: 360px) {
  .phone-dropdown { width: calc(100vw - 32px); left: 0; }
}


/* ============================================================
   ApexLinx — style.css  addendum (homepage v2)
   Hero, trust strip, how-it-works, why-section, featured
   destinations, compatibility, catalog loading, footer v2
   ============================================================ */

/* ─────────────────────────────────────────────────────────────
   HERO — conversion copy layout
   ──────────────────────────────────────────────────────────── */
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.hero__headline {
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin: 0;
  max-width: 820px;
  /* Gradient text — same palette as .brand__name */
  background: linear-gradient(
    135deg,
    #fff          0%,
    rgba(199,210,255,.96) 38%,
    rgba(210,145,255,.92) 72%,
    #fff          100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 24px rgba(75,110,255,.38));
}

/* Flag images inside hero headlines scale with the headline font size */
.hero__headline .flagimg {
  width: 0.75em;
  height: 0.75em;
  filter: none;
  vertical-align: middle;
  position: relative;
  top: -0.05em;
}

.hero__sub {
  font-size: clamp(15px, 2.2vw, 19px);
  color: var(--muted);
  line-height: 1.6;
  max-width: 620px;
  margin: 0;
  text-shadow: 0 1px 10px rgba(0,0,0,.55);
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}

/* Primary CTA — more prominent than default .btn */
.btn--hero-primary {
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(90,120,255,.38), rgba(190,80,255,.30));
  border-color: rgba(170,190,255,.42);
  box-shadow: 0 0 28px rgba(75,110,255,.24), 0 6px 24px rgba(0,0,0,.38);
}
.btn--hero-primary:hover {
  background: linear-gradient(135deg, rgba(90,120,255,.54), rgba(190,80,255,.44));
  border-color: rgba(170,190,255,.62);
  box-shadow: 0 0 38px rgba(75,110,255,.36), 0 8px 28px rgba(0,0,0,.44);
}

/* Secondary CTA — ghost style */
.btn--hero-secondary {
  padding: 15px 24px;
  font-size: 15px;
  font-weight: 700;
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.22);
}
.btn--hero-secondary:hover {
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.40);
  box-shadow: 0 4px 18px rgba(0,0,0,.30);
}

.hero__trust-micro {
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,.46);
  letter-spacing: .03em;
}

/* ─────────────────────────────────────────────────────────────
   TRUST STRIP
   ──────────────────────────────────────────────────────────── */
.trust-strip {
  border-bottom: 1px solid var(--hair);
  background: rgba(255,255,255,.028);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 14px 0;
}

.trust-strip__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 28px;
}

.trust-strip__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.trust-strip__item strong {
  color: rgba(255,255,255,.88);
}

.trust-strip__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: rgba(170,190,255,.7);
}
.trust-strip__icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

/* ─────────────────────────────────────────────────────────────
   HOW IT WORKS — 3-step section
   ──────────────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

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

.step {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 24px 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Subtle radial accent glow inside each step */
.step::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(380px 160px at 50% -20%, rgba(75,110,255,.10), transparent 65%);
  pointer-events: none;
}

.step__num {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  color: rgba(170,190,255,.80);
  background: linear-gradient(135deg, rgba(90,120,255,.18), rgba(190,80,255,.14));
  border: 1px solid rgba(170,190,255,.22);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step__title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: rgba(255,255,255,.93);
}

.step__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ─────────────────────────────────────────────────────────────
   WHY TRAVELERS CHOOSE APEXLINX — 4-up grid
   ──────────────────────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
}

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

@media (min-width: 960px) {
  .why-grid { grid-template-columns: repeat(4, 1fr); }
}

.why-card {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 22px 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition:
    border-color var(--t-med),
    box-shadow   var(--t-med),
    transform    var(--t-med);
  will-change: transform;
}

.why-card:hover {
  border-color: rgba(170,190,255,.32);
  box-shadow: 0 0 24px rgba(75,110,255,.14), 0 6px 28px rgba(0,0,0,.45);
  transform: translateY(-3px);
}

.why-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--accent);
  opacity: 0.85;
}
.why-card__icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.why-card__title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: rgba(255,255,255,.93);
}

.why-card__desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

/* ─────────────────────────────────────────────────────────────
   FEATURED DESTINATIONS — pill links
   ──────────────────────────────────────────────────────────── */
.featured-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.featured-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.82);
  transition:
    border-color var(--t-fast),
    background   var(--t-fast),
    box-shadow   var(--t-fast),
    transform    var(--t-fast),
    color        var(--t-fast);
  will-change: transform;
}

.featured-card:hover {
  border-color: rgba(170,190,255,.42);
  background: rgba(255,255,255,.11);
  box-shadow: 0 0 16px rgba(75,110,255,.18), 0 4px 14px rgba(0,0,0,.35);
  color: #fff;
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────────────────────────
   DEVICE COMPATIBILITY
   ──────────────────────────────────────────────────────────── */
.compat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}

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

.compat-card {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 22px 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
}

.compat-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 14px;
  color: rgba(255,255,255,.93);
}

.compat-list {
  margin: 0 0 10px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.compat-list li { margin: 4px 0; }

/* ─────────────────────────────────────────────────────────────
   CATALOG — loading state & empty state
   ──────────────────────────────────────────────────────────── */
.catalog-loading {
  grid-column: 1 / -1;          /* span all grid columns */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 0;
  color: var(--muted);
  font-size: 15px;
}

/* Reuses the same keyframe as .order-spinner */
.catalog-spinner {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 2px solid var(--hair);
  border-top-color: rgba(170,190,255,.80);
  border-radius: 50%;
  animation: order-spin .75s linear infinite;
  flex-shrink: 0;
}

.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 44px 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Empty state inside the plans table on location.html */
.plans-empty-state {
  text-align: center;
  padding: 44px 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────
   FOOTER — improved trust + contact presence
   ──────────────────────────────────────────────────────────── */
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer__logo {
  height: 22px;
  width: auto;
  opacity: .55;
  filter: brightness(.85) grayscale(.25);
}

.footer__tagline {
  font-size: 12px;
  color: rgba(255,255,255,.35);
}

.footer__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__links a {
  color: rgba(255,255,255,.44);
  text-decoration: none;
  font-size: 13px;
  transition: color var(--t-fast);
}

.footer__links a:hover {
  color: rgba(255,255,255,.86);
}

.footer__copy {
  font-size: 12px;
  color: rgba(255,255,255,.28);
}

/* ─────────────────────────────────────────────────────────────
   FAQ ACCORDION  (uses native <details>/<summary>)
   ──────────────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.faq-item {
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.faq-item[open] {
  border-color: rgba(170,190,255,.32);
  box-shadow: 0 0 24px rgba(75,110,255,.12), 0 4px 20px rgba(0,0,0,.30);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-user-select: none;
  transition: color var(--t-fast);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; }

.faq-question:hover {
  color: var(--accent);
}

.faq-question::after {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='rgba(199%2C210%2C255%2C.7)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform var(--t-med);
}

.faq-item[open] .faq-question::after {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  border-top: 1px solid var(--hair);
  padding-top: 14px;
}

.faq-answer p { margin: 0 0 10px; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ─────────────────────────────────────────────────────────────
   TRUSTPILOT REVIEWS
   ──────────────────────────────────────────────────────────── */
.reviews-section {
  margin-top: 0;
}

.reviews-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.reviews-header__tp-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.65);
}

/* Trustpilot green star icon (inline SVG star in brand color) */
.tp-star-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #00b67a;
  border-radius: 3px;
  flex-shrink: 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.review-card {
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.review-card:hover {
  border-color: rgba(170,190,255,.28);
  box-shadow: 0 4px 20px rgba(0,0,0,.28);
}

.review-stars {
  display: flex;
  gap: 3px;
}

.review-stars svg {
  fill: #00b67a;
}

.review-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.review-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.review-meta {
  font-size: 12px;
  color: rgba(255,255,255,.38);
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-meta__name {
  font-weight: 600;
  color: rgba(255,255,255,.52);
}

.review-placeholder-note {
  font-size: 11px;
  color: rgba(255,255,255,.25);
  font-style: italic;
  margin-top: 6px;
}

/* ─────────────────────────────────────────────────────────────
   DESTINATION BADGE  (inline callout pill)
   ──────────────────────────────────────────────────────────── */
.dest-use-cases {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.dest-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(170,190,255,.16);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

/* ─────────────────────────────────────────────────────────────
   TESTIMONIALS
   ──────────────────────────────────────────────────────────── */
.testimonials {
  padding: 56px 0;
  background: rgba(255,255,255,.03);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 28px;
}

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

.testimonial-card {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 24px 22px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.testimonial-card__stars {
  color: #f5c542;
  font-size: 18px;
  letter-spacing: 2px;
}

.testimonial-card__quote {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,.88);
  font-style: italic;
}

.testimonial-card__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.testimonials__trustpilot {
  margin-top: 28px;
  text-align: center;
}

.trustpilot-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 8px 18px;
  transition: color .18s, border-color .18s, background .18s;
}

.trustpilot-link:hover {
  color: #fff;
  border-color: #00b67a;
  background: rgba(0,182,122,.08);
}

.trustpilot-link__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Featured card price ────────────────────────────────────────────────── */
.featured-card__price {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent, #4fc3f7);
  margin-top: 2px;
  opacity: 0.85;
}


