/* Ingresso Pleno pages — sign-in and sign-up, checkout, the wallet and the credential, the account, institutional and
   error pages, the operations screens. Loaded by base.html after identity.css (same tokens, same brand art) and read by
   the ui-classes-defined gate. Reference: docs/reference/design-system.md. */

/* ---------- 1. Sign-in and sign-up: a split welcome — the green statement beside the form (one card on phones) ---------- */
.auth-shell { display: grid; max-width: 68rem; margin: .5rem auto 0; }
@media (min-width: 1024px) { .auth-shell { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); background: #fff; border-radius: var(--radius-2xl); overflow: hidden; box-shadow: 0 30px 70px -40px rgba(0, 35, 27, .45); min-height: 40rem; margin-top: 1rem; } }
.auth-art { display: none; }
@media (min-width: 1024px) { .auth-art { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: 2.75rem; overflow: hidden; isolation: isolate; background: var(--brand-primary); color: #fff; --art-body: #fff; --art-perf: var(--brand-primary); } }
.auth-art .brand-logo { height: 2rem; align-self: flex-start; }
.auth-art > div { position: relative; z-index: 1; }
.auth-art-statement { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.75rem, 1.5rem + 2.4vw, 3.75rem); line-height: .96; letter-spacing: -.045em; color: #fff; max-width: 9ch; }
.auth-art-line { color: var(--ip-verde-200); font-size: 1.125rem; font-weight: 500; margin-top: .9rem; }
.auth-art .art-scene { position: absolute; right: -6.5rem; top: 5.5rem; width: 25rem; height: 21rem; z-index: 0; }
.auth-art .art-scene .art-tilt { width: 62%; left: 0; top: 6%; transform: rotate(-12deg); }
.auth-art .art-scene .art-circle { width: 78%; right: 0; bottom: 0; }
.auth-main { display: flex; align-items: center; justify-content: center; min-width: 0; }
@media (min-width: 1024px) { .auth-main { padding: 3rem; } }
.auth-card { width: 100%; max-width: 27.5rem; margin: 1rem auto 0; padding: 2rem 1.4rem; border-radius: var(--radius-xl); box-shadow: 0 18px 44px -30px rgba(0, 35, 27, .5); }
@media (min-width: 640px) { .auth-card { padding: 2.5rem 2.5rem 2.25rem; } }
@media (min-width: 1024px) { .auth-shell .auth-card { border: 0; box-shadow: none; padding: 0; margin: 0; background: transparent; } }
.auth-head { margin-bottom: 1.75rem; text-align: center; }
.auth-head .eyebrow { margin-bottom: .45rem; }
.auth-head .page-title { font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.4rem); font-weight: 800; letter-spacing: -.035em; }
.auth-sub { font-weight: 500; font-size: 1.0625rem; line-height: 1.5; color: var(--ink-600); margin-top: .4rem; }
.auth-head .brand-mark-logo { width: 4.5rem; height: 3rem; margin: 0 auto 1.25rem; }
@media (min-width: 1024px) { .auth-shell .auth-head { text-align: left; } .auth-shell .auth-head .brand-logo-main, .auth-shell .auth-head .brand-mark-logo { display: none; } }
.auth-foot { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line-soft); font-size: .9rem; color: var(--ink-600); }
/* sign-up: the "check your inbox" steps (sálvia circles, green numerals) and the honeypot field nobody sees */
.auth-steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.auth-steps li { position: relative; padding-left: 2.7rem; font-size: .9375rem; line-height: 1.5; color: var(--ink-700); counter-increment: step; min-height: 1.9rem; }
.auth-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 1.9rem; height: 1.9rem; border-radius: var(--radius-full); background: var(--surface-3); color: var(--brand-primary); font-weight: 800; font-size: .9rem; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 2. Checkout: the steps, the reservation clock, the order as a ticket ---------- */
.steps { display: flex; align-items: center; gap: .45rem; list-style: none; margin: 0 0 1.5rem; padding: 0; counter-reset: step; overflow-x: auto; scrollbar-width: none; }
.steps::-webkit-scrollbar { display: none; }
.steps li { counter-increment: step; display: inline-flex; align-items: center; gap: .5rem; flex: none; font-size: .8125rem; font-weight: 700; color: var(--ink-500); white-space: nowrap; }
.steps li::before { content: counter(step); width: 1.65rem; height: 1.65rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line-strong); color: var(--ink-500); font-size: .75rem; font-weight: 800; }
.steps li:not(:last-child)::after { content: ""; width: 1.75rem; height: 2px; border-radius: 2px; background: var(--line-strong); margin-left: .3rem; }
.steps li.is-done { color: var(--brand-primary); }
.steps li.is-done::before { content: "✓"; background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.steps li.is-done:not(:last-child)::after { background: var(--brand-primary); }
.steps li.is-current { color: var(--ink-900); }
.steps li.is-current::before { background: var(--brand-gold); border-color: var(--brand-gold); color: var(--ip-tinta); }
.flash-brand { display: flex; align-items: center; gap: .75rem; background: var(--surface-3); border: 0; border-left: 0; border-radius: var(--radius-lg); padding: .85rem 1.1rem; color: var(--brand-primary); font-weight: 700; }
.flash-brand .countdown { font-size: 1.35rem; }
.countdown { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; color: var(--brand-primary); }
.countdown.is-urgent { color: var(--danger); }
.checkout-card { padding: 1.25rem; }
@media (min-width: 640px) { .checkout-card { padding: 1.6rem 1.75rem; } }
.checkout-form { display: grid; gap: 2rem; }
.checkout-card legend.section-title, .checkout-card > h2.section-title { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.order-ticket { --pad: 1.25rem; overflow: hidden; border: 0; box-shadow: 0 1px 2px rgba(25, 45, 39, .06), 0 18px 44px -26px rgba(25, 45, 39, .35); font-size: .875rem; }
.order-ticket-head { position: relative; padding: 1.2rem var(--pad) 1.35rem; background: var(--brand-primary); color: var(--ip-verde-200); --focus-ring: var(--focus-ring-on-dark); }
.order-ticket-head .eyebrow { color: var(--brand-gold); }
.order-ticket-head strong { color: #fff; }
.order-ticket-head::before, .order-ticket-head::after { content: ""; position: absolute; bottom: 0; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--canvas); transform: translateY(50%); z-index: 1; }
.order-ticket-head::before { left: -.7rem; }
.order-ticket-head::after { right: -.7rem; }
.order-ticket-body { padding: 1.25rem var(--pad) var(--pad); background: #fff linear-gradient(90deg, var(--line-strong) 55%, transparent 0) .9rem 0 / .7rem 1.5px repeat-x; }
.summary-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; line-height: 1.15; letter-spacing: -.025em; margin: .3rem 0 .35rem; color: #fff; }
.summary-lines { width: 100%; font-variant-numeric: tabular-nums; }
.summary-lines td { padding: .35rem 0; vertical-align: top; }
.summary-total td { padding-top: .75rem; border-top: 1px solid var(--line); font-weight: 800; font-size: 1rem; color: var(--ink-900); }
.summary-total .price { font-size: 1.35rem; }
.success-card { position: relative; overflow: hidden; isolation: isolate; padding: 2.25rem 1.5rem; border-radius: var(--radius-2xl); background: var(--brand-primary); color: #fff; text-align: center; --focus-ring: var(--focus-ring-on-dark); }
@media (min-width: 640px) { .success-card { padding: 3rem 2.75rem; } }
.success-card .page-title { color: #fff; font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); font-weight: 800; letter-spacing: -.04em; }
.success-card .auth-sub { color: var(--ip-verde-200); }
.success-card p { color: var(--ip-verde-200); }
.success-card .art-scene { position: absolute; right: -6rem; top: -7rem; width: 18rem; height: 18rem; z-index: -1; opacity: .9; }
.success-mark { width: 3.5rem; height: 3.5rem; margin: 0 auto 1.1rem; border-radius: 50%; background: var(--brand-gold); color: var(--ip-tinta); display: flex; align-items: center; justify-content: center; }

/* ---------- 3. The wallet and the credential: green tickets with the cut in the page colour ---------- */
.wallet-hero { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem; padding: 1.75rem 1.5rem; border-radius: var(--radius-xl); background: var(--brand-primary); color: #fff; --focus-ring: var(--focus-ring-on-dark); }
@media (min-width: 640px) { .wallet-hero { padding: 2.25rem 2.25rem 2rem; } }
.wallet-hero::after { content: ""; position: absolute; right: -4rem; top: -5.5rem; width: 11rem; aspect-ratio: 1; border-radius: 50%; background: var(--brand-gold); z-index: -1; pointer-events: none; }
@media (min-width: 1024px) { .wallet-hero::after { top: -7rem; width: 17rem; } }   /* the circle stays in the corner, never behind the text */
.wallet-hero > div:first-child { max-width: 40rem; }
.wallet-hero .page-title { color: #fff; margin: .35rem 0 0; font-weight: 800; letter-spacing: -.035em; }
.wallet-hero .eyebrow { color: var(--brand-gold); margin: 0; }
.wallet-hero p { color: rgba(255, 255, 255, .86); }
.wallet-greeting { font-weight: 600; font-size: 1.05rem; color: #fff; margin-top: .75rem; }
.wallet-greeting a { color: #fff; text-decoration: underline; text-decoration-color: var(--brand-gold); text-underline-offset: 3px; }
.wallet-stats { display: flex; gap: .5rem; }
.wallet-stat { display: flex; flex-direction: column; align-items: center; min-width: 4.9rem; padding: .65rem .8rem; border-radius: var(--radius); background: var(--ip-verde-700); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }   /* solid: it may sit on the gold circle */
.wallet-stat strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; line-height: 1; }
.wallet-stat span { font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; opacity: .85; margin-top: .3rem; }
.ticket { position: relative; display: grid; grid-template-columns: 1fr; border-radius: var(--radius-xl); background: var(--brand-primary); color: #fff; overflow: hidden; text-decoration: none; box-shadow: 0 18px 40px -28px rgba(0, 35, 27, .75); transition: transform .25s var(--ease), box-shadow .25s var(--ease); --focus-ring: var(--focus-ring-on-dark); }
a.ticket:hover { transform: translateY(-3px); box-shadow: 0 28px 54px -30px rgba(0, 35, 27, .8); }
a.ticket:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 3px; }
.ticket-cover { position: relative; min-height: 11.5rem; background: var(--ip-verde-800) center / cover no-repeat; display: flex; flex-direction: column; justify-content: flex-end; gap: .25rem; padding: 1.1rem 1.2rem; }
.ticket-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 35, 27, .12) 0%, rgba(0, 35, 27, .62) 38%, rgba(0, 35, 27, .9) 70%, rgba(0, 71, 55, .98) 100%); }
.ticket-cover > * { position: relative; }
.ticket-cover .eyebrow { color: var(--brand-gold); }
.ticket-title { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; line-height: 1.15; letter-spacing: -.025em; text-shadow: 0 1px 2px rgba(0, 35, 27, .35); }
.ticket-when { display: flex; align-items: center; gap: .4rem; font-size: .8125rem; font-weight: 600; color: rgba(255, 255, 255, .92); }
.ticket-when .icon { flex: none; color: var(--brand-gold); }
.ticket-date { position: absolute; top: .9rem; left: 1rem; display: flex; flex-direction: column; align-items: center; min-width: 3.25rem; padding: .45rem .5rem .4rem; border-radius: var(--radius); background: #fff; color: var(--brand-primary); line-height: 1; }
.ticket-date strong { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; letter-spacing: -.03em; }
.ticket-date span { font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--brand-gold-text); margin-top: .25rem; }
.ticket-soon { position: absolute; top: 1rem; right: 1rem; }
.ticket-stub { position: relative; padding: 1.15rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .55rem; background: var(--brand-primary); color: #fff; border-top: 2px dashed rgba(255, 255, 255, .32); }
.ticket-stub::before, .ticket-stub::after { content: ""; position: absolute; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--canvas); top: -.75rem; }
.ticket-stub::before { left: -.75rem; }
.ticket-stub::after { right: -.75rem; }
.ticket-stub .text-slate-600, .ticket-stub .text-slate-500 { color: var(--ip-verde-200); }
.ticket-seat { font-family: var(--font-display); color: #fff; font-weight: 800; font-size: 1.6rem; letter-spacing: -.03em; line-height: 1; overflow-wrap: anywhere; }
.ticket-seat small { display: block; font-family: var(--font-sans); font-weight: 800; font-size: .64rem; text-transform: uppercase; letter-spacing: .14em; color: var(--brand-gold); margin-bottom: .4rem; }
.ticket-code { font-family: var(--font-sans); font-weight: 700; font-size: .75rem; letter-spacing: .16em; color: var(--ip-verde-200); }
.ticket-cta { display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; align-self: flex-start; padding: .45rem .9rem; border-radius: var(--radius-full); background: var(--brand-gold); color: var(--ip-tinta); font-weight: 800; font-size: .8125rem; }
.ticket-past { opacity: .82; filter: saturate(.7); }
.ticket-past .ticket-cover::before { background: linear-gradient(180deg, rgba(0, 35, 27, .45), rgba(0, 71, 55, .92)); }
@media (min-width: 640px) {
  .ticket { grid-template-columns: 1.4fr 1fr; }
  .ticket-cover { min-height: 13rem; }
  .ticket-stub { border-top: 0; border-left: 2px dashed rgba(255, 255, 255, .32); }
  .ticket-stub::before, .ticket-stub::after { left: -.75rem; right: auto; }
  .ticket-stub::before { top: -.75rem; }
  .ticket-stub::after { top: auto; bottom: -.75rem; }
}
.pass { max-width: 30rem; margin: 0 auto; border-radius: var(--radius-2xl); background: var(--brand-primary); color: #fff; overflow: hidden; box-shadow: 0 30px 60px -34px rgba(0, 35, 27, .7); --focus-ring: var(--focus-ring-on-dark); }
.pass-cover { position: relative; min-height: 14rem; background: var(--ip-verde-800) center / cover no-repeat; color: #fff; padding: 1.35rem 1.5rem; display: flex; flex-direction: column; justify-content: flex-end; gap: .35rem; }
.pass-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 35, 27, .15) 0%, rgba(0, 35, 27, .62) 36%, rgba(0, 35, 27, .9) 68%, rgba(0, 71, 55, .98) 100%); }
.pass-cover > * { position: relative; }
.pass-cover .eyebrow { color: var(--brand-gold); }
.pass-title { font-family: var(--font-display); font-weight: 800; font-size: 1.65rem; line-height: 1.1; letter-spacing: -.035em; text-shadow: 0 1px 2px rgba(0, 35, 27, .35); }
.pass-line { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; font-size: .875rem; font-weight: 600; color: rgba(255, 255, 255, .92); }
.pass-line .icon { flex: none; color: var(--brand-gold); }
.pass-line a { color: #fff; text-decoration: underline; text-decoration-color: var(--brand-gold); text-underline-offset: 2px; }
.pass-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1rem; padding: 1.1rem 1.5rem .25rem; color: #fff; }
.pass-fact .eyebrow { color: var(--brand-gold); margin-bottom: .2rem; }
.pass-fact strong { font-weight: 700; overflow-wrap: anywhere; }
.pass-fact .text-slate-600, .pass-fact .text-slate-500 { color: var(--ip-verde-200); }
.pass-fact .link { color: #fff; }
.pass-seat { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .9rem 1rem; border-radius: var(--radius); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); }
.pass-seat .ticket-seat { color: #fff; }
.pass-tear { position: relative; height: 0; border-top: 2px dashed rgba(255, 255, 255, .32); margin: 1.1rem 0 .25rem; }
.pass-tear::before, .pass-tear::after { content: ""; position: absolute; top: -.85rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--canvas); }
.pass-tear::before { left: -.85rem; }
.pass-tear::after { right: -.85rem; }
.pass-qr { padding: 1.1rem 1.5rem .6rem; text-align: center; }
.pass-qr .qr { margin: 0 auto; padding: .9rem; background: #fff; border-radius: var(--radius-lg); width: fit-content; box-shadow: 0 0 0 6px rgba(255, 255, 255, .1); }
.pass-qr .qr svg { width: 100%; height: auto; max-width: 240px; display: block; }
.pass-code { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 800; letter-spacing: .2em; margin-top: .9rem; color: #fff; }
.pass-hint { font-size: .8rem; color: rgba(255, 255, 255, .8); margin-top: .35rem; }
.pass-body { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .9rem; background: #fff; color: var(--ink-900); margin-top: 1.1rem; }

/* ---------- 4. The account: the section title above its tabs ---------- */
.account-head { margin-bottom: 1.5rem; }
.account-head .eyebrow { margin-bottom: .35rem; }
.account-head .tabs { margin-top: .5rem; }

/* ---------- 5. Institutional and legal pages: a summary and an editorial body rendered from the light markup ---------- */
.page-toc { margin: 1.5rem 0 2rem; padding: 1.1rem 1.35rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.page-toc ol { margin: .5rem 0 0; padding: 0; list-style: none; columns: 1; column-gap: 2rem; font-size: .875rem; }
@media (min-width: 640px) { .page-toc ol { columns: 2; } }
.page-toc li { break-inside: avoid; padding: .2rem 0; }
.page-toc a { color: var(--ink-800); text-decoration: none; }
.page-toc a:hover { color: var(--brand-primary); text-decoration: underline; text-decoration-color: var(--brand-gold); text-underline-offset: 3px; }
.page-body { font-size: 1.0625rem; line-height: 1.75; color: var(--ink-800); }
.page-body p { margin: 0 0 1rem; }
.page-body h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; line-height: 1.2; letter-spacing: -.02em; margin: 2.5rem 0 .75rem; padding-top: 1.35rem; border-top: 1px solid var(--line); color: var(--brand-primary); scroll-margin-top: calc(var(--topbar-h) + 1rem); }
.page-body h2:first-child { border-top: 0; padding-top: 0; margin-top: .5rem; }
.page-body h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; margin: 1.6rem 0 .5rem; color: var(--ink-900); }
.page-body ul, .page-body ol { margin: 0 0 1rem; padding-left: 1.5rem; }
.page-body ul { list-style: disc; }
.page-body ol { list-style: decimal; }
.page-body li { margin: .3rem 0; }
.page-body li::marker { color: var(--brand-gold-text); font-weight: 800; }
.page-body strong { color: var(--ink-900); }
.page-body a { color: inherit; text-decoration: underline; text-decoration-color: var(--brand-gold); text-underline-offset: 3px; }
.page-body .table-wrap { margin: 0 0 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); }
.page-body .table td { vertical-align: top; }
.contact-message { white-space: pre-line; margin: .85rem 0; padding: .9rem 1rem; background: var(--surface-2); border-radius: var(--radius); font-size: .9375rem; line-height: 1.6; color: var(--ink-800); }

/* ---------- 6. Error pages: the code in gold beside the ticket ---------- */
.error-page { display: grid; gap: 1.5rem; align-items: center; max-width: 62rem; margin: 1.5rem auto 0; }
@media (min-width: 768px) { .error-page { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 3rem; margin-top: 3rem; } }
.error-page .error-code { margin: 0; font-family: var(--font-display); font-size: clamp(4.5rem, 3rem + 7vw, 8.5rem); font-weight: 800; line-height: .9; letter-spacing: -.06em; color: var(--brand-gold-text); }
.error-page .page-title { margin-top: 1rem; font-weight: 800; letter-spacing: -.035em; }
.error-page p { font-size: 1.0625rem; color: var(--ink-600); margin-top: .6rem; max-width: 30rem; }
.error-art { position: relative; aspect-ratio: 1 / .85; max-width: 26rem; width: 100%; margin-inline: auto; }
@media (max-width: 767px) { .error-art { max-width: 15rem; order: -1; } }
.error-art .art-circle { width: 76%; right: 0; bottom: 0; }
.error-art .art-tilt { width: 78%; left: 0; top: 14%; transform: rotate(-14deg); }

/* ---------- 7. Operations (gate, box office, bar): green header, big targets, one decision per screen ---------- */
.ops-title { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ops-title span { color: var(--ip-verde-200); font-weight: 600; }
.ops-card { display: grid; gap: .65rem; padding: 1.1rem 1.2rem; }
.ops-card .card-title { font-size: 1.125rem; }
.ops-meta { font-size: .875rem; font-weight: 500; color: var(--ink-600); }
.session-pick { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; color: inherit; text-decoration: none; }
.session-pick .date-chip { position: static; flex: none; background: var(--surface-3); box-shadow: none; }
.session-pick-go { display: inline-flex; align-items: center; gap: .25rem; flex: none; padding: .45rem .8rem; border-radius: var(--radius-full); background: var(--brand-primary); color: #fff; font-size: .8125rem; font-weight: 800; }
@media (max-width: 479px) { .session-pick-go { padding: .55rem; font-size: 0; } .session-pick-go .icon { width: 1.1rem; height: 1.1rem; } }

/* ---------- 2b. Checkout: the card form — the drawn card (green ground, the gold circle), saved cards, adornments ---------- */
.card-stage { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .card-stage { grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); align-items: start; } .card-stage .card-preview { position: sticky; top: calc(var(--topbar-h) + 1rem); } }
.card-preview { position: relative; width: 100%; max-width: 22rem; aspect-ratio: 1.586; margin: 0 auto; perspective: 1200px; pointer-events: none; user-select: none; font-family: var(--font-display); }
.card-face { position: absolute; inset: 0; border-radius: 1rem; padding: 1.1rem 1.25rem; color: #fff; background: linear-gradient(135deg, #0A5A47 0%, var(--brand-primary) 55%, var(--brand-accent) 100%); box-shadow: 0 24px 48px -24px rgba(0, 35, 27, .7), 0 2px 6px rgba(25, 45, 39, .12); backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .6s var(--ease); overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; }
.card-face::before { content: ""; position: absolute; width: 13rem; height: 13rem; border-radius: 50%; background: var(--brand-gold); right: -5rem; top: -6.5rem; opacity: .95; z-index: -1; }
.card-back { transform: rotateY(180deg); justify-content: flex-start; gap: .9rem; padding-top: 1.5rem; }
.card-preview.is-flipped .card-front { transform: rotateY(180deg); }
.card-preview.is-flipped .card-back { transform: rotateY(360deg); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.card-chip { width: 2.6rem; height: 1.9rem; border-radius: .45rem; background: linear-gradient(135deg, #F3D28B, var(--brand-gold) 60%, var(--brand-gold-text)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); position: relative; flex: none; }
.card-chip::after { content: ""; position: absolute; inset: .35rem .5rem; border: 1px solid rgba(0, 0, 0, .25); border-radius: .25rem; }
.card-brand { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .65rem; border-radius: var(--radius-full); background: rgba(255, 255, 255, .94); color: var(--brand-primary); min-height: 1.6rem; white-space: nowrap; }
.card-brand:empty { visibility: hidden; }
.card-number { font-family: var(--font-mono); font-size: clamp(1rem, 4.4vw, 1.3rem); letter-spacing: .08em; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.card-meta { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-end; }
.card-meta > span { min-width: 0; }
.card-label { display: block; font-size: .55rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ip-verde-200); margin-bottom: .15rem; }
.card-value { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-stripe { height: 2.4rem; background: #10231D; margin: 0 -1.25rem; flex: none; }
.card-signature { background: repeating-linear-gradient(0deg, var(--ip-marfim), var(--ip-marfim) .35rem, #E2DFD6 .35rem, #E2DFD6 .5rem); color: var(--ink-900); height: 2.2rem; border-radius: .3rem; display: flex; align-items: center; justify-content: flex-end; padding: 0 .6rem; }
.card-cvv { font-family: var(--font-mono); font-weight: 700; letter-spacing: .2em; background: #fff; padding: .1rem .4rem; border-radius: .2rem; font-variant-numeric: tabular-nums; }
.card-hint { font-size: .62rem; font-weight: 600; color: var(--ip-verde-200); text-align: right; margin: 0; }
@media (prefers-reduced-motion: reduce) { .card-face { transition: none; } }
.saved-cards { display: grid; gap: .6rem; }
@media (min-width: 640px) { .saved-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.saved-card { position: relative; display: grid; grid-template-columns: auto 1fr; gap: .15rem .75rem; align-items: center; padding: .8rem .95rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.saved-card:hover { border-color: var(--ink-400); }
.saved-card.is-on { border-color: var(--brand-primary); box-shadow: 0 0 0 3px var(--brand-primary-ring); }
.saved-card input { grid-row: 1 / span 3; margin: 0; accent-color: var(--brand-primary); }
.saved-card-brand { font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-gold-text); }
.saved-card-number { font-family: var(--font-mono); font-weight: 700; font-size: .95rem; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.saved-card-meta { font-size: .75rem; color: var(--ink-500); }
.saved-card-new .saved-card-number { font-family: var(--font-sans); }
.saved-card-static { grid-template-columns: 1fr; cursor: default; }
.saved-card-static > * { grid-column: 1; }
.field-adorned { position: relative; }
.field-adorned .input { padding-right: 7rem; }
.field-badge { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-primary); background: var(--surface-3); padding: .25rem .55rem; border-radius: var(--radius-full); pointer-events: none; white-space: nowrap; }
.field-status { font-size: .75rem; font-weight: 600; margin-top: .35rem; color: var(--ink-500); }
.field-status.is-done { color: var(--ok-ink); }
.field-status.is-warn { color: var(--warn-ink); }

/* --- Simplified purchase without an account (/compra-facil): one calm page — name, e-mail, CPF — filled once, often on a
   phone, by people who do not type every day. Bigger controls and copy, one column, the house palette untouched. --- */
.form-easy { display: grid; gap: 1.5rem; --control-h: 3.25rem; }
.form-easy-head .page-title { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.25rem); }
.form-easy-lead { font-size: 1.0625rem; line-height: 1.55; color: var(--ink-700); margin-top: .5rem; }
.form-easy .label { font-size: 1.0625rem; font-weight: 700; color: var(--ink-900); margin-bottom: .45rem; }
.form-easy .input, .form-easy .select { font-size: 1.125rem; line-height: 1.5rem; padding: .75rem 1rem; }
.form-easy .help { font-size: .9375rem; line-height: 1.5; margin-top: .45rem; }
.form-easy .field-error { font-size: .9375rem; margin-top: .45rem; }
.form-easy .flash { font-size: 1rem; }
.form-easy .check { font-size: 1rem; gap: .8rem; line-height: 1.5; }
.form-easy .check input { width: 1.4rem; height: 1.4rem; margin-top: .1rem; flex: none; accent-color: var(--brand-primary); }
.form-easy .btn-lg { min-height: 3.5rem; font-size: 1.125rem; }
.form-easy-group { display: grid; gap: 1rem; padding: 1.1rem 1.2rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-2); }
.form-easy-group > .label { margin-bottom: 0; }
.form-easy-terms summary { cursor: pointer; font-weight: 700; font-size: 1rem; color: var(--brand-primary); }
.form-easy-terms .panel { margin-top: .6rem; max-height: 12rem; overflow: auto; white-space: pre-line; font-size: .9375rem; color: var(--ink-700); }
.form-easy-foot { font-size: 1rem; line-height: 1.6; color: var(--ink-600); text-align: center; }
.form-easy-assurances { font-size: .9375rem; }
