@font-face {
  font-family: "Hanken Grotesk";
  src: url("assets/fonts/hankengrotesk-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "DM Serif Display";
  src: url("assets/fonts/dmserifdisplay-400-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --black: #090909;
  --surface: #121212;
  --surface-2: #191919;
  --red: #d21f2b;
  --red-dark: #ac101c;
  --red-light: #f04450;
  --white: #fff;
  --paper: #fbfaf7;
  --focus: #f2ede7;
  --focus-ring: rgba(242, 237, 231, 0.13);
  --error: #ff6670;
  --muted: #8e8985;
  --line: rgba(255, 255, 255, 0.12);
  --line-light: rgba(9, 9, 9, 0.12);
  --font: "Hanken Grotesk", Arial, sans-serif;
  --serif: "DM Serif Display", Georgia, serif;
}

[hidden] { display: none !important; }

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 8%, rgba(210, 31, 43, 0.16), transparent 27rem),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    var(--black);
  background-size: auto, 64px 64px, 64px 64px, auto;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(120deg, transparent 0 64%, rgba(255,255,255,.025) 64% 64.1%, transparent 64.1%);
}
body.modal-open { overflow: hidden; }

button, input, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(242, 237, 231, .78); outline-offset: 3px; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 9px 13px;
  color: var(--white);
  background: var(--red);
  border-radius: 8px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.checkout-header {
  position: relative;
  z-index: 3;
  width: min(calc(100% - 48px), 1180px);
  height: 86px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.checkout-brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  color: inherit;
  font-size: 14px;
  line-height: 1.05;
  text-decoration: none;
}
.checkout-brand strong { display: block; font-size: 17px; letter-spacing: -.04em; }
.brand-mark {
  width: 40px;
  height: 40px;
  display: block;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(210, 31, 43, 0.18);
}
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: cover; }

.secure-label {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #c8c3bf;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.secure-label svg { width: 18px; fill: none; stroke: var(--red-light); stroke-width: 1.8; }

.checkout-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), 1180px);
  margin: 0 auto;
  padding: 28px 0 80px;
}
.back-link { color: #aaa5a0; font-size: 13px; font-weight: 700; text-underline-offset: 4px; }

.eyebrow, .order-eyebrow, .panel-heading p {
  margin: 0;
  color: var(--red-light);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.checkout-cover {
  position: relative;
  min-height: clamp(280px, 27vw, 340px);
  margin: 30px 0 28px;
  display: grid;
  overflow: hidden;
  isolation: isolate;
  background: #100d0c;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(0,0,0,.34);
}
.checkout-cover picture, .checkout-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.checkout-cover img { object-fit: cover; object-position: center; }
.checkout-cover::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at center, rgba(9,9,9,.06), rgba(9,9,9,.48) 72%),
    linear-gradient(180deg, rgba(9,9,9,.3), rgba(9,9,9,.12) 45%, rgba(9,9,9,.5));
}
.checkout-cover-content {
  position: relative;
  z-index: 1;
  min-height: inherit;
  padding: 36px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  text-shadow: 0 3px 24px rgba(0,0,0,.82);
}
.checkout-cover h1 {
  max-width: 980px;
  margin: 12px 0 13px;
  font-size: clamp(3rem, 5.8vw, 5.15rem);
  font-weight: 830;
  letter-spacing: -.075em;
  line-height: .93;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.checkout-cover h1[data-name-size="medium"] { font-size: clamp(2.7rem, 5.2vw, 4.7rem); }
.checkout-cover h1[data-name-size="long"] { font-size: clamp(2.35rem, 4.6vw, 4.1rem); }
.checkout-cover h1 [data-first-name] { color: var(--red-light); font-family: var(--serif); font-weight: 400; }
.checkout-cover-content > p:last-child { margin: 0; color: #d0cac5; font-size: 14px; line-height: 1.5; }

.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, .85fr); gap: 22px; align-items: start; }
.checkout-sidebar { min-width: 0; position: relative; align-self: stretch; }
.payment-panel, .order-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 28px 80px rgba(0,0,0,.24);
}
.payment-panel { padding: 38px; background: rgba(18,18,18,.94); }
.order-panel {
  position: sticky;
  z-index: 3;
  top: 22px;
  padding: 32px;
  overflow: hidden;
  color: var(--black);
  background: rgba(251, 250, 247, 0.86);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(18px) saturate(118%);
  backdrop-filter: blur(18px) saturate(118%);
}
.order-accent { position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--red), var(--red-light), transparent 82%); }

.desktop-assurances {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  padding: 27px 26px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(145deg, rgba(27,22,21,.97), rgba(14,14,14,.98));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0,0,0,.22);
}
.desktop-assurances::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--red), var(--red-light), transparent 78%);
}
.assurances-eyebrow { margin: 0; color: var(--red-light); font-size: 9px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.desktop-assurances h2 { margin: 9px 0 23px; font-size: 23px; letter-spacing: -.045em; line-height: 1.08; }
.assurance-list { display: grid; }
.assurance-item { padding: 17px 0; display: grid; grid-template-columns: 40px 1fr; gap: 13px; align-items: start; border-top: 1px solid var(--line); }
.assurance-item:first-child { padding-top: 0; border-top: 0; }
.assurance-icon { width: 40px; height: 40px; display: grid; place-items: center; color: var(--red-light); background: rgba(210,31,43,.1); border: 1px solid rgba(240,68,80,.28); border-radius: 12px; }
.assurance-icon svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.assurance-item strong { display: block; font-size: 13px; letter-spacing: -.01em; }
.assurance-item p { margin: 4px 0 0; color: #96908c; font-size: 11px; line-height: 1.45; }

.panel-heading { display: flex; gap: 16px; align-items: flex-start; }
.panel-heading > span {
  width: 36px;
  height: 36px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--white);
  background: var(--red);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 850;
}
.panel-heading h2 { margin: 2px 0 0; font-size: 24px; letter-spacing: -.04em; line-height: 1.15; }
.panel-heading-method { margin-bottom: 22px; }
.section-divider { height: 1px; margin: 34px 0; background: var(--line); }

.field-grid { margin-top: 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.field { min-width: 0; display: grid; gap: 7px; color: #d7d2ce; font-size: 12px; font-weight: 700; }
.field span { display: flex; justify-content: space-between; }
.field em { color: #77726e; font-size: 10px; font-style: normal; font-weight: 600; }
.field small { color: #827c78; font-size: 10px; font-weight: 600; line-height: 1.45; }
.field-wide { grid-column: 1 / -1; }
.field input, .field select {
  width: 100%;
  min-height: 51px;
  padding: 0 14px;
  color: var(--white);
  background: #0c0c0c;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 12px;
  outline: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field input:focus, .field select:focus { border-color: rgba(242,237,231,.78); box-shadow: 0 0 0 3px var(--focus-ring); }
.field input::placeholder { color: #5f5b58; }
.field input.is-invalid { border-color: var(--error); }
.field input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(255,102,112,.15); }
.installment-field { margin-top: 3px; gap: 10px; }
.installment-field > span:first-child { color: #ece7e3; font-size: 13px; }
.installment-select { position: relative; display: block !important; }
.installment-select select {
  min-height: 66px;
  padding: 0 54px 0 18px;
  color: #f7f3f0;
  background: linear-gradient(180deg, #101010, #090909);
  border-color: rgba(255,255,255,.2);
  border-radius: 15px;
  appearance: none;
  -webkit-appearance: none;
  font-size: 16px;
  font-weight: 760;
  letter-spacing: -.015em;
  cursor: pointer;
}
.installment-select svg {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 21px;
  pointer-events: none;
  fill: none;
  stroke: #d8d1cc;
  stroke-width: 2;
  transform: translateY(-50%);
}
.installment-select:focus-within svg { stroke: var(--focus); }

.payment-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.payment-tab {
  min-height: 76px;
  padding: 14px 16px;
  display: flex;
  gap: 13px;
  align-items: center;
  color: #a8a39f;
  background: #0c0c0c;
  border: 1px solid var(--line);
  border-radius: 15px;
  cursor: pointer;
  text-align: left;
}
.payment-tab.is-active { color: var(--white); border-color: var(--red); background: rgba(210,31,43,.1); box-shadow: inset 0 0 0 1px rgba(210,31,43,.16); }
.payment-tab svg { width: 25px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; }
.payment-tab strong, .payment-tab small { display: block; }
.payment-tab strong { font-size: 14px; }
.payment-tab small { margin-top: 2px; color: #77726e; font-size: 10px; }
.payment-tab.is-active small { color: #d09ca0; }

.method-panel { margin-top: 20px; padding: 22px; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 18px; }
.method-message { display: grid; gap: 4px; }
.method-message strong { font-size: 14px; }
.method-message span { color: #8f8a86; font-size: 12px; line-height: 1.5; }
.card-preview { margin: 0 0 22px; text-align: center; }
.card-preview-scene {
  width: min(100%, 390px);
  aspect-ratio: 1.586 / 1;
  margin: 0 auto;
  padding: 0;
  display: block;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 20px;
  perspective: 1200px;
  cursor: pointer;
}
.card-preview-scene:focus-visible { outline: 3px solid rgba(242,237,231,.72); outline-offset: 4px; }
.card-preview-visual {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  transform-style: preserve-3d;
  transform: translateY(0) rotateY(0);
  transition: transform .72s cubic-bezier(.16,.75,.22,1), filter .24s ease;
  will-change: transform;
}
.card-preview-visual.is-focused { transform: translateY(-5px) rotateY(0); filter: drop-shadow(0 20px 22px rgba(0,0,0,.34)); }
.card-preview-visual.is-flipped,
.card-preview-visual.is-flipped.is-focused { transform: translateY(-5px) rotateY(180deg); }
.card-preview-face {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.24);
  backface-visibility: hidden;
  text-align: left;
}
.card-preview-front {
  padding: 20px;
  background:
    radial-gradient(circle at 84% 10%, rgba(255,122,131,.3), transparent 30%),
    radial-gradient(circle at 5% 100%, rgba(210,31,43,.42), transparent 43%),
    linear-gradient(140deg, #5b151c 0%, #2a0d11 49%, #0d0809 100%);
}
.card-preview-front::after,
.card-preview-back::after { position: absolute; inset: 0; content: ""; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.18), transparent 25%, transparent 67%, rgba(255,255,255,.045)); }
.card-preview-orbit { position: absolute; right: -94px; bottom: -112px; width: 210px; height: 210px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 28px rgba(255,255,255,.025), 0 0 0 58px rgba(255,255,255,.018); }
.card-preview-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.card-preview-top b { color: #ff6f79; font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.card-preview-top i { color: rgba(255,255,255,.92); font-size: 12px; font-weight: 900; letter-spacing: .07em; }
.card-preview-chip-row { position: relative; z-index: 1; margin-top: 23px; display: flex; align-items: center; justify-content: space-between; }
.card-preview-chip { position: relative; width: 42px; height: 31px; display: block; background: linear-gradient(135deg, #f8e49b, #a9893e); border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(44,30,3,.28); }
.card-preview-chip::after { position: absolute; inset: 7px 0; content: ""; border-block: 1px solid rgba(44,30,3,.35); }
.card-preview-contactless { width: 28px; height: 28px; opacity: .74; fill: none; stroke: #fff; stroke-width: 1.7; }
.card-preview-number { position: relative; z-index: 1; margin-top: 18px; display: block; font: 700 clamp(15px,3.2vw,21px)/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .075em; text-shadow: 0 2px 5px rgba(0,0,0,.3); white-space: nowrap; transition: color .2s, transform .2s; }
.card-preview-visual.is-number-active .card-preview-number { color: #ff939a; transform: translateY(-2px); }
.card-preview-meta { position: absolute; z-index: 1; right: 20px; bottom: 18px; left: 20px; display: flex; justify-content: space-between; gap: 12px; text-transform: uppercase; }
.card-preview-meta > span { min-width: 0; display: block; }
.card-preview-meta small { margin-bottom: 4px; display: block; color: rgba(255,255,255,.6); font-size: 8px; letter-spacing: .12em; }
.card-preview-meta strong { max-width: 205px; display: block; overflow: hidden; color: #fff; font-size: 11px; letter-spacing: .06em; text-overflow: ellipsis; white-space: nowrap; transition: color .2s, transform .2s; }
.card-preview-visual.is-name-active #cardPreviewName,
.card-preview-visual.is-expiry-active #cardPreviewExpiry { color: #ff939a; transform: translateY(-2px); }
.card-preview-back { padding-top: 20px; transform: rotateY(180deg); background: radial-gradient(circle at 8% 90%, rgba(210,31,43,.34), transparent 38%), linear-gradient(140deg,#341116,#0d0809); }
.card-preview-stripe { height: 45px; display: block; background: linear-gradient(90deg,#020202,#101010 55%,#020202); box-shadow: 0 2px 8px rgba(0,0,0,.42); }
.card-preview-back-row { margin: 14px 20px 0; display: grid; grid-template-columns: 1fr 48px; gap: 12px; align-items: end; }
.card-preview-back-row small { margin: 0 0 5px; display: block; color: rgba(255,255,255,.58); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.card-preview-signature { height: 36px; padding: 6px 9px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #251619; background: repeating-linear-gradient(0deg,#fff 0,#fff 3px,#ece7e7 3px,#ece7e7 5px); border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.card-preview-signature i { max-width: 78%; overflow: hidden; color: #5a4245; font: italic 700 11px/1.2 Georgia,serif; text-overflow: ellipsis; white-space: nowrap; }
.card-preview-signature b { min-width: 36px; height: 36px; padding: 0 6px; display: grid; place-items: center; color: #2c1115; background: #fff; border-radius: 5px; font: 800 13px/20px ui-monospace,SFMono-Regular,Menlo,monospace; }
.card-preview-hologram { width: 42px; height: 42px; display: block; opacity: .7; background: conic-gradient(from 25deg,#fda4af,#fef08a,#f0abfc,#f87171,#fda4af); border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); filter: saturate(.72); }
.card-preview-back-note { position: absolute; z-index: 1; right: 20px; bottom: 15px; left: 20px; color: rgba(255,255,255,.5); font-size: 10px; line-height: 1.35; }
.card-preview > p { margin: 10px 0 0; color: #77716d; font-size: 10px; }
.card-preview > p strong { color: #aaa39e; }
.cpf-slot:not(:empty) { margin-top: 18px; }
#cardPanel .cpf-slot:not(:empty) { margin-top: 0; }
.cpf-payment-field {
  padding: 15px;
  gap: 8px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(242,237,231,.17);
  border-left: 3px solid rgba(242,237,231,.62);
  border-radius: 13px;
  animation: cpf-field-in 220ms ease-out both;
}
.cpf-payment-field > span { align-items: center; }
.cpf-payment-field > span b { color: #f5efeb; font-size: 13px; }
.cpf-payment-field > span em { padding: 4px 7px; color: #eee8e3; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.08); border-radius: 999px; font-size: 8px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.cpf-payment-field input { min-height: 56px; background: #080808; }
.cpf-payment-field small { color: #a39c97; }
@keyframes cpf-field-in { from { opacity: 0; transform: translateY(-5px); } }
.billet-address-fields { margin-top: 18px; }
.address-fields { grid-template-columns: .72fr 1.6fr .55fr; }
.address-fields .field-grow { grid-column: auto; }
.card-limit-note { margin: 16px 0 0; color: #d09ca0; font-size: 11px; }

.submit-button {
  width: 100%;
  min-height: 59px;
  margin-top: 24px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: var(--white);
  background: var(--red);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(210,31,43,.28);
  cursor: pointer;
  font-weight: 850;
  transition: background 160ms ease, transform 160ms ease, opacity 160ms ease;
}
.submit-button:hover:not(:disabled) { background: var(--red-light); transform: translateY(-1px); }
.submit-button:disabled { cursor: wait; opacity: .64; }
.submit-button svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.checkout-confidence { margin-top: 16px; display: grid; justify-items: center; gap: 8px; text-align: center; }
.checkout-protection { margin: 0; display: inline-flex; align-items: center; gap: 7px; color: #b9b3ae; font-size: 11px; }
.checkout-protection svg { width: 18px; fill: none; stroke: var(--red-light); stroke-width: 1.8; }
.checkout-protection strong { color: #e9e4e0; font-weight: 800; }
.checkout-help { margin: 0; color: #77716d; font-size: 10px; line-height: 1.45; }
.checkout-help a { color: #aaa39e; text-decoration-color: rgba(240,68,80,.42); text-underline-offset: 3px; }
.checkout-help a:hover { color: #eee8e4; }
.checkout-terms-notice { margin: 11px 0 0; padding: 0; color: #8f8984; font-size: 12px; line-height: 1.4; text-align: center; }
.checkout-terms-notice a { color: #aaa39e; font-weight: 700; text-underline-offset: 3px; }
.checkout-terms-notice a:hover { color: #eee8e4; }

.alert { margin: 24px 0 0; padding: 13px 15px; color: #ffd8da; background: rgba(210,31,43,.13); border: 1px solid rgba(240,68,80,.36); border-radius: 12px; font-size: 13px; }
.checkout-submit-alert { margin-top: 16px; line-height: 1.45; text-align: center; }
.checkout-submit-alert + .submit-button { margin-top: 14px; }
.alert.is-info { color: #e5e0db; background: rgba(255,255,255,.05); border-color: var(--line); }
.alert.is-success { color: #c8f7da; background: rgba(31,151,80,.12); border-color: rgba(68,196,120,.35); }
.alert.card-retry-alert { padding: 18px; color: #f5efeb; }
.card-retry-alert strong { display: block; margin-bottom: 7px; font-size: 15px; }
.card-retry-alert p { margin: 0; color: #d7cac7; font-size: 12px; line-height: 1.55; }
.card-retry-alert p + p { margin-top: 8px; }
.card-retry-actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 9px; }
.card-retry-actions button {
  min-height: 43px;
  padding: 0 14px;
  color: var(--white);
  background: var(--red);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}
.card-retry-actions button:last-child { color: #e4dfdb; background: rgba(255,255,255,.08); border: 1px solid var(--line); }
.card-retry-actions button:focus-visible { outline: 2px solid var(--red-light); outline-offset: 2px; }

.payment-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  padding: 24px;
  display: grid;
  place-items: center;
}
.payment-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4,4,4,.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.payment-modal-dialog {
  position: relative;
  width: min(100%, 540px);
  max-height: calc(100dvh - 48px);
  padding: 34px;
  overflow-y: auto;
  color: var(--white);
  background: linear-gradient(145deg, rgba(34,12,15,.98), rgba(13,13,13,.99) 45%);
  border: 1px solid rgba(240,68,80,.42);
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0,0,0,.62), 0 0 0 1px rgba(255,255,255,.035) inset;
}
.payment-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #cfc8c4;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  cursor: pointer;
}
.payment-modal-close:hover { color: var(--white); background: rgba(255,255,255,.11); }
.payment-modal-close svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.payment-modal-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #ff626d;
  background: rgba(210,31,43,.16);
  border: 1px solid rgba(240,68,80,.28);
  border-radius: 15px;
}
.payment-modal-icon svg { width: 27px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.payment-modal-eyebrow { margin: 22px 0 7px; color: #ff626d; font-size: 10px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.payment-modal-dialog h2 { max-width: 420px; margin: 0; font-size: clamp(28px, 5vw, 38px); letter-spacing: -.055em; line-height: 1.02; }
.payment-modal-lead { margin: 14px 0 0; color: #bbb4af; font-size: 14px; line-height: 1.55; }
.payment-modal-steps { margin-top: 24px; padding: 4px 0; border-block: 1px solid rgba(255,255,255,.11); }
.payment-modal-steps > div { padding: 14px 0; display: grid; grid-template-columns: 28px 1fr; gap: 11px; align-items: start; }
.payment-modal-steps > div + div { border-top: 1px solid rgba(255,255,255,.08); }
.payment-modal-steps span { width: 27px; height: 27px; display: grid; place-items: center; color: var(--white); background: var(--red); border-radius: 50%; font-size: 10px; font-weight: 850; }
.payment-modal-steps p { margin: 1px 0 0; color: #aaa39e; font-size: 12px; line-height: 1.48; }
.payment-modal-steps strong { color: #f4efeb; }
.payment-modal-steps b { color: var(--white); }
.payment-modal-status { margin: 17px 0 0; color: #d9d2ce; font-size: 11px; line-height: 1.5; }
.payment-modal-actions { margin-top: 20px; display: grid; grid-template-columns: 1fr; gap: 10px; }
.payment-modal-primary {
  min-height: 56px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border-radius: 13px;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}
.payment-modal-primary { background: var(--red); border: 0; cursor: pointer; }
.payment-modal-primary:hover { background: var(--red-light); }

.payment-processing {
  position: fixed;
  z-index: 130;
  inset: 0;
  padding: 22px;
  display: grid;
  place-items: center;
}
.payment-processing-backdrop { position: absolute; inset: 0; background: rgba(4,4,4,.86); backdrop-filter: blur(16px) saturate(115%); -webkit-backdrop-filter: blur(16px) saturate(115%); }
.payment-processing-dialog {
  position: relative;
  width: min(100%, 430px);
  padding: 36px 30px 30px;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(150deg, rgba(54,13,18,.98), rgba(12,12,12,.99) 57%);
  border: 1px solid rgba(240,68,80,.32);
  border-radius: 24px;
  box-shadow: 0 30px 100px rgba(0,0,0,.62), inset 0 1px 0 rgba(255,255,255,.06);
}
.payment-processing-dialog::before { position: absolute; inset: 0; content: ""; pointer-events: none; background: radial-gradient(circle at 50% 0, rgba(240,68,80,.18), transparent 45%); }
.payment-processing-mark { position: relative; width: 66px; height: 66px; margin: 0 auto 20px; display: grid; place-items: center; }
.payment-processing-mark::before,
.payment-processing-mark::after { position: absolute; inset: 0; content: ""; border: 2px solid rgba(255,255,255,.1); border-radius: 50%; }
.payment-processing-mark::after { border-color: var(--red-light) transparent transparent; animation: payment-spin 1s linear infinite; }
.payment-processing-mark span { width: 43px; height: 43px; display: block; background: var(--red); border-radius: 50%; box-shadow: 0 0 30px rgba(210,31,43,.32); }
.payment-processing-mark i { position: absolute; width: 18px; height: 13px; border: solid #fff; border-width: 0 0 3px 3px; transform: translateY(-2px) rotate(-45deg); }
.payment-processing-eyebrow { position: relative; margin: 0 0 8px; color: #ff737d; font-size: 9px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.payment-processing-dialog h2 { position: relative; margin: 0; font-size: clamp(25px,6vw,34px); letter-spacing: -.05em; line-height: 1.05; }
.payment-processing-dialog > p:not(.payment-processing-eyebrow) { position: relative; min-height: 46px; margin: 13px auto 0; color: #b6afab; font-size: 14px; line-height: 1.55; transition: opacity .18s ease, transform .18s ease; }
.payment-processing-dialog > p.is-changing { opacity: 0; transform: translateY(4px); }
.payment-processing-progress { position: relative; margin: 18px auto 16px; display: flex; justify-content: center; gap: 7px; }
.payment-processing-progress span { width: 6px; height: 6px; background: rgba(255,255,255,.22); border-radius: 50%; animation: payment-dot 1.2s ease-in-out infinite; }
.payment-processing-progress span:nth-child(2) { animation-delay: .15s; }
.payment-processing-progress span:nth-child(3) { animation-delay: .3s; }
.payment-processing-dialog small { position: relative; display: block; color: #716b68; font-size: 9px; line-height: 1.45; }
@keyframes payment-spin { to { transform: rotate(360deg); } }
@keyframes payment-dot { 45% { background: #ff6671; transform: translateY(-3px); } }

.payment-result { margin-top: 28px; padding: 28px; text-align: center; background: #0b0b0b; border: 1px solid rgba(240,68,80,.3); border-radius: 20px; }
.payment-result h2 { margin: 0 0 8px; font-size: 27px; letter-spacing: -.04em; }
.payment-result > p { margin: 0 auto 18px; color: #9d9894; font-size: 14px; line-height: 1.55; }
.pix-qr { width: min(230px, 75%); height: auto; margin: 20px auto; padding: 12px; background: var(--white); border-radius: 16px; }
.payment-code-block { margin-top: 12px; text-align: left; }
.payment-code-block > span { display: block; margin-bottom: 7px; color: #a9a39f; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.copy-box { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.copy-box input { min-width: 0; height: 48px; padding: 0 12px; color: #d9d4d0; background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; }
.copy-box button, .result-link { min-height: 48px; padding: 0 16px; color: var(--white); background: var(--red); border: 0; border-radius: 11px; cursor: pointer; font-weight: 800; }
.result-link { display: inline-flex; align-items: center; text-decoration: none; }
.result-actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 9px; }
.result-actions-centered { justify-content: center; }
.redirect-note { margin: 11px 0 0 !important; color: #7f7a76 !important; font-size: 11px !important; }
.payment-status { margin-top: 18px; display: inline-flex; gap: 8px; align-items: center; color: #e6e1dd; font-size: 12px; font-weight: 700; }
.payment-status i { width: 8px; height: 8px; background: #f4b83d; border-radius: 50%; box-shadow: 0 0 0 5px rgba(244,184,61,.1); animation: pulse 1.6s ease-in-out infinite; }
.payment-status.is-paid i { background: #46c878; box-shadow: 0 0 0 5px rgba(70,200,120,.12); animation: none; }
.success-mark { width: 66px; height: 66px; margin: 0 auto 18px; display: grid; place-items: center; color: var(--white); background: #238f4d; border-radius: 50%; font-size: 30px; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.78); } }

.order-package { margin-top: 24px; padding-bottom: 24px; display: flex; gap: 20px; justify-content: space-between; align-items: end; border-bottom: 1px solid var(--line-light); }
.package-choice > span, .package-price > span { display: block; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.package-stepper { margin-top: 9px; display: flex; gap: 7px; align-items: center; }
.package-stepper button {
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--red);
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, opacity 160ms ease;
}
.package-stepper button:hover:not(:disabled) { background: var(--red-light); transform: translateY(-1px); }
.package-stepper button:disabled { color: #a39e99; background: #e8e3dd; cursor: not-allowed; opacity: .72; }
.package-stepper svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.package-quantity { min-width: 72px; text-align: center; }
.package-quantity strong, .package-quantity small { display: block; }
.package-quantity strong { color: var(--black); font-size: 25px; letter-spacing: -.05em; line-height: .9; }
.package-quantity small { margin-top: 3px; color: #6a6561; font-size: 10px; font-weight: 750; }
.package-price { text-align: right; }
.package-price strong { display: block; margin-top: 8px; color: var(--black); font-size: 27px; letter-spacing: -.06em; line-height: 1; white-space: nowrap; }
.package-growth-copy { margin: 18px 0 0; color: var(--red-dark); font-family: var(--serif); font-size: 17px; font-style: italic; line-height: 1.32; }
.package-upgrade-copy { margin: 8px 0 0; color: #625d58; font-size: 11px; line-height: 1.45; }
.personal-close { margin: 24px 0; padding: 18px; color: #5d5854; background: #f1ece5; border-left: 3px solid var(--red); border-radius: 0 10px 10px 0; font-family: var(--serif); font-size: 17px; font-style: italic; line-height: 1.45; }
.personal-close span { color: var(--red-dark); }
.trust-row { display: flex; gap: 11px; align-items: center; }
.trust-row svg { width: 27px; fill: none; stroke: var(--red); stroke-width: 1.7; }
.trust-row span, .trust-row strong { display: block; }
.trust-row span { color: var(--muted); font-size: 10px; line-height: 1.3; }
.trust-row strong { color: var(--black); font-size: 12px; }

.checkout-footer {
  width: min(calc(100% - 48px), 1180px);
  margin: 0 auto;
  padding: 0 0 28px;
  color: #696460;
  font-size: 10px;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
}
.checkout-footer a { color: inherit; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-sidebar { grid-row: 1; align-self: start; }
  .order-panel { position: relative; top: auto; }
  .desktop-assurances { display: none; }
}

@media (max-width: 620px) {
  .checkout-header { display: none; }
  .checkout-shell { width: min(calc(100% - 28px), 1180px); padding: 12px 0 56px; }
  .back-link { display: none; }
  .checkout-cover { min-height: 174px; margin: 0 0 14px; border-radius: 18px; }
  .checkout-cover-content { padding: 18px 16px; }
  .checkout-cover .eyebrow { font-size: 7px; }
  .checkout-cover h1 { max-width: 315px; margin: 8px 0 0; font-size: clamp(1.9rem, 9vw, 2.35rem); line-height: .96; letter-spacing: -.065em; }
  .checkout-cover h1[data-name-size="medium"] { font-size: clamp(1.72rem, 8.1vw, 2.08rem); }
  .checkout-cover h1[data-name-size="long"] { font-size: clamp(1.48rem, 7.1vw, 1.85rem); }
  .checkout-cover-content > p:last-child { display: none; }
  .checkout-grid { gap: 14px; }
  .payment-panel { padding: 23px 18px; border-radius: 20px; }

  .order-panel {
    min-height: 0;
    padding: 15px 16px 14px;
    display: block;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0,0,0,.2);
  }
  .order-panel .order-eyebrow { font-size: 8px; letter-spacing: .12em; }
  .order-panel .order-package {
    min-width: 0;
    margin: 10px 0 0;
    padding-bottom: 11px;
    gap: 10px;
    align-items: end;
  }
  .package-choice > span { display: none; }
  .package-price > span { font-size: 7px; }
  .package-stepper { margin-top: 0; gap: 4px; }
  .package-stepper button { width: 42px; height: 42px; border-radius: 9px; }
  .package-stepper svg { width: 17px; }
  .package-quantity { min-width: 47px; }
  .package-quantity strong { font-size: 20px; }
  .package-quantity small { margin-top: 2px; font-size: 8px; }
  .package-price strong { margin-top: 5px; font-size: 21px; letter-spacing: -.04em; }
  .package-growth-copy { margin: 10px 0 0; font-size: 12px; line-height: 1.25; }
  .package-upgrade-copy { margin: 5px 0 0; font-size: 9px; line-height: 1.35; }
  .personal-close { display: none; }
  .trust-row {
    margin-top: 9px;
    padding-top: 8px;
    justify-content: center;
    border-top: 1px solid var(--line-light);
  }
  .trust-row svg { width: 18px; }
  .trust-row span { font-size: 8px; }
  .trust-row strong { display: inline; margin-right: 4px; font-size: 9px; }

  .field-grid, .address-fields { grid-template-columns: 1fr; }
  .field, .field-grow, .field-small, .field-wide { grid-column: 1; }
  .payment-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .payment-tab { min-height: 70px; padding: 10px 7px; gap: 7px; }
  .payment-tab svg { width: 19px; }
  .payment-tab strong { font-size: 12px; }
  .payment-tab small { font-size: 8px; line-height: 1.15; }
  .method-panel { padding: 18px 14px; }
  .card-preview { margin-bottom: 19px; }
  .card-preview-front { padding: 15px; }
  .card-preview-top b { max-width: 72%; font-size: 8px; line-height: 1.2; }
  .card-preview-chip-row { margin-top: 18px; }
  .card-preview-number { margin-top: 14px; font-size: clamp(13px,4.25vw,18px); }
  .card-preview-meta { right: 15px; bottom: 14px; left: 15px; }
  .card-preview-meta strong { max-width: 180px; font-size: 9px; }
  .card-preview-back { padding-top: 17px; }
  .card-preview-back-row { margin-inline: 15px; }
  .card-preview-back-note { right: 15px; bottom: 12px; left: 15px; font-size: 8px; }
  .cpf-slot:not(:empty) { margin-top: 16px; }
  .cpf-payment-field { padding: 13px; }
  .cpf-payment-field input { min-height: 58px; font-size: 16px; }
  .installment-field { margin-top: 7px; gap: 9px; }
  .installment-select select { min-height: 68px; padding-inline: 17px 50px; font-size: 15px; border-radius: 14px; }
  .installment-select svg { right: 16px; }
  .card-retry-actions { display: grid; grid-template-columns: 1fr; }
  .payment-modal { padding: 12px; align-items: end; }
  .payment-modal-dialog { max-height: calc(100dvh - 24px); padding: 27px 20px 20px; border-radius: 22px; }
  .payment-modal-close { top: 12px; right: 12px; width: 38px; height: 38px; }
  .payment-modal-icon { width: 46px; height: 46px; border-radius: 13px; }
  .payment-modal-eyebrow { margin-top: 18px; }
  .payment-modal-dialog h2 { padding-right: 10px; font-size: 29px; }
  .payment-modal-lead { font-size: 13px; }
  .payment-modal-steps { margin-top: 18px; }
  .payment-modal-steps > div { padding: 11px 0; }
  .payment-modal-actions { grid-template-columns: 1fr; }
  .payment-processing { padding: 14px; }
  .payment-processing-dialog { padding: 31px 20px 25px; border-radius: 22px; }
  .payment-processing-mark { width: 58px; height: 58px; margin-bottom: 18px; }
  .payment-processing-mark span { width: 38px; height: 38px; }
  .billet-address-fields { grid-template-columns: minmax(0, 1fr) 68px; }
  .billet-address-fields .field { grid-column: auto; }
  .billet-address-fields .field-wide { grid-column: 1 / -1; }
  .copy-box { grid-template-columns: 1fr; }
  .result-actions { display: grid; grid-template-columns: 1fr; }
  .result-link { justify-content: center; }
  .checkout-footer { width: min(calc(100% - 28px), 1180px); padding-bottom: 20px; font-size: 12px; line-height: 1.5; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .card-preview-visual.is-focused { transform: none; }
  .card-preview-visual.is-flipped,
  .card-preview-visual.is-flipped.is-focused { transform: rotateY(180deg); }
}
