/* ==========================================================================
   Account layer · login sheet, header account chip + menu, boarding pass,
   and the slim header used by My Bookings and Manage booking.
   Builds on tokens.css + app.css. Mobile: the login is a bottom sheet;
   from 900px it becomes a two-panel dialog with the peacock art panel.
   ========================================================================== */

/* Logged-in / logged-out swaps. <html data-auth> is set before first paint, so the header never flashes "Login". */
:root:not([data-auth="in"]) [data-auth="in"], :root[data-auth="in"] [data-auth="out"] { display: none !important; }

/* Full-width buttons may wrap: Tamil labels run long on a 390px screen */
.btn-block { white-space: normal; text-align: center; line-height: 1.25; padding-block: 6px; }

/* Destructive actions: kumkum outline, solid only on the final confirm */
.btn-danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 50%, transparent); }
.btn-danger:hover { background: var(--danger-soft); }
.btn-danger-solid { background: var(--kumkum-600); color: #fff; box-shadow: 0 3px 0 var(--kumkum-700); }
.btn-danger-solid:hover { background: var(--kumkum-700); }
.btn-danger-solid:active { box-shadow: 0 1px 0 var(--kumkum-700); }

/* ---- Slim sub-page header -------------------------------------------------- */
.sub-head .header-row { gap: var(--s-2); }
.sub-back {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); margin-right: auto; min-width: 0;
  color: var(--text); text-decoration: none; font-weight: var(--fw-semibold); font-size: var(--fs-sm); white-space: nowrap;
}
.sub-back:hover { color: var(--link); }
.sub-brand { display: inline-flex; align-items: center; gap: var(--s-2); font-family: var(--font-display); font-weight: var(--fw-black); font-size: var(--fs-lg); color: inherit; text-decoration: none; }
.sub-brand svg { width: 32px; height: 32px; }
@media (max-width: 519px) { .sub-brand b { display: none; } }
@media (min-width: 768px) { .sub-head .header-row { gap: var(--s-3); } }

/* ---- Avatar, account chip ----------------------------------------------- */
.avatar {
  display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink);
  font-family: var(--font-display); font-weight: var(--fw-black); font-size: 13px; letter-spacing: .02em; line-height: 1;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--cta);
}
.avatar-lg { width: 48px; height: 48px; font-size: 18px; }
.acct-chip {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); padding: 0 var(--s-3) 0 6px;
  border-radius: var(--r-pill); border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--text);
  font-weight: var(--fw-semibold); font-size: var(--fs-sm); white-space: nowrap;
}
.acct-chip:hover { background: var(--surface-sunk); }
.acct-chip > .icon { width: 16px; height: 16px; color: var(--text-muted); transition: transform var(--dur) var(--ease); }
.acct-chip[aria-expanded="true"] > .icon { transform: rotate(180deg); }
.acct-avatar { display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); padding: 0; border: 0; border-radius: 50%; background: transparent; }
.acct-avatar:hover .avatar { background: var(--brand-deep); }

/* ---- Account menu --------------------------------------------------------- */
.acct-menu {
  position: fixed; z-index: 70; width: min(320px, calc(100vw - 24px)); padding: var(--s-2);
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-3);
  transform-origin: top right; animation: menu-in 200ms var(--ease);
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.am-head { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-3) var(--s-4); }
.am-head b { display: block; font-family: var(--font-display); font-size: var(--fs-md); line-height: 1.2; }
.am-head small { font-size: var(--fs-xs); color: var(--text-muted); }
.am-trip {
  position: relative; display: grid; gap: 2px; margin: 0 var(--s-1) var(--s-2); padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md); background: var(--brand-soft); color: var(--text); text-decoration: none; border-left: 4px solid var(--cta);
}
.am-trip:hover { background: var(--brand-soft-2); }
.am-trip small { font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--zari-text); letter-spacing: .06em; }
:root:lang(en) .am-trip small { text-transform: uppercase; }
.am-trip b { font-family: var(--font-display); font-size: var(--fs-lg); line-height: 1.2; }
.am-trip span { font-size: var(--fs-sm); color: var(--text-2); }
.am-trip em {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 2px 10px;
  border-radius: var(--r-pill); background: var(--surface); color: var(--accent-text); font-style: normal; font-size: var(--fs-xs); font-weight: var(--fw-semibold);
}
.am-trip em .icon { width: 13px; height: 13px; }
.am-links a, .am-logout {
  display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: 48px; padding: 0 var(--s-3);
  border: 0; border-radius: var(--r-sm); background: none; color: var(--text); text-decoration: none; font-size: var(--fs-sm); font-weight: var(--fw-medium); text-align: left;
}
.am-links a:hover, .am-logout:hover { background: var(--surface-sunk); }
.am-links .icon { color: var(--link); }
.am-count {
  display: grid; place-items: center; margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: var(--r-pill); background: var(--cta); color: var(--cta-ink); font-size: 13px; font-weight: var(--fw-bold);
}
.am-logout { margin-top: var(--s-1); border-top: 1px solid var(--line); border-radius: 0 0 var(--r-sm) var(--r-sm); color: var(--danger); }
.am-logout .icon { color: var(--danger); }

/* Homepage drawer, logged in */
.drawer-me { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3); margin-bottom: var(--s-3); border-radius: var(--r-md); background: var(--brand-soft); }
.drawer-me b { display: block; font-family: var(--font-display); font-size: var(--fs-md); line-height: 1.2; }
.drawer-me small { font-size: var(--fs-xs); color: var(--text-muted); }

/* ---- Login sheet ------------------------------------------------------------ */
.login {
  border: 0; padding: 0; background: var(--surface); color: var(--text);
  width: 100%; max-width: 100%; max-height: 94dvh; margin: auto 0 0;
  border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--sh-3); overflow: hidden;
}
.login[open] { display: grid; grid-template-columns: minmax(0, 1fr); animation: sheet-in 280ms var(--ease); }
.login::backdrop { background: var(--scrim); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
@media (min-width: 640px) { .login { width: 460px; margin: auto; border-radius: var(--r-xl); } }
@media (min-width: 900px) {
  .login { width: 880px; max-height: min(700px, 94dvh); }
  .login[open] { grid-template-columns: 360px minmax(0, 1fr); min-height: 610px; }
}
.lg-main { position: relative; overflow-y: auto; overscroll-behavior: contain; max-height: 94dvh; padding: 0 var(--s-5) calc(var(--s-5) + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 900px) { .lg-main { max-height: min(700px, 94dvh); padding-inline: var(--s-7); } }
.lg-main > .zari-band { height: 8px; background-size: 22px 8px; margin-inline: calc(var(--s-5) * -1); }
@media (min-width: 900px) { .lg-main > .zari-band { margin-inline: calc(var(--s-7) * -1); } }
.lg-top { display: flex; align-items: center; gap: var(--s-2); height: 56px; margin-inline: calc(var(--s-2) * -1); }
.lg-back { margin-right: auto; }
.lg-close { margin-left: auto; }
.lg-back:not([hidden]) + .lg-dots { margin-left: 0; }
.lg-dots { display: flex; gap: 6px; margin: 0 auto 0 var(--s-2); }
.login[data-step="phone"] .lg-dots { margin-left: var(--s-2); }
.lg-dots li { width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--line-strong); transition: width 300ms var(--spring), background var(--dur) var(--ease); }
.lg-dots li.on { background: var(--brand); }
.lg-dots li.now { width: 24px; background: var(--cta); }

/* art panel (desktop) */
.lg-art { display: none; }
@media (min-width: 900px) {
  .lg-art {
    position: relative; overflow: hidden; display: flex; flex-direction: column; padding: var(--s-6) var(--s-5) 0; color: #fff;
    background:
      radial-gradient(70% 45% at 70% 100%, rgb(244 163 0 / .28), transparent 70%),
      radial-gradient(120% 100% at 0% 0%, var(--peacock-600), var(--peacock-950) 78%);
  }
}
.lg-art .kolam { background: rgb(212 168 74 / .09); }
.lg-art > *:not(.kolam) { position: relative; }
.lg-art-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: var(--fw-black); font-size: var(--fs-lg); letter-spacing: .02em; }
.lg-art-brand svg { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 0 2px rgb(255 255 255 / .25); }
.lg-art-title { margin-top: var(--s-7); font-family: var(--font-display); font-weight: var(--fw-black); font-size: var(--fs-2xl); line-height: 1.15; }
:root:lang(ta) .lg-art-title { font-size: var(--fs-xl); line-height: 1.35; }
.lg-perks { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.lg-perks li { display: flex; align-items: flex-start; gap: var(--s-3); font-size: var(--fs-sm); line-height: 1.4; color: #e3f0f5; }
.lg-perks .icon { width: 30px; height: 30px; padding: 7px; border-radius: 9px; background: rgb(255 255 255 / .1); color: var(--marigold-300); }
.lg-tickets { width: calc(100% + 24px); margin: auto -12px 0; }
.lg-tickets .lg-front { animation: tk-float 6s ease-in-out infinite; transform-box: fill-box; }
@keyframes tk-float { 50% { translate: 0 -5px; } }

/* steps */
.lg-step { padding-bottom: var(--s-2); }
.lg-step.in-fwd { animation: step-fwd 320ms var(--ease); }
.lg-step.in-back { animation: step-back 320ms var(--ease); }
@keyframes step-fwd { from { opacity: 0; transform: translateX(28px); } }
@keyframes step-back { from { opacity: 0; transform: translateX(-28px); } }
.lg-step h2 { font-size: var(--fs-2xl); }
@media (min-width: 900px) { .lg-step h2 { font-size: var(--fs-3xl); } :root:lang(ta) .lg-step h2 { font-size: var(--fs-2xl); } }
.lg-echo { margin-top: 2px; font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-md); color: var(--accent-text); }
.lg-lead { margin-top: var(--s-2); color: var(--text-2); font-size: var(--fs-sm); }
.lg-lead b { color: var(--text); white-space: nowrap; }
.lg-why {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: var(--s-3); padding: 4px 12px 4px 8px;
  border-radius: var(--r-pill); background: var(--brand-soft); color: var(--link); font-size: var(--fs-xs); font-weight: var(--fw-semibold);
}
.lg-why + h2 { margin-top: 0; }
.lg-label { display: block; margin: var(--s-5) 0 var(--s-2); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }

.lg-phone {
  display: flex; align-items: stretch; min-height: 60px; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.lg-phone:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.lg-phone[data-invalid="true"] { border-color: var(--danger); }
.lg-cc {
  display: inline-flex; align-items: center; gap: var(--s-2); padding: 0 var(--s-3) 0 var(--s-4); border-right: 1.5px solid var(--line);
  font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-lg); color: var(--text-2);
}
.lg-cc .tri { width: 20px; height: 14px; border-radius: 3px; box-shadow: 0 0 0 1px var(--line); background: linear-gradient(#ff9933 0 33.3%, #fff 33.3% 66.6%, #138808 66.6%); position: relative; }
.lg-cc .tri::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; border: 1px solid #000080; }
.lg-phone input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 var(--s-4);
  font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-xl); letter-spacing: .04em; font-variant-numeric: tabular-nums;
}
.lg-phone input::placeholder { color: var(--text-muted); opacity: .55; font-weight: var(--fw-semibold); }

.lg-check { position: relative; display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-4); min-height: var(--tap); font-size: var(--fs-sm); color: var(--text-2); cursor: pointer; }
.lg-check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; }
.lg-box { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line-strong); background: var(--surface); transition: all var(--dur) var(--ease); }
.lg-box .icon { width: 14px; height: 14px; stroke-width: 3; color: var(--brand-ink); opacity: 0; transform: scale(.5); transition: all 220ms var(--spring); }
.lg-check input:checked + .lg-box { background: var(--brand); border-color: var(--brand); }
.lg-check input:checked + .lg-box .icon { opacity: 1; transform: none; }
.lg-check input:focus-visible + .lg-box { outline: 3px solid var(--focus); outline-offset: 2px; }
.lg-wa-ic { color: #128c4b; }
:root[data-theme="dark"] .lg-wa-ic { color: #25d366; }

.lg-submit { margin-top: var(--s-4); font-family: var(--font-display); font-weight: var(--fw-black); }
.lg-submit:disabled { cursor: default; opacity: .55; box-shadow: none; transform: none; }
.lg-submit.is-busy { opacity: 1; }
.lg-spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin 700ms linear infinite; }
.lg-submit.is-busy .lg-spin { display: inline-block; }
.lg-demo {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: var(--tap); margin-top: var(--s-3);
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); color: var(--text-2); font-size: var(--fs-sm);
}
.lg-demo b { color: var(--link); font-variant-numeric: tabular-nums; }
.lg-demo:hover { border-color: var(--link); }
.lg-fine { margin-top: var(--s-4); font-size: var(--fs-xs); color: var(--text-muted); text-align: center; }
.lg-link { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 4px; border: 0; background: none; color: var(--link); font-weight: var(--fw-semibold); font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }
.lg-link .icon { width: 15px; height: 15px; }

/* OTP: six painted boxes over one real input */
.otp { position: relative; margin-top: var(--s-5); }
.otp input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; opacity: 0; border: 0; cursor: text; font-size: 16px; }
.otp input:disabled { cursor: not-allowed; }
.otp-boxes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-2); }
.otp-boxes span {
  position: relative; display: grid; place-items: center; height: 60px; border-radius: var(--r-md);
  border: 1.5px solid var(--line-strong); background: var(--surface);
  font-family: var(--font-display); font-weight: var(--fw-black); font-size: var(--fs-2xl); font-variant-numeric: tabular-nums; line-height: 1;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.otp-boxes span.filled { border-color: var(--brand); background: var(--brand-soft); animation: pop 200ms var(--spring); }
.otp-boxes span.caret { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
.otp-boxes span.caret:not(.filled)::after { content: ""; position: absolute; left: 50%; top: 50%; width: 2px; height: 26px; margin: -13px 0 0 -1px; background: var(--focus); animation: caret 1s steps(1) infinite; }
@keyframes pop { 50% { transform: scale(1.08); } }
@keyframes caret { 50% { opacity: 0; } }
.otp[data-state="error"] .otp-boxes { animation: shake 380ms var(--ease); }
.otp[data-state="error"] .otp-boxes span { border-color: var(--danger); }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.otp[data-state="ok"] .otp-boxes span { border-color: var(--success); background: var(--success-soft); color: var(--success); animation: pop 260ms var(--spring) both; }
.otp[data-state="ok"] .otp-boxes span:nth-child(2) { animation-delay: 40ms; }
.otp[data-state="ok"] .otp-boxes span:nth-child(3) { animation-delay: 80ms; }
.otp[data-state="ok"] .otp-boxes span:nth-child(4) { animation-delay: 120ms; }
.otp[data-state="ok"] .otp-boxes span:nth-child(5) { animation-delay: 160ms; }
.otp[data-state="ok"] .otp-boxes span:nth-child(6) { animation-delay: 200ms; }
.lg-resend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); min-height: 40px; margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--text-muted); }
.lg-hint { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: var(--s-4); font-size: var(--fs-xs); color: var(--text-muted); }
.lg-hint .icon { color: var(--success); }

/* the mock SMS / WhatsApp notification */
/* sits at the top of the screen, above the sheet, the way a phone shows an incoming message */
.lg-sms {
  position: fixed; z-index: 5; top: calc(env(safe-area-inset-top, 0px) + 12px); left: 50%; translate: -50% 0; width: min(440px, calc(100vw - 24px));
  display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3); text-align: left;
  border-radius: 18px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 90%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: var(--sh-3);
  animation: sms-in 460ms var(--spring);
}
.lg-sms.out { animation: sms-out 240ms var(--ease) forwards; }
@keyframes sms-in { from { opacity: 0; transform: translateY(-36px) scale(.96); } }
@keyframes sms-out { to { opacity: 0; transform: translateY(-24px) scale(.97); } }
.lg-sms-app { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px; background: var(--leaf-500); color: #fff; }
.lg-sms[data-via="wa"] .lg-sms-app { background: #25d366; }
.lg-sms-body { flex: 1; min-width: 0; display: grid; line-height: 1.3; font-size: var(--fs-xs); color: var(--text-2); }
.lg-sms-body small { color: var(--text-muted); font-size: var(--fs-xs); }
.lg-sms-body b { color: var(--text); font-size: var(--fs-sm); }
.lg-sms-body span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lg-sms-fill { flex: none; padding: 8px 12px; border-radius: var(--r-pill); background: var(--brand); color: var(--brand-ink); font-size: var(--fs-xs); font-weight: var(--fw-bold); }
.lg-sms:hover .lg-sms-fill { background: var(--brand-deep); }

/* profile */
.lg-field { display: grid; gap: 6px; margin-top: var(--s-4); }
.lg-field label { font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.lg-field label small { font-weight: var(--fw-regular); color: var(--text-muted); font-size: var(--fs-xs); }
.lg-field input {
  min-height: 52px; padding: 0 var(--s-4); border: 1.5px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface);
  font-size: var(--fs-md); outline: 0; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.lg-field input:focus { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.lg-field input[aria-invalid="true"] { border-color: var(--danger); }
.lg-gender { border: 0; padding: 0; margin: var(--s-4) 0 0; min-width: 0; }
.lg-gender legend { padding: 0; margin-bottom: 6px; font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.lg-gender .segmented { display: flex; width: 100%; }
.lg-gender .segmented label { flex: 1; }
.lg-gender .segmented span { justify-content: center; width: 100%; }
.lg-help { display: flex; gap: 6px; align-items: flex-start; margin-top: var(--s-2); font-size: var(--fs-xs); color: var(--text-muted); }
.lg-help .icon { color: var(--festive); flex: none; margin-top: 2px; }

/* welcome */
.lg-done { text-align: center; padding-top: var(--s-2); }
.lg-ok { position: relative; width: 92px; height: 92px; margin: var(--s-5) auto var(--s-4); }
.lg-ok svg { position: relative; width: 100%; height: 100%; overflow: visible; }
.lg-ok circle { fill: var(--success-soft); stroke: var(--success); stroke-width: 2.5; transform-origin: center; animation: ring-in 420ms var(--spring) both; }
.lg-ok path { fill: none; stroke: var(--success); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 520ms var(--ease) 260ms forwards; }
@keyframes ring-in { from { transform: scale(.4); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
/* eight pulli dots bloom out into a kolam ring */
.lg-ok i { --a: 0deg; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: var(--cta); opacity: 0; animation: pulli 900ms var(--spring) 160ms forwards; }
.lg-ok i:nth-child(2) { --a: 45deg; background: var(--festive); }
.lg-ok i:nth-child(3) { --a: 90deg; background: var(--brand); }
.lg-ok i:nth-child(4) { --a: 135deg; }
.lg-ok i:nth-child(5) { --a: 180deg; background: var(--festive); }
.lg-ok i:nth-child(6) { --a: 225deg; background: var(--brand); }
.lg-ok i:nth-child(7) { --a: 270deg; }
.lg-ok i:nth-child(8) { --a: 315deg; background: var(--festive); }
@keyframes pulli { from { opacity: 0; transform: rotate(var(--a)) translateY(0) scale(.3); } to { opacity: 1; transform: rotate(var(--a)) translateY(-64px) scale(1); } }
.lg-done h2 { outline: 0; }
.lg-done .lg-lead { max-width: 34ch; margin-inline: auto; }
.lg-trip {
  display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-5); padding: var(--s-3) var(--s-4); text-align: left;
  border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-2); color: var(--text); text-decoration: none;
}
.lg-trip:hover { border-color: var(--brand); }
.lg-trip-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--brand-soft); color: var(--link); }
.lg-trip > span:nth-child(2) { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.lg-trip small { font-size: var(--fs-xs); color: var(--zari-text); font-weight: var(--fw-semibold); }
.lg-trip b { font-family: var(--font-display); font-size: var(--fs-md); }
.lg-trip span span { font-size: var(--fs-sm); color: var(--text-muted); }
.lg-trip > .icon { color: var(--text-muted); }
.lg-go { display: grid; gap: var(--s-2); margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--text-2); }
.lg-go-bar { display: block; height: 4px; border-radius: 4px; background: var(--surface-sunk); overflow: hidden; }
.lg-go-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--cta); animation: go 2.2s linear forwards; }
@keyframes go { to { width: 100%; } }
.lg-done-actions { display: grid; gap: var(--s-2); margin-top: var(--s-5); }

/* ---- Boarding pass ------------------------------------------------------- */
.pass { border: 0; padding: 0; background: transparent; width: min(400px, calc(100vw - 24px)); max-width: none; max-height: 96dvh; overflow: visible; }
.pass::backdrop { background: rgb(4 32 46 / .84); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.pass[open] { animation: pass-in 380ms var(--spring); }
@keyframes pass-in { from { opacity: 0; transform: translateY(40px) scale(.94); } }
.pass-card { position: relative; max-height: 96dvh; overflow-y: auto; border-radius: 24px; background: #fffcf7; color: #1f1a15; box-shadow: 0 40px 80px -24px rgb(0 0 0 / .7); }
.pass-card :focus-visible { outline-color: #1478a6; }
.pass-head { display: flex; align-items: center; gap: 12px; padding: 12px 8px 12px 18px; background: #0a5276; color: #fff; }
.pass-head > div { min-width: 0; }
.pass-head h2 { font-size: 17px; line-height: 1.15; }
.pass-head small { display: block; font-size: 13px; color: #cfe7f1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pass-head .icon-btn { margin-left: auto; color: #fff; flex: none; }
.pass-head .icon-btn:hover { background: rgb(255 255 255 / .12); }
.pass-logo { flex: none; width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 2px rgb(255 255 255 / .25); }
.pass-live { position: relative; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 18px; overflow: hidden; background: #f4a300; color: #2a1a00; font-size: 13px; }
.pass-live > *:not(.pass-band) { position: relative; }
.pass-live { height: 44px; padding-bottom: 8px; }
.pass-band { position: absolute; inset: auto 0 0 0; height: 8px; background: #04202e url("../assets/zari.svg") repeat-x 0 0 / 22px 8px; animation: band 1.1s linear infinite; }
@keyframes band { to { background-position: 22px 0; } }
.pass-dot { width: 8px; height: 8px; border-radius: 50%; background: #9c1f17; animation: caret 1.2s steps(1) infinite; }
.pass-clock { margin-left: auto; font-family: var(--font-mono); font-weight: 600; font-size: 14px; letter-spacing: .04em; }
.pass-route { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; padding: 18px 18px 0; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.15; }
.pass-arrow { color: #b3261e; }
.pass-when { text-align: center; font-size: 14px; color: #6e6151; margin-top: 2px; }
.pass-qr { display: grid; place-items: center; margin: 14px auto 0; }
.pass-qr img { width: 220px; height: 220px; padding: 10px; background: #fff; border-radius: 14px; border: 1px solid #e8ddcb; }
.pass-pnr { display: grid; justify-items: center; margin-top: 10px; }
.pass-pnr small { font-size: 13px; font-weight: 600; letter-spacing: .16em; color: #6e6151; }
.pass-pnr b { font-family: var(--font-mono); font-weight: 600; font-size: 26px; letter-spacing: .16em; line-height: 1.2; }
.pass-rows { display: grid; gap: 10px; margin: 14px 18px 0; padding-top: 12px; border-top: 1px solid #e8ddcb; }
.pass-rows dt { font-size: 13px; font-weight: 600; letter-spacing: .06em; color: #6e6151; text-transform: uppercase; }
:lang(ta) .pass-rows dt { text-transform: none; letter-spacing: 0; }
.pass-rows dd { margin: 2px 0 0; font-weight: 600; font-size: 14px; }
.pass-rows dd span { display: inline-grid; margin: 2px 14px 2px 0; font-family: var(--font-display); font-size: 20px; font-weight: 800; line-height: 1.1; }
.pass-rows dd span small { font-family: var(--font-body); font-size: 13px; font-weight: 500; color: #6e6151; }
.pass-tip { display: flex; align-items: center; gap: 8px; margin: 14px 18px 0; padding: 10px 12px; border-radius: 12px; background: #ffefc7; color: #8a4b00; font-size: 13px; line-height: 1.35; }
.pass-tip .icon { flex: none; }
.pass-note { padding: 10px 18px 18px; text-align: center; font-size: 13px; color: #6e6151; }
