/* =========================================================
   ZoomSho — Modern VIP ticketing UI
   ========================================================= */

:root {
  --bg: #0a0a0f;
  --bg-2: #0f0f16;
  --surface: #14141d;
  --surface-2: #1b1b27;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f4f2;
  --muted: #9b9aab;
  --gold: #d9b26f;
  --gold-2: #f6dfa8;
  --gold-3: #b88b45;
  --gold-grad: linear-gradient(135deg, #f6dfa8 0%, #d9b26f 45%, #b88b45 100%);
  --success: #4ade80;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.35; font-weight: 800; }
p { margin: 0; }
::selection { background: var(--gold); color: #111; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 32px); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
}
.btn:active { transform: scale(.97); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--gold {
  background: var(--gold-grad);
  color: #1a1206;
  box-shadow: 0 10px 30px -10px rgba(217, 178, 111, .6);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(217, 178, 111, .75); }
.btn--ghost { background: rgba(255,255,255,.04); border-color: var(--border-strong); }
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); }
.btn--dark { background: #111; color: var(--gold-2); }
.btn--dark:hover { background: #000; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(10, 10, 15, .72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-color: var(--border);
}
.header__inner { display: flex; align-items: center; gap: 32px; height: 76px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.logo__mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--gold-grad);
  color: #1a1206;
}
.logo__mark svg { width: 22px; height: 22px; }
.logo__text b { margin-inline-start: 4px; color: var(--gold); }

.nav { display: flex; gap: 6px; margin-inline-start: auto; }
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }

.header__actions { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border-strong); background: transparent; position: relative; }
.burger span { position: absolute; right: 11px; left: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), top .3s; }
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 24px; }
.burger.is-open span:first-child { top: 20px; transform: rotate(45deg); }
.burger.is-open span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 60px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto;
  height: 900px;
  background:
    radial-gradient(600px 400px at 75% 30%, rgba(217,178,111,.18), transparent 70%),
    radial-gradient(500px 400px at 15% 20%, rgba(120,90,255,.14), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,.03);
  font-size: 13px; color: var(--gold-2);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(217,178,111,.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(217,178,111,0); } }

.hero h1 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 900; margin: 22px 0 18px; letter-spacing: -.5px; }
.hero__lead { font-size: 17px; color: var(--muted); max-width: 540px; }

.search {
  display: flex; gap: 8px;
  margin-top: 34px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  max-width: 600px;
}
.search__field { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 16px; min-width: 0; }
.search__field--select { flex: 0 0 160px; border-inline-start: 1px solid var(--border); }
.search__field svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input, .search select { width: 100%; background: transparent; border: 0; outline: 0; height: 44px; }
.search input::placeholder { color: #6f6e80; }
.search select { appearance: none; cursor: pointer; }
.search select option { background: var(--surface); }

.stats { display: flex; gap: 44px; margin-top: 44px; }
.stats div { display: flex; flex-direction: column; }
.stats b { font-size: 30px; font-weight: 900; }
.stats span { color: var(--muted); font-size: 13px; }

/* Featured ticket card */
.hero__visual { position: relative; display: flex; justify-content: center; }
.ticket-card {
  position: relative;
  width: min(400px, 100%);
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(30,30,44,.9), rgba(18,18,26,.95));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.06);
  transform: rotate(-2deg);
  transition: transform .6s var(--ease);
}
.ticket-card:hover { transform: rotate(0) translateY(-6px); }
.ticket-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.ticket-card__cat { font-size: 13px; color: var(--muted); }
.ticket-card__art {
  position: relative;
  height: 190px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #2a1f4a, #120e22);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.orb { position: absolute; border-radius: 50%; filter: blur(30px); }
.orb--1 { width: 180px; height: 180px; background: #d9b26f; opacity: .55; top: -40px; right: -30px; animation: drift 8s ease-in-out infinite; }
.orb--2 { width: 160px; height: 160px; background: #7b5cff; opacity: .55; bottom: -50px; left: -20px; animation: drift 10s ease-in-out infinite reverse; }
@keyframes drift { 50% { transform: translate(-20px, 20px) scale(1.1); } }
.ticket-card__icon { position: relative; width: 72px; height: 72px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.ticket-card h3 { font-size: 22px; }
.ticket-card > .muted { font-size: 14px; margin-top: 4px; }

.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.countdown div { text-align: center; padding: 10px 0; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--border); }
.countdown b { display: block; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 11px; color: var(--muted); }

.ticket-card__cut { position: relative; margin: 20px -22px; border-top: 2px dashed var(--border-strong); }
.ticket-card__cut::before, .ticket-card__cut::after {
  content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg);
  border: 1px solid var(--border-strong);
}
.ticket-card__cut::before { right: -12px; }
.ticket-card__cut::after { left: -12px; }
.ticket-card__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.price { display: block; font-size: 20px; font-weight: 800; }
.price small { font-size: 12px; color: var(--muted); font-weight: 500; }

.float-chip {
  position: absolute;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(20,20,29,.85);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px);
  font-size: 13px; font-weight: 600;
  box-shadow: 0 20px 40px -15px rgba(0,0,0,.6);
  animation: float 6s ease-in-out infinite;
}
.float-chip svg { width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.float-chip--a { top: 12%; left: -4%; }
.float-chip--b { bottom: 14%; right: -6%; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-12px); } }

.badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge--gold { background: rgba(217,178,111,.14); color: var(--gold-2); border: 1px solid rgba(217,178,111,.3); }

.trust { position: relative; z-index: 1; display: flex; align-items: center; gap: 30px; margin-top: 80px; padding-top: 30px; border-top: 1px solid var(--border); }
.trust > span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.trust__logos { display: flex; flex-wrap: wrap; gap: 14px 44px; }
.trust__logos b { font-weight: 800; font-size: 17px; color: #5d5c6c; transition: color .2s; }
.trust__logos b:hover { color: var(--text); }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section__head--center { flex-direction: column; align-items: center; text-align: center; }
.section__head--center .muted { max-width: 520px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: var(--gold); margin-bottom: 10px; letter-spacing: .3px; }
.section h2 { font-size: clamp(26px, 3.4vw, 40px); }

/* ---------- Chips ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 40px; padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--muted);
  font-weight: 600; font-size: 14px;
  transition: all .2s;
}
.chip:hover { color: var(--text); border-color: rgba(255,255,255,.3); }
.chip.is-active { background: var(--text); color: #111; border-color: var(--text); }

/* ---------- Event cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative;
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease);
  animation: rise .6s var(--ease) both;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }

.card__art {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  overflow: hidden;
}
.card__art::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.25), transparent 50%);
  mix-blend-mode: overlay;
}
.card__art svg, .art-icon { position: relative; width: 64px; height: 64px; fill: none; stroke: rgba(255,255,255,.92); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease); }
.card:hover .card__art svg, .art-icon { transform: scale(1.12) rotate(-4deg); }
.card__date {
  position: absolute; top: 14px; right: 14px;
  display: flex; flex-direction: column; align-items: center;
  min-width: 56px; padding: 6px 10px;
  border-radius: 14px;
  background: rgba(10,10,15,.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12);
  line-height: 1.3;
}
.card__date b { font-size: 20px; font-weight: 900; }
.card__date span { font-size: 11px; color: #d8d6e0; }
.card__tag { position: absolute; bottom: 14px; right: 14px; }
.card__fav {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(10,10,15,.5); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12);
  transition: transform .2s;
}
.card__fav:hover { transform: scale(1.1); }
.card__fav svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; }
.card__fav.is-on svg { fill: #ff5d7a; stroke: #ff5d7a; }

.card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__body h3 { font-size: 18px; }
.card__meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.card__meta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
.card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); margin-top: 14px; }
.card__foot .price { font-size: 17px; }
.seats { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #fca5a5; margin-top: 2px; }
.seats::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.seats--ok { color: #86efac; }

.empty { text-align: center; padding: 60px 0; display: grid; gap: 16px; justify-items: center; color: var(--muted); }
.empty[hidden] { display: none; }

/* ---------- Tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.tier {
  position: relative;
  padding: 34px 30px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 24px;
  transition: transform .4s var(--ease), border-color .3s;
}
.tier:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.tier--featured {
  background:
    linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
    var(--gold-grad) border-box;
  border: 1px solid transparent;
  box-shadow: 0 30px 80px -30px rgba(217,178,111,.35);
}
.tier__ribbon {
  position: absolute; top: -13px; right: 50%; transform: translateX(50%);
  padding: 4px 16px; border-radius: 999px;
  background: var(--gold-grad); color: #1a1206;
  font-size: 12px; font-weight: 800;
}
.tier__head h3 { font-family: system-ui, sans-serif; font-size: 26px; letter-spacing: .5px; margin: 14px 0 4px; }
.tier__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; font-size: 22px; }
.tier__icon--gold { background: rgba(217,178,111,.12); color: var(--gold); }
.tier__icon--plat { background: rgba(200,210,230,.12); color: #dfe6f2; }
.tier__icon--diam { background: rgba(125,211,252,.12); color: #7dd3fc; }
.tier__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tier__list li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.tier__list li::before {
  content: "✓"; flex: none;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 900;
  background: rgba(74,222,128,.12); color: var(--success);
}
.tier__list li.is-off { color: #5d5c6c; text-decoration: line-through; }
.tier__list li.is-off::before { content: "–"; background: rgba(255,255,255,.04); color: #5d5c6c; }
.tier__foot { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--border); }
.tier__foot strong { font-size: 26px; font-weight: 900; }

/* ---------- Benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefit {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), transparent);
  border: 1px solid var(--border);
  transition: border-color .3s, transform .4s var(--ease);
}
.benefit:hover { border-color: rgba(217,178,111,.35); transform: translateY(-4px); }
.benefit__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 16px;
  background: rgba(217,178,111,.1);
  border: 1px solid rgba(217,178,111,.2);
  margin-bottom: 20px;
}
.benefit__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.benefit h4 { font-size: 17px; margin-bottom: 8px; }
.benefit p { font-size: 14px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; }
.steps__intro h2 { margin-bottom: 14px; }
.steps__intro .btn { margin-top: 28px; }
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps__list li {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color .3s;
}
.steps__list li:hover { border-color: var(--border-strong); }
.steps__list li > span {
  flex: none;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--gold-grad); color: #1a1206;
  font-weight: 900; font-size: 18px;
}
.steps__list h4 { font-size: 16px; margin-bottom: 2px; }
.steps__list p { font-size: 14px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color .3s;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 700;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.05);
  font-size: 18px; color: var(--gold);
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); font-size: 14px; }

/* ---------- CTA ---------- */
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  margin: 20px 0 110px;
  padding: 48px 56px;
  border-radius: 28px;
  background: var(--gold-grad);
  color: #1a1206;
  position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%;
  border: 60px solid rgba(255,255,255,.15);
  left: -120px; top: -180px;
}
.cta > * { position: relative; }
.cta h2 { font-size: clamp(22px, 2.6vw, 30px); }
.cta p { opacity: .75; margin-top: 6px; }
.cta__form { display: flex; gap: 8px; padding: 6px; background: rgba(255,255,255,.35); border-radius: 999px; flex: 0 1 440px; }
.cta__form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 18px; color: #1a1206; }
.cta__form input::placeholder { color: rgba(26,18,6,.55); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding-top: 60px; background: var(--bg-2); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__grid > div { display: flex; flex-direction: column; gap: 10px; }
.footer__grid > div:first-child p { max-width: 300px; font-size: 14px; margin-top: 8px; }
.footer h5 { font-size: 15px; margin-bottom: 6px; }
.footer__grid a:not(.logo) { color: var(--muted); font-size: 14px; transition: color .2s; }
.footer__grid a:not(.logo):hover { color: var(--gold); }
.footer__bottom { margin-top: 50px; padding: 22px 0; border-top: 1px solid var(--border); color: #5d5c6c; font-size: 13px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.65); backdrop-filter: blur(8px); opacity: 0; transition: opacity .3s; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__panel {
  position: relative;
  width: min(480px, 100%);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 28px;
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(24px) scale(.97);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__close {
  position: absolute; top: 18px; left: 18px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: transparent;
  color: var(--muted); z-index: 2;
}
.modal__close:hover { color: var(--text); background: rgba(255,255,255,.05); }
.modal__step { display: none; }
.modal__step.is-active { display: block; animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateX(-12px); } }
.modal__step h3 { font-size: 20px; margin-bottom: 4px; }

.modal__event { display: flex; gap: 14px; align-items: center; padding-left: 40px; margin-bottom: 24px; }
.modal__event .thumb { width: 64px; height: 64px; border-radius: 16px; flex: none; display: grid; place-items: center; }
.modal__event .thumb svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.modal__event h3 { font-size: 18px; }
.modal__event p { font-size: 13px; }
.modal__label { font-size: 14px; margin-bottom: 12px; color: var(--muted); font-weight: 600; }

.tier-options { display: grid; gap: 10px; }
.tier-opt {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,.02);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.tier-opt:hover { border-color: rgba(255,255,255,.25); }
.tier-opt input { display: none; }
.tier-opt__radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-strong); flex: none; transition: all .2s; }
.tier-opt__name { font-weight: 800; font-family: system-ui, sans-serif; }
.tier-opt__desc { font-size: 12px; color: var(--muted); }
.tier-opt__price { margin-inline-start: auto; font-weight: 800; white-space: nowrap; font-size: 15px; }
.tier-opt.is-checked { border-color: var(--gold); background: rgba(217,178,111,.07); }
.tier-opt.is-checked .tier-opt__radio { border-color: var(--gold); border-width: 6px; }
.tier-opt.is-soldout { opacity: .45; pointer-events: none; }

.qty { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 16px; }
.qty__ctrl { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--border-strong); }
.qty__ctrl button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.06); font-size: 18px; }
.qty__ctrl button:hover { background: rgba(255,255,255,.12); }
.qty__ctrl b { min-width: 32px; text-align: center; }

.summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px; margin-bottom: 16px;
  border-radius: 16px;
  background: rgba(217,178,111,.08);
  border: 1px dashed rgba(217,178,111,.35);
}
.summary span { color: var(--muted); font-size: 14px; }
.summary strong { font-size: 20px; color: var(--gold-2); }
.summary--compact { margin: 20px 0; }
.summary--compact strong { font-size: 17px; }

.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 16px; }
.field input, .field textarea, .field select { width: 100%; min-width: 0; box-sizing: border-box; }
.field span { font-size: 13px; color: var(--muted); font-weight: 600; }
.field input {
  height: 50px; padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,.03);
  outline: 0;
  transition: border-color .2s, box-shadow .2s;
}
.field input[dir="ltr"] { text-align: left; }
.field input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217,178,111,.15); }
.field input::placeholder { color: #5d5c6c; }
.modal__actions { display: flex; gap: 10px; }
.modal__actions .btn--gold { flex: 1; }

.success { text-align: center; display: grid; justify-items: center; gap: 6px; padding-top: 10px; }
.success__check {
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(74,222,128,.12);
  margin-bottom: 10px;
  animation: pop .5s var(--ease);
}
.success__check svg { width: 34px; height: 34px; fill: none; stroke: var(--success); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .2s var(--ease) forwards; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

.e-ticket {
  width: 100%;
  display: flex; gap: 16px; align-items: center;
  margin: 20px 0;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #20202d, #16161f);
  border: 1px solid var(--border-strong);
  text-align: right;
}
.e-ticket__qr { width: 86px; height: 86px; flex: none; padding: 6px; border-radius: 10px; background: #fff; }
.e-ticket__qr svg { width: 100%; height: 100%; }
.e-ticket h4 { font-size: 15px; }
.e-ticket p { font-size: 12px; color: var(--muted); }
.e-ticket code { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--gold-2); letter-spacing: 1px; direction: ltr; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translate(-50%, 120px);
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--text); color: #111;
  font-weight: 700; font-size: 14px;
  z-index: 200;
  transition: transform .4s var(--ease);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,.5);
}
.toast.is-show { transform: translate(-50%, 0); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 70px; }
  .hero__content { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero__lead { margin-inline: auto; }
  .search { width: 100%; }
  .stats { justify-content: center; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .tiers { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; gap: 30px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; gap: 4px;
    padding: 16px;
    background: rgba(10,10,15,.96);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: all .3s var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 16px; border-radius: 12px; }
  .burger { display: block; }
  .header__actions { margin-inline-start: auto; }
  .header.menu-open { background: rgba(10,10,15,.96); }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  .hero { padding-top: 120px; }
  .search { flex-direction: column; border-radius: 22px; }
  .search__field { padding: 0 12px; }
  .search__field--select { flex: none; border-inline-start: 0; border-top: 1px solid var(--border); }
  .search .btn { width: 100%; }
  .stats { gap: 28px; }
  .stats b { font-size: 24px; }
  .float-chip { display: none; }
  .ticket-card { transform: none; }
  .trust { flex-direction: column; align-items: center; text-align: center; gap: 16px; margin-top: 60px; }
  .trust__logos { justify-content: center; gap: 10px 24px; }
  .trust__logos b { font-size: 14px; }
  .section { padding: 80px 0; }
  .grid, .benefits { grid-template-columns: 1fr; }
  .chips { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: none; }
  .chip { flex: none; }
  .cta { flex-direction: column; align-items: stretch; padding: 36px 24px; text-align: center; }
  .cta__form { flex: none; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .modal__panel { padding: 22px; }
  .modal__actions { flex-direction: column-reverse; }
  #loginBtn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   v2 — multi-page app styles
   ========================================================= */
.btn .i, .i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn:disabled, .btn.is-disabled { opacity: .45; pointer-events: none; box-shadow: none; }
.link { background: none; border: 0; padding: 0; color: var(--gold); font-weight: 600; cursor: pointer; text-decoration: none; }
.link:hover { text-decoration: underline; }
#accountBtn.is-user { border-color: rgba(217,178,111,.4); color: var(--gold-2); }
.nav__admin { color: var(--gold) !important; }
.card h3 a:hover { color: var(--gold-2); }
.card__art { color: inherit; }
.ticket-card__art .art-icon { position: relative; width: 72px; height: 72px; stroke-width: 3; }
.ticket-card.is-loading .countdown, .ticket-card.is-loading .ticket-card__bottom { opacity: .4; }
.hot { color: #fca5a5; font-weight: 700; }

/* skeletons & loaders */
.skeleton { display: inline-block; height: 1em; border-radius: 8px; background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.12), rgba(255,255,255,.05)); background-size: 200% 100%; animation: shimmer 1.4s infinite; vertical-align: middle; }
.ev-desc .skeleton { display: block; margin-bottom: 10px; }
.card--skeleton { min-height: 400px; background: linear-gradient(90deg, var(--surface), var(--surface-2), var(--surface)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.page-loader { display: grid; place-items: center; padding: 80px 0; }
.page-loader span { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--border-strong); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.page { min-height: 70vh; padding-top: 76px; }

/* toast variants */
.toast[data-type="error"] { background: #fecaca; color: #7f1d1d; }

/* forms */
.field__error { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.3); color: #fca5a5; font-size: 13px; }
.dev-hint { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: rgba(125,211,252,.08); border: 1px dashed rgba(125,211,252,.35); color: #bae6fd; font-size: 13px; }
.dev-hint b { font-size: 16px; letter-spacing: 3px; }
.otp .btn--block { margin-top: 18px; }
.otp__sent { font-size: 14px; color: var(--muted); }
.otp__sent b { color: var(--text); }
.otp__code { text-align: center !important; font-size: 26px; letter-spacing: 12px; text-indent: 12px; direction: ltr; font-weight: 800; height: 60px !important; }
.otp__resend, .otp__note { text-align: center; margin-top: 14px; }
.secure-note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 14px; }
select.input, .input { height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border-strong); background: rgba(255,255,255,.03); outline: 0; color: var(--text); }
textarea.input { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.8; }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217,178,111,.15); }
select.input option { background: var(--surface); }
.field textarea, .field select { min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--border-strong); background: rgba(255,255,255,.03); outline: 0; }

/* stepper (booking modal) */
.stepper { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 22px; counter-reset: st; }
.stepper li { flex: 1; font-size: 12px; color: var(--muted); padding-top: 10px; border-top: 3px solid var(--border-strong); counter-increment: st; transition: all .3s; }
.stepper li::before { content: counter(st, persian) ". "; }
.stepper li.is-active { color: var(--gold-2); border-color: var(--gold); font-weight: 700; }
.stepper li.is-done { color: var(--text); border-color: rgba(217,178,111,.5); }
.modal__event .thumb { color: #fff; }
.modal__event .thumb .art-icon { width: 30px; height: 30px; }

/* status pills */
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--ok { background: rgba(74,222,128,.1); color: #86efac; }
.status--warn { background: rgba(251,191,36,.1); color: #fcd34d; }
.status--bad { background: rgba(248,113,113,.1); color: #fca5a5; }
.status--muted { background: rgba(255,255,255,.06); color: var(--muted); }

/* state pages (404, not found) */
.state-page { min-height: 70vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 14px; padding: 140px 0 80px; }
.state-page h1 { font-size: clamp(22px, 3vw, 32px); }
.state-page__icon { width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; background: rgba(217,178,111,.1); border: 1px solid rgba(217,178,111,.25); }
.state-page__icon svg { width: 40px; height: 40px; fill: none; stroke: var(--gold); stroke-width: 1.8; }
.state-page__icon--big { width: auto; height: auto; padding: 10px 28px; font-size: 64px; font-weight: 900; background: none; border: 0; }
.state-page__icon--big { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; transition: color .2s; }
.back-link:hover { color: var(--text); }
.back-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------- Event page ---------- */
.ev-hero { position: relative; padding: 120px 0 56px; overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; }
.ev-hero__bg { position: absolute; inset: 0; display: grid; place-items: center; }
.ev-hero__bg .art-icon { width: 160px; height: 160px; opacity: .25; stroke-width: 2; }
.ev-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,15,.35) 0%, rgba(10,10,15,.55) 50%, var(--bg) 100%); }
.ev-hero__inner { position: relative; z-index: 1; width: min(1200px, 100% - 32px); }
.ev-hero__content { margin-top: 40px; display: grid; gap: 14px; justify-items: start; }
.ev-hero h1 { font-size: clamp(30px, 4.6vw, 54px); font-weight: 900; }
.ev-hero__meta { display: flex; flex-wrap: wrap; gap: 10px 24px; color: #d8d6e0; }
.ev-hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.ev-hero__meta svg { width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 2; }

.ev-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; padding-bottom: 80px; }
.ev-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 36px; }
.fact { display: grid; gap: 2px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.fact svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 2; margin-bottom: 8px; }
.fact b { font-size: 15px; }
.ev-block { margin-bottom: 40px; }
.ev-block h2 { font-size: 22px; margin-bottom: 16px; }
.ev-desc { color: #c9c8d4; font-size: 15.5px; line-height: 2.1; white-space: pre-line; }
.ev-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.ev-tier { display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.ev-tier.is-featured { border-color: rgba(217,178,111,.45); background: linear-gradient(180deg, rgba(217,178,111,.07), var(--surface)); }
.ev-tier__head h3 { font-family: system-ui, sans-serif; font-size: 20px; }
.ev-tier__head strong { color: var(--gold-2); font-size: 15px; }
.ev-tier .tier__list { flex: 1; }
.ev-venue { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.ev-venue__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(217,178,111,.1); }
.ev-venue__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--gold); stroke-width: 2; }
.ev-venue > div:nth-child(2) { flex: 1; min-width: 180px; }
.ev-venue__links { display: flex; gap: 8px; flex-wrap: wrap; }

.ev-side { position: sticky; top: 96px; display: grid; gap: 12px; margin-top: -120px; z-index: 2; }
.buy-box { padding: 24px; border-radius: 24px; background: rgba(20,20,29,.92); backdrop-filter: blur(16px); border: 1px solid var(--border-strong); box-shadow: var(--shadow); }
.buy-box__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.buy-box__head strong { font-size: 22px; color: var(--gold-2); }
.countdown--sm { margin: 0 0 18px; }
.countdown--sm b { font-size: 17px; }
.buy-box .tier-opt { padding: 12px 14px; }
.buy-box .qty { margin: 18px 0 14px; }
.buy-box__trust { display: flex; justify-content: space-between; gap: 6px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.buy-box__trust span { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.buy-box__trust svg { width: 15px; height: 15px; fill: none; stroke: var(--gold); stroke-width: 2; }
.buy-bar { display: none; }
.section--tight { padding: 40px 0 100px; }

/* ---------- Auth & account ---------- */
.auth-wrap { min-height: 72vh; display: grid; place-items: center; padding: 60px 0; }
.auth-card { width: min(440px, 100%); padding: 36px 32px; border-radius: 28px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow); text-align: center; }
.auth-card form { text-align: right; }
.auth-card h1 { font-size: 22px; margin: 14px 0 8px; }
.auth-card > .muted { font-size: 14px; margin-bottom: 8px; }
.auth-card__icon { width: 64px; height: 64px; margin: 0 auto; border-radius: 20px; display: grid; place-items: center; background: var(--gold-grad); }
.auth-card__icon svg { width: 30px; height: 30px; fill: none; stroke: #1a1206; stroke-width: 2; }

.acc { padding: 50px 0 100px; }
.acc__head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 26px; border-radius: 24px; background: linear-gradient(135deg, rgba(217,178,111,.1), var(--surface) 60%); border: 1px solid var(--border-strong); }
.acc__avatar { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--gold-grad); color: #1a1206; font-weight: 900; font-size: 22px; }
.acc__who { flex: 1; }
.acc__who h1 { font-size: 22px; }
.acc__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; margin: 28px 0 24px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tab { padding: 12px 18px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .2s, border-color .2s; }
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--gold-2); border-color: var(--gold); }
.acc__h { font-size: 17px; margin: 8px 0 14px; display: flex; align-items: center; gap: 10px; }
.count { font-size: 12px; padding: 2px 10px; border-radius: 999px; background: rgba(217,178,111,.15); color: var(--gold-2); }
.ticket-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 14px; margin-bottom: 34px; }
.mini-ticket { display: flex; align-items: stretch; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; transition: transform .3s var(--ease), border-color .3s; }
.mini-ticket:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.mini-ticket.is-dim { opacity: .6; }
.mini-ticket__art { width: 92px; flex: none; display: grid; place-items: center; }
.mini-ticket__art .art-icon { width: 34px; height: 34px; }
.mini-ticket__body { flex: 1; min-width: 0; padding: 16px 18px; display: grid; gap: 4px; border-left: 2px dashed var(--border-strong); }
.mini-ticket__body h3 { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-ticket__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.mini-ticket__meta code { font-size: 12px; color: var(--muted); letter-spacing: 1px; }
.mini-ticket__qr { width: 96px; flex: none; padding: 12px; display: grid; place-items: center; }
.mini-ticket__qr svg { width: 72px; height: 72px; border-radius: 8px; }
.empty-box { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 60px 20px; border-radius: 24px; border: 1px dashed var(--border-strong); }
.empty-box > svg { width: 44px; height: 44px; fill: none; stroke: var(--gold); stroke-width: 1.6; margin-bottom: 6px; }
.empty-box .btn { margin-top: 10px; }
.order-list { display: grid; gap: 10px; }
.order-row { display: grid; grid-template-columns: 1fr auto auto auto auto; align-items: center; gap: 20px; padding: 16px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.order-row__main { display: grid; gap: 2px; min-width: 0; }
.order-row__code { display: grid; }
.order-row__code code { letter-spacing: 1px; }
.profile-form { max-width: 480px; display: grid; gap: 4px; }
.profile-form .btn { justify-self: start; margin-top: 20px; }
.field input:disabled { opacity: .6; }

/* ---------- Ticket page ---------- */
.ticket-page { padding: 40px 0 100px; display: grid; justify-items: center; gap: 22px; }
.ticket-page .back-link { justify-self: start; }
.e-ticket-lg { position: relative; width: min(560px, 100%); border-radius: 28px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow); overflow: hidden; }
.e-ticket-lg__head { position: relative; min-height: 200px; display: grid; place-items: center; }
.e-ticket-lg__head .art-icon { width: 90px; height: 90px; opacity: .5; }
.e-ticket-lg__shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(10,10,15,.9)); }
.e-ticket-lg__title { position: absolute; inset: auto 24px 20px; display: grid; gap: 8px; justify-items: start; }
.e-ticket-lg__title h1 { font-size: 26px; }
.e-ticket-lg__info { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; padding: 24px; }
.e-ticket-lg__info span { display: block; font-size: 12px; color: var(--muted); }
.e-ticket-lg__info b { font-size: 15px; }
.e-ticket-lg .ticket-card__cut { margin: 0; }
.e-ticket-lg .ticket-card__cut::before { right: -13px; }
.e-ticket-lg .ticket-card__cut::after { left: -13px; }
.e-ticket-lg__qr { display: grid; justify-items: center; gap: 10px; padding: 28px 24px 30px; text-align: center; }
.e-ticket-lg__qr code { font-size: 20px; font-weight: 800; letter-spacing: 3px; color: var(--gold-2); }
.qr-box { width: 220px; padding: 10px; border-radius: 18px; background: #fff; }
.qr-box svg { width: 100%; height: auto; display: block; }
.qr-box--sm { width: 84px; padding: 4px; border-radius: 10px; flex: none; }
.e-ticket-lg.is-used .qr-box, .e-ticket-lg.is-void .qr-box { opacity: .25; }
.stamp { position: absolute; top: auto; bottom: 150px; left: 50%; transform: translate(-50%, -50%) rotate(-14deg); padding: 8px 26px; border: 4px solid #86efac; color: #86efac; border-radius: 14px; font-size: 26px; font-weight: 900; background: rgba(10,10,15,.7); }
.stamp--bad { border-color: #fca5a5; color: #fca5a5; }
.ticket-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ---------- Checkout result ---------- */
.result { padding: 50px 0 100px; display: grid; justify-items: center; }
.result__card { width: min(640px, 100%); padding: 40px 32px; border-radius: 28px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow); text-align: center; display: grid; justify-items: center; gap: 10px; }
.result__card h1 { font-size: 24px; }
.result__summary { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 18px 0 6px; border-radius: 18px; overflow: hidden; background: var(--border); border: 1px solid var(--border); text-align: right; }
.result__summary div { padding: 14px 16px; background: var(--bg-2); }
.result__summary span { display: block; font-size: 12px; color: var(--muted); }
.result__h { font-size: 17px; justify-self: start; margin-top: 16px; }
.result__tickets { width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.result__ticket { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--border); text-align: right; transition: border-color .2s; }
.result__ticket:hover { border-color: var(--gold); }
.result__ticket > div:last-child { display: grid; gap: 2px; }
.result__ticket code { letter-spacing: 1px; color: var(--gold-2); }
.result__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.fail__x { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(248,113,113,.12); margin-bottom: 10px; animation: pop .5s var(--ease); }
.fail__x svg { width: 32px; height: 32px; fill: none; stroke: #f87171; stroke-width: 3; stroke-linecap: round; }

/* ---------- responsive (v2) ---------- */
@media (max-width: 1024px) {
  .ev-layout { grid-template-columns: 1fr; }
  .ev-side { position: static; margin-top: 0; order: -1; }
  .ev-side .buy-box { display: none; }
  .ev-facts { grid-template-columns: repeat(2, 1fr); }
  .buy-bar { position: fixed; inset: auto 0 0 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(10,10,15,.92); backdrop-filter: blur(16px); border-top: 1px solid var(--border-strong); }
  .buy-bar > div { display: grid; }
  .buy-bar strong { color: var(--gold-2); }
  .page-event .footer, body:has(.buy-bar) .footer { padding-bottom: 80px; }
  .order-row { grid-template-columns: 1fr auto; gap: 10px 16px; }
  .order-row__code { display: none; }
}
@media (max-width: 640px) {
  .ev-hero { min-height: 360px; padding-bottom: 36px; }
  .ticket-list { grid-template-columns: 1fr; }
  .mini-ticket__qr { display: none; }
  .mini-ticket__art { width: 70px; }
  .auth-card { padding: 28px 20px; }
  .result__card { padding: 30px 18px; }
  .result__summary { grid-template-columns: 1fr; }
  .e-ticket-lg__info { grid-template-columns: 1fr; }
  .acc__actions { width: 100%; }
  .acc__actions .btn { flex: 1; }
  .order-row { grid-template-columns: 1fr; }
  #accountBtn span { display: none; }
  #accountBtn { width: 42px; padding: 0; }
}

/* ---------- print (ticket) ---------- */
@media print {
  @page { margin: 12mm; }
  body { background: #fff !important; color: #111 !important; }
  .header, .footer, .no-print, .toast { display: none !important; }
  .page { padding: 0; }
  .ticket-page { padding: 0; }
  .e-ticket-lg { box-shadow: none; border: 2px solid #111; background: #fff; color: #111; break-inside: avoid; }
  .e-ticket-lg__info span, .muted { color: #555 !important; }
  .e-ticket-lg__qr code { color: #111; }
  .e-ticket-lg__head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ticket-card__cut::before, .ticket-card__cut::after { background: #fff; }
}
