@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ============================================================
   Design tokens - matched to the approved Claude Design mockup.
   Dark by default, light via prefers-color-scheme (system-driven,
   same as native iOS apps - no manual toggle).
   ============================================================ */
:root {
  --app-bg: #12141f; --app-bg-2: #161826; --app-surface: #1e2030; --app-surface-2: #252838;
  --app-text: #e9e9ed; --app-muted: #9397ab; --app-faint: #75798c;
  --app-line: rgba(233,233,237,.10); --app-line-2: rgba(233,233,237,.16);
  --app-accent: #9184d9; --app-accent-soft: rgba(145,132,217,.14); --app-accent-line: rgba(145,132,217,.42);
  --app-glow: 0 0 0 1px rgba(145,132,217,.28), 0 18px 46px rgba(0,0,0,.62), 0 0 64px -12px rgba(145,132,217,.30);
  --app-elev: 0 0 0 1px rgba(233,233,237,.07), 0 8px 24px rgba(0,0,0,.45);
  --app-bar: rgba(18,20,31,.82); --app-ok: #7fd1a8; --app-warn: #e0b56a; --app-bad: #e2807c;
}
@media (prefers-color-scheme: light) {
  :root {
    --app-bg: #eff0f8; --app-bg-2: #f5f6fc; --app-surface: #ffffff; --app-surface-2: #f7f8fd;
    --app-text: #22242e; --app-muted: #5c6070; --app-faint: #868a9b;
    --app-line: rgba(34,36,46,.10); --app-line-2: rgba(34,36,46,.16);
    --app-accent: #5d5294; --app-accent-soft: rgba(93,82,148,.10); --app-accent-line: rgba(93,82,148,.34);
    --app-glow: 0 0 0 1px rgba(93,82,148,.22), 0 14px 34px rgba(34,36,46,.14), 0 0 48px -16px rgba(93,82,148,.28);
    --app-elev: 0 0 0 1px rgba(34,36,46,.06), 0 6px 18px rgba(34,36,46,.08);
    --app-bar: rgba(245,246,252,.84); --app-ok: #2f7f5b; --app-warn: #8a6212; --app-bad: #a53f3b;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--app-text);
  background: radial-gradient(120% 46% at 50% 0%, var(--app-bg-2) 0%, var(--app-bg) 62%) fixed;
  padding-bottom: calc(90px + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}
a { color: var(--app-accent); text-decoration: none; }

@keyframes riseIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes glowPulse { 0%, 100% { opacity: .35; } 50% { opacity: .75; } }

main { padding: 0 20px; max-width: 640px; margin: 0 auto; }

/* --- Large-title page headers (no sticky bar - scrolls with content) --- */
.page-eyebrow {
  padding: calc(14px + env(safe-area-inset-top)) 0 0;
  display: flex; align-items: center; gap: 10px;
}
.page-eyebrow-badge {
  position: relative; display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 11px; background: var(--app-accent-soft); box-shadow: inset 0 0 0 1px var(--app-accent-line);
  flex-shrink: 0;
}
.page-eyebrow-label {
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--app-muted);
}
.page-title {
  margin: 18px 0 0; font-size: 34px; font-weight: 600; letter-spacing: -.03em; line-height: 1;
  padding-top: calc(22px + env(safe-area-inset-top));
}
.page-eyebrow + .page-title { padding-top: 18px; margin-top: 0; }
.page-title.title-lg { font-size: 40px; padding-top: 18px; }
.page-subtitle { margin-top: 6px; font-size: 14.5px; color: var(--app-muted); }

/* --- Search --- */
.search-pill {
  margin-top: 16px; display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 13px;
  border-radius: 13px; background: var(--app-surface); box-shadow: inset 0 0 0 1px var(--app-line);
}
.search-pill svg { flex-shrink: 0; color: var(--app-faint); }
.search-pill input {
  flex: 1; background: transparent; border: 0; font-size: 15px; color: var(--app-text); min-width: 0;
}
.search-pill input::placeholder { color: var(--app-faint); }
.search-pill button {
  flex-shrink: 0; background: transparent; border: 0; color: var(--app-accent); font-size: 14px; font-weight: 600;
}

/* --- Section eyebrow rule (Today / Upcoming / Past / By month labels) --- */
.section-head { display: flex; align-items: center; gap: 10px; margin: 26px 0 11px; }
.section-head.accent .section-head-label { color: var(--app-accent); }
.section-head-label { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--app-muted); }
.section-head-rule { flex: 1; height: 1px; background: linear-gradient(to right, var(--app-line-2), transparent); }

/* --- Needs Review card --- */
.review-card {
  display: flex; align-items: center; gap: 11px; padding: 12px 13px; margin-top: 20px;
  border-radius: 15px; background: var(--app-surface); box-shadow: inset 0 0 0 1px var(--app-accent-line);
}
.review-icon {
  display: grid; place-items: center; width: 30px; height: 30px; flex: none;
  border-radius: 9px; background: var(--app-accent-soft);
}
.review-body { flex: 1; min-width: 0; }
.review-title { display: block; font-size: 14px; font-weight: 500; }
.review-sub { display: block; font-size: 12.5px; color: var(--app-muted); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 14px; border: 1px solid transparent;
  border-radius: 12px; padding: 10px 16px; text-decoration: none; color: var(--app-text);
  transition: transform 0.1s;
}
.btn:active { transform: scale(0.97); }
.btn-soft { background: var(--app-accent-soft); border-color: var(--app-accent-line); }
.btn-ghost { background: transparent; color: var(--app-accent); padding: 0; border: 0; font-size: 13px; }
.btn-secondary { background: transparent; border-color: var(--app-line-2); }
.btn-block { display: flex; width: 100%; }
textarea.input, input.input {
  width: 100%; font: inherit; font-size: 15px; color: var(--app-text); background: var(--app-surface);
  border: 1px solid var(--app-line); border-radius: 18px; padding: 14px;
}
textarea.input::placeholder { color: var(--app-faint); }
textarea.input { min-height: 170px; line-height: 1.5; resize: vertical; }

/* --- Today hero card --- */
.hero-card {
  position: relative; border-radius: 24px; padding: 20px 18px 18px; margin-top: 11px;
  background: linear-gradient(168deg, var(--app-surface-2), var(--app-surface) 58%);
  box-shadow: var(--app-glow); animation: riseIn .45s cubic-bezier(.2,.8,.2,1) both;
}
.hero-card::before {
  content: ""; position: absolute; top: 0; left: 26px; right: 26px; height: 1px;
  background: linear-gradient(to right, transparent, var(--app-accent-line), transparent);
}
.hero-date { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.hero-date-day { font-size: 12px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--app-muted); }
.hero-date-route { font-size: 14px; color: var(--app-faint); }

.hero-qr-btn { display: block; margin: 16px auto 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
.hero-qr-btn:active { transform: scale(0.975); }
.hero-qr-frame { position: relative; display: block; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.hero-qr-frame img { display: block; width: 190px; height: 190px; }
.hero-qr-hint { margin-top: 11px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--app-muted); }
.hero-qr-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--app-accent); animation: glowPulse 2.4s ease-in-out infinite; }

.hero-rule { margin: 16px 0 14px; height: 1px; background: linear-gradient(to right, transparent, var(--app-line-2) 20%, var(--app-line-2) 80%, transparent); }

.hero-grid { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 14px; }
.hero-grid-divider { background: linear-gradient(to bottom, transparent, var(--app-line-2), transparent); }
.hero-col { display: flex; flex-direction: column; gap: 6px; }
.hero-col-label { font-size: 10.5px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--app-accent); }
.hero-col-time { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.hero-col-time-main { font-size: 27px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.hero-col-time-arrival { font-size: 13px; color: var(--app-muted); }
.hero-col-train { font-size: 13px; color: var(--app-muted); }
.hero-col-seat { font-size: 13.5px; font-weight: 500; }
.hero-col-empty { font-size: 13px; color: var(--app-faint); padding: 8px 0; }

.hero-open-btn { justify-content: center; height: 46px; margin-top: 18px; font-size: 15px; border-radius: 14px; width: 100%; }
.hero-open-btn svg { color: var(--app-accent); }

/* --- Upcoming cards --- */
.upcoming-card { border-radius: 18px; padding: 14px 15px; background: var(--app-surface); box-shadow: var(--app-elev); }
.upcoming-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.upcoming-date { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.upcoming-rel { font-size: 12px; color: var(--app-faint); }
.upcoming-grid { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 12px; }
.upcoming-grid-divider { background: linear-gradient(to bottom, transparent, var(--app-line), transparent); }
.upcoming-col { display: flex; flex-direction: column; gap: 3px; }
.upcoming-col-label { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--app-faint); }
.upcoming-col-time { font-size: 18px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.upcoming-col-seat { font-size: 12.5px; color: var(--app-muted); }
.upcoming-open { margin-top: 10px; font-size: 13px; }

/* --- Past list --- */
.past-list { border-radius: 18px; background: var(--app-surface); box-shadow: var(--app-elev); overflow: hidden; }
.past-row {
  display: flex; width: 100%; align-items: center; gap: 12px; padding: 13px 15px;
  border: 0; background: transparent; color: var(--app-text); cursor: pointer; text-align: left;
  box-shadow: inset 0 -1px 0 var(--app-line); text-decoration: none;
}
.past-row:last-child { box-shadow: none; }
.past-row-body { flex: 1; min-width: 0; }
.past-row-date { display: block; font-size: 14px; font-weight: 500; }
.past-row-trips { display: block; font-size: 12.5px; color: var(--app-faint); font-variant-numeric: tabular-nums; }
.past-row-price { font-size: 12.5px; color: var(--app-muted); font-variant-numeric: tabular-nums; }
.past-footer { margin: 12px 0 0; text-align: center; font-size: 12.5px; color: var(--app-faint); }

/* --- Add screen --- */
.add-actions { display: flex; gap: 9px; margin-top: 12px; }
.add-actions .btn-secondary { flex: none; height: 46px; border-radius: 14px; }
.add-actions .btn-soft { flex: 1; height: 46px; border-radius: 14px; font-size: 15px; }

.result-row { display: flex; gap: 11px; padding: 13px 14px; border-radius: 16px; background: var(--app-surface); box-shadow: var(--app-elev); animation: riseIn .35s ease both; }
.result-glyph { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--app-accent-soft); font-size: 13px; font-weight: 600; }
.result-body { flex: 1; min-width: 0; }
.result-top { display: flex; align-items: center; gap: 8px; }
.result-title { font-size: 14px; font-weight: 500; }
.result-tag { font-size: 10px; padding: 2px 7px; border-radius: 20px; background: var(--app-line); color: var(--app-muted); font-weight: 600; }
.result-msg { display: block; margin-top: 3px; font-size: 12.5px; color: var(--app-muted); word-break: break-all; }
.results-list { display: flex; flex-direction: column; gap: 10px; }

/* --- Calendar --- */
.cal-header-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: calc(22px + env(safe-area-inset-top)); }
.cal-legend { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--app-muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.cal-nav { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 14px; }
.cal-nav-btn {
  display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 10px; background: var(--app-surface); box-shadow: var(--app-elev); color: var(--app-text);
  font-size: 16px; text-decoration: none; flex-shrink: 0;
}
.cal-nav-center { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.cal-nav-label { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.cal-today-link { font-size: 11.5px; font-weight: 600; color: var(--app-accent); text-decoration: none; }

.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  border: 1px solid var(--app-line-2); border-radius: 14px; overflow: hidden;
  background: var(--app-surface);
}
.cal-weekday {
  text-align: center; font-size: 10px; font-weight: 700; letter-spacing: .06em;
  color: var(--app-faint); padding: 8px 2px; text-transform: uppercase;
  border-bottom: 1px solid var(--app-line-2); background: var(--app-bg-2);
}
.cal-cell {
  position: relative; min-height: 64px; display: flex; flex-direction: column;
  align-items: flex-start; padding: 5px 4px; gap: 2px;
  border-right: 1px solid var(--app-line); border-bottom: 1px solid var(--app-line);
  background: var(--app-surface); color: var(--app-text); text-decoration: none;
  font-size: 12.5px; font-weight: 500; transition: background-color 0.1s;
}
.cal-cell:active { background: var(--app-bg-2); }
.cal-cell-num { line-height: 1; }
.cal-cell-outside { background: transparent; color: var(--app-faint); opacity: 0.32; }
.cal-cell-today { background: color-mix(in srgb, var(--app-accent) 12%, var(--app-surface)); }
.cal-cell-today .cal-cell-num { color: var(--app-accent); font-weight: 800; }
.cal-today-tag {
  font-size: 8px; font-weight: 700; color: var(--app-accent); letter-spacing: .04em; text-transform: uppercase;
}
.cal-indicator { display: flex; align-items: center; gap: 3px; width: 100%; max-width: 100%; overflow: hidden; }
.cal-indicator-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.cal-indicator-text {
  font-size: 9px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; color: var(--app-text); opacity: 0.85;
}

@media (max-width: 380px) {
  .cal-cell { min-height: 56px; font-size: 11.5px; }
  .cal-indicator-text { font-size: 8px; }
}

.cal-annual-table { border-radius: 14px; background: var(--app-surface); box-shadow: var(--app-elev); overflow: hidden; }
.cal-annual-row {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 6px;
  padding: 10px 12px; box-shadow: inset 0 -1px 0 var(--app-line);
  font-size: 11.5px; align-items: center;
}
.cal-annual-row:last-child { box-shadow: none; }
.cal-annual-row-link { text-decoration: none; color: inherit; cursor: pointer; transition: background-color 0.1s; }
.cal-annual-row-link:active { background: var(--app-bg-2); }
.cal-annual-head {
  font-size: 9.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--app-faint); background: var(--app-bg-2);
}
.cal-annual-sort-link { color: inherit; text-decoration: none; }
.cal-annual-name { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--app-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-annual-row span:not(.cal-annual-name) { color: var(--app-muted); font-variant-numeric: tabular-nums; }

/* --- Modal (Add Event / Event Details) --- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55); display: none;
  align-items: center; justify-content: center; z-index: 50; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal-panel {
  background: var(--app-surface); border-radius: 18px; padding: 20px; width: 100%; max-width: 400px;
  box-shadow: var(--app-glow); max-height: 85vh; overflow-y: auto;
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-title { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.modal-close { background: transparent; border: none; font-size: 24px; line-height: 1; color: var(--app-faint); cursor: pointer; padding: 0 4px; }

/* --- Summary stat cards --- */
.stat-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 18px; }
.stat-card { padding: 15px; border-radius: 18px; background: linear-gradient(168deg, var(--app-surface-2), var(--app-surface)); box-shadow: var(--app-elev); }
.stat-eyebrow { font-size: 10.5px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--app-accent); }
.stat-value { margin-top: 8px; font-size: 34px; font-weight: 600; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 4px; }
.stat-value-unit { font-size: 13px; color: var(--app-muted); font-weight: 500; }
.stat-sub { margin-top: 5px; font-size: 12.5px; color: var(--app-faint); }

.month-list { border-radius: 18px; background: var(--app-surface); box-shadow: var(--app-elev); overflow: hidden; }
.month-row { padding: 12px 15px; box-shadow: inset 0 -1px 0 var(--app-line); }
.month-row:last-child { box-shadow: none; }
.month-top { display: flex; align-items: baseline; gap: 10px; }
.month-name { flex: 1; font-size: 14px; font-weight: 500; }
.month-count { font-size: 12.5px; color: var(--app-faint); font-variant-numeric: tabular-nums; }
.month-amount { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.month-bar-track { margin-top: 8px; height: 4px; border-radius: 2px; background: var(--app-line); overflow: hidden; }
.month-bar-fill { height: 100%; border-radius: 2px; background: linear-gradient(to right, var(--app-accent), var(--app-accent-line)); }

/* --- ID page --- */
.id-photo-card { position: relative; border-radius: 20px; overflow: hidden; background: var(--app-surface-2); box-shadow: var(--app-glow); margin-top: 20px; }
.id-photo-card img { display: block; width: 100%; aspect-ratio: 1.58; object-fit: cover; }
.id-photo-footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; background: var(--app-surface); }
.id-photo-added { font-size: 12.5px; color: var(--app-muted); }
.id-trust-note { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12.5px; color: var(--app-faint); }

.id-empty-card {
  display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 44px 22px; margin-top: 20px;
  border-radius: 20px; background: var(--app-surface); box-shadow: inset 0 0 0 1px var(--app-line);
}
.id-empty-icon { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 20px; background: var(--app-accent-soft); box-shadow: inset 0 0 0 1px var(--app-accent-line); }
.id-empty-title { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.02em; text-align: center; }
.id-empty-sub { display: block; margin-top: 5px; font-size: 13.5px; color: var(--app-muted); max-width: 250px; text-align: center; }
.id-upload-label { height: 46px; padding: 0 20px; border-radius: 14px; font-size: 15px; cursor: pointer; }
.id-upload-label input[type="file"] { display: none; }

/* --- History feed --- */
.history-list { border-radius: 18px; background: var(--app-surface); box-shadow: var(--app-elev); overflow: hidden; margin-top: 18px; }
.history-row { display: flex; gap: 11px; padding: 12px 15px; box-shadow: inset 0 -1px 0 var(--app-line); }
.history-row:last-child { box-shadow: none; }
.history-dot { width: 5px; height: 5px; margin-top: 7px; flex: none; border-radius: 50%; }
.history-body { flex: 1; min-width: 0; }
.history-top { display: flex; align-items: baseline; gap: 8px; }
.history-state { font-size: 13.5px; font-weight: 500; }
.history-spacer { flex: 1; }
.history-time { font-size: 12px; color: var(--app-faint); font-variant-numeric: tabular-nums; }
.history-msg { display: block; margin-top: 2px; font-size: 12.5px; color: var(--app-muted); }

/* --- Bottom tab bar --- */
.tab-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  padding: 8px 8px calc(2px + env(safe-area-inset-bottom));
  background: var(--app-bar); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 1px 0 var(--app-line);
}
.tab-grid { display: grid; grid-template-columns: repeat(5, 1fr); max-width: 640px; margin: 0 auto; }
.tab-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0 6px;
  border: 0; background: transparent; cursor: pointer; text-decoration: none; color: var(--app-faint);
}
.tab-indicator { height: 2px; width: 16px; border-radius: 1px; background: var(--app-accent); opacity: 0; }
.tab-item.active { color: var(--app-accent); }
.tab-item.active .tab-indicator { opacity: 1; }
.tab-item-label { font-size: 10px; font-weight: 500; letter-spacing: .01em; }

/* --- PDF viewer / Gate Scan full-screen pages --- */
.fullscreen-page { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; background: var(--app-bg); }
.pdf-topbar {
  padding: calc(14px + env(safe-area-inset-top)) 14px 12px; display: flex; align-items: center; gap: 8px;
  background: var(--app-bar); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  box-shadow: inset 0 -1px 0 var(--app-line);
}
.pdf-back { display: inline-flex; align-items: center; gap: 3px; font-size: 15px; padding: 4px 6px; background: transparent; border: 0; color: var(--app-accent); font-weight: 600; cursor: pointer; }
.pdf-topbar-title { flex: 1; text-align: center; margin-left: -40px; }
.pdf-topbar-title-main { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.pdf-topbar-title-sub { display: block; font-size: 11.5px; color: var(--app-faint); }
.pdf-frame { flex: 1; border: none; display: block; background: var(--app-surface); }

.gate-scan-page {
  position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px; padding: 40px 28px; background: #ffffff; color: #22242e;
  animation: riseIn .22s ease both;
}
.gate-scan-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #868a9b; text-align: center; }
.gate-scan-title { margin-top: 5px; font-size: 22px; font-weight: 600; letter-spacing: -.025em; text-align: center; }
.gate-scan-qr { width: 280px; height: 280px; max-width: 80vw; max-height: 80vw; }
.gate-scan-legs { display: flex; gap: 26px; font-variant-numeric: tabular-nums; }
.gate-scan-leg { text-align: center; }
.gate-scan-leg-label { font-size: 10px; font-weight: 700; letter-spacing: .14em; color: #868a9b; }
.gate-scan-leg-value { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.gate-scan-done {
  position: absolute; bottom: calc(44px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  height: 48px; padding: 0 30px; border-radius: 14px; border: 1px solid rgba(34,36,46,.18); background: transparent;
  font: 600 15px "Inter", system-ui, sans-serif; color: #22242e; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
}

/* --- Misc --- */
.empty-state { text-align: center; padding: 40px 0; }
.empty-state-icon { font-size: 32px; margin-bottom: 8px; opacity: .5; }
.empty-text { color: var(--app-faint); font-size: 14px; }
