:root {
  --ink: #1a221e;
  --muted: #4a5a52;
  --teal: #2f8f7f;
  --teal-soft: #7ebfb2;
  --foam: #e8f3ef;
  --mist: #f3f7f4;
  --sand: #eef2ea;
  --glow: rgba(47, 143, 127, 0.28);
  --radius: 16px;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 700px at 12% -10%, #d7ece6 0%, transparent 55%),
    radial-gradient(900px 600px at 92% 8%, #cfe4dd 0%, transparent 50%),
    linear-gradient(165deg, var(--mist) 0%, var(--sand) 48%, #d9ebe4 100%);
  overflow-x: hidden;
  width: 100%;
}

/* Language flags: mobile top row (exactly one line), desktop centered strip */
.lang-bar-mobile {
  position: relative;
  z-index: 3;
  padding: 0.38rem clamp(0.35rem, 1.8vw, 1.25rem);
  border-bottom: 1px solid rgba(26, 34, 30, 0.08);
  background: rgba(243, 247, 244, 0.92);
  backdrop-filter: blur(8px);
  max-width: 100%;
  overflow-x: hidden;
}
.lang-bar-inner {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 2px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 2px;
  overflow: hidden;
}
.lang-bar-inner button,
.lang-flags button {
  background: none;
  border: none;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.02rem;
  opacity: 0.48;
  filter: grayscale(0.12);
  transition: opacity 0.15s ease, transform 0.15s ease, filter 0.15s ease;
  flex: 0 0 auto;
}
.lang-bar-inner button {
  /* Grow to fill the row; clamp keeps all flags on one line with tight gaps */
  flex: 1 1 0;
  min-width: 0;
  padding: 0.28rem 0;
  font-size: clamp(1.05rem, 4.8vw, 1.45rem);
  text-align: center;
}
.lang-bar-inner button:hover,
.lang-flags button:hover {
  opacity: 0.88;
  filter: none;
}
.lang-bar-inner button.active,
.lang-flags button.active {
  opacity: 1;
  filter: none;
  transform: scale(1.12);
}
.site-lang-desktop {
  display: none;
  position: relative;
  z-index: 3;
  padding: 0.55rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid rgba(26, 34, 30, 0.08);
  background: rgba(243, 247, 244, 0.75);
  backdrop-filter: blur(8px);
}
.lang-flags {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  /* Same overall strip width as before; more flags = tighter gaps */
  width: min(100%, 22.5rem);
  max-width: 100%;
  margin: 0 auto;
  gap: 0.08rem;
}
.lang-flags button {
  flex: 1 1 0;
  min-width: 0;
  font-size: 1.2rem;
  padding: 0.12rem 0;
  text-align: center;
}
@media (min-width: 720px) {
  .lang-bar-mobile { display: none; }
  .site-lang-desktop { display: block; }
}
html[dir="rtl"] .lang-bar-inner,
html[dir="rtl"] .lang-flags {
  flex-direction: row;
}

body.home {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body.home .hero {
  flex: 1 1 auto;
  min-height: 0;
  padding: clamp(1rem, 3vw, 2.25rem) clamp(1.5rem, 4vw, 3rem);
}

body.home .hero-inner {
  transform: translateY(-20px);
  gap: 1rem;
}

/* Eyebrow ($2.99…): shrink gap above + below by 15% (home gap 1rem + brand mb 0.15rem) */
body.home .eyebrow,
body[data-page="home"] .eyebrow {
  margin-top: -0.1725rem;
  margin-bottom: -0.15rem;
}

/*
 * Shared intrinsic column: width from English H1 measure (max-content),
 * brand left-aligned in that column; column itself centered by .hero.
 */
.home-column {
  width: max-content;
  max-width: 100%;
  align-items: flex-start;
}

/* Zero-height copy of home title measure - locks auth column width without shifting logo Y */
.auth-width-measure {
  display: block;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 4.2vw, 1.7rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

/* Mobile: brand lockup full column width (still no expand via intrinsic img) */
@media (max-width: 719px) {
  body[data-page="home"] .brand,
  body[data-page="account"] .brand {
    margin-top: 6px;
    padding-bottom: 0;
    overflow: visible;
    width: 0;
    min-width: 100%;
  }

  /* Eyebrow gaps -15% on top of prior mobile logo→eyebrow tighten */
  body.home .eyebrow,
  body[data-page="home"] .eyebrow {
    margin-top: -0.30rem;
    margin-bottom: -0.15rem;
  }

  body.home .hero,
  body.account .hero {
    overflow: visible;
  }

  body.home .hero-inner,
  body.account .hero-inner.account-shell {
    overflow: visible;
  }

  /* Account hero otherwise uses larger top padding and transform:none - align to home */
  body.account .hero {
    padding-top: clamp(1rem, 3vw, 2.25rem);
  }

  body.account .hero-inner.account-shell {
    transform: translateY(-20px);
  }

  /*
   * Auth only: same measured column as home (not a fixed rem / centered brand).
   * Dashboard (:not([data-auth="1"])) stays full-width shell.
   */
  body[data-page="account"][data-auth="1"] .hero,
  body.account[data-auth="1"] .hero {
    padding-left: clamp(1.5rem, 4vw, 3rem) !important;
    padding-right: clamp(1.5rem, 4vw, 3rem) !important;
    justify-content: center !important;
    align-items: center !important;
  }

  body[data-page="account"][data-auth="1"] .shell,
  body[data-page="account"][data-auth="1"] .hero-inner.account-shell,
  body.account[data-auth="1"] .shell,
  body.account[data-auth="1"] .hero-inner.account-shell {
    width: max-content !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    min-width: 0 !important;
    flex: 0 1 auto !important;
    align-self: center !important;
    align-items: flex-start !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  body[data-page="account"][data-auth="1"] .brand,
  body.account[data-auth="1"] .brand {
    align-self: flex-start !important;
  }

  /* Fill measured column without expanding it (same pattern as .offer children) */
  body[data-page="account"][data-auth="1"] .account-card,
  body[data-page="account"][data-auth="1"] .account-form,
  body.account[data-auth="1"] .account-card,
  body.account[data-auth="1"] .account-form {
    width: 0 !important;
    min-width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }

  /* Auth titles = home .hero-title */
  body[data-page="account"][data-auth="1"] #auth-title,
  body.account[data-auth="1"] #auth-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.05rem, 4.2vw, 1.7rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
  }

  /* Auth lede = home .lede (undo prior 0.9rem shrink) */
  body[data-page="account"][data-auth="1"] #auth-lede,
  body.account[data-auth="1"] #auth-lede {
    font-size: clamp(1.02rem, 2.2vw, 1.15rem);
    line-height: 1.55;
    font-weight: 500;
    white-space: normal;
  }

  /* Auth bubbles = home Register (.home-auth-btn) radius + vertical size */
  body[data-page="account"][data-auth="1"] .account-form .account-label input,
  body.account[data-auth="1"] .account-form .account-label input,
  body[data-page="account"][data-auth="1"] .account-form > .account-btn,
  body.account[data-auth="1"] .account-form > .account-btn {
    border-radius: 12px;
    padding: 0.72rem 1.25rem;
    line-height: 1.2;
    box-sizing: border-box;
  }

  body[data-page="account"][data-auth="1"] .account-form > .account-btn,
  body.account[data-auth="1"] .account-form > .account-btn {
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-display);
  }

  body[data-page="account"][data-auth="1"] .account-form .account-label input,
  body.account[data-auth="1"] .account-form .account-label input {
    font-size: 16px; /* keep iOS from zooming */
  }
}

/*
 * Desktop auth: same measured column + fixed logo Y (top-pinned, not vertically centered).
 * Home: padding clamp(1rem, 3vw, 2.25rem) / clamp(1.5rem, 4vw, 3rem),
 *        hero-inner translateY(-20px), no brand margin-top.
 * Dashboard (:not([data-auth="1"])) keeps account-shell 520px + larger padding.
 */
@media (min-width: 720px) {
  body[data-page="account"][data-auth="1"] .hero,
  body.account[data-auth="1"] .hero {
    padding: clamp(1rem, 3vw, 2.25rem) clamp(1.5rem, 4vw, 3rem) !important;
    justify-content: center !important;
    align-items: center !important;
  }

  body[data-page="account"][data-auth="1"] .shell,
  body[data-page="account"][data-auth="1"] .hero-inner.account-shell,
  body.account[data-auth="1"] .shell,
  body.account[data-auth="1"] .hero-inner.account-shell {
    width: max-content !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    min-width: 0 !important;
    flex: 0 1 auto !important;
    align-self: center !important;
    align-items: flex-start !important;
    box-sizing: border-box !important;
    transform: translateY(-20px) !important;
    overflow: visible !important;
  }

  body[data-page="account"][data-auth="1"] .brand,
  body.account[data-auth="1"] .brand {
    align-self: flex-start !important;
    margin-top: 0 !important;
  }

  body[data-page="account"][data-auth="1"] .account-card,
  body[data-page="account"][data-auth="1"] .account-form,
  body.account[data-auth="1"] .account-card,
  body.account[data-auth="1"] .account-form {
    width: 0 !important;
    min-width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }

  /* Auth titles = home .hero-title (desktop) */
  body[data-page="account"][data-auth="1"] #auth-title,
  body.account[data-auth="1"] #auth-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.05rem, 4.2vw, 1.7rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
  }

  /* One-line lede in measured home column; sized for longest DE/FR strings */
  body[data-page="account"][data-auth="1"] #auth-lede,
  body.account[data-auth="1"] #auth-lede {
    font-size: clamp(0.68rem, 1.05vw, 0.72rem);
    line-height: 1.35;
    font-weight: 500;
    white-space: nowrap;
    max-width: 100%;
  }

  body[data-page="account"][data-auth="1"] .account-form .account-label input,
  body.account[data-auth="1"] .account-form .account-label input,
  body[data-page="account"][data-auth="1"] .account-form > .account-btn,
  body.account[data-auth="1"] .account-form > .account-btn {
    border-radius: 12px;
    padding: 0.72rem 1.25rem;
    line-height: 1.2;
    box-sizing: border-box;
  }

  body[data-page="account"][data-auth="1"] .account-form > .account-btn,
  body.account[data-auth="1"] .account-form > .account-btn {
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-display);
  }
}

/* Auth inputs: horizontal inset so typed text clears border-radius (desktop + mobile) */
body[data-page="account"][data-auth="1"] .account-form .account-label input,
body.account[data-auth="1"] .account-form .account-label input {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  -webkit-appearance: none;
  appearance: none;
}

/* Auth: same vertical centering as home. Lock card height so logo Y
   does not jump when switching sign-in / register / forgot. */
body[data-page="account"][data-auth="1"] .hero.account-hero,
body.account[data-auth="1"] .hero.account-hero,
body[data-page="account"][data-auth="1"] .hero,
body.account[data-auth="1"] .hero {
  align-items: center;
}

body[data-page="account"][data-auth="1"] .hero-inner.account-shell,
body.account[data-auth="1"] .hero-inner.account-shell {
  align-self: center;
  gap: 0.575rem;
}

/* Tallest auth mode (register); shorter modes keep this height → stable logo */
body[data-page="account"][data-auth="1"] #view-auth,
body.account[data-auth="1"] #view-auth {
  min-height: 22.5rem;
  box-sizing: border-box;
}

@media (min-width: 720px) {
  body[data-page="account"][data-auth="1"] #view-auth,
  body.account[data-auth="1"] #view-auth {
    min-height: 21rem;
  }
}

body[data-page="account"][data-auth="1"] .brand,
body.account[data-auth="1"] .brand {
  margin-bottom: 0.175rem;
}

body[data-page="account"][data-auth="1"] .account-card,
body.account[data-auth="1"] .account-card {
  margin-top: 0.25rem;
}

body.home .site-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 0.35rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
}

body.account {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body.account .hero {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  /* visible on both axes - overflow-x:hidden alone computes overflow-y to auto and clips brand */
  overflow: visible;
  /* Match home side inset */
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1.25rem, 4vw, 1.5rem) 2rem;
}

body.account .site-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 0.35rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
}

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

[hidden] {
  display: none !important;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite alternate;
}

.blob-a {
  width: min(52vw, 520px);
  height: min(52vw, 520px);
  background: var(--glow);
  top: -8%;
  right: -6%;
}

.blob-b {
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  background: rgba(126, 191, 178, 0.35);
  bottom: -12%;
  left: -8%;
  animation-duration: 22s;
  animation-direction: alternate-reverse;
}

.waves {
  position: absolute;
  inset: auto 0 0 0;
  height: 220px;
  background:
    radial-gradient(ellipse 70% 90% at 50% 100%, transparent 42%, rgba(47, 143, 127, 0.07) 43%, transparent 46%),
    radial-gradient(ellipse 85% 100% at 50% 100%, transparent 48%, rgba(47, 143, 127, 0.06) 49%, transparent 52%),
    radial-gradient(ellipse 100% 110% at 50% 100%, transparent 54%, rgba(47, 143, 127, 0.05) 55%, transparent 58%);
  opacity: 0.9;
  animation: pulse-waves 4.5s ease-in-out infinite;
}

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  width: 100%;
  animation: rise 0.9s ease-out both;
  /* Do not use overflow-x:hidden here - it forces overflow-y to auto/clip and shaves the logo */
  overflow: visible;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.15rem;
  width: max-content;
  max-width: 100%;
  transform: translateY(-30px);
  overflow: visible;
}

/* width:0 + min-width:100% = fill home-column without expanding max-content
   (intrinsic PNG must not drive column wider than offer / auth buttons) */
.brand {
  display: block;
  width: 0;
  min-width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  margin-bottom: 0.15rem;
  padding-bottom: 0;
  overflow: visible;
  line-height: 0;
}

/* Display width = 105% of column (= slightly wider than Register / Sign-in). File pixels untouched. */
.brand-logo {
  display: block;
  width: 105%;
  height: auto;
  max-width: none;
  background: transparent;
  object-fit: contain;
  object-position: left center;
  transform: translateX(-7px);
}

/* Legacy text mark (unused on main pages; keep for safety) */
.brand-mark {
  display: block;
  width: clamp(4.55rem, 12.8vw, 5.9rem);
  height: auto;
  background: transparent;
  object-fit: contain;
}

.brand-name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.02em;
  font-family: var(--font-display);
  line-height: 0.92;
}

.brand-panda {
  font-weight: 800;
  font-size: clamp(2.15rem, 7.2vw, 3.35rem);
  letter-spacing: -0.055em;
  color: var(--ink);
}

.brand-esim {
  font-weight: 700;
  font-size: clamp(1.35rem, 4.4vw, 1.95rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-left: 5px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--teal);
  /* Stretch to hero-inner width; do not expand it when translations are longer */
  width: 0;
  min-width: 100%;
  box-sizing: border-box;
}

/* sk/cs/es/fr eyebrow strings are longer than EN; shrink only on mobile so one line fits */
@media (max-width: 640px) {
  html[lang="sk"] .eyebrow,
  html[lang="cs"] .eyebrow,
  html[lang="es"] .eyebrow,
  html[lang="fr"] .eyebrow {
    white-space: nowrap;
    font-size: 0.86rem;
    letter-spacing: -0.02em;
  }
}

.pulse {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--teal);
}

h1,
.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 4.2vw, 1.7rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
  white-space: nowrap;
}

.hero-title {
  position: relative;
  display: block;
}

.hero-title-measure {
  display: block;
  visibility: hidden;
  pointer-events: none;
}

.hero-title-label {
  position: absolute;
  inset: 0;
  display: block;
  white-space: nowrap;
}

.hero-title-label:not(.is-fitted) {
  visibility: hidden;
}

.hero-title-label.is-fitted {
  visibility: visible;
}

/* Straighter f/F in hero H1 only (Figtree); rest stays Bricolage Grotesque */
.hero-title-label .glyph-f {
  font-family: "Figtree", var(--font-display);
  font-weight: 700;
}

.offer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.15rem;
  width: max-content;
  max-width: 100%;
}

.offer .lede,
.offer .price-check,
.offer .home-cta-block {
  width: 0;
  min-width: 100%;
}

.home-cta-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  min-width: 0;
}

.home-auth-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.70rem;
  margin-top: -0.10rem;
  width: 100%;
}

.home-auth-btn {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0.72rem 1rem;
  border: 0;
  border-radius: 12px;
  background: var(--teal);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  line-height: 1.2;
}

.home-auth-btn:hover {
  filter: brightness(1.06);
}

.home-data-only-note {
  margin: 0.35rem 0 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (min-width: 521px) {
  .home-data-only-note {
    margin-top: 0.42rem;
  }

  .home-cta-block .store-row {
    margin-top: 0.54rem;
  }
}

.home-data-only-note--short {
  display: none;
}

.home-auth-btn:focus-visible {
  outline: 2px solid rgba(47, 143, 127, 0.45);
  outline-offset: 2px;
}

.store-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.70rem;
  margin-top: 0.45rem;
  width: 100%;
}

.store-badge {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  line-height: 0;
  border-radius: 16px;
  cursor: default;
  user-select: none;
}

a.store-badge {
  cursor: pointer;
  text-decoration: none;
}

a.store-badge:hover .store-badge-img,
a.store-badge:focus-visible .store-badge-img {
  opacity: 0.92;
}

span.store-badge[aria-disabled="true"] {
  opacity: 0.72;
}

.store-badge-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.lede {
  margin: 0;
  font-size: clamp(1.02rem, 2.2vw, 1.15rem);
  line-height: 1.45;
  color: var(--muted);
  font-weight: 500;
}

/* Tighten space between H1 and lede (offer gap is 1.15rem) */
.offer > .lede {
  margin-top: -0.115rem; /* -10% of 1.15rem */
}

.offer > .lede:not(.is-fitted) {
  visibility: hidden;
}

.offer > .lede.is-fitted {
  visibility: visible;
}

.offer > .lede .lede-line {
  display: block;
  box-sizing: border-box;
  white-space: nowrap;
  max-width: 100%;
}

/* Desktop: fill offer width */
@media (min-width: 521px) {
  .offer > .lede {
    min-height: 4.8em;
  }

  .offer > .lede .lede-line {
    width: 100%;
  }
}

.price-check {
  position: relative;
  margin-top: -0.345rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  flex-wrap: nowrap;
}

.price-label {
  flex: 0 0 auto;
  margin: 0;
  padding-top: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.price-check-col {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.price-check-row {
  display: flex;
  position: relative;
  width: 100%;
  flex-wrap: nowrap;
  align-items: stretch;
}

.price-check input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 2.55rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(26, 34, 30, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.price-check input::placeholder {
  color: #7a8a82;
}

.price-check input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(47, 143, 127, 0.18);
}

.suggestions {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0.35rem;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 5;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(26, 34, 30, 0.08);
  box-shadow: 0 12px 28px rgba(26, 34, 30, 0.1);
  max-height: 14rem;
  overflow: auto;
}

.suggestion {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
}

.suggestion:hover,
.suggestion:focus {
  background: rgba(47, 143, 127, 0.1);
  outline: none;
}

.suggestion-flag {
  font-size: 1.15rem;
  line-height: 1;
}

.price-result {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  animation: rise 0.35s ease-out both;
}

.price-flag {
  font-size: 1.85rem;
  line-height: 1;
}

.price-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.price-country {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.price-amount {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--teal);
}

.form-error {
  margin: 0;
  color: #a33b3b;
  font-weight: 600;
  font-size: 0.92rem;
}

.form-ok {
  margin: 0;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.92rem;
}

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

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-24px, 18px, 0) scale(1.06);
  }
}

@keyframes pulse-waves {
  0%,
  100% {
    opacity: 0.55;
    transform: translateY(0) scaleX(1);
  }
  50% {
    opacity: 0.95;
    transform: translateY(-6px) scaleX(1.02);
  }
}

@media (max-width: 520px) {
  body.home .hero-inner {
    transform: translateY(-10px);
  }

  body.account .hero-inner.account-shell {
    transform: translateY(-10px);
  }

  body.account[data-auth="1"] #auth-lede {
    font-size: clamp(1.02rem, 2.2vw, 1.15rem);
    line-height: 1.55;
    white-space: normal; /* nowrap was blowing the form wider than the iPhone viewport */
  }

  body.account[data-auth="1"] .account-form .account-label input,
  body.account[data-auth="1"] .account-form > .account-btn {
    padding: 0.66rem 1.2rem;
  }

  body.account[data-auth="1"] .account-form > .account-btn {
    font-size: 0.81rem;
  }

  .offer {
    width: 100%;
  }

  h1,
  .hero-title {
    white-space: normal;
  }

  .offer > .lede {
    margin-top: -0.322rem; /* was -20% of 1.15rem; another -10% of remaining */
  }

  .home-auth-actions,
  .store-row {
    gap: 0.35rem;
  }

  .home-auth-btn {
    padding: 0.66rem 0.7rem;
    font-size: 0.81rem;
  }

  .home-data-only-note--full {
    display: none;
  }

  .home-data-only-note--short {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: normal;
    word-break: normal;
    font-size: clamp(0.72rem, 3.55vw, 0.90rem);
  }

  .price-check {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  .price-label {
    padding-top: 0;
  }

  .price-check-col {
    width: 100%;
  }
}

.legal-page {
  overflow-x: hidden;
}

.legal {
  position: relative;
  z-index: 1;
  padding: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: 4rem;
  animation: rise 0.7s ease-out both;
}

.legal-inner {
  width: min(720px, 100%);
  margin: 0 auto;
}

.brand-compact {
  margin-bottom: 1.5rem;
  width: 0;
  min-width: min(100%, 22rem);
  max-width: min(100%, 22rem);
}

.brand-compact .brand-logo {
  width: 100%;
}

.brand-compact .brand-mark {
  width: 3.75rem;
}

.brand-compact .brand-panda {
  font-size: 1.85rem;
}

.brand-compact .brand-esim {
  font-size: 1.05rem;
}

.legal-title {
  white-space: normal;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  margin-bottom: 0.35rem;
}

.legal-updated {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-body {
  color: var(--ink);
  line-height: 1.6;
  font-size: 1rem;
}

.legal-body h2 {
  margin: 1.75rem 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.legal-body p,
.legal-body ul,
.legal-body ol {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.legal-body ul,
.legal-body ol {
  padding-left: 1.2rem;
}

.legal-body li {
  margin-bottom: 0.4rem;
}

.legal-body a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
}

.legal-body a:hover {
  text-decoration: underline;
}

.legal-body strong {
  color: var(--ink);
  font-weight: 700;
}

.legal-back {
  margin: 2.5rem 0 0;
}

.legal-back a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
}

.legal-back a:hover {
  text-decoration: underline;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 0 1.5rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.site-footer-links {
  display: flex;
  gap: 0.42rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.site-footer-links a + a::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.95em;
  margin-right: 0.42rem;
  background: rgba(26, 34, 30, 0.22);
  vertical-align: -0.1em;
}

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

.site-footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.85;
}

.account-hero {
  align-items: flex-start;
}

/* Logged-in account (dash + spend): keep logo at top - do not vertical-center short cards */
body.account:not([data-auth="1"]) .hero.account-hero,
body[data-page="account"]:not([data-auth="1"]) .hero.account-hero,
body.account:not([data-auth="1"]) .hero,
body[data-page="account"]:not([data-auth="1"]) .hero {
  align-items: flex-start !important;
}

body.account:not([data-auth="1"]) .hero-inner.account-shell,
body[data-page="account"]:not([data-auth="1"]) .hero-inner.account-shell {
  align-self: flex-start !important;
  gap: 0.575rem; /* half of default 1.15rem (logo → content) */
}

body.account:not([data-auth="1"]) .account-card,
body[data-page="account"]:not([data-auth="1"]) .account-card {
  margin-top: 0.25rem; /* half of 0.5rem */
}

.hero-inner.account-shell {
  width: 100%;
  max-width: 520px;
  min-width: 0;
  align-self: center;
  margin-inline: auto;
  box-sizing: border-box;
  /* Was overflow-x:hidden - that forced y-clip and shaved .brand-mark bottom */
  overflow: visible;
  transform: none;
}

.account-shell {
  width: 100%;
  max-width: 520px;
  min-width: 0;
  transform: none;
  box-sizing: border-box;
}

.account-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 0.5rem;
  box-sizing: border-box;
}

.account-card h1 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4vw, 1.9rem);
  letter-spacing: -0.03em;
}

.account-card h2,
.account-section-title {
  margin: 1.5rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
}

.account-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.15rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.account-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.account-label input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(26, 34, 30, 0.14);
  border-radius: 16px;
  padding: 0.8rem 0.95rem;
  font: inherit;
  font-size: 16px; /* iOS Safari zooms inputs under 16px and can leave the page horizontally scrolled */
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.account-label input:focus {
  outline: 2px solid rgba(47, 143, 127, 0.35);
  border-color: var(--teal);
}

.account-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 0.35rem;
  border: 0;
  border-radius: 16px;
  padding: 0.85rem 1.1rem;
  background: var(--ink);
  color: #f5faf7;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.account-btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(26, 34, 30, 0.2);
}

.account-btn:disabled {
  opacity: 0.55;
  cursor: default;
  background: #9aa3a0;
  color: #f5faf7;
}

.account-terms {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
}

.account-terms[hidden] {
  display: none !important;
}

.account-terms input {
  flex: 0 0 auto;
  width: 0.9rem;
  height: 0.9rem;
  margin: 0;
  accent-color: var(--teal);
  cursor: pointer;
}

.account-terms span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-terms a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.account-link-btn {
  margin-top: 0;
  border: 0;
  background: transparent;
  color: var(--teal);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.account-auth-links {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.85rem;
  width: 100%;
}

.account-auth-links .account-link-btn + .account-link-btn::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.95em;
  margin-right: 0.85rem;
  background: rgba(26, 34, 30, 0.22);
  vertical-align: -0.1em;
}

.account-auth-links.account-auth-links--solo {
  justify-content: center;
}

.account-auth-links.account-auth-links--solo .account-link-btn + .account-link-btn::before {
  display: none;
  margin: 0;
}

/* Auth mode toggle: one line on mobile; whole block centered, equal gap to divider */
@media (max-width: 719px) {
  .account-auth-links {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
  }

  .account-auth-links:not(.account-auth-links--solo) .account-link-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: clamp(0.64rem, 2.7vw, 0.78rem);
    line-height: 1.2;
    letter-spacing: -0.015em;
  }

  .account-auth-links:not(.account-auth-links--solo) .account-link-btn:first-child {
    padding-right: 0.45rem;
  }

  .account-auth-links:not(.account-auth-links--solo) .account-link-btn + .account-link-btn::before {
    margin-right: 0.45rem;
    margin-left: 0;
    height: 0.9em;
  }

  .account-auth-links.account-auth-links--solo .account-link-btn {
    white-space: nowrap;
    font-size: clamp(0.64rem, 2.7vw, 0.78rem);
  }

  html[lang="ja"] .account-auth-links .account-link-btn {
    font-size: clamp(0.58rem, 2.4vw, 0.72rem);
  }
}

.account-dash-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.account-balance-label {
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-weight: 600;
}

.account-balance {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, 2.8rem);
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.04em;
}

.account-spend-link-wrap {
  margin: 0.35rem 0 0;
}

.account-spend-link-wrap .account-link-btn {
  padding: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.account-spend-lede {
  margin: 0.45rem 0 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.account-spend-lede .spend-lede-line {
  display: block;
  white-space: nowrap;
}

.account-spend-months-wrap {
  margin: 1.15rem 0 0;
}

.account-spend-months-wrap .account-link-btn {
  padding: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.account-spend-row.is-month {
  cursor: pointer;
  border: 0;
  background: transparent;
  width: 100%;
  font: inherit;
  text-align: left;
}

.account-spend-list {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.account-spend-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--teal) 18%, transparent);
  font-weight: 600;
}

.account-spend-date {
  color: var(--ink);
}

.account-spend-amount {
  color: var(--teal);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.account-meta,
.account-status {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.account-topup-hint {
  margin: 0.35rem 0 0;
  width: 100%;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

.account-amounts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.85rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.account-alt-topup {
  margin: 0.5rem 0 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  color: var(--muted);
  font-size: clamp(0.65rem, 1.94vw, 0.82rem);
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.account-alt-topup a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 719px) {
  .account-alt-topup {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    font-size: clamp(0.82rem, 3.72vw, 0.96rem);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
}

.account-amount-btn {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(26, 34, 30, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 0.2rem;
  cursor: pointer;
  text-align: center;
}

.account-amount-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.account-esim-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.account-install-steps {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.account-install-steps li {
  margin: 0.25rem 0;
}

.account-install-steps strong {
  color: var(--ink);
  font-weight: 700;
}

.account-qr {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  margin: 1rem auto 0;
  background: #fff;
  border-radius: 16px;
  padding: 0.75rem;
}

.account-qr-wrap {
  margin: 1rem 0 0.5rem;
  text-align: center;
}

.account-qr-box {
  display: inline-block;
  padding: 0.75rem;
  background: #fff;
  border-radius: 16px;
  line-height: 0;
}

.account-qr-box img {
  display: block;
}

.account-qr-canvas {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 0.75rem;
  box-sizing: content-box;
}

#dash-install {
  display: inline-flex;
  margin: 0.75rem 0 0.25rem;
}

#dash-install[hidden] {
  display: none !important;
}

.account-manual {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line, #d5e0da);
}

.account-manual-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
}

.account-manual-lede {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.account-manual-label {
  display: block;
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.account-manual-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.3rem;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}

.account-manual-row input {
  flex: 1 1 auto;
  width: 0; /* take remaining row space; do not fight Copy button */
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line, #d5e0da);
  border-radius: 16px;
  font: inherit;
  font-size: 16px;
  background: #fff;
  color: var(--ink);
  box-sizing: border-box;
}

.account-copy-mini {
  flex: 0 0 auto;
  width: auto !important;
  max-width: none;
  padding: 0.55rem 0.85rem;
}

.account-delete-wrap {
  margin: 2.25rem 0 0;
  text-align: center;
}

.account-delete-link {
  border: 0;
  background: transparent;
  color: #8a6a6a;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.account-delete-link:hover {
  color: #a33b3b;
}

/* ---- Rates page ---- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Same column width as home: English H1 measure drives .home-column */
.rates-page .rates-hero {
  position: relative;
  z-index: 1;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 4vw, 1.5rem) 2.5rem;
}

.rates-page .rates-top {
  transform: translateY(-30px);
  margin-bottom: -30px;
}

.rates-page .rates-bottom {
  transform: none;
  margin-top: 0.25rem;
}

.rates-page .rates-width-lock {
  display: block;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 4.2vw, 1.7rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.rates-page .rates-title,
.rates-page .rates-lede,
.rates-page .rates-sub,
.rates-page .rates-search-label,
.rates-page .rates-back {
  width: 0;
  min-width: 100%;
  box-sizing: border-box;
}

/* Desktop: countries block matches narrow home-column width */
.rates-countries {
  width: max-content;
  max-width: 100%;
  box-sizing: border-box;
}

.rates-countries-inner {
  width: 0;
  min-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rates-countries .rates-status {
  width: 100%;
  box-sizing: border-box;
}

.rates-sub--short {
  display: none;
}

@media (max-width: 719px) {
  .rates-sub--full {
    display: none;
  }
  .rates-sub--short {
    display: block;
  }
}

.rates-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  /* ~half of original title size - keeps some space, shifts content partly up */
  font-size: clamp(0.8rem, 2.5vw, 1.05rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
  /* Hide label, keep (reduced) layout space */
  visibility: hidden;
}

.rates-lede {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

@media (min-width: 720px) {
  .rates-lede {
    font-size: 1.3125rem; /* +25% vs mobile 1.05rem */
  }
}

.rates-sub {
  margin: 0;
  /* Pull toward lede (another -20% of remaining gap) */
  margin-top: -0.635rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.rates-search-label {
  display: block;
  margin: 0;
}

.rates-search-label input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(26, 34, 30, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  outline: none;
}

.rates-search-label input:focus {
  border-color: rgba(47, 143, 127, 0.55);
  box-shadow: 0 0 0 3px rgba(47, 143, 127, 0.16);
}

.rates-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.rates-status.is-error {
  color: #a33b3b;
}

.rates-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rates-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(26, 34, 30, 0.08);
}

.rates-flag {
  font-size: 1.35rem;
  line-height: 1;
  width: 1.6rem;
  text-align: center;
}

.rates-name {
  min-width: 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.rates-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-align: right;
}

@media (max-width: 719px) {
  /* Second block only: full width country rows; top block stays narrow */
  .rates-countries {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
  }

  .rates-countries .rates-width-lock {
    display: none;
  }

  .rates-countries-inner {
    width: 100%;
    min-width: 0;
  }

  .rates-row {
    align-items: start;
  }

  .rates-flag {
    margin-top: 0.1rem;
  }

  .rates-name {
    font-size: 0.81rem; /* -19% vs desktop 1rem */
    white-space: normal;
  }

  .rates-price {
    margin-top: 0.05rem;
    font-size: 0.85rem; /* -19% vs desktop 1.05rem */
  }
}

.rates-back {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
}

.rates-back a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
}

.rates-back a:hover {
  text-decoration: underline;
}
