:root {
  --bg-0: #050912;
  --bg-1: #0b132b;
  --bg-2: #1c2541;
  --accent: #5bc0be;
  --accent-strong: #6fffe9;
  --accent-warm: #f4a261;
  --text: #f7f7fa;
  --text-muted: #b8c1ec;
  --border: rgba(255, 255, 255, 0.12);
  --card-bg: rgba(20, 28, 50, 0.62);
  --card-bg-strong: rgba(20, 28, 50, 0.86);
  --shadow-md: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius-md: 16px;
  --radius-lg: 28px;
}

* {
  scroll-behavior: smooth;
}

html,
body {
  background: var(--bg-0);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-strong);
  background: rgba(91, 192, 190, 0.12);
  border: 1px solid rgba(91, 192, 190, 0.35);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  text-align: center;
}

/* ============== Navbar / Masthead ============== */

.navbar-masthead {
  background: rgba(5, 9, 18, 0.55);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  padding-block: 0.3rem;
  min-height: 0;
}

.navbar-masthead.is-scrolled {
  background: rgba(5, 9, 18, 0.92);
  border-bottom-color: var(--border);
  padding-block: 0.2rem;
}

.navbar-masthead .navbar-brand {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
  padding-block: 0;
}

/* Masthead/footer brand logo (LEGAL_BRAND_LOGO template include). */
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(111, 255, 233, 0.45));
}

.navbar-masthead .brand-mark {
  width: 30px;
  height: 30px;
}

.brand-mark__svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar-brand:hover .brand-mark__svg,
.navbar-brand:focus .brand-mark__svg {
  transform: rotate(-6deg) scale(1.08);
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}

.brand-primary {
  font-size: 1rem;
  font-weight: 800;
}

.brand-secondary {
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.navbar-masthead .nav-link {
  color: rgba(247, 247, 250, 0.78);
  font-weight: 500;
  font-size: 0.78rem;
  padding: 0.35rem 0.45rem;
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.navbar-masthead .nav-link:hover,
.navbar-masthead .nav-link:focus {
  color: var(--text);
}

.navbar-masthead .nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 0.45rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--accent-strong);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.navbar-masthead .nav-link:hover::after {
  transform: scaleX(1);
}

.navbar-toggler {
  border-color: var(--border);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(91, 192, 190, 0.25);
}

.navbar-toggler-icon {
  filter: invert(1);
}

/*
  Masthead layout:
  [brand] [hamburger] [horizontal wrapping links] ............ [lang]
*/
.masthead-container {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: 100%;
  padding-inline: 1.25rem 1.75rem;
  column-gap: 0.65rem;
}

.navbar-masthead .navbar-brand {
  order: 1;
  margin-inline-end: 0;
  flex-shrink: 0;
}

.navbar-masthead .navbar-toggler {
  order: 2;
  margin: 0;
  display: block;
  flex-shrink: 0;
}

.navbar-masthead .navbar-collapse {
  order: 3;
  flex: 1 1 auto;
  min-width: 0;
  display: none;
}

.navbar-masthead .navbar-collapse.show {
  display: flex;
}

.masthead-toolbar {
  order: 4;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-inline-start: auto;
  flex-shrink: 0;
}

.navbar-masthead .masthead-signin {
  padding: 0.45rem 1.1rem;
  font-size: 0.875rem;
  line-height: 1.2;
  box-shadow: 0 6px 16px rgba(91, 192, 190, 0.25);
}

.navbar-masthead .lang-dropdown-toggle {
  padding: 0.3rem 0.75rem;
  font-size: 0.72rem;
}

.navbar-masthead .masthead-nav-inner {
  width: 100%;
  min-width: 0;
}

.navbar-masthead .navbar-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.05rem 0.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

.navbar-masthead .masthead-signin {
  display: none;
}

.navbar-masthead .masthead-mobile-signin {
  display: list-item;
}

/* Desktop / wide: always show wrapping links between hamburger slot and language. */
@media (min-width: 992px) {
  .navbar-masthead .navbar-toggler {
    display: none;
  }

  .navbar-masthead .navbar-collapse,
  .navbar-masthead .navbar-collapse.show {
    display: flex;
  }

  .navbar-masthead .masthead-signin {
    display: inline-flex;
  }

  .navbar-masthead .masthead-mobile-signin {
    display: none;
  }
}

.lang-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

.lang-dropdown-toggle:hover,
.lang-dropdown-toggle:focus,
.lang-dropdown-toggle.show {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: var(--border);
  box-shadow: none;
}

.lang-dropdown-menu {
  background: var(--card-bg-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.35rem;
  min-width: 11rem;
  box-shadow: var(--shadow-md);
}

.lang-form {
  margin: 0;
  padding: 0;
}

.lang-dropdown-item {
  border: none;
  background: transparent;
  width: 100%;
  text-align: start;
  border-radius: calc(var(--radius-md) - 4px);
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
}

.lang-dropdown-item:hover,
.lang-dropdown-item:focus {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.lang-dropdown-item.active {
  background: rgba(91, 192, 190, 0.15);
  color: var(--accent-strong);
}

/* ============== Buttons ============== */

.btn-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--bg-0);
  font-weight: 700;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.3rem;
  box-shadow: 0 10px 24px rgba(91, 192, 190, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-cta:hover,
.btn-cta:focus {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(111, 255, 233, 0.35);
  color: var(--bg-0);
  filter: brightness(1.05);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.6rem 1.3rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-ghost:hover,
.btn-ghost:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text);
}

/* ============== Hero ============== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  padding: 8rem 0 6rem;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.6s ease, transform 8s ease;
  will-change: opacity, transform;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 80% at 20% 20%, rgba(91, 192, 190, 0.25), transparent 60%),
    radial-gradient(50% 70% at 80% 30%, rgba(244, 162, 97, 0.15), transparent 60%),
    linear-gradient(180deg, rgba(5, 9, 18, 0.45) 0%, rgba(5, 9, 18, 0.85) 60%, rgba(5, 9, 18, 1) 100%);
}

/* =============================================================================
   Hero mascot — walking cat (SVG in templates/landing/home.html)
   Layers: .hero-mascot (strip) → .hero-mascot__walker (horizontal path) →
   .hero-mascot__cat (root SVG sizing + bob). Inner SVG groups use the
   hero-mascot__* classes below for limb/tail motion.
   ============================================================================= */

/* Strip along the hero content area; cat walks between menu and eyebrow. Non-interactive. */
.hero-mascot {
  position: absolute;
  inset-inline: 0;
  top: 7vh;
  /* Adaptive height for the cat strip */
  height: 8vh;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}

/* Mobile: position cat right above the eyebrow label */
@media (max-width: 767.98px) {
  .hero-mascot {
    top: 7vh;
    height: 5vh;
  }
}

/* Flex row: aligns the SVG to the bottom; heroCatWalk moves the whole cat L→R */
.hero-mascot__walker {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  animation: heroCatWalk 16s linear infinite;
}

/* Root <svg>; smaller adaptive size to fit above the eyebrow */
.hero-mascot__cat {
  width: 6vw;
  min-width: 2.5rem;
  max-width: 4.5rem;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  animation: heroCatBob 0.38s ease-in-out infinite;
  will-change: transform;
}

/* SVG <g> pivot for whole-body tilt (matches viewBox coords in home.html) */
.hero-mascot__body-group {
  transform-origin: 64px 70px;
}

/* Tail stroke group: wags around base point */
.hero-mascot__tail {
  transform-origin: 22px 40px;
  animation: heroCatTail 0.7s ease-in-out infinite;
}

/* Rear legs: alternating rotation */
.hero-mascot__paws--rear {
  transform-origin: 46px 68px;
  animation: heroCatPawsRear 0.38s ease-in-out infinite;
}

/* Front legs: alternating rotation (offset phase vs rear via keyframes) */
.hero-mascot__paws--front {
  transform-origin: 79px 72px;
  animation: heroCatPawsFront 0.38s ease-in-out infinite;
}

/* Continuous pan across the viewport (starts off-screen left, exits right) */
@keyframes heroCatWalk {
  0% {
    transform: translate3d(-18vw, 0, 0);
  }
  100% {
    transform: translate3d(118vw, 0, 0);
  }
}

/* Vertical bob on the whole SVG — sells “walking” with the stride pose */
@keyframes heroCatBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Tail path: gentle side-to-side wag */
@keyframes heroCatTail {
  0%,
  100% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(7deg);
  }
}

/* Hind paws: swing opposite phase to front (compare 0%/50% to heroCatPawsFront) */
@keyframes heroCatPawsRear {
  0%,
  100% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(4deg);
  }
}

/* Fore paws: stride alternation */
@keyframes heroCatPawsFront {
  0%,
  100% {
    transform: rotate(5deg);
  }
  50% {
    transform: rotate(-5deg);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin-top: -3vh;
}

.hero-content .eyebrow {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw + 1rem, 4.6rem);
  line-height: 1.05;
  margin: 1.25rem 0 1.5rem;
  color: #ffffff;
  text-wrap: balance;
  text-align: center;
}

/* Mobile: smaller font to fit on one line */
@media (max-width: 47.998em) {
  .hero-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    white-space: nowrap;
  }
}

.hero-tagline {
  font-size: clamp(1.05rem, 1vw + 0.7rem, 1.3rem);
  color: var(--text-muted);
  max-width: 56ch;
  margin-bottom: 2rem;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Desktop: center hero header text */
@media (min-width: 768px) {
  .hero-content .eyebrow,
  .hero-title,
  .hero-tagline {
    text-align: center;
  }

  .hero-content .eyebrow {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-title {
    display: block;
    white-space: nowrap;
  }

  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ============== Hero countries (quick access buttons) ============== */

.hero-countries {
  margin: 2rem 0 1.5rem;
}

.hero-countries__label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-align: center;
}

.hero-countries__grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 400px;
  margin: 0 auto;
}

.country-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
}

.country-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-strong);
  transform: translateX(4px);
}

.country-btn[aria-expanded="true"] {
  background: rgba(91, 192, 190, 0.15);
  border-color: var(--accent-strong);
}

.country-btn__flag {
  font-size: 1.5rem;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  flex-shrink: 0;
}

.country-btn__name {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  flex: 1;
}

.country-btn__price {
  font-size: 0.85rem;
  color: var(--accent-strong);
  font-weight: 700;
  flex-shrink: 0;
  margin-left: auto;
  text-align: right;
}

/* Desktop: center country buttons in a grid */
@media (min-width: 768px) {
  .hero-countries__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
    justify-items: center;
  }

  .country-btn {
    justify-content: space-between;
    text-align: left;
    width: 100%;
    max-width: 400px;
  }
}

/* ============== Hero country cards (expandable) ============== */

.hero-country-cards {
  display: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
  justify-content: center;
}

/* Desktop: center hero action buttons */
@media (min-width: 768px) {
  .hero-actions {
    justify-content: center;
  }
}

.hero-trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-trust i {
  color: var(--accent-strong);
  margin-inline-end: 0.4rem;
}

@media (max-width: 575.98px) {
  .hero-trust {
    flex-direction: column;
    gap: 0.65rem;
  }
}

.hero-scroll {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.hero-scroll span {
  width: 3px;
  height: 8px;
  background: var(--accent-strong);
  border-radius: 2px;
  animation: scrollHint 1.6s ease-in-out infinite;
}

@keyframes scrollHint {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(10px); opacity: 0.2; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ============== Sections ============== */

.section {
  padding: 6rem 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem);
  margin: 1rem 0 0.5rem;
  text-wrap: balance;
}

.section-head .lead {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ============== Plan cards ============== */

.section-plans {
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(91, 192, 190, 0.1), transparent 70%),
    var(--bg-0);
  padding-top: 2.5rem;
}

.section-plans .section-head {
  margin-bottom: 2rem;
}

.section-plans .section-head .eyebrow {
  margin-top: 0;
}

.plan-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  height: 100%;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--card-bg) 0%, rgba(11, 19, 43, 0.85) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: visible;
  z-index: 1;
}

.plan-card:has(.plan-card__operators-info:hover),
.plan-card:has(.plan-card__head-info:hover) {
  z-index: 1001;
}

.plan-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(160deg, rgba(111, 255, 233, 0.5), rgba(91, 192, 190, 0));
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.plan-card > * {
  position: relative;
  z-index: 1;
}

.plan-card:hover {
  transform: translateY(-6px);
  border-color: rgba(111, 255, 233, 0.4);
}

.plan-card:hover::before {
  opacity: 0.35;
}

.plan-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  width: 100%;
}

.plan-card__head-body {
  flex: 1;
  min-width: 0;
}

.plan-card__head-info {
  flex-shrink: 0;
  margin-left: auto;
  margin-top: 0.15rem;
}

.plan-card__flag {
  font-size: 2.4rem;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.plan-card__country {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  width: 100%;
}

.plan-card__code {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.plan-card__metrics {
  /* Grid keeps two equal columns in both LTR and RTL (flex + rtl can still
     pack both blocks on one margin depending on browser / Bootstrap). */
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
  padding: 1rem 0;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
}

.plan-card__metrics > div {
  min-width: 0;
  text-align: start;
}

.plan-card__metric-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.plan-card__metric-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 0.2rem;
}

.plan-card__metric-value-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.6rem;
  margin-top: 0.2rem;
}

.plan-card__metric-value-row .plan-card__metric-value {
  margin-top: 0;
}

.plan-card__metric-tier-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.plan-card__metric-fup {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.3;
}

.plan-card__country-name {
  flex: 0 1 auto;
}

.plan-card__plan-name {
  flex: 1 1 100%;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.35;
}

.plan-card__metric-fup-label {
  color: var(--text-muted);
}

.plan-card__metric-fup-value,
.js-plan-tier-fup-value {
  color: var(--accent);
}

.plan-card__metric-fup.is-empty {
  display: none;
}

.plan-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.plan-card__list-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.45rem;
  width: 100%;
}

.plan-card__list-item i {
  flex-shrink: 0;
  margin: 0;
  color: var(--accent-strong);
}

.plan-card__list-text {
  flex: 1 1 auto;
  min-width: 0;
  text-align: start;
}

/* Operators feature with fade-out effect */
.plan-card__list-item:has(.plan-card__operators-info) {
  position: relative;
}

.plan-card__list-item:has(.plan-card__operators-info) .plan-card__list-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 30px;
  position: relative;
}

.plan-card__list-item:has(.plan-card__operators-info) .plan-card__list-text::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 30px;
  background: linear-gradient(to right, transparent, var(--card-bg) 70%);
  pointer-events: none;
}

.plan-card > form.js-plan-checkout-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.plan-card__foot .js-plan-checkout-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  flex: 1;
}

.plan-card__foot {
  flex: 1;
  padding-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.plan-card__buy-ctrl {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 2.75rem;
  margin-top: auto;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 10px 24px rgba(91, 192, 190, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.plan-card__buy-ctrl:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(111, 255, 233, 0.35);
  filter: brightness(1.05);
}

.plan-card__buy-ctrl-part {
  border: none;
  margin: 0;
  background: transparent;
  color: var(--bg-0);
  font-weight: 700;
  cursor: pointer;
  line-height: 1.2;
}

.plan-card__buy-ctrl-part--minus,
.plan-card__buy-ctrl-part--plus {
  flex: 0 0 2.75rem;
  font-size: 1.55rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.14);
}

.plan-card__buy-ctrl-part--minus:hover:not(:disabled),
.plan-card__buy-ctrl-part--plus:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.22);
}

.plan-card__buy-ctrl-part--minus:disabled,
.plan-card__buy-ctrl-part--plus:disabled {
  opacity: 0.4;
  cursor: default;
}

.plan-card__buy-ctrl-part--submit {
  flex: 1 1 auto;
  padding: 0 0.35rem;
  font-size: 1.05rem;
  min-width: 0;
  white-space: nowrap;
}

.plan-card__buy-ctrl-part--submit:hover,
.plan-card__buy-ctrl-part--submit:focus {
  transform: none;
  box-shadow: none;
  filter: none;
  color: var(--bg-0);
}

.plan-card__checkout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  flex-shrink: 0;
}

.plan-card__checkout--inline {
  flex-direction: row;
  align-items: flex-end;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.plan-card__qty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.plan-card__qty-btn {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(5, 9, 18, 0.55);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.plan-card__qty-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.plan-card__qty-value {
  min-width: 1.1rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.plan-card__checkout--inline .plan-card__buy-btn {
  padding: 0.6rem 1.25rem;
  font-size: 1rem;
  white-space: nowrap;
}

.plan-card__buy-btn--full {
  width: 100%;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  margin-top: auto;
}

.plan-card__price {
  text-align: start;
  min-width: 0;
  margin-top: -0.2rem;
}

.plan-card__price-from {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.plan-card__price-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.05;
  color: var(--text);
  margin-top: 0.15rem;
}

/* Mobile: one card per country — data tier pill rail under the DATA value */
.plan-card--mobile-stack .plan-card__metrics--stacked {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}

.plan-card__metric-block {
  min-width: 0;
  text-align: start;
}

.plan-card__rail {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: rgba(5, 9, 18, 0.55);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.plan-card__rail-btn {
  position: relative;
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin: 0;
  border: none;
  border-radius: 999px;
  padding: 0.5rem 0.3rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.plan-card__tier-input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.plan-card__tier-text {
  position: relative;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  line-height: 1.1;
  text-align: center;
}

.plan-card__tier-volume {
  white-space: nowrap;
}

.plan-card__tier-price {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0;
  opacity: 0.88;
  white-space: nowrap;
}

.plan-card__rail-btn:has(.plan-card__tier-input:checked) .plan-card__tier-price {
  opacity: 0.95;
}

.plan-card__rail-btn:hover {
  color: var(--text);
}

.plan-card__rail-btn:has(.plan-card__tier-input:focus-visible) {
  outline: none;
  box-shadow: 0 0 0 2px rgba(111, 255, 233, 0.35);
}

.plan-card__rail-btn:has(.plan-card__tier-input:checked) {
  color: var(--bg-0);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 4px 14px rgba(91, 192, 190, 0.35);
}

.plan-card__rail-btn:has(.plan-card__tier-input:checked:active) {
  transform: scale(0.98);
}

/* ============== Why us ============== */

.section-why {
  background: var(--bg-2);
}

.feature-card {
  height: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(111, 255, 233, 0.4);
}

.feature-card i {
  font-size: 1.8rem;
  color: var(--accent-strong);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
  margin: 0;
}

/* ============== How it works ============== */

.section-how {
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  counter-reset: steps;
}

.steps li {
  position: relative;
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.step-num {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--accent-strong);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.steps li h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.steps li p {
  color: var(--text-muted);
  margin: 0;
}

/* ============== FAQ ============== */

.section-faq {
  background: linear-gradient(135deg, rgba(91, 192, 190, 0.08) 0%, rgba(244, 162, 97, 0.08) 100%);
  position: relative;
}

.section-faq::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(91, 192, 190, 0.15), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(244, 162, 97, 0.12), transparent 40%);
  pointer-events: none;
}

.section-faq .container {
  position: relative;
  z-index: 1;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: rgba(20, 28, 50, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(91, 192, 190, 0.2);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(91, 192, 190, 0.4);
  box-shadow: 0 8px 24px rgba(91, 192, 190, 0.15);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: color 0.2s ease;
}

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

.faq-question span {
  flex: 1;
}

.faq-icon {
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--accent-strong);
  transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  border-top: 1px solid rgba(91, 192, 190, 0.1);
}

.faq-answer-content {
  padding: 1.5rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-answer-content p {
  margin-bottom: 0.75rem;
}

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

.faq-answer-content ul,
.faq-answer-content ol {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
}

.faq-answer-content li {
  margin-bottom: 0.5rem;
}

.faq-answer-content li:last-child {
  margin-bottom: 0;
}

.faq-answer-content strong {
  color: var(--accent-strong);
  font-weight: 600;
}

/* ============== Contact ============== */

.section-contact {
  padding-bottom: 7rem;
  background: linear-gradient(135deg, rgba(91, 192, 190, 0.05) 0%, rgba(244, 162, 97, 0.05) 100%);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
  }
}

/* Contact form panel */
.contact-form-panel {
  background: var(--card-bg-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.contact-panel-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 576px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.form-group .required {
  color: var(--accent-warm);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: #f7f7fa;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
  font-family: inherit;
  -webkit-text-fill-color: #f7f7fa;
}

.form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(91, 192, 190, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control {
  cursor: pointer;
}

select.form-control option {
  background: #1a1a2e;
  color: #f7f7fa;
}

/* ============== Plan Card Operators ============== */

.plan-card__operators {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0;
  border-top: 1px dashed var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.plan-card__operators-label {
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
}

.plan-card__operators-list {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-card__operators-info {
  flex-shrink: 0;
  width: clamp(1.125rem, 3vw, 1.25rem);
  height: clamp(1.125rem, 3vw, 1.25rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-strong);
  font-size: clamp(0.6rem, 1.5vw, 0.7rem);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  position: relative;
  margin-left: clamp(0.25rem, 1vw, 0.35rem);
  vertical-align: middle;
}

.plan-card__operators-info::before {
  content: "?";
  line-height: 1;
}

.plan-card__operators-info:hover {
  background: var(--accent);
  color: var(--bg-0);
  transform: scale(1.1);
}

/* Tooltip on hover */
.plan-card__operators-info::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card-bg-strong);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 400;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  margin-bottom: 0.5rem;
}

/* Hide tooltip on mobile/touch devices */
@media (max-width: 991.98px) {
  .plan-card__operators-info::after {
    display: none;
  }
}

/* Adjust tooltip position for right-side cards to prevent overflow */
.col-xl-4:last-child .plan-card__operators-info:not(.plan-card__head-info)::after,
.col-xl-4:nth-child(3n) .plan-card__operators-info:not(.plan-card__head-info)::after {
  left: auto;
  right: 0;
  transform: translateX(0);
}

.plan-card__operators-info:hover::after {
  opacity: 1;
}

/* ============== Operators Modal ============== */

.operators-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 9, 18, 0.85);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 1.5rem);
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.operators-modal {
  background: var(--card-bg-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  max-width: min(90vw, 25rem);
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
  margin: 0 auto;
}

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

.operators-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1rem, 3vw, 1.5rem);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.operators-modal__header h3 {
  margin: 0;
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  font-weight: 700;
  color: var(--text);
}

.operators-modal__close {
  width: clamp(1.75rem, 5vw, 2rem);
  height: clamp(1.75rem, 5vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.operators-modal__close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

.operators-modal__body {
  padding: clamp(1rem, 3vw, 1.5rem);
  overflow-y: auto;
  flex: 1 1 auto;
}

.plan-card__head-info.plan-card__operators-info::after {
  white-space: pre-line;
  text-align: start;
  min-width: 10rem;
  max-width: min(18rem, 70vw);
}

@media (min-width: 992px) {
  .plan-card__head-info.plan-card__operators-info::after {
    display: none;
  }
}

.locations-tooltip {
  position: fixed;
  background: var(--card-bg-strong);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 400;
  min-width: 10rem;
  max-width: min(18rem, 70vw);
  max-height: min(70vh, 24rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 10000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
}

.locations-tooltip__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0;
}

.locations-tooltip__flag {
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1;
}

.locations-tooltip__name {
  flex: 1;
  min-width: 0;
}

.operators-modal__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1.5vw, 0.75rem);
}

.operators-modal__list li {
  display: flex;
  align-items: center;
  padding: clamp(0.5rem, 2vw, 0.75rem) clamp(0.75rem, 2.5vw, 1rem);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  font-weight: 500;
}

.operators-modal__list li::before {
  content: "•";
  color: var(--accent-strong);
  font-weight: bold;
  margin-right: 0.75rem;
  font-size: 1.2rem;
}

.locations-modal__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1.5vw, 0.75rem);
}

.locations-modal__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: clamp(0.5rem, 2vw, 0.75rem) clamp(0.75rem, 2.5vw, 1rem);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  font-weight: 500;
}

.locations-modal__flag {
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1;
}

.locations-modal__name {
  flex: 1;
  min-width: 0;
}

.form-status {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(91, 192, 190, 0.15);
  border: 1px solid var(--accent);
  color: var(--accent-strong);
}

.form-status.error {
  display: block;
  background: rgba(244, 162, 97, 0.15);
  border: 1px solid var(--accent-warm);
  color: var(--accent-warm);
}

#submit-btn {
  margin-top: 0.5rem;
  position: relative;
}

#submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-spinner {
  display: inline-flex;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Contact info panel */
.contact-info-panel {
  background: linear-gradient(160deg, rgba(91, 192, 190, 0.08) 0%, rgba(244, 162, 97, 0.08) 100%);
  border: 1px solid rgba(91, 192, 190, 0.3);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.contact-info-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-radius: 12px;
  color: var(--bg-0);
  font-size: 1.5rem;
  box-shadow: 0 8px 20px rgba(91, 192, 190, 0.3);
}

.contact-info-content {
  flex: 1;
}

.contact-info-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.contact-info-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.contact-info-highlight {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-strong);
  margin: 0;
}

.contact-info-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-strong);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-info-link:hover {
  color: var(--text);
  text-decoration: underline;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  width: 100%;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 200% at 0% 0%, rgba(91, 192, 190, 0.25), transparent 60%),
    rgba(20, 28, 50, 0.95);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.contact-card h2 {
  font-size: clamp(1.6rem, 1.5vw + 1rem, 2.2rem);
  margin-top: 0.6rem;
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: var(--text-muted);
  margin: 0;
  max-width: 50ch;
}

/* ============== Browse plans section ============== */

.section-browse {
  --browse-dropdown-item-height: 3.9rem;
  --browse-dropdown-visible-items: 5;
  --browse-dropdown-max-height: calc(
    var(--browse-dropdown-item-height) * var(--browse-dropdown-visible-items)
  );
  background: var(--bg-1);
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.section-browse .section-head {
  margin-bottom: 2rem;
}

.section-browse .section-head h2 {
  margin-top: 0.5rem;
}

.section-browse .section-head .eyebrow {
  margin-top: 0;
}

.browse-plans-filter {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .section-browse.is-dropdown-open .browse-plans-filter {
    margin-bottom: calc(var(--browse-dropdown-max-height) + 0.5rem);
  }

  .section-browse.is-dropdown-open .browse-plans-results:not(:has(.plan-card)) {
    display: none;
  }
}

.browse-plans-filter__label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

/* Custom searchable dropdown */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select-search {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  font-size: 1rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
}

.custom-select-search::placeholder {
  color: var(--text-muted);
}

.custom-select-search:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(91, 192, 190, 0.2);
  background: rgba(255, 255, 255, 0.12);
}

.custom-select-clear {
  position: absolute;
  right: 2.75rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.custom-select-clear:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.custom-select-clear:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

.custom-select-clear[hidden] {
  display: none;
}

.custom-select-wrapper.has-selection .custom-select-search {
  padding-right: 4.5rem;
}

.custom-select-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-strong);
  pointer-events: none;
  font-size: 1.1rem;
}

.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  max-height: var(--browse-dropdown-max-height, 19.5rem);
  overflow-y: auto;
  background: rgba(20, 28, 50, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 100;
  display: none;
}

.custom-select-dropdown.is-open {
  display: block;
}

.custom-select-dropdown::-webkit-scrollbar {
  width: 8px;
}

.custom-select-dropdown::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb:hover {
  background: var(--accent-strong);
}

.custom-select-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-select-item:last-child {
  border-bottom: none;
}

.custom-select-item:hover {
  background: rgba(91, 192, 190, 0.15);
}

.custom-select-item__flag {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.custom-select-item__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.custom-select-item__text strong {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}

.custom-select-item__details {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.custom-select-empty {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.browse-plans-results {
  max-width: 900px;
  margin: 0 auto;
}

.plan-card--has-close .plan-card__head {
  padding-right: 2.5rem;
}

.plan-card__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(11, 19, 43, 0.9);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.plan-card__close:hover {
  color: var(--text);
  border-color: rgba(91, 192, 190, 0.55);
  background: rgba(91, 192, 190, 0.12);
}

.plan-card__close:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

.browse-plans-results__empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 2rem;
}

@media (max-width: 767.98px) {
  .section-browse.is-search-mode {
    padding-top: 0;
    min-height: calc(100dvh - var(--masthead-offset, 4.5rem));
    padding-bottom: 2rem;
  }

  .section-browse.is-search-mode .section-head {
    display: none;
  }

  .section-browse.is-search-mode .browse-plans-filter {
    position: sticky;
    top: var(--masthead-offset, 4.5rem);
    z-index: 150;
    max-width: none;
    margin: 0 0 1rem;
    padding: 0.75rem 0 1rem;
    text-align: left;
    background: var(--bg-1);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .section-browse.is-search-mode .browse-plans-filter__label {
    margin-bottom: 0.5rem;
    text-align: left;
  }
}

.browse-plans-results__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ============== Footer ============== */

.site-footer {
  background: var(--bg-0);
  border-top: 1px solid var(--border);
}

.footer-title {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.site-footer a {
  color: var(--text-muted);
}

.plan-card__more-link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  margin-inline-start: auto;
}

.plan-card__more-link:hover {
  color: var(--accent-hover, #7eb8ff);
  text-decoration: underline;
}

.section-country-plans {
  padding-top: calc(var(--masthead-offset, 4.5rem) + 2rem);
}

.country-hero__head {
  text-align: center;
  max-width: 42rem;
  margin-inline: auto;
}

.country-hero__head .eyebrow {
  margin-bottom: 1.25rem;
}

.country-hero__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.country-hero__flag {
  font-size: 2.5rem;
  line-height: 1;
}

.country-plans-filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 72rem;
  margin: 0 auto 2rem;
  align-items: end;
}

@media (min-width: 576px) {
  .country-plans-filters {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem 1.25rem;
  }

  .country-plans-filters__group--country {
    grid-column: 1 / -1;
  }
}

@media (min-width: 992px) {
  .country-plans-filters {
    grid-template-columns:
      minmax(0, 1.1fr)
      minmax(0, 0.95fr)
      minmax(0, 0.95fr)
      max-content;
  }

  .country-plans-filters__group--country {
    grid-column: auto;
  }
}

.country-plans-filters__label--spacer {
  visibility: hidden;
  user-select: none;
}

.country-plans-filters__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.country-plans-filters__controls-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.75rem;
  min-width: 0;
}

.country-plans-filters__controls-row .country-plans-filters__select {
  flex: 1 1 auto;
  min-width: 0;
}

.country-plans-filters__select,
.country-plans-filters__toggle {
  box-sizing: border-box;
  min-height: 3.25rem;
}

.country-plans-filters__toggle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  padding: 0.75rem 1.1rem;
  background-color: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.country-plans-filters__toggle:hover {
  border-color: rgba(91, 192, 190, 0.45);
  background-color: rgba(28, 37, 65, 0.95);
}

.country-plans-filters__checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.country-plans-filters__checkbox-ui {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(5, 9, 18, 0.55);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.country-plans-filters__checkbox:checked + .country-plans-filters__checkbox-ui {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 1px rgba(111, 255, 233, 0.25);
}

.country-plans-filters__checkbox:checked + .country-plans-filters__checkbox-ui::after {
  content: "";
  width: 0.3rem;
  height: 0.55rem;
  margin-top: -0.1rem;
  border: solid var(--bg-0);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.country-plans-filters__checkbox:focus-visible + .country-plans-filters__checkbox-ui {
  outline: none;
  box-shadow: 0 0 0 3px rgba(126, 184, 255, 0.15);
}

.country-plans-filters__toggle:has(.country-plans-filters__checkbox:focus-visible) {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(126, 184, 255, 0.15);
}

.country-plans-filters__toggle-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
  white-space: nowrap;
}

.country-plans-filters__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.country-plans-filters__select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: var(--text);
  background-color: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.country-plans-filters__select option {
  color: var(--bg-1);
  background-color: #fff;
}

.country-plans-filters__select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(126, 184, 255, 0.15);
}

.country-plans-empty {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.section-country-plans .js-country-plan-card.is-filtered-out {
  display: none;
}

.plan-card__rail-btn.is-filtered-out {
  display: none;
}

.site-footer a:hover {
  color: var(--text);
}

.site-footer__text {
  color: var(--text-muted);
}

.site-footer__bottom {
  color: var(--text-muted);
}

/* ============== Responsive tweaks ============== */

@media (max-width: 991.98px) {
  .navbar-masthead .nav-link::after { display: none; }
  .navbar-masthead .navbar-collapse { padding-top: 1rem; }
  .lang-dropdown { margin-top: 0.5rem; }
}

@media (max-width: 575.98px) {
  .section { padding: 4.5rem 0; }
  .hero { padding: 7rem 0 4.5rem; }
  .contact-card { padding: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-scroll span,
  .plan-card,
  .feature-card,
  /* Mascot: stop walk, bob, tail, and paw loops; park cat mid-hero */
  .hero-mascot__walker,
  .hero-mascot__cat,
  .hero-mascot__tail,
  .hero-mascot__paws--rear,
  .hero-mascot__paws--front {
    transition: none !important;
    animation: none !important;
  }

  /* Static position (center) so the cat is still visible without motion */
  .hero-mascot__walker {
    transform: translate3d(45vw, 0, 0);
  }
}
