@import url("tokens.css");
@import url("base.css");

/* =========================================================
   Barra do topo
   ========================================================= */
.topbar { position: relative; z-index: 5; border-bottom: 1px solid var(--line); }
.topbar__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; padding-top: var(--s-3); padding-bottom: var(--s-3); }

.brand { display: flex; align-items: center; gap: var(--s-3); color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-strong); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-weight: 900; font-size: var(--t-24); letter-spacing: 0.01em; }
.brand__sub { font-size: var(--t-14); color: var(--muted); }

.nav { display: flex; align-items: center; gap: var(--s-1); flex-wrap: wrap; }
.nav a { color: var(--ink-2); padding: 10px 14px; border-radius: var(--r-control); font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; transition: color var(--dur-fast), background-color var(--dur-fast); }
.nav a:hover { color: var(--ink); background: var(--stage-2); }
.nav a[aria-current="page"] { color: var(--ink); }

/* =========================================================
   Botões
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 52px; padding: 14px 26px; border-radius: var(--r-control);
  font-weight: 700; font-size: var(--t-16); line-height: 1.2; text-align: center;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: var(--gold-ink); }
.btn--gold:hover { background: var(--gold-hi); color: var(--gold-ink); }
.btn--line { color: var(--ink); border: 1px solid var(--line-strong); }
.btn--line:hover { color: var(--ink); border-color: var(--muted); background: var(--stage-2); }
.btn--quiet { color: var(--ink-2); min-height: 44px; padding: 10px 16px; font-weight: 600; }
.btn--quiet:hover { color: var(--ink); background: var(--stage-2); }
.btn--small { min-height: 44px; padding: 10px 18px; font-size: var(--t-14); }
.btn--wide { width: 100%; }
.btn--ink { background: var(--paper-ink); color: var(--paper); }
.btn--ink:hover { background: #2A2760; color: var(--paper); }
.btn[aria-disabled="true"], .btn:disabled { background: var(--stage-3); color: var(--faint); cursor: not-allowed; }
.btn .price-tag { font-variant-numeric: tabular-nums; opacity: 0.85; font-weight: 600; }

/* =========================================================
   Destaque (home)
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 70% at 72% -10%, rgba(42, 58, 140, 0.75), transparent 70%),
    radial-gradient(40% 50% at 10% 0%, rgba(42, 58, 140, 0.35), transparent 70%);
}
.hero__grid {
  display: grid; grid-template-columns: minmax(260px, 400px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: start;
  padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(48px, 6vw, 88px);
}
.poster { position: relative; }
.poster img { width: 100%; border-radius: var(--r-surface); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--line-strong); }
.poster figcaption { margin-top: var(--s-3); font-size: var(--t-14); color: var(--muted); }

.hero__info { display: flex; flex-direction: column; gap: var(--s-5); min-width: 0; }

.when { display: flex; align-items: center; gap: var(--s-4); }
.when__day { font-family: var(--font-display); font-weight: 900; font-size: clamp(72px, 9vw, 112px); line-height: 0.8; color: var(--gold); font-variant-numeric: tabular-nums; }
.when__rest { display: flex; flex-direction: column; gap: 2px; padding-left: var(--s-4); border-left: 2px solid var(--line-strong); }
.when__month { font-family: var(--font-display); font-weight: 800; font-size: var(--t-36); line-height: 1; }
.when__time { color: var(--ink-2); font-size: var(--t-18); }

.hero__title { font-family: var(--font-display); font-weight: 900; font-size: clamp(3rem, 6.4vw, 5.5rem); line-height: 0.92; letter-spacing: -0.005em; }
.hero__lineup { font-size: var(--t-21); color: var(--ink-2); margin-top: calc(var(--s-3) * -1); }
.hero__lineup strong { color: var(--ink); font-weight: 700; }
.place { display: flex; gap: var(--s-2); align-items: flex-start; color: var(--ink-2); }
.place svg { flex: none; margin-top: 3px; color: var(--gold); }
.place a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.place a:hover { color: var(--ink); text-decoration-color: var(--gold); }

.hero__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* =========================================================
   Escada de lotes: o elemento que conta como o preço sobe
   ========================================================= */
.ladder { background: var(--stage-2); border: 1px solid var(--line); border-radius: var(--r-surface); padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-4); }
.ladder__title { font-size: var(--t-16); font-weight: 600; color: var(--ink-2); }
.ladder__steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); align-items: end; }
.step { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.step__price { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1; font-variant-numeric: tabular-nums; }
.step__bar { height: var(--bar, 64px); border-radius: 8px 8px 3px 3px; transform-origin: bottom; }
.step__name { font-weight: 700; font-size: var(--t-16); }
.step__state { font-size: var(--t-14); color: var(--muted); }

.step--sold .step__price { color: var(--faint); text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: var(--hot); }
.step--sold .step__bar { background: repeating-linear-gradient(-45deg, var(--stage-3) 0 6px, var(--line) 6px 12px); }
.step--sold .step__name { color: var(--muted); }

.step--now .step__price { color: var(--gold); }
.step--now .step__bar { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); box-shadow: 0 0 32px rgba(244, 182, 63, 0.35); }
.step--now .step__state { color: var(--gold); font-weight: 600; }

.step--next .step__price { color: var(--ink-2); }
.step--next .step__bar { border: 2px dashed var(--line-strong); }

.ladder__note { font-size: var(--t-14); color: var(--ink-2); display: flex; flex-direction: column; gap: var(--s-2); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.ladder__note strong { color: var(--ink); }
.meter { height: 6px; border-radius: var(--r-pill); background: var(--stage-3); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--gold); border-radius: var(--r-pill); }

@keyframes rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: no-preference) {
  .ladder--animate .step__bar { animation: rise var(--dur-slow) var(--ease-out) both; }
  .ladder--animate .step:nth-child(2) .step__bar { animation-delay: 120ms; }
  .ladder--animate .step:nth-child(3) .step__bar { animation-delay: 240ms; }
}

/* =========================================================
   Seções
   ========================================================= */
.section { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.section + .section { padding-top: 0; }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-6); }
.section__title { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.5rem, 5vw, 3.75rem); line-height: 0.95; }
.section__lead { color: var(--ink-2); font-size: var(--t-18); max-width: 56ch; margin-top: var(--s-3); }

/* Controle segmentado */
.segmented { display: inline-flex; padding: 4px; gap: 4px; background: var(--stage-2); border: 1px solid var(--line); border-radius: var(--r-pill); }
.segmented button { min-height: 40px; padding: 8px 18px; border-radius: var(--r-pill); font-weight: 600; font-size: var(--t-14); color: var(--ink-2); transition: background-color var(--dur-fast), color var(--dur-fast); }
.segmented button:hover { color: var(--ink); }
.segmented button[aria-pressed="true"] { background: var(--ink); color: var(--stage); }

/* =========================================================
   Agenda: cada show é um canhoto de ingresso
   ========================================================= */
.stubs { list-style: none; display: flex; flex-direction: column; gap: var(--s-4); }
.stub {
  --cut: 120px;
  position: relative; display: grid; grid-template-columns: var(--cut) 104px minmax(0, 1fr) auto;
  align-items: center; background: var(--paper); color: var(--paper-ink); border-radius: var(--r-ticket);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.stub:hover { color: var(--paper-ink); transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7); }
@media (prefers-reduced-motion: reduce) { .stub:hover { transform: none; } }
.stub::before, .stub::after {
  content: ""; position: absolute; left: calc(var(--cut) - 11px); width: 22px; height: 22px; border-radius: 50%; background: var(--stage);
}
.stub::before { top: -11px; }
.stub::after { bottom: -11px; }

.stub__date { align-self: stretch; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; padding: var(--s-4) var(--s-2); border-right: 2px dashed var(--paper-rule); text-align: center; }
.stub__day { font-family: var(--font-display); font-weight: 900; font-size: var(--t-60); line-height: 0.85; font-variant-numeric: tabular-nums; }
.stub__month { font-family: var(--font-display); font-weight: 800; font-size: var(--t-24); line-height: 1; }
.stub__weekday { font-size: var(--t-14); color: var(--paper-muted); }

.stub__poster { padding: var(--s-4) 0 var(--s-4) var(--s-5); }
.stub__poster img { width: 80px; height: 104px; object-fit: cover; object-position: top; border-radius: 8px; }

.stub__body { padding: var(--s-4) var(--s-5); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stub__name { font-family: var(--font-display); font-weight: 800; font-size: var(--t-36); line-height: 0.98; }
.stub__lineup { color: var(--paper-muted); font-size: var(--t-16); }
.stub__meta { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin-top: 6px; font-size: var(--t-14); }
.stub__time { font-weight: 600; }

.flag { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 10px; border-radius: var(--r-pill); font-size: var(--t-14); font-weight: 700; white-space: nowrap; }
.flag--hot { background: var(--hot); color: var(--hot-ink); }
.flag--gold { background: var(--gold); color: var(--gold-ink); }
.flag--plain { border: 1.5px solid var(--paper-rule); color: var(--paper-ink); }

.stub__buy { padding: var(--s-4) var(--s-5); display: flex; flex-direction: column; align-items: flex-end; gap: var(--s-2); text-align: right; }
.stub__from { font-size: var(--t-14); color: var(--paper-muted); }
.stub__price { font-family: var(--font-display); font-weight: 900; font-size: var(--t-48); line-height: 0.9; font-variant-numeric: tabular-nums; }
.stub__cta { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border-radius: var(--r-control); background: var(--paper-ink); color: var(--paper); font-weight: 700; font-size: var(--t-14); }
.stub:hover .stub__cta { background: #2A2760; }

.stubs__empty { padding: var(--s-6); border: 1px dashed var(--line-strong); border-radius: var(--r-surface); color: var(--ink-2); text-align: center; }

/* =========================================================
   Como funciona o lote: uma sequência real
   ========================================================= */
.how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.how__steps { list-style: none; counter-reset: how; display: flex; flex-direction: column; }
.how__steps li { counter-increment: how; position: relative; padding: 0 0 var(--s-6) 64px; }
.how__steps li:last-child { padding-bottom: 0; }
.how__steps li::before {
  content: counter(how); position: absolute; left: 0; top: -2px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 900; font-size: var(--t-24);
  background: var(--stage-2); border: 2px solid var(--gold); color: var(--gold);
}
.how__steps li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 42px; bottom: 4px; width: 2px; background: var(--line-strong); }
.how__steps h3 { font-size: var(--t-21); font-weight: 700; line-height: 1.3; }
.how__steps p { color: var(--ink-2); margin-top: 4px; max-width: 52ch; }

/* =========================================================
   Rodapé
   ========================================================= */
.footer { border-top: 1px solid var(--line); background: var(--stage-deep); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-6); padding-top: var(--s-7); padding-bottom: var(--s-7); }
.footer h2 { font-size: var(--t-14); font-weight: 600; color: var(--muted); margin-bottom: var(--s-3); }
.footer address { font-style: normal; color: var(--ink-2); }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: var(--s-2); }
.footer a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 32px; }
.footer__brand { display: flex; gap: var(--s-4); align-items: flex-start; }
.footer__brand img { width: 64px; height: 64px; border-radius: 50%; }
.footer__brand strong { display: block; font-family: var(--font-display); font-weight: 900; font-size: var(--t-24); line-height: 1.1; }
.footer__fine { border-top: 1px solid var(--line); padding-top: var(--s-4); padding-bottom: var(--s-5); font-size: var(--t-14); color: var(--faint); }

/* =========================================================
   Barra fixa de compra (celular)
   ========================================================= */
.buybar { display: none; }
@media (max-width: 720px) {
  .buybar {
    display: flex; position: fixed; z-index: 20; left: 0; right: 0; bottom: 0;
    align-items: center; justify-content: space-between; gap: var(--s-3);
    padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom));
    background: rgba(14, 20, 51, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line-strong);
  }
  .buybar__info { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
  .buybar__info span { font-size: var(--t-14); color: var(--muted); }
  .buybar__info strong { font-family: var(--font-display); font-weight: 900; font-size: var(--t-36); line-height: 1; font-variant-numeric: tabular-nums; }
  .buybar .btn { flex: none; }
  .has-buybar { padding-bottom: 96px; }
}

/* =========================================================
   Página do show
   ========================================================= */
.page { padding-top: var(--s-5); padding-bottom: var(--s-8); }
.crumbs { font-size: var(--t-14); color: var(--muted); margin-bottom: var(--s-5); }
.crumbs ol { list-style: none; display: flex; gap: var(--s-2); flex-wrap: wrap; }
.crumbs li + li::before { content: "/"; margin-right: var(--s-2); color: var(--faint); }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--gold-hi); }

.event { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(32px, 4vw, 56px); align-items: start; }
.event__main { display: flex; flex-direction: column; gap: var(--s-7); min-width: 0; }
.event__head { display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.event__info { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.event__title { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.75rem, 5vw, 4.25rem); line-height: 0.92; }
.event .when__day { font-size: clamp(60px, 7vw, 84px); }
.event .when__month { font-size: var(--t-24); }
.event .when__time { font-size: var(--t-16); }

.block__title { font-family: var(--font-display); font-weight: 800; font-size: var(--t-36); line-height: 1; }
.block__lead { color: var(--ink-2); margin-top: var(--s-2); max-width: 60ch; }
.block > * + * { margin-top: var(--s-4); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-surface); overflow: hidden; }
.facts div { background: var(--stage); padding: var(--s-4); }
.facts dt { font-size: var(--t-14); color: var(--muted); }
.facts dd { font-weight: 700; margin-top: 2px; }
.facts a { white-space: nowrap; }

.buy { position: sticky; top: var(--s-5); background: var(--stage-2); border: 1px solid var(--line); border-radius: var(--r-ticket); padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-4); }
.buy__head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
.buy__head h2 { font-family: var(--font-display); font-weight: 800; font-size: var(--t-36); line-height: 1; }
.chip { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--gold-wash); color: var(--gold); font-weight: 700; font-size: var(--t-14); white-space: nowrap; }

.lines { display: flex; flex-direction: column; }
.line { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-4) 0; border-top: 1px solid var(--line); }
.line__info { display: flex; flex-direction: column; min-width: 0; }
.line__info strong { font-size: var(--t-18); }
.line__info span { font-size: var(--t-14); color: var(--muted); }
.line__price { font-weight: 700; color: var(--gold); margin-top: 4px; font-variant-numeric: tabular-nums; }

.stepper { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: var(--r-control); background: var(--stage); border: 1px solid var(--line); flex: none; }
.stepper button { width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; color: var(--ink); transition: background-color var(--dur-fast); }
.stepper button:hover { background: var(--stage-3); }
.stepper button[data-step="1"] { background: var(--gold); color: var(--gold-ink); }
.stepper button[data-step="1"]:hover { background: var(--gold-hi); }
.stepper button:disabled { opacity: 0.35; cursor: not-allowed; background: transparent; }
.stepper button[data-step="1"]:disabled { background: var(--stage-3); color: var(--ink); }
.stepper output { min-width: 34px; text-align: center; font-weight: 700; font-size: var(--t-18); font-variant-numeric: tabular-nums; }

.total { border-top: 1px solid var(--line); padding-top: var(--s-4); display: flex; flex-direction: column; gap: 4px; }
.total__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); color: var(--ink-2); }
.total__row--big { color: var(--ink); }
.total__row--big strong { font-size: var(--t-18); }
.total__row--big output { font-family: var(--font-display); font-weight: 900; font-size: var(--t-48); line-height: 1; font-variant-numeric: tabular-nums; }

.note { display: flex; gap: var(--s-2); align-items: flex-start; font-size: var(--t-14); color: var(--muted); }
.note svg { flex: none; margin-top: 2px; }

/* =========================================================
   Checkout
   ========================================================= */
.hold { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 40px; padding: 6px 14px; border-radius: var(--r-pill); background: var(--gold-wash); border: 1px solid rgba(244, 182, 63, 0.35); color: var(--gold); font-weight: 600; font-size: var(--t-14); }
.hold time { font-variant-numeric: tabular-nums; }

.progress-steps { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-bottom: var(--s-6); font-weight: 600; font-size: var(--t-14); }
.progress-steps li { display: flex; align-items: center; gap: var(--s-2); color: var(--muted); }
.progress-steps .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-strong); font-variant-numeric: tabular-nums; }
.progress-steps .is-done { color: var(--ink-2); }
.progress-steps .is-done .dot { border-color: var(--gold); color: var(--gold); }
.progress-steps [aria-current="step"] { color: var(--ink); }
.progress-steps [aria-current="step"] .dot { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }

.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 4vw, 56px); align-items: start; }
.checkout__main { display: flex; flex-direction: column; gap: var(--s-5); min-width: 0; }
.checkout h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.5rem, 5vw, 3.75rem); line-height: 0.95; }

.panel { background: var(--stage-2); border: 1px solid var(--line); border-radius: var(--r-surface); padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: var(--s-5); }
.panel__title { font-size: var(--t-21); font-weight: 700; }
.panel__lead { color: var(--muted); font-size: var(--t-14); margin-top: 2px; }

.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--t-14); font-weight: 600; color: var(--ink-2); }
.field input, .field select {
  min-height: 48px; padding: 12px 14px; font-size: var(--t-16); color: var(--ink);
  background-color: var(--stage); border: 1px solid var(--line-strong); border-radius: var(--r-control);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field input::placeholder { color: var(--faint); }
.field input:focus-visible, .field select:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(244, 182, 63, 0.25); }
.field input[aria-invalid="true"] { border-color: var(--hot); }
.field__error { font-size: var(--t-14); color: #FF9A85; }

.methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.method { display: flex; align-items: center; gap: var(--s-3); min-height: 60px; padding: 12px 16px; border-radius: var(--r-control); border: 1.5px solid var(--line-strong); background: var(--stage); text-align: left; transition: border-color var(--dur-fast), background-color var(--dur-fast); }
.method:hover { border-color: var(--muted); }
.method svg { flex: none; color: var(--muted); }
.method strong { display: block; font-size: var(--t-16); }
.method span { display: block; font-size: var(--t-14); color: var(--muted); }
.method[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-wash); }
.method[aria-pressed="true"] svg { color: var(--gold); }

.pix { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--s-5); align-items: center; }
.pix__qr { background: #fff; border-radius: var(--r-surface); padding: 12px; }
.pix__qr img { width: 100%; height: auto; }
.pix__how { list-style: none; counter-reset: pix; display: flex; flex-direction: column; gap: var(--s-2); color: var(--ink-2); }
.pix__how li { counter-increment: pix; display: flex; gap: var(--s-2); }
.pix__how li::before { content: counter(pix); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--stage-3); display: grid; place-items: center; font-size: var(--t-12); font-weight: 700; color: var(--ink); margin-top: 1px; }
.pix__side { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.copy { display: flex; gap: var(--s-2); }
.copy input { flex: 1; min-width: 0; font-size: var(--t-14) !important; color: var(--muted) !important; }
.copy .btn { min-height: 48px; }
.waiting { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-14); color: var(--muted); }
.waiting::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
@media (prefers-reduced-motion: no-preference) { .waiting::before { animation: blink 1.6s ease-in-out infinite; } }
@keyframes blink { 50% { opacity: 0.3; } }

.order { position: sticky; top: var(--s-5); background: var(--paper); color: var(--paper-ink); border-radius: var(--r-ticket); overflow: hidden; }
.order__show { display: flex; gap: var(--s-4); align-items: center; padding: var(--s-5); }
.order__show img { width: 64px; height: 86px; object-fit: cover; object-position: top; border-radius: 8px; }
.order__show h2 { font-family: var(--font-display); font-weight: 800; font-size: var(--t-24); line-height: 1.05; }
.order__show p { font-size: var(--t-14); color: var(--paper-muted); }
.order__cut { position: relative; border-top: 2px dashed var(--paper-rule); margin: 0 var(--s-4); }
.order__cut::before, .order__cut::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--stage); }
.order__cut::before { left: calc(var(--s-4) * -1 - 11px); }
.order__cut::after { right: calc(var(--s-4) * -1 - 11px); }
.order__body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.order__line { display: flex; justify-content: space-between; gap: var(--s-3); font-variant-numeric: tabular-nums; }
.order__line small { display: block; font-size: var(--t-14); color: var(--paper-muted); }
.order__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: var(--s-3); border-top: 1px solid var(--paper-rule); }
.order__total output { font-family: var(--font-display); font-weight: 900; font-size: var(--t-48); line-height: 1; font-variant-numeric: tabular-nums; }
.order__back { align-self: center; color: var(--paper-ink); font-weight: 600; font-size: var(--t-14); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.order__back:hover { color: #2A2760; }

/* =========================================================
   Ingresso no celular
   ========================================================= */
.wallet {
  min-height: 100vh; max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--s-5);
  padding: calc(var(--s-5) + env(safe-area-inset-top)) var(--s-4) calc(var(--s-5) + env(safe-area-inset-bottom));
}
.wallet__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.done { display: flex; align-items: center; gap: var(--s-3); }
.done .done__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); display: grid; place-items: center; flex: none; }
.done strong { display: block; font-size: var(--t-18); line-height: 1.2; }
.done span { font-size: var(--t-14); color: var(--muted); }

.tickets { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: var(--s-4); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; padding: 12px 0; }
.tickets::-webkit-scrollbar { display: none; }
.ticket { scroll-snap-align: center; background: var(--paper); color: var(--paper-ink); border-radius: var(--r-ticket); overflow: hidden; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.8); }
.ticket__cover { position: relative; height: 132px; overflow: hidden; }
.ticket__cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }
.ticket__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 20, 51, 0.55) 0%, rgba(14, 20, 51, 0.96) 75%); }
.ticket__title { position: absolute; z-index: 1; left: var(--s-4); right: var(--s-4); bottom: var(--s-3); color: var(--ink); }
.ticket__title h2 { font-family: var(--font-display); font-weight: 900; font-size: var(--t-36); line-height: 0.95; text-shadow: 0 2px 12px rgba(9, 13, 36, 0.9); }
.ticket__title p { font-size: var(--t-14); color: var(--ink-2); }
.ticket__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); padding: var(--s-4); }
.ticket__facts dt { font-size: var(--t-12); color: var(--paper-muted); font-weight: 600; }
.ticket__facts dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.ticket__cut { position: relative; border-top: 2px dashed var(--paper-rule); margin: 0 var(--s-4); }
.ticket__cut::before, .ticket__cut::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--stage); }
.ticket__cut::before { left: calc(var(--s-4) * -1 - 11px); }
.ticket__cut::after { right: calc(var(--s-4) * -1 - 11px); }
.ticket__qr { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: var(--s-5) var(--s-4); text-align: center; }
.ticket__qr img { width: 196px; height: 196px; }
.ticket__qr strong { font-size: var(--t-18); margin-top: var(--s-2); }
.ticket__qr span { font-size: var(--t-14); color: var(--paper-muted); font-variant-numeric: tabular-nums; }
.ticket__pending { width: 196px; height: 196px; border: 2px dashed var(--paper-rule); border-radius: var(--r-surface); display: grid; place-items: center; padding: var(--s-4); color: var(--paper-muted); font-size: var(--t-14); }

.pager { display: flex; align-items: center; justify-content: center; gap: var(--s-3); }
.pager button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--ink); transition: background-color var(--dur-fast); }
.pager button:hover { background: var(--stage-2); }
.pager button:disabled { opacity: 0.35; cursor: not-allowed; }
.pager output { font-size: var(--t-14); color: var(--ink-2); min-width: 110px; text-align: center; font-variant-numeric: tabular-nums; }

.wallet__actions { margin-top: auto; display: flex; flex-direction: column; gap: var(--s-3); }

/* =========================================================
   Painel do organizador
   ========================================================= */
.admin { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.side { background: var(--stage-deep); border-right: 1px solid var(--line); padding: var(--s-5) var(--s-3); display: flex; flex-direction: column; gap: 2px; }
.side__brand { display: flex; align-items: center; gap: var(--s-3); padding: 0 var(--s-2) var(--s-5); }
.side__brand img { width: 40px; height: 40px; border-radius: 50%; }
.side__brand strong { display: block; font-family: var(--font-display); font-weight: 900; font-size: var(--t-21); line-height: 1; }
.side__brand span { font-size: var(--t-12); color: var(--muted); }
.side a { color: var(--muted); padding: 10px 12px; border-radius: var(--r-control); font-weight: 500; min-height: 44px; display: flex; align-items: center; }
.side a:hover { color: var(--ink); background: var(--stage-2); }
.side a[aria-current="page"] { color: var(--ink); background: var(--stage-2); font-weight: 700; box-shadow: inset 3px 0 0 var(--gold); }

.admin__main { padding: var(--s-6) clamp(16px, 3vw, 40px) var(--s-8); display: flex; flex-direction: column; gap: var(--s-6); min-width: 0; }
.admin__head { display: flex; justify-content: space-between; align-items: end; gap: var(--s-4); flex-wrap: wrap; }
.admin__head h1 { font-family: var(--font-display); font-weight: 900; font-size: var(--t-48); line-height: 1; }
.admin__head p { color: var(--muted); margin-top: 4px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s-3); }
.kpi { background: var(--stage-2); border: 1px solid var(--line); border-radius: var(--r-surface); padding: var(--s-4); }
.kpi dt { font-size: var(--t-14); color: var(--muted); }
.kpi dd { font-family: var(--font-display); font-weight: 800; font-size: var(--t-36); line-height: 1.1; font-variant-numeric: tabular-nums; }

.show { background: var(--stage-2); border: 1px solid var(--line); border-radius: var(--r-surface); overflow: hidden; }
.show__head { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.show__head img { width: 48px; height: 60px; object-fit: cover; object-position: top; border-radius: 6px; }
.show__title { flex: 1; min-width: 200px; }
.show__title h2 { font-size: var(--t-18); font-weight: 700; }
.show__title span { font-size: var(--t-14); color: var(--muted); }
.show__foot { padding: var(--s-2) var(--s-5); border-top: 1px solid var(--line); }

.table-wrap { overflow-x: auto; }
.lots { width: 100%; min-width: 720px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.lots th, .lots td { padding: 14px 12px; text-align: left; }
.lots thead th { font-size: var(--t-14); font-weight: 600; color: var(--muted); padding-top: 12px; padding-bottom: 12px; }
.lots tr > :first-child { padding-left: var(--s-5); }
.lots tr > :last-child { padding-right: var(--s-5); }
.lots tbody tr { border-top: 1px solid var(--line); }
.lots tbody th { font-weight: 700; }
.lots .col-sold { width: 230px; }
.sold { display: flex; align-items: center; gap: var(--s-3); }
.sold .meter { flex: 1; }
.sold .meter span.is-off { background: var(--faint); }
.sold small { font-size: var(--t-14); color: var(--ink-2); white-space: nowrap; }
.state { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-14); font-weight: 600; white-space: nowrap; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.state--on { color: var(--gold); }
.state--on::before { background: var(--gold); }
.state--off { color: var(--muted); }
.state--off::before { background: var(--faint); }
.state--next { color: var(--ink-2); }
.state--next::before { border: 1.5px solid var(--ink-2); }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1024px) {
  .event, .checkout { grid-template-columns: minmax(0, 1fr); }
  .buy, .order { position: static; }
  .order { order: -1; }
  .how { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .poster { max-width: 420px; }
  .event__head { grid-template-columns: minmax(0, 1fr); }
  .event__head .poster { max-width: 320px; }
  .stub { grid-template-columns: var(--cut) minmax(0, 1fr) auto; }
  .stub__poster { display: none; }
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .admin { grid-template-columns: minmax(0, 1fr); }
  .side { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); }
  .side__brand { width: 100%; padding-bottom: var(--s-2); }
}

@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
  .stub { --cut: 88px; grid-template-columns: var(--cut) minmax(0, 1fr); grid-template-areas: "date body" "date buy"; }
  .stub__date { grid-area: date; }
  .stub__body { grid-area: body; padding: var(--s-4) var(--s-4) 0; }
  .stub__buy { grid-area: buy; flex-direction: row; justify-content: space-between; align-items: center; padding: var(--s-3) var(--s-4) var(--s-4); text-align: left; flex-wrap: wrap; }
  .stub__day { font-size: var(--t-48); }
  .stub__month { font-size: var(--t-21); }
  .stub__name { font-size: var(--t-24); }
  .stub__price { font-size: var(--t-36); }
  .stub__from { display: none; }
  .ladder { padding: var(--s-4); }
  .step__state { font-size: var(--t-12); }
  .fields, .methods { grid-template-columns: minmax(0, 1fr); }
  .pix { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .pix__qr { width: 200px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .when__day { font-size: 76px; }
  .hero .poster, .event__head .poster { max-width: 260px; }
  .hero__actions .btn { flex: 1 1 100%; }

  /* Show: 3 informações em 2 colunas, a última ocupa a linha toda */
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:last-child:nth-child(odd) { grid-column: 1 / -1; }

  /* Painel: cada lote vira um cartão, sem rolagem lateral */
  .lots { min-width: 0; }
  .lots thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lots, .lots tbody { display: block; }
  .lots tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3) var(--s-4); padding: var(--s-4) var(--s-5); }
  .lots tbody th, .lots tbody td, .lots tr > :first-child, .lots tr > :last-child { padding: 0; }
  .lots tbody th { grid-column: 1 / -1; font-size: var(--t-18); }
  .lots td::before { content: attr(data-label); display: block; font-size: var(--t-12); font-weight: 600; color: var(--muted); margin-bottom: 2px; }
  .lots td[data-label="Vendidos"] { grid-column: 1 / -1; }
}
