/* PassOn. NxtDuo light teal, system fonts, mobile first (390 px), then wide screens.
   The one memorable thing: every listing is drawn as a real ticket with a torn stub. */

:root {
  --bg: #f3f8f6;
  --paper: #ffffff;
  --ink: #0b2a26;
  --muted: #4d6b65;
  --line: rgba(15, 76, 69, 0.14);
  --deep: #0f4c45;
  --deep-2: #0b3b35;
  --teal: #2a9d8f;
  --mint: #3fe0b0;
  --mint-text: #13866f;
  --mint-wash: #dcf6ee;
  --warn-bg: #fff4e0;
  --warn-ink: #7a4300;
  --bad: #b3261e;
  --wa: #25d366;

  /* category tints: background / ink (ink passes 4.5:1 on its tint) */
  --bus-bg: #dcf6ee;   --bus-ink: #0f5c50;
  --movie-bg: #ffe9dc; --movie-ink: #8a3b0c;
  --sports-bg: #e4f2d8; --sports-ink: #33621a;
  --event-bg: #ece7fb; --event-ink: #4f3699;
  --other-bg: #e6eef0; --other-ink: #34525b;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  --pad: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: var(--deep); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 640px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

h1, h2, h3 { line-height: 1.12; margin: 0 0 0.4em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 11vw, 4.6rem); font-weight: 800; letter-spacing: -0.045em; }
h2 { font-size: 1.5rem; font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* ---------- header / footer ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(243, 248, 246, 0.9);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; }
.brand svg { width: 34px; height: 34px; }
.foot { margin-top: 64px; padding: 32px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 14px; }
.foot nav a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.foot nav a:hover { text-decoration: underline; }
.foot p { margin: 0 0 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 24px;
  border-radius: 16px; border: 0;
  font: inherit; font-weight: 700; font-size: 1.05rem; text-decoration: none;
  cursor: pointer; transition: transform 0.15s var(--ease), background-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primary { background: var(--deep); color: #fff; }
.btn-primary:hover { background: var(--deep-2); }
.btn-mint { background: var(--mint); color: var(--ink); }
.btn-mint:hover { background: #32cfa1; }
.btn-ghost { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--teal); }
.btn-wa { background: var(--wa); color: #06331a; }
.btn-wa:hover { background: #1fc05b; }
.btn-danger { background: var(--paper); color: var(--bad); box-shadow: inset 0 0 0 1.5px rgba(179, 38, 30, 0.35); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 0.95rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.link-btn { background: none; border: 0; padding: 10px 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; min-height: 44px; }

/* ---------- home ---------- */
.hero { padding-top: 28px; padding-bottom: 8px; }
.hero h1 { margin-bottom: 14px; }
.hero h1 span { display: block; color: var(--mint-text); }
.hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 30ch; margin-bottom: 24px; }
.hero-actions { display: grid; gap: 12px; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; counter-reset: s; }
.steps li { display: flex; gap: 12px; align-items: baseline; color: var(--muted); font-size: 0.98rem; }
.steps li::before {
  counter-increment: s; content: counter(s);
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: inline-grid; place-items: center; transform: translateY(6px);
  background: var(--mint-wash); color: var(--mint-text); font-weight: 800; font-size: 0.85rem;
}
.steps b { color: var(--ink); font-weight: 650; }

.browse { padding-top: 32px; scroll-margin-top: 64px; }
.browse h2 { margin-bottom: 14px; }
.search {
  position: relative; display: block; margin-bottom: 12px;
}
.search svg { position: absolute; left: 16px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 56px; padding: 0 16px 0 48px;
  border-radius: 16px; border: 1.5px solid var(--line); background: var(--paper);
  font: inherit; color: var(--ink);
}
.search input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(42, 157, 143, 0.15); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 calc(var(--pad) * -1); padding-left: var(--pad); padding-right: var(--pad); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  font: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.chip svg { width: 20px; height: 20px; }
.chip[aria-pressed="true"] { background: var(--deep); border-color: var(--deep); color: #fff; }
.result-note { color: var(--muted); font-size: 0.92rem; margin: 6px 0 14px; min-height: 1.4em; }
.cards { display: grid; gap: 14px; }

/* ---------- the ticket ---------- */
.ticket {
  --tint: var(--other-bg); --tint-ink: var(--other-ink);
  position: relative; display: grid; grid-template-columns: 92px 1fr;
  background: var(--paper); color: var(--ink); text-decoration: none;
  border-radius: var(--r-lg);
  box-shadow: 0 1px 0 rgba(15, 76, 69, 0.06), 0 8px 24px -14px rgba(15, 76, 69, 0.35);
  /* the two half-circle notches where the stub tears off */
  -webkit-mask: radial-gradient(circle 11px at 92px 0, #0000 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 11px at 92px 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 11px at 92px 0, #0000 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 11px at 92px 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  transition: transform 0.2s var(--ease);
}
a.ticket:hover { transform: translateY(-2px); }
a.ticket:active { transform: scale(0.99); }
.ticket[data-cat="bus"] { --tint: var(--bus-bg); --tint-ink: var(--bus-ink); }
.ticket[data-cat="movie"] { --tint: var(--movie-bg); --tint-ink: var(--movie-ink); }
.ticket[data-cat="sports"] { --tint: var(--sports-bg); --tint-ink: var(--sports-ink); }
.ticket[data-cat="event"] { --tint: var(--event-bg); --tint-ink: var(--event-ink); }
.stub {
  background: var(--tint); color: var(--tint-ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 16px 6px; text-align: center; font-size: 0.74rem; font-weight: 700; line-height: 1.2;
  border-right: 2px dashed rgba(255, 255, 255, 0.95);
}
.stub svg { width: 46px; height: 46px; }
.t-body { padding: 16px 16px 16px 18px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.t-title { font-size: 1.1rem; font-weight: 750; letter-spacing: -0.015em; line-height: 1.25; margin: 0; overflow-wrap: anywhere; }
.t-sub { color: var(--muted); font-size: 0.92rem; overflow-wrap: anywhere; }
.t-when { font-size: 0.95rem; font-weight: 600; }
.t-left { margin-left: 4px; white-space: nowrap; color: var(--mint-text); font-weight: 700; }
.t-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.t-seats { color: var(--muted); font-size: 0.92rem; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price .ask { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price .paid { color: var(--muted); text-decoration: line-through; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.verified { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 4px; padding: 3px 10px 3px 6px; border-radius: 999px; background: var(--mint-wash); color: var(--mint-text); font-size: 0.82rem; font-weight: 700; }
.verified svg { width: 16px; height: 16px; }

.empty { text-align: center; padding: 36px 20px; background: var(--paper); border-radius: var(--r-lg); border: 1.5px dashed var(--line); }
.empty svg { width: 64px; height: 64px; margin: 0 auto 12px; color: var(--teal); }
.empty .row { display: grid; gap: 10px; margin-top: 18px; }

.mine { margin-top: 28px; padding: 16px; border-radius: var(--r-md); background: var(--mint-wash); }
.mine h3 { margin-bottom: 8px; }
.mine ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.mine a { display: block; padding: 8px 0; font-weight: 600; }

/* ---------- listing page ---------- */
.page { padding-top: 16px; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--muted); text-decoration: none; font-weight: 600; }
.back svg { width: 20px; height: 20px; }
.ticket-big { grid-template-columns: 1fr; margin: 8px 0 18px;
  -webkit-mask: radial-gradient(circle 12px at 0 120px, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 12px at 100% 120px, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 12px at 0 120px, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 12px at 100% 120px, #0000 98%, #000) right / 51% 100% no-repeat;
}
.ticket-big .stub { height: 120px; flex-direction: row; gap: 14px; justify-content: flex-start; padding: 0 22px; font-size: 0.95rem; border-right: 0; border-bottom: 2px dashed rgba(255, 255, 255, 0.95); }
.ticket-big .stub svg { width: 64px; height: 64px; }
.ticket-big .t-body { padding: 20px 22px 22px; gap: 6px; }
.ticket-big .t-title { font-size: 1.5rem; }
.ticket-big .price .ask { font-size: 2rem; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 14px 0 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.facts div { min-width: 0; }
.facts dt { color: var(--muted); font-size: 0.82rem; }
.facts dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: 0.9rem; background: var(--other-bg); color: var(--other-ink); }
.status-pill.ok { background: var(--mint-wash); color: var(--mint-text); }
.action-box { display: grid; gap: 10px; }
.ts { min-height: 0; display: flex; justify-content: center; }
.ts:empty { display: none; }
.safety { margin-top: 26px; padding: 20px; border-radius: var(--r-lg); background: var(--paper); border: 1.5px solid var(--line); }
.safety h2 { font-size: 1.2rem; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.checks svg { width: 24px; height: 24px; color: var(--mint-text); margin-top: 1px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
details.report { margin-top: 18px; }
details.report summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--muted); font-weight: 600; }
.reasons { display: grid; gap: 8px; margin: 8px 0 12px; }
.radio { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: 12px; background: var(--paper); border: 1.5px solid var(--line); cursor: pointer; }
.radio input { width: 20px; height: 20px; accent-color: var(--deep); flex: none; }
.radio:has(input:checked) { border-color: var(--deep); }

/* ---------- forms ---------- */
.form { display: grid; gap: 22px; margin-top: 8px; }
.field { display: grid; gap: 7px; }
.field > label, .legend { font-weight: 700; font-size: 1rem; }
.hint { color: var(--muted); font-size: 0.88rem; margin-top: -3px; }
.input, .field input[type="text"], .field input[type="tel"], .field input[type="date"], .field input[type="time"], .field input[type="number"], textarea.input {
  width: 100%; min-height: 54px; padding: 12px 14px;
  border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper);
  font: inherit; color: var(--ink); -webkit-appearance: none; appearance: none;
}
textarea.input { min-height: 84px; resize: vertical; }
.field input:focus, .input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(42, 157, 143, 0.15); }
.field.has-error input, .field.has-error .tiles, .field.has-error .photo { border-color: var(--bad); }
.err { color: var(--bad); font-size: 0.9rem; font-weight: 600; }
.err:empty { display: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.prefix { position: relative; }
.prefix span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.prefix input { padding-left: 34px !important; }
.prefix.wide input { padding-left: 52px !important; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-radius: 16px; border: 1.5px solid transparent; }
.tile { position: relative; }
.tile input { position: absolute; opacity: 0; inset: 0; }
.tile label {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 92px; padding: 10px 6px; border-radius: 16px; text-align: center;
  background: var(--paper); border: 1.5px solid var(--line); cursor: pointer;
  font-size: 0.86rem; font-weight: 650; line-height: 1.2;
}
.tile svg { width: 34px; height: 34px; color: var(--muted); }
.tile input:checked + label { border-color: var(--deep); box-shadow: inset 0 0 0 1.5px var(--deep); background: var(--mint-wash); }
.tile input:checked + label svg { color: var(--deep); }
.tile input:focus-visible + label { outline: 3px solid var(--teal); outline-offset: 2px; }
.note { padding: 12px 14px; border-radius: 12px; background: var(--warn-bg); color: var(--warn-ink); font-size: 0.92rem; font-weight: 550; }
.note.calm { background: var(--mint-wash); color: var(--bus-ink); }
.photo {
  display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 14px;
  border-radius: 16px; border: 1.5px dashed rgba(15, 76, 69, 0.35); background: var(--paper); cursor: pointer;
}
.photo svg { width: 34px; height: 34px; color: var(--teal); flex: none; }
.photo img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; flex: none; }
.photo b { display: block; }
.photo input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; cursor: pointer; padding: 4px 0; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--deep); }
.form-error { padding: 12px 14px; border-radius: 12px; background: #fde8e6; color: var(--bad); font-weight: 600; }
.form-error:empty { display: none; }

.done { text-align: center; padding: 20px 0 0; }
.done .big-tick { width: 84px; height: 84px; margin: 0 auto 14px; color: var(--mint-text); }
.done .row { display: grid; gap: 10px; margin: 22px 0 10px; text-align: left; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600;
  transition: opacity 0.2s, transform 0.2s var(--ease); pointer-events: none; z-index: 50; max-width: calc(100% - 40px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- prose pages ---------- */
.prose { padding-top: 20px; }
.prose h1 { font-size: clamp(2rem, 8vw, 3rem); }
.prose h2 { margin-top: 1.6em; font-size: 1.3rem; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: 0.5em; }
.prose .box { padding: 16px 18px; border-radius: var(--r-md); background: var(--paper); border: 1.5px solid var(--line); }

/* ---------- admin ---------- */
.admin-row { background: var(--paper); border-radius: var(--r-md); border: 1.5px solid var(--line); padding: 14px; display: grid; gap: 8px; }
.admin-row.flag { border-color: var(--bad); }
.admin-row .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-row img { width: 120px; border-radius: 8px; cursor: zoom-in; }
.admin-row ul { margin: 0; padding-left: 1.2em; font-size: 0.92rem; }
.tabs { display: flex; gap: 8px; margin: 10px 0 16px; }

/* ---------- wide screens ---------- */
@media (min-width: 900px) {
  :root { --pad: 40px; }
  .top .wrap { height: 76px; }
  .hero { padding-top: 64px; padding-bottom: 24px; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: end; }
  .hero .lead { font-size: 1.25rem; }
  .hero-actions { grid-template-columns: auto auto; justify-content: start; }
  .steps { margin: 0; padding: 26px; background: var(--paper); border-radius: var(--r-lg); border: 1.5px solid var(--line); gap: 16px; }
  .browse { padding-top: 56px; }
  .browse-head { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; align-items: center; }
  .browse-head .search { margin: 0; }
  .chips { margin: 14px 0 0; padding-left: 2px; padding-right: 2px; flex-wrap: wrap; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .page .wrap.narrow, .narrow { max-width: 680px; }
  .empty .row { grid-template-columns: auto auto; justify-content: center; }
}
@media (min-width: 1200px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.honest { margin: 14px 0 0; }
.form-h { font-size: clamp(2rem, 8vw, 2.8rem); letter-spacing: -0.035em; }
.field { align-content: start; }
.field > label.photo, .field > label.check { font-weight: 400; }
.photo b { font-weight: 700; }
p.facts { display: block; margin: 12px 0 0; }
.tile input { pointer-events: none; }
.done .ticket { text-align: left; }
.empty { grid-column: 1 / -1; }
.empty .btn svg { width: 22px; height: 22px; margin: 0; }
#acts { margin-top: 16px; }

/* ---------- v1.1: requests ("Ask for a ticket") ---------- */
.ask-line { margin: 14px 0 0; }
.ask-line a, .more-line a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; }
.more-line { margin: 14px 0 0; text-align: center; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 16px; background: var(--paper); border: 1.5px solid var(--line); }
.seg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
  min-height: 48px; padding: 6px 10px; border: 0; border-radius: 12px; background: transparent; color: var(--muted);
  font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; line-height: 1.2; text-align: center;
}
.seg-btn[aria-selected="true"] { background: var(--deep); color: #fff; }
.badge { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--warn-bg); color: var(--warn-ink); font-size: 0.82rem; font-weight: 800; }
.ask-strip { display: grid; gap: 12px; padding: 16px; margin-bottom: 14px; border-radius: var(--r-md); background: var(--warn-bg); color: var(--warn-ink); }
.ask-strip p { margin: 0; font-weight: 600; }
.ticket.wanted .stub { background: var(--warn-bg); color: var(--warn-ink); }
.price .upto { color: var(--muted); font-size: 0.88rem; font-weight: 600; }
.matches { margin-top: 22px; text-align: left; }
.matches-h { font-size: 1.15rem; }
.matches .cards { gap: 12px; }
#actions .note { margin: 0; }
.match { display: grid; gap: 8px; }
.tabs { flex-wrap: wrap; }
@media (min-width: 900px) {
  .seg { max-width: 460px; }
  .ask-strip { grid-template-columns: 1fr auto; align-items: center; }
  .matches .cards { grid-template-columns: 1fr; }
}

/* ---------- v1.1: language (English, Telugu, Hindi) ---------- */
.i18n-wait body { visibility: hidden; }
.top-right { display: flex; align-items: center; gap: 8px; }
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 10px;
  border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font-weight: 700; font-size: 0.95rem; cursor: pointer;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary svg { width: 20px; height: 20px; }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; display: grid; gap: 4px; min-width: 150px; padding: 6px;
  border-radius: 14px; background: var(--paper); border: 1.5px solid var(--line); box-shadow: 0 12px 30px -16px rgba(15, 76, 69, 0.45);
}
.lang-list button { min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-weight: 650; text-align: left; color: var(--ink); cursor: pointer; }
.lang-list button[aria-pressed="true"] { background: var(--mint-wash); color: var(--mint-text); }
.lang-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.lang-row .muted { width: 100%; font-size: 0.92rem; }
.hero h1 span.t1 { display: inline; color: inherit; }

/* Telugu and Hindi: no negative letter-spacing, taller lines, smaller big headings,
   slightly larger small text, and boxes that grow when a label wraps. */
:lang(te), :lang(hi) { letter-spacing: 0; }
:lang(te) h1, :lang(te) h2, :lang(te) h3, :lang(hi) h1, :lang(hi) h2, :lang(hi) h3,
:lang(te) .t-title, :lang(hi) .t-title, :lang(te) .brand, :lang(hi) .brand { letter-spacing: 0; line-height: 1.4; }
:lang(te) .hero h1, :lang(hi) .hero h1 { font-size: clamp(2rem, 9vw, 3.6rem); }
:lang(te) .form-h, :lang(hi) .form-h { font-size: clamp(1.6rem, 7vw, 2.3rem); }
:lang(te) body, :lang(hi) body { line-height: 1.6; }
:lang(te) .small, :lang(hi) .small, :lang(te) .hint, :lang(hi) .hint, :lang(te) .t-sub, :lang(hi) .t-sub,
:lang(te) .stub, :lang(hi) .stub, :lang(te) .facts, :lang(hi) .facts { font-size: max(0.92rem, 15px); }
:lang(te) .tile label, :lang(hi) .tile label { font-size: 0.9rem; }
:lang(te) .btn, :lang(hi) .btn { height: auto; padding-top: 10px; padding-bottom: 10px; line-height: 1.35; text-align: center; }
:lang(te) .top .wrap, :lang(hi) .top .wrap { height: auto; min-height: 64px; padding-top: 6px; padding-bottom: 6px; }
:lang(te) .chip, :lang(hi) .chip { height: auto; padding-top: 6px; padding-bottom: 6px; }
:lang(te) .price .ask, :lang(hi) .price .ask, :lang(te) .ticket-big .price .ask, :lang(hi) .ticket-big .price .ask { letter-spacing: 0; }

/* ---------- v1.2: chat (WhatsApp layout, PassOn colours) ---------- */
.chats-link { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 0 10px;
  border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.chats-link svg { width: 22px; height: 22px; }
.chats-word { display: none; }
.dot-badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center;
  background: var(--bad); color: #fff; font-size: 0.72rem; font-weight: 800; line-height: 1; }
@media (min-width: 600px) { .chats-word { display: inline; } }

.chat-body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: #eaf2ef; }
.chat-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 6px; min-height: 60px; padding: 6px 6px 6px 2px;
  padding-top: max(6px, env(safe-area-inset-top)); background: var(--deep); color: #fff; }
.chat-back { display: grid; place-items: center; width: 44px; height: 44px; color: #fff; border-radius: 12px; flex: none; }
.chat-back svg { width: 24px; height: 24px; }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--deep); font-weight: 800; font-size: 1.1rem; text-transform: uppercase; }
.chat-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.chat-who b, .chat-who span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-who b { font-size: 1.05rem; }
.chat-who span { font-size: 0.82rem; opacity: 0.85; }
.chat-menu { position: relative; flex: none; }
.chat-menu summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; color: #fff; }
.chat-menu summary::-webkit-details-marker { display: none; }
.chat-menu summary svg { width: 24px; height: 24px; }
.menu-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; display: grid; gap: 2px; min-width: 190px; padding: 6px; border-radius: 14px;
  background: var(--paper); border: 1.5px solid var(--line); box-shadow: 0 12px 30px -12px rgba(15, 76, 69, 0.5); }
.menu-list button { min-height: 46px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-weight: 650; text-align: left; color: var(--ink); cursor: pointer; }
.menu-list button:hover { background: var(--bg); }
.menu-list button.bad { color: var(--bad); }

.chat-main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 10px 10px 16px; }
.chat-post { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 14px; background: var(--paper); color: var(--ink);
  text-decoration: none; border: 1.5px solid var(--line); --tint: var(--other-bg); --tint-ink: var(--other-ink); }
.chat-post[data-cat="bus"] { --tint: var(--bus-bg); --tint-ink: var(--bus-ink); }
.chat-post[data-cat="movie"] { --tint: var(--movie-bg); --tint-ink: var(--movie-ink); }
.chat-post[data-cat="sports"] { --tint: var(--sports-bg); --tint-ink: var(--sports-ink); }
.chat-post[data-cat="event"] { --tint: var(--event-bg); --tint-ink: var(--event-ink); }
.chat-post-ic { flex: none; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--tint); color: var(--tint-ink); }
.chat-post-ic svg { width: 28px; height: 28px; }
.chat-post-txt { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.chat-post-txt b, .chat-post-txt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-post-txt span { color: var(--muted); font-size: 0.86rem; }
.chat-safe { margin: 10px auto 12px; max-width: 520px; padding: 8px 12px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-ink);
  font-size: 0.86rem; font-weight: 600; text-align: center; line-height: 1.4; }
.thread { display: flex; flex-direction: column; gap: 3px; }
.day { text-align: center; margin: 10px 0 6px; }
.day span { display: inline-block; padding: 4px 12px; border-radius: 8px; background: var(--paper); color: var(--muted); font-size: 0.8rem; font-weight: 650;
  box-shadow: 0 1px 0.5px rgba(11, 42, 38, 0.12); }
.msg { max-width: min(82%, 520px); display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 10px; padding: 7px 10px 5px 11px; border-radius: 14px;
  box-shadow: 0 1px 0.5px rgba(11, 42, 38, 0.14); }
.msg.mine { align-self: flex-end; background: var(--mint-wash); border-top-right-radius: 4px; }
.msg.theirs { align-self: flex-start; background: var(--paper); border-top-left-radius: 4px; }
.msg + .msg.mine, .msg + .msg.theirs { margin-top: 1px; }
.msg.mine + .msg.theirs, .msg.theirs + .msg.mine { margin-top: 8px; }
.msg-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1rem; line-height: 1.4; min-width: 0; }
.msg-time { margin-left: auto; font-size: 0.72rem; color: var(--muted); white-space: nowrap; padding-top: 2px; }
.msg.number { flex-direction: column; align-items: stretch; gap: 6px; padding: 10px 12px 6px; }
.msg-label { display: inline-flex; align-items: center; gap: 6px; font-size: 0.86rem; color: var(--muted); font-weight: 650; }
.msg-label svg { width: 18px; height: 18px; }
.msg-number { font-size: 1.25rem; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.msg-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.msg-acts .btn { flex: 1; min-width: 110px; }
.msg-acts .btn svg { width: 20px; height: 20px; }
.chat-sys { margin: 10px auto; max-width: 440px; text-align: center; color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
.chat-notes { display: grid; gap: 8px; }
.save-card { display: grid; gap: 6px; width: 100%; max-width: 460px; margin: 8px auto 0; padding: 12px; border-radius: 14px; background: var(--paper); border: 1.5px solid var(--line); }
.save-card .row-2 { margin-top: 4px; grid-template-columns: 1fr; }
@media (min-width: 480px) { .save-card .row-2 { grid-template-columns: 1fr 1fr; } }
.save-card .btn svg, .alert-box .btn svg { width: 20px; height: 20px; }
.alert-box { display: grid; gap: 6px; width: 100%; max-width: 460px; margin: 0 auto; }
.alert-box p { margin: 0; }
.alert-status:empty { display: none; }

.chat-bar { position: sticky; bottom: 0; z-index: 20; background: #eaf2ef; padding: 6px 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
.chat-bar > * { max-width: 744px; margin-left: auto; margin-right: auto; }
.chat-bar .err { padding: 0 6px 6px; }
.chat-extra { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-extra:empty { display: none; }
.chat-extra > * { margin-bottom: 6px; }
.name-row { flex: 1; display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 14px; border-radius: 24px; background: var(--paper); border: 1.5px solid var(--line);
  font-size: 0.86rem; color: var(--muted); font-weight: 650; }
.name-row span { white-space: nowrap; }
.name-row input { flex: 1; min-width: 0; min-height: 40px; border: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--ink); font-weight: 500; }
.name-row input:focus { outline: none; }
.share-num { min-height: 40px; }
.share-num svg { width: 18px; height: 18px; }
.composer { display: flex; align-items: flex-end; gap: 8px; }
.composer textarea { flex: 1; min-width: 0; min-height: 48px; max-height: 140px; padding: 12px 16px; border-radius: 24px; border: 1.5px solid var(--line);
  background: var(--paper); font: inherit; font-size: 1rem; line-height: 1.35; color: var(--ink); resize: none; }
.composer textarea:focus { outline: none; border-color: var(--teal); }
.send { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--deep); color: #fff; cursor: pointer; }
.send svg { width: 22px; height: 22px; margin-left: 2px; }
.send[disabled] { opacity: 0.55; }
.chat-closed { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; width: 100%; padding: 8px; color: var(--muted); font-weight: 650; text-align: center; }
.chat-main .empty { margin-top: 12px; }

/* inbox */
.inbox-list { list-style: none; padding: 0; margin: 0; border-radius: var(--r-md); background: var(--paper); border: 1.5px solid var(--line); overflow: hidden; }
.inbox-list li + li { border-top: 1px solid var(--line); }
.inbox-row { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 10px 14px; color: var(--ink); text-decoration: none; }
.inbox-row:hover { background: var(--bg); }
.inbox-row .avatar { width: 48px; height: 48px; }
.inbox-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.3; }
.inbox-mid b, .inbox-mid span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-mid .about { color: var(--muted); font-size: 0.84rem; }
.inbox-mid .last { color: var(--muted); font-size: 0.95rem; }
.inbox-row.unread .last { color: var(--ink); font-weight: 650; }
.inbox-end { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 0.78rem; color: var(--muted); }
.inbox-row.unread .inbox-end { color: var(--mint-text); font-weight: 700; }
.unread-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--mint-text); }
.inbox-tag { font-size: 0.75rem; padding: 1px 8px; border-radius: 999px; background: var(--other-bg); color: var(--other-ink); font-weight: 700; }
.inbox-extra { display: grid; gap: 12px; margin-top: 18px; }
.wa-switch { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center; padding: 14px; border-radius: 14px; background: var(--paper); border: 1.5px solid var(--line); cursor: pointer; }
.wa-switch b { font-weight: 700; }
.wa-switch .hint { grid-column: 1; margin: 0; }
.wa-switch input { grid-row: 1 / span 2; grid-column: 2; width: 52px; height: 30px; margin: 0; appearance: none; -webkit-appearance: none; border-radius: 999px;
  background: rgba(15, 76, 69, 0.22); position: relative; cursor: pointer; transition: background-color 0.15s; }
.wa-switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform 0.15s var(--ease);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
.wa-switch input:checked { background: var(--wa); }
.wa-switch input:checked::after { transform: translateX(22px); }
.wa-switch input:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.btn-chat svg { width: 24px; height: 24px; }
.mine-note { margin: 0; }
:lang(te) .msg-text, :lang(hi) .msg-text { line-height: 1.55; }
.done-alerts { margin: 14px 0 0; text-align: left; }
.done-alerts .alert-box { max-width: none; }
.talk { margin-top: 16px; }
.talk .alert-box { max-width: none; }
.btn-chat .badge { margin-left: 4px; background: var(--mint); color: var(--deep); }
/* Narrow phones with the Chats button: logo without the word, so the header stays on one line. */
@media (max-width: 420px) {
  .has-chats .brand { font-size: 0; gap: 0; }
  .has-chats .top-right { gap: 6px; }
  .has-chats .lang-menu summary { padding: 0 8px; }
  .has-chats .lang-menu summary svg { display: none; }
}
