/* ── SHARED ── */

.eyebrow { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; color: var(--accent2); margin-bottom: 12px; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }




/* ══════════════════════════════════════
   PLANS PAGE
══════════════════════════════════════ */

/* ── HERO ── */
.plans-hero {
  min-height: 80vh;
  background: #0d0d0b;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px 60px 80px;
}

/* animated canvas bg */
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.4; pointer-events: none;
}

/* orange glow top-right */
.plans-hero-glow-tr {
  position: absolute; top: -120px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,80,26,0.22) 0%, transparent 65%);
  pointer-events: none;
}
/* subtle glow bottom-left */
.plans-hero-glow-bl {
  position: absolute; bottom: -100px; left: -60px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(232,80,26,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* horizontal rule line */
.plans-hero-line {
  position: absolute; top: 0; bottom: 0; left: calc(50% + 80px);
  width: 1px; background: rgba(255,255,255,0.05); pointer-events: none;
}

.plans-hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 60px; align-items: center;
  max-width: 1160px; margin: 0 auto; width: 100%;
}

/* LEFT */
.plans-hero-left {}
.plans-hero .eyebrow { color: var(--accent2); }

.plans-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-pill); padding: 6px 14px;
  font-size: 0.72rem; color: rgba(255,255,255,0.6); letter-spacing: 0.06em;
  margin-bottom: 28px; flex-wrap: wrap;
}
.plans-hero-badge-dot { width: 6px; height: 6px; background: var(--accent2); border-radius: 50%; animation: heroBlink 1.8s ease-in-out infinite; }
@keyframes heroBlink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.plans-hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: 48px;
  line-height: 58px; letter-spacing: -0.02em;
  font-weight: 600; color: #fff;
  margin-bottom: 24px;
}
.plans-hero h1 em { font-style: italic; color: rgba(255,255,255,0.38); }
.plans-hero h1 .h1-orange { color: var(--accent2); font-style: normal; }

.plans-hero-sub {
  font-size: 1rem; color: rgba(255,255,255,0.42);
  max-width: 440px; line-height: 1.75; margin-bottom: 36px;
}

/* search bar */
.plans-search-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plans-search {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-pill); padding: 14px 20px;
  width: 100%; max-width: 380px;
  transition: border-color 0.2s, background 0.2s;
}
.plans-search:focus-within { background: rgba(255,255,255,0.11); border-color: rgba(255,255,255,0.3); }
.plans-search svg { flex-shrink: 0; }
.plans-search input {
  background: none; border: none; outline: none;
  font-family: 'Inter', sans-serif; font-size: 0.9rem;
  color: #fff; width: 100%;
}
.plans-search input::placeholder { color: rgba(255,255,255,0.32); }
.plans-search-clear {
  background: rgba(255,255,255,0.15); border: none; border-radius: 50%;
  width: 22px; height: 22px; display: none; align-items: center;
  justify-content: center; cursor: pointer; color: #fff; font-size: 0.7rem;
  flex-shrink: 0; transition: background 0.2s;
}
.plans-search-clear.show { display: flex; }
.plans-search-clear:hover { background: rgba(255,255,255,0.25); }


/* hero stat bar */
.plans-hero-stats {
  display: flex; align-items: center; gap: 0;
  margin-top: 52px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.plans-hero-stat { flex: 1; }
.plans-hero-stat + .plans-hero-stat { padding-left: 28px; border-left: 1px solid rgba(255,255,255,0.08); }
.plans-hero-stat-num {
  font-family: 'Inter', sans-serif;
  font-size: 1.8rem; color: #fff; line-height: 1; margin-bottom: 4px;
}
.plans-hero-stat-label { font-size: 0.72rem; color: rgba(255,255,255,0.38); line-height: 1.4; }

/* RIGHT: floating destination cards */
.plans-hero-right {
  position: relative; height: 480px;
}

.hdc { /* hero destination card */
  position: absolute;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 16px 18px;
  backdrop-filter: blur(12px);
  display: flex; align-items: center; gap: 12px;
  transition: transform 0.3s ease;
  animation: hdcFloat var(--dur, 6s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes hdcFloat {
  0%,100% { transform: translateY(0px) rotate(var(--rot, 0deg)); }
  50%      { transform: translateY(-12px) rotate(var(--rot, 0deg)); }
}
.hdc:hover { transform: translateY(-4px) scale(1.03) !important; }

.hdc--uk   { top: 10%;  left: 8%;  --rot: -2deg; --delay:0s;   --dur:5.5s; }
.hdc--it   { top: 28%;  right: 4%; --rot:  2deg; --delay:0.8s; --dur:6s; }
.hdc--us   { top: 45%;  left: 2%;  --rot: -1deg; --delay:1.4s; --dur:6.8s; }
.hdc--jp   { top: 65%;  right: 10%;--rot:  3deg; --delay:0.4s; --dur:5.8s; }
.hdc--fr   { top: 84%;  left: 10%; --rot: -1.5deg; --delay:1s; --dur:6.2s; }

.hdc-flag { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: center; box-shadow: 0 2px 8px rgba(0,0,0,0.3); flex-shrink: 0; }
.hdc-info {}
.hdc-name  { font-size: 0.82rem; font-weight: 600; color: #fff; margin-bottom: 2px; }
.hdc-from  { font-size: 0.68rem; color: rgba(255,255,255,0.45); }
.hdc-from strong { color: rgba(255,255,255,0.85); font-weight: 600; }

/* big central globe ring */
.hero-globe-ring {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 300px; height: 300px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  pointer-events: none;
}
.hero-globe-ring::before {
  content: '';
  position: absolute; inset: 24px; border-radius: 50%;
  border: 1px solid rgba(232,80,26,0.15);
}
.hero-globe-ring::after {
  content: '';
  position: absolute; inset: 56px; border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.06);
  animation: spin 22s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* orange arc on ring */
.hero-globe-arc {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 300px; height: 300px;
}

/* bottom wave transition */
.plans-hero-wave {
  position: absolute; bottom: -1px; left: 0; right: 0; z-index: 3;
  line-height: 0;
}
.plans-hero-wave svg { display: block; width: 100%; }

/* ── RESPONSIVE HERO ── */
@media (max-width: 900px) {
  .plans-hero { padding: 100px 24px 60px; min-height: auto; }
  .plans-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .plans-hero-right { display: none; }
  .plans-hero h1 { font-size: clamp(2.4rem, 8vw, 3.4rem); }
  .plans-search { width: 100%; }
  .plans-hero-stats { gap: 0; }
}
@media (max-width: 400px) {
  .plans-hero { 
    padding: 90px 16px 48px; 
  }
  .plans-hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  /* remove the left border dividers in grid layout */
  .plans-hero-stat + .plans-hero-stat {
    padding-left: 0;
    border-left: none;
  }
}


/* ── FILTER TABS ── */
.plans-filter-section {
    margin-top: 15px;
    padding: 0 40px 48px;
    background: var(--bg);
}
.plans-filter-inner { max-width: 1060px; margin: 0 auto; }
.plans-tabs {
  display: flex; align-items: center; gap: 4px; margin-bottom: 28px;
}
.plans-tab {
  padding: 8px 22px; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; background: transparent;
  font-family: 'Inter', sans-serif; font-size: 0.875rem;
  font-weight: 400; color: var(--muted); cursor: pointer;
  transition: border-color 0.2s, color 0.2s, font-weight 0.1s;
}
.plans-tab.active { border-color: var(--fg); color: var(--fg); font-weight: 600; }

/* sort + count row */
.plans-meta-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.plans-count { font-size: 0.83rem; color: var(--muted); }
.plans-count strong { color: #111; }
.plans-sort-wrap { display: flex; align-items: center; gap: 8px; }
.plans-sort-label { font-size: 0.8rem; color: var(--muted); }
.plans-sort {
  background: #fff; border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px; padding: 6px 28px 6px 10px;
  font-family: 'Inter', sans-serif; font-size: 0.8rem; font-weight: 500;
  color: var(--fg); outline: none; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; background-size: 10px;
}

/* ── PLANS GRID ── */
.plans-grid-section { padding: 0 40px 100px; background: var(--bg); }
.plans-grid-inner { max-width: 1060px; margin: 0 auto; }
.plans-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.plan-card {
  background: #fff; border-radius: var(--radius-card);
  border: 1px solid rgba(0,0,0,0.07);
  padding: 20px 18px 18px;
  display: flex; flex-direction: column; gap: 0;
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer; position: relative;
  animation: cardIn 0.4s ease both;
}
@keyframes cardIn { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
.plan-card:hover { transform: translateY(-5px); box-shadow: 0 18px 50px rgba(0,0,0,0.10); }

.plan-card-flag {
  width: 38px; height: 38px; border-radius: 50%;
}
.plan-card-flag-placeholder {
  width: 44px; height: 44px; border-radius: 50%;
  background: #ffffff; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  overflow: hidden; object-fit: contain;
}

.plan-card-name {
  font-weight: 600; font-size: 0.92rem; margin-bottom: 4px; color: #111;
}
.plan-card-region {
  font-size: 0.72rem; color: var(--muted); margin-bottom: 14px;
}
.plan-card-price-row {
  display: flex; align-items: baseline; gap: 4px; margin-bottom: 16px;
}
.plan-card-from { font-size: 0.72rem; color: var(--muted); }
.plan-card-price { font-family: 'Inter', sans-serif; font-size: 1.5rem; color: #111; letter-spacing: -0.02em; }
.plan-card-unit  { font-size: 0.72rem; color: var(--muted); }

.plan-card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 16px; }
.plan-tag {
  font-size: 0.65rem; font-weight: 500; padding: 3px 9px;
  border-radius: 999px; background: #f5f5f2; color: #555;
}
.plan-tag--speed {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.plan-card-btn {
  width: 100%;
  padding: 10px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: auto;

  /* needed for the wipe effect */
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform: translate3d(0, 0, 0);

  /* only transition color, not background */
  transition: color 0.35s ease;

  -webkit-font-smoothing: antialiased;
}

/* the wipe layer */
.plan-card-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #00C38E; 
  transform-origin: bottom;
  transform: translateZ(0) scaleY(0);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: -1;
}

.plan-card-btn:hover::before {
  transform: translateZ(0) scaleY(1);
}

.plan-card-btn:hover {
  color: #fff; /* keep white, or change to #111 if you use a light fill */
}

/* popular badge */
.plan-card-popular {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--accent2); color: #fff; border-radius: 999px;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 4px 12px; white-space: nowrap;
}
.plan-card.is-popular { border-color: var(--accent2); border-width: 1.5px; }

/* no results */
.plans-empty {
  display: none; text-align: center; padding: 80px 20px;
  grid-column: 1 / -1;
}
.plans-empty.show { display: block; }
.plans-empty h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.plans-empty p  { font-size: 0.85rem; color: var(--muted); }

/* ── PLAN DETAIL MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px); z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff; border-radius: 24px; width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-head {
  padding: 24px 24px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.modal-close {
  width: 32px; height: 32px; border-radius: 50%; background: #f5f5f2;
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #888; transition: background 0.2s;
}
.modal-close:hover { background: #eee; }
.modal-body { padding: 20px 24px 28px; }

.modal-flag-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.modal-flag { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 2px 10px rgba(0,0,0,0.12); }
.modal-flag-placeholder { width: 52px; height: 52px; border-radius: 50%; background: #f0f0ee; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.modal-name { font-family: 'Inter', sans-serif; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1; }
.modal-region-label { font-size: 0.78rem; color: var(--muted); margin-top: 3px; }

/* plan size selector */
.modal-sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.modal-size-btn {
  padding: 8px 16px; border-radius: 10px; border: 1.5px solid rgba(0,0,0,0.12);
  background: #fff; font-family: 'Inter', sans-serif; font-size: 0.82rem;
  font-weight: 500; color: #555; cursor: pointer; transition: all 0.18s;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.modal-size-btn .size-gb   { font-weight: 700; font-size: 0.95rem; color: #111; }
.modal-size-btn .size-days { font-size: 0.68rem; color: var(--muted); }
.modal-size-btn .size-price { font-size: 0.75rem; font-weight: 600; color: var(--accent2); }
.modal-size-btn.active { border-color: #111; background: #111; }
.modal-size-btn.active .size-gb, .modal-size-btn.active .size-days, .modal-size-btn.active .size-price { color: #fff; }

.modal-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.modal-feature {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem; color: #444;
}
.modal-feature svg { flex-shrink: 0; }

.modal-total-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; background: #f8f8f6; border-radius: 12px; margin-bottom: 16px;
}
.modal-total-label { font-size: 0.82rem; color: var(--muted); }
.modal-total-price { font-family: 'Inter', sans-serif; font-size: 2rem; letter-spacing: -0.03em; color: #111; }
.modal-total-sub   { font-size: 0.88rem; color: var(--muted); text-align: right; }

.modal-buy-btn {
  width: 100%;
  padding: 14px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;

  /* wipe setup */
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform: translate3d(0, 0, 0);
  transition: color 0.35s ease;
  -webkit-font-smoothing: antialiased;
}

.modal-buy-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #00C38E;
  transform-origin: bottom;
  transform: translateZ(0) scaleY(0);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: -1;
}

.modal-buy-btn:hover::before {
  transform: translateZ(0) scaleY(1);
}

.modal-buy-btn:hover {
  color: #fff;
}

/* keep the icon above the wipe layer */
.modal-buy-icon {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

/* ── Load More ── */
.plans-load-more {
  display: flex;
  justify-content: center;
  padding: 2.5rem 0 1rem;
}
 
.plans-load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  border: 1.5px solid #00C38E;
  background: transparent;
  color: #00C38E;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;

  /* wipe setup */
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform: translate3d(0, 0, 0);
  transition: color 0.35s ease;
  -webkit-font-smoothing: antialiased;
}

.plans-load-more-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #00C38E;
  transform-origin: bottom;
  transform: translateZ(0) scaleY(0);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: -1;
}

.plans-load-more-btn:hover::before {
  transform: translateZ(0) scaleY(1);
}

.plans-load-more-btn:hover {
  color: #fff;
}

/* ── WHY MARS STRIP ── */
.why-strip {
  padding: 70px 40px;
  background: #111;
  display: flex; justify-content: center;
}
.why-strip-inner {
  max-width: 1060px; width: 100%;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255,255,255,0.08); border-radius: 20px; overflow: hidden;
}
.why-item {
  background: #111; padding: 32px 24px; color: #00C38E;
  display: flex; flex-direction: column; gap: 10px; text-align: left;
}
.why-item-icon {
  width: 40px; height: 40px; border-radius: 10px; color: #00C38E;
  background: rgba(0,195,142,0.12); display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.why-item-icon svg{
  stroke: #00C38E;
}
.why-item h4 { font-size: 0.9rem; font-weight: 600; color: #fff; }
.why-item p  { font-size: 0.78rem; color: rgba(255,255,255,0.42); line-height: 1.6; }

/* ── HOW IT WORKS ── */
.how-section { padding: 90px 40px; background: #fff; }
.how-inner   { max-width: 860px; margin: 0 auto; }

.how-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.how-steps::before {
  content: '';
  position: absolute; top: 28px; left: 12%; right: 12%; height: 1px;
  background: rgba(0,0,0,0.1); z-index: 0;
}
.how-step {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center; padding: 0 16px; position: relative; z-index: 1;
}
.how-step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg); border: 2px solid rgba(0,0,0,0.1);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif; font-size: 1.2rem; color: #111;
  transition: background 0.3s, border-color 0.3s;
}
.how-step.done .how-step-num { background: #111; border-color: #111; color: #fff; }
.how-step h4 { font-size: 0.88rem; font-weight: 600; }
.how-step p  { font-size: 0.78rem; color: var(--muted); line-height: 1.55; }



/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .plans-hero { padding: 110px 24px 60px; }
  .plans-search { width: 100%; max-width: 380px; }
  .plans-filter-section { padding: 0 24px 40px; }
  .plans-grid-section { padding: 0 24px 80px; }
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .why-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .how-section { padding: 60px 24px; }
  .how-steps { grid-template-columns: 1fr 1fr; gap: 32px; }
  .how-steps::before { display: none; }
  
}

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

/* regional and global cards */
/* ══════════════════════════════════════════
   REGIONAL CARD
══════════════════════════════════════════ */
.plan-card--regional {
  position: relative;
}

.regional-card-emoji {
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 0.75rem;
  display: block;
}

/* ══════════════════════════════════════════
   GLOBAL CARD
══════════════════════════════════════════ */
.plan-card--global {
  position: relative;
}

.global-card-emoji {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.6rem;
  display: block;
}

/* ══════════════════════════════════════════
   MODAL — REGIONAL SEGMENTED PLAN LIST
   GB group header + local-style size buttons
══════════════════════════════════════════ */
.regional-plan-segments {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.regional-plan-segments::-webkit-scrollbar { width: 4px; }
.regional-plan-segments::-webkit-scrollbar-track { background: transparent; }
.regional-plan-segments::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 99px; }

.segment-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.segment-header {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #94a3b8;
  padding: 0 0.25rem;
}

.segment-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* ══════════════════════════════════════════
   TBA BADGE
══════════════════════════════════════════ */
.tba-badge {
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
  background: #f1f5f9;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

/* ══════════════════════════════════════════
   MODAL — COUNTRY PILLS
   Custom scrollbar matches the plans section
══════════════════════════════════════════ */
.modal-country-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.25rem 0.25rem 0.25rem 0;
  max-height: 140px;
  overflow-y: auto;
}

.modal-country-pills::-webkit-scrollbar { width: 4px; }
.modal-country-pills::-webkit-scrollbar-track { background: transparent; }
.modal-country-pills::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 99px; }

.country-pill {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 0.72rem;
  color: #475569;
  white-space: nowrap;
}

/* ══════════════════════════════════════════
   MODAL — GLOBAL SUMMARY TAGS
══════════════════════════════════════════ */
.global-modal-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.global-modal-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid #00c38e;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #00C38E;
}

/* ══════════════════════════════════════════
   MODAL — REGION EMOJI HEADER
══════════════════════════════════════════ */
.modal-region-emoji {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   MODAL — PREVENT SCROLL CHAINING
   When the modal's inner scrollable areas
   reach their end, stop the scroll event
   from bubbling up to the page behind it.
══════════════════════════════════════════ */
.modal {
  overscroll-behavior: contain;
}

/* ── Country search bar (regional + global tabs) ── */
#country-search-wrap {
  padding: 14px 0 4px;
}
 
.country-search-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 999px;
  padding: 11px 18px;
  max-width: 420px;
  transition: border-color 0.2s;
}
 
.country-search-inner:focus-within {
  border-color: #111;
}
 
.country-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: #111;
  background: none;
}
 
.country-search-input::placeholder {
  color: #bbb;
}
 
.country-search-clear {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  padding: 0;
  transition: color 0.15s;
  flex-shrink: 0;
}
 
.country-search-clear.show {
  display: flex;
}
 
.country-search-clear:hover {
  color: #111;
}
 
/* match hint shown on cards when country search is active */
.plan-card-match-hint {
  font-size: 0.7rem;
  color: var(--accent2, #00C38E);
  font-weight: 500;
  margin-bottom: 4px;
  line-height: 1.4;
}

.regional-card-image {
  width: 162px;
  height: 93px;
  object-fit: contain;
  margin-bottom: 14px;
}

.modal-region-image {
  width: 162px;
  height: 93px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ── Hero & hdc animation extractions ── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.plans-hero-badge  { animation: fadeSlideUp 0.7s ease both; }
.plans-hero-left h1 { animation: fadeSlideUp 0.7s 0.08s ease both; }
.plans-hero-sub    { animation: fadeSlideUp 0.7s 0.18s ease both; }
.plans-search-wrap { animation: fadeSlideUp 0.7s 0.28s ease both; }
.plans-hero-stats  { animation: fadeSlideUp 0.7s 0.38s ease both; }
.hdc--uk { animation: fadeSlideUp 0.7s 0.3s  ease both, hdcFloat 5.5s 0.3s  ease-in-out infinite; }
.hdc--it { animation: fadeSlideUp 0.7s 0.42s ease both, hdcFloat 6s   0.8s  ease-in-out infinite; }
.hdc--us { animation: fadeSlideUp 0.7s 0.5s  ease both, hdcFloat 6.8s 1.4s  ease-in-out infinite; }
.hdc--jp { animation: fadeSlideUp 0.7s 0.58s ease both, hdcFloat 5.8s 0.4s  ease-in-out infinite; }
.hdc--fr { animation: fadeSlideUp 0.7s 0.64s ease both, hdcFloat 6.2s 1s    ease-in-out infinite; }
#load-more-btn { display: none; }
.how-steps .how-step:nth-child(2) { transition-delay: 0.1s; }
.how-steps .how-step:nth-child(3) { transition-delay: 0.2s; }
.how-steps .how-step:nth-child(4) { transition-delay: 0.3s; }