/* ============================================================
   BXS — digital ticket platform
   Navy "Mobile ID" style. Follows the device (OS) light/dark theme.
   Self-contained, no external fonts/assets.
   ============================================================ */

:root {
  color-scheme: light dark;

  /* dark (default / OS dark) — deep navy */
  --bg1: #0c1c3d;
  --bg2: #070f22;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-2: rgba(255, 255, 255, 0.03);
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #eaf0fb;
  --muted: #93a6c8;
  --faint: #6c81a6;
  --accent: #4a90e2;
  --accent-strong: #2f74d0;
  --qr-bg: #ffffff;
  --qr-glow: rgba(74, 144, 226, 0.55);
  --good: #1fbf75;
  --warn: #e9c05a;
  --danger: #e5533d;
  --brandlogo: #ffffff;        /* logo ink — white on the dark theme */
  --card-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);

  --radius: 16px;
  --radius-lg: 22px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --mono: ui-monospace, "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg1: #eef2f9;
    --bg2: #e3e9f4;
    --panel: #ffffff;
    --panel-2: #f6f8fc;
    --line: rgba(11, 26, 60, 0.10);
    --line-strong: rgba(11, 26, 60, 0.16);
    --text: #0b1a38;
    --muted: #54648a;
    --faint: #8091b0;
    --accent: #2563eb;
    --accent-strong: #1d4ed8;
    --qr-bg: #ffffff;
    --qr-glow: rgba(37, 99, 235, 0.28);
    --brandlogo: #0054a1;      /* logo ink — AXS blue on the light theme */
    --card-shadow: 0 20px 44px -26px rgba(11, 26, 60, 0.32);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  background: var(--bg1);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  min-height: 100dvh;
  background:
    radial-gradient(1100px 560px at 50% -8%, rgba(74, 144, 226, 0.16), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
}
@media (prefers-color-scheme: light) {
  body { background:
    radial-gradient(1100px 560px at 50% -8%, rgba(37, 99, 235, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg2)); }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.bxs-wrap {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 0 0 40px;
}

/* ================= Ticket header ================= */
.tk-head {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  padding: 10px 14px 8px;
  text-align: center;
}
.tk-brand {
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 6px 16px -6px var(--qr-glow);
}
.tk-brand svg { width: 18px; height: 18px; color: #fff; }
/* text-only branding: no logo image -> empty slot, drop the tile background
   (keeps the event title centered between the two 40px side columns) */
.tk-brand:empty { background: none; box-shadow: none; }

/* minimal back chevron in the left header slot — mirrors the .tk-secure chip */
.tk-back {
  justify-self: start; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; padding: 0; cursor: pointer;
  color: var(--muted); background: var(--panel); border: 1px solid var(--line);
  transition: color .15s ease, background .15s ease;
}
.tk-back:hover { color: var(--text); }
.tk-back svg { width: 18px; height: 18px; }
.tk-head .tk-titles { min-width: 0; }
.tk-title { font-size: 19px; font-weight: 800; letter-spacing: -0.2px; line-height: 1.15; }
.tk-sub {
  font-size: 12px; color: var(--muted); margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;   /* one line, like the reference */
}
.tk-head .tk-secure {
  justify-self: end; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: var(--good);
  background: var(--panel); border: 1px solid var(--line);
}
.tk-head .tk-secure svg { width: 16px; height: 16px; }

/* ================= Tabs ================= */
.tk-tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
  margin: 6px 0 0;
}
.tk-tab {
  padding: 12px 0; text-align: center; cursor: pointer;
  font-size: 15px; font-weight: 700; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .15s ease, border-color .15s ease;
  background: none; border-top: none; border-left: none; border-right: none;
}
.tk-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.tk-panel { padding: 22px 16px 0; }
.tk-panel[hidden] { display: none; }

/* ================= Scan / QR ================= */
.tk-scan {
  text-align: center; font-size: 13px; font-weight: 700; text-transform: uppercase;
  color: var(--muted); letter-spacing: 3px; margin-bottom: 20px;
}

/* ---- swipeable per-ticket carousel ---- */
.tk-carousel { position: relative; margin: 0 -16px; }
.tk-refresh {
  position: absolute; right: 16px; top: 116px; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: none; border: none; color: var(--muted); cursor: pointer;
  display: grid; place-items: center;
}
.tk-refresh svg { width: 24px; height: 24px; transition: transform .65s ease; }
.tk-refresh.spin svg { transform: rotate(360deg); }
.tk-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 6px 0;
}
.tk-track::-webkit-scrollbar { display: none; }
.tk-slide {
  flex: 0 0 100%; scroll-snap-align: center;
  display: flex; justify-content: center; padding: 6px 16px 2px;
}

/* animated gradient border sweeping around the QR (web ticket only —
   wallet passes are static and cannot animate) */
@property --tk-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.tk-qr {
  position: relative; width: 214px; height: 214px; border-radius: 24px; padding: 3px;
  background: conic-gradient(from var(--tk-angle),
    var(--accent) 0deg, #d4e6ff 35deg, var(--accent) 95deg, var(--accent-strong) 215deg, var(--accent) 360deg);
  animation: tk-rotate 3.4s linear infinite;
  box-shadow: 0 14px 30px -20px rgba(0,0,0,.45);
}
@media (prefers-color-scheme: light) { .tk-qr { box-shadow: 0 16px 32px -22px rgba(11,26,60,.28); } }
@keyframes tk-rotate { to { --tk-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) { .tk-qr { animation: none; background: var(--accent); } }
.tk-qr-inner {
  position: relative; width: 100%; height: 100%; border-radius: 21px; padding: 13px;
  background: var(--qr-bg); overflow: hidden;
}
/* the QR image (swapped on each rotation) fills the frame — not the brand chip */
.tk-qr-inner > .tk-qrimg { width: 100%; height: 100%; }
.tk-qrimg > svg, .tk-qrimg > img { width: 100%; height: 100%; display: block; }
.tk-qr-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  background: #000; border: 3px solid #fff;
  display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
/* the QR chip is a black circle, so its logo/text is white in both themes */
.tk-qr-badge .bxs-wordmark {
  font-size: 11px; line-height: 1; letter-spacing: -.3px; white-space: nowrap;
  color: #fff; -webkit-text-fill-color: #fff; background: none;
}
.tk-qr-badge .bxs-brandlogo { color: #fff; line-height: 0; }
.tk-qr-badge .bxs-brandlogo svg { height: 12px; width: auto; }

/* ---- 60-second code-refresh animation (visual only) ---- */
/* diagonal light sweep across the code */
.tk-qr-shine {
  position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.6) 50%, transparent 62%);
  transform: translateX(-120%);
}
.tk-qr-inner.refreshing .tk-qr-shine { animation: tk-shine .9s ease both; }
/* the QR briefly blurs/dips and snaps back — reads as "new code loaded" */
.tk-qr-inner.refreshing .tk-qrimg { animation: tk-qrpop .9s ease both; }
@keyframes tk-shine {
  0%   { opacity: 0; transform: translateX(-120%); }
  12%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(120%); }
}
@keyframes tk-qrpop {
  0%   { opacity: 1;  transform: scale(1);     filter: blur(0); }
  28%  { opacity: .2; transform: scale(.93);   filter: blur(3.5px); }
  62%  { opacity: 1;  transform: scale(1.025); filter: blur(0); }
  100% {              transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .tk-qr-inner.refreshing .tk-qr-shine { animation: none; }
  .tk-qr-inner.refreshing .tk-qrimg { animation: tk-qrfade .5s ease both; }
  @keyframes tk-qrfade { 0% { opacity: 1; } 40% { opacity: .45; } 100% { opacity: 1; } }
}

/* stacked seat cards (scroll up/down with the page) */
.tk-seats { display: grid; gap: 14px; margin-top: 24px; }

/* ---- carousel nav ---- */
.tk-nav { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 18px; }
.tk-dots { display: flex; gap: 7px; }
.tk-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--line-strong); border: none; padding: 0; cursor: pointer; transition: all .25s ease; }
.tk-dot.active { background: var(--accent); width: 24px; }
.tk-counter { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .3px; }

.tk-mobileid {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 24px; font-size: 19px; font-weight: 800; letter-spacing: .2px;
}
.tk-mobileid .m {
  width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong)); display: grid; place-items: center;
}
.tk-mobileid .m svg { width: 13px; height: 13px; color: #fff; }
.tk-deter { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 12px; line-height: 1.5; padding: 0 8px; }

/* ================= Transfer / Sell (shown disabled) ================= */
.tk-actions2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 2px; }
.tk-pill {
  height: 48px; border-radius: 999px; border: none; cursor: pointer;
  font-size: 15px; font-weight: 700; color: #fff;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
}
.tk-pill[disabled] { opacity: .4; cursor: not-allowed; filter: saturate(.65); }

/* ================= Wallet buttons ================= */
.tk-wallet { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0 4px; }
@media (max-width: 360px) { .tk-wallet { grid-template-columns: 1fr; } }
.bxs-wallet-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; border-radius: 12px; cursor: pointer;
  background: #000; color: #fff; border: 1px solid rgba(255,255,255,0.16);
  transition: transform .08s ease, filter .2s ease;
}
.bxs-wallet-btn:active { transform: scale(.98); }
.bxs-wallet-btn:hover { filter: brightness(1.15); }
.bxs-wallet-btn svg { height: 20px; width: auto; }
.bxs-wallet-btn .stack { text-align: left; line-height: 1.05; }
.bxs-wallet-btn .stack small { display: block; font-size: 9px; opacity: .7; }
.bxs-wallet-btn .stack b { font-size: 13px; font-weight: 700; }

/* ================= Seat cards ================= */
.tk-seatcard {
  border-radius: 18px; overflow: hidden;
  background: linear-gradient(158deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px -16px rgba(0,0,0,.55);
}
@media (prefers-color-scheme: light) { .tk-seatcard { box-shadow: 0 10px 26px -18px rgba(11,26,60,.22); } }
.tk-seatcard-entry {
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  color: #fff; text-align: center; padding: 11px 12px;
  font-size: 14px; font-weight: 700; letter-spacing: .3px;
}
.tk-seatcard-body { padding: 18px 20px; }
.tk-seatcard-note {
  margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.tk-seatcard-top {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 17px; font-weight: 800; margin-bottom: 16px;
}
.tk-seatcard-top .a { color: var(--muted); font-weight: 600; font-size: 15px; }
.tk-seatcard-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.tk-seatcard-grid > div { min-width: 0; }
.tk-seatcard-grid .mid { text-align: center; }
.tk-seatcard-grid .end { text-align: right; }
.tk-seatcard-grid .k { font-size: 10px; letter-spacing: 1.5px; color: var(--faint); }
.tk-seatcard-grid .v { font-size: 26px; font-weight: 800; margin-top: 3px; letter-spacing: -0.5px; overflow-wrap: anywhere; }

/* ================= Event info panel (premium) ================= */
.tk-info { padding-top: 22px; }
.info-group {
  background: linear-gradient(158deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: 18px;
  padding: 4px 18px 8px; margin-bottom: 14px; box-shadow: var(--card-shadow);
}
.info-head { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--faint); padding: 15px 0 6px; }
.info-line { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.info-line:first-of-type { border-top: none; }
.info-line .ic { flex: none; width: 36px; height: 36px; border-radius: 11px; background: rgba(74,144,226,.12); color: var(--accent); display: grid; place-items: center; }
.info-line .ic svg { width: 18px; height: 18px; }
.info-line .tx { min-width: 0; }
.info-line .tx .k { font-size: 11px; color: var(--muted); letter-spacing: .3px; }
.info-line .tx .v { font-size: 15px; font-weight: 700; margin-top: 1px; overflow-wrap: anywhere; }

/* ================= Page footer ================= */
.bxs-pagefoot {
  margin: 30px 16px 14px; text-align: center;
  font-size: 11.5px; color: var(--faint); line-height: 1.65;
}
.bxs-pagefoot b { color: var(--muted); }
.bxs-pagefoot .powered { display: block; margin-top: 6px; }
.foot-lockup {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 800; letter-spacing: 1px; color: var(--muted); opacity: .7;
}
.foot-lockup .foot-mark {
  width: 19px; height: 19px; border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  display: grid; place-items: center;
}
.foot-lockup .foot-mark svg { width: 11px; height: 11px; color: #fff; }

/* ================= Password gate ================= */
.bxs-gate {
  max-width: 400px; margin: 8vh auto 0;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--card-shadow); text-align: center;
}
@media (prefers-color-scheme: dark) { .bxs-gate { background: var(--panel-2); } }
.bxs-gate .lock {
  width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 14px;
  background: rgba(74,144,226,0.14); border: 1px solid rgba(74,144,226,0.32);
  display: grid; place-items: center;
}
.bxs-gate .lock svg { width: 26px; height: 26px; color: var(--accent); }
.bxs-gate h2 { margin: 0 0 6px; font-size: 20px; }
.bxs-gate p { margin: 0 0 20px; font-size: 13px; color: var(--muted); }
.bxs-input {
  width: 100%; height: 50px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--panel-2);
  color: var(--text); font-size: 16px; padding: 0 16px; outline: none;
  transition: border-color .2s ease;
}
.bxs-input:focus { border-color: var(--accent); }
.bxs-error { color: var(--danger); font-size: 12.5px; margin-top: 12px; min-height: 16px; }
/* transient status (e.g. "Unlocking…") — not an error, so not red */
.bxs-error.bxs-status { color: var(--muted); }

.bxs-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 48px; border-radius: 12px; border: none; cursor: pointer;
  font-size: 14px; font-weight: 700; margin-top: 14px;
  transition: transform .08s ease, filter .2s ease;
}
.bxs-btn:active { transform: scale(.985); }
.bxs-btn-primary { background: linear-gradient(180deg, var(--accent), var(--accent-strong)); color: #fff; box-shadow: 0 10px 28px -12px var(--qr-glow); }
.bxs-btn-primary:hover { filter: brightness(1.06); }
.bxs-btn-ghost { background: var(--panel); border: 1px solid var(--line); color: var(--text); }

/* ================= Loading / spinner ================= */
.bxs-center { min-height: 70dvh; display: grid; place-items: center; text-align: center; color: var(--muted); }
.bxs-spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--line-strong); border-top-color: var(--accent);
  animation: bxs-spin .8s linear infinite; margin: 0 auto 14px;
}
@keyframes bxs-spin { to { transform: rotate(360deg); } }

/* ================= Modal (wallet setup) ================= */
.bxs-modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  display: none; align-items: flex-end; justify-content: center; z-index: 90;
}
.bxs-modal-backdrop.open { display: flex; }
.bxs-modal {
  width: 100%; max-width: 460px; background: var(--bg1);
  border: 1px solid var(--line); border-bottom: none; border-radius: 22px 22px 0 0;
  padding: 24px 22px calc(24px + env(safe-area-inset-bottom)); box-shadow: var(--card-shadow);
  animation: bxs-slideup .25s ease;
}
@media (prefers-color-scheme: light) { .bxs-modal { background: #fff; } }
@keyframes bxs-slideup { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.bxs-modal h3 { margin: 0 0 10px; font-size: 18px; }
.bxs-modal p { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.bxs-modal code { font-family: var(--mono); font-size: 12px; background: var(--panel-2); padding: 2px 6px; border-radius: 5px; color: var(--accent); }
.bxs-modal ol { margin: 4px 0 12px; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.bxs-modal ol a { color: var(--accent); text-decoration: underline; }
.bxs-modal .cost { display: inline-block; font-size: 11px; padding: 3px 8px; border-radius: 999px; margin-bottom: 12px; }
.bxs-modal .cost.free { background: rgba(31,191,117,.15); color: var(--good); border: 1px solid rgba(31,191,117,.3); }
.bxs-modal .cost.paid { background: rgba(233,192,90,.14); color: var(--warn); border: 1px solid rgba(233,192,90,.3); }

.wp-card { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); margin: 4px 0 16px; background: var(--panel); }
.wp-top { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: linear-gradient(135deg, rgba(74,144,226,.5), rgba(12,28,61,.15)); font-weight: 800; letter-spacing: .5px; font-size: 13px; color:#fff; }
.wp-top .wp-mark { width: 20px; height: 20px; border-radius: 5px; background: linear-gradient(135deg, var(--accent), var(--accent-strong)); display:grid; place-items:center; }
.wp-top .wp-mark svg { width: 13px; height: 13px; color:#fff; }
.wp-body { padding: 12px 14px; }
.wp-ev { font-size: 15px; font-weight: 800; }
.wp-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.wp-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-top: 12px; }
.wp-grid .k { font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--faint); }
.wp-grid .v { font-size: 15px; font-weight: 700; margin-top: 1px; }
.wp-foot { display:flex; justify-content:space-between; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 11px; color: var(--faint); }
.wp-foot .qr { width: 26px; height: 26px; border-radius: 4px; background: repeating-linear-gradient(90deg,#fff 0 2px,#000 2px 4px); opacity:.85; }

/* ================= Add-to-Wallet sheet ================= */
.bxs-sheet {
  position: fixed; inset: 0; z-index: 80; display: none;
  flex-direction: column; background: var(--bg1);
}
.bxs-sheet.open { display: flex; animation: bxs-fade .2s ease; }
@keyframes bxs-fade { from { opacity: 0; } to { opacity: 1; } }
.bxs-sheet .sheet-close {
  position: absolute; top: calc(14px + env(safe-area-inset-top)); left: 16px;
  width: 40px; height: 40px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line);
  color: var(--text); cursor: pointer; display: grid; place-items: center; z-index: 2;
}
.bxs-sheet .sheet-close svg { width: 18px; height: 18px; }
.bxs-sheet .sheet-body {
  flex: 1; overflow-y: auto; text-align: center;
  padding: calc(72px + env(safe-area-inset-top)) 24px 24px;
}
.bxs-sheet h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.15; margin: 8px auto 18px; max-width: 360px; }
.bxs-sheet .sub { color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 380px; margin: 0 auto 30px; }
.bxs-sheet .add-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 22px;
  padding: 22px 20px; max-width: 440px; margin: 0 auto; text-align: left; box-shadow: var(--card-shadow);
}
.bxs-sheet .add-card h3 { font-size: 19px; font-weight: 700; margin: 4px 0 20px; line-height: 1.3; }
.bxs-sheet .add-btn {
  display: block; width: 100%; height: 56px; border-radius: 999px; border: none;
  font-size: 16px; font-weight: 700; margin-bottom: 12px; cursor: pointer;
  background: var(--panel-2); color: var(--text); transition: filter .15s ease, transform .08s ease;
}
.bxs-sheet .add-btn:last-child { margin-bottom: 0; }
.bxs-sheet .add-btn:active { transform: scale(.99); }
.bxs-sheet .add-btn.primary { background: linear-gradient(180deg, var(--accent), var(--accent-strong)); color: #fff; }
.bxs-sheet .sheet-continue { padding: 14px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.bxs-sheet .sheet-continue button {
  width: 100%; height: 54px; border-radius: 14px; border: none; cursor: pointer;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong)); color: #fff;
  font-size: 16px; font-weight: 800; letter-spacing: .6px;
}

/* ================= Toast ================= */
.bxs-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--panel); border: 1px solid var(--line-strong); color: var(--text);
  padding: 12px 18px; border-radius: 12px; font-size: 13px; opacity: 0;
  pointer-events: none; transition: all .25s ease; z-index: 60; box-shadow: var(--card-shadow);
}
.bxs-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ================= Landing page ================= */
.bxs-topbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 10px; }
.bxs-logo { display: flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: .5px; font-size: 20px; }
.bxs-logo .mark { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), var(--accent-strong)); display: grid; place-items: center; box-shadow: 0 6px 16px -6px var(--qr-glow); }
.bxs-logo .mark svg { width: 18px; height: 18px; color: #fff; }
.bxs-secure-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-size: 11.5px; color: var(--muted); }
.bxs-secure-pill svg { width: 12px; height: 12px; color: var(--good); }
.bxs-hero-lp { text-align: center; padding: 30px 16px 20px; }
.bxs-hero-lp h1 { font-size: 32px; font-weight: 900; letter-spacing: -1px; margin: 14px 0 10px; }
.bxs-hero-lp p { color: var(--muted); font-size: 15px; max-width: 340px; margin: 0 auto; line-height: 1.55; }
.bxs-feature { display: flex; gap: 12px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 12px 16px 0; }
.bxs-feature .ic { flex: none; width: 38px; height: 38px; border-radius: 10px; background: rgba(74,144,226,.14); display: grid; place-items: center; color: var(--accent); }
.bxs-feature .ic svg { width: 20px; height: 20px; }
.bxs-feature h4 { margin: 0 0 3px; font-size: 14px; }
.bxs-feature p { margin: 0; font-size: 12.5px; color: var(--muted); }

/* ================= Text wordmark logo =================
   The default brand treatment — a stylish text logo used in place of
   any icon tile (header, gate, QR-center chip, pass-label row, footer,
   wallet). Uses the brand accent as a gradient fill. */
.bxs-wordmark {
  font-weight: 900;
  letter-spacing: -.5px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent);   /* fallback where background-clip:text is unsupported */
}

/* ================= Inline logo lockup =================
   Rendered when assets/config.js sets logoSvg (or logoUrl). The SVG uses
   fill="currentColor", so it has no background and flips with light/dark
   mode automatically. Sized per context below. */
.bxs-brandlogo {
  display: inline-flex; align-items: center; vertical-align: middle;
  color: var(--brandlogo); line-height: 0;   /* white on dark, AXS blue on light */
}
.bxs-brandlogo svg { height: 1.5em; width: auto; display: block; fill: currentColor; }
.bxs-brandlogo .bxs-logo-img { height: 1.5em; width: auto; display: block; }
/* image logo (transparent PNG/WebP): show its real colours in light mode,
   flip it to solid white in dark mode. Requires a transparent background. */
.bxs-logo-img { filter: brightness(0) invert(1); }              /* dark (default) -> white */
@media (prefers-color-scheme: light) { .bxs-logo-img { filter: none; } }  /* light -> original */

/* per-context logo sizing */
.bxs-logo .bxs-brandlogo svg { height: 30px; }        /* header + unlock gate */
.foot-lockup .bxs-brandlogo svg { height: 20px; }     /* ticket footer */
.tk-mobileid .bxs-brandlogo svg { height: 26px; }     /* pass-label row */
.wp-top .bxs-brandlogo svg { height: 15px; }          /* wallet preview */
