@font-face {
  font-family: "SBB Web";
  src: url("assets/fonts/SBBWeb-Roman.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SBB Web";
  src: url("assets/fonts/SBBWeb-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SBB Web";
  src: url("assets/fonts/SBBWeb-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #eb0000;
  --red-dark: #c60018;
  --red-deep: #a20013;
  --black: #000000;
  --midnight: #151515;
  --charcoal: #212121;
  --surface: #262626;
  --surface-2: #1c1c1c;
  --surface-3: #3b3b3b;
  --surface-4: #4c4c4c;
  --line: #3b3b3b;
  --muted: #b7b7b7;
  --muted-2: #8d8d8d;
  --font: "SBB Web", Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --nav-height: 118px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; height: 100%; }
body {
  background: #080808;
  color: #fff;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  overflow: hidden;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
[hidden] { display: none !important; }
svg { display: block; }

.stage {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 35%, #232323 0%, #101010 55%, #070707 100%);
}
.app {
  position: relative;
  width: 430px;
  height: 932px;
  flex: none;
  overflow: hidden;
  background: #000;
  color: #fff;
  transform-origin: center center;
  isolation: isolate;
}
@media (min-width: 600px) {
  .app {
    border-radius: 36px;
    box-shadow: 0 40px 110px rgba(0,0,0,.72), 0 0 0 1px rgba(255,255,255,.08);
  }
}
@media (max-width: 599px) {
  .stage {
    display: block;
    background: #000;
  }
  .app {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: top left;
    border-radius: 0;
    box-shadow: none;
  }
}

/* ============================== shell / screens ============================== */
.screens { position: absolute; inset: 0; }
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #000;
  animation: screen-in .18s ease-out;
}
@keyframes screen-in { from { opacity: .45; } to { opacity: 1; } }
.screen-header {
  flex: none;
  background: var(--red);
  padding-top: 56px;
  position: relative;
  z-index: 2;
}
.screen-header.no-tabs { height: 184px; }
.title-row {
  position: relative;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.title-row h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: .005em;
  text-align: center;
  max-width: 340px;
  white-space: nowrap;
}
.brand-logo {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  pointer-events: none;
}
.brand-logo img { width: 30px; height: 15px; display: block; }

.segmented {
  height: 47px;
  margin: 0 9px 17px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  display: flex;
  background: #c40016;
  position: relative;
}
.segmented button {
  flex: 1;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 17px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: .002em;
  padding: 0 8px;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, font-weight .12s ease;
  white-space: nowrap;
}
.segmented button[aria-selected="true"] {
  background: var(--red);
  border-color: #94000f;
  font-weight: 700;
}

.screen-body {
  flex: 1;
  min-height: 0;
  position: relative;
  background: #000;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding-bottom: var(--nav-height);
}
.screen-body::-webkit-scrollbar { display: none; }

/* ============================== shared controls ============================== */
.red-button {
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  font-weight: 400;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: filter .15s ease, transform .1s ease;
}
.red-button:active { filter: brightness(.9); transform: scale(.995); }
.outline-pill {
  border: 1.5px solid rgba(255,255,255,.78);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  height: 36px;
  padding: 0 16px;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.circle-edit {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.62);
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex: none;
  cursor: pointer;
}
.circle-edit svg { width: 23px; height: 23px; }
.chevron { width: 5.5px; height: 9.5px; flex: none; color: #fff; margin-right: 10px; }
.section-heading { margin: 0; font-size: 16px; font-weight: 400; line-height: 1.2; }
.list-card {
  border: 0;
  background: var(--surface);
  border-radius: 18px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 16px;
  text-align: left;
  cursor: pointer;
}
.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.75);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: #fff;
}
.avatar-circle svg { width: 27px; height: 27px; }
.avatar-circle.large { width: 38px; height: 38px; }
.avatar-circle.has-photo { overflow: hidden; border-color: rgba(255,255,255,.42); }
.avatar-circle.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================== plan ============================== */
.plan-body {
  padding-bottom: 0;
  overflow: hidden;
  background: #000;
}
.plan-body::before,
.tickets-body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 25px;
  background: var(--red);
  z-index: 0;
  pointer-events: none;
}
.plan-view { display: none; }
.plan-view.is-active { display: block; }
.plan-touch-view { position: relative; height: calc(100% - var(--nav-height)); z-index: 1; }

.station-grid {
  height: 480px;
  margin: 0 9px;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(5, 1fr);
  gap: 4px;
  background: #000;
  position: relative;
}
.map-tile {
  position: relative;
  overflow: hidden;
  border: 0;
  padding: 0;
  margin: 0;
  background: #12213b;
  color: #fff;
  cursor: pointer;
  isolation: isolate;
}
.map-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}
.map-base {
  z-index: 0;
  filter: grayscale(1) brightness(.5) contrast(1.3);
}
.map-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #112b55;
  mix-blend-mode: color;
  opacity: .98;
  pointer-events: none;
}
.map-rail {
  z-index: 2;
  opacity: .88;
  filter: grayscale(1) brightness(2.5) contrast(1.5);
  mix-blend-mode: screen;
}
.map-shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(4,13,31,.08) 0%, rgba(4,13,31,.18) 55%, rgba(4,13,31,.46) 100%);
  pointer-events: none;
}
.station-name {
  position: absolute;
  z-index: 4;
  left: 11px;
  bottom: 8px;
  font-size: 18px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: .005em;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,.82), 0 0 10px rgba(0,0,0,.3);
  pointer-events: none;
}
.map-tile:active .map-shade { background: rgba(0,0,0,.22); }
.station-grid.is-editing .map-tile::after {
  content: "−";
  position: absolute;
  z-index: 8;
  top: 8px;
  right: 8px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: rgba(0,0,0,.78);
  border: 1px solid rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  font-weight: 300;
}

.location-selector {
  height: 108px;
  margin: 0 9px;
  border-radius: 0 0 18px 18px;
  overflow: hidden;
  background: var(--surface-2);
  display: flex;
}
.location-cell {
  border: 0;
  border-left: 2px solid #070707;
  background: transparent;
  color: #fff;
  padding: 31px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  cursor: pointer;
  min-width: 0;
}
.location-cell:first-child { border-left: 0; }
.location-current { flex: 2.04; align-items: flex-start; padding-left: 20px; }
.location-from, .location-to { flex: 1; }
.location-cell span { font-size: 18px; line-height: 1; font-weight: 400; white-space: nowrap; }
.loc-icon { width: 25px; height: 25px; color: #fff; }
.location-current .loc-icon { width: 26px; height: 26px; }

.plan-footer {
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 130px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
}
.powered {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 15px;
  line-height: 1;
  color: #fff;
  letter-spacing: .005em;
}
.powered strong { font-weight: 700; }
.ubique-mark { width: 29px; height: 16px; margin-left: 3px; color: #a7a7a7; }
.plan-footer .outline-pill { height: 36px; min-width: 69px; padding: 0 16px; font-size: 16px; }

/* timetable view */
.plan-timetable-view {
  position: relative;
  z-index: 1;
  height: calc(100% - var(--nav-height));
  padding: 0 9px;
}
.journey-selector {
  position: relative;
  height: 103px;
  border-radius: 18px;
  background: var(--surface);
}
.journey-row {
  position: relative;
  z-index: 2;
  height: 51px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 19px;
  color: #fff;
}
.journey-row-to { height: 52px; }
.journey-icon {
  width: 15px;
  height: 15px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.journey-icon svg { width: 15px; height: 15px; }
.journey-icon-current { color: #4a90ff; }
.journey-icon-to { color: #fff; }
.journey-text { font-size: 17px; line-height: 1; }
.journey-connector {
  position: absolute;
  z-index: 1;
  left: 25.5px;
  top: 33.5px;
  width: 1.5px;
  height: 36px;
  background: #5a5a5a;
}
.journey-divider {
  position: absolute;
  z-index: 1;
  left: 45px;
  right: 0;
  top: 51px;
  height: 1px;
  background: var(--line);
}
.departure-board {
  position: relative;
  height: 374px;
  margin-top: 28px;
  padding: 28px 15px 0;
  border-radius: 18px;
  background: var(--surface);
}
.departure-board-head { position: relative; }
.departure-board-title { display: flex; flex-direction: column; gap: 2px; }
.departure-board-title span { font-size: 15px; line-height: 20px; color: var(--muted); }
.departure-board-title strong { font-size: 17px; line-height: 22px; font-weight: 700; }
.board-edit {
  position: absolute;
  top: 2px;
  right: 3px;
  width: 44px;
  height: 44px;
}
.board-edit svg { width: 24px; height: 24px; }
.departure-table-head {
  height: 30px;
  display: flex;
  align-items: flex-end;
  padding: 0 0 6px 98px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
}
.col-from { width: 55px; flex: none; }
.col-direction { flex: 1; }
.departure-rows { padding-top: 10px; }
.departure-row {
  height: 33px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 1;
}
.departure-mode { width: 20px; height: 20px; flex: none; margin-right: 8px; }
.departure-mode svg { width: 20px; height: 20px; display: block; }
.departure-mode img { width: 20px; height: 20px; display: block; }
.line-badge {
  width: 62px;
  height: 22px;
  flex: none;
  margin-right: 8px;
  border: 1.5px solid #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
}
.line-text {
  width: 62px;
  flex: none;
  margin-right: 8px;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}
.departure-time { width: 47px; flex: none; margin-right: 8px; }
.departure-direction { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.departure-platform { width: 20px; flex: none; text-align: right; }
.departure-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.departure-dots span { width: 6px; height: 6px; border-radius: 50%; background: #6f6f6f; }
.departure-dots span.is-active { background: #f1f1f1; }
.map-pill {
  position: absolute;
  left: 50%;
  bottom: 33px;
  transform: translateX(-50%);
  height: 38px;
  padding: 0 18px;
  border: 1.5px solid rgba(255,255,255,.85);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.map-pill svg { width: 20px; height: 20px; }
.plan-body:has(.plan-timetable-view.is-active) .plan-footer { display: none; }

/* ============================== trips ============================== */
.trips-body { padding-bottom: 0; overflow: hidden; background: #07100b; }
.trips-scene {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 586px;
  overflow: hidden;
  z-index: 0;
  background: #172736;
}
.trips-scene img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trips-content { position: static; }
.empty-journeys-card {
  position: relative;
  z-index: 2;
  margin: 31px 9px 0;
  background: rgba(37,37,37,.96);
  border-radius: 18px;
  padding: 16px 10px 18px;
  text-align: center;
}
.empty-journeys-card h2 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
}
.empty-journeys-card p {
  margin: 0;
  font-size: 15.2px;
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: 0;
  color: #fff;
}
.plan-journey-btn {
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 136px;
  width: calc(100% - 18px);
  z-index: 3;
}

/* ============================== easyride ============================== */
.rider-card {
  height: 77px;
  margin: 5px 9px 0;
  border-radius: 18px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}
.rider-main { min-width: 0; }
.rider-main h2 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 700;
  white-space: nowrap;
}
.rider-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  line-height: 1;
  color: #fff;
}
.rider-stats span { margin-right: 1px; }
.stat-icon { width: 18px; height: 21px; }
.stat-icon.bike { width: 24px; height: 18px; }
.easyride-body { padding-bottom: 0; overflow: hidden; background: #131d2d; }
.easyride-scene {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 391px;
  overflow: hidden;
  z-index: 0;
  background: #1b283a;
}
.easyride-scene img { width: 100%; height: 100%; object-fit: cover; display: block; }
.easyride-panel {
  position: absolute;
  top: 391px;
  left: 0;
  right: 0;
  height: 257px;
  background: var(--surface-2);
  border-radius: 18px 18px 0 0;
  padding: 14px 9px 0;
  z-index: 2;
}
.easyride-panel .departure-row {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px;
}
.easyride-panel .departure-row p { margin: 0; font-size: 16px; line-height: 1; font-weight: 400; }
.easyride-panel .departure-row strong { font-weight: 700; }
.change-btn { width: 75px; height: 36px; padding: 0; font-size: 16px; }
.class-toggle {
  height: 46px;
  margin-top: 8px;
  border: 1px solid rgba(255,255,255,.64);
  border-radius: 999px;
  padding: 2px;
  display: flex;
  background: transparent;
}
.class-toggle button {
  flex: 1;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}
.class-toggle button.is-active {
  background: var(--surface-4);
  border-color: #fff;
}
.swipe-wrap {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.easyride-ticket-icon {
  width: 44px;
  height: 44px;
  flex: none;
  position: relative;
  color: #dfe8ff;
}
.easyride-ticket-icon > svg { position: absolute; width: 41px; height: 41px; left: 3px; top: 0; }
.easyride-ticket-icon .ticket-stack { left: 0; top: 4px; width: 43px; height: 43px; color: #bfc9e8; }
.swipe-track {
  flex: 1;
  height: 84px;
  border: 1px solid #5b5b5b;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  background: transparent;
  touch-action: none;
}
.swipe-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 84px;
  font-size: 18px;
  color: #a9a9a9;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity .15s ease;
}
.swipe-knob {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 0;
  background: var(--red);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
  transition: transform .22s cubic-bezier(.22,.8,.25,1), background-color .2s ease;
}
.swipe-knob:active { cursor: grabbing; }
.swipe-track.is-checked { border-color: #b90000; }
.swipe-track.is-checked .swipe-knob { background: #c50000; }
.swipe-track.is-checked .swipe-label { opacity: .85; }

/* ============================== tickets ============================== */
.tickets-body { padding-bottom: calc(var(--nav-height) + 44px); }
.tickets-screen .segmented { margin-bottom: 17px; }
.tickets-view { position: relative; z-index: 1; }
.ticket-card { display: contents; }
.ticket-card-head {
  margin: 0 9px;
  height: 85px;
  background: #ca1413;
  padding: 8px 12px 8px 17px;
  display: flex;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 4;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
}
.ticket-card-head.is-stuck { border-radius: 18px; }
.ticket-person { display: flex; flex-direction: column; justify-content: flex-start; padding-top: 0; }
.ticket-person strong { font-size: 17px; line-height: 23.4px; font-weight: 700; }
.ticket-person span { font-size: 15px; line-height: 1.2; margin-top: 1.5px; color: rgba(255,255,255,.88); }
.swisspass-logo {
  width: 174px;
  position: relative;
  text-align: left;
  padding-top: 0.5px;
  padding-left: 10px;
  color: #fff;
}
.swisspass-logo > span { font-size: 14px; line-height: 1; letter-spacing: 0; white-space: nowrap; }
.swisspass-logo em { font-style: normal; font-weight: 400; }
.swisspass-logo b { font-weight: 700; }
.swisspass-dots {
  position: absolute;
  right: 8.2px;
  top: 3.7px;
  width: 102.1px;
  height: 59.1px;
  display: block;
}
.ticket-card-body {
  margin: 0 9px;
  min-height: 227px;
  position: relative;
  padding: 18px 14px 30px;
  background: var(--surface);
  border-radius: 0 0 18px 18px;
  overflow: hidden;
}
.ticket-slide { display: flex; align-items: flex-start; gap: 64px; padding: 0 3px; }
.qr-wrap {
  width: 168px;
  height: 168px;
  background: #fff;
  padding: 5px;
  flex: none;
}
.qr-code { width: 100%; height: 100%; }
.qr-code svg { width: 100%; height: 100%; display: block; }
.portrait {
  width: 138px;
  height: 168px;
  background: #fff;
  overflow: hidden;
  flex: none;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.carousel-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: #6f6f6f;
  padding: 0;
  cursor: pointer;
}
.carousel-dots button.is-active { background: #f1f1f1; }
.ticket-detail-slide {
  min-height: 168px;
  display: block;
  padding: 2px 5px;
}
.ticket-detail-content .detail-eyebrow { font-size: 13px; color: var(--muted); }
.ticket-detail-content h2 { margin: 3px 0 12px; font-size: 19px; }
.ticket-detail-content dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 20px; }
.ticket-detail-content dl div { display: flex; flex-direction: column; gap: 2px; }
.ticket-detail-content dt { font-size: 12px; color: var(--muted); }
.ticket-detail-content dd { margin: 0; font-size: 15px; }

.no-valid-ticket {
  margin: 16px 9px 0;
  height: 152px;
  background: linear-gradient(180deg, #202020 0%, #070707 100%);
  border: 1px solid #4a4a4a;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 14px 0 0;
  overflow: hidden;
}
.scan-illustration { width: 56px; height: 100px; color: #fff; flex: none; margin-bottom: 2.2px; }
.no-valid-ticket p { margin: 0; font-size: 14.4px; line-height: 18px; color: #bdbdbd; }
.tickets-body .section-heading { margin-left: 26px; margin-right: 9px; font-size: 14.5px; }
.travelcards-heading { margin: 24px 9px 11px; }
.travelcard-list { display: flex; flex-direction: column; gap: 9px; }
.travelcard-row { margin: 0 9px; width: auto; height: 48px; font-size: 16.5px; line-height: 22px; padding: 0 16px; }
.travelcard-row.tall { height: 112px; }
.travelcard-row.medium { height: 91px; }
.travelcard-row > span { align-self: stretch; padding-top: 10px; }
.travelcard-text { display: flex; flex-direction: column; line-height: 22px; }
.travelcard-text .tc-title { font-size: 16.5px; line-height: 22px; margin-bottom: 2px; }
.travelcard-text small { font-size: 14.4px; line-height: 21px; color: #a9a9a9; }
.travelcard-text .tc-valid { font-size: 15px; line-height: 21px; font-weight: 700; color: #e3e3e3; margin-top: 0; }
.manually-heading { margin: 26px 9px 10px; }
.enter-travelcard {
  margin-left: 9px;
  height: 32px;
  padding: 0 17px;
  border-radius: 999px;
  border: 1.5px solid #8a8a8a;
  background: #212121;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.expired-empty { padding: 120px 30px; text-align: center; color: var(--muted); }
.expired-empty h2 { color: #fff; font-size: 20px; margin: 24px 0 8px; }
.expired-empty p { margin: 0; font-size: 16px; line-height: 1.4; }
.expired-icon { display: flex; justify-content: center; color: #fff; }
.expired-icon svg { width: 72px; height: 60px; }

/* ============================== shop ============================== */
.shop-body { padding-bottom: calc(var(--nav-height) + 8px); }
.profile-strip {
  width: calc(100% - 18px);
  margin: 0 9px 21px;
  height: 55px;
  border: 0;
  border-radius: 18px;
  background: var(--surface);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 13px;
  font-size: 18px;
  cursor: pointer;
}
.profile-strip strong { font-weight: 700; }
.shop-card {
  margin: 0 9px 20px;
  background: var(--surface);
  border-radius: 18px;
  padding: 9px 9px 19px;
}
.shop-card-head {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3px;
}
.shop-card-head p { margin: 0; font-size: 16px; line-height: 1.15; }
.shop-card-head strong { font-weight: 700; }
.shop-row {
  width: 100%;
  height: 46px;
  margin-top: 9px;
  border: 0;
  border-radius: 18px;
  background: var(--surface-3);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  font-size: 17px;
  text-align: left;
  cursor: pointer;
}
.shop-row span { flex: 1; }
.row-icon { width: 22px; height: 21px; flex: none; }
.products-heading { margin: 13px 9px 8px; font-size: 18px; font-weight: 700; line-height: 1.1; }
.products-head { height: 55px; padding: 0 3px; }
.products-head h3 { margin: 0; font-size: 18px; font-weight: 700; }
.count-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e7e7e7;
  color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
}
.products-card { margin-bottom: 30px; }
.services-view { padding-top: 0; }
.service-grid {
  margin: 0 9px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.service-tile {
  min-height: 105px;
  border: 0;
  border-radius: 18px;
  background: var(--surface);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 12px;
  padding: 15px;
  text-align: left;
  font-size: 16px;
  cursor: pointer;
}
.service-tile svg { width: 34px; height: 34px; }
.service-grid + .section-heading { margin: 0 9px 8px; }
.service-list { display: flex; flex-direction: column; gap: 9px; }
.service-row { margin: 0 9px; height: 52px; font-size: 17px; }

/* ============================== profile ============================== */
.profile-hero {
  height: 77px;
  margin: 5px 9px 0;
  background: var(--surface);
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 14px;
}
.profile-hero > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.profile-hero strong { font-size: 18px; line-height: 1.15; font-weight: 700; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.profile-hero span { font-size: 15px; line-height: 1.15; color: #bfbfbf; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.profile-body { padding: 20px 0 calc(var(--nav-height) + 8px); }
.profile-section-label {
  margin: 0 9px 4px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
  color: #fff;
}
.settings-card {
  margin: 0 9px 16px;
  background: var(--surface);
  border-radius: 18px;
  overflow: hidden;
}
.settings-row {
  width: 100%;
  height: 48px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  font-size: 18px;
  text-align: left;
  cursor: pointer;
}
.settings-row:last-child { border-bottom: 0; }
.settings-icon { width: 24px; height: 24px; flex: none; }
.logout-btn { margin: 4px 9px 0; height: 36px; padding: 0 16px; font-size: 16px; }
.version { margin: 25px 9px 0; font-size: 15px; color: #9f9f9f; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.version-dot { color: #5f5f5f; }
.admin-link { color: #6f6f6f; font-size: 13px; text-decoration: none; }
.admin-link:hover { color: #fff; text-decoration: underline; }

/* ============================== tab bar ============================== */
.tab-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--nav-height);
  background: #252525;
  border-radius: 28px 28px 0 0;
  z-index: 90;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding: 8px 9px 0;
  box-shadow: 0 -1px 0 rgba(255,255,255,.02);
}
.tab-item {
  position: relative;
  border: 0;
  background: transparent;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  cursor: pointer;
  min-width: 0;
}
.tab-bubble {
  width: 47px;
  height: 47px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: none;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.tab-bubble svg { width: 26px; height: 26px; }
.tab-label {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.1;
  color: #fff;
  opacity: 0;
  white-space: nowrap;
  transition: opacity .15s ease;
  max-width: 90px;
}
.tab-item.is-active .tab-bubble {
  background: #fff;
  color: #111;
  transform: scale(1);
}
.tab-item.is-active .tab-label { opacity: 1; }
.tab-item:not(.is-active):active .tab-bubble { background: rgba(255,255,255,.08); }

/* ============================== sheet / toast ============================== */
.sheet-backdrop {
  position: absolute;
  inset: 0;
  z-index: 290;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(1px);
  animation: fade-in .18s ease-out;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  position: absolute;
  z-index: 300;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 82%;
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  padding: 7px 16px 28px;
  transform: translateY(100%);
  transition: transform .26s cubic-bezier(.22,.8,.25,1);
  overflow-y: auto;
  scrollbar-width: none;
}
.sheet::-webkit-scrollbar { display: none; }
.sheet.is-open { transform: translateY(0); }
.sheet-grabber { width: 42px; height: 4px; border-radius: 99px; background: #777; margin: 0 auto 12px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sheet-head h2 { margin: 0; font-size: 21px; line-height: 1.2; font-weight: 700; }
.sheet-close {
  width: 34px; height: 34px; border-radius: 50%; border: 0; background: #3c3c3c; color: #fff;
  display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; flex: none;
}
.sheet-close svg { width: 20px; height: 20px; }
.sheet-body { font-size: 16px; line-height: 1.4; color: #d3d3d3; }
.sheet-body p { margin: 0 0 14px; }
.sheet-body .sheet-actions { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }
.sheet-body .sheet-action {
  width: 100%; height: 48px; border: 0; border-radius: 18px; background: #3b3b3b;
  color: #fff; font-size: 16px; text-align: left; padding: 0 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
}
.sheet-body .sheet-action.primary { background: var(--red); justify-content: center; font-weight: 700; }
.sheet-body .sheet-action.danger { color: #ff8a8a; }
.counter-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.counter-row:last-of-type { border-bottom: 0; }
.counter-row span { font-size: 17px; color: #fff; }
.counter-control { display: flex; align-items: center; gap: 14px; }
.counter-control button {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid #8a8a8a; background: transparent;
  color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.counter-control output { min-width: 22px; text-align: center; font-size: 17px; color: #fff; }
.sheet .red-button { width: 100%; margin-top: 18px; }
.station-sheet-map {
  height: 150px; border-radius: 16px; overflow: hidden; position: relative; margin-bottom: 16px;
  background: #162c4d;
}
.station-sheet-map img.base { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.63) contrast(1.2); }
.station-sheet-map img.rail { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(2.2); mix-blend-mode: screen; opacity: .55; }
.station-sheet-map::after { content: ""; position: absolute; inset: 0; background: #1a3766; mix-blend-mode: color; opacity: .9; }
.toast {
  position: absolute;
  z-index: 400;
  left: 50%;
  bottom: 118px;
  transform: translate(-50%, 14px);
  max-width: calc(100% - 32px);
  background: #f2f2f2;
  color: #111;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 14px;
  line-height: 1.1;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  white-space: nowrap;
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 430px) {
  .app { border-radius: 0; }
}
