/* ==========================================================================
   ABPp — Novo layout (v2) — inscrição, pagamento, ingresso e rota
   ========================================================================== */

/* ---------- Modal ---------- */
html.modal-on { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; }
.modal-backdrop { position: absolute; inset: 0; background: color-mix(in oklab, var(--brand-deep) 60%, rgba(0,0,0,.4)); backdrop-filter: blur(8px); opacity: 0; transition: opacity .3s; }
.modal-box {
    position: relative; width: min(980px, 100%); max-height: calc(100dvh - 48px); display: flex; flex-direction: column;
    background: var(--paper); border-radius: var(--radius-xl); box-shadow: 0 50px 120px -30px rgba(0,0,0,.6); overflow: hidden;
    opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .35s, transform .5s var(--ease);
}
.modal.open .modal-backdrop { opacity: 1; }
.modal.open .modal-box { opacity: 1; transform: none; }
.modal.form-only .modal-box { width: min(680px, 100%); }
.mw-x { position: absolute; right: 16px; top: 16px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--card); box-shadow: var(--shadow-s), 0 0 0 1px var(--line); transition: transform .3s var(--ease); }
.mw-x:hover { transform: rotate(90deg); }

/* ---------- Cabeçalho do wizard ---------- */
.mw-head { position: relative; padding: 22px 28px 0; background: var(--card); border-bottom: 1px solid var(--line); }
.mw-head.simple { padding-bottom: 22px; }
.mw-event { display: flex; gap: 14px; align-items: center; padding-right: 56px; }
.mw-cover { position: relative; width: 52px; aspect-ratio: 4/5; border-radius: 10px; overflow: hidden; flex: none; background: var(--paper-3); container-type: inline-size; }
.mw-cover img { width: 100%; height: 100%; object-fit: cover; }
.mw-cover .cover-fb .fb-title, .mw-cover .cover-fb .fb-date, .mw-cover .cover-fb .fb-serie { display: none; }
.mw-cover .cover-fb .fb-logo { font-size: 26cqi; align-self: center; margin: auto; }
.mw-event small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
[data-unidade="pb"] .mw-event small, [data-unidade="sp"] .mw-event small { color: var(--accent); }
.mw-event strong { display: block; font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.mw-event span { font-size: .86rem; color: var(--ink-3); }
.stepper { list-style: none; display: flex; gap: 0; margin: 20px 0 0; padding: 0; counter-reset: s; }
.stepper li { flex: 1; display: flex; align-items: center; gap: 10px; padding: 12px 0 14px; font-size: .86rem; color: var(--ink-3); position: relative; }
.stepper li::after { content: ''; position: absolute; left: 0; right: 8px; bottom: -1px; height: 3px; border-radius: 3px; background: transparent; transition: background .4s; }
.stepper li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .76rem; font-weight: 600; background: var(--paper-2); color: var(--ink-3); transition: all .4s var(--ease); }
.stepper li.on { color: var(--ink); font-weight: 500; }
.stepper li.on span { background: var(--ink); color: #fff; }
.stepper li.on::after { background: var(--accent); }
.stepper li.done span { background: var(--accent); color: var(--on-accent); }
.stepper li.done::after { background: color-mix(in oklab, var(--accent) 40%, transparent); }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--paper-2); }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .5s var(--ease); }

/* ---------- Corpo ---------- */
.mw-body { padding: 28px; overflow-y: auto; overscroll-behavior: contain; }
.mw-body.swap > * { animation: rise .5s var(--ease) both; }
.mw-body.swap > *:nth-child(2) { animation-delay: .06s; }
.mw-body.swap > *:nth-child(3) { animation-delay: .12s; }
.mw-lead { color: var(--ink-2); }
.mw-label { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 12px; }
.mw-form { display: grid; gap: 16px; }
.mw-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .84rem; }
.mw-link { color: var(--brand); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; font-size: .86rem; }
.demo-tag { font-size: .74rem; color: var(--ink-3); background: var(--paper-2); padding: 4px 10px; border-radius: 999px; }
.mw-next { justify-content: space-between; width: 100%; margin-top: 4px; }
.mw-next:disabled { opacity: .85; cursor: progress; }
.mw-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.secure { display: inline-flex; gap: 6px; align-items: center; font-size: .8rem; color: var(--ink-3); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: 1fr .8fr 1.2fr; gap: 14px; }

.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-size: .82rem; font-weight: 500; color: var(--ink-2); padding: 0; }
.field em { font-style: normal; color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 15px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--card);
    font-size: .98rem; outline: 0; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent); }
.field input[readonly] { background: var(--paper-2); color: var(--ink-2); font-family: ui-monospace, monospace; font-size: .82rem; }
.field.err input, .field.err select, .field.err textarea { border-color: #d33; box-shadow: 0 0 0 4px rgba(221, 51, 51, .12); }
.field.err > span::after, .field.err legend::after { content: ' · obrigatório'; color: #c22; font-weight: 400; }
.chips-field { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-field legend { width: 100%; margin-bottom: 8px; }
.chip-opt input { position: absolute; opacity: 0; pointer-events: none; }
.chip-opt span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); font-size: .9rem; cursor: pointer; transition: all .25s var(--ease); background: var(--card); }
.chip-opt input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; margin-top: 1px; }
.check.err span { color: #c22; }

.seg { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--paper-2); margin-bottom: 22px; }
.seg button { flex: 1; display: flex; gap: 8px; align-items: center; justify-content: center; padding: 11px 14px; border-radius: 999px; font-weight: 500; color: var(--ink-3); transition: all .3s var(--ease); }
.seg button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-s); }
.upsell { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 14px; background: color-mix(in oklab, var(--accent-2) 22%, var(--paper)); font-size: .88rem; }
.upsell a { color: var(--brand); font-weight: 600; text-decoration: underline; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; animation: spin .8s linear infinite; vertical-align: -3px; }

/* ---------- Carteirinha do associado ---------- */
.member-card {
    position: relative; overflow: hidden; padding: 20px; border-radius: 22px; color: #fff; isolation: isolate;
    background: radial-gradient(120% 90% at 100% 0%, color-mix(in oklab, var(--accent) 60%, transparent), transparent 55%), linear-gradient(150deg, var(--brand), var(--brand-deep));
    box-shadow: 0 24px 50px -24px color-mix(in oklab, var(--brand-deep) 80%, transparent);
}
.member-card::before { content: ''; position: absolute; z-index: -1; width: 260px; aspect-ratio: 1; right: -90px; bottom: -120px; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 12px, rgba(255,255,255,.1) 12px 13.5px); }
.member-card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--ribbon); }
.mc-top { display: flex; justify-content: space-between; align-items: center; }
.mc-top img { height: 34px; filter: brightness(0) invert(1); }
.mc-status { display: inline-flex; gap: 5px; align-items: center; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: .74rem; font-weight: 600; backdrop-filter: blur(6px); }
.mc-main { display: flex; gap: 14px; align-items: center; margin: 20px 0 18px; }
.mc-avatar { width: 58px; height: 58px; border-radius: 18px; flex: none; display: grid; place-items: center; font-weight: 600; font-size: 1.2rem; background: #fff; color: var(--brand); box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.mc-avatar.alt { background: var(--brand); color: #fff; box-shadow: none; }
.mc-main small { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.mc-main strong { display: block; font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; }
.mc-main span { font-size: .82rem; opacity: .75; }
.mc-data { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; padding-top: 14px; border-top: 1px dashed rgba(255,255,255,.25); }
.mc-data dt { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; opacity: .65; }
.mc-data dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; font-size: .92rem; }
.person-card { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 20px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.person-card small { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.person-card strong { display: block; }
.person-card span { font-size: .82rem; color: var(--ink-3); }
.person-card .mw-link { margin-left: auto; }

.summary { margin-top: 16px; padding: 16px 18px; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 8px; font-size: .9rem; }
.summary div { display: flex; justify-content: space-between; gap: 12px; }
.summary .disc { color: color-mix(in oklab, var(--accent) 70%, var(--ink)); }
.summary .total { padding-top: 10px; border-top: 1px solid var(--line); font-weight: 600; font-size: 1.1rem; }

/* ---------- Pagamento ---------- */
.pay-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.method { display: grid; gap: 2px; justify-items: start; text-align: left; padding: 14px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: all .3s var(--ease); }
.method .icon { width: 22px; height: 22px; margin-bottom: 6px; color: var(--ink-3); }
.method strong { font-weight: 600; }
.method small { font-size: .74rem; color: var(--ink-3); line-height: 1.3; }
.method:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.method[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--accent), 0 10px 24px -14px color-mix(in oklab, var(--accent) 80%, transparent); background: color-mix(in oklab, var(--accent) 6%, var(--card)); }
.method[aria-checked="true"] .icon { color: var(--accent); }
.method-panel { margin-top: 16px; display: grid; gap: 16px; }
.method-panel > * { animation: rise .45s var(--ease) both; }

.pix { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: start; padding: 16px; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.pix-qr { padding: 8px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line); color: var(--ink); }
.qr { width: 100%; height: auto; display: block; shape-rendering: crispEdges; }
.pix-info strong { display: block; margin-bottom: 6px; }
.pix-info ol { margin: 0 0 12px; padding-left: 1.1em; font-size: .84rem; color: var(--ink-2); display: grid; gap: 2px; }
.copy { display: flex; gap: 6px; }
.copy input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper-2); font-family: ui-monospace, monospace; font-size: .76rem; color: var(--ink-2); }
.copy .btn { min-height: 42px; padding: 0 14px; font-size: .84rem; }
.timer { display: inline-flex; gap: 6px; align-items: center; margin-top: 10px; font-size: .8rem; color: var(--ink-3); }
.timer b { color: var(--ink); font-variant-numeric: tabular-nums; }
.boleto { padding: 16px; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 14px; }
.bol-bar { padding: 14px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); color: var(--ink); }
.barcode { width: 100%; height: 64px; display: block; }
.hint { display: flex; gap: 8px; align-items: center; font-size: .82rem; color: var(--ink-3); }

/* cartão que vai sendo preenchido */
.card-pay { display: grid; gap: 18px; }
.cc { perspective: 1200px; width: min(360px, 100%); aspect-ratio: 1.586; margin-inline: auto; }
.cc-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s var(--ease); }
.cc.flip .cc-inner { transform: rotateY(180deg); }
.cc-front, .cc-back {
    position: absolute; inset: 0; border-radius: 18px; padding: 20px 22px; color: #fff; backface-visibility: hidden; -webkit-backface-visibility: hidden;
    display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
    background: radial-gradient(140% 120% at 0% 0%, rgba(255,255,255,.18), transparent 50%), linear-gradient(135deg, #2b2d42, #14151f);
    box-shadow: 0 24px 50px -20px rgba(0,0,0,.55);
    transition: background .6s;
}
.cc[data-brand="visa"] :is(.cc-front, .cc-back) { background: radial-gradient(140% 120% at 0% 0%, rgba(255,255,255,.2), transparent 50%), linear-gradient(135deg, #1a3a9e, #0b1a52); }
.cc[data-brand="mastercard"] :is(.cc-front, .cc-back) { background: radial-gradient(140% 120% at 0% 0%, rgba(255,255,255,.18), transparent 50%), linear-gradient(135deg, #3b2a2a, #120c0c); }
.cc[data-brand="elo"] :is(.cc-front, .cc-back) { background: radial-gradient(140% 120% at 0% 0%, rgba(255,255,255,.18), transparent 50%), linear-gradient(135deg, #1f1f1f, #000); }
.cc[data-brand="amex"] :is(.cc-front, .cc-back) { background: radial-gradient(140% 120% at 0% 0%, rgba(255,255,255,.2), transparent 50%), linear-gradient(135deg, #2e7d9a, #124558); }
.cc-back { transform: rotateY(180deg); padding: 22px 0; justify-content: flex-start; gap: 22px; }
.cc-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.cc-row small { display: block; font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.cc-row span { font-size: .86rem; font-weight: 500; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; display: block; }
.cc-chip { width: 42px; height: 32px; border-radius: 7px; background: linear-gradient(135deg, #f6d68a, #c9a24a); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.cc-brand { font-weight: 700; font-style: italic; font-size: 1.15rem; letter-spacing: .02em; min-height: 1.4em; }
.cc-num { font-family: ui-monospace, 'SF Mono', monospace; font-size: clamp(1rem, .8rem + 1vw, 1.32rem); letter-spacing: .1em; word-spacing: .2em; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.cc-stripe { height: 42px; background: #0a0a0a; }
.cc-cvv { margin: 0 22px; padding: 8px 12px; border-radius: 6px; background: #f3f3f3; color: #111; text-align: right; }
.cc-cvv small { display: block; font-size: .58rem; letter-spacing: .12em; color: #666; }
.cc-cvv span { font-family: ui-monospace, monospace; font-weight: 600; letter-spacing: .2em; }

/* ---------- Confirmação + ingresso ---------- */
.done { text-align: center; display: grid; justify-items: center; gap: 10px; padding: 8px 0 22px; }
.done h3 { font-size: 1.8rem; font-weight: 600; letter-spacing: -.03em; }
.done p { color: var(--ink-2); max-width: 52ch; }
.done-check { width: 76px; height: 76px; }
.done-check svg { width: 100%; height: 100%; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.done-check circle { stroke: var(--accent); fill: color-mix(in oklab, var(--accent) 12%, transparent); stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .7s var(--ease) forwards; }
.done-check path { stroke: var(--accent); stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw .5s .55s var(--ease) forwards; }
.done-check.wait circle, .done-check.wait path { stroke: color-mix(in oklab, var(--accent-2) 80%, var(--ink)); }
.done-check.wait circle { fill: color-mix(in oklab, var(--accent-2) 18%, transparent); }
[data-unidade="pb"] .done-check.wait :is(circle, path), [data-unidade="sp"] .done-check.wait :is(circle, path) { stroke: var(--accent); }

.ticket { display: grid; grid-template-columns: 1fr 200px; border-radius: 24px; overflow: hidden; background: var(--card); box-shadow: var(--shadow), 0 0 0 1px var(--line); position: relative; }
.ticket::before, .ticket::after { content: ''; position: absolute; right: 188px; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.ticket::before { top: -12px; } .ticket::after { bottom: -12px; }
.tk-main { padding: 22px 24px; position: relative; }
.tk-main::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--ribbon); }
.tk-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.tk-top img { height: 30px; }
.tk-top span { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.tk-main h4 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 16px; }
.tk-main dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin: 0; }
.tk-main dt { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.tk-main dd { margin: 2px 0 0; font-weight: 500; font-size: .9rem; }
.tk-stub { display: grid; place-items: center; align-content: center; gap: 10px; padding: 20px; border-left: 2px dashed var(--line-strong); background: var(--paper-2); color: var(--ink); }
.tk-stub .qr { width: 140px; border-radius: 8px; }
.tk-stub code { font-size: .74rem; font-weight: 600; letter-spacing: .06em; }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.done-actions .btn.ghost { min-height: 48px; }

.protocol { display: grid; gap: 2px; padding: 12px 22px; border-radius: 16px; background: var(--card); box-shadow: 0 0 0 1px var(--line); margin-top: 6px; }
.protocol small { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.protocol code { font-size: 1.05rem; font-weight: 600; letter-spacing: .04em; }
.next-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; text-align: left; }
.next-steps li { display: flex; gap: 10px; align-items: center; font-size: .9rem; color: var(--ink-2); }
.next-steps .icon { color: var(--accent); }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 140; display: flex; gap: 8px; align-items: center; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .9rem; box-shadow: var(--shadow-l); transform: translate(-50%, 140%); transition: transform .45s var(--ease); }
.toast.on { transform: translate(-50%, 0); }

/* ---------- Como chegar ---------- */
.route-modal .modal-box { width: min(1120px, 100%); height: min(680px, calc(100dvh - 48px)); }
.route { display: grid; grid-template-columns: 380px 1fr; height: 100%; min-height: 0; }
.route-side { position: relative; padding: 28px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; background: var(--card); }
.route-side .mw-x { left: auto; }
.route-side h3 { font-size: 1.6rem; font-weight: 600; letter-spacing: -.03em; padding-right: 48px; }
.route-dest { display: flex; gap: 8px; color: var(--ink-2); font-size: .9rem; }
.route-dest .icon { color: var(--accent); margin-top: 3px; }
.geo { width: 100%; justify-content: center; }
.geo-msg { font-size: .82rem; color: var(--ink-3); min-height: 1.2em; margin-top: -6px; display: flex; gap: 6px; align-items: center; }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border-radius: 16px; background: var(--paper-2); }
.modes button { display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border-radius: 12px; font-size: .8rem; color: var(--ink-3); transition: all .3s var(--ease); }
.modes button .icon { width: 22px; height: 22px; }
.modes button[aria-checked="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-s); }
.route-side .btn.accent { justify-content: space-between; width: 100%; }
.route-open { margin-top: auto; display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.route-open a { display: flex; gap: 8px; align-items: center; font-size: .88rem; font-weight: 500; }
.route-open a:hover { color: var(--brand); }
.route-map { position: relative; background: var(--paper-3); min-height: 0; }
.route-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-loading { position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in oklab, var(--paper) 60%, transparent); opacity: 0; pointer-events: none; transition: opacity .3s; }
.map-loading.on { opacity: 1; }
.map-loading .spin { width: 32px; height: 32px; border-width: 3px; color: var(--accent); }

/* ---------- Painel do evento: preço e vagas ---------- */
.price-tag { font-style: normal; font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: color-mix(in oklab, var(--accent) 70%, var(--ink)); margin-left: 4px; vertical-align: 1px; }
.price-alt { color: var(--ink-3); font-size: .86rem; }
.vagas { font-size: .82rem; color: var(--ink-2); display: grid; gap: 6px; }
.vagas-bar { height: 6px; border-radius: 6px; background: var(--paper-2); position: relative; overflow: hidden; }
.vagas-bar::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: 6px; background: linear-gradient(90deg, var(--accent), color-mix(in oklab, var(--accent-3) 80%, var(--accent))); }
.onde-note.link { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Outros eventos: fundo leve para separar do conteúdo ---------- */
.more-events { position: relative; overflow: hidden; isolation: isolate; padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 110px); background: var(--paper-2); border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.more-events::before { content: ''; position: absolute; z-index: -1; width: 620px; aspect-ratio: 1; right: -220px; top: -260px; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 26px, color-mix(in oklab, var(--accent) 14%, transparent) 26px 28px); }
.more-events .rail-head { margin-top: 0; }

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
    .pay-grid { grid-template-columns: 1fr; }
    .route { grid-template-columns: 1fr; grid-template-rows: auto 340px; overflow-y: auto; }
    .route-modal .modal-box { height: auto; }
    .route-map { min-height: 340px; }
}
@media (max-width: 640px) {
    .modal { padding: 0; place-items: end center; }
    .modal-box, .modal.form-only .modal-box { width: 100%; max-height: 94dvh; border-radius: 28px 28px 0 0; transform: translateY(100%); }
    .modal.open .modal-box { transform: none; }
    .mw-head { padding: 18px 18px 0; }
    .mw-head.simple { padding-bottom: 18px; }
    .mw-body { padding: 20px 18px 28px; }
    .stepper li { font-size: 0; gap: 0; justify-content: center; }
    .stepper li span { font-size: .76rem; }
    .stepper li.on { font-size: .8rem; gap: 8px; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .grid-3 .field:last-child { grid-column: 1 / -1; }
    .methods { gap: 6px; }
    .method { padding: 12px 10px; }
    .method small { display: none; }
    .pix { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .pix-qr { width: 170px; }
    .pix-info ol { text-align: left; }
    .ticket { grid-template-columns: 1fr; }
    .ticket::before, .ticket::after { display: none; }
    .tk-stub { border-left: 0; border-top: 2px dashed var(--line-strong); }
    .route-side { padding: 22px 18px; }
    .seg button { font-size: .86rem; padding: 10px 8px; }
}

/* ---------- Impressão do ingresso ---------- */
@media print {
    html.print-ticket body > *:not(.modal) { display: none !important; }
    html.print-ticket .modal { position: static; padding: 0; display: block; }
    html.print-ticket .modal-backdrop, html.print-ticket .mw-head, html.print-ticket .done-actions, html.print-ticket .done-check, html.print-ticket .demo-fab { display: none !important; }
    html.print-ticket .modal-box { box-shadow: none; max-height: none; width: 100%; transform: none; opacity: 1; background: #fff; }
    html.print-ticket .mw-body { overflow: visible; }
    html.print-ticket .ticket { box-shadow: 0 0 0 1px #999; break-inside: avoid; }
}

/* ---------- Barra de rolagem fina na cor da unidade (modais) ---------- */
/* Firefox usa as propriedades padrão; Chrome/Edge/Safari usam os pseudo-elementos abaixo (sem setas) */
@supports not selector(::-webkit-scrollbar) {
    .mw-body, .route-side, .route { scrollbar-width: thin; scrollbar-color: color-mix(in oklab, var(--accent) 75%, transparent) transparent; }
}
.mw-body::-webkit-scrollbar-button, .route-side::-webkit-scrollbar-button, .route::-webkit-scrollbar-button { display: none; }
.mw-body::-webkit-scrollbar, .route-side::-webkit-scrollbar, .route::-webkit-scrollbar { width: 6px; }
.mw-body::-webkit-scrollbar-track, .route-side::-webkit-scrollbar-track, .route::-webkit-scrollbar-track { background: transparent; margin-block: 14px; }
.mw-body::-webkit-scrollbar-thumb, .route-side::-webkit-scrollbar-thumb, .route::-webkit-scrollbar-thumb { background: color-mix(in oklab, var(--accent) 75%, transparent); border-radius: 999px; }
.mw-body::-webkit-scrollbar-thumb:hover, .route-side::-webkit-scrollbar-thumb:hover, .route::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---------- Rodapé fixo de ações (formulário) ---------- */
.mw-actions { position: relative; z-index: 2; display: grid; gap: 8px; padding: 14px 28px 20px; background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -16px 24px -18px rgba(28, 22, 51, .25); }
.mw-actions .mw-next { margin: 0; }
.mw-actions-hint { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: .8rem; color: var(--ink-3); transition: color .3s; }
.mw-actions-hint.ok { color: color-mix(in oklab, var(--accent) 75%, var(--ink)); }
.btn.mw-next:disabled { opacity: 1; cursor: not-allowed; transform: none; box-shadow: none; --b-bg: var(--paper-3); --b-fg: var(--ink-3); }
.btn.mw-next:disabled .btn-dot { background: var(--card); color: var(--ink-3); transform: none; }
/* enquanto processa (spinner), mantém a cor da unidade */
.btn.mw-next:disabled:has(.spin) { --b-bg: var(--accent); --b-fg: var(--on-accent); cursor: progress; }
.btn.mw-next:not(:disabled) { animation: libera .5s var(--ease-bounce); }
@keyframes libera { 40% { transform: scale(1.03); } }
@media (max-width: 640px) { .mw-actions { padding: 12px 18px calc(16px + env(safe-area-inset-bottom)); } }
