/* Beacon Arrival Pass module styles. Uses only the design tokens from
   styles.css :root (navy, red, pale, pale-sea, cream, slate, ok, warn).
   Owned by mod-pass. Never edits base classes, only adds pass-scoped ones. */

/* ---------- invite (public, navy full-bleed) ---------- */
.pass-invite-shell {
  background: linear-gradient(168deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  min-height: 100vh;
  min-height: 100dvh;
}
.pass-dark-hdr { background: transparent; }
.pass-wordmark-light { color: var(--cream); }
.pass-invite {
  flex: 1;
  padding: 1.2rem 1.4rem 2.4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pass-invite::before {
  content: "";
  position: absolute; inset: -40% -30% auto;
  height: 70%;
  background: radial-gradient(ellipse at 50% 0%, rgba(220, 231, 242, 0.14) 0%, transparent 65%);
  pointer-events: none;
}
.pass-seal {
  width: 84px; height: 84px; margin: 1.1rem auto 0;
  border-radius: 50%;
  border: 2px solid rgba(250, 248, 243, 0.4);
  outline: 1px solid rgba(250, 248, 243, 0.15);
  outline-offset: 6px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(250, 248, 243, 0.06);
  color: var(--cream);
}
.pass-seal svg { width: 36px; height: 36px; }
.pass-kicker {
  margin-top: 1.1rem;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--pale-sea);
}
.pass-invite-h1 { color: var(--cream); margin-top: 0.5rem; }
.pass-invite-sub {
  color: var(--pale);
  font-size: 0.93rem; line-height: 1.65;
  margin: 0.7rem auto 0; max-width: 34rem; opacity: 0.92;
}
.pass-lang-label {
  margin-top: 1.6rem;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--pale-sea);
}
.pass-langrow { display: flex; gap: 0.7rem; justify-content: center; margin-top: 0.6rem; }
.pass-ghost-light {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(250, 248, 243, 0.45);
  box-shadow: none;
}
.pass-points { margin: 1.5rem auto 0; max-width: 26rem; display: grid; gap: 0.55rem; text-align: left; }
.pass-point {
  display: flex; align-items: center; gap: 0.7rem;
  background: rgba(250, 248, 243, 0.07);
  border: 1px solid rgba(250, 248, 243, 0.12);
  border-radius: 14px; padding: 0.7rem 0.9rem;
  font-size: 0.86rem; color: var(--pale);
}
.pass-point-ic {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  background: var(--red); color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.pass-point-ic svg { width: 14px; height: 14px; }
.pass-invite-cta { margin: 1.6rem auto 0; max-width: 26rem; }
.pass-invite-note {
  margin: 1.1rem auto 0; max-width: 30rem;
  font-size: 0.74rem; line-height: 1.55; color: var(--pale-sea);
}
.pass-invite-note.dim { opacity: 0.7; margin-top: 0.5rem; }

/* ---------- credential card ---------- */
.pcard {
  position: relative; overflow: hidden;
  margin-top: 1.1rem;
  border-radius: 22px;
  padding: 1.25rem 1.3rem 1.15rem;
  color: var(--cream);
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 78%);
  box-shadow: var(--shadow);
  border: 1px solid rgba(220, 231, 242, 0.14);
}
.pcard::before {
  content: "";
  position: absolute; top: -55%; right: -25%;
  width: 85%; height: 150%;
  background: radial-gradient(ellipse, rgba(220, 231, 242, 0.12) 0%, transparent 62%);
  pointer-events: none;
}
.pcard::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red-deep) 55%, var(--navy) 100%);
}
.pcard.expired { filter: saturate(0.55); }
.pc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem; }
.pc-brand {
  font-family: var(--font-brand); font-weight: 600;
  letter-spacing: 0.32em; text-indent: 0.32em; font-size: 0.86rem;
  color: var(--cream);
}
.pc-title {
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.16em; color: var(--pale-sea);
}
.pc-holder {
  display: block; margin-top: 1rem;
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--pale-sea);
}
.pc-name { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; color: var(--white); }
.pc-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-top: 0.55rem;
  font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 100px; padding: 0.22rem 0.65rem;
}
.pc-badge svg { width: 12px; height: 12px; flex: 0 0 auto; }
.pc-badge.ok { color: #CFF3E1; background: rgba(30, 125, 79, 0.45); border: 1px solid rgba(207, 243, 225, 0.35); }
.pc-badge.bad { color: #FFD9DD; background: rgba(198, 32, 46, 0.4); border: 1px solid rgba(255, 217, 221, 0.35); }
.pc-badge.sm { margin-top: 0; }
.pc-badge.solo { margin-top: 1rem; font-size: 0.74rem; padding: 0.35rem 0.9rem; }
.pass-mrz-out .pc-badge.ok { color: var(--ok); background: rgba(30, 125, 79, 0.12); border-color: rgba(30, 125, 79, 0.25); }
.pass-mrz-out .pc-badge.bad { color: var(--red); background: rgba(198, 32, 46, 0.1); border-color: rgba(198, 32, 46, 0.25); }
.pc-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.7rem 1rem; margin-top: 1rem;
  position: relative; z-index: 1;
}
.pc-cell small {
  display: block; font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--pale-sea); margin-bottom: 0.12rem;
}
.pc-cell b { font-size: 0.88rem; font-weight: 700; color: var(--cream); }
.pc-bottom { display: flex; gap: 0.5rem; margin-top: 1.05rem; }
.pc-chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy); background: var(--pale);
  border-radius: 100px; padding: 0.24rem 0.7rem;
}

/* rotating QR preview under the card */
.pass-prev { display: flex; gap: 1rem; align-items: center; margin-top: 0.9rem; }
.pc-qr {
  flex: 0 0 auto; width: 116px; height: 116px;
  background: var(--white); border-radius: 14px;
  border: 1px solid var(--line); padding: 8px;
}
.pc-qr svg { width: 100%; height: 100%; }
.pass-prev-meta { display: flex; flex-direction: column; gap: 0.25rem; }
.pass-prev-meta b { font-size: 0.88rem; }
.pass-prev-meta span { font-size: 0.8rem; font-weight: 700; color: var(--red); }
.pass-prev-meta small { font-size: 0.74rem; color: var(--slate); line-height: 1.45; }
.pass-actions { display: grid; gap: 0.7rem; margin-top: 1.1rem; }

/* ---------- stepper ---------- */
.pass-step-of {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--slate); margin-bottom: 0.2rem;
}
.pass-step-h { font-size: 1.12rem; font-weight: 800; margin-top: 0.7rem; }
.pass-step-d { font-size: 0.88rem; color: var(--slate); margin-top: 0.25rem; }
.pass-mrz-ta {
  font-family: ui-monospace, 'Cascadia Mono', 'Courier New', monospace;
  font-size: 0.78rem; letter-spacing: 0.06em; line-height: 1.7;
  text-transform: uppercase; white-space: pre; overflow-x: auto;
}
.pass-mrz-btns { display: flex; gap: 0.7rem; margin-top: 0.7rem; }
.pass-mrz-out { margin-top: 0.9rem; }
.pass-mrz-row {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  padding: 0.45rem 0; font-size: 0.88rem;
}
.pass-mrz-row + .pass-mrz-row { border-top: 1px solid var(--line); }
.pass-ok-note { background: rgba(30, 125, 79, 0.1); color: var(--ok); font-weight: 600; }
.pass-ok-note svg { width: 13px; height: 13px; vertical-align: -2px; }

/* consent lists */
.pass-consent { margin-top: 0.9rem; }
.pass-consent h3 { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.pass-consent h3.yes { color: var(--ok); }
.pass-consent h3.no { color: var(--red); }
.pass-consent ul { margin: 0.5rem 0 0 1.1rem; padding: 0; }
.pass-consent li { font-size: 0.88rem; margin-top: 0.3rem; color: var(--navy); }

/* verify rows */
.pv-row {
  display: flex; align-items: center; gap: 0.85rem;
  background: var(--white); border-radius: 14px;
  border: 1px solid rgba(11, 42, 80, 0.05);
  box-shadow: var(--shadow-soft);
  padding: 0.85rem 1rem; margin-top: 0.65rem;
  font-size: 0.9rem; font-weight: 600;
  opacity: 0.55; transition: opacity 0.2s ease;
}
.pv-row.run, .pv-row.done { opacity: 1; }
.pv-ic {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  background: var(--pale); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.pv-ic svg { width: 15px; height: 15px; display: none; }
.pv-row.done .pv-ic { background: var(--ok); }
.pv-row.done .pv-ic svg { display: block; }
.pv-spin {
  display: none;
  width: 15px; height: 15px; border-radius: 50%;
  border: 2.4px solid var(--pale-sea); border-top-color: var(--navy);
  animation: pass-spin 0.8s linear infinite;
}
.pv-row.run .pv-spin { display: block; }
.pv-row.done .pv-spin { display: none; }
@keyframes pass-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pv-spin { animation: none; } }

/* ---------- full-screen QR ---------- */
.pass-qr-shell {
  background: linear-gradient(168deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  min-height: 100vh;
  min-height: 100dvh;
}
.pass-qr-main {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 0.6rem 1.15rem 2.4rem; text-align: center;
}
.pass-qr-title { color: var(--cream); font-size: 1.25rem; }
.pq-card {
  width: 100%; max-width: 400px; margin-top: 1rem;
  background: var(--white); color: var(--navy);
  border-radius: 24px; padding: 1.3rem 1.3rem 1.15rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.pq-box { width: 100%; padding: 4px; }
.pq-box svg { width: 100%; height: auto; }
.pq-cd {
  display: flex; align-items: center; justify-content: center; gap: 0.55rem;
  margin-top: 0.6rem; font-size: 0.84rem; font-weight: 700; color: var(--red);
}
.pq-ring { width: 26px; height: 26px; transform: rotate(-90deg); }
.pq-ring circle { fill: none; stroke-width: 4; }
.pq-ring .bgc { stroke: var(--pale); }
.pq-ring .fgc {
  stroke: var(--red); stroke-linecap: round;
  stroke-dasharray: 100.5; stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.9s linear;
}
.pq-name { margin-top: 0.7rem; font-size: 1.2rem; font-weight: 800; }
.pq-footer {
  margin-top: 0.3rem; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate);
}

/* ---------- scan history ---------- */
.pass-scan { margin-top: 0.75rem; }
.pass-scan-top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem; }
.pass-scan-top b { font-size: 0.92rem; }
.pass-scan-t { font-size: 0.74rem; color: var(--slate); flex: 0 0 auto; }
.pass-scan-ch { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-top: 0.55rem; }
.pass-scan-lbl { font-size: 0.72rem; font-weight: 700; color: var(--slate); }
.pass-chip-s { font-size: 0.7rem; padding: 0.28rem 0.7rem; cursor: default; }

@media (max-width: 370px) {
  .pass-prev { flex-direction: column; align-items: flex-start; }
  .pc-grid { grid-template-columns: 1fr; }
}
