/* ===========================================================================
   Customer storefront styles
   =========================================================================== */

/* ------------------------------------------------------------------ nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(250, 249, 245, 0.82);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--gold-bright), var(--gold));
  color: #18120a; font-family: var(--font-display); font-weight: 600; font-size: 21px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-size: 19px; font-weight: 500; }
.brand-tag { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-size: 14px; color: var(--text-dim); font-weight: 500; transition: color var(--t); }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--text); cursor: pointer; place-items: center; box-shadow: var(--shadow-sm); flex: none; }
.nav-toggle:hover { background: var(--surface-2); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-menu { display: none; }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-right { display: none; }
  .nav-toggle { display: grid; }
  .nav-inner { gap: 12px; }
  .brand-name { font-size: 17px; }
  .nav-menu {
    display: block; position: absolute; top: var(--nav-h); left: 0; right: 0; z-index: 79;
    background: rgba(250, 249, 245, 0.98); backdrop-filter: saturate(150%) blur(14px);
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    padding: 8px 20px 18px;
    opacity: 0; transform: translateY(-10px); pointer-events: none;
    transition: opacity var(--t) var(--ease), transform var(--t) var(--ease-out);
  }
  .nav-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-menu-link { display: block; padding: 14px 6px; font-size: 16px; font-weight: 550; color: var(--text); border-bottom: 1px solid var(--border-soft); }
  .nav-menu-link:active { color: var(--green); }
  .nav-menu-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
}

/* -------------------------------------------------------------- hero slider */
.hero-slider { position: relative; width: 100%; height: 560px; overflow: hidden; background: #eef1ec; border-bottom: 1px solid var(--border-soft); }
.hero-slider-loading { position: absolute; inset: 0; display: grid; place-items: center; }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.8s var(--ease); }
.slide.is-active { opacity: 1; visibility: visible; }
.slide-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 95% at 50% -22%, rgba(35, 154, 108, 0.16), transparent 58%),
    radial-gradient(90% 80% at 50% 122%, rgba(184, 138, 54, 0.10), transparent 60%),
    linear-gradient(180deg, #f4f7f2, #eef1ec 58%, #eae8e1);
}
.slide-bg::before {
  content: ''; position: absolute; top: 6%; left: 0; right: 0; height: 60px;
  background-image: repeating-linear-gradient(90deg, rgba(28, 129, 89, 0.16) 0 4px, transparent 4px 30px);
  filter: blur(0.5px); opacity: 0.5;
  -webkit-mask-image: radial-gradient(60% 100% at 50% 0, #000, transparent);
  mask-image: radial-gradient(60% 100% at 50% 0, #000, transparent);
}
.slide-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(46% 60% at 50% 44%, rgba(255, 255, 255, 0.5), transparent 70%); }
.slide-inner { position: relative; height: 100%; max-width: 1120px; margin: 0 auto; padding: 0 70px; display: flex; align-items: center; justify-content: center; gap: clamp(18px, 3.5vw, 48px); }
.slide-center { position: relative; z-index: 3; text-align: center; max-width: 440px; display: flex; flex-direction: column; align-items: center; }
.slide-vs { position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%); font-family: var(--font-display); font-size: 130px; font-weight: 500; color: rgba(24, 27, 33, 0.05); z-index: -1; pointer-events: none; }
.slide-title { font-size: clamp(27px, 3.8vw, 46px); color: var(--text); margin-bottom: 20px; max-width: 16ch; }
.slide-stage { margin-bottom: 14px; }
.slide-meta { display: flex; flex-direction: column; gap: 8px; margin-bottom: 26px; }
.slide-meta-row { display: inline-flex; align-items: center; gap: 8px; justify-content: center; color: var(--text-dim); font-weight: 560; font-size: 14.5px; }
.slide-meta-row svg { width: 17px; height: 17px; color: var(--green); flex: none; }
.slide-cta { background: linear-gradient(180deg, var(--green-bright), var(--green)); color: #fff; border: none; font-weight: 650; height: 50px; padding: 0 32px; box-shadow: 0 18px 40px -16px rgba(28, 129, 89, 0.5); }
.slide-cta:hover { background: linear-gradient(180deg, var(--green), var(--green-deep)); }

.flag-orb {
  width: clamp(108px, 12.5vw, 152px); height: clamp(108px, 12.5vw, 152px);
  border-radius: 50%; flex: none; z-index: 1;
  background-size: cover; background-position: center; position: relative;
  box-shadow: 0 22px 50px -20px rgba(20, 24, 18, 0.55), inset 0 0 0 2px rgba(255, 255, 255, 0.5);
}
.flag-orb::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.1) 32%, transparent 55%),
    radial-gradient(circle at 72% 78%, rgba(0, 0, 0, 0.42), transparent 55%);
}
.flag-orb-blank { background: linear-gradient(180deg, var(--surface-3), var(--surface)); display: grid; place-items: center; }
.flag-orb-blank span { font-family: var(--font-display); font-size: 34px; color: var(--text-dim); position: relative; z-index: 2; }

.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, 0.78); border: 1px solid var(--border); color: var(--text); display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); box-shadow: var(--shadow-sm); transition: background var(--t), box-shadow var(--t); }
.slider-arrow:hover { background: #fff; box-shadow: var(--shadow); }
.slider-prev { left: 22px; } .slider-next { right: 22px; }
.slider-arrow svg { width: 22px; height: 22px; }
.slider-dots { position: absolute; right: 26px; top: 50%; transform: translateY(-50%); z-index: 5; display: flex; flex-direction: column; gap: 10px; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(24, 27, 33, 0.2); border: none; cursor: pointer; padding: 0; transition: all var(--t); }
.slider-dot.is-active { background: var(--green); height: 22px; border-radius: 6px; }

.slide.is-active .slide-title { animation: slide-rise 0.7s var(--ease-out) both; }
.slide.is-active .slide-meta { animation: slide-rise 0.7s var(--ease-out) 0.1s both; }
.slide.is-active .slide-cta { animation: slide-rise 0.7s var(--ease-out) 0.18s both; }
.slide.is-active .flag-orb-home { animation: orb-in-l 0.85s var(--ease-out) both; }
.slide.is-active .flag-orb-away { animation: orb-in-r 0.85s var(--ease-out) both; }
@keyframes slide-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes orb-in-l { from { opacity: 0; transform: translateX(-34px) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes orb-in-r { from { opacity: 0; transform: translateX(34px) scale(0.9); } to { opacity: 1; transform: none; } }

/* stats strip under the slider */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 28px 24px; border-bottom: 1px solid var(--border-soft); }
.stat { display: flex; flex-direction: column; gap: 2px; align-items: center; text-align: center; }
.stat-value { font-family: var(--font-display); font-size: 34px; font-weight: 500; color: var(--gold); }
.stat-label { font-size: 12px; letter-spacing: 0.04em; }

/* -------------------------------------------------------------- sections */
.section { padding: 56px 0; }
.section-head { margin-bottom: 28px; }
.section-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); margin-top: 8px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { padding: 26px; }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.step-no { font-family: var(--font-display); font-size: 15px; color: var(--gold); letter-spacing: 0.1em; }
.step-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--gold-soft); color: var(--gold-bright); }
.step-icon svg { width: 20px; height: 20px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 14px; line-height: 1.55; }

/* ------------------------------------------------------------ match cards */
.featured-grid, .match-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.match-card {
  display: flex; flex-direction: column; gap: 16px;
  padding: 20px;
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--surface), var(--bg-grain));
  border: 1px solid var(--border-soft);
  transition: transform var(--t) var(--ease-out), border-color var(--t), box-shadow var(--t);
}
.match-card:hover { transform: translateY(-3px); border-color: var(--border); box-shadow: var(--shadow); }
.mc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mc-date { font-size: 12.5px; }
.mc-teams { display: flex; flex-direction: column; gap: 4px; }
.mc-team { font-family: var(--font-display); font-size: 22px; font-weight: 500; line-height: 1.12; }
.mc-v { font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.1em; }
.mc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border-soft); }
.mc-venue { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; min-width: 0; }
.mc-venue svg { width: 14px; height: 14px; flex: none; }
.mc-venue span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-price { font-family: var(--font-display); font-size: 18px; color: var(--gold); white-space: nowrap; }
.mc-price .faint { font-family: var(--font-sans); font-size: 12px; }

/* ----------------------------------------------------------------- filters */
.filters { padding: 18px; margin-bottom: 26px; }
.filter-row { display: flex; gap: 12px; margin-bottom: 16px; }
.search-field { position: relative; flex: 1; }
.search-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-faint); pointer-events: none; }
.search-ic svg { width: 18px; height: 18px; }
.search-field .input { padding-left: 42px; }
.filter-row .select { max-width: 280px; }
.stage-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.empty { grid-column: 1 / -1; text-align: center; padding: 50px 0; }
.match-grid.is-loading { opacity: 0.7; }

/* ---------------------------------------------------------------- match view */
.mv { padding: 28px 0 60px; }
.mv-back { display: inline-flex; align-items: center; gap: 7px; color: var(--text-dim); font-size: 13.5px; font-weight: 500; margin-bottom: 18px; transition: color var(--t); }
.mv-back:hover { color: var(--text); }
.mv-back svg { width: 16px; height: 16px; }
.mv-head { margin-bottom: 22px; }
.mv-head-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.mv-head-meta .faint { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.mv-head-meta svg { width: 15px; height: 15px; }
.mv-teams { font-size: clamp(28px, 4vw, 46px); display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.mv-teams .mv-v { font-size: 0.5em; color: var(--text-faint); font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 0.12em; }
.mv-venue { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 14px; }
.mv-venue svg { width: 15px; height: 15px; }

.mv-grid { display: grid; grid-template-columns: 1fr 366px; gap: 20px; align-items: start; }
.mv-stage { padding: 16px; overflow: hidden; }
.mv-stage.is-pay { padding: 22px; }
.stage-canvas-wrap {
  position: relative;
  height: 460px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 6%, rgba(28, 129, 89, 0.10), transparent 55%),
    linear-gradient(180deg, #fbfaf6, #eef0ea);
  border: 1px solid var(--border-soft);
}
.stadium-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.stadium-canvas:active { cursor: grabbing; }

/* legend + controls */
.legend { display: flex; flex-wrap: wrap; gap: 16px; padding: 16px 6px 6px; }
.legend-item { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-dim); }
.legend-item .faint { font-size: 12px; }
.legend-dot { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.legend-sold { background: #cdcabf; }
.scene-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 6px 0; }
.scene-hint { font-size: 12px; }

/* seat host overlay */
.seat-host { position: absolute; inset: 0; background: linear-gradient(180deg, #fbfaf6, #f1f0ea); display: flex; flex-direction: column; }
.seat-loading { flex: 1; display: grid; place-items: center; }
.seat-bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--border-soft); }
.seat-bar-title { flex: 1; font-size: 14px; }
.seat-pitch {
  margin: 14px auto 6px; padding: 5px 40px; border-radius: var(--r-pill);
  background: linear-gradient(180deg, rgba(63, 143, 120, 0.22), rgba(63, 143, 120, 0.06));
  border: 1px solid rgba(63, 143, 120, 0.32);
  color: var(--pitch); font-size: 11px; font-weight: 700; letter-spacing: 0.28em;
}
.seat-scroll { flex: 1; overflow: auto; display: grid; place-items: start center; padding: 10px 14px 18px; }
.seat-canvas { display: block; }

/* side panels */
.mv-side { position: sticky; top: calc(var(--nav-h) + 16px); display: flex; flex-direction: column; gap: 16px; }
.side-card { padding: 22px; }
.side-card h3 { font-size: 20px; margin-bottom: 10px; }
.side-card > p { font-size: 14px; line-height: 1.55; margin: 0 0 18px; }
.price-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.price-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border-soft); }
.price-row:last-child { border-bottom: none; }
.price-name { flex: 1; font-size: 14px; }
.price-val { font-family: var(--font-display); font-size: 17px; color: var(--text); }
.avail-line { font-size: 12.5px; padding-top: 6px; }

/* section picker (tap a category, pick a section) */
.cat-groups { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.cat-group { border: 1px solid var(--border-soft); border-radius: var(--r-sm); overflow: hidden; }
.cat-pick { width: 100%; display: flex; align-items: center; gap: 11px; padding: 13px 14px; background: var(--surface); border: none; cursor: pointer; text-align: left; transition: background var(--t); }
.cat-pick:hover { background: var(--surface-2); }
.cat-pick .legend-dot { width: 13px; height: 13px; flex: none; }
.cat-pick-name { flex: 1; display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.cat-pick-name strong { font-size: 14px; }
.cat-pick-sub { font-size: 11.5px; }
.cat-pick-price { font-family: var(--font-display); font-size: 16px; color: var(--gold); }
.cat-pick-chev { color: var(--text-faint); display: grid; place-items: center; transition: transform var(--t); }
.cat-pick-chev svg { width: 18px; height: 18px; }
.cat-pick.is-open .cat-pick-chev { transform: rotate(90deg); }
.sec-pick-list { display: flex; flex-direction: column; max-height: 244px; overflow-y: auto; border-top: 1px solid var(--border-soft); background: var(--bg-grain); }
.sec-pick { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: transparent; border: none; border-bottom: 1px solid var(--border-soft); cursor: pointer; text-align: left; transition: background var(--t); }
.sec-pick:last-child { border-bottom: none; }
.sec-pick:hover { background: var(--surface-2); }
.sec-pick-name { font-size: 13.5px; font-weight: 550; white-space: nowrap; }
.sec-pick-stand { flex: 1; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sec-pick-avail { font-size: 12px; color: var(--green-deep); font-weight: 600; white-space: nowrap; }

/* seat map sub-bar + available-only filter + mini legend */
.seat-subbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px 0; }
.seat-count { font-size: 12.5px; }
.seat-filter { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--border); color: var(--text-dim); font-size: 12.5px; font-weight: 560; cursor: pointer; box-shadow: var(--shadow-sm); transition: all var(--t); }
.seat-filter svg { width: 14px; height: 14px; opacity: 0; transition: opacity var(--t); }
.seat-filter.is-on { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 8px 18px -10px rgba(28,129,89,0.6); }
.seat-filter.is-on svg { opacity: 1; }
.seat-mini-legend { display: flex; gap: 16px; justify-content: center; padding: 6px 14px 14px; flex-wrap: wrap; }
.mini-swatch { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-dim); }
.mini-dot { width: 11px; height: 11px; border-radius: 3px; }

/* checkout: alternative payment routes to support */
.pay-alt { display: flex; align-items: center; gap: 9px; width: 100%; margin-top: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--green-soft); border: 1px solid var(--green-line); color: var(--green-deep); font-size: 13px; font-weight: 550; line-height: 1.35; cursor: pointer; text-align: left; transition: background var(--t); }
.pay-alt:hover { background: rgba(28, 129, 89, 0.16); }
.pay-alt svg { width: 18px; height: 18px; flex: none; }

.side-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.side-sec-head h3 { margin: 0; }
.seat-list { display: flex; flex-direction: column; gap: 8px; max-height: 240px; overflow: auto; margin-bottom: 16px; }
.seat-tag { display: flex; align-items: center; justify-content: space-between; padding: 10px 13px; background: var(--bg-grain); border: 1px solid var(--border-soft); border-radius: var(--r-sm); font-size: 13.5px; }
.side-total { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; margin-bottom: 14px; border-top: 1px solid var(--border); }
.side-total strong { font-family: var(--font-display); font-size: 24px; }
.side-link { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 13px; padding: 0; margin-bottom: 14px; }
.side-link:hover { color: var(--text); }
.side-link svg { width: 15px; height: 15px; }

.order-summary { margin: 6px 0 16px; padding: 16px; background: var(--bg-grain); border-radius: var(--r-sm); border: 1px solid var(--border-soft); }
.os-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 5px 0; }
.os-row span:last-child { text-align: right; }
.os-total { border-top: 1px solid var(--border-soft); margin-top: 6px; padding-top: 12px; }
.os-total strong { font-size: 17px; }
.pay-fine { font-size: 12px; margin: 14px 0 0; line-height: 1.5; }

/* ---------------------------------------------------------------- payment */
.pay-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.pay-head h3 { font-size: 21px; }
.pay-grid { display: grid; grid-template-columns: 230px 1fr; gap: 26px; align-items: start; }
.pay-left { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.pay-qr { padding: 12px; background: #f4f2ec; border-radius: var(--r-sm); line-height: 0; }
.qr-canvas { display: block; border-radius: 4px; }
.pay-amount { font-family: var(--font-display); font-size: 18px; }
.pay-right { display: flex; flex-direction: column; gap: 14px; }
.pay-address { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--bg-grain); border: 1px solid var(--border); border-radius: var(--r-sm); }
.pay-address code { flex: 1; font-size: 12.5px; word-break: break-all; color: var(--text-dim); }
.pay-status { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-dim); padding: 4px 2px; }
.pay-note { display: flex; gap: 10px; padding: 14px; border-radius: var(--r-sm); background: rgba(217, 164, 65, 0.08); border: 1px solid rgba(217, 164, 65, 0.22); font-size: 13px; line-height: 1.5; color: var(--text-dim); }
.pay-note svg { width: 18px; height: 18px; color: var(--warn); flex: none; }

/* ----------------------------------------------------------------- ticket */
.ticket {
  display: grid; grid-template-columns: 1fr 188px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--green);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ticket-main { padding: 26px 28px; }
.ticket-kicker { margin-bottom: 8px; }
.ticket-teams { font-family: var(--font-display); font-size: 26px; font-weight: 500; margin-bottom: 22px; }
.ticket-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.tf { display: flex; flex-direction: column; gap: 2px; }
.tf-k { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.tf-v { font-size: 14px; font-weight: 500; }
.ticket-stub {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 22px 18px;
  background: repeating-linear-gradient(45deg, #f4f7f3, #f4f7f3 8px, #edf1ec 8px, #edf1ec 16px);
  border-left: 2px dashed var(--border);
}
.ticket-stub .qr-canvas { width: 120px; height: 120px; }
.ticket-ref { font-size: 15px; letter-spacing: 0.12em; color: var(--green-deep); font-weight: 600; }

.success-card { text-align: center; }
.success-ic { width: 56px; height: 56px; margin: 4px auto 14px; display: grid; place-items: center; border-radius: 50%; background: rgba(76, 179, 138, 0.14); color: var(--ok); }
.success-ic svg { width: 28px; height: 28px; }
.success-card h3 { font-size: 22px; }
.success-card p { margin: 10px 0 20px; }

/* --------------------------------------------------------------- tickets view */
.lookup { padding: 20px; margin-bottom: 24px; }
.lookup-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lookup .field { margin-bottom: 16px; }
.ticket-list { display: flex; flex-direction: column; gap: 22px; }
.ticket-result { display: flex; flex-direction: column; gap: 12px; }
.tr-head { display: flex; align-items: center; justify-content: space-between; }
.tr-resume { padding: 20px; }

/* --------------------------------------------------------------- tooltip */
.scene-tooltip {
  position: fixed; z-index: 200; pointer-events: none;
  min-width: 168px; padding: 11px 13px;
  background: rgba(255, 255, 255, 0.98); border: 1px solid var(--border);
  border-radius: var(--r-sm); box-shadow: var(--shadow);
  font-size: 13px; color: var(--text);
}
.tt-title { font-weight: 600; margin-bottom: 5px; }
.tt-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 12.5px; }
.tt-price { color: var(--green-deep); font-weight: 700; }

/* --------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--border-soft); margin-top: 40px; padding: 48px 0 30px; background: var(--bg-grain); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; padding-bottom: 32px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { max-width: 38ch; font-size: 13.5px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-family: var(--font-sans); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; margin-bottom: 4px; }
.footer-col a, .footer-col span { font-size: 13.5px; color: var(--text-dim); transition: color var(--t); }
.footer-col a:hover { color: var(--green); }
.footer-base { display: flex; align-items: center; justify-content: space-between; padding-top: 26px; border-top: 1px solid var(--border-soft); font-size: 12.5px; }

/* --------------------------------------------------------------- support */
.support-launcher {
  position: fixed; bottom: 24px; right: 24px; z-index: 300;
  display: inline-flex; align-items: center; gap: 9px;
  height: 50px; padding: 0 20px 0 18px;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, var(--green-bright), var(--green)); color: #fff;
  border: none; font-weight: 650; font-size: 14px; cursor: pointer;
  box-shadow: 0 16px 32px -10px rgba(28, 129, 89, 0.55);
  transition: transform var(--t) var(--ease-out), opacity var(--t);
}
.support-launcher:hover { transform: translateY(-2px); }
.support-launcher svg { width: 19px; height: 19px; }
.support-launcher.is-hidden { opacity: 0; pointer-events: none; transform: scale(0.9); }

.support-panel {
  position: fixed; bottom: 24px; right: 24px; z-index: 301;
  width: 380px; max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 48px);
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(16px) scale(0.98); pointer-events: none;
  transition: opacity var(--t) var(--ease-out), transform var(--t) var(--ease-out);
}
.support-panel.is-open { opacity: 1; transform: none; pointer-events: auto; }
.support-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border-soft); }
.support-title { font-family: var(--font-display); font-size: 18px; }
.support-sub { font-size: 12px; margin-top: 2px; }
.support-x { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: transparent; border: none; color: var(--text-dim); cursor: pointer; transition: background var(--t), color var(--t); }
.support-x:hover { background: var(--surface-3); color: var(--text); }
.support-x svg { width: 18px; height: 18px; }
.support-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.support-start { padding: 20px; }
.support-thread { flex: 1; overflow-y: auto; padding: 18px 18px 6px; display: flex; flex-direction: column; gap: 12px; }
.support-msg { display: flex; flex-direction: column; gap: 3px; max-width: 82%; }
.support-msg-user { align-self: flex-end; align-items: flex-end; }
.support-msg-admin { align-self: flex-start; }
.support-bubble { padding: 10px 13px; border-radius: 13px; font-size: 13.5px; line-height: 1.45; }
.support-msg-user .support-bubble { background: linear-gradient(180deg, var(--green-bright), var(--green)); color: #fff; border-bottom-right-radius: 4px; }
.support-msg-admin .support-bubble { background: var(--surface-2); color: var(--text); border-bottom-left-radius: 4px; }
.support-meta { font-size: 10.5px; padding: 0 4px; }
.support-composer { display: flex; align-items: flex-end; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border-soft); }
.support-input { flex: 1; resize: none; max-height: 96px; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; color: var(--text); outline: none; line-height: 1.4; font-size: 13.5px; }
.support-input:focus { border-color: var(--green-line); }
.support-send { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(180deg, var(--green-bright), var(--green)); color: #fff; border: none; cursor: pointer; }
.support-send svg { width: 18px; height: 18px; }
.support-reset { background: none; border: none; color: var(--text-faint); font-size: 11.5px; cursor: pointer; padding: 0 0 12px; }
.support-reset:hover { color: var(--text-dim); }

.auth-switch { text-align: center; font-size: 13px; margin: 16px 0 4px; }
.auth-switch a { color: var(--green); }
.auth-admin { text-align: center; font-size: 12.5px; margin: 4px 0 0; }
.auth-admin a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 2px; }
.auth-admin a:hover { color: var(--text); }
.nav-account { display: flex; }

/* match already played */
.ended-notice { max-width: 520px; margin: 10px auto 0; padding: 40px 32px; text-align: center; }
.ended-ic { width: 56px; height: 56px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 14px; background: var(--surface-3); color: var(--text-dim); }
.ended-ic svg { width: 26px; height: 26px; }
.ended-notice h3 { font-size: 22px; margin-bottom: 10px; }
.ended-notice p { margin: 0 auto 22px; max-width: 42ch; }

/* login-required gate (My Tickets) */
.gate { max-width: 460px; margin: 0 auto; padding: 40px 32px; text-align: center; }
.gate-ic { width: 56px; height: 56px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 14px; background: var(--gold-soft); color: var(--gold-bright); }
.gate-ic svg { width: 28px; height: 28px; }
.gate h3 { font-size: 22px; margin-bottom: 10px; }
.gate p { margin: 0 auto 22px; max-width: 40ch; }
.gate-cta { display: flex; gap: 10px; justify-content: center; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1024px) {
  .hero-slider { height: 540px; }
  .slide-inner { flex-direction: column; gap: 12px; padding: 36px 24px; }
  .flag-orb { width: 100px; height: 100px; }
  .slide-center { order: 0; margin: 4px 0; max-width: 92%; }
  .slide-vs { font-size: 92px; top: 50%; }
  .slider-dots { right: 12px; }
}
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr; }
  .featured-grid, .match-grid { grid-template-columns: repeat(2, 1fr); }
  .mv-grid { grid-template-columns: 1fr; }
  .mv-side { position: static; }
  .pay-grid { grid-template-columns: 1fr; }
  .pay-left { margin-bottom: 8px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .nav-links { display: none; }
  .brand-tag { display: none; }
  .hero-slider { height: 500px; }
  .slide-title { font-size: 23px; }
  .slider-arrow { width: 38px; height: 38px; }
  .slider-prev { left: 8px; } .slider-next { right: 8px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .featured-grid, .match-grid { grid-template-columns: 1fr; }
  .filter-row { flex-direction: column; }
  .filter-row .select { max-width: none; }
  .ticket { grid-template-columns: 1fr; }
  .ticket-stub { border-left: none; border-top: 2px dashed var(--border); flex-direction: row; }
  .lookup-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .support-panel { bottom: 0; right: 0; width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; }

  /* tighter stadium + seat map on phones */
  .mv-stage { padding: 10px; }
  .stage-canvas-wrap { height: 340px; }
  .scene-controls { flex-direction: column; align-items: stretch; gap: 8px; }
  .scene-controls .btn { width: 100%; }
  .legend { gap: 10px 14px; }
  .seat-bar { flex-wrap: wrap; }
  .seat-bar-title { order: 3; flex-basis: 100%; }
  .seat-scroll { padding: 8px 8px 14px; }
  .pay-grid { gap: 18px; }
}
