/* Translink mLink PWA — styling matched to reference screenshots (IMG_4588–4594).
   Class names here track what the JS actually emits (app.js / wizard.js / fares.js /
   checkout.js / wallet.js). Colours: brand teal + muted-teal fills, lime yLink banner,
   navy "From" band, per-service hexagon tints from data.js. */
@font-face {
  font-family: 'Montserrat';
  src: url('assets/fonts/montserrat_regular.ttf') format('truetype');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('assets/fonts/montserrat_bold.ttf') format('truetype');
  font-weight: 700; font-display: swap;
}

:root {
  --teal: #008571;        /* brand accent: titles, icons, tab underline, links */
  --teal-fill: #459484;   /* muted fill: buy card, basket bar, To band, buttons */
  --navy: #0c2e6e;        /* From band */
  --lime: #92d400;        /* yLink banner */
  --lime-ink: #243b14;
  --bg: #ffffff;
  --surface: #f0f0f0;     /* wallet list background */
  --input-bg: #ececec;
  --border: #ededed;
  --text: #171717;
  --muted: #555555;
  --red: #e4002b;
  --inactive: #9a9a9a;
}

/* rem ≈ 16px, scaling gently with viewport width and capped on wide screens. */
html { font-size: clamp(14px, 4.1vw, 17px); -webkit-text-size-adjust: 100%; }
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  font-family: 'Montserrat', system-ui, sans-serif; font-weight: 400;
  background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
button { font-family: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
input, select { font-family: inherit; outline: none; }
img { display: block; }

#app { min-height: 100vh; display: flex; flex-direction: column; }
#screen { flex: 1; padding-bottom: 7rem; }
.screen.ticket-screen { padding-bottom: 0; }

/* ---------- shared bits ---------- */
.toast {
  position: fixed; left: 50%; bottom: 7rem; transform: translateX(-50%);
  background: rgba(0,0,0,.85); color: #fff; font-size: 14px; max-width: 86vw;
  padding: 1rem 1.4rem; border-radius: 6px; z-index: 120; line-height: 1.35;
}
.page-title { font-size: 22px; font-weight: 400; padding: 1.25rem 1.25rem .5rem; line-height: 1.25; }

/* hexagon service mark (reused: app-bar logo + category rows) */
.hex {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  background: var(--hx, var(--teal));
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.hex b { color: #fff; font-weight: 700; line-height: 1; font-size: .62em; }

/* mask-tinted icon (fills a silhouette SVG with an arbitrary colour) */
.mask {
  background: var(--tint, var(--teal));
  -webkit-mask: var(--m) center / contain no-repeat;
  mask: var(--m) center / contain no-repeat;
}

/* =================== top app bar =================== */
#appbar {
  position: sticky; top: 0; z-index: 60; background: var(--bg);
  min-height: 3.5rem; display: flex; align-items: center; gap: .5rem;
  padding: 1rem 1rem .55rem; border-bottom: 1px solid var(--border);
}
/* nudge the home button toward the right edge to match the app's spacing */
.ab-right [data-nav="home"] { margin-left: .5rem; }
#appbar.hidden { display: none; }
.ab-side { display: flex; align-items: center; gap: 1rem; flex: none; }
.ab-right { margin-left: auto; }
.ab-title {
  flex: 1; min-width: 0; text-align: center; pointer-events: none;
  color: var(--teal); font-size: 20px; font-weight: 400;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ab-btn { display: flex; align-items: center; justify-content: center; padding: .25rem; }
.ab-btn svg { width: 1.6rem; height: 1.6rem; }
.ab-btn img { width: 1.5rem; height: 1.5rem; }
.ab-logo { display: flex; align-items: center; gap: .6rem; }
.ab-logo .hex { width: 1.75rem; height: 2rem; font-size: 2rem; }
.ab-logo .hex b { font-size: .5em; font-weight: 700; }
.ab-logo-img { height: 2.1rem; width: auto; }
.ab-logo .wordmark { color: var(--teal); font-size: 20px; font-weight: 600; letter-spacing: .01em; }

/* =================== home =================== */
.yl-banner {
  min-height: 3rem; background: var(--lime); color: var(--lime-ink);
  font-size: 16px; font-weight: 400; display: flex; align-items: center;
  padding: .5rem 1.25rem;
}
.off-banner {
  min-height: 3rem; background: #000; color: #fff; display: flex; align-items: center;
  justify-content: center; gap: .75rem; font-size: 16px; font-weight: 700; padding: .5rem 1rem;
}
.off-ic { width: 1.5rem; height: 1.5rem; filter: brightness(0) invert(1); }
.home-title {
  text-align: center; font-size: 21px; font-weight: 400; line-height: 1.35;
  color: #1a1a1a; padding: 1.75rem 1.5rem .5rem;
}
.home-cards { padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.home-card {
  display: flex; align-items: center; gap: 1rem; background: var(--bg);
  border: 1px solid #bccdc8; border-radius: 8px; padding: 1.1rem 1.25rem;
  min-height: 5.25rem;
}
.home-card.filled { background: var(--teal-fill); border-color: var(--teal-fill); color: #fff; }
.hc-ic { width: 2.6rem; height: 2.6rem; object-fit: contain; flex: none; }
.home-card.filled .hc-ic { filter: brightness(0) invert(1); }
.hc-title { font-size: 18px; font-weight: 700; }
.hc-sub { font-size: 14px; margin-top: .25rem; color: var(--muted); }
.home-card.filled .hc-sub { color: rgba(255,255,255,.95); }
.home-footer { display: flex; gap: .5rem; padding: 1.75rem 1rem 2.5rem; }
.hf-col {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: .6rem;
  text-align: center; font-size: 13px; line-height: 1.3; color: var(--text);
  text-decoration: none; cursor: pointer;
}
.hf-ic { width: 2rem; height: 2rem; object-fit: contain; }

/* =================== categories (service select) =================== */
.cat-list { padding: .25rem 1.25rem 1rem; display: flex; flex-direction: column; gap: 1rem; }
.cat-row {
  display: flex; align-items: center; gap: 1.25rem; background: var(--bg);
  border: 1px solid #d6d6d6; border-radius: 8px; padding: 1.1rem 1.25rem;
  min-height: 4.5rem; cursor: pointer;
}
.cat-ic { width: 3.1rem; height: 3.4rem; flex: none; }
.cat-body { min-width: 0; }
.cat-name { font-size: 22px; font-weight: 700; }
.cat-sub { font-size: 16px; margin-top: .25rem; color: var(--muted); }

/* =================== route wizard =================== */
.wiz-top { display: flex; align-items: baseline; justify-content: space-between; padding: 1.25rem 1.25rem .75rem; gap: 1rem; }
.wiz-top .page-title { padding: 0; }
.link-btn { color: var(--teal); font-size: 18px; font-weight: 700; white-space: nowrap; }
.band-row { display: flex; align-items: stretch; width: 100%; }
.band {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 4.75rem; color: #fff; font-size: 18px; font-weight: 700; padding: 0 .5rem;
}
.band.to { background: var(--teal-fill); }
.band.from { background: var(--navy); }
.band-input {
  flex: 1; min-width: 0; background: var(--input-bg); border: 0; color: #2a2a2a;
  font-size: 18px; padding: 0 1.25rem; min-height: 3.75rem;
}
.band-input::placeholder { color: #6f6f6f; }
.pick-list { }
.pick-row {
  padding: 1rem 1.25rem; font-size: 18px; font-weight: 700;
  border-bottom: 1px solid var(--border); cursor: pointer;
}
.map-ph {
  margin: 1rem 1.25rem; padding: 2rem 1rem; border: 1px dashed var(--border);
  border-radius: 8px; text-align: center; color: var(--muted); font-size: 14px;
}
.map-ph img { width: 2.5rem; height: 2.5rem; margin: 0 auto .5rem; opacity: .6; }
#routeCards { display: flex; flex-wrap: wrap; gap: .75rem; padding: 1rem 1.25rem; }
.route-card {
  min-width: 3.5rem; padding: .75rem 1rem; border: 1px solid var(--teal);
  border-radius: 8px; color: var(--teal); font-size: 18px; font-weight: 700; background: var(--bg);
}
.route-card.on { background: var(--teal-fill); border-color: var(--teal-fill); color: #fff; }

/* fixed bottom action bar (Use map to select / Find fares) */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  min-height: 3.75rem; background: var(--teal-fill); color: #fff;
  font-size: 20px; font-weight: 400; display: flex; align-items: center; justify-content: center;
  padding: .75rem 1rem; border: 0;
}

/* =================== Metro route / corridor picker =================== */
.geo-sub { font-size: 16px; color: var(--muted); padding: 0 1.25rem 1rem; line-height: 1.35; }
.corridor-list { padding: .25rem 1.25rem 1rem; display: flex; flex-direction: column; gap: 1rem; }
.corridor-row {
  display: flex; align-items: center; gap: 1.1rem; background: var(--bg);
  border: 1px solid #d6d6d6; border-radius: 8px; padding: 1rem 1.25rem; cursor: pointer;
}
.corridor-ic {
  width: 2.9rem; height: 3.2rem; flex: none; background: var(--c, var(--teal));
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  display: flex; align-items: center; justify-content: center;
}
.corridor-ic b { color: #fff; font-weight: 700; font-size: 1.15rem; }
.corridor-name { font-size: 17px; font-weight: 700; }

/* =================== fare list + confirm =================== */
.err-banner { background: var(--red); color: #fff; text-align: center; font-size: 15px; padding: .9rem 1.25rem; margin: 0 0 1rem; line-height: 1.3; }
.fare-row {
  display: flex; align-items: center; gap: 1.25rem; background: var(--bg);
  border: 1px solid var(--border); border-radius: 8px; padding: 1.1rem 1.25rem;
  margin: 0 1.25rem 1rem; min-height: 4.5rem; cursor: pointer;
}
.fare-icon { width: 3rem; height: 3rem; flex: none; }
.row-title { font-size: 19px; font-weight: 600; line-height: 1.2; }
.row-sub { font-size: 16px; color: #3a3a3a; line-height: 1.35; }
.cat-list + .err-banner, .err-banner + .fare-row { }

.confirm-fare { padding: 1.25rem; }
.confirm-fare > div:first-child { display: flex; align-items: center; justify-content: space-between; }
.cf-price-label { font-size: 22px; font-weight: 700; }
.cf-price { font-size: 22px; font-weight: 700; }
.qty-row { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin: 2rem 0; }
.qty-val { font-size: 26px; font-weight: 700; min-width: 2.5rem; text-align: center; }
.cbtn { width: 3rem; height: 3rem; border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.cbtn img { width: 1.5rem; height: 1.5rem; }

/* =================== primary button =================== */
.btn-full {
  display: block; width: calc(100% - 2.5rem); margin: 1.25rem; min-height: 3.5rem;
  background: var(--teal-fill); color: #fff; border-radius: 8px;
  font-size: 18px; font-weight: 700; text-align: center;
}
.btn-full.disabled, .btn-full:disabled { background: var(--inactive); }

/* =================== basket bar (floating) =================== */
.basket-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: var(--teal-fill);
  display: flex; align-items: center; gap: 1.25rem; padding: .9rem 1.25rem; color: #fff;
}
.basket-bar.gone { display: none; }
.basket-bar.empty .bb-ic, .basket-bar.empty .bb-info { opacity: .6; }
.bb-ic { width: 2rem; height: 2rem; filter: brightness(0) invert(1); flex: none; }
.bb-info { line-height: 1.2; }
.bb-amt { font-size: 20px; font-weight: 700; }
.bb-count { font-size: 15px; margin-top: .1rem; }
.bb-checkout {
  margin-left: auto; background: rgba(255,255,255,.22); color: #fff; font-size: 16px; font-weight: 700;
  letter-spacing: .04em; padding: .75rem 1.5rem; border-radius: 8px;
}
.bb-checkout.disabled, .bb-checkout:disabled { color: rgba(255,255,255,.65); }

/* =================== basket / checkout =================== */
.ck-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 1.25rem 1.25rem 0; gap: 1rem; }
.ck-title { font-size: 18px; font-weight: 700; }
.ck-amt-top { font-size: 20px; font-weight: 700; }
.ck-count { font-size: 16px; font-weight: 700; padding: 0 1.25rem; }
.ck-items-hd { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--muted); padding: 1.25rem 1.25rem .25rem; }
.ck-list { padding: 0 1.25rem; }
.ck-row { border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.25rem; margin-top: 1rem; }
.ck-sec { display: flex; align-items: center; gap: 1rem; margin-top: .5rem; }
.ck-del { color: var(--red); font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.ck-ico img { width: 1.75rem; height: 1.75rem; }
.ck-amt { margin-left: auto; font-size: 18px; font-weight: 700; }
.ck-row .ck-amt { margin-left: 0; }
.ck-sec .ck-amt { margin-left: auto; }
.row-sub { padding-left: 1.25rem; padding-right: 1.25rem; }
.ck-row .row-sub, .confirm-fare .row-sub, .card .row-sub { padding-left: 0; padding-right: 0; }
.select { display: block; width: calc(100% - 2.5rem); margin: .5rem 1.25rem 0; min-height: 3.25rem; background: var(--input-bg); border: 1px solid var(--border); border-radius: 8px; padding: 0 1rem; font-size: 16px; }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; margin: 1rem 1.25rem 0; }
.ttl { font-weight: 700; color: var(--teal); margin-top: .5rem; }
.vt-sub, .co-sub { font-size: 16px; color: var(--muted); padding: 1.25rem 1.25rem .25rem; line-height: 1.35; }
.vt-title { font-size: 16px; font-weight: 700; padding: 0 1.25rem; }
.vt-row { display: flex; margin: .5rem 1.25rem 0; }
.vt-input { flex: 1; min-width: 0; background: var(--input-bg); border: 1px solid var(--border); border-right: 0; border-radius: 8px 0 0 8px; padding: 0 1rem; min-height: 3.25rem; font-size: 16px; }
.vt-apply { background: var(--inactive); color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .04em; border-radius: 0 8px 8px 0; padding: 0 1.25rem; }
.pm-paypal, .pm-card, .gpay { display: flex; align-items: center; justify-content: center; gap: .75rem; width: calc(100% - 2.5rem); margin: 1rem 1.25rem 0; min-height: 3.25rem; border-radius: 8px; font-size: 16px; font-weight: 700; }
.pm-paypal { background: #ffc646; color: #142c5a; }
.pm-paypal img { width: 1.5rem; height: 1.5rem; }
.gpay { background: #000; color: #fff; }
.pm-card { background: var(--teal-fill); color: #fff; }
.pm-card img { width: 1.5rem; height: 1.5rem; filter: brightness(0) invert(1); }

/* =================== wallet =================== */
.wt-tabs { display: flex; background: var(--bg); border-bottom: 1px solid var(--border); }
.wt-tab { flex: 1; min-height: 3.25rem; font-size: 16px; font-weight: 700; color: var(--text); border-bottom: 3px solid transparent; }
.wt-tab.on { color: var(--text); border-bottom-color: var(--teal); }
.wt-list { background: var(--surface); min-height: calc(100vh - 7rem); padding: 1rem 1rem 2rem; }
.wt-empty { text-align: center; font-size: 18px; color: var(--text); padding: 3rem 1rem; }
.wt-row { background: var(--bg); border-radius: 8px; padding: 1.1rem 1.25rem; margin-bottom: 1rem; display: flex; align-items: flex-start; gap: 1.1rem; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.wt-ic { width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--tint, var(--teal)); display: flex; align-items: center; justify-content: center; flex: none; }
.wt-ic-i { width: 62%; height: 62%; background: #fff; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.wt-body { min-width: 0; flex: 1; }
.wt-title { font-size: 20px; font-weight: 700; line-height: 1.2; }
.wt-row .row-sub { padding: 0; margin-top: .4rem; color: var(--muted); font-size: 15px; }
.wt-exp { font-weight: 400; }
.wt-row .btn-full { width: 100%; margin: .75rem 0 0; min-height: 2.75rem; font-size: 16px; }

/* =================== ticket display (inline-styled; minimal hooks) =================== */
.ticket-screen { background: var(--surface); }
.timer-box { }

/* =================== fare list price =================== */
.fare-price { font-size: 16px; color: #1a1a1a; margin-top: .15rem; }

/* =================== confirm-fare detail =================== */
.cf { padding: 1.25rem; }
.cf-top { display: flex; align-items: center; justify-content: space-between; }
.cf-price-label { font-size: 22px; font-weight: 700; }
.cf-price { font-size: 22px; font-weight: 700; }
.cf-divider { height: 2px; background: #b89414; margin: 1rem 0 1.25rem; }
.cf-desc { font-size: 18px; line-height: 1.45; color: #1a1a1a; }
.cf-actions { display: flex; align-items: stretch; gap: .75rem; margin-top: 2rem; }
.cf-add { flex: 1; background: var(--teal-fill); color: #fff; border-radius: 8px; min-height: 3.75rem; font-size: 18px; font-weight: 700; }
.cf-step { width: 3.75rem; min-height: 3.75rem; border: 1px solid var(--teal); border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.cf-step img { width: 1.75rem; height: 1.75rem; }

/* =================== basket / Check your order =================== */
.co-head { background: var(--surface); padding: 1.25rem; display: grid; grid-template-columns: 1fr auto; row-gap: .75rem; }
.co-head-l { font-size: 18px; font-weight: 700; line-height: 1.25; }
.co-head-r { text-align: right; }
.co-amt { font-size: 20px; font-weight: 700; }
.co-items { font-size: 16px; font-weight: 700; margin-top: .25rem; }
.co-head-sub { grid-column: 1 / -1; font-size: 15px; color: var(--muted); margin-top: .25rem; }
.co-para { font-size: 17px; line-height: 1.4; color: #1a1a1a; padding: 1.25rem 1.25rem 0; }
.co-sec-hd { font-size: 14px; font-weight: 700; letter-spacing: .06em; background: var(--surface); padding: .9rem 1.25rem; margin-top: 1.25rem; }
.co-list { padding: 0 1.25rem; }
.co-item { border: 1px solid var(--border); border-radius: 8px; padding: 1.1rem 1.25rem; margin-top: 1rem; }
.co-item-title { font-size: 18px; font-weight: 700; }
.co-item-desc { font-size: 15px; color: #333; line-height: 1.4; margin-top: .5rem; }
.co-item-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 1.25rem; }
.co-delete { background: var(--red); color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .04em; border-radius: 8px; padding: .85rem 1.5rem; }
.co-stepper { display: flex; align-items: center; gap: .6rem; }
.co-step { width: 3.25rem; height: 3.25rem; border: 1px solid var(--border); border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; }
.co-step img { width: 1.5rem; height: 1.5rem; }
.co-qty { width: 3.25rem; height: 3.25rem; background: var(--surface); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; }
.co-select {
  display: block; width: calc(100% - 2.5rem); margin: 1rem 1.25rem 0; min-height: 3.5rem;
  background: var(--surface); border: 0; border-radius: 8px; padding: 0 1.25rem; font-size: 17px; font-weight: 400;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.25rem center; background-size: 1.5rem;
}
.co-primary {
  display: block; width: calc(100% - 2.5rem); margin: 1.75rem 1.25rem 1.25rem; min-height: 3.75rem;
  background: var(--teal); color: #fff; border-radius: 8px; font-size: 18px; font-weight: 700;
}

/* =================== payment =================== */
.vt-apply { background: var(--teal); }
.pay-btn {
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  width: calc(100% - 2.5rem); margin: 1rem 1.25rem 0; min-height: 4rem; border-radius: 8px;
  font-size: 18px; font-weight: 700;
}
.pay-paypal { background: #ffc746; color: #142c5a; }
.pay-paypal .pp { font-style: italic; font-weight: 800; letter-spacing: -.01em; font-size: 20px; }
.pay-paypal .pp1 { color: #003087; }
.pay-paypal .pp2 { color: #009cde; }
.pay-apple { background: #000; color: #fff; }
.pay-apple .ap { font-size: 22px; font-weight: 500; }
.pay-card { background: var(--teal-fill); color: #fff; }
.pay-card img { width: 1.6rem; height: 1.6rem; filter: brightness(0) invert(1); }
.pay-wait { display: flex; flex-direction: column; align-items: center; gap: .75rem; padding: 2rem; color: var(--muted); font-weight: 700; }
.pay-wait[hidden] { display: none; }
.spinner-dot { width: 2.5rem; height: 2.5rem; border: 3px solid rgba(0,0,0,.15); border-top-color: var(--teal); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =================== complete =================== */
.done-msg { text-align: center; font-size: 18px; font-weight: 700; line-height: 1.35; padding: 1.5rem 1.25rem 0; }
.btn-outline { background: #fff; border: 1px solid var(--teal); color: var(--teal); }

/* basket bar active (lime) state when items present */
.bb-checkout.active { background: var(--lime); color: #1c3a00; }

/* =================== ticket display =================== */
.tkd-root { background: #f0f0f0; min-height: calc(100vh - 3.5rem); padding: 1rem 1rem 2rem; }
.tkd-banner { display: flex; gap: .75rem; align-items: stretch; height: 5.5rem; margin-bottom: 1rem; }
.tkd-logo { width: 5rem; flex: none; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 6px; padding: .55rem; }
.tkd-logo svg { width: 100%; height: auto; }
.tkd-gif { flex: 1; border-radius: 4px; background-size: cover; background-position: center; position: relative; overflow: hidden; }
.tkd-wotd {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: clamp(30px, 11vw, 54px); letter-spacing: .02em;
  text-shadow: 0 2px 6px rgba(0,0,0,.5);
}
.tkd-timer { display: flex; gap: .5rem; margin-bottom: .75rem; }
.tkd-tb { flex: 1; text-align: center; }
.tkd-tl { font-size: 14px; color: #333; margin-bottom: .4rem; }
.tkd-tv { background: #fff; border: 1px solid #dcdcdc; border-radius: 6px; min-height: 2.9rem; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 400; color: #111; }
.tkd-sec { position: relative; width: 2.9rem; height: 2.9rem; margin: 0 auto; display: flex; align-items: center; justify-content: center; }
.tkd-spin { position: absolute; inset: 0; border-radius: 50%; border: 3px solid #d2d2d2; border-top-color: #111; animation: spin 1s linear infinite; }
.tkd-sv { position: relative; font-size: 19px; font-weight: 400; color: #111; }
.tkd-activated { text-align: center; font-size: 16px; font-weight: 400; color: #111; margin-bottom: 1rem; }
.tkd-rows { display: flex; flex-direction: column; gap: 2px; }
.tkd-row { background: #000; color: #fff; padding: 1rem 1.25rem; }
.tkd-rows .tkd-row:first-child { border-radius: 6px 6px 0 0; }
.tkd-rows .tkd-row:last-child { border-radius: 0 0 6px 6px; }
.tkd-center { text-align: center; font-size: 22px; font-weight: 400; }
/* selected fare (the product name) sits in a noticeably larger box than the plain route rows, as in the app */
.tkd-name { padding: 1.6rem 1.25rem; font-size: 24px; }
.tkd-kv { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: 15px; }
.tkd-kv .k { color: #cfcfcf; flex: none; }
.tkd-kv .v { font-weight: 400; text-align: right; word-break: break-all; }
.tkd-activate { display: block; width: 100%; margin-top: 1rem; min-height: 3.25rem; background: var(--teal); color: #fff; border-radius: 6px; font-size: 17px; font-weight: 700; }
.tkd-expired { background: #000; color: #fff; text-align: center; font-size: 40px; font-weight: 900; padding: 1.5rem; border-radius: 6px; margin-bottom: 1rem; letter-spacing: .08em; }
/* activate confirm dialog (iOS-style alert) */
.tkd-dialog { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.tkd-dbox { background: #ededed; border-radius: 14px; width: 100%; max-width: 20rem; overflow: hidden; }
.tkd-dtitle { font-size: 18px; font-weight: 700; text-align: center; padding: 1.25rem 1rem .5rem; }
.tkd-dmsg { font-size: 15px; color: #333; text-align: center; padding: 0 1.25rem 1.25rem; line-height: 1.4; }
.tkd-dbtns { display: flex; border-top: 1px solid #c8c8c8; }
.tkd-dbtns button { flex: 1; min-height: 3rem; font-size: 17px; color: var(--teal); }
.tkd-dbtns .tkd-dno { border-right: 1px solid #c8c8c8; font-weight: 600; }
.tk-empty { padding: 4rem 1.25rem; text-align: center; font-size: 18px; }
.tk-empty .btn-full { margin-top: 1.5rem; }
.logo-zoom { position: fixed; inset: 0; z-index: 95; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; animation: fadeIn .2s ease; }
.logo-zoom .zi { width: 16rem; height: 16rem; background: rgba(255,255,255,.95); border-radius: 10px; display: flex; align-items: center; justify-content: center; animation: zoomIn .2s ease; }
.logo-zoom img { width: 65%; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes zoomIn { from { transform: scale(.3); opacity: 0; } }

/* wizard routes header — let the long comma-separated route list wrap instead of overflowing */
.routes-head { font-size: 22px; line-height: 1.25; overflow-wrap: anywhere; word-break: break-word; }

/* misc */
/* opacity-only fade: a transform here would make #screen the containing block for
   position:fixed children (Find fares / bottom bar) on iOS Safari, breaking their pinning. */
.fade-in { animation: screenIn .18s ease; }
@keyframes screenIn { from { opacity: 0; } }
