/*
 * pyactivate — guest pages (activate_web: booking, payment, ticket, unavailable, terms, pay return), loaded after
 * activate/css/app.css by activate_web/layout.html.
 *
 * [Summary]: marketing's design v14 "Đặt vé – Ưu đãi khai trương" (2026-11-17): its colours and font as guest
 *   tokens, the white shell with the dark header (wordmark, "VIETNAM", the language switch, "Đặt vé"), the internal
 *   booking page's band under it, the hero photo band and the footer; the booking page's two columns — the intro
 *   card with the venue box, the numbered step cards (package cards with their duration art, the info note, the
 *   week strip, the start grid with its "show more", the ticket and add-on steppers, the promo-code card) and the
 *   cart (chips, lines, rows, saving,
 *   the policy and waiver boxes, the terms checkbox, "Thanh toán"); the calendar and policy dialogs; the checkout
 *   pages' dark title band with the steps (the booking page's personal details, the payment page) over the
 *   light-blue page: the guest form, the payment's hold notice, method list, e-voucher box, QR / card panel and
 *   waiting line, both beside the summary card; the ticket card with the e-invoice block, the unavailable and terms pages in the
 *   narrow column (no design of their own yet); the ticket's print layout.
 * [Notes]: The guest tokens (--g-*) live on .guest-body; app.css's tokens still drive the shared components
 *   (alerts, badges, buttons, Notify). Where the design's colours fall below WCAG AA they are darkened (muted
 *   greys, the start prices, the struck catalogue prices, the saving green), and its 9–11 px texts are raised to
 *   12 px. Mobile first; the design's breakpoints are 780 px (one column, the cart after the steps) and 540 px.
 *   Touch targets ≥ 44 px where the design allows; line-height ≥ 1.25 (Vietnamese stacked diacritics); text never
 *   in fixed widths. A scrolling box holding a .visually-hidden text is positioned (the cart is sticky, the
 *   dialog's scroll area relative), or that absolute text widens the whole page.
 */

/* ===== Tokens, page ====================================================================================== */

.guest-body {
  --g-page: #f5f7fc;
  --g-ink: #17213b;              /* text */
  --g-navy: #030f36;             /* header, package art */
  --g-cyan: #00dbe9;             /* "Thanh toán", selected day / start / package */
  --g-cyan-hover: #00c6db;
  --g-cyan-dark: #04aabf;
  --g-cyan-bright: #11bce9;      /* header "Đặt vé" */
  --g-cyan-line: #0891b2;        /* stepper edges on white (3.7:1) */
  --g-line: #e8edf4;
  --g-panel: #f8faff;
  --g-purple: #a319d7;           /* duration badge */
  --g-muted: #5f6b80;            /* the design's #707b90 darkened to 5.4:1 */
  --g-text-2: #284c68;           /* policy boxes */
  --g-text-3: #4f6a80;           /* legend, footer, notes */
  --g-price: #04718b;            /* start prices: the design's #05819f darkened to 5.1:1 */
  --g-old: #6b7684;              /* struck catalogue prices (4.6:1) */
  --g-ok: #087f57;               /* saving, promo applied */
  --g-error: #a01f3d;            /* promo refused, terms not accepted */
  --g-option: #edf3f6;
  --g-info-line: #00bde9;        /* the payment page's waiting line */
  --g-input: #a7b9ca;
  --g-focus-dark: #ffce00;
  --g-field-line: #7c93a5;       /* promo input edge (3:1 on white) */
  --g-placeholder: #61798a;      /* promo input placeholder (4.5:1) */
  --g-checkout: #e8eefe;         /* the checkout pages' ground */
  min-height: 100vh;
  background: var(--g-page);
  color: var(--g-ink);
  font-family: Archivo, Arial, sans-serif;
}
.guest-body :focus-visible { outline: 3px solid var(--g-ink); outline-offset: 2px; }

/* ===== Shell, header, hero, footer ======================================================================= */

.guest-shell { max-width: 1180px; margin: 0 auto; background: #fff; box-shadow: 0 10px 60px rgba(13, 26, 61, 0.05); }

.guest-header { background: var(--g-navy); color: #fff; }
.guest-header :focus-visible { outline-color: var(--g-focus-dark); }

.guest-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 80px;
  padding: 0 40px;
}
.guest-brand { display: inline-flex; flex: 0 1 190px; align-items: center; min-width: 0; min-height: 44px; }
.guest-brand img { display: block; width: 100%; max-width: 190px; height: auto; }

.guest-nav { display: flex; align-items: center; gap: 12px; }
.guest-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; color: #fff; font-weight: 800; text-decoration: none; white-space: nowrap; }
.guest-nav .guest-nav-venue { margin-right: 4px; color: #e6f2ff; font-size: 12px; letter-spacing: 0.02em; text-transform: uppercase; }
.guest-nav .guest-nav-venue:hover { text-decoration: underline; }
.lang-switch { min-width: 77px; padding: 0 11px; border: 1px solid #45688a; border-radius: 7px; font-size: 12px; }
.lang-switch:hover { border-color: #04e5ef; background: #112550; }
.lang-sep { margin: 0 4px; color: #8aa0bd; }
.guest-nav .guest-nav-book { padding: 0 18px; border-radius: 7px; background: var(--g-cyan-bright); color: #03283a; font-size: 13px; font-weight: 900; letter-spacing: 0.02em; text-transform: uppercase; }
.guest-nav .guest-nav-book:hover { background: #00e4ef; color: #03283a; }

/* Activate's own Mega Grid photo (the image host of Activate's Vietnam site) under a navy shade; decorative. */
.guest-hero {
  height: 230px;
  background:
    linear-gradient(90deg, rgba(2, 10, 44, 0.65), rgba(2, 10, 44, 0.2)),
    url("https://res.cloudinary.com/playactivate-v2/image/upload/f_auto,q_auto,w_1600,c_limit/v1787231461/2026_02_11-12_Activate_MEGAGRID_0212_WebsiteNew_size_1_vmlmz4.jpg") center 58% / cover no-repeat,
    var(--g-navy);
}

.guest-main { position: relative; }
.guest-main--narrow { max-width: 860px; margin: 0 auto; padding: 28px 24px 40px; }
.guest-main--narrow > * + * { margin-top: var(--space-4); }
.guest-main--narrow > noscript + * { margin-top: 0; }

.guest-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-3);
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 40px 28px;
  color: var(--g-text-3);
  font-size: 13px;
}
.guest-footer a { color: inherit; }
/* Under the venue link: the operator's name, tax code and head office (layout.html). */
.guest-footer-company { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.guest-footer-company p { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 780px) {
  .guest-bar { min-height: 64px; padding: 0 16px; }
  .guest-nav .guest-nav-venue { display: none; }
  .guest-hero { height: 160px; }
  .guest-main--narrow { padding: 20px 12px 32px; }
  .guest-footer { padding: 16px 16px 24px; }
}
@media (max-width: 540px) {
  .guest-hero { height: 128px; }
}
@media (max-width: 420px) {
  .guest-bar { gap: var(--space-2); padding: 0 12px; }
  .guest-brand { flex-basis: 120px; }
  .guest-nav { gap: 6px; }
  .lang-switch { min-width: 0; padding: 0 8px; font-size: 11px; }
  .guest-nav .guest-nav-book { padding: 0 10px; font-size: 12px; }
}

/* ===== Internal booking band (/<lang>/internal/: TransViet staff) ======================================== */

/* One line under the header, in its dark style, kept on the checkout view: who books (the staff ID), and — in a
   browser signed in to the counter staff pages — the warning to open the link in a private window. White on navy
   18:1, the warning's amber 12:1, the cyan icon 10:1. */
.g-internal-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 24px;
  padding: 10px 40px;
  border-top: 1px solid #1d3263;
  background: var(--g-navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.g-internal-band p { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; }
.g-internal-band [data-lucide] { flex: none; width: 18px; height: 18px; color: var(--g-cyan); }
.g-internal-band .g-internal-blocked, .g-internal-band .g-internal-blocked [data-lucide] { color: #ffd166; }
@media (max-width: 780px) {
  .g-internal-band { padding: 10px 16px; }
}

/* ===== Booking page: two columns ========================================================================== */

.g-layout { display: grid; grid-template-columns: minmax(0, 1fr); }
.g-steps { min-width: 0; padding: 22px 13px; }
.g-cart { position: relative; min-width: 0; padding: 23px 18px 30px; border-top: 1px solid var(--g-line); background: #fbfcff; }
@media (min-width: 781px) {
  .g-layout { grid-template-columns: minmax(0, 1.43fr) minmax(310px, 0.85fr); align-items: start; }
  .g-steps { padding: 32px 38px 42px; }
  /* The cart stays in view while the steps scroll (its own scroll when taller than the window). */
  .g-cart {
    position: sticky;
    top: 12px;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 29px 23px;
    border-top: 0;
    border-left: 1px solid var(--g-line);
  }
}
.g-closed { padding: 32px 16px 48px; }
.g-noscript { margin: 16px; }

/* ===== Intro card ========================================================================================== */

.g-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 22px;
  border: 1px solid var(--g-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(11, 33, 68, 0.06);
}
.g-intro-main { display: flex; flex: 1; align-items: flex-start; gap: 12px; min-width: 0; }
.g-intro-copy { min-width: 0; }
.g-intro-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.g-intro-icon { flex: none; width: 36px; height: 36px; color: #10bdec; }
.g-intro h1 { margin: 0; color: #06233f; font-size: clamp(21px, 2.3vw, 28px); font-weight: 800; line-height: 1.25; }
.g-duration {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 3px;
  background: var(--g-purple);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}
.g-lead { margin: 6px 0 4px; color: #32445b; font-size: 13px; }
.g-price { margin: 0; color: #073d68; font-size: 13px; font-weight: 700; }
.g-venue {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 4px;
  width: 235px;
  max-width: 42%;
  padding: 12px 13px;
  border: 1px solid #b5c5d9;
  color: #16375d;
  font-size: 12px;
  line-height: 1.45;
}
.g-venue-name { color: #062a4d; font-size: 13px; font-weight: 700; }

@media (max-width: 780px) {
  .g-intro { gap: 12px; padding: 16px; }
  .g-intro-icon { width: 28px; height: 28px; }
}
@media (max-width: 540px) {
  .g-intro { flex-direction: column; align-items: stretch; }
  .g-venue { width: 100%; max-width: none; }
}

/* ===== Step cards ========================================================================================== */

.g-step {
  margin: 0 0 17px;
  padding: 23px;
  border: 1px solid #e9edf5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(27, 39, 91, 0.02);
}
.g-step[hidden] { display: none; }
.g-step-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 12px; }
.g-step-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--g-ink); font-size: 17px; font-weight: 800; line-height: 1.3; }
.g-stepnum {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #ecfbfd;
  color: #007c94;
  font-size: 12px;
  font-weight: 900;
}
.g-soft { color: var(--g-muted); font-size: 13px; font-weight: 400; }
.g-step-meta { color: var(--g-muted); font-size: 12px; }
.g-badge { display: inline-block; padding: 3px 9px; border-radius: 100px; background: #e8f8ff; color: #03678c; font-size: 12px; font-weight: 750; text-transform: uppercase; }
.g-step-desc { margin: 0 0 15px; color: var(--g-muted); font-size: 13px; }
.g-step-foot { margin: 12px 0 0; color: var(--g-muted); font-size: 12px; }
.g-step .field-error { margin-top: 12px; }
.g-empty { margin: 4px 0 0; color: var(--g-text-3); }
.g-closed .g-step { padding: 48px 24px; }

/* Info note: what to know before playing. */
.g-note {
  display: flex;
  gap: 11px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #c9e6f2;
  border-radius: 12px;
  background: #f0faff;
  color: #123b53;
  font-size: 13px;
  line-height: 1.5;
}
.g-note > [data-lucide] { flex: none; width: 20px; height: 20px; color: #067d9d; }
.g-note-title { font-weight: 700; }

@media (max-width: 780px) {
  .g-step { padding: 17px; }
}
@media (max-width: 390px) {
  .g-step { padding: 13px; }
}

/* ===== 01 Packages ========================================================================================= */

.g-packages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.g-package {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--g-line);
  border-radius: 13px;
  background: #fff;
  color: var(--g-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.g-package:hover { border-color: var(--g-cyan-dark); }
.g-package[aria-pressed="true"] { border-color: var(--g-cyan-dark); background: #f0fdff; box-shadow: 0 0 0 2px #00c7dd; }
.g-package-text { display: flex; flex-direction: column; gap: 5px; padding: 14px; }
.g-package-name { font-size: 16px; line-height: 1.3; }
.g-package-price { color: var(--g-muted); font-size: 12px; }
.g-package[aria-pressed="true"] .g-package-price { color: #285a66; }
.g-package-check {
  position: absolute;
  top: 10px;
  right: 10px;
  display: none;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--g-cyan);
  color: #012038;
}
.g-package-check [data-lucide] { width: 16px; height: 16px; stroke-width: 3; }
.g-package[aria-pressed="true"] .g-package-check { display: grid; }

/* The duration art (the design's tile: a clock and '60 MIN' in cyan on navy), drawn in HTML from the duration. */
.g-package-art, .g-cart-art {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--g-navy);
  color: #c9d1dc;
}
.g-package-art { gap: 10px; height: 135px; padding: 11px; }
.g-package-art > [data-lucide] { width: 64px; height: 64px; stroke-width: 2.4; }
.g-art-figure { display: flex; flex-direction: column; align-items: center; color: #00e3f0; font-weight: 900; line-height: 0.9; }
.g-package-art .g-art-number { font-size: 58px; letter-spacing: -0.02em; }
.g-package-art .g-art-unit { font-size: 34px; }
.g-cart-art { flex: none; gap: 3px; width: 60px; height: 45px; border-radius: 5px; }
.g-cart-art > [data-lucide] { width: 18px; height: 18px; }
.g-cart-art .g-art-number { font-size: 17px; }
.g-cart-art .g-art-unit { font-size: 10px; }

@media (max-width: 780px) {
  .g-package-art { height: 97px; }
  .g-package-art > [data-lucide] { width: 42px; height: 42px; }
  .g-package-art .g-art-number { font-size: 40px; }
  .g-package-art .g-art-unit { font-size: 24px; }
  .g-package-text { padding: 10px; }
  .g-package-name { font-size: 14px; }
}
@media (max-width: 390px) {
  .g-package-art { height: 80px; gap: 6px; }
  .g-package-art > [data-lucide] { width: 32px; height: 32px; }
  .g-package-art .g-art-number { font-size: 32px; }
  .g-package-art .g-art-unit { font-size: 19px; }
}

/* ===== 02 Day: week strip ================================================================================== */

.g-week-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.g-week-title { color: var(--g-ink); font-size: 14px; font-weight: 800; text-transform: uppercase; }
.g-week-nav, .g-month-nav { display: flex; align-items: center; gap: 8px; }
.g-navbtn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--g-line);
  border-radius: 9px;
  background: #fff;
  color: var(--g-ink);
  cursor: pointer;
}
.g-navbtn [data-lucide] { width: 18px; height: 18px; }
.g-navbtn:hover:not(:disabled) { background: var(--g-panel); }
.g-navbtn:disabled { opacity: 0.35; cursor: not-allowed; }
.g-navbtn--calendar { border-color: #94e6ec; background: #e6fafc; color: #046a8b; }
.g-navbtn--calendar:hover:not(:disabled) { background: #d6f5ff; }

.g-dates { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.g-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  min-height: 63px;
  padding: 8px 2px;
  border: 1px solid var(--g-line);
  border-radius: 10px;
  background: #fff;
  color: var(--g-ink);
  font: inherit;
  cursor: pointer;
}
.g-date-weekday { color: #5f6b7a; font-size: 12px; }
.g-date-day { font-size: 17px; font-variant-numeric: tabular-nums; }
.g-date:hover:not(:disabled):not([aria-pressed="true"]) { border-color: var(--g-cyan-dark); }
.g-date[aria-pressed="true"] { border-color: var(--g-cyan-dark); background: var(--g-cyan); color: #062532; box-shadow: inset 0 0 0 1px var(--g-cyan-dark); }
.g-date[aria-pressed="true"] .g-date-weekday { color: #063c4f; }
.g-date:disabled { opacity: 0.35; cursor: not-allowed; }

@media (max-width: 780px) {
  .g-dates { gap: 5px; }
  .g-date-day { font-size: 15px; }
}
@media (max-width: 390px) {
  .g-dates { gap: 3px; }
  .g-date { min-height: 58px; }
  .g-date-weekday { font-size: 11px; }
}

/* ===== 03 Start: the start grid ============================================================================ */

.g-times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; min-height: 86px; }
.g-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  min-height: 86px;
  padding: 9px 3px;
  border: 1px solid var(--g-line);
  border-radius: 10px;
  background: #fff;
  color: var(--g-ink);
  font: inherit;
  text-align: center;
  cursor: pointer;
}
.g-time-start { font-size: 15px; font-variant-numeric: tabular-nums; }
.g-time-old { color: var(--g-old); font-size: 12px; line-height: 1.25; }
.g-time-price { color: var(--g-price); font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.g-time-note { color: var(--g-muted); font-size: 12px; }
.g-time:hover:not(:disabled):not([aria-pressed="true"]) { border-color: var(--g-cyan-dark); }
.g-time[aria-pressed="true"] { border-color: var(--g-cyan-dark); background: var(--g-cyan); color: #062532; box-shadow: inset 0 0 0 1px var(--g-cyan-dark); }
.g-time[aria-pressed="true"] .g-time-price { color: #053447; }
.g-time[aria-pressed="true"] .g-time-old { color: #2f5d70; }
.g-time:disabled { background: #f6f8fa; cursor: not-allowed; }
.g-time:disabled .g-time-start { color: var(--g-old); text-decoration: line-through; }
.g-time-skeleton { height: 86px; border-radius: 10px; background: var(--g-option); animation: guest-pulse 1.2s ease-in-out infinite; }
@keyframes guest-pulse { 50% { opacity: 0.45; } }
.g-showmore {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: #01698f;
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}
.g-showmore[hidden] { display: none; }

.g-grid-state {
  display: flex;
  grid-column: 1 / -1;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-4);
  border: 1px dashed #b3bec8;
  border-radius: 10px;
  color: var(--g-text-3);
  text-align: center;
}
.g-grid-state > [data-lucide] { width: 28px; height: 28px; }

@media (max-width: 780px) {
  .g-times { gap: 7px; }
  .g-time { min-height: 80px; }
}
@media (max-width: 390px) {
  .g-time-start, .g-time-price { font-size: 13px; }
}

/* ===== 04 Players, 05 add-ons: steppers ==================================================================== */

.g-tickets { display: grid; gap: 10px; }
.g-counter { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.g-tickets .g-counter { padding: 14px; border: 1px solid var(--g-line); border-radius: 11px; background: var(--g-panel); }
.g-counter-label { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.g-counter-name { font-size: 14px; }
.g-counter-meta { color: var(--g-muted); font-size: 12px; }
.g-addons .g-counter { gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--g-line); }
.g-addons .g-counter:last-child { border-bottom: 0; }
.g-addon-tile { display: grid; flex: none; place-items: center; width: 43px; height: 43px; border-radius: 11px; background: #f1f5fa; color: #34557a; }
.g-addon-tile [data-lucide] { width: 22px; height: 22px; }

.g-qty { display: flex; flex: none; align-items: center; overflow: hidden; border: 1px solid var(--g-line); border-radius: 8px; background: #fff; }
.g-stepper-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: #f5f7f9;
  color: var(--g-ink);
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.g-stepper-btn:hover:not(:disabled) { background: #e8eef3; }
.g-stepper-btn:disabled { color: #b5c0ca; cursor: not-allowed; }
.g-stepper-value { min-width: 40px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }

/* Promo code ("Bạn có mã ưu đãi?"): the input and "Áp dụng", the status or error line under them. */
.g-promo-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--g-ink); font-size: 16px; font-weight: 800; line-height: 1.3; }
.g-promo-title [data-lucide] { width: 20px; height: 20px; color: #067d9d; }
.g-promo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; align-items: center; }
.g-promo-status, .g-promo-error { grid-column: 1 / -1; margin: 0; font-size: 13px; }
.g-promo-input {
  min-width: 0;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--g-field-line);
  border-radius: 7px;
  background: #fcfdff;
  color: var(--g-ink);
  font: inherit;
  font-size: 16px;
}
.g-promo-input::placeholder { color: var(--g-placeholder); opacity: 1; }
.g-promo-input[aria-invalid="true"] { border-color: var(--g-error); }
.g-promo-apply {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 7px;
  background: var(--g-navy);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.g-promo-apply:hover:not(:disabled) { background: #0b2163; }
.g-promo-apply:disabled { opacity: 0.7; cursor: wait; }
.g-promo-status { color: var(--g-ok); }
.g-promo-error { color: var(--g-error); }

/* ===== Cart ================================================================================================ */

.g-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--g-ink);
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
.g-cart-name { display: inline-flex; align-items: center; gap: 8px; }
.g-cart-name [data-lucide] { width: 20px; height: 20px; }
.g-cart-name small { color: var(--g-muted); font-size: 12px; font-weight: 500; }
.g-cart-head-total { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.g-chev { width: 18px; height: 18px; transition: transform var(--motion-fast) var(--ease-out); }
.g-cart-head[aria-expanded="false"] .g-chev { transform: rotate(180deg); }

.g-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0; }
.g-chip { padding: 5px 8px; border-radius: 4px; background: #111827; color: #fff; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.g-chip[hidden] { display: none; }
.g-chip--time { background: #dceeff; color: #1f4e78; font-variant-numeric: tabular-nums; }
.g-chip--time.is-empty { background: #fff4e0; color: #6b4a00; text-transform: none; }

.g-cart-items { margin: 0; padding: 0; list-style: none; }
.g-cart-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 0 16px; border-bottom: 1px solid var(--g-line); }
.g-cart-item + .g-cart-item { padding-top: 14px; }
.g-cart-item-text { display: flex; flex: 1; flex-direction: column; min-width: 0; font-size: 13px; }
.g-cart-item-text strong { line-height: 1.3; }
.g-cart-item-text span { color: var(--g-muted); font-size: 12px; }
.g-cart-item-price { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.g-cart-item-price s { color: var(--g-old); font-size: 12px; }
.g-cart-item-price small { color: var(--g-muted); font-size: 12px; }
.g-cart-item--addon .g-cart-item-text { color: #4b5a6c; }
.g-cart-item-amount { white-space: nowrap; font-size: 13px; font-variant-numeric: tabular-nums; }
.g-cart-dropped { margin: 10px 0 0; color: var(--color-warning); font-size: 12px; }

.g-rows { margin: 16px 0 0; }
.g-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 9px 0; font-size: 13px; }
.g-row[hidden] { display: none; }
.g-row dt { color: #5d6878; }
.g-row dd { margin: 0; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.g-row .code { white-space: normal; overflow-wrap: anywhere; }
.g-row--saving dt, .g-row--saving dd { color: var(--g-ok); }
.g-row--offer dt { min-width: 0; overflow-wrap: anywhere; }   /* "Ưu đãi (<code of up to 32 characters>)", phones */
.g-row--total { margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--g-line); font-size: 16px; font-weight: 800; }
.g-row--total dt, .g-row--due dt { color: var(--g-ink); }
.g-row--due { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--g-line); font-size: 15px; font-weight: 900; }
.g-row--due dd { font-size: 19px; }
.g-saving { margin: 12px 0 0; color: var(--g-ok); font-size: 12px; font-weight: 750; text-align: center; }
.g-cart-note { margin: 10px 0 0; color: var(--g-muted); font-size: 12px; }

/* The change / cancel policy, the waiver, the terms checkbox and its hint. */
.g-policy { margin-top: 19px; padding-top: 17px; border-top: 1px solid var(--g-line); }
.g-policy-box { margin-bottom: 10px; padding: 13px 14px; border-radius: 10px; background: #eef7fd; color: var(--g-text-2); font-size: 12px; line-height: 1.6; }
.g-policy-box--waiver { background: #f2f4f8; }
.g-policy-title { margin-bottom: 4px; color: #102d46; font-size: 13px; font-weight: 700; }
.g-terms-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 15px; font-size: 13px; font-weight: 600; line-height: 1.5; }
.g-terms-check input { flex: 0 0 20px; width: 20px; height: 20px; margin: 1px 0 0; accent-color: #04849e; cursor: pointer; }
.g-terms-check label { cursor: pointer; }
.g-view-policy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  padding: 0 11px;
  border: 1px solid #bad6e1;
  border-radius: 9px;
  background: #fff;
  color: #075e7a;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}
.g-view-policy [data-lucide] { width: 16px; height: 16px; }
.g-view-policy:hover { background: #f2fafd; }
.g-terms-hint { margin: 9px 0 0; color: #7d4f55; font-size: 12px; }
.g-terms-hint[hidden] { display: none; }
.g-terms-hint.is-error { color: var(--g-error); font-weight: 700; }

.g-pay-btn {
  width: 100%;
  min-height: 52px;
  margin-top: 20px;
  padding: 12px 15px;
  border: 0;
  border-radius: 10px;
  background: var(--g-cyan);
  color: #041738;
  font: inherit;
  font-size: 17px;
  font-weight: 850;
  cursor: pointer;
}
.g-pay-btn:hover:not(:disabled) { background: var(--g-cyan-hover); }
.g-pay-btn:disabled { background: #bcd3db; color: #4d6b77; cursor: not-allowed; }
.g-cart-hold { margin: 10px 0 0; color: var(--g-muted); font-size: 12px; text-align: center; }
/* The internal page in a browser signed in to the counter staff pages: why "Thanh toán" is off (book.js). */
.g-cart-hold.is-blocked { color: var(--g-error); font-weight: 700; }

/* ===== Dialogs: the month calendar, the policy ============================================================= */

.g-dialog {
  max-width: calc(100% - 24px);
  padding: 0;
  border: 0;
  background: #fff;
  color: var(--g-ink);
  box-shadow: 0 24px 70px rgba(16, 24, 39, 0.27);
}
.g-dialog::backdrop { background: rgba(12, 19, 30, 0.48); }
.g-dialog-close {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: #f0f3f7;
  color: var(--g-ink);
  cursor: pointer;
}
.g-dialog-close [data-lucide] { width: 20px; height: 20px; }

.g-calendar-dialog { width: 370px; max-height: min(90vh, 620px); padding: 20px 19px 19px; border-radius: 17px; overflow-y: auto; }
.g-dialog-top, .g-month { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.g-dialog-top h2 { margin: 0; font-size: 17px; font-weight: 800; }
.g-month { margin: 20px 0 14px; }
.g-month strong { font-size: 20px; }
.g-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; text-align: center; }
.g-weekday { padding: 4px 0; color: #5f6b7a; font-size: 12px; }
.g-day {
  min-width: 0;
  min-height: 40px;
  border: 1px solid #e0e5ec;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.g-day:hover:not(:disabled) { border-color: #0bafe0; background: #ecfaff; }
.g-day.is-today { text-decoration: underline; text-underline-offset: 3px; }
.g-day[aria-pressed="true"] { border: 2px solid #039dcd; background: #eafaff; color: #036589; }
.g-day:disabled { background: #f3f5f7; opacity: 0.4; cursor: not-allowed; }
.g-legend { margin: 14px 0 0; color: var(--g-muted); font-size: 12px; }

.g-policy-dialog { width: 700px; max-height: min(88vh, 850px); border-radius: 18px; }
.g-policy-dialog[open] { display: flex; flex-direction: column; }
.g-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 25px 14px; border-bottom: 1px solid var(--g-line); }
.g-dialog-head h2 { margin: 3px 0 0; font-size: 22px; line-height: 1.25; }
.g-eyebrow { color: var(--g-muted); font-size: 12px; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; }
.g-dialog-scroll { position: relative; flex: 1 1 auto; min-height: 0; padding: 14px 26px 22px; overflow: auto; color: #43536a; font-size: 14px; line-height: 1.7; }
.g-dialog-link { margin-top: 16px; font-size: 13px; }
.g-dialog-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 15px 25px; border-top: 1px solid var(--g-line); background: #f9fbfd; }
.g-btn-ghost, .g-btn-accept { min-height: 44px; padding: 0 16px; border-radius: 9px; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.g-btn-ghost { border: 1px solid #d5dce4; background: #fff; color: var(--g-ink); }
.g-btn-accept { border: 0; background: #00c7ee; color: #042f47; }
.g-btn-accept:hover { background: var(--g-cyan); }

@media (max-width: 540px) {
  /* The policy as a sheet from the bottom, its two buttons sharing the width. */
  .g-policy-dialog { width: 100%; max-width: 100%; max-height: 92vh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .g-dialog-head { padding: 18px; }
  .g-dialog-head h2 { font-size: 19px; }
  .g-dialog-scroll { padding: 12px 19px; }
  .g-dialog-foot { padding: 13px 18px; }
  .g-dialog-foot button { flex: 1; }
  .g-calendar-dialog { padding: 19px 15px; }
}

/* ===== Checkout pages: title band, then the main card beside the summary card ============================= */

/* The booking page's personal details (book.js: body.is-checkout) and the payment page (guest-body--checkout):
   no hero, the dark title band with the steps over the light-blue page (design v14's checkout). */
.is-checkout .guest-hero { display: none; }
.is-checkout .guest-shell, .guest-body--checkout .guest-shell { background: var(--g-checkout); }
.g-checkout-view[hidden] { display: none; }

.g-page-head { display: grid; justify-items: start; gap: 4px; padding: 23px 28px 26px; background: linear-gradient(115deg, #051a43, #101643); color: #fff; }
.g-page-head h1 { margin: 2px 0 10px; color: #fff; font-size: 24px; font-weight: 800; line-height: 1.25; }
.g-page-head h1:focus { outline: none; }
.g-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.g-back [data-lucide] { width: 16px; height: 16px; }
.g-page-head :focus-visible { outline-color: var(--g-focus-dark); }

.g-page-head .g-stepper { display: flex; align-items: center; gap: 9px; width: 100%; margin: 0; padding: 0; color: #b0c7e6; font-size: 12px; list-style: none; }
.g-page-head .g-stepper li { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
.g-page-head .g-stepper li:not(:last-child) { flex: 1 1 0; }
.g-page-head .g-stepper li:not(:last-child)::after { content: ""; flex: 1 1 0; min-width: 18px; height: 1px; margin-left: 3px; background: #2b99d3; }
.g-page-head .g-stepper li.is-current { color: #fff; font-weight: 700; }
.g-stepper-mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #a8c1e7;
  border-radius: 50%;
  color: #bad1f6;
  font-size: 12px;
  line-height: 1;
}
.g-page-head .is-current .g-stepper-mark, .g-page-head .is-done .g-stepper-mark { border: 0; background: #15bfe4; color: #002846; }

.g-checkout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.86fr); gap: 24px; align-items: start; padding: 26px; }
.g-checkout-main, .g-summary { min-width: 0; border-radius: 7px; background: #fff; box-shadow: 0 8px 24px rgba(0, 30, 72, 0.06); }
.g-checkout-body { display: grid; gap: 18px; padding: 25px; }

@media (max-width: 800px) {
  .g-page-head { padding: 20px 14px; }
  .g-page-head h1 { font-size: 21px; }
  .g-checkout { grid-template-columns: minmax(0, 1fr); gap: 13px; padding: 14px; }
  .g-checkout-body { padding: 18px; }
  .g-page-head .g-stepper { gap: 4px; font-size: 11px; }
  .g-page-head .g-stepper li { white-space: normal; }
  .g-page-head .g-stepper li:not(:last-child)::after { min-width: 6px; margin: 0 2px; }
}
@media (min-width: 801px) {
  .g-summary { position: sticky; top: 15px; }
}

/* Summary card: experience, price and duration, a 2 × 2 grid (day, venue, start, players), lines, total. */
.g-summary { display: grid; gap: 14px; padding: 25px; }
.g-summary-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 15px; border-bottom: 1px solid #e4e9f0; }
.g-summary-title h2 { margin: 0; color: var(--g-ink); font-size: 16px; font-weight: 800; line-height: 1.3; }
.g-summary-edit {
  min-height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: #16365a;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.g-summary-code, .g-summary-promo { color: var(--g-text-3); font-size: 13px; }
.g-summary-code .code, .g-summary-promo .code { color: var(--g-ink); font-size: 14px; }
.g-summary-promo .code { white-space: normal; overflow-wrap: anywhere; }   /* up to 32 characters, phones */
.g-summary-product { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #132f5c; font-size: 14px; }
.g-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; }
.g-summary-grid > div { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 10px 9px; border-radius: 3px; background: #f1f3f6; color: #4d6080; font-size: 12px; }
.g-summary-grid dt { display: flex; flex: none; }
.g-summary-grid dt [data-lucide] { width: 15px; height: 15px; }
.g-summary-grid dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.g-summary-lines { display: grid; gap: 8px; margin: 0; padding: 14px 0 0; border-top: 1px solid #e4e9f0; list-style: none; }
.g-summary-lines li { display: flex; justify-content: space-between; gap: 12px; color: #244c6b; font-size: 13px; }
.g-summary-lines li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.g-summary-lines .g-summary-saving { color: var(--g-ok); }
.g-summary-lines .g-summary-offer span:first-child { min-width: 0; overflow-wrap: anywhere; }   /* the code, phones */
.g-summary-lines .g-summary-dropped { color: var(--color-warning); }
.g-summary-subtitle { margin: 4px 0 0; color: var(--g-ink); font-size: 15px; font-weight: 800; line-height: 1.3; }
.g-total { display: flex; justify-content: space-between; gap: 15px; padding-top: 16px; border-top: 1px solid #e1e7f0; font-size: 15px; font-weight: 850; text-transform: uppercase; }
.g-total span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
/* An order holding money (a deposit, an e-voucher part): what was paid, then what is left — the amount due. */
.g-paid, .g-due { display: flex; justify-content: space-between; gap: 15px; }
.g-paid { color: var(--g-text-3); font-size: 14px; }
.g-due { color: var(--g-ink); font-weight: var(--weight-bold); }
.g-paid span:last-child, .g-due span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.g-summary-note { color: var(--g-muted); font-size: 12px; text-align: center; }

/* Primary action of the checkout pages (the design's cyan bar, upper case). */
.g-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0 18px;
  border: 0;
  background: #14b8de;
  color: #002343;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--motion-fast) var(--ease-out);
}
.g-primary:hover:not(:disabled) { background: #00dce9; }
.g-primary:disabled { background: #bcd3db; color: #4d6b77; cursor: not-allowed; }
.g-primary .btn-spinner { display: none; }
.g-primary.is-loading .btn-spinner { display: inline-block; animation: spin 0.9s linear infinite; }
.g-summary .g-primary { margin-top: 2px; }
/* Under "Thanh toán ngay" while it is dimmed for a QR waiting to be scanned (pay.js refreshPayButton), pulled up to
   the button from the card's 14 px gap: --g-muted #5f6b80 on the summary card's white (5.4:1) — AA at 13 px. */
.g-pay-note { margin-top: -6px; color: var(--g-muted); font-size: 13px; text-align: center; }
.g-form-action { display: grid; justify-items: center; gap: 8px; margin-top: 6px; }
.g-form-action .g-primary { max-width: 330px; }

/* ===== Personal details: guest form =================================================================== */

.g-checkout-body .g-guest-title { margin: 0; color: var(--g-ink); font-size: 24px; font-weight: 800; line-height: 1.25; }

.guest-form { display: flex; flex-direction: column; gap: var(--space-4); }
.guest-form .field-label { font-size: 14px; font-weight: var(--weight-bold); }
.guest-form .input { min-height: 46px; padding: 0 12px; border-color: var(--g-input); border-radius: 4px; }
.guest-form .input:hover { border-color: #8ea3b4; }
.guest-form .input:focus-visible { outline: 3px solid var(--g-ink); outline-offset: 1px; border-color: var(--g-ink); }
.guest-form .input[aria-invalid="true"] { border-color: var(--color-danger); }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
@media (min-width: 480px) {
  .field-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.check { display: flex; align-items: flex-start; gap: var(--space-3); min-height: 44px; padding: var(--space-1) 0; cursor: pointer; }
.check input { flex-shrink: 0; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--g-ink); cursor: pointer; }

.switch { display: inline-flex; align-items: center; gap: var(--space-3); min-height: 44px; font-weight: var(--weight-semibold); cursor: pointer; }
.switch input {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 24px;
  margin: 0;
  border: 1px solid var(--g-input);
  border-radius: var(--radius-full);
  background: var(--g-option);
  cursor: pointer;
  transition: background-color var(--motion-fast) var(--ease-out), border-color var(--motion-fast) var(--ease-out);
}
.switch input::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background: #8ea3b4;
  transition: transform var(--motion-fast) var(--ease-out), background-color var(--motion-fast) var(--ease-out);
}
.switch input:checked { border-color: var(--g-ink); background: var(--g-cyan); }
.switch input:checked::before { transform: translateX(20px); background: var(--g-ink); }

/* The company's invoice fields: two columns as marketing's form (the address and invoice email span both). */
.company-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid #ccd9e1;
  border-radius: 4px;
}
.company-fields[hidden] { display: none; }
.company-fields .company-wide { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .company-fields { grid-template-columns: minmax(0, 1fr); }
}

.submit-note { text-align: center; }

/* ===== Payment: hold notice, method list, the attempt's panels =========================================== */

.g-hold { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 3px; background: #fff5d9; color: #664800; }
.g-hold [data-lucide] { width: 18px; height: 18px; }
.g-hold.is-urgent { background: var(--color-danger-bg); color: var(--color-danger); }
/* Every booking held with money (a deposit or an e-voucher part paid): the seats are held, no countdown. */
.g-hold--held { background: var(--color-success-bg); color: var(--color-success); }
.hold-countdown { font-size: var(--text-lg); font-variant-numeric: tabular-nums; }

.g-pay { display: grid; gap: 12px; }
.g-checkout-body .g-pay-title { margin: 0; color: var(--g-ink); font-size: 18px; font-weight: 800; line-height: 1.3; }
.g-method-note { color: #4f6a80; font-size: 13px; }
.g-methods { display: grid; gap: 6px; }
.g-method {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid #edf1f6;
  background: #f1f5fd;
  color: var(--g-ink);
  cursor: pointer;
  transition: background-color var(--motion-fast) var(--ease-out);
}
.g-method:hover { background: #e8eefb; }
.g-method.is-selected { border-color: #c4d3ef; background: #e1e9fa; }
.g-method-icon { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; }
.g-method-icon [data-lucide] { width: 18px; height: 18px; }
.g-method-copy { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.g-method-copy strong { font-size: 15px; }
.g-method-copy small { color: #5a6f7d; font-size: 13px; }
.g-method input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: #00618d; cursor: pointer; }

/* The e-voucher box under the methods (design v14's gift-code box; pay.js, module [Flow] 6): the "Bạn có e-voucher?"
   row opening the code field and "Gửi mã", then the OTP step — where the code went, what the voucher pays, the
   remainder it forfeits (app.css's warning #92400e on #fffbeb, 6.8:1: a warning, not an error), the OTP field and
   "Áp dụng", "Gửi lại mã" with its countdown. Texts ≥ 12 px on white: --g-muted 5.4:1, --g-text-2 9:1, --g-error
   7.6:1; field edges --g-field-line 3:1; inputs 16 px (no zoom on phones). */
.g-voucher { border: 1px solid #dfe7f3; background: #fff; }
.g-voucher-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 10px 14px;
  border: 0;
  background: #f8faff;
  color: var(--g-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--motion-fast) var(--ease-out);
}
.g-voucher-toggle:hover { background: #eef3fc; }
.g-voucher-toggle > [data-lucide]:first-child { flex: none; width: 20px; height: 20px; color: #067d9d; }
.g-voucher-toggle span { flex: 1 1 auto; min-width: 0; }
.g-voucher-chevron { flex: none; width: 18px; height: 18px; transition: transform var(--motion-fast) var(--ease-out); }
.g-voucher-toggle[aria-expanded="true"] .g-voucher-chevron { transform: rotate(180deg); }
.g-voucher-panel { display: grid; gap: 14px; padding: 14px; border-top: 1px solid #dfe7f3; }
.g-voucher-form { display: grid; gap: 6px; }
.g-voucher-label { color: var(--g-ink); font-size: 14px; font-weight: 700; line-height: 1.3; }
.g-voucher-hint { color: var(--g-muted); font-size: 13px; line-height: 1.45; }
.g-voucher-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; align-items: center; }
.g-voucher-input {
  min-width: 0;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--g-field-line);
  border-radius: 7px;
  background: #fcfdff;
  color: var(--g-ink);
  font: inherit;
  font-size: 16px;
}
.g-voucher-input[aria-invalid="true"] { border-color: var(--g-error); }
/* One input for the whole code (no box per digit: autofill and pasting keep working), its digits spaced. */
.g-voucher-otp { font-family: var(--font-mono); font-size: 18px; letter-spacing: 0.3em; font-variant-numeric: tabular-nums; }
.g-voucher-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 7px;
  background: var(--g-navy);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.g-voucher-btn:hover:not(:disabled) { background: #0b2163; }
.g-voucher-btn:disabled { opacity: 0.7; cursor: wait; }
.g-voucher .btn-spinner { display: none; width: 16px; height: 16px; }
.g-voucher .is-loading .btn-spinner { display: inline-block; animation: spin 0.9s linear infinite; }
.g-voucher .is-loading .btn-icon { display: none; }
.g-voucher-error { display: flex; align-items: flex-start; gap: 6px; color: var(--g-error); font-size: 13px; line-height: 1.45; }
.g-voucher-error [data-lucide] { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.g-voucher-step { display: grid; gap: 12px; }
.g-voucher-preview { display: grid; gap: 6px; padding: 12px 14px; border-radius: 4px; background: #f1f5fd; }
.g-voucher-sent { display: flex; align-items: flex-start; gap: 6px; color: var(--g-text-2); font-size: 13px; overflow-wrap: anywhere; }
.g-voucher-sent [data-lucide] { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.g-voucher-amount { color: var(--g-ink); font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.g-voucher-forfeit {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--color-warning-border);
  border-radius: 4px;
  background: var(--color-warning-bg);
  color: var(--color-warning);
  font-size: 13px;
  font-weight: 600;
}
.g-voucher-forfeit [data-lucide] { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.g-voucher-dev .code { font-size: 15px; letter-spacing: 0.1em; }
.g-voucher-resend {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 6px;
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: #16365a;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.g-voucher-resend [data-lucide] { width: 16px; height: 16px; }
.g-voucher-resend:disabled { color: var(--g-muted); text-decoration: none; cursor: default; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  .g-voucher-toggle, .g-voucher-chevron { transition: none; }
}

.pay-error-body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
/* A failed checkout the guest came back from (pay.js showReturnedFailure): the alert's title and the gateway's code
   line, both in the alert's own colour — app.css's warning #92400e on #fffbeb (6.8:1) for a cancelled or expired
   checkout, danger #b91c1c on #fef2f2 (5.9:1) for the others: AA at 13 px. */
.pay-error-title { font-size: 15px; font-weight: var(--weight-bold); }
.pay-error-code { font-size: 13px; overflow-wrap: anywhere; }

/* The attempt's panel: the QR or the card page, in marketing's dashed box. */
.pay-panel { padding: 16px; border: 1px dashed #97b9c8; background: #f2f8fa; }
.qr-panel { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); text-align: center; }
.qr-image { display: block; width: min(280px, 100%); height: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: #fff; }
/* app.css styles a staff .qr-amount as one big figure; here it is a small label above the figure, so every
   property app.css sets is reset (else "Số tiền" inherits 28 px at line-height 1.25 and its diacritics clip). */
.qr-amount {
  display: flex; flex-direction: column; align-items: center; color: var(--g-text-3);
  font-size: var(--text-base); font-weight: normal; line-height: var(--leading); font-variant-numeric: normal;
}
.qr-amount strong { color: var(--g-ink); font-size: var(--text-2xl); line-height: var(--leading-figure); font-variant-numeric: tabular-nums; }
.qr-hint { font-size: var(--text-md); font-weight: var(--weight-semibold); }
/* A gateway QR's life (15 minutes): the countdown under the code, and the line that replaces the code once it
   expired. The countdown turns red with the hold's in its last 2 minutes (pay.js, is-urgent). */
.qr-expiry { display: inline-flex; align-items: center; gap: 6px; color: #664800; }
.qr-expiry [data-lucide] { width: 18px; height: 18px; }
.qr-expiry strong { font-variant-numeric: tabular-nums; }
.qr-expiry.is-urgent { color: var(--color-danger); }
.qr-expired {
  display: flex; align-items: center; gap: 8px; color: var(--g-text-2); font-weight: var(--weight-semibold);
  text-align: left;
}
.qr-expired [data-lucide] { flex: none; width: 20px; height: 20px; }

.pay-panel > * + * { margin-top: var(--space-3); }
.qr-panel > * + * { margin-top: 0; }

.waiting-line {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid #b4d7e7;
  border-top: 4px solid var(--g-info-line);
  border-radius: 4px;
  background: #eaf4ff;
  color: var(--g-text-2);
}
.waiting-line > [data-lucide] { margin-top: 2px; animation: spin 1s linear infinite; }
.waiting-title { font-weight: var(--weight-semibold); }
.waiting-note { color: var(--g-text-3); }

.simulate-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border: 1px dashed var(--color-warning-border);
  border-radius: 4px;
  background: var(--color-warning-bg);
}

.g-expired { padding: 24px 8px; }
.g-expired > [data-lucide] { width: 40px; height: 40px; color: var(--g-purple); }
.g-expired .empty-title { color: var(--g-ink); font-size: 20px; }
.g-expired .btn-primary { border-color: var(--g-cyan); border-radius: 0; background: var(--g-cyan); color: var(--g-ink); font-weight: var(--weight-bold); text-transform: uppercase; }

/* ===== Narrow column: the pages without a design of their own (ticket, unavailable, terms) =============== */

.guest-main--narrow .panel { padding: 28px 32px; border: 1px solid #e9edf5; border-radius: 16px; box-shadow: 0 8px 25px rgba(27, 39, 91, 0.02); }
.guest-page-title { font-size: clamp(24px, 3vw, 30px); font-weight: var(--weight-bold); line-height: 1.25; }
.guest-main--narrow .section-title { color: var(--g-ink); font-size: 20px; font-weight: 400; line-height: 1.3; }
.guest-main--narrow .btn-primary { border-color: var(--g-cyan); border-radius: 0; background: var(--g-cyan); color: var(--g-ink); font-weight: var(--weight-bold); text-transform: uppercase; }
.guest-main--narrow .btn-primary:hover:not(:disabled) { background: var(--g-cyan-hover); color: var(--g-ink); }
.guest-main--narrow .btn-secondary { border-color: var(--g-ink); border-radius: 0; color: var(--g-ink); }

@media (max-width: 700px) {
  .guest-main--narrow .panel { padding: 22px 18px; }
}

/* ===== Ticket details (ticket page) ====================================================================== */

.detail-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--space-2) var(--space-4); margin: 0; }
.detail-list dt { color: var(--g-text-3); }
.detail-list dd { min-width: 0; margin: 0; font-weight: var(--weight-semibold); overflow-wrap: anywhere; }
.detail-line { display: block; }
.detail-muted { color: var(--g-text-3); font-weight: var(--weight-medium); }
.detail-strong { font-size: var(--text-md); font-weight: var(--weight-bold); }

/* ===== Ticket page ======================================================================================= */

.ticket-card { text-align: center; }
.ticket-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-2) var(--space-3); }
.ticket-qr { display: block; width: min(296px, 100%); height: auto; margin: var(--space-4) auto 0; }
.ticket-code-label { margin-top: var(--space-3); color: var(--g-text-3); }
.ticket-code {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-figure);
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
}
.ticket-details { margin-top: var(--space-5); text-align: left; }
.ticket-note { margin-top: var(--space-5); text-align: left; }

.invoice-block .section-title { margin-bottom: var(--space-3); }
.invoice-pending { display: flex; align-items: flex-start; gap: var(--space-2); }
.invoice-pending [data-lucide] { margin-top: 2px; color: var(--g-text-3); }
.invoice-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.ticket-actions { display: flex; justify-content: center; }

/* ===== Unavailable page (expired, cancelled, paid, not found) ============================================ */

.unavailable { color: var(--g-text-3); }
.unavailable > [data-lucide] { width: 40px; height: 40px; color: var(--g-purple); }
.unavailable .empty-title { color: var(--g-ink); font-size: 24px; font-weight: var(--weight-bold); line-height: 1.3; }
.unavailable p { max-width: 48ch; }
.unavailable-meta { color: var(--g-ink); font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; }
.guest-main--narrow .empty--page { margin-top: 0; max-width: none; }

/* ===== Terms page (the venue's plain-text terms as paragraphs) =========================================== */

.terms-venue { margin-top: var(--space-1); color: var(--g-text-3); }
.terms-body { margin-top: var(--space-4); overflow-wrap: anywhere; }
.terms-body p + p { margin-top: var(--space-3); }
.terms-pending { display: flex; align-items: flex-start; gap: var(--space-2); margin-top: var(--space-4); color: var(--g-text-3); }
.terms-pending [data-lucide] { margin-top: 2px; }

/* ===== Print: the ticket on white paper ================================================================== */

.print-only { display: none; }

@media print {
  .guest-header, .guest-hero, .guest-footer, .ticket-actions, .invoice-actions { display: none !important; }
  .guest-shell { box-shadow: none; }
  .guest-body { background: #fff; }
  .guest-main { max-width: none; margin: 0; padding: 0; }
  .guest-main > * + * { margin-top: 6mm; }
  .print-only { display: block; }
  .print-title { font-weight: var(--weight-bold); }
  .ticket-card, .invoice-block { border: 1px solid #999; box-shadow: none; break-inside: avoid; }
  .ticket-qr { width: 60mm; }
  .badge, .alert { border-color: #000; background: #fff; color: #000; }
  .detail-list dt, .detail-muted, .ticket-code-label { color: #333; }
}
