:root {
  --red: #b71522;
  --red-dark: #92111b;
  --red-soft: #fff0f1;
  --navy: #173a69;
  --navy-dark: #10294b;
  --ink: #172033;
  --muted: #687386;
  --line: #e2e6ec;
  --surface: #ffffff;
  --background: #f4f6f9;
  --success: #16784b;
  --warning: #9a5b00;
  --shadow: 0 18px 50px rgba(23, 58, 105, .12);
  --radius: 20px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--background); }
body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--background); }
button, input { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.centered { text-align: center; }
.eyebrow { margin: 0 0 6px; color: var(--red); font-size: .74rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 10px; color: var(--navy-dark); font-size: clamp(1.75rem, 5vw, 2.6rem); line-height: 1.08; }
h2 { margin-bottom: 8px; color: var(--navy-dark); font-size: 1.25rem; }

.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 1.1fr) minmax(360px, .9fr); }
.brand-panel { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 34px; padding: clamp(36px, 7vw, 110px); color: white; background: linear-gradient(145deg, var(--navy-dark), var(--navy) 62%, #254f84); }
.brand-panel::before, .brand-panel::after { position: absolute; content: ""; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; }
.brand-panel::before { width: 430px; height: 430px; right: -180px; top: -160px; }
.brand-panel::after { width: 620px; height: 620px; left: -320px; bottom: -420px; }
.brand-panel > * { position: relative; z-index: 1; }
.brand-panel h1 { color: white; font-size: clamp(2.7rem, 7vw, 5.4rem); letter-spacing: -.05em; }
.brand-panel p:not(.eyebrow) { max-width: 620px; color: #e9f0f8; font-size: 1.08rem; line-height: 1.65; }
.brand-panel .eyebrow { color: #ffb8bd; }
.brand-logo { width: 190px; border-radius: 20px; box-shadow: 0 18px 50px rgba(0,0,0,.2); }
.campaign-panel { display: block; padding: 0; background: #0b4278; }
.campaign-panel::before, .campaign-panel::after { display: none; }
.campaign-hero { display: block; width: 100%; height: 100vh; object-fit: cover; object-position: center top; }
.auth-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.auth-heading img { width: 58px; height: 58px; border-radius: 14px; object-fit: contain; }
.auth-heading div { display: grid; gap: 2px; }
.auth-heading strong { color: var(--navy-dark); font-size: 1.08rem; }
.auth-heading span { color: var(--muted); font-size: .78rem; }
.trust-list { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-list span { padding: 9px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #f6f9fd; font-size: .82rem; background: rgba(255,255,255,.07); }
.auth-card { align-self: center; width: min(460px, calc(100% - 48px)); margin: 32px auto; padding: 34px; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 30px; padding: 4px; border-radius: 14px; background: #f0f2f5; }
.auth-tab { padding: 11px 12px; border: 0; border-radius: 11px; color: var(--muted); background: transparent; font-weight: 700; }
.auth-tab.active { color: var(--navy); background: white; box-shadow: 0 3px 12px rgba(30,47,75,.08); }
.stack { display: flex; flex-direction: column; gap: 18px; }
label { display: flex; flex-direction: column; gap: 7px; color: var(--navy-dark); font-size: .86rem; font-weight: 750; }
input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #ccd3dc; border-radius: 12px; outline: none; color: var(--ink); background: white; transition: border-color .15s, box-shadow .15s; }
input:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(23,58,105,.09); }
.button { min-height: 48px; padding: 12px 18px; border: 0; border-radius: 13px; font-weight: 800; transition: transform .12s, background .12s, opacity .12s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .55; transform: none; }
.button.primary { color: white; background: var(--red); box-shadow: 0 8px 20px rgba(183,21,34,.2); }
.button.primary:hover { background: var(--red-dark); }
.button.secondary { color: var(--navy); border: 1px solid #c8d3e0; background: #edf3fa; box-shadow: none; }
.button.full { width: 100%; }
.text-button { padding: 5px; border: 0; color: var(--red); background: transparent; font-weight: 800; }
.demo-hint { margin: 0; padding: 11px 12px; border: 1px dashed #dba3a8; border-radius: 10px; color: #7e2027; background: var(--red-soft); font-size: .8rem; line-height: 1.45; }

.app-layout { min-height: 100vh; }
.app-header { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 8px max(24px, calc((100vw - 1120px) / 2)); border-bottom: 1px solid rgba(226,230,236,.9); background: rgba(255,255,255,.93); backdrop-filter: blur(14px); }
.app-brand { display: flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; font-weight: 900; }
.app-brand img { width: 48px; height: 48px; border-radius: 11px; object-fit: contain; }
.icon-button { min-height: 38px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--navy); background: white; font-weight: 750; }
.app-main { width: min(1060px, calc(100% - 40px)); margin: 0 auto; padding: 38px 0 110px; }
.page { animation: fade-in .2s ease; }
@keyframes fade-in { from { opacity: .35; transform: translateY(4px); } }
.welcome-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.welcome-row h1 { margin: 0; }
.secure-pill { padding: 8px 11px; border-radius: 999px; color: var(--success); background: #e8f7ef; font-size: .78rem; font-weight: 800; }
.summary-card { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; min-height: 150px; padding: 28px 34px; border-radius: var(--radius); color: white; background: linear-gradient(130deg, var(--navy-dark), var(--navy)); box-shadow: var(--shadow); }
.summary-card > div:not(.summary-divider) { display: flex; flex-direction: column; gap: 6px; }
.summary-card strong { font-size: clamp(1.5rem, 4vw, 2.15rem); }
.summary-card .muted { color: #cdd9e8; }
.summary-label { color: #dbe5f1; font-size: .85rem; }
.summary-divider { width: 1px; height: 70px; background: rgba(255,255,255,.2); }
.skeleton-card { display: block; padding-top: 62px; text-align: center; color: #dbe5f1; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 40px 0 16px; }
.section-heading.compact { margin-top: 34px; }
.section-heading h2 { margin: 0; }
.shortcut-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.shortcut-grid-four .shortcut-icon { background: var(--navy); }
.shortcut-grid-four .shortcut:nth-child(1) .shortcut-icon,
.shortcut-grid-four .shortcut:nth-child(4) .shortcut-icon { background: var(--red); }
.shortcut { display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; align-items: center; padding: 19px; border: 1px solid var(--line); border-radius: 17px; text-align: left; color: var(--ink); background: white; box-shadow: 0 8px 25px rgba(23,58,105,.05); }
.shortcut:hover { border-color: #c7d2e0; transform: translateY(-1px); }
.shortcut-icon { grid-row: 1 / 3; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: white; background: var(--red); font-weight: 900; }
.shortcut strong { color: var(--navy-dark); }
.shortcut small { margin-top: 3px; color: var(--muted); }
.page-title { margin-bottom: 26px; }
.page-title h1 { margin-bottom: 7px; }
.card-list { display: flex; flex-direction: column; gap: 12px; }
.installment-card, .purchase-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 5px 18px rgba(23,58,105,.04); }
.installment-card.selectable { cursor: pointer; }
.installment-card.selected { border-color: var(--red); box-shadow: 0 0 0 3px rgba(183,21,34,.08); }
.installment-card input[type="checkbox"] { width: 20px; min-height: 20px; accent-color: var(--red); }
.card-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 5px; }
.card-title strong { color: var(--navy-dark); }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .82rem; }
.card-value { text-align: right; }
.card-value strong { display: block; color: var(--navy-dark); font-size: 1.05rem; }
.card-value small { color: var(--muted); }
.badge { padding: 4px 8px; border-radius: 999px; font-size: .68rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.badge.overdue { color: #951924; background: var(--red-soft); }
.badge.open { color: #725000; background: #fff5d8; }
.badge.paid { color: var(--success); background: #e8f7ef; }
.badge.payment_processing { color: #725000; background: #fff5d8; }
.badge.renegotiated { color: #4d3a8f; background: #eeeafd; }
.badge.paid_pending_manual_settlement,
.badge.manual_settlement_in_progress { color: #725000; background: #fff5d8; }
.badge.settled { color: var(--success); background: #e8f7ef; }
.processing-card { display: grid; gap: 8px; margin: 0 0 18px; padding: 20px 22px; border: 1px solid #f0d18a; border-radius: 16px; background: #fff9e9; box-shadow: 0 8px 24px rgba(154,91,0,.08); }
.processing-card h2 { margin: 0; }
.processing-card p { margin: 0; }
.processing-card strong { color: var(--navy-dark); }
.empty-card { padding: 30px; border: 1px dashed #cbd2dc; border-radius: 16px; text-align: center; color: var(--muted); background: white; }
.selection-bar { position: sticky; z-index: 10; bottom: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(700px, 100%); margin: 24px auto 0; padding: 14px 16px 14px 20px; border: 1px solid #d9dfe7; border-radius: 17px; background: rgba(255,255,255,.96); box-shadow: 0 14px 40px rgba(16,41,75,.18); backdrop-filter: blur(12px); }
.selection-bar div { display: flex; flex-direction: column; }
.selection-bar span { color: var(--muted); font-size: .78rem; }
.selection-bar strong { color: var(--navy); }
.bottom-nav { position: fixed; z-index: 18; right: 0; bottom: 0; left: 0; display: flex; justify-content: center; gap: min(6vw, 70px); min-height: 68px; padding: 8px 20px max(8px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.bottom-nav a { min-width: 76px; padding: 11px 8px; border-radius: 12px; text-align: center; color: var(--muted); text-decoration: none; font-size: .78rem; font-weight: 750; }
.bottom-nav a.active { color: var(--red); background: var(--red-soft); }
.profile-card { display: flex; align-items: center; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.profile-card > div:last-child { display: flex; flex-direction: column; gap: 4px; }
.avatar { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; color: white; background: var(--navy); font-weight: 900; }
.info-card { margin-top: 14px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.info-card p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }
.menu-card { width: 100%; margin-top: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; display: flex; align-items: center; justify-content: space-between; text-align: left; color: var(--navy-dark); background: white; }
.menu-card span { display: grid; gap: 4px; }
.menu-card small { color: var(--muted); font-weight: 500; }
.menu-card b { color: var(--red); font-size: 1.25rem; }

.metrics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 24px; }
.metrics-grid article { display: grid; gap: 7px; padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: 0 7px 22px rgba(23,58,105,.05); }
.metrics-grid span { color: var(--muted); font-size: .78rem; }
.metrics-grid strong { color: var(--navy-dark); font-size: 1.2rem; }
.compact-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.purchase-list { gap: 16px; }
.purchase-card-v2 { padding: 20px; border: 1px solid var(--line); border-radius: 19px; background: white; box-shadow: 0 8px 25px rgba(23,58,105,.055); transition: border-color .15s, transform .15s; }
.purchase-card-v2.actionable { cursor: pointer; }
.purchase-card-v2.actionable:hover { border-color: #bdcbdc; transform: translateY(-1px); }
.purchase-card-head, .purchase-card-footer, .settlement-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.purchase-card-head > div { display: grid; gap: 4px; }
.purchase-store { color: var(--muted); font-size: .78rem; }
.purchase-card-head strong { color: var(--navy-dark); }
.purchase-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.purchase-facts div { display: grid; gap: 4px; }
.purchase-facts span, .purchase-card-footer span { color: var(--muted); font-size: .72rem; }
.purchase-facts strong, .purchase-card-footer > div { color: var(--navy-dark); font-size: .88rem; }
.purchase-card-footer { align-items: center; }
.purchase-card-footer > div { display: grid; gap: 3px; }
.button.compact { min-height: 40px; padding: 9px 14px; font-size: .82rem; }
.back-button { margin: 0 0 18px; padding: 7px 0; border: 0; color: var(--red); background: transparent; font-weight: 800; }
.purchase-detail-header { margin-bottom: 24px; padding: 24px; border-radius: 20px; color: white; background: linear-gradient(130deg, var(--navy-dark), var(--navy)); box-shadow: var(--shadow); }
.purchase-detail-header h1 { color: white; }
.purchase-detail-header .eyebrow { color: #ffb8bd; }
.detail-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.detail-meta span { display: grid; gap: 4px; }
.detail-meta small { color: #cdd9e8; }
.detail-meta strong { color: white; }
.renegotiation-card, .receipt-card { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: 0 6px 20px rgba(23,58,105,.045); }
.renegotiation-value { color: var(--navy-dark); }
.renegotiation-card .button { justify-self: start; }
.receipt-amount { color: var(--red); font-size: 1.25rem; }
.receipt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 15px; color: var(--muted); font-size: .78rem; }
.receipt-meta span:nth-child(2) { overflow-wrap: anywhere; }

.sheet-dialog { width: min(540px, calc(100% - 24px)); max-height: calc(100vh - 30px); padding: 24px; border: 0; border-radius: 24px; color: var(--ink); background: white; box-shadow: 0 24px 80px rgba(10,26,50,.3); }
.sheet-dialog::backdrop { background: rgba(8,22,41,.58); backdrop-filter: blur(3px); }
.sheet-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.sheet-header h2 { margin: 0; font-size: 1.45rem; }
.quote-lines { max-height: 180px; overflow: auto; padding: 2px; }
.quote-line { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.quote-line span:last-child { font-weight: 800; }
.totals { margin: 18px 0; }
.totals > div { display: flex; justify-content: space-between; padding: 6px 0; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 750; }
.totals .total-row { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--navy-dark); font-size: 1.17rem; }
.totals .total-row dt { color: var(--navy-dark); font-weight: 900; }
.legal-note { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: .72rem; }
.qr-frame { width: min(260px, 70vw); margin: 0 auto 14px; padding: 14px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 8px 24px rgba(23,58,105,.08); }
.qr-frame img { display: block; width: 100%; }
.pix-amount { display: block; text-align: center; color: var(--navy-dark); font-size: 1.75rem; }
.copy-field { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 18px 0; }
.copy-field input { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; background: #f6f7f9; }
.copy-field button { padding: 0 15px; border: 0; border-radius: 11px; color: white; background: var(--navy); font-weight: 800; }
.payment-status { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 16px 0; padding: 12px; border-radius: 12px; color: #6a4b00; background: #fff7df; font-size: .82rem; font-weight: 750; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #d48a00; box-shadow: 0 0 0 0 rgba(212,138,0,.45); animation: pulse 1.5s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(212,138,0,0); } }
.success-state { padding: 12px 0 2px; text-align: center; }
.success-icon { display: grid; place-items: center; width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 50%; color: white; background: var(--success); font-weight: 900; }
.success-state p { color: var(--muted); line-height: 1.5; }
.receipt-ref { padding: 10px; border-radius: 10px; color: var(--navy) !important; background: #edf3fa; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; }
.toast { position: fixed; z-index: 100; top: 18px; left: 50%; max-width: calc(100% - 30px); padding: 12px 16px; border-radius: 12px; color: white; background: var(--navy-dark); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translate(-50%, -12px); transition: opacity .18s, transform .18s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #8f1720; }

.payment-method-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.payment-method { min-height: 66px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.payment-method strong { font-size: 1rem; }
.payment-method small { font-size: .72rem; font-weight: 650; opacity: .82; }
.payment-coming-soon { display: grid; gap: 4px; margin-top: 12px; padding: 13px 14px; border: 1px solid #d8e1ec; border-radius: 13px; color: var(--navy-dark); background: #f2f6fb; text-align: center; }
.payment-coming-soon span { color: var(--muted); font-size: .8rem; }

.quote-dialog { width: min(620px, calc(100% - 28px)); padding: 28px 30px 22px; border-radius: 26px; }
.quote-dialog .sheet-header { margin-bottom: 28px; }
.quote-dialog .sheet-header h2 { font-size: 1.85rem; line-height: 1.1; }
.quote-dialog .icon-button { min-width: 88px; min-height: 48px; font-size: .95rem; }
.quote-dialog .quote-lines { max-height: 210px; }
.quote-dialog .quote-line { align-items: center; padding: 13px 0; font-size: .98rem; }
.quote-dialog .totals { margin: 22px 0 20px; }
.quote-dialog .totals > div { align-items: center; padding: 6px 0; font-size: 1rem; }
.quote-dialog .totals dd { color: var(--navy-dark); font-size: 1.05rem; font-weight: 850; }
.quote-dialog .totals .total-row { margin-top: 12px; padding-top: 17px; font-size: 1.28rem; }
.required-mark, .charges-note span { color: var(--red); font-weight: 900; }
.quote-dialog .payment-method-grid { gap: 12px; }
.quote-dialog .payment-method { min-height: 80px; flex-direction: row; gap: 18px; border-radius: 14px; }
.quote-dialog .payment-method strong { font-size: 1.45rem; }
.quote-dialog .payment-label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.quote-dialog .payment-label small { margin-top: 6px; font-size: .82rem; font-weight: 650; }
.pix-mark { position: relative; width: 44px; height: 44px; flex: 0 0 44px; color: currentColor; }
.pix-mark i { position: absolute; width: 14px; height: 14px; border: 3px solid currentColor; border-radius: 3px; transform: rotate(45deg); }
.pix-mark i:nth-child(1) { top: 1px; left: 15px; }
.pix-mark i:nth-child(2) { top: 15px; right: 1px; }
.pix-mark i:nth-child(3) { bottom: 1px; left: 15px; }
.pix-mark i:nth-child(4) { top: 15px; left: 1px; }
.barcode-mark { width: 44px; height: 38px; flex: 0 0 44px; color: var(--navy-dark); background: repeating-linear-gradient(90deg, currentColor 0 3px, transparent 3px 6px); }
.quote-dialog .legal-note { margin-top: 15px; font-size: .78rem; }
.charges-note { margin: 9px 0 0; text-align: center; color: var(--muted); font-size: .7rem; }
@media (max-width: 780px) {
  .auth-layout { display: block; min-height: 100dvh; padding: 0 0 24px; background: white; }
  .brand-panel { display: none; }
  .campaign-hero { width: 100%; height: auto; aspect-ratio: 10 / 7; object-fit: cover; object-position: center top; }
  .brand-panel > div:not(.trust-list) p:not(.eyebrow), .trust-list { display: none; }
  .brand-panel h1 { margin: 0; font-size: 2.4rem; }
  .brand-logo { width: 105px; border-radius: 14px; }
  .auth-card { position: relative; width: 100%; max-width: 540px; margin: 0 auto; padding: 26px 24px 38px; border: 0; border-radius: 0; box-shadow: none; }
  .app-header { height: 64px; padding: 7px 18px; }
  .app-brand img { width: 43px; height: 43px; }
  .app-main { width: min(100% - 28px, 650px); padding-top: 24px; }
  .summary-card { grid-template-columns: 1fr; gap: 18px; padding: 24px; }
  .summary-divider { width: 100%; height: 1px; }
  .shortcut-grid { grid-template-columns: 1fr; }
  .installment-card, .purchase-card { grid-template-columns: auto 1fr; }
  .card-value { grid-column: 2; text-align: left; }
  .bottom-nav { justify-content: space-around; gap: 0; }
  .bottom-nav a { min-width: 56px; padding-inline: 5px; font-size: .7rem; }
  .metrics-grid, .compact-metrics { grid-template-columns: 1fr 1fr; }
  .purchase-metrics article:last-child { grid-column: 1 / -1; }
  .purchase-facts { grid-template-columns: 1fr 1fr; }
  .detail-meta { grid-template-columns: 1fr 1fr; }
  .sheet-dialog { position: fixed; top: 50%; right: auto; bottom: auto; left: 50%; width: calc(100% - 32px); max-height: calc(100dvh - 32px); margin: 0; border-radius: 24px; overflow-y: auto; transform: translate(-50%, -50%); }
  .quote-dialog { padding: 24px 24px 20px; }
  .quote-dialog .sheet-header { margin-bottom: 20px; }
  .quote-dialog .sheet-header h2 { font-size: 1.45rem; }
  .quote-dialog .payment-method { min-height: 68px; gap: 10px; }
  .quote-dialog .payment-method strong { font-size: 1.12rem; }
  .pix-mark, .barcode-mark { transform: scale(.82); }
}

@media (max-width: 420px) {
  .auth-card { width: 100%; padding: 24px 20px 36px; }
  .welcome-row { align-items: start; }
  .secure-pill { display: none; }
  .selection-bar { bottom: 74px; }
  .bottom-nav { padding-inline: 4px; }
  .bottom-nav a { min-width: 0; flex: 1; }
  .purchase-card-footer { align-items: stretch; flex-direction: column; }
  .purchase-card-footer .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
