/* ============================================================================
   5 Curated Themes — Default: Morandi (莫兰迪色系)
   Themes: morandi | pink | mayday | day | night
   ============================================================================ */
:root,
:root[data-theme="morandi"] {
  --bg-page: #f2ede7;
  --bg-glow: radial-gradient(115% 440px at 50% -90px, rgba(132, 152, 166, 0.24) 0%, rgba(186, 154, 142, 0.12) 48%, transparent 78%);
  --bg-surface: #faf7f3;
  --bg-elevated: #eee7df;
  --bg-selected: rgba(112, 134, 149, 0.14);
  --bg-notice: rgba(112, 134, 149, 0.10);
  --line-subtle: rgba(82, 92, 102, 0.16);
  --line-strong: rgba(112, 134, 149, 0.62);
  --text-primary: #2d3338;
  --text-muted: #677078;
  --accent: #688092;
  --accent-strong: #4e6678;
  --accent-warm: #a67467;
  --btn-bg: linear-gradient(135deg, #6e8698 0%, #587082 100%);
  --btn-text: #ffffff;
  --warn-bg: rgba(186, 132, 82, 0.12);
  --warn-border: rgba(186, 132, 82, 0.48);
  --warn-text: #6e4520;
  --err-bg: rgba(188, 86, 86, 0.11);
  --err-border: rgba(188, 86, 86, 0.45);
  --err-text: #9f2f2f;
  --status-ok: #4f866d;
  --status-warn: #b37a3b;
  --status-err: #c25151;
}

:root[data-theme="pink"] {
  --bg-page: #fff4f7;
  --bg-glow: radial-gradient(115% 460px at 50% -90px, rgba(244, 143, 177, 0.30) 0%, rgba(252, 200, 218, 0.18) 50%, transparent 80%);
  --bg-surface: #ffffff;
  --bg-elevated: #ffeaf0;
  --bg-selected: rgba(232, 107, 143, 0.12);
  --bg-notice: rgba(232, 107, 143, 0.08);
  --line-subtle: rgba(190, 96, 128, 0.18);
  --line-strong: rgba(226, 98, 138, 0.62);
  --text-primary: #452330;
  --text-muted: #845969;
  --accent: #df648a;
  --accent-strong: #c44a72;
  --accent-warm: #d46282;
  --btn-bg: linear-gradient(135deg, #f07ea2 0%, #dc5a85 100%);
  --btn-text: #ffffff;
  --warn-bg: rgba(234, 152, 74, 0.12);
  --warn-border: rgba(217, 131, 56, 0.46);
  --warn-text: #7c4212;
  --err-bg: rgba(219, 68, 92, 0.10);
  --err-border: rgba(219, 68, 92, 0.45);
  --err-text: #a61e39;
  --status-ok: #2f8f6b;
  --status-warn: #c77a2b;
  --status-err: #d13b5a;
}

:root[data-theme="mayday"] {
  --bg-page: #050b18;
  --bg-glow: radial-gradient(120% 520px at 50% -110px, rgba(0, 168, 255, 0.34) 0%, rgba(16, 78, 156, 0.16) 48%, transparent 78%);
  --bg-surface: #0c162b;
  --bg-elevated: #132240;
  --bg-selected: rgba(56, 189, 248, 0.16);
  --bg-notice: rgba(56, 189, 248, 0.10);
  --line-subtle: rgba(148, 197, 255, 0.18);
  --line-strong: rgba(56, 189, 248, 0.62);
  --text-primary: #f4f8ff;
  --text-muted: #9eb6d6;
  --accent: #38bdf8;
  --accent-strong: #60d5ff;
  --accent-warm: #facc15;
  --btn-bg: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 55%, #2563eb 100%);
  --btn-text: #04101f;
  --warn-bg: rgba(251, 191, 36, 0.12);
  --warn-border: rgba(251, 191, 36, 0.48);
  --warn-text: #fde68a;
  --err-bg: rgba(248, 113, 113, 0.14);
  --err-border: rgba(248, 113, 113, 0.50);
  --err-text: #fecaca;
  --status-ok: #34d399;
  --status-warn: #fbbf24;
  --status-err: #f87171;
}

:root[data-theme="day"] {
  --bg-page: #f5f6f8;
  --bg-glow: radial-gradient(110% 380px at 50% -80px, rgba(0, 113, 227, 0.12) 0%, transparent 72%);
  --bg-surface: #ffffff;
  --bg-elevated: #eef1f5;
  --bg-selected: rgba(0, 113, 227, 0.09);
  --bg-notice: rgba(0, 113, 227, 0.06);
  --line-subtle: rgba(29, 29, 31, 0.12);
  --line-strong: rgba(0, 113, 227, 0.58);
  --text-primary: #1d1d1f;
  --text-muted: #636369;
  --accent: #0071e3;
  --accent-strong: #005bb5;
  --accent-warm: #0071e3;
  --btn-bg: linear-gradient(135deg, #0077ed 0%, #0062c4 100%);
  --btn-text: #ffffff;
  --warn-bg: rgba(217, 119, 6, 0.10);
  --warn-border: rgba(217, 119, 6, 0.42);
  --warn-text: #854d0e;
  --err-bg: rgba(220, 38, 38, 0.08);
  --err-border: rgba(220, 38, 38, 0.40);
  --err-text: #991b1b;
  --status-ok: #15803d;
  --status-warn: #b45309;
  --status-err: #dc2626;
}

:root[data-theme="night"] {
  --bg-page: #0a0b0e;
  --bg-glow: radial-gradient(110% 420px at 50% -90px, rgba(148, 163, 184, 0.14) 0%, transparent 75%);
  --bg-surface: #15171d;
  --bg-elevated: #1e212a;
  --bg-selected: rgba(147, 197, 253, 0.14);
  --bg-notice: rgba(148, 163, 184, 0.10);
  --line-subtle: rgba(226, 232, 240, 0.13);
  --line-strong: rgba(147, 197, 253, 0.55);
  --text-primary: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #93c5fd;
  --accent-strong: #bfdbfe;
  --accent-warm: #e2e8f0;
  --btn-bg: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  --btn-text: #0f172a;
  --warn-bg: rgba(251, 191, 36, 0.12);
  --warn-border: rgba(251, 191, 36, 0.45);
  --warn-text: #fde68a;
  --err-bg: rgba(248, 113, 113, 0.14);
  --err-border: rgba(248, 113, 113, 0.48);
  --err-text: #fecaca;
  --status-ok: #34d399;
  --status-warn: #fbbf24;
  --status-err: #f87171;
}

:root {
  --radius-md: 14px;
  --radius-lg: 20px;
  /* Strict 3-size body scale below H1 */
  --fs-lg: 1.125rem;
  --fs-base: 1rem;
  --fs-sm: 0.875rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  transition: background-color 220ms var(--ease-out), color 220ms var(--ease-out);
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: clip;
  background: var(--bg-glow), var(--bg-page);
  font-variant-numeric: tabular-nums;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 18px 56px;
}

/* Top bar */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 6px;
}

.brand-mark {
  font-size: var(--fs-base);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  text-decoration: none;
}

.brand-mark span {
  color: var(--accent);
}

.text-action {
  background: transparent;
  border: 0;
  color: var(--accent-strong);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 10px 4px;
  min-height: 44px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 180ms var(--ease-out);
}

.text-action:hover,
.text-action:focus-visible {
  color: var(--text-primary);
}

/* Theme Segmented Switcher (5 styles, compact & tactile) */
.theme-switcher {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 4px;
  margin: 6px 0 12px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--line-subtle);
}

.theme-opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  padding: 4px 4px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out);
}

.theme-opt[aria-pressed="true"] {
  background: var(--bg-selected);
  color: var(--text-primary);
  font-weight: 600;
}

.swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
  border: 1px solid rgba(128, 128, 128, 0.35);
}

.swatch-morandi { background: #7b909f; }
.swatch-pink { background: #ec7ca0; }
.swatch-mayday { background: #0ea5e9; }
.swatch-day { background: #ffffff; }
.swatch-night { background: #181a20; }

/* Opening Header */
.hero-header {
  padding: 10px 0 20px;
  border-bottom: 1px solid var(--line-subtle);
}

.hero-header h1 {
  margin: 0;
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.hero-sub {
  margin: 10px 0 0;
  font-size: var(--fs-base);
  color: var(--text-muted);
}

.hero-sub strong {
  color: var(--accent-warm);
  font-weight: 600;
}

.notice-bar {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  background: var(--bg-notice);
  border-radius: 0 10px 10px 0;
  font-size: var(--fs-sm);
  color: var(--text-primary);
}

/* Concert Promo Photo Gallery (Swipeable 3-photo horizontal strip) */
.promo-gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin-top: 16px;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.promo-gallery::-webkit-scrollbar {
  display: none;
}

.promo-slide {
  flex: 0 0 84%;
  scroll-snap-align: start;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--line-subtle);
}

.promo-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.promo-slide figcaption {
  padding: 9px 12px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.fixed-show-card {
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--line-subtle);
}

.fixed-show-card strong {
  display: block;
  font-size: var(--fs-base);
  color: var(--text-primary);
}

.fixed-show-card span {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.deposit-rule {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

/* Form Sections */
.booking-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 24px;
}

.step-group {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
  max-width: 100%;
}

.step-group legend,
.section-heading {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text-primary);
}

.section-hint {
  margin: -4px 0 14px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* Plan Radio Options */
.plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.radio-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  min-height: 70px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--line-subtle);
  cursor: pointer;
  transition: border-color 180ms var(--ease-out), background-color 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.radio-card:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.radio-card:has(input:checked) {
  background: var(--bg-selected);
  border-color: var(--accent);
}

.radio-card:active {
  transform: scale(0.99);
}

.plan-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.plan-name {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text-primary);
}

.plan-desc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.plan-price {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--accent-warm);
  white-space: nowrap;
}

/* Date Tabs */
.date-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 14px;
  scrollbar-width: none;
}

.date-tabs::-webkit-scrollbar {
  display: none;
}

.date-tab {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-subtle);
  background: var(--bg-surface);
  color: var(--text-muted);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
  transition: border-color 180ms var(--ease-out), background-color 180ms var(--ease-out), color 180ms var(--ease-out);
}

.date-tab[aria-selected="true"] {
  background: var(--bg-selected);
  border-color: var(--accent);
  color: var(--text-primary);
  font-weight: 600;
}

.date-tab .tab-sub {
  font-size: var(--fs-sm);
  opacity: 0.85;
}

/* Slot Grid */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.slot-option {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 13px 14px;
  min-height: 76px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--line-subtle);
  cursor: pointer;
  transition: border-color 180ms var(--ease-out), background-color 180ms var(--ease-out), opacity 180ms var(--ease-out);
}

.slot-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.slot-option:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.slot-option:has(input:checked) {
  background: var(--bg-selected);
  border-color: var(--accent);
}

.slot-option.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.slot-time {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text-primary);
}

.slot-meta {
  margin-top: 3px;
  font-size: var(--fs-sm);
  color: var(--accent-strong);
}

.slot-option.is-disabled .slot-meta {
  color: var(--text-muted);
}

.slot-empty {
  grid-column: 1 / -1;
  padding: 20px 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px dashed var(--line-subtle);
}

/* Fields */
.field-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field label {
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--text-primary);
}

.field-hint {
  margin: -2px 0 2px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.field input[type="text"],
.field input[type="password"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  font: inherit;
  font-size: max(1rem, 1em);
  transition: border-color 180ms var(--ease-out), background-color 180ms var(--ease-out);
}

.field textarea {
  min-height: 82px;
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-elevated);
}

.field :is(:user-invalid, .user-invalid-fallback) {
  border-color: var(--status-err);
}

.error-msg {
  display: none;
  font-size: var(--fs-sm);
  color: var(--status-err);
}

.field :is(:user-invalid, .user-invalid-fallback) + .error-msg,
.error-msg.is-visible {
  display: block;
}

/* Vision options */
.vision-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vision-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px;
  min-height: 52px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--line-subtle);
  cursor: pointer;
  transition: border-color 180ms var(--ease-out), background-color 180ms var(--ease-out);
}

.vision-item input[type="radio"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.vision-item:has(input:checked) {
  background: var(--bg-selected);
  border-color: var(--accent);
}

.vision-item strong {
  display: block;
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text-primary);
}

.vision-item span {
  display: block;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* Checkbox row */
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px;
  min-height: 52px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--line-subtle);
  cursor: pointer;
  font-size: var(--fs-sm);
  color: var(--text-primary);
}

.check-row.is-warn {
  border-color: var(--warn-border);
  background: var(--warn-bg);
  color: var(--warn-text);
}

.check-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.form-alert {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--err-bg);
  border: 1px solid var(--err-border);
  color: var(--err-text);
  font-size: var(--fs-sm);
}

/* Primary CTA */
.primary-btn {
  width: 100%;
  min-height: 54px;
  padding: 14px 20px;
  border: 0;
  border-radius: 14px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font: inherit;
  font-size: var(--fs-lg);
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms var(--ease-out), opacity 180ms var(--ease-out);
}

.primary-btn:hover:not(:disabled) {
  opacity: 0.94;
}

.primary-btn:active:not(:disabled) {
  transform: scale(0.99);
}

.primary-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.secondary-btn {
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg-selected);
  color: var(--text-primary);
  font: inherit;
  font-size: var(--fs-base);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

.danger-btn {
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--err-border);
  background: var(--err-bg);
  color: var(--err-text);
  font: inherit;
  font-size: var(--fs-base);
  font-weight: 600;
  cursor: pointer;
}

/* ============================================================================
   ALWAYS-MAYDAY STYLE RESERVATION CARD (Apple TV "Between Us - The Front Row"
   Misty Silver-Teal Horizon Silhouette + Mayday Blue-Sea Atmosphere)
   ============================================================================ */
.ticket-stage {
  margin-top: 12px;
}

.ticket-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #0b1c2c 0%, #071222 46%, #050b16 100%);
  border: 1px solid rgba(116, 204, 244, 0.42);
  box-shadow: 0 22px 54px rgba(8, 18, 36, 0.34);
  color: #f4f8ff;
}

.mayday-poster-art {
  position: relative;
  width: 100%;
  aspect-ratio: 20 / 9;
  overflow: hidden;
  background: #0b1c2c;
}

.mayday-poster-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mayday-poster-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 18, 34, 0) 56%, rgba(7, 18, 34, 0.96) 100%);
  pointer-events: none;
}

.ticket-deposit-box {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.45);
  color: #fef3c7;
  font-size: var(--fs-sm);
  line-height: 1.55;
}

.wechat-btn-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.copy-script-btn {
  width: 100%;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(96, 213, 255, 0.55);
  background: rgba(56, 189, 248, 0.20);
  color: #e0f2fe;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
}

.ticket-top {
  padding: 18px 22px 16px;
  text-align: center;
}

.ticket-brand {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.10em;
  color: #7dd3fc;
}

.ticket-title {
  margin: 6px 0 4px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.24;
}

.ticket-greeting {
  margin: 6px 0 0;
  font-size: var(--fs-base);
  color: #facc15;
  font-weight: 600;
}

.ticket-quote {
  margin: 8px 0 0;
  font-size: var(--fs-sm);
  color: #cde4fb;
}

.ticket-divider {
  position: relative;
  height: 26px;
  display: flex;
  align-items: center;
}

.ticket-divider::before,
.ticket-divider::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-page);
  border: 1px solid rgba(116, 204, 244, 0.32);
}

.ticket-divider::before { left: -13px; }
.ticket-divider::after { right: -13px; }

.ticket-dashes {
  width: 100%;
  border-top: 2px dashed rgba(148, 197, 255, 0.28);
  margin: 0 18px;
}

.ticket-body {
  padding: 8px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ticket-rows {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
}

.ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 197, 255, 0.14);
}

.ticket-row dt {
  font-size: var(--fs-sm);
  color: #9bb5d4;
  flex: 0 0 auto;
}

.ticket-row dd {
  margin: 0;
  font-size: var(--fs-base);
  font-weight: 600;
  color: #f8fbff;
  text-align: right;
}

.ticket-row dd.is-gold {
  color: #facc15;
}

.ticket-row dd.is-blue {
  color: #60d5ff;
}

.ticket-vision-tip {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.32);
  font-size: var(--fs-sm);
  color: #e0f2fe;
}

.ticket-vision-tip.is-warn {
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.48);
  color: #fef3c7;
}

.wechat-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(4, 10, 22, 0.72);
  border: 1px solid rgba(148, 197, 255, 0.20);
}

.wechat-qr-img {
  width: 96px;
  height: 96px;
  border-radius: 10px;
  object-fit: cover;
  background: #ffffff;
  flex: 0 0 auto;
}

.wechat-info {
  flex: 1;
  min-width: 0;
}

.wechat-info h3 {
  margin: 0 0 4px;
  font-size: var(--fs-base);
  font-weight: 600;
  color: #ffffff;
}

.wechat-info p {
  margin: 0 0 10px;
  font-size: var(--fs-sm);
  color: #a9c2de;
}

.copy-wechat-btn {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(52, 211, 153, 0.55);
  background: rgba(52, 211, 153, 0.18);
  color: #a7f3d0;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
}

.ticket-actions {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Native Modal <dialog> */
dialog.app-dialog {
  width: min(92vw, 460px);
  max-height: 88dvh;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

dialog.app-dialog:modal {
  overscroll-behavior: contain;
}

dialog.app-dialog::backdrop {
  background: rgba(15, 23, 42, 0.64);
  backdrop-filter: blur(6px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.dialog-inner {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dialog-head h2 {
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: 600;
}

.close-btn {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  font: inherit;
  font-size: var(--fs-lg);
  cursor: pointer;
}

.saved-ticket-preview {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.lookup-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lookup-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lookup-item-actions {
  display: flex;
  gap: 8px;
}

.lookup-item-actions button {
  flex: 1;
  min-height: 42px;
}

/* Footer */
.site-footer {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent-strong);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(16px);
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(24, 34, 48, 0.94);
  border: 1px solid rgba(148, 197, 255, 0.35);
  color: #f8fafc;
  font-size: var(--fs-sm);
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}

.toast.is-shown {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

[hidden] {
  display: none !important;
}

@media (pointer: coarse) {
  .field input[type="text"],
  .field input[type="password"],
  .field input[type="date"],
  .field select {
    min-height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
