:root {
  --blue: #0A73F6;
  --blue-dark: #005ED8;
  --bg: #F4F5F7;
  --card: #FFFFFF;
  --text: #2A2A2A;
  --muted: #8B8B8B;
  --border: #E2E6EC;
  --success: #22B573;
  --warning: #FF9F1C;
  --danger: #EF4444;
  --ink: #10223f;
  --soft-blue: #eef5ff;
  --shadow: 0 18px 45px rgba(16, 34, 63, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", Arial, sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

input,
textarea,
select {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

button {
  border: 0;
  cursor: pointer;
}

#app {
  min-height: 100vh;
}

.app-frame {
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  background: linear-gradient(180deg, #fbfdff 0%, var(--bg) 42%, var(--bg) 100%);
}

.screen {
  min-height: 100vh;
  padding: 18px 16px calc(110px + env(safe-area-inset-bottom));
}

.auth-screen {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 100vh;
  padding: 26px 18px calc(22px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 86% 4%, rgba(10, 115, 246, 0.12), transparent 34%),
    linear-gradient(180deg, #fbfdff 0%, #f7faff 48%, var(--bg) 100%);
}

.auth-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.hero-illustration {
  position: relative;
  min-height: 245px;
  overflow: hidden;
  border-radius: 30px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.94), rgba(232, 242, 255, 0.82)),
    linear-gradient(180deg, #f9fbff, #edf5ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.hero-illustration::before,
.hero-illustration::after {
  position: absolute;
  content: "";
}

.hero-illustration::before {
  right: 24px;
  bottom: 40px;
  width: 132px;
  height: 58px;
  border-radius: 18px 22px 16px 16px;
  background: linear-gradient(135deg, #dcecff, #ffffff);
  box-shadow:
    0 24px 45px rgba(36, 84, 140, 0.16),
    inset 0 -12px 0 rgba(10, 115, 246, 0.08);
}

.hero-illustration::after {
  left: 36px;
  bottom: 62px;
  width: 128px;
  height: 76px;
  border-radius: 16px;
  background: linear-gradient(135deg, #4b82ff, #0a73f6);
  box-shadow: 0 22px 34px rgba(10, 115, 246, 0.25);
  transform: rotate(-8deg);
}

.city-blocks,
.bus-shape,
.route-line,
.pin-shape,
.card-lines {
  position: absolute;
  pointer-events: none;
}

.city-blocks {
  inset: 26px 20px auto auto;
  width: 126px;
  height: 118px;
  background:
    linear-gradient(#ffffff, #ffffff) 0 36px / 34px 82px no-repeat,
    linear-gradient(#ffffff, #ffffff) 48px 10px / 32px 108px no-repeat,
    linear-gradient(#ffffff, #ffffff) 96px 0 / 30px 118px no-repeat;
  opacity: 0.78;
}

.bus-shape {
  right: 42px;
  bottom: 59px;
  width: 112px;
  height: 46px;
  border-radius: 14px 18px 12px 12px;
  background:
    linear-gradient(90deg, #203a5e 0 12%, transparent 12% 100%),
    linear-gradient(180deg, #f9fbff 0 40%, #a9c8ed 40% 100%);
  box-shadow: 0 10px 18px rgba(16, 34, 63, 0.17);
}

.bus-shape::before {
  position: absolute;
  top: 10px;
  left: 20px;
  width: 68px;
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, #bad6f6, #ffffff);
  content: "";
}

.bus-shape::after {
  position: absolute;
  right: 12px;
  bottom: -6px;
  left: 20px;
  height: 12px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 16px 50%, #172744 0 6px, transparent 7px),
    radial-gradient(circle at 74px 50%, #172744 0 6px, transparent 7px);
  content: "";
}

.route-line {
  left: 16px;
  right: 18px;
  bottom: 30px;
  height: 74px;
  border-bottom: 10px solid rgba(10, 115, 246, 0.1);
  border-radius: 0 0 38px 38px;
}

.pin-shape {
  top: 70px;
  left: 66px;
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 6px;
  background: linear-gradient(180deg, #b7d2ff, #eaf3ff);
  transform: rotate(-45deg);
}

.pin-shape::after {
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.card-lines {
  left: 82px;
  bottom: 98px;
  z-index: 1;
  width: 58px;
  height: 30px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.42)) 0 0 / 46px 5px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.42)) 0 14px / 34px 5px no-repeat,
    radial-gradient(circle at 12px 28px, rgba(255, 255, 255, 0.58) 0 6px, transparent 7px);
}

.auth-copy h1,
.page-title h1 {
  margin: 0;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.15;
}

.auth-copy p,
.page-title p {
  margin: 10px 0 0;
  color: #69758a;
  font-size: 16px;
  line-height: 1.42;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.input-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 8px 20px rgba(16, 34, 63, 0.04);
}

.input-shell input,
.input-shell textarea,
.plain-input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.input-shell textarea {
  min-height: 112px;
  padding: 15px 0;
  resize: vertical;
}

.input-shell:focus-within {
  border-color: rgba(10, 115, 246, 0.6);
  box-shadow: 0 0 0 4px rgba(10, 115, 246, 0.09);
}

.phone-prefix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  height: 22px;
  border-radius: 7px;
  background:
    linear-gradient(#ffffff 0 33%, #1f63d7 33% 66%, #ef4444 66% 100%);
  box-shadow: inset 0 0 0 1px rgba(16, 34, 63, 0.08);
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, #2d7dff, var(--blue));
  color: #fff;
  font-weight: 750;
  box-shadow: 0 14px 26px rgba(10, 115, 246, 0.24);
}

.primary-btn:active {
  transform: translateY(1px);
}

.secondary-btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background: #eef5ff;
  font-weight: 700;
}

.secondary-btn {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
}

.icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 15px;
}

.error-text {
  min-height: 18px;
  margin: -4px 0 0;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.35;
}

.auth-note,
.info-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 28px rgba(16, 34, 63, 0.06);
}

.auth-note {
  color: var(--ink);
  line-height: 1.35;
}

.note-icon,
.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--soft-blue);
  color: var(--blue);
}

.shell {
  min-height: 100vh;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 14px;
  color: #61708a;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 18px rgba(16, 34, 63, 0.06);
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
  text-decoration: none;
}

.logout-btn svg {
  flex: 0 0 auto;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(16, 34, 63, 0.06);
}

.search-row svg {
  flex: 0 0 auto;
  color: #7c8ca5;
}

.chip-row {
  display: flex;
  gap: 9px;
  margin: 14px -16px 18px 0;
  padding-bottom: 4px;
  padding-right: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  min-height: 39px;
  padding: 0 15px;
  border-radius: 14px;
  color: #546276;
  background: #fff;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(16, 34, 63, 0.05);
}

.chip.active {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 20px rgba(10, 115, 246, 0.24);
}

.news-grid {
  display: grid;
  gap: 12px;
}

.news-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 18px;
  gap: 12px;
  width: 100%;
  min-height: 188px;
  padding: 10px;
  border: 1px solid rgba(226, 230, 236, 0.8);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(16, 34, 63, 0.07);
  text-align: left;
}

.news-thumb {
  display: block;
  width: 132px;
  height: 168px;
  overflow: hidden;
  border-radius: 20px;
  background: #eaf2ff;
  box-shadow: inset 0 0 0 1px rgba(16, 34, 63, 0.05);
}

.news-thumb img,
.news-detail-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.news-body {
  min-width: 0;
  padding: 3px 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  margin-bottom: 6px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--tag-color);
  font-size: 12px;
  font-weight: 700;
}

.news-body h2 {
  margin: 0 0 6px;
  color: #17223a;
  font-size: 15px;
  line-height: 1.28;
}

.news-body p {
  margin: 0 0 8px;
  color: #58657a;
  font-size: 13px;
  line-height: 1.36;
}

.date {
  color: #707e92;
  font-size: 12px;
}

.arrow {
  align-self: center;
  color: #718098;
}

.empty-state,
.toast {
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  color: #657188;
  text-align: center;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(16, 34, 63, 0.06);
}

.news-detail-screen .topbar {
  align-items: center;
  margin-bottom: 12px;
}

.news-detail-card {
  overflow: hidden;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.news-detail-image {
  width: 100%;
  max-height: 340px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #eaf2ff;
}

.news-detail-content {
  padding: 20px;
}

.news-detail-content h1 {
  margin: 6px 0 10px;
  color: var(--ink);
  font-size: 25px;
  line-height: 1.15;
}

.news-detail-content p {
  margin: 14px 0 0;
  color: #526074;
  font-size: 15px;
  line-height: 1.56;
}

.news-detail-content .date {
  display: block;
  margin: 0;
  color: #7b8798;
  font-size: 13px;
}

.news-detail-content .lead {
  color: #26364f;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.42;
}

.ticket-screen {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ticket-layout {
  display: grid;
  gap: 16px;
}

.ticket-card {
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 22px 46px rgba(16, 34, 63, 0.15);
}

.ticket-blue {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  padding: 30px 28px 26px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.28), transparent 24%),
    linear-gradient(135deg, #0A73F6 0%, #1f86ff 52%, #005ED8 100%);
}

.ticket-name {
  position: relative;
  z-index: 2;
  max-width: 230px;
  margin: 18px 0 0 0px;
}

.ticket-name h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.16;
}

.ticket-name p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  line-height: 1.2;
}

.contactless {
  position: absolute;
  z-index: 3;
  top: 30px;
  right: 26px;
  color: rgba(255, 255, 255, 0.94);
}

.ticket-city {
  position: absolute;
  z-index: 3;
  right: 76px;
  bottom: 92px;
  font-size: 32px;
  font-weight: 800;
}

.ticket-map-art {
  position: absolute;
  right: -16px;
  bottom: 48px;
  width: 68%;
  max-width: 420px;
  opacity: 0.9;
}

.city-silhouette {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 62%;
  height: 126px;
}

.ticket-info {
  position: relative;
  z-index: 4;
  margin-top: -34px;
  padding: 28px 22px 26px;
  border-radius: 28px 28px 0 0;
  background: #fff;
}

.ticket-status-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr) 48px;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
}

.ticket-status-row > div {
  min-width: 0;
}

.ticket-label {
  display: block;
  color: #727b89;
  font-size: 15px;
  line-height: 1.3;
}

.success-value,
.tariff-value,
.ticket-summary-item strong {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  color: var(--blue-dark);
  font-size: 20px;
  line-height: 1.2;
  min-width: 0;
  overflow-wrap: anywhere;
}

.success-value,
.tariff-value {
  font-size: 17px;
}

.success-value,
.success-text {
  color: var(--success);
}

.success-value span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
}

.success-value svg {
  width: 16px;
  height: 16px;
}

.ticket-divider {
  width: 1px;
  height: 54px;
  background: var(--border);
}

.transport-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f1f6ff;
  color: var(--blue);
}

.transport-badge svg {
  width: 22px;
  height: 22px;
  margin: 0 -3px;
}

.qr-panel {
  display: grid;
  grid-template-columns: minmax(96px, 116px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.mock-qr {
  display: grid;
  grid-template-columns: repeat(17, 1fr);
  width: 116px;
  height: 116px;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
}

.mock-qr span {
  background: transparent;
}

.mock-qr span.on {
  background: #171717;
}

.qr-copy {
  min-width: 0;
}

.qr-copy p {
  margin: 0 0 20px;
  color: #727b89;
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.qr-timer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: #858b96;
  font-size: 14px;
  line-height: 1.3;
  min-width: 0;
  overflow-wrap: anywhere;
}

.qr-timer svg {
  flex: 0 0 auto;
}

.qr-timer svg,
.qr-timer strong {
  color: var(--blue);
}

.qr-timer strong {
  flex: 0 0 auto;
  white-space: nowrap;
}

.ticket-summary {
  display: grid;
  gap: 14px;
}

.ticket-summary-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 86px;
  padding: 14px 18px;
  border: 1px solid rgba(226, 230, 236, 0.88);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(16, 34, 63, 0.06);
}

.summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(180deg, #2e88ff, var(--blue));
  color: #fff;
  box-shadow: 0 10px 18px rgba(10, 115, 246, 0.22);
}

.ticket-summary-item strong {
  margin-top: 3px;
  color: #1f2937;
}

.ticket-summary-item strong.success-text {
  color: var(--success);
}

.delete-account-btn {
  width: 100%;
  min-height: 54px;
  margin-top: 2px;
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 20px;
  background: rgba(239, 68, 68, 0.08);
  color: var(--danger);
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.08);
}

.delete-account-btn:active {
  transform: translateY(1px);
}

.dialog-backdrop {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 34, 63, 0.3);
  backdrop-filter: blur(8px);
}

.dialog-card {
  width: min(100%, 360px);
  padding: 24px 20px 20px;
  border: 1px solid rgba(226, 230, 236, 0.9);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 54px rgba(16, 34, 63, 0.22);
  text-align: center;
}

.dialog-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.dialog-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.dialog-actions.two-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dialog-btn {
  min-height: 48px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 800;
}

.dialog-btn.primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 18px rgba(10, 115, 246, 0.22);
}

.dialog-btn.secondary {
  background: #f2f5f9;
  color: #536174;
}

.dialog-btn.danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

@media (max-width: 374px) {
  .ticket-info {
    padding-right: 18px;
    padding-left: 18px;
  }

  .ticket-status-row {
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr) 42px;
    gap: 10px;
  }

  .transport-badge {
    width: 42px;
    height: 42px;
  }

  .success-value,
  .tariff-value {
    font-size: 16px;
  }

  .qr-panel {
    grid-template-columns: 102px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .mock-qr {
    width: 102px;
    height: 102px;
    padding: 7px;
  }

  .qr-copy p {
    margin-bottom: 16px;
    font-size: 15px;
  }

  .qr-timer {
    gap: 5px;
    font-size: 13px;
  }
}

.help-layout {
  display: grid;
  gap: 16px;
}

.help-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.textarea-shell {
  align-items: stretch;
  min-height: 140px;
}

.char-count {
  margin-top: -4px;
  color: #7c8798;
  font-size: 12px;
  text-align: right;
}

.success-message {
  display: none;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(34, 181, 115, 0.12);
  color: #14834f;
  line-height: 1.4;
}

.success-message.show {
  display: block;
}

.privacy-consent {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #667287;
  font-size: 13px;
  line-height: 1.35;
}

.privacy-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--blue);
}

.privacy-consent a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.privacy-consent a:hover {
  text-decoration: underline;
}

.form-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 0;
  color: #7d8798;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.privacy-page {
  min-height: 100vh;
}

.privacy-card {
  padding: 22px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.privacy-card p {
  margin: 0 0 14px;
  color: #526074;
  font-size: 16px;
  line-height: 1.55;
}

.privacy-card p:last-child {
  margin-bottom: 0;
}

.privacy-card h2 {
  margin: 24px 0 12px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
}

.privacy-card ul {
  margin: -4px 0 16px;
  padding-left: 20px;
  color: #526074;
  font-size: 16px;
  line-height: 1.55;
}

.privacy-card li {
  margin-bottom: 6px;
}

.privacy-date {
  color: var(--blue-dark);
  font-weight: 750;
}

.tabbar {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: calc(72px + env(safe-area-inset-bottom));
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(226, 230, 236, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.tab-btn {
  display: grid;
  place-items: center;
  gap: 4px;
  border-radius: 15px;
  color: #8791a1;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

.tab-btn svg {
  width: 24px;
  height: 24px;
}

.tab-btn.active {
  color: var(--blue);
}

@media (min-width: 768px) {
  .screen {
    padding: 28px 28px calc(116px + env(safe-area-inset-bottom));
  }

  .auth-screen {
    align-items: center;
    justify-content: center;
    padding: 42px 28px;
  }

  .auth-card {
    display: grid;
    grid-template-columns: minmax(290px, 390px) minmax(320px, 430px);
    align-items: center;
    max-width: 860px;
    min-height: 560px;
    padding: 24px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: var(--shadow);
  }

  .hero-illustration {
    min-height: 500px;
  }

  .auth-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .page-title h1 {
    font-size: 30px;
  }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .news-card {
    grid-template-columns: 150px minmax(0, 1fr) 18px;
    min-height: 190px;
  }

  .news-thumb {
    width: 150px;
    height: 170px;
  }

  .chip-row {
    margin-right: 0;
  }

  .ticket-screen {
    align-items: center;
  }

  .ticket-layout {
    width: min(100%, 720px);
  }

  .ticket-blue {
    min-height: 440px;
    padding: 34px 34px 28px;
  }

  .ticket-name h2 {
    font-size: 34px;
  }

  .ticket-map-art {
    width: 62%;
  }

  .city-silhouette {
    width: 54%;
  }

  .ticket-info {
    padding: 30px 32px 32px;
  }

  .qr-panel {
    grid-template-columns: 162px 1fr;
    padding: 22px;
  }

  .mock-qr {
    width: 162px;
    height: 162px;
  }

  .ticket-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ticket-summary-item:last-child {
    grid-column: 1 / -1;
  }

  .help-layout {
    max-width: 660px;
    margin: 0 auto;
  }

  .help-card {
    padding: 24px;
  }

  .tabbar {
    right: 50%;
    left: 50%;
    width: min(100%, 1024px);
    transform: translateX(-50%);
  }
}

@media (min-width: 1025px) {
  .app-frame {
    max-width: 1024px;
    box-shadow: 0 0 0 1px rgba(226, 230, 236, 0.8);
  }
}

/* Fare finder */
.fare-screen,
.help-screen {
  background:
    radial-gradient(circle at 92% 0%, rgba(10, 115, 246, 0.1), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 34%);
}

.fare-layout {
  display: grid;
  gap: 14px;
  max-width: 680px;
  margin: 0 auto;
}

.fare-intro,
.faq-intro {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(211, 226, 247, 0.82);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(237, 246, 255, 0.96));
  box-shadow: 0 12px 30px rgba(16, 34, 63, 0.07);
}

.fare-intro-icon,
.faq-intro-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(145deg, #2e88ff, var(--blue));
  box-shadow: 0 10px 20px rgba(10, 115, 246, 0.24);
}

.fare-intro-icon svg,
.faq-intro-icon svg {
  width: 25px;
  height: 25px;
}

.fare-intro div,
.faq-intro div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.fare-intro strong,
.faq-intro strong {
  color: var(--ink);
  font-size: 16px;
}

.fare-intro div span,
.faq-intro div span {
  color: #6e7b8f;
  font-size: 13px;
  line-height: 1.35;
}

.fare-form {
  display: grid;
  gap: 22px;
  padding: 20px;
  border: 1px solid rgba(226, 230, 236, 0.8);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.fare-field {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.fare-field label,
.fare-field legend {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin: 0;
  padding: 0;
  color: #26364f;
  font-size: 14px;
  font-weight: 750;
}

.fare-field label > span,
.fare-field legend > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  color: var(--blue);
  background: var(--soft-blue);
  font-size: 12px;
  font-weight: 850;
}

.select-shell {
  position: relative;
}

.select-shell::after {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #66758b;
  border-bottom: 2px solid #66758b;
  content: "";
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

.select-shell select {
  width: 100%;
  min-height: 56px;
  padding: 0 48px 0 16px;
  border: 1px solid #dce3ed;
  border-radius: 17px;
  outline: none;
  color: var(--ink);
  background: #f9fbfd;
  appearance: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.select-shell select:focus {
  border-color: rgba(10, 115, 246, 0.7);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(10, 115, 246, 0.1);
}

.trip-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.trip-option {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 65px;
  padding: 9px 5px;
  border: 1px solid #dce3ed;
  border-radius: 17px;
  color: #26364f;
  background: #f9fbfd;
  font-size: 19px;
  font-weight: 850;
  transition: transform 150ms ease, color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.trip-option small {
  color: #7c899b;
  font-size: 10px;
  font-weight: 650;
}

.trip-option.active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(145deg, #2e88ff, var(--blue));
  box-shadow: 0 10px 22px rgba(10, 115, 246, 0.24);
}

.trip-option.active small {
  color: rgba(255, 255, 255, 0.8);
}

.trip-option:active {
  transform: scale(0.98);
}

.fare-submit {
  margin-top: 2px;
}

.primary-btn:disabled {
  cursor: default;
  opacity: 0.46;
  box-shadow: none;
}

.fare-result {
  overflow: hidden;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 22px 46px rgba(16, 34, 63, 0.16);
  animation: result-in 260ms ease-out both;
}

@keyframes result-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fare-result-hero {
  position: relative;
  overflow: hidden;
  min-height: 315px;
  padding: 24px 22px 26px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.3), transparent 22%),
    linear-gradient(145deg, #2585ff 0%, var(--blue) 55%, var(--blue-dark) 100%);
}

.fare-result-hero::before,
.fare-result-hero::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  content: "";
}

.fare-result-hero::before {
  right: -84px;
  bottom: -105px;
  width: 260px;
  height: 260px;
}

.fare-result-hero::after {
  right: -18px;
  bottom: -45px;
  width: 150px;
  height: 150px;
}

.result-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 750;
}

.result-transport-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.17);
  backdrop-filter: blur(10px);
}

.result-eyebrow {
  position: relative;
  z-index: 1;
  margin: 28px 0 8px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 700;
}

.fare-result-hero h2 {
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin: 0;
  font-size: clamp(23px, 7vw, 31px);
  line-height: 1.18;
}

.result-price {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1px;
  margin-top: 27px;
}

.result-price strong {
  font-size: 38px;
  line-height: 1;
}

.result-price span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.fare-result-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.result-detail {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 15px;
  border-radius: 18px;
  background: #f5f8fc;
}

.result-detail span {
  color: #748197;
  font-size: 12px;
}

.result-detail strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.result-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 3px 4px 0;
  color: #6f7d91;
  font-size: 12px;
  line-height: 1.45;
}

.result-actions {
  display: grid;
  gap: 10px;
}

.secondary-action {
  min-height: 54px;
  border: 1px solid rgba(10, 115, 246, 0.2);
  border-radius: 18px;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(16, 34, 63, 0.05);
}

/* FAQ */
.help-screen .topbar {
  margin-bottom: 16px;
}

.faq-intro {
  max-width: 680px;
  margin: 0 auto 14px;
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 680px;
  margin: 0 auto;
}

.faq-item {
  scroll-margin-top: 16px;
  overflow: hidden;
  border: 1px solid rgba(226, 230, 236, 0.86);
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 34, 63, 0.06);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.faq-item.open {
  border-color: rgba(10, 115, 246, 0.26);
  box-shadow: 0 15px 32px rgba(10, 115, 246, 0.1);
}

.faq-question {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) 30px;
  gap: 11px;
  align-items: center;
  width: 100%;
  min-height: 76px;
  padding: 14px 13px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  font-size: 14px;
  font-weight: 780;
  line-height: 1.3;
}

.faq-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 12px;
  color: var(--blue);
  background: var(--soft-blue);
  font-size: 11px;
  font-weight: 850;
}

.faq-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 11px;
  color: var(--blue);
  background: #f0f6ff;
  font-size: 23px;
  font-weight: 400;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.faq-item.open .faq-toggle {
  color: #fff;
  background: var(--blue);
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 18px 20px 59px;
  color: #536174;
  font-size: 14px;
  line-height: 1.55;
  animation: answer-in 180ms ease-out both;
}

@keyframes answer-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.faq-answer[hidden] {
  display: none;
}

.faq-answer p {
  margin: 0;
}

.address-group {
  margin-top: 18px;
}

.address-group h3 {
  margin: 0 0 8px;
  color: #22324b;
  font-size: 15px;
}

.address-group ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.hours-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 12px;
  margin-top: 20px;
  padding: 14px;
  border-radius: 16px;
  color: #536174;
  background: var(--soft-blue);
  font-size: 13px;
}

.hours-card strong {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: var(--blue-dark);
}

@media (max-width: 374px) {
  .fare-form {
    padding: 17px;
  }

  .fare-result-hero {
    padding-right: 18px;
    padding-left: 18px;
  }

  .faq-question {
    grid-template-columns: 32px minmax(0, 1fr) 28px;
    gap: 8px;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 13px;
  }

  .faq-number {
    width: 32px;
    height: 32px;
  }

  .faq-answer {
    padding-right: 14px;
    padding-left: 50px;
  }
}

@media (min-width: 768px) {
  .fare-layout,
  .faq-intro,
  .faq-list {
    width: min(100%, 680px);
  }

  .fare-form {
    padding: 28px;
  }

  .fare-result-hero {
    min-height: 350px;
    padding: 30px;
  }

  .fare-result-details {
    padding: 22px;
  }

  .faq-question {
    padding: 16px 18px;
    font-size: 15px;
  }

  .faq-answer {
    padding-right: 24px;
    padding-left: 70px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fare-result,
  .faq-answer,
  .faq-toggle,
  .trip-option,
  .select-shell select {
    animation: none;
    transition: none;
  }
}
