/* World Choir — Passport */

.passport-page {
  position: relative;
  z-index: 1;
  max-width: 100%;
  width: 100%;
  padding-top: max(20px, env(safe-area-inset-top, 0px));
}

.passport-page.is-entering .passport-card,
.passport-page.is-entering .passport-permanence,
.passport-page.is-entering .passport-stats,
.passport-page.is-entering .passport-actions,
.passport-page.is-entering .passport-journey-card {
  animation: passportEnter 0.42s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.passport-page.is-entering .passport-permanence { animation-delay: 0.06s; }
.passport-page.is-entering .passport-stats { animation-delay: 0.1s; }
.passport-page.is-entering .passport-actions { animation-delay: 0.14s; }
.passport-page.is-entering .passport-journey-card { animation-delay: 0.18s; }

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

/* Header */
.passport-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.passport-header__back {
  display: inline-flex;
  align-items: center;
  margin: 0 0 10px;
  padding: 0;
  border: none;
  background: none;
  color: var(--accent-aurora);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
}

.passport-header__title {
  font-size: clamp(2rem, 8vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.15;
  margin: 0;
}

.passport-header__subtitle {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text-secondary);
  max-width: 18em;
}

.passport-info-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  font-style: italic;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.passport-info-btn:hover,
.passport-info-btn:focus-visible {
  border-color: var(--border-glow);
  color: var(--text-primary);
  outline: none;
}

/* Passport card — physical document */
.passport-card-wrap {
  display: flex;
  justify-content: center;
  margin: 0 auto 20px;
}

.passport-card {
  position: relative;
  width: min(100%, 372px);
  aspect-ratio: 0.7;
  border-radius: 18px;
  overflow: hidden;
  color: var(--text-primary);
  background:
    radial-gradient(ellipse 78% 68% at 64% 40%, rgba(255, 255, 255, 0.038) 0%, transparent 58%),
    radial-gradient(ellipse 90% 80% at 50% 100%, rgba(0, 0, 0, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 50% 70% at 0% 50%, rgba(0, 0, 0, 0.22) 0%, transparent 70%),
    linear-gradient(155deg, rgba(18, 20, 30, 1) 0%, rgba(11, 12, 18, 1) 48%, rgba(7, 8, 12, 1) 100%);
  border: 1px solid rgba(140, 170, 200, 0.14);
  box-shadow:
    -3px 4px 16px rgba(0, 0, 0, 0.4),
    0 6px 18px rgba(0, 0, 0, 0.48),
    0 22px 52px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 var(--df-line),
    inset 0 -2px 8px rgba(0, 0, 0, 0.28),
    inset 2px 0 10px rgba(0, 0, 0, 0.16);
  transition: transform 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.passport-card:active {
  transform: scale(0.995);
}

.passport-card.is-inside:active {
  transform: none;
}

.passport-card.is-inside {
  background: #e6e4de;
  border-color: transparent;
  box-shadow:
    -3px 4px 16px rgba(0, 0, 0, 0.4),
    0 6px 18px rgba(0, 0, 0, 0.48),
    0 22px 52px rgba(0, 0, 0, 0.58);
}

/* Inside page uses its own full-bleed image — hide cover finish overlays */
.passport-card.is-inside .passport-card__lighting,
.passport-card.is-inside .passport-card__texture,
.passport-card.is-inside .passport-card__spine,
.passport-card.is-inside .passport-card__inset,
.passport-card.is-inside .passport-card__edge-light,
.passport-card.is-inside .passport-card__thickness {
  opacity: 0;
  pointer-events: none;
}

.passport-card__pages {
  position: relative;
  z-index: 1;
  height: 100%;
}

.passport-card__page {
  height: 100%;
}

.passport-card__page[hidden] {
  display: none !important;
}

.passport-card__page--inside {
  position: relative;
  overflow: hidden;
}

.passport-card__inside-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Soft center lighting falloff */
.passport-card__lighting {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 58% 38%, var(--surface-lift) 0%, transparent 62%),
    linear-gradient(180deg, var(--surface-lift-soft) 0%, transparent 28%, transparent 72%, rgba(0, 0, 0, 0.12) 100%);
}

/* Dual grain — premium cover material */
.passport-card__texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.065;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: soft-light;
}

.passport-card__texture--fine {
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.35' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  background-size: 90px 90px;
  mix-blend-mode: overlay;
}

/* Physical passport binding */
.passport-card__spine {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  bottom: 0;
  width: 36px;
  pointer-events: none;
  border-radius: 18px 0 0 18px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 7%,
    #000 93%,
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 7%,
    #000 93%,
    transparent 100%
  );
}

.passport-card__spine-band,
.passport-card__spine-edge,
.passport-card__spine-thickness,
.passport-card__spine-highlight,
.passport-card__spine-crease,
.passport-card__spine-seam,
.passport-card__spine-blur,
.passport-card__spine-shade,
.passport-card__spine-curve {
  position: absolute;
  top: 0;
  bottom: 0;
  pointer-events: none;
}

/* Darker binding zone (~16px) */
.passport-card__spine-band {
  left: 0;
  width: 16px;
  background: linear-gradient(
    90deg,
    rgba(3, 4, 8, 0.42) 0%,
    rgba(3, 4, 8, 0.28) 55%,
    rgba(3, 4, 8, 0.1) 85%,
    transparent 100%
  );
}

/* Outer cover edge */
.passport-card__spine-edge {
  left: 0;
  width: 4px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.18) 70%,
    transparent 100%
  );
}

/* Material thickness cue */
.passport-card__spine-thickness {
  left: 3px;
  width: 3px;
  background: linear-gradient(
    90deg,
    var(--surface-lift) 0%,
    transparent 100%
  );
}

/* Faint highlight before the fold */
.passport-card__spine-highlight {
  left: 9px;
  width: 1.5px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.14) 12%,
    var(--border-soft) 50%,
    rgba(255, 255, 255, 0.14) 88%,
    transparent 100%
  );
}

/* Recessed fold crease */
.passport-card__spine-crease {
  left: 11px;
  width: 1.5px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.42) 10%,
    rgba(0, 0, 0, 0.58) 50%,
    rgba(0, 0, 0, 0.42) 90%,
    transparent 100%
  );
}

/* Dark inner seam */
.passport-card__spine-seam {
  left: 12.5px;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 12%,
    rgba(0, 0, 0, 0.48) 50%,
    rgba(0, 0, 0, 0.35) 88%,
    transparent 100%
  );
}

/* Soft blur around crease */
.passport-card__spine-blur {
  left: 10px;
  width: 8px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.18) 0%,
    rgba(0, 0, 0, 0.28) 35%,
    rgba(0, 0, 0, 0.12) 70%,
    transparent 100%
  );
  filter: blur(0.6px);
}

/* Shadow fading into front cover */
.passport-card__spine-shade {
  left: 13px;
  width: 18px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.32) 0%,
    rgba(0, 0, 0, 0.16) 28%,
    rgba(0, 0, 0, 0.06) 62%,
    transparent 100%
  );
}

/* Cover curvature (~32px) */
.passport-card__spine-curve {
  left: 0;
  width: 32px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.1) 38%,
    rgba(0, 0, 0, 0.03) 72%,
    transparent 100%
  );
}

/* Interior inset depth */
.passport-card__inset {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow:
    inset 3px 0 12px rgba(0, 0, 0, 0.22),
    inset 0 -4px 14px rgba(0, 0, 0, 0.2),
    inset 0 2px 10px rgba(0, 0, 0, 0.08),
    inset -2px 0 8px rgba(0, 0, 0, 0.06);
}

/* Edge light catch (top / right) */
.passport-card__edge-light {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow:
    inset 0 1px 0 var(--border-mid),
    inset -1px 0 0 rgba(255, 255, 255, 0.055),
    inset 0 -1px 0 var(--surface-lift-soft);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 28%, transparent 72%, rgba(0, 0, 0, 0.08) 100%);
  mix-blend-mode: soft-light;
}

/* Bottom thickness lip */
.passport-card__thickness {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  z-index: 0;
  pointer-events: none;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 100%
  );
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.passport-card__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 28px 26px 26px 30px;
  display: flex;
  flex-direction: column;
}

.passport-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.passport-card__brand-copy {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 0;
}

.passport-card__brand-kicker {
  position: absolute;
  top: 5px;
  left: 0;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-transform: uppercase;
  color: var(--accent-aurora);
  text-shadow:
    0 -0.5px 0 var(--border-soft),
    0 1px 1.5px rgba(0, 0, 0, 0.55);
}

.passport-card__brand-title {
  position: absolute;
  top: 42px;
  left: 0;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-transform: uppercase;
  color: var(--text-primary);
  text-shadow:
    0 -0.5px 0 var(--border-soft),
    0 1px 1.5px rgba(0, 0, 0, 0.5);
}

.passport-card__logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.94;
  position: relative;
  top: -8px;
  filter:
    drop-shadow(0 -0.5px 0 rgba(255, 255, 255, 0.2))
    drop-shadow(0 1.5px 2px rgba(0, 0, 0, 0.45));
}

.passport-card__identity {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  flex: 1;
  min-height: 0;
}

.passport-card__feature {
  width: 118px;
  height: 118px;
  flex-shrink: 0;
  overflow: hidden;
  margin-top: 38px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.passport-card__feature--btn {
  display: block;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.passport-card__feature--btn:hover {
  opacity: 0.92;
}

.passport-card__feature--btn:active {
  transform: scale(0.96);
}

.passport-card__feature--btn:focus-visible {
  outline: 2px solid rgba(78, 197, 232, 0.7);
  outline-offset: 3px;
}

.passport-card__feature-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 0;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.passport-card__feature-img.is-ready {
  opacity: 1;
  visibility: visible;
}

.passport-card__inner--inside {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.passport-stamps-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  padding: 0;
  pointer-events: none;
}

.passport-stamps {
  position: relative;
  width: 100%;
  height: 100%;
}

.passport-stamp {
  position: absolute;
  text-align: center;
  pointer-events: auto;
}

.passport-stamp[data-placement="bottom-right"] {
  right: 35px;
  bottom: 45px;
}

.passport-stamp[data-placement="top-left"] {
  left: 42px;
  top: 168px;
}

/* Fixed stamp slot — drop artwork at public/images/passport/stamps/world-choir-2027-i-sang.png */
.passport-stamp__frame {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--df-line);
  margin: 0 auto;
}

.passport-stamp__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center;
  will-change: filter, opacity, transform;
}

.passport-stamp--locked .passport-stamp__frame {
  background: transparent;
}

.passport-stamp--locked .passport-stamp__img {
  filter: none;
  opacity: 1;
  transform: scale(1);
}

.passport-stamp--locked-blur .passport-stamp__frame {
  background: transparent;
}

.passport-stamp--locked-blur .passport-stamp__img {
  filter: blur(10px);
  opacity: 0.82;
  transform: scale(1.04);
}

.passport-stamp--unlocked {
  cursor: pointer;
}

/* Guide presentation: hide other stamps without destroying DOM (instant restore). */
.passport-stamp--guide-hidden {
  display: none !important;
}

.passport-stamp--unlocked:focus-visible {
  outline: 2px solid rgba(26, 48, 87, 0.55);
  outline-offset: 3px;
}

.passport-stamp--unlocked .passport-stamp__img {
  filter: none;
  opacity: 1;
  transform: scale(1);
}

.passport-stamp--reveal-pending {
  pointer-events: none;
}

.passport-stamp--reveal-slot .passport-stamp__frame {
  background: transparent;
}

.passport-card--stamp-reveal-active .passport-stamp-reveal-overlay {
  opacity: 1;
}

.passport-stamp-reveal-overlay {
  position: absolute;
  inset: 0;
  z-index: 18;
  pointer-events: none;
  opacity: 0;
  transition: opacity 280ms ease;
  background: rgba(18, 25, 43, 0.22);
}

.passport-stamp-reveal-floater {
  position: fixed;
  z-index: 10000;
  display: grid;
  place-items: center;
  border-radius: 4px;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.34));
  will-change: left, top, width, height, opacity;
}

.passport-stamp-reveal-floater__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center;
  will-change: filter, opacity, transform;
}


@media (prefers-reduced-motion: reduce) {
  .passport-stamp-reveal-overlay,
  .passport-stamp-reveal-floater {
    display: none !important;
  }
}


.passport-stamp__locked-msg {
  display: none;
}

/* Inside page — History header (matches design mock) */
.passport-inside-header {
  --passport-ink: #12192b;
  --passport-meta: #1a3057;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.passport-inside-header__copy {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.passport-inside-header__kicker {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.25;
  text-transform: uppercase;
  color: #000000;
}

.passport-inside-header__title {
  margin: 5px 0 0;
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: #0B346B;
}

.passport-inside-header__meta {
  margin: 14px 0 0;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--text-muted);
}

.passport-inside-header__dot {
  margin: 0 0.15em;
  font-weight: 700;
}

.passport-inside-header__rule {
  display: block;
  margin-top: 9px;
  width: min(100%, 212px);
  height: 0;
  border: none;
  border-top: 1.5px dotted rgba(18, 25, 43, 0.55);
}

.passport-skel--inside-meta {
  display: inline-block;
  width: 140px;
  height: 10px;
  vertical-align: middle;
}

/* Page 2 footer — centered bottom message */
.passport-inside-footer {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: min(calc(100% - 52px), 292px);
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
}

.passport-inside-footer:focus-visible {
  outline: 2px solid rgba(11, 52, 107, 0.45);
  outline-offset: 4px;
  border-radius: 4px;
}

.passport-inside-footer__dots {
  flex: 1;
  min-width: 28px;
  max-width: 56px;
  height: 2px;
  background-image: radial-gradient(circle, #0B346B 1px, transparent 1px);
  background-size: 4px 2px;
  background-repeat: repeat-x;
  background-position: center;
  opacity: 0.92;
}

.passport-inside-footer__text {
  margin: 0;
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  color: #0B346B;
  white-space: nowrap;
}

.passport-card__back {
  position: absolute;
  top: 28px;
  right: 26px;
  bottom: auto;
  left: auto;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(18, 25, 43, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  color: #12192b;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.passport-card__back:hover {
  border-color: rgba(30, 74, 140, 0.45);
}

.passport-card__back:focus-visible {
  outline: 2px solid rgba(78, 197, 232, 0.7);
  outline-offset: 2px;
}

.passport-card__fields {
  flex: 1;
  min-width: 0;
  padding-top: 4px;
}

.passport-field {
  margin-bottom: 14px;
}

.passport-field:last-child {
  margin-bottom: 0;
}

.passport-field:last-child .passport-field__rule {
  display: none;
}

.passport-field:last-child .passport-field__value {
  margin-bottom: 0;
}

.passport-field__label {
  margin: 0 0 4px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.passport-field__value {
  margin: 0 0 8px;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.passport-field__value--voice {
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.passport-field__rule {
  display: block;
  width: min(100%, 148px);
  height: 1px;
  background: var(--border-soft);
}

.passport-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.passport-card__since {
  position: relative;
  top: -30px;
}

.passport-card__since .passport-field__label {
  margin-bottom: 4px;
}

.passport-card__since .passport-field__value {
  margin-bottom: 0;
  font-size: 0.9rem;
  white-space: normal;
}

.passport-card__map {
  width: min(52%, 196px);
  height: auto;
  aspect-ratio: 1637 / 960;
  object-fit: contain;
  object-position: right bottom;
  opacity: 0.82;
  flex-shrink: 0;
  pointer-events: none;
  filter:
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.4))
    drop-shadow(0 0 8px rgba(78, 197, 232, 0.14));
  mix-blend-mode: soft-light;
}

/* Skeleton */
.passport-skel {
  display: inline-block;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    var(--surface-lift) 0%,
    var(--border-mid) 50%,
    var(--surface-lift) 100%
  );
  background-size: 200% 100%;
  animation: passportSkel 1.4s ease-in-out infinite;
}

.passport-skel--feature {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.passport-skel--line {
  height: 14px;
  width: 72%;
}

.passport-skel--voice {
  height: 22px;
  width: 88%;
  margin-bottom: 8px;
}

@keyframes passportSkel {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Permanence note */
.passport-permanence {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  text-align: center;
  margin: 0 auto 30px;
  max-width: 320px;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.passport-permanence__icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 2px;
  color: var(--text-muted);
}

.passport-permanence p {
  margin: 0;
}

/* Stats */
.passport-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 0 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  min-height: 138px;
}

.passport-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 12px;
  text-align: center;
}

.passport-stat + .passport-stat {
  border-left: 1px solid var(--border-subtle);
}

.passport-stat__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
}

.passport-stat__icon--events {
  background: rgba(61, 124, 255, 0.14);
  color: var(--accent-blue);
}

.passport-stat__icon--acts {
  background: rgba(61, 124, 255, 0.14);
  color: var(--accent-blue);
}

.passport-stat__icon--stamps,
.passport-stat__icon--km,
.passport-stat__icon--countries,
.passport-stat__icon--days {
  background: rgba(61, 124, 255, 0.14);
  color: var(--accent-blue);
}

.passport-stats--single {
  grid-template-columns: 1fr;
}

.passport-stats--single .passport-stat + .passport-stat {
  border-left: none;
}

.passport-stats--triple {
  grid-template-columns: repeat(3, 1fr);
  min-height: 132px;
  align-items: stretch;
}

.passport-stats--triple .passport-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 18px 8px 16px;
  gap: 8px;
  height: 100%;
}

.passport-stats--triple .passport-stat__icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

.passport-stats--triple .passport-stat__value {
  font-size: 1.45rem;
  flex: 0 0 auto;
  min-height: 1.45rem;
}

.passport-stats--triple .passport-stat__label {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  min-height: 2.8em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.passport-stats--triple .passport-stat__icon svg {
  width: 18px;
  height: 18px;
}

.passport-stat__icon svg {
  width: 20px;
  height: 20px;
}

.passport-stat__value {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  line-height: 1;
}

.passport-stat__label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.35;
  white-space: pre-line;
}

.passport-info-modal__actions {
  margin: 0 0 20px;
}

.passport-info-modal__footer {
  margin-top: 0;
}

.passport-info-modal__footer .btn {
  width: 100%;
}

.passport-info-modal__actions:not(.passport-info-modal__actions--visible),
.passport-info-modal__actions:not(.passport-info-modal__actions--visible) .passport-action--stamps-only,
#passport-info-overlay:not(.is-stamps-actions) #passport-info-actions,
#passport-info-overlay:not(.is-stamps-actions) #passport-action-download,
#passport-info-overlay:not(.is-stamps-actions) #passport-action-share {
  display: none !important;
}

/* Actions */
.passport-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0 0 18px;
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.passport-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  min-height: 88px;
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform 0.15s ease;
}

.passport-action:hover,
.passport-action:focus-visible {
  background: var(--surface-lift);
  color: var(--text-primary);
  outline: none;
}

.passport-action:active {
  transform: scale(0.97);
}

.passport-action:disabled {
  opacity: 0.5;
  cursor: wait;
  transform: none;
}

.passport-action__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  background: var(--surface-lift-mid);
}

.passport-action__icon svg {
  width: 20px;
  height: 20px;
}

.passport-action__label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.3;
}

/* Journey card */
.passport-journey-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 92px;
  padding: 18px 16px;
  margin: 0 0 8px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  color: inherit;
  text-align: left;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.passport-journey-card:hover,
.passport-journey-card:focus-visible {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  outline: none;
}

.passport-journey-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(61, 124, 255, 0.28);
  background: rgba(61, 124, 255, 0.1);
  color: var(--accent-blue);
}

.passport-journey-card__icon svg {
  width: 22px;
  height: 22px;
}

.passport-journey-card__body {
  flex: 1;
  min-width: 0;
}

.passport-journey-card__title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.passport-journey-card__copy {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.passport-journey-card__chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1;
}

/* Journey page list */
.passport-journey-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.passport-journey-item {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.passport-journey-item__label {
  margin: 0 0 4px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.passport-journey-item__value {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
}

.passport-journey-empty {
  color: var(--text-secondary);
  line-height: 1.55;
  padding: 8px 2px;
}

/* Toast */
.passport-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px) + 18px);
  transform: translateX(-50%) translateY(12px);
  z-index: 300;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: min(90vw, 320px);
  text-align: center;
}

.passport-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Export clone (offscreen) */
.passport-export-host {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 1080px;
  pointer-events: none;
  opacity: 1;
  z-index: -1;
}

.passport-export-host:not(.passport-export-host--stamps) {
  width: 1080px;
}

.passport-export-host:not(.passport-export-host--stamps) .passport-card {
  width: 1080px;
  aspect-ratio: 0.7;
  border-radius: 48px;
  transform: none !important;
  border: 2px solid rgba(140, 170, 200, 0.14);
  box-shadow:
    -8px 10px 42px rgba(0, 0, 0, 0.4),
    0 16px 48px rgba(0, 0, 0, 0.48),
    0 58px 130px rgba(0, 0, 0, 0.58),
    inset 0 2px 0 var(--df-line),
    inset 0 -5px 20px rgba(0, 0, 0, 0.28),
    inset 5px 0 26px rgba(0, 0, 0, 0.16);
}

/* Stamps card export — match live on-screen card size (device-relative) */
.passport-export-host--stamps {
  width: auto;
  height: auto;
}

.passport-export-host--stamps .passport-card {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: unset;
  border-radius: 18px;
  border: 1px solid rgba(140, 170, 200, 0.14);
  box-shadow:
    -3px 4px 16px rgba(0, 0, 0, 0.4),
    0 6px 18px rgba(0, 0, 0, 0.48),
    0 22px 52px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 var(--df-line),
    inset 0 -2px 8px rgba(0, 0, 0, 0.28),
    inset 2px 0 10px rgba(0, 0, 0, 0.16);
}

.passport-export-host--stamps .passport-card__inner {
  padding: 28px 26px 26px 30px !important;
}

.passport-export-host--stamps .passport-card__back,
.passport-export-host--stamps .passport-inside-footer {
  display: none !important;
}

.passport-export-host:not(.passport-export-host--stamps) .passport-card__inner {
  padding: 72px 68px 68px 78px;
}

.passport-export-host:not(.passport-export-host--stamps) .passport-card__brand-kicker {
  top: 13px;
  font-size: 4.5rem;
  letter-spacing: -0.025em;
  font-weight: 700;
  line-height: 1.02;
}

.passport-export-host:not(.passport-export-host--stamps) .passport-card__brand-title {
  top: 108px;
  font-size: 1.85rem;
  margin-top: 0;
  letter-spacing: -0.025em;
  font-weight: 700;
  line-height: 1.02;
}

.passport-export-host:not(.passport-export-host--stamps) .passport-card__logo {
  width: 168px;
  height: 168px;
  top: -23px;
  filter:
    drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.2))
    drop-shadow(0 4px 5px rgba(0, 0, 0, 0.45));
}

.passport-export-host:not(.passport-export-host--stamps) .passport-card__top {
  margin-bottom: 72px;
}

.passport-export-host:not(.passport-export-host--stamps) .passport-card__identity {
  gap: 56px;
}

.passport-export-host .passport-card__feature {
  width: 320px;
  height: 320px;
  margin-top: 103px;
}

.passport-export-host .passport-field__label {
  font-size: 23px;
  margin-bottom: 10px;
  color: var(--text-muted);
}

.passport-export-host .passport-field__value {
  font-size: 2.4rem;
  margin-bottom: 18px;
}

.passport-export-host .passport-field__value--voice {
  font-size: 3.2rem;
}

.passport-export-host .passport-field__rule {
  width: min(100%, 380px);
  height: 2px;
}

.passport-export-host .passport-field {
  margin-bottom: 36px;
}

.passport-export-host .passport-card__since .passport-field__value {
  font-size: 2.2rem;
}

.passport-export-host .passport-card__map {
  width: 523px;
}

.passport-export-host .passport-card__spine {
  width: 98px;
  border-radius: 48px 0 0 48px;
}

.passport-export-host .passport-card__spine-band {
  width: 44px;
}

.passport-export-host .passport-card__spine-edge {
  width: 11px;
}

.passport-export-host .passport-card__spine-thickness {
  left: 8px;
  width: 8px;
}

.passport-export-host .passport-card__spine-highlight {
  left: 24px;
  width: 4px;
}

.passport-export-host .passport-card__spine-crease {
  left: 30px;
  width: 4px;
}

.passport-export-host .passport-card__spine-seam {
  left: 34px;
  width: 3px;
}

.passport-export-host .passport-card__spine-blur {
  left: 27px;
  width: 22px;
}

.passport-export-host .passport-card__spine-shade {
  left: 35px;
  width: 50px;
}

.passport-export-host .passport-card__spine-curve {
  width: 88px;
}

.passport-export-host .passport-card__thickness {
  height: 8px;
  border-radius: 0 0 48px 48px;
}

.passport-export-host .passport-card__brand-kicker,
.passport-export-host .passport-card__brand-title {
  text-shadow:
    0 -1px 0 var(--border-soft),
    0 2px 3px rgba(0, 0, 0, 0.55);
}

@media (max-width: 380px) {
  .passport-card {
    aspect-ratio: 0.68;
  }

  .passport-card__feature {
    width: 96px;
    height: 96px;
  }

  .passport-card__identity {
    gap: 14px;
  }

  .passport-field__value--voice {
    font-size: 1.05rem;
  }

  .passport-actions {
    gap: 6px;
    padding: 10px;
  }

  .passport-action__label {
    font-size: 0.66rem;
  }
}

/* Passport story chapter — Pass the World inside white Passport card */
.passport-story-body {
  background: var(--bg-primary);
}

.passport-story-body .ambient-bg {
  display: none;
}

.passport-story-page {
  /* Same page chrome as Passport cover/stamps — no layout override */
}

.passport-story-view {
  width: 100%;
}

.passport-card.passport-card--ptw,
.passport-card.passport-card--ptw.is-inside {
  width: 100%;
  max-width: none;
  background: #ffffff;
  border-color: transparent;
  color: #12192b;
  display: flex;
  flex-direction: column;
  box-shadow:
    -3px 4px 16px rgba(0, 0, 0, 0.4),
    0 6px 18px rgba(0, 0, 0, 0.48),
    0 22px 52px rgba(0, 0, 0, 0.58);
}

.passport-card--ptw .passport-card__back {
  top: 14px;
  right: 14px;
  z-index: 30;
}

/* Itinerary panel sits above the card; hide the card back so only the panel close shows. */
.passport-card--ptw.is-itinerary-open .passport-card__back {
  visibility: hidden;
  pointer-events: none;
}


.passport-story-host,
.ptw-card-host {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.passport-story-view[hidden],
.passport-main[hidden] {
  display: none !important;
}

/* ── Pass the World (inside white Passport card) ─────────────── */
.ptw {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 0;
  color: #12192b;
  font-family: var(--font-sans);
}

.ptw-header {
  text-align: center;
  margin: 0;
  padding: 16px 20px 0;
  flex-shrink: 0;
}

.ptw-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: #0B346B;
}

/* Hide story until partnership mode is known — never flash non-partner when partnered. */
.passport-story-view.is-ptw-pending {
  visibility: hidden;
}

/* Partnership ON — page header (outside white card) */
.passport-story-view.is-ptw-partner > .passport-header {
  align-items: flex-start;
  gap: 12px 16px;
  margin-bottom: 18px;
}

.passport-header__lead {
  min-width: 0;
  flex: 1 1 auto;
}

.passport-header__trail {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.passport-header__partner-subtitle {
  margin: 6px 0 0;
  max-width: min(15.5rem, 58vw);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(200, 204, 214, 0.78);
  white-space: pre-line;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.passport-header__partner-tab {
  width: min(148px, 38vw);
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.passport-header__partner-tab-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: right center;
  display: block;
}

.passport-story-view.is-ptw-partner .passport-info-btn[hidden] {
  display: none !important;
}

/* Partnership map watermark — only present when ON.
   Logos may be transparent PNGs; never paint a solid backing behind them. */
.ptw-partner-map-logo {
  position: absolute;
  right: 10px;
  bottom: 25px;
  z-index: 450;
  width: min(72px, 22%);
  height: 28px;
  display: grid;
  place-items: end;
  pointer-events: none;
  background: transparent !important;
  box-shadow: none;
  border: 0;
}

.ptw-partner-map-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: right bottom;
  display: block;
  background: transparent !important;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
}

/* Partnership link banner — above Itinerary, only when ON.
   Image defines the box and must paint edge-to-edge (no letterbox gaps).
   White board matches the Pass the World card — never a black letterbox plate. */
.ptw-partner-link {
  position: relative;
  display: block;
  margin: 12px 9px 0;
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 auto;
  align-self: stretch;
  width: calc(100% - 18px);
  max-width: none;
  box-sizing: border-box;
  height: auto;
  max-height: none;
  background: #ffffff;
  line-height: 0;
}

.ptw-partner-link__anchor {
  display: block;
  width: 100%;
  height: auto;
  color: inherit;
  text-decoration: none;
  background: #ffffff;
  line-height: 0;
}

.ptw-partner-link img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  background: #ffffff;
  border: 0;
  vertical-align: top;
}

/* Travelling stats row — partnership ON layout */
.ptw-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 4px 8px 0;
  padding: 10px 0 2px;
  border-top: 1px solid rgba(18, 25, 43, 0.1);
}

.ptw-stats-row__cell {
  padding: 0 8px;
  text-align: center;
  border-right: 1px solid rgba(18, 25, 43, 0.1);
}

.ptw-stats-row__cell:last-child {
  border-right: 0;
}

.ptw-stats-row__label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a8e9a;
  margin-bottom: 4px;
}

.ptw-stats-row__value {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: #12192b;
  line-height: 1.15;
}

.ptw-stats-row__sub {
  display: block;
  margin-top: 2px;
  font-size: 0.68rem;
  color: #8a8e9a;
}

.ptw-stats-row__value--eta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* Partnership ON: grow the white card downward so journey + CTA + link fit */
.passport-story-view.is-ptw-partner .passport-card.passport-card--ptw,
.passport-card.passport-card--ptw.is-ptw-partner {
  aspect-ratio: auto;
  height: auto;
  min-height: calc(min(100vw - 48px, 560px) / 0.7);
  /* Clip map to the card’s rounded corners */
  overflow: hidden;
}

.passport-story-view.is-ptw-partner .passport-story-host,
.passport-story-view.is-ptw-partner .ptw-card-host,
.passport-card--ptw.is-ptw-partner .passport-story-host,
.passport-card--ptw.is-ptw-partner .ptw-card-host {
  height: auto;
  min-height: 0;
  flex: 1 1 auto;
}

.passport-story-view.is-ptw-partner .ptw,
.ptw.is-ptw-partner {
  height: auto;
  min-height: 0;
  flex: 1 1 auto;
}

.passport-story-view.is-ptw-partner .ptw-map-wrap,
.ptw.is-ptw-partner .ptw-map-wrap {
  /* Keep map size/placement; clip to card radius via parent overflow */
  flex: 0 0 auto;
  max-height: none;
  width: 100%;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
}

.passport-story-view.is-ptw-partner .ptw-header,
.ptw.is-ptw-partner .ptw-header {
  flex: 0 0 auto;
  padding: 14px 20px 0;
}

.passport-story-view.is-ptw-partner .ptw-body,
.ptw.is-ptw-partner .ptw-body {
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
  margin-top: 12px;
  padding: 0 18px;
}

.passport-story-view.is-ptw-partner .ptw-cta,
.ptw.is-ptw-partner .ptw-cta {
  margin-top: 10px;
  padding-bottom: 8px;
}

.passport-story-view.is-ptw-partner .ptw-visit-btn,
.ptw.is-ptw-partner .ptw-visit-btn {
  margin-top: 8px;
  margin-bottom: 4px;
}

.passport-story-view.is-ptw-partner .ptw-partner-link,
.ptw.is-ptw-partner .ptw-partner-link {
  flex: 0 0 auto;
  margin-top: 14px;
}

.passport-story-view.is-ptw-partner .ptw-actions,
.ptw.is-ptw-partner .ptw-actions {
  margin-top: 4px;
  padding: 12px 18px 20px;
  flex: 0 0 auto;
}

@media (max-width: 360px) {
  .passport-header__partner-tab {
    width: min(120px, 36vw);
    height: 44px;
  }

  .ptw-partner-map-logo {
    width: min(56px, 18%);
    height: 22px;
  }

  .ptw-stats-row__value {
    font-size: 0.82rem;
  }
}

.ptw-map-wrap {
  position: relative;
  width: 100%;
  flex: 0 0 auto;
  /* Taller window so Greenland → Antarctica + Americas → Russia can fit */
  aspect-ratio: 1.55 / 1;
  max-height: 48%;
  border-radius: 0;
  overflow: hidden;
  background: var(--bg-primary);
  border: 0;
}


.ptw-map {
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
}

.ptw-map .leaflet-container {
  background: var(--bg-primary) !important;
  font: inherit;
  width: 100%;
  height: 100%;
}

.ptw-map .leaflet-container .maplibregl-map,
.ptw-map .leaflet-container .maplibregl-canvas {
  background: var(--bg-primary);
}

/* Keep MapLibre under overlays; plane + route live outside Leaflet as HTML/SVG. */
.ptw-map .leaflet-ptwOverlay-pane {
  z-index: 650 !important;
}

.ptw-route-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 35;
  pointer-events: none;
  overflow: visible;
  opacity: 0;
}

.ptw-route-overlay__glow {
  fill: none;
  stroke: var(--accent-aurora, #4ec5e8);
  stroke-width: 5;
  stroke-opacity: 0.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  shape-rendering: geometricPrecision;
}

.ptw-route-overlay__path {
  fill: none;
  stroke: var(--accent-aurora, #4ec5e8);
  stroke-width: 2.25;
  stroke-opacity: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  shape-rendering: geometricPrecision;
}

.ptw-stop-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  z-index: 37;
  padding: 0;
  border: 0;
  background: transparent;
  transform-origin: center center;
  opacity: 0;
  -webkit-tap-highlight-color: transparent;
}

.ptw-stop-overlay--dest {
  z-index: 38;
  cursor: pointer;
}

.ptw-stop-overlay__dot {
  display: block;
  width: 8px;
  height: 8px;
  margin: 6px;
  border-radius: 50%;
  background: var(--accent-aurora, #4ec5e8);
  box-shadow:
    0 0 0 1.5px rgba(8, 12, 22, 0.85),
    0 0 8px rgba(78, 197, 232, 0.7);
}

.ptw-dest-overlay__popup {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  min-width: 120px;
  max-width: 180px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(12, 16, 28, 0.94);
  border: 1px solid rgba(78, 197, 232, 0.35);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  text-align: center;
  pointer-events: none;
}

.ptw-dest-overlay__popup[hidden] {
  display: none;
}

.ptw-dest-overlay__city {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}

.ptw-dest-overlay__eta {
  display: block;
  margin-top: 3px;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: var(--accent-aurora, #4ec5e8);
}

/* HTML plane/route sit under MapLibre WebGL — Leaflet markers are the visible ones. */
.ptw-plane-overlay,
.ptw-route-overlay {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.ptw-plane-icon {
  background: transparent !important;
  border: 0 !important;
  color: #f4f4f6;
}

.ptw-plane-icon__glow {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 197, 232, 0.65) 0%, rgba(78, 197, 232, 0) 70%);
  pointer-events: none;
}

.ptw-plane-icon__svg {
  position: relative;
  display: block;
  margin: 3px;
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 6px rgba(78, 197, 232, 0.75));
  transform-origin: center center;
}

.ptw-stop-icon {
  background: transparent !important;
  border: 0 !important;
}

.ptw-stop-icon__dot {
  display: block;
  width: 10px;
  height: 10px;
  margin: 2px;
  border-radius: 50%;
  background: #4ec5e8;
  box-shadow:
    0 0 0 1.5px rgba(8, 12, 22, 0.85),
    0 0 10px rgba(78, 197, 232, 0.85);
}

.ptw-leaflet-dest-popup .leaflet-popup-content-wrapper {
  background: rgba(12, 16, 28, 0.94);
  color: #f4f4f6;
  border: 1px solid rgba(78, 197, 232, 0.35);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.ptw-leaflet-dest-popup .leaflet-popup-tip {
  background: rgba(12, 16, 28, 0.94);
}

.ptw-dest-popup {
  text-align: center;
  min-width: 110px;
}

.ptw-dest-popup__city {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
}

.ptw-dest-popup__eta {
  display: block;
  margin-top: 3px;
  font-size: 0.68rem;
  color: #4ec5e8;
}

.ptw-plane-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  z-index: 40;
  pointer-events: none;
  opacity: 0;
  color: var(--text-primary);
  transform-origin: center center;
  will-change: transform, opacity;
}

.ptw-plane-overlay__glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 124, 255, 0.55) 0%, rgba(61, 124, 255, 0) 70%);
}

.ptw-plane-overlay__icon {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  margin: 2px;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.9)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.65));
}








.ptw-body {
  margin-top: 14px;
  text-align: center;
  padding: 0 18px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.ptw-route {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.ptw-route--journey {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 10px;
  width: 100%;
  max-width: 100%;
  padding: 0 2px;
}

.ptw-route--journey .ptw-place {
  min-width: 0;
  max-width: 100%;
}

.ptw-route--journey .ptw-place:first-child {
  justify-self: end;
  text-align: right;
}

.ptw-route--journey .ptw-place:last-child {
  justify-self: start;
  text-align: left;
}

.ptw-place__city {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-transform: uppercase;
  color: #12192b;
}

.ptw-route--journey .ptw-place__city {
  font-size: 14px;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.ptw-place__country {
  margin: 4px 0 0;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
  color: rgba(18, 25, 43, 0.58);
}

.ptw-route--journey .ptw-place__country {
  font-size: 6px;
  letter-spacing: 0.08em;
  color: rgba(18, 25, 43, 0.28);
  overflow-wrap: anywhere;
}

.ptw-route__plane {
  grid-column: 2;
  display: block;
  flex: 0 0 auto;
  width: 55px;
  height: 37.5px;
  background: url('../images/passport/ptw-route-plane.png') center / contain no-repeat;
}

.ptw-status {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ptw-status p {
  margin: 5px 0;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: rgba(18, 25, 43, 0.58);
  letter-spacing: 0;
  line-height: 1.4;
}

.ptw-status__travel {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 5px 0;
  max-width: 100%;
  font-family: var(--font-sans);
  font-size: 7px;
  color: rgba(18, 25, 43, 0.58);
  letter-spacing: 0;
  line-height: 1.35;
}

.ptw-status__travel-text {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
}

.ptw-status-info {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(18, 25, 43, 0.35);
  border-radius: 50%;
  background: transparent;
  color: rgba(18, 25, 43, 0.58);
  font-family: inherit;
  font-size: 6px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ptw-status-info span {
  font-size: 1em;
  line-height: 1;
}

.ptw-status-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ptw-status-modal[hidden] {
  display: none;
}

.ptw-status-modal__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(8, 12, 22, 0.42);
  cursor: pointer;
}

.ptw-status__detail-box {
  position: relative;
  z-index: 1;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--accent-blue, #3d7cff);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
  white-space: nowrap;
  max-width: min(300px, calc(100vw - 40px));
  text-align: center;
  box-shadow: 0 12px 28px rgba(61, 124, 255, 0.35);
}

@media (max-width: 360px) {
  .ptw-status__detail-box {
    white-space: normal;
    font-size: 10px;
  }
}

.ptw-cta {
  margin-top: 18px;
}

.ptw-cta-lead {
  margin: 0 0 4px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: #12192b;
  letter-spacing: -0.01em;
}

.ptw-cta-note,
.ptw-inline-note {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: rgba(18, 25, 43, 0.55);
  line-height: 1.4;
}

.ptw-inline-note {
  margin-bottom: 12px;
}

.ptw-cta-label {
  margin: 0 0 6px;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #12192b;
}

.ptw-visit-btn {
  position: relative;
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid rgba(18, 25, 43, 0.18);
  border-radius: var(--radius-sm);
  background: #12192b;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition), opacity var(--transition);
}

.ptw-visit-btn--primary {
  border-color: transparent;
  background: var(--accent-blue);
  color: var(--text-primary);
  box-shadow: 0 8px 20px rgba(61, 124, 255, 0.28);
}

.ptw-visit-btn--primary:hover,
.ptw-visit-btn--primary:focus-visible {
  border-color: transparent;
  background: #2f6cf0;
  outline: none;
}

.ptw-visit-btn--muted,
.ptw-visit-btn--muted:disabled {
  border-color: rgba(18, 25, 43, 0.1);
  background: rgba(18, 25, 43, 0.06);
  color: rgba(18, 25, 43, 0.34);
  box-shadow: none;
  cursor: default;
  opacity: 1;
}

.ptw-visit-btn:hover,
.ptw-visit-btn:focus-visible {
  border-color: rgba(30, 74, 140, 0.45);
  outline: none;
}

.ptw-visit-btn:disabled {
  opacity: 0.38;
  cursor: default;
  box-shadow: none;
}

.ptw-visit-btn--muted:disabled {
  opacity: 1;
}

.ptw-visit-ring {
  position: absolute;
  inset: -5px;
  border-radius: calc(var(--radius-sm) + 4px);
  pointer-events: none;
  background: conic-gradient(
    from -90deg,
    rgba(61, 124, 255, 0.85) calc(var(--ptw-progress, 0) * 1turn),
    transparent 0
  );
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 1.5px;
  opacity: 0.95;
}

.ptw-countdown,
.ptw-invite-count {
  margin: 12px 0 0;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  letter-spacing: 0.01em;
  color: rgba(18, 25, 43, 0.48);
}

.ptw-reveal {
  margin: 14px 0 6px;
  padding: 8px 0;
}

.ptw-reveal-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #12192b;
}

.ptw-reveal-place,
.ptw-reveal-voice,
.ptw-reveal-note {
  margin: 6px 0 0;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: rgba(18, 25, 43, 0.58);
}

.ptw-actions {
  margin-top: auto;
  padding: 14px 18px 18px;
  text-align: center;
  flex-shrink: 0;
}

.ptw-link-btn {
  border: 0;
  background: transparent;
  color: rgba(18, 25, 43, 0.62);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 10px;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: rgba(18, 25, 43, 0.2);
  transition: color var(--transition);
}

.ptw-link-btn:hover,
.ptw-link-btn:focus-visible {
  color: #12192b;
  outline: none;
}

.ptw-link-btn--secondary {
  margin-top: 24px;
  display: inline-block;
  color: var(--text-secondary);
  text-decoration-color: var(--border-soft);
}

.ptw-skeleton {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 8px 0 16px;
}

.ptw-skel-line {
  width: min(82%, 240px);
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(18,25,43,0.06), rgba(18,25,43,0.12), rgba(18,25,43,0.06));
  background-size: 200% 100%;
  animation: ptw-shimmer 1.4s ease-in-out infinite;
}

.ptw-skel-line--short {
  width: min(48%, 140px);
}

@keyframes ptw-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ptw-skel-line { animation: none; }
  .ptw-invite-pulse { animation: none !important; }
  .ptw-invite-dot--open { animation: none !important; }
  .ptw-invite-dot { transition: none !important; }
}

.ptw-panel {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.96);
  overflow: hidden;
  overscroll-behavior: none;
  padding: max(16px, env(safe-area-inset-top)) 20px calc(var(--nav-height, 84px) + 24px);
  color: var(--text-primary);
  touch-action: manipulation;
}

.ptw-panel[hidden] {
  display: none !important;
}

.ptw-panel-inner {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  padding-top: 36px;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.ptw-panel-close {
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 1.35rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  z-index: 2;
}

.ptw-panel-title {
  margin: 0 0 20px;
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 1rem;
  color: var(--text-primary);
  flex-shrink: 0;
}

.ptw-panel [data-ptw-panel-content] {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.ptw-itinerary-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.ptw-itinerary {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 8px;
}

.ptw-itinerary-pager {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--df-line);
}

.ptw-itin-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.ptw-itin-nav,
.ptw-itin-page {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ptw-itin-nav:disabled {
  opacity: 0.28;
  cursor: default;
}

.ptw-itin-page.is-active {
  background: rgba(61, 124, 255, 0.22);
  border-color: rgba(61, 124, 255, 0.55);
  color: var(--text-primary);
}

html.ptw-itinerary-open,
html.ptw-itinerary-open body {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.passport-card--ptw.is-itinerary-open .ptw-body,
.passport-card--ptw.is-itinerary-open .ptw {
  overflow: hidden !important;
  overscroll-behavior: none;
  touch-action: none;
}

@media (min-width: 900px) {
  .ptw-panel-inner {
    max-width: 720px;
  }
}

.ptw-day {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
}

.ptw-day-badge {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-blue, #3d7cff);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ptw-day-date {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  line-height: 1.05;
}

.ptw-day-date__month,
.ptw-day-date__year {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.ptw-day-date__day {
  margin: 1px 0;
  font-family: var(--font-sans);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  line-height: 1;
}

.ptw-day-place {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.ptw-day-city {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.ptw-day-country {
  margin: 3px 0 0;
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.36);
  overflow-wrap: anywhere;
}

.ptw-day-flag {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--surface-lift);
  box-shadow:
    0 0 0 1px var(--border-mid),
    0 2px 8px rgba(0, 0, 0, 0.28);
}

.ptw-day-flag img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.ptw-day-flag--empty {
  background: var(--border-subtle);
  opacity: 0.35;
}

.ptw-day-called {
  flex: 0 0 auto;
  min-width: 72px;
  max-width: 96px;
  text-align: right;
}

.ptw-day-called__label {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.42);
  white-space: nowrap;
}

.ptw-day-called__voice {
  margin: 3px 0 0;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

.ptw-stats-grid {
  margin-top: 20px;
  display: grid;
  gap: 20px;
  text-align: center;
}

.ptw-stat-value {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.ptw-stat-label {
  display: block;
  margin-top: 6px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ptw-city-icon,
.ptw-invite-icon {
  background: transparent !important;
  border: 0 !important;
}

.ptw-city-dot {
  display: block;
  width: 8px;
  height: 8px;
  margin: 3px;
  border-radius: 50%;
  background: rgba(240, 248, 255, 0.95);
  box-shadow: 0 0 8px rgba(61, 124, 255, 0.35);
}

.ptw-invite-pulse {
  display: block;
  width: 10px;
  height: 10px;
  margin: 4px;
  border-radius: 50%;
  background: rgba(61, 124, 255, 0.75);
  box-shadow: 0 0 0 0 rgba(61, 124, 255, 0.4);
  animation: ptw-pulse 2.4s ease-out infinite;
}

.ptw-invite-overlay-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 36;
  overflow: hidden;
}

.ptw-invite-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  will-change: transform, opacity;
  transition:
    opacity 0.42s ease,
    box-shadow 0.42s ease,
    background-color 0.42s ease;
}

.ptw-invite-dot--open {
  background: rgba(240, 248, 255, 0.88);
  box-shadow:
    0 0 0 1px rgba(78, 197, 232, 0.25),
    0 0 8px rgba(78, 197, 232, 0.42);
  animation: ptw-invite-open-glow 2.6s ease-in-out infinite;
}

.ptw-invite-dot--reveal.ptw-invite-dot--lit {
  opacity: 1;
  background: rgba(240, 248, 255, 0.92);
  box-shadow:
    0 0 0 1px rgba(78, 197, 232, 0.3),
    0 0 10px rgba(78, 197, 232, 0.48);
}

.ptw-invite-dot--reveal.ptw-invite-dot--dim {
  opacity: 0;
  box-shadow: none;
}

@keyframes ptw-invite-open-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(78, 197, 232, 0.22),
      0 0 6px rgba(78, 197, 232, 0.35);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(78, 197, 232, 0.38),
      0 0 12px rgba(78, 197, 232, 0.55);
  }
}

@keyframes ptw-pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 124, 255, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(61, 124, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 124, 255, 0); }
}

.ptw-dev {
  margin: 8px 16px 0;
  font-size: 0.65rem;
  color: rgba(18, 25, 43, 0.4);
}

.ptw-dev-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.ptw-dev button {
  border: 1px solid rgba(18, 25, 43, 0.15);
  border-radius: 8px;
  background: transparent;
  color: rgba(18, 25, 43, 0.55);
  font-family: var(--font-sans);
  font-size: 0.6rem;
  padding: 5px 7px;
  cursor: pointer;
}

/* Light Mode only — Passport / PTW cards + Itinerary lock Dark Mode look (cards only). */

/* Cover card: inherit Dark Mode tokens so finishes + accents match Dark. */
html[data-theme="light"] .passport-card:not(.is-inside) {
  --text-primary: #f4f4f6;
  --text-secondary: #a8abb8;
  --text-muted: #8a8e9a;
  --accent-aurora: #4ec5e8;
  --accent-blue: #3d7cff;
  --df-line: rgba(255, 255, 255, 0.08);
  --surface-lift: rgba(255, 255, 255, 0.04);
  --surface-lift-soft: rgba(255, 255, 255, 0.02);
  --surface-lift-mid: rgba(255, 255, 255, 0.03);
  --border-soft: rgba(255, 255, 255, 0.12);
  --border-mid: rgba(255, 255, 255, 0.1);
  color: #f4f4f6;
}

html[data-theme="light"] .passport-card__page--cover .passport-card__brand-title,
html[data-theme="light"] .passport-card__page--cover .passport-field__value,
html[data-theme="light"] .passport-card__page--cover .passport-card__since .passport-field__value {
  color: #ffffff;
}

html[data-theme="light"] .passport-card__page--cover .passport-field__label,
html[data-theme="light"] .passport-card__page--cover .passport-card__since .passport-field__label {
  color: #e8e8ec;
}

html[data-theme="light"] .passport-card__page--cover .passport-card__logo {
  filter: none !important;
  opacity: 1;
}

/* Stamps inside card: empty frames + meta match Dark Mode. */
html[data-theme="light"] .passport-card.is-inside:not(.passport-card--ptw) {
  --text-muted: #8a8e9a;
  --df-line: rgba(255, 255, 255, 0.08);
}

/* Pass the World card: dark map + Dark Mode accents on map chrome / CTAs. */
html[data-theme="light"] .passport-card.passport-card--ptw {
  --bg-primary: #000000;
  --accent-aurora: #4ec5e8;
  --accent-blue: #3d7cff;
}

html[data-theme="light"] .passport-card--ptw .ptw-map-wrap,
html[data-theme="light"] .passport-card--ptw .ptw-map,
html[data-theme="light"] .passport-card--ptw .ptw-map .leaflet-container,
html[data-theme="light"] .passport-card--ptw .ptw-map .leaflet-container .maplibregl-map,
html[data-theme="light"] .passport-card--ptw .ptw-map .leaflet-container .maplibregl-canvas {
  background: #000000 !important;
}

html[data-theme="light"] .passport-card--ptw .ptw-visit-btn,
html[data-theme="light"] .passport-card--ptw .ptw-visit-btn--primary,
html[data-theme="light"] .passport-card--ptw .ptw-status__detail-box,
html[data-theme="light"] .passport-card--ptw .ptw-dest-overlay__city,
html[data-theme="light"] .passport-card--ptw .ptw-plane-overlay {
  color: #f4f4f6;
}

html[data-theme="light"] .passport-card--ptw .ptw-visit-btn--primary {
  background: #3d7cff;
  box-shadow: 0 8px 20px rgba(61, 124, 255, 0.28);
}

html[data-theme="light"] .passport-card--ptw .ptw-link-btn {
  color: rgba(18, 25, 43, 0.62);
  text-decoration-color: rgba(18, 25, 43, 0.2);
}

html[data-theme="light"] .passport-card--ptw .ptw-link-btn:hover,
html[data-theme="light"] .passport-card--ptw .ptw-link-btn:focus-visible {
  color: #12192b;
}

/* Itinerary fullscreen panel: Dark Mode type + accents on black. */
html[data-theme="light"] .ptw-panel {
  --text-primary: #f4f4f6;
  --text-secondary: #a8abb8;
  --text-muted: #8a8e9a;
  --accent-blue: #3d7cff;
  --accent-aurora: #4ec5e8;
  --df-line: rgba(255, 255, 255, 0.08);
  --border-mid: rgba(255, 255, 255, 0.1);
  --border-subtle: rgba(255, 255, 255, 0.06);
  color: #f4f4f6;
}

