:root{--ink:#0f172a;--muted:#475569;--line:#e2e8f0;--blue:#2563eb;--deep:#091322;--paper:#fdfdfb;--green:#047857}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:#f3f6fa;color:var(--ink);font:16px/1.6 "DM Sans",sans-serif;scrollbar-color:#94a3b8 #f3f6fa}
::selection{background:#bfdbfe;color:var(--ink)}
a{color:#1d4ed8;text-underline-offset:3px}
button,input,textarea{font:inherit}
button{cursor:pointer}
button:disabled{cursor:default;opacity:.5}
:focus-visible{outline:3px solid #38bdf8;outline-offset:3px}
svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.shell{width:min(1120px,calc(100% - 48px));margin:auto}
.topbar{background:var(--deep);color:white}
.bar-content{min-height:72px;display:flex;justify-content:space-between;align-items:center;gap:20px}
.brand{display:flex;align-items:center;gap:10px;font:800 17px "Manrope",sans-serif;text-decoration:none;color:white}
.secure{display:flex;align-items:center;gap:8px;color:#a7f3d0;font-size:13px}
.back{display:inline-flex;align-items:center;gap:8px;margin:26px 0 32px;color:var(--muted);font-size:14px;text-decoration:none;min-height:32px}
.back:hover{text-decoration:underline}
.checkout-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:56px;align-items:start}
h1,h2{font-family:"Manrope",sans-serif}
h1{font-size:clamp(30px,3.5vw,42px);line-height:1.15;letter-spacing:-.03em;margin:0 0 16px;font-weight:800}
.lead{font-size:16px;max-width:52ch;color:var(--muted);margin:0 0 26px}
.steps{display:flex;list-style:none;padding:0;gap:28px;margin:0 0 28px;color:var(--muted);font-size:13px;font-weight:700}
.steps li{display:flex;gap:9px;align-items:center}
.steps span{display:grid;place-items:center;width:26px;height:26px;border:1px solid #cbd5e1;border-radius:50%}
.steps [aria-current]{color:#1d4ed8}
.steps [aria-current] span{background:var(--blue);border-color:var(--blue);color:white}
.panel{padding:26px;background:white;border:1px solid var(--line);border-radius:16px;margin-bottom:20px}
.panel h2{font-size:18px;line-height:1.4;margin:0;font-weight:800;letter-spacing:-.02em}
.panel p{color:var(--muted);margin:8px 0 18px;font-size:14px}
.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
label{display:block;font-size:13px;font-weight:700;margin-bottom:8px}
input,textarea{min-width:0;width:100%;border:1px solid #cbd5e1;border-radius:10px;background:#fbfcfe;padding:12px 14px;color:var(--ink);caret-color:var(--blue)}
input:focus,textarea:focus{border-color:var(--blue)}
.search-row{display:flex;gap:10px}
.primary,.secondary{border:0;border-radius:10px;padding:13px 18px;min-height:48px;font:700 14px/1.4 "Manrope",sans-serif}
.primary{background:var(--blue);color:white}
.primary:hover:not(:disabled){background:#1d4ed8}
.secondary{background:#edf2f8;color:var(--ink)}
.secondary:hover:not(:disabled){background:#e2e8f0}
.search-row .primary{white-space:nowrap}
.full{width:100%}
.text-button{background:transparent;border:0;padding:8px 0;color:#1d4ed8;font-size:13px;font-weight:700;min-height:44px;text-decoration:underline;text-underline-offset:3px}
.panel .match{display:flex;align-items:center;gap:8px;color:var(--green);font-weight:700;margin-top:18px}
.identity-list{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0;padding-bottom:20px;border-bottom:1px solid var(--line)}
.identity-email{grid-column:1/-1}
dt{color:var(--muted);font-size:13px}
dd{margin:3px 0 0;font-weight:600;overflow-wrap:anywhere}
.caption,.panel .caption{color:var(--muted);font-size:12px;line-height:1.6;margin-bottom:0}
.quantity-row{display:flex;gap:22px;align-items:center;margin:24px 0;font-size:14px}
.stepper{display:flex;border:1px solid #cbd5e1;border-radius:10px;overflow:hidden}
.stepper button{width:46px;min-height:48px;border:0;background:#eff6ff;color:#1d4ed8;font-size:22px}
.stepper input{width:62px;text-align:center;border:0;border-radius:0;padding:8px;appearance:textfield;font-weight:700}
.stepper input::-webkit-inner-spin-button{appearance:none}
.stepper:focus-within{outline:3px solid #38bdf8;outline-offset:3px}
.panel .capacity{background:#eff6ff;border-radius:8px;color:#1e40af;padding:12px;font-weight:600;font-size:13px}
#pay{margin-top:24px}
.panel .payment-note{text-align:center;font-size:12px;margin:10px 0 0}
.summary{position:sticky;top:32px}
.receipt{background:var(--paper);border-top:4px solid var(--blue);padding:28px;box-shadow:0 12px 28px -20px #09132266}
.receipt-heading{display:flex;align-items:center;gap:12px;font:700 14px "JetBrains Mono",monospace}
.receipt-heading svg{color:var(--blue);width:24px;height:24px}
.receipt h2{font-size:13px;font-weight:500;color:var(--muted);margin:12px 0 24px}
.receipt-lines{border-top:1px dashed #cbd5e1;border-bottom:1px dashed #cbd5e1;padding:20px 0;margin:0}
.receipt-lines div{display:flex;justify-content:space-between;gap:12px;margin:8px 0}
.receipt-lines dd{font:500 14px "JetBrains Mono",monospace}
.total-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-top:24px}
.total-row>span{font-size:14px}
.total-row strong{color:#1d4ed8;font:700 29px "JetBrains Mono",monospace;white-space:nowrap}
.receipt-caption{font-size:11px;text-align:right;color:var(--muted);margin:6px 0 24px}
.benefits{padding:18px 0 0;list-style:none;border-top:1px solid var(--line);margin:0;font-size:12px;color:var(--muted)}
.benefits li{padding:5px 0 5px 18px;position:relative}
.benefits li:before{content:"";position:absolute;left:1px;top:12px;width:7px;height:4px;border-bottom:2px solid var(--green);border-left:2px solid var(--green);transform:rotate(-45deg)}
.help{font-size:12px;text-align:center;color:var(--muted);line-height:1.9;margin:22px 0}
.help a{font-weight:700}
.notice{padding:16px;border-radius:10px;margin:16px 0}
.error{background:#fef2f2;color:#991b1b;border:1px solid #fecaca;font-size:14px}
.qr{display:block;margin:24px auto;max-width:100%;height:auto}
#pix-code{font:12px/1.7 "JetBrains Mono",monospace;resize:vertical;margin-bottom:10px}
#payment.is-approved{border-color:#86efac}
#payment.is-approved h2{color:var(--green)}
#restart{margin-top:14px}
footer{padding:42px 0 28px;color:var(--muted);font-size:12px}
@media(max-width:980px){.checkout-layout{gap:28px;grid-template-columns:minmax(0,1fr) 310px}.search-row{flex-direction:column}.receipt{padding:22px}}
@media(max-width:720px){.shell{width:calc(100% - 32px)}.bar-content{min-height:70px;gap:10px}.brand{font-size:14px}.secure{font-size:10px;max-width:125px;line-height:1.4}.secure svg{width:16px}.back{margin:18px 0 24px}.checkout-layout{grid-template-columns:1fr;gap:12px}h1{font-size:32px}.lead{font-size:15px}.panel{padding:22px}.steps{gap:18px;font-size:12px}.summary{position:static}.receipt{padding:24px}.quantity-row{gap:16px}.panel-heading{align-items:flex-start}.panel-heading .text-button{min-width:82px;padding-top:0}.identity-list{gap:14px}.total-row strong{font-size:30px}footer{padding-top:20px}}
