/* styles.css — Ticket Coach */

/* ── Reset & base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Noto Sans TC', 'PingFang TC', system-ui, sans-serif;
  background: #f5f5f4;
  color: rgb(38, 38, 38);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; }
a { color: inherit; }
::selection { background: rgb(2,108,223); color: #fff; }

/* ── Keyframes ─────────────────────────────────────────────────────── */
@keyframes tdrise  { from { transform: translateY(14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes tdpop   { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
@keyframes tdpulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes tdshake {
  10%,90% { transform: translateX(-1px); }
  20%,80% { transform: translateX(2px); }
  30%,50%,70% { transform: translateX(-4px); }
  40%,60% { transform: translateX(4px); }
}
.screen-anim { animation: tdrise .35s ease both; }
/* Suppress entrance animation during the initial hydration render */
#app.td-no-anim .screen-anim,
#app.td-no-anim .tx-container { animation: none; }

/* ── App Header (home / captcha screens) ───────────────────────────── */
.app-header {
  height: 60px;
  background: #fff;
  border-bottom: 1px solid #e7e6e3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.app-header-logo { display: flex; align-items: center; gap: 11px; }
.app-header-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: block;
  flex-shrink: 0;
}
.app-header-name  { font-weight: 900; font-size: 16px; letter-spacing: .5px; line-height: 1.1; }
.app-header-sub   { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 2px; color: #a3a39d; line-height: 1.2; }
.back-btn {
  background: none; border: 1px solid #dededa; color: #56565a;
  font-size: 13px; padding: 7px 15px; border-radius: 8px;
}
.back-btn:hover { background: #f5f5f4; }

/* ══════════════════════════════════════════════════════════════════════
   TIXCRAFT-FAITHFUL CHROME (flow pages: detail / session / area / ticket / done)
   ══════════════════════════════════════════════════════════════════════ */

/* ── Top alert bar ─────────────────────────────────────────────────── */
.tx-top-alert {
  background: #1a1d2e;
  color: #d1d5db;
  font-size: 12px;
  padding: 0 16px;
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.tx-top-alert-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 32px;
}
.tx-practice-badge {
  background: #f59e0b;
  color: #111;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.tx-top-alert-msg {
  color: #9ca3af;
  font-size: 12px;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tx-top-alert-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.tx-top-timer {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #f59e0b;
  letter-spacing: .5px;
  min-width: 48px;
  text-align: right;
}
.tx-exit-btn {
  background: transparent;
  border: 1px solid #374151;
  color: #9ca3af;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}
.tx-exit-btn:hover { background: #374151; color: #fff; }

/* ── Dark bar (locale / language row) ─────────────────────────────── */
.tx-darkbar {
  background: #212529;
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 0 16px;
}
.tx-darkbar-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.tx-darkbar-left {
  display: flex;
  align-items: center;
  gap: 2px;
}
.tx-locale-btn, .tx-lang-btn {
  background: transparent;
  border: none;
  color: #adb5bd;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.tx-locale-btn:hover, .tx-lang-btn:hover { background: #343a40; color: #fff; }
.tx-locale-sep { color: #495057; font-size: 12px; padding: 0 2px; }

/* ── Navbar (white) ────────────────────────────────────────────────── */
.tx-navbar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.tx-navbar-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.tx-navbar-left  { display: flex; align-items: center; gap: 24px; }
.tx-navbar-right { display: flex; align-items: center; gap: 12px; }

/* Logo */
.tx-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  line-height: 1;
  gap: 1px;
}
.tx-logo-main {
  font-size: 22px;
  font-weight: 900;
  color: rgb(2, 108, 223);
  letter-spacing: -0.5px;
  line-height: 1;
}
.tx-logo-sub {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #9ca3af;
  text-transform: uppercase;
  line-height: 1;
}

/* Nav links */
.tx-nav-links { display: flex; align-items: center; gap: 4px; }
.tx-nav-link {
  font-size: 15px;
  color: #374151;
  padding: 6px 10px;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}
.tx-nav-link:hover       { background: #f3f4f6; }
.tx-nav-link.active      { color: rgb(2, 108, 223); font-weight: 700; }

/* Search box */
.tx-search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d1d5db;
  border-radius: 20px;
  padding: 7px 14px;
  background: #f9fafb;
  min-width: 180px;
}
.tx-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: #374151;
  width: 100%;
}
.tx-search-box input::placeholder { color: #9ca3af; }
.tx-search-icon { color: #9ca3af; font-size: 14px; flex-shrink: 0; }

/* Member button */
.tx-member-btn {
  border: 1.5px solid rgb(2,108,223);
  background: transparent;
  color: rgb(2, 108, 223);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}
.tx-member-btn:hover { background: rgba(2,108,223,.06); }

/* ── Main content wrapper ──────────────────────────────────────────── */
.tx-main {
  background: #f5f5f4;
  min-height: calc(100vh - 270px);
}
.tx-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px 80px;
  animation: tdrise .3s ease both;
}

/* ── Breadcrumb (Bootstrap-compatible ol.breadcrumb) ───────────────── */
ol.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  padding: 14px 0 10px;
  margin: 0;
  font-size: 13px;
  gap: 2px;
}
ol.breadcrumb .breadcrumb-item { color: #6b7280; }
ol.breadcrumb .breadcrumb-item + .breadcrumb-item::before { content: '/'; padding: 0 6px; color: #d1d5db; }
ol.breadcrumb .breadcrumb-item a { color: #6b7280; text-decoration: none; }
ol.breadcrumb .breadcrumb-item a:hover { text-decoration: underline; color: rgb(2,108,223); }
ol.breadcrumb .breadcrumb-item.active { color: rgb(38,38,38); }

/* ── Progress step bar (circle + connector + label) ────────────────── */
.tx-progress-steps {
  display: flex;
  align-items: flex-start;
  padding: 20px 0 16px;
  margin: 0 0 24px;
  background: transparent;
  border: none;
  border-radius: 0;
  font-size: 13px;
  overflow: visible;
}
.progress-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
/* Horizontal connector line through each step */
.progress-step::before {
  content: '';
  position: absolute;
  top: 13px;
  left: 0;
  right: 0;
  height: 2px;
  background: #d1d5db;
  z-index: 0;
}
.progress-step:first-child::before { left: 50%; }
.progress-step:last-child::before  { right: 50%; }
.progress-step.done::before        { background: rgb(2,108,223); }
.progress-step.active::before      { background: rgb(2,108,223); }
.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.progress-step.done     .step-dot { background: rgb(2,108,223); color: #fff; }
.progress-step.active   .step-dot { background: rgb(2,108,223); color: #fff; box-shadow: 0 0 0 3px #bfdbfe; }
.progress-step.disabled .step-dot { background: #d1d5db; color: #9ca3af; }
.step-label {
  margin-top: 6px;
  font-size: 11px;
  color: #9ca3af;
  text-align: center;
  white-space: nowrap;
  font-weight: 400;
}
.progress-step.done   .step-label { color: rgb(2,108,223); font-weight: 600; }
.progress-step.active .step-label { color: rgb(2,108,223); font-weight: 700; }

/* ── Page title ────────────────────────────────────────────────────── */
.tx-page-title {
  font-size: 22px;
  font-weight: 900;
  margin: 8px 0 20px;
  color: rgb(38,38,38);
  line-height: 1.3;
}

/* ── Tables (Bootstrap-compatible .table .table-bordered) ──────────── */
.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
  color: rgb(38,38,38);
}
.table-bordered {
  border: 1px solid #dee2e6;
}
.table-bordered th,
.table-bordered td {
  border: 1px solid #dee2e6;
  padding: 10px 14px;
  vertical-align: middle;
}
.table-bordered thead th {
  background: #f8f9fa;
  font-weight: 700;
  font-size: 13px;
  color: #495057;
  white-space: nowrap;
}
.table-bordered tbody tr { transition: background .1s; }
.table-bordered tbody tr:hover { background: #f8f9fa; }
.table-bordered tbody td { vertical-align: middle; }

/* ── Bootstrap button variants ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter .12s, opacity .12s;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.4;
}
.btn:disabled { opacity: .65; cursor: not-allowed; }
.btn-primary {
  background: rgb(2,108,223);
  border-color: rgb(2,108,223);
  color: #fff;
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.1); }
.btn-green {
  background: #28a745;
  border-color: #28a745;
  color: #fff;
}
.btn-green:hover:not(:disabled) { filter: brightness(1.08); }
.text-bold { font-weight: 700; }

/* ── Detail page ───────────────────────────────────────────────────── */
.tx-detail-banner {
  width: calc(100% + 40px);
  margin: 0 -20px 0;
  background: repeating-linear-gradient(135deg, #1e3a6e 0 24px, #1c3566 24px 48px);
  min-height: 280px;
  position: relative;
  overflow: hidden;
}
.tx-detail-banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 65%;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 100%);
  pointer-events: none;
}
.tx-detail-banner-label {
  position: absolute;
  top: 20px; left: 24px;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  font-weight: 600;
  z-index: 1;
}
.tx-detail-banner-title {
  position: absolute;
  bottom: 24px; left: 24px;
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
  line-height: 1.25;
  max-width: 80%;
}

/* Action buttons row */
.tx-detail-actions {
  display: flex;
  gap: 12px;
  padding: 16px 0 4px;
  flex-wrap: wrap;
  align-items: stretch;
}
.tx-detail-buy-btn {
  background: rgb(2,108,223);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  min-width: 120px;
  transition: filter .15s;
}
.tx-detail-buy-btn:hover { filter: brightness(1.1); }
.tx-detail-ref-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 8px 20px;
  font-size: 13px;
  cursor: default;
  opacity: .8;
  line-height: 1.35;
  min-width: 110px;
  gap: 1px;
}
.tx-detail-ref-main { font-weight: 700; }
.tx-detail-ref-sub  { font-size: 11px; color: #9ca3af; }
.tx-detail-timer-note {
  font-size: 12px;
  color: #9ca3af;
  margin: 0 0 12px;
}

/* Membership notice box */
.tx-detail-notice {
  background: #fff8f0;
  border: 1px solid #fcd29f;
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: #374151;
  line-height: 1.65;
}
.tx-detail-notice-icon { color: #d97706; flex-shrink: 0; font-size: 9px; margin-top: 4px; }

/* Tab panel */
.tx-detail-info-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}
.tx-detail-info-tabs {
  display: flex;
  background: rgb(2,108,223);
  overflow-x: auto;
}
.tx-detail-tab {
  padding: 12px 22px;
  color: rgba(255,255,255,.7);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,.15);
  flex-shrink: 0;
}
.tx-detail-tab.active { color: #fff; background: rgba(255,255,255,.15); }
.tx-detail-tab:hover  { color: #fff; }

/* Tab body */
.tx-detail-body {
  font-size: 14px;
  line-height: 1.8;
  color: #374151;
}
.tx-detail-intro {
  text-align: center;
  padding: 20px 24px 8px;
  line-height: 2.1;
  color: #374151;
}
.tx-detail-intro p { margin: 0; }
.tx-detail-meta-block { padding: 0 24px 12px; }
.tx-detail-row {
  display: flex;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px solid #f3f4f6;
}
.tx-detail-row:last-child { border-bottom: none; }
.tx-detail-lbl { color: #6b7280; min-width: 80px; flex-shrink: 0; font-size: 13px; }
.tx-price-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tx-price-chip {
  background: #eff6ff;
  color: rgb(2,108,223);
  border: 1px solid #bfdbfe;
  border-radius: 5px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
}

/* ── Session page (#gameList grid-view) ────────────────────────────── */
.tx-session-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.tx-select {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  background: #fff;
  color: rgb(38,38,38);
  cursor: pointer;
  outline: none;
}
.tx-select:focus { border-color: rgb(2,108,223); }
.tx-search-input {
  flex: 1; min-width: 160px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  outline: none;
  background: #fff;
}
.tx-search-input:focus { border-color: rgb(2,108,223); }

/* Real tixcraft gameList structure */
#gameList { margin-bottom: 20px; }
#gameList .table-bordered tbody tr.gridc td { color: #374151; }
#gameList .fcTxt { color: #374151; }
#gameList td:first-child { white-space: nowrap; font-weight: 600; color: rgb(38,38,38); }
#gameList td:last-child  { text-align: center; }
.btn.m-0 { margin: 0 !important; }

/* ── Area page ─────────────────────────────────────────────────────── */
.tx-area-layout {
  display: grid;
  grid-template-columns: 1fr 370px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 760px) {
  .tx-area-layout { grid-template-columns: 1fr; }
}
.tx-area-map {
  background: #1a2b4a;
  border-radius: 12px;
  overflow: hidden;
  padding: 24px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
/* Simplified venue SVG map */
.tx-venue-svg { width: 100%; max-width: 340px; }
.tx-stage-label {
  background: #334155;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 6px;
  padding: 8px 32px;
  border-radius: 6px;
  text-align: center;
  width: 100%;
  max-width: 340px;
}

/* Event bar (thumbnail + full-width session dropdown) */
.tx-area-event-bar {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.tx-area-event-img {
  width: 68px;
  height: 68px;
  border-radius: 6px;
  background: repeating-linear-gradient(135deg, #1e3a6e 0 12px, #1c3566 12px 24px);
  flex-shrink: 0;
}

/* Session full-width dropdown (lives in event bar) */
.tx-select-session {
  flex: 1;
  min-width: 200px;
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background: #fff;
  color: #212529;
  cursor: pointer;
}

/* White card wrapper around both columns */
.tx-area-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
}

/* Area selection panel (right column) */
.tx-area-select-panel {
  max-height: 540px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.tx-area-select-panel::-webkit-scrollbar { width: 5px; }
.tx-area-select-panel::-webkit-scrollbar-track { background: transparent; }
.tx-area-select-panel::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* "請選擇區域" panel heading */
.tx-area-panel-title {
  font-size: 15px;
  font-weight: 700;
  color: #212529;
  margin: 0 0 8px;
  padding: 0;
}

/* Zone group */
.zone.area-list { margin-bottom: 6px; }
.zone-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: #e9ecef;
  border: 1px solid #dee2e6;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #212529;
  margin-top: 6px;
}
.zone-label > span:first-child {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 1px;
  flex-shrink: 0;
}
/* Price range pushed to the right */
.zone-price {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
ul.area-list {
  list-style: none;
  margin: 0 0 2px;
  padding: 0;
  border: 1px solid #dee2e6;
  border-radius: 0 0 4px 4px;
  overflow: hidden;
  background: #fff;
}
ul.area-list li.select_form_a {
  border-bottom: 1px solid #f1f3f5;
  transition: background .1s;
}
ul.area-list li.select_form_a:last-child { border-bottom: none; }
ul.area-list li.select_form_a:not(.sold-out):hover { background: #f0f7ff; }
ul.area-list li.select_form_a a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  text-decoration: none;
  color: rgb(38,38,38);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
ul.area-list li.select_form_a.sold-out a {
  color: #9ca3af;
  cursor: not-allowed;
  pointer-events: none;
}
ul.area-list li.select_form_a a span.area-swatch {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 1px;
  flex-shrink: 0;
}
ul.area-list li.select_form_a a font {
  margin-left: auto;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

/* ── Ticket form (#form-ticket-ticket) ─────────────────────────────── */
.tx-ticket-page { /* full container width */ }

/* Event summary bar */
.tx-ticket-event-bar {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 12px;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.tx-ticket-event-img {
  width: 64px; height: 64px;
  border-radius: 6px;
  background: repeating-linear-gradient(135deg, #1e3a6e 0 12px, #1c3566 12px 24px);
  flex-shrink: 0;
}
.tx-ticket-event-info { flex: 1; min-width: 180px; }
.tx-ticket-event-name { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.tx-ticket-event-sub  { font-size: 13px; color: #6b7280; margin-bottom: 4px; }
.tx-ticket-event-meta { font-size: 13px; color: #6b7280; line-height: 1.6; }

/* Selected area row */
.tx-ticket-selected-area {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #374151;
  flex-wrap: wrap;
}
.tx-ticket-area-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgb(2,108,223);
  color: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
}
.tx-ticket-area-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
  background: #fff;
  opacity: .7;
}
.tx-ticket-area-sep { color: #9ca3af; }

#form-ticket-ticket {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
}
#form-ticket-ticket h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
  color: rgb(38,38,38);
}
#ticketPriceList {
  margin-bottom: 20px;
  border-radius: 6px;
  overflow: hidden;
}
#ticketPriceList thead th { text-align: center; }
#ticketPriceList tbody td { text-align: center; }
#ticketPriceList tbody td:first-child { text-align: left; }
.fcBlue { color: rgb(2,108,223); }
.form-select.mobile-select {
  width: 90px;
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  font-size: 14px;
  background: #fff;
  color: rgb(38,38,38);
  outline: none;
  cursor: pointer;
}
.form-select.mobile-select:focus { border-color: rgb(2,108,223); }

/* Captcha section */
.tx-captcha-section {
  padding-top: 20px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tx-captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
#TicketForm_verifyCode-image {
  width: 120px;
  height: 100px;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  cursor: pointer;
  display: block;
  background: rgb(2,108,223);
}
#TicketForm_verifyCode-image:hover { opacity: .85; }

.greyInput {
  border: 1px solid #d1d5db;
  border-radius: 5px;
  padding: 7px 12px;
  font-size: 15px;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 4px;
  background: #fff;
  color: rgb(38,38,38);
  outline: none;
  width: 200px;
  min-height: 35px;
}
.greyInput:focus { border-color: rgb(2,108,223); }
.greyInput.input-error {
  border-color: #dc3545;
  background: #fff5f5;
  animation: tdshake .35s;
}

.remark-word { font-size: 12px; line-height: 1.5; margin: 0; }
.fcRed { color: #dc3545; }
.mgt-8 { margin-top: 8px; }
.mg-0  { margin: 0; }

/* Agree checkbox (Bootstrap .form-check style) */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 0 0;
  font-size: 13px;
  color: #374151;
  line-height: 1.6;
}
.form-check-input {
  width: 16px; height: 16px;
  margin-top: 2px;
  accent-color: rgb(2,108,223);
  cursor: pointer;
  flex-shrink: 0;
  border: 1px solid #d1d5db;
}
.form-check label { cursor: pointer; }
.form-check a { color: rgb(2,108,223); text-decoration: underline; }

/* Submit button row — dual buttons */
.tx-ticket-submit-row {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.tx-btn-reselect {
  background: #fff;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .12s;
  line-height: 1.4;
}
.tx-btn-reselect:hover { background: #f9fafb; }
.tx-btn-confirm {
  padding: 10px 32px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .5px;
}

/* Seat map section at bottom */
.tx-ticket-seatmap {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}
.tx-ticket-seatmap-title {
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 16px;
}
.tx-ticket-seatmap .tx-venue-svg {
  max-width: 360px;
  width: 100%;
}

/* ── Footer ────────────────────────────────────────────────────────── */
.tx-footer {
  background: rgb(31,38,45);
  color: #9ca3af;
  padding: 40px 16px 28px;
  margin-top: 0;
}
.tx-footer-inner {
  max-width: 1000px;
  margin: 0 auto;
}
.tx-footer-cols {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #374151;
}
.tx-footer-col { flex: 1; min-width: 180px; }
.tx-footer-title {
  font-size: 13px;
  font-weight: 700;
  color: #e5e7eb;
  margin-bottom: 12px;
}
.tx-footer-row {
  font-size: 12px;
  line-height: 1.8;
  color: #6b7280;
}
.tx-footer-copy {
  font-size: 11px;
  color: #4b5563;
  text-align: left;
}

/* ── Done screen (flow mode, still inside Tixcraft chrome) ─────────── */
.tx-done-wrap {
  max-width: 520px;
  margin: 40px auto;
  text-align: center;
}
.done-check {
  width: 78px; height: 78px;
  border-radius: 50%;
  background: #1f9d57;
  color: #fff;
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 26px;
  animation: tdpop .45s ease both;
}
.done-title { font-size: 27px; font-weight: 900; margin: 0 0 10px; }
.done-sub { color: #6b6b6f; font-size: 15px; margin: 0 0 34px; }
.done-time-card {
  background: #fff;
  border: 1px solid #e7e6e3;
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 14px;
}
.done-time-lbl { font-size: 13px; color: #9a9a9d; margin-bottom: 8px; }
.done-time-val {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: rgb(2,108,223);
}
.done-compare { font-size: 13px; color: #8b8b8f; margin-top: 14px; }
.done-btns { display: flex; gap: 11px; margin-top: 22px; }
.done-btn-primary {
  flex: 1;
  background: rgb(2,108,223);
  color: #fff; border: none;
  border-radius: 10px; padding: 15px;
  font-size: 15px; font-weight: 800; cursor: pointer;
  transition: filter .12s;
}
.done-btn-primary:hover { filter: brightness(1.08); }
.done-btn-sec {
  flex: 1; background: #fff;
  border: 1px solid #dededa; color: #56565a;
  border-radius: 10px; padding: 15px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background .12s;
}
.done-btn-sec:hover { background: #f5f5f4; }

/* ══════════════════════════════════════════════════════════════════════
   HOME / CAPTCHA PRACTICE — design-doc style (unchanged)
   ══════════════════════════════════════════════════════════════════════ */

/* ── Home screen ───────────────────────────────────────────────────── */
.screen-home {
  max-width: 840px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}
.home-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 3px;
  color: #2b4acb;
  font-weight: 600;
  margin-bottom: 14px;
}
.home-h1 {
  font-size: 42px; font-weight: 900;
  letter-spacing: -.5px; margin: 0 0 14px; line-height: 1.12;
}
.home-desc {
  font-size: 16px; color: #6b6b6f;
  margin: 0 0 44px; max-width: 560px; line-height: 1.7;
}
.home-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .home-cards { grid-template-columns: 1fr; } }
.home-card {
  background: #fff;
  border: 1px solid #e7e6e3;
  border-radius: 16px; padding: 30px; cursor: pointer;
  transition: border-color .18s, box-shadow .18s, transform .18s;
  display: flex; flex-direction: column; user-select: none;
}
.home-card:hover {
  border-color: #2b4acb;
  box-shadow: 0 8px 28px rgba(20,22,28,.08);
  transform: translateY(-2px);
}
.home-card-icon {
  width: 46px; height: 46px; border-radius: 11px;
  background: #eef1fe; color: #2b4acb;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900; margin-bottom: 22px;
}
.home-card-title { font-size: 21px; font-weight: 900; margin-bottom: 9px; }
.home-card-body  { font-size: 14px; color: #6b6b6f; line-height: 1.65; flex: 1; }
.home-card-cta   { margin-top: 22px; font-size: 14px; font-weight: 700; color: #2b4acb; }
.home-stats { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.stat-card {
  flex: 1; min-width: 140px;
  background: #fff; border: 1px solid #ececea;
  border-radius: 12px; padding: 18px 20px;
}
.stat-card-lbl { font-size: 12px; color: #9a9a9d; margin-bottom: 7px; }
.stat-card-val  { font-family: 'IBM Plex Mono', monospace; font-size: 26px; font-weight: 700; }

/* ── Captcha Practice screen ───────────────────────────────────────── */
.screen-captcha { max-width: 560px; margin: 0 auto; padding: 34px 24px 80px; }
.cap-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px;
}
.cap-header h2 { font-size: 24px; font-weight: 900; margin: 0; }
.cap-timer-display { font-family: 'IBM Plex Mono', monospace; font-size: 14px; color: #6b6b6f; }
.cap-timer-lbl { color: #a3a39d; margin-right: 5px; }
.cap-stats { display: flex; gap: 11px; margin-bottom: 24px; }
.cap-stat {
  flex: 1; background: #fff; border: 1px solid #ececea;
  border-radius: 11px; padding: 15px; text-align: center;
}
.cap-stat-val {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 24px; font-weight: 700; color: #2b4acb;
}
.cap-stat-val.neutral { color: #1a1c22; }
.cap-stat-lbl { font-size: 11px; color: #9a9a9d; margin-top: 4px; }
.cap-card {
  background: #fff; border: 1px solid #e7e6e3;
  border-radius: 15px; padding: 28px; text-align: center;
}
.cap-captcha-row {
  display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 18px;
}
#cap-canvas {
  border-radius: 9px; border: 1px solid #e6e6e8;
  background: rgb(2, 108, 223); display: block; width: 144px; height: 120px;
}
.cap-refresh {
  width: 42px; height: 42px; border-radius: 9px; border: 1px solid #dededa;
  background: #fff; color: #56565a; font-size: 20px;
  display: flex; align-items: center; justify-content: center; transition: background .12s;
}
.cap-refresh:hover { background: #f5f5f4; }
.cap-input {
  width: 100%; padding: 14px 16px; border-radius: 11px;
  border: 1.5px solid #dededa; background: #fafafa;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 22px; letter-spacing: 8px; font-weight: 600;
  outline: none; text-align: center; text-transform: lowercase;
  transition: border-color .15s;
}
.cap-input:focus { border-color: #2b4acb; }
.cap-feedback { height: 22px; margin-top: 11px; font-size: 14px; font-weight: 700; }
.cap-feedback.ok  { color: #1f9d57; }
.cap-feedback.bad { color: #c0392b; font-family: 'IBM Plex Mono', monospace; }
.cap-submit-btn {
  margin-top: 10px; width: 100%; background: #2b4acb; color: #fff;
  border: none; border-radius: 10px; padding: 14px; font-size: 15px; font-weight: 800;
  cursor: pointer; transition: filter .12s;
}
.cap-submit-btn:hover { filter: brightness(1.08); }
.cap-level-row {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 22px; flex-wrap: wrap;
}
.cap-level-lbl { font-size: 12px; color: #9a9a9d; margin-right: 4px; }
.level-btn { border-radius: 8px; padding: 7px 16px; font-size: 13px; font-weight: 700; transition: .12s; cursor: pointer; }
.level-btn.active   { border: 1px solid #2b4acb; background: #2b4acb; color: #fff; }
.level-btn.inactive { border: 1px solid #dededa; background: #fff; color: #6b6b6f; }
.cap-best-note { text-align: center; font-size: 12px; color: #a3a39d; margin-top: 14px; }

/* ── Responsive tweaks ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .home-h1  { font-size: 30px; }
  .table-bordered th, .table-bordered td { padding: 8px 10px; font-size: 13px; }
  .tx-container  { padding-left: 12px; padding-right: 12px; }
  #cap-canvas    { width: 120px; height: 100px; }
  .tx-area-layout { grid-template-columns: 1fr; }
  .tx-navbar-inner { padding: 0 12px; }
  .tx-search-box { display: none; }
  .tx-nav-links  { display: none; }
}

/* ══════════════════════════════════════════════════════════════════════
   ANCHOR RESETS — button-styled <a> elements
   ══════════════════════════════════════════════════════════════════════ */
a.back-btn, a.tx-exit-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
a.home-card { text-decoration: none; color: inherit; }
a.done-btn-sec, a.done-btn-primary {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Guide link on home screen ─────────────────────────────────────── */
.home-guide-link {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
}
.home-guide-link a {
  color: #56565a;
  text-decoration: none;
}
.home-guide-link a:hover { color: #2b4acb; }

/* ══════════════════════════════════════════════════════════════════════
   GUIDE PAGE — /guide/
   ══════════════════════════════════════════════════════════════════════ */
.guide-main {
  background: #f7f7f5;
  min-height: 100vh;
  padding: 40px 16px 80px;
}
.guide-container {
  max-width: 780px;
  margin: 0 auto;
}
.guide-h1 {
  font-size: 32px;
  font-weight: 900;
  color: #18181b;
  margin-bottom: 14px;
  line-height: 1.25;
}
.guide-lead {
  font-size: 16px;
  color: #56565a;
  line-height: 1.7;
  margin-bottom: 30px;
}
.guide-toc {
  background: #fff;
  border: 1px solid #e7e6e3;
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 40px;
}
.guide-toc ol { margin: 0; padding-left: 20px; }
.guide-toc li { margin-bottom: 6px; font-size: 14px; }
.guide-toc a { color: #2b4acb; text-decoration: none; }
.guide-toc a:hover { text-decoration: underline; }
.guide-section {
  background: #fff;
  border: 1px solid #e7e6e3;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
}
.guide-section h2 {
  font-size: 22px;
  font-weight: 900;
  color: #18181b;
  margin: 0 0 16px;
}
.guide-section p { font-size: 15px; color: #3d3d40; line-height: 1.75; margin-bottom: 14px; }
.guide-section p:last-child { margin-bottom: 0; }
.guide-section a { color: #2b4acb; }
.guide-steps { list-style: none; padding: 0; margin: 0; }
.guide-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.guide-step:last-child { margin-bottom: 0; }
.guide-step-num {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #eef1fe;
  color: #2b4acb;
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.guide-step-body h3 {
  font-size: 16px;
  font-weight: 800;
  color: #18181b;
  margin: 0 0 6px;
}
.guide-step-body p { font-size: 14px; color: #56565a; line-height: 1.65; margin: 0; }
.guide-step-body code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  background: #f1f0ed;
  padding: 1px 5px;
  border-radius: 4px;
  color: #374151;
}
.guide-tips { padding-left: 18px; margin: 0; }
.guide-tips li { font-size: 15px; color: #3d3d40; line-height: 1.75; margin-bottom: 12px; }
.guide-tips code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  background: #f1f0ed;
  padding: 1px 5px;
  border-radius: 4px;
  color: #374151;
}
.guide-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.guide-cta-btn {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: filter .12s;
}
.guide-cta-btn:hover { filter: brightness(1.08); }
.guide-cta-btn.guide-cta-primary { background: rgb(2,108,223); color: #fff; }
.guide-cta-btn.guide-cta-sec     { background: #fff; border: 1px solid #dededa; color: #56565a; }
/* FAQ */
.guide-faq .guide-section { padding: 0; overflow: hidden; }
.guide-faq-item {
  border-bottom: 1px solid #f0eeec;
  padding: 0;
}
.guide-faq-item:last-child { border-bottom: none; }
.guide-faq-q {
  font-size: 15px;
  font-weight: 800;
  color: #18181b;
  cursor: pointer;
  padding: 20px 28px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.guide-faq-q::before { content: '+'; font-size: 18px; color: #2b4acb; flex-shrink: 0; }
details[open] .guide-faq-q::before { content: '−'; }
.guide-faq-a {
  font-size: 14px;
  color: #56565a;
  line-height: 1.75;
  padding: 0 28px 20px 58px;
  margin: 0;
}
.guide-faq-a a { color: #2b4acb; }
@media (max-width: 640px) {
  .guide-h1 { font-size: 24px; }
  .guide-section { padding: 22px 18px; }
  .guide-faq-q  { padding: 16px 18px; }
  .guide-faq-a  { padding: 0 18px 16px 46px; }
  .guide-cta-btn { padding: 10px 16px; }
}
