/* Eternity Cheats — redesign 2026. Tokens and components shared by every page. */
:root {
  --bg: oklch(0.13 0.004 250);
  --bg-deep: oklch(0.11 0.004 250);
  --surface: oklch(0.16 0.005 250);
  --surface-2: oklch(0.17 0.005 250);
  --line: oklch(0.24 0.006 250);
  --line-in: oklch(0.28 0.006 250);
  --line-2: oklch(0.30 0.006 250);
  --ink: oklch(0.95 0.004 250);
  --ink-2: oklch(0.72 0.01 250);
  --muted: oklch(0.62 0.01 250);
  --muted-2: oklch(0.50 0.01 250);
  --dim: oklch(0.45 0.01 250);
  --accent: oklch(0.80 0.12 230);
  --accent-ink: oklch(0.16 0.02 240);
  --ok: oklch(0.85 0.13 160);
  --danger: oklch(0.70 0.18 25);
  --err-line: oklch(0.65 0.18 25 / .6);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --mono: 'Geist Mono', ui-monospace, monospace;
  --display: Archivo, sans-serif;
}

html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Geist, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: var(--accent-ink); }
input::placeholder { color: var(--muted-2); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- type ---------- */
.mono { font-family: var(--mono); }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.kicker.is-muted { color: var(--muted); }
.label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.display { margin: 0; font-family: var(--display); font-variation-settings: 'wdth' 112; font-weight: 650; line-height: 1; letter-spacing: -0.03em; }
.h2 { font-size: clamp(36px, 4.4vw, 60px); display: flex; flex-wrap: wrap; column-gap: .24em; }
.h-page { font-size: clamp(40px, 4.6vw, 60px); }
.h-panel { font-size: clamp(36px, 4.4vw, 56px); }
.wm { overflow: hidden; display: inline-block; padding-bottom: .08em; }
.w { display: inline-block; }
.lead { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.muted { color: var(--muted); }
.ink-2 { color: var(--ink-2); }
.u-link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- small parts ---------- */
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand span { font-family: var(--display); font-variation-settings: 'wdth' 125; font-weight: 700; font-size: 15px; letter-spacing: .08em; }
.lang-btn { background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 10px; white-space: nowrap; flex-shrink: 0; color: var(--ink-2); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; cursor: pointer; }
.lang-btn:hover { color: var(--ink); border-color: oklch(0.5 0.01 250); }
.back-link { font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 auto; display: inline-block; }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1800ms ease-out infinite; }
@keyframes pulse { from { box-shadow: 0 0 0 0 oklch(0.80 0.12 230 / .45); } to { box-shadow: 0 0 0 9px oklch(0.80 0.12 230 / 0); } }
.badge { padding: 3px 7px; border-radius: 5px; background: var(--accent); color: var(--accent-ink); font-family: var(--mono); font-size: 10px; letter-spacing: .14em; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid oklch(0.16 0.02 240 / .25); border-top-color: var(--accent-ink); animation: spin 700ms linear infinite; box-sizing: border-box; flex: 0 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- buttons ---------- */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 10px; font-family: Geist, sans-serif; font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap; box-sizing: border-box; text-decoration: none; }
.btn-accent { border: 0; background: var(--accent); color: var(--accent-ink); transition: transform .25s var(--ease), background .3s; }
.btn-accent:hover { transform: translateY(-2px); color: var(--accent-ink); }
.btn-accent.is-ok { background: var(--ok); }
.btn-ghost { border: 1px solid var(--line-2); background: none; color: var(--ink); font-weight: 400; transition: border-color .2s; }
.btn-ghost:hover { border-color: oklch(0.6 0.01 250); color: var(--ink); }
.btn-light { border: 0; background: var(--ink); color: oklch(0.14 0.005 250); transition: background .2s; }
.btn-light:hover { background: var(--accent); color: var(--accent-ink); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.input { height: 50px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-in); background: var(--surface); color: var(--ink); font-family: Geist, sans-serif; font-size: 15px; outline: none; transition: border-color .2s, background .2s, box-shadow .2s; }
.input:focus { border-color: var(--accent); background: oklch(0.18 0.006 250); box-shadow: 0 0 0 3px oklch(0.80 0.12 230 / .18); }
.input.is-err { border-color: var(--err-line); }
.msg { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; font-size: 14px; background: oklch(0.65 0.18 25 / .12); border: 1px solid oklch(0.65 0.18 25 / .35); color: oklch(0.82 0.10 25); }
.msg::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--danger); flex: 0 0 auto; }
.msg.is-ok { background: oklch(0.85 0.13 160 / .1); border-color: oklch(0.85 0.13 160 / .4); color: var(--ok); }
.msg.is-ok::before { background: var(--ok); }

/* key → value rows */
.kv { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.kv > :first-child { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.kv-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }

/* ---------- page curtain ---------- */
.wipe { position: fixed; inset: 0; z-index: 80; background: var(--accent); clip-path: inset(100% 0 0 0); pointer-events: none; display: flex; align-items: center; justify-content: center; }
.js .wipe { clip-path: inset(0 0 0 0); }
.wipe-logo { width: 88px; height: 88px; }
@media (prefers-reduced-motion: reduce) { .js .wipe { clip-path: inset(100% 0 0 0); } }

/* ---------- notebook mockup ---------- */
.nb { display: flex; flex-direction: column; align-items: center; transform-style: preserve-3d; }
.nb-lid { position: relative; width: 100%; padding: 10px 10px 12px; border-radius: 18px 18px 8px 8px; background: linear-gradient(180deg, oklch(0.27 0.006 250), oklch(0.20 0.006 250)); border: 1px solid oklch(0.48 0.008 250); box-sizing: border-box; box-shadow: inset 0 1px 0 oklch(1 0 0 / .08); }
.nb-screen { position: relative; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: oklch(0.12 0.004 250); }
.nb-wall { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 70% at 30% 25%, oklch(0.24 0.03 240), oklch(0.13 0.01 250) 60%, oklch(0.10 0.004 250)); }
.nb-base { width: 108%; aspect-ratio: 16 / 10; margin-bottom: -49%; transform-origin: 50% 0; transform: rotateX(74deg); border-radius: 12px 12px 16px 16px; background: linear-gradient(180deg, oklch(0.25 0.006 250), oklch(0.21 0.006 250)); border: 1px solid oklch(0.48 0.008 250); box-sizing: border-box; padding: 5% 8% 6%; display: flex; flex-direction: column; align-items: center; gap: 7%; }
.nb-keys { width: 100%; height: 46%; display: flex; flex-direction: column; gap: 4%; }
.nb-row { flex: 1; border-radius: 3px; background: repeating-linear-gradient(90deg, oklch(0.15 0.004 250) 0 6.4%, transparent 6.4% 7.4%); }
.nb-pad { width: 36%; flex: 1; border-radius: 8px; background: oklch(0.24 0.006 250); border: 1px solid oklch(0.42 0.008 250); box-sizing: border-box; }
.nb-edge { width: 108%; height: 9px; border-radius: 0 0 14px 14px; background: linear-gradient(oklch(0.32 0.006 250), oklch(0.17 0.006 250)); border: 1px solid oklch(0.48 0.008 250); border-top: 0; box-sizing: border-box; box-shadow: 0 26px 40px oklch(0 0 0 / .6); }
.nb-win { position: absolute; left: 38%; top: 30%; width: 56%; aspect-ratio: 838 / 599; border-radius: 6px; overflow: hidden; border: 1px solid oklch(0.40 0.03 240); box-shadow: 0 18px 40px oklch(0 0 0 / .6); will-change: transform; }
.nb-win img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nb-chip { position: absolute; display: flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 6px; background: oklch(0.12 0.004 250 / .8); font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: oklch(0.85 0.006 250); }
.nb-chip .dot { color: var(--ok); }

.esp { position: absolute; aspect-ratio: 9 / 22; display: flex; flex-direction: column; align-items: center; gap: 3%; pointer-events: none; }
.esp-fig { flex: 1; min-height: 0; width: 100%; display: flex; gap: 8%; }
.esp-hp { width: 6%; min-width: 2px; height: 100%; border-radius: 1px; background: oklch(0.15 0.004 250 / .8); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.esp svg { flex: 1; height: 100%; overflow: visible; }
.esp-name { font-family: var(--mono); line-height: 1; white-space: nowrap; text-shadow: 0 1px 2px oklch(0 0 0 / .8); }

/* ---------- shared app header (login / checkout) ---------- */
.app-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.app-head-r { display: flex; align-items: center; gap: 18px; }

@keyframes shake { 0% { transform: none; } 25% { transform: translateX(-8px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } 100% { transform: none; } }
.shake { animation: shake 420ms ease-out; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .spin { animation: spin 700ms linear infinite !important; }
}

/* ---------- login / register ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); }
.auth-main { display: flex; flex-direction: column; padding: 28px clamp(24px, 5vw, 72px); box-sizing: border-box; min-height: 100vh; }
.auth-center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 0; }
.auth-form { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 28px; }
.auth-copy { display: flex; flex-direction: column; gap: 14px; }
.auth-title { font-size: clamp(40px, 4.6vw, 56px); }
.auth-mask { overflow: hidden; display: block; padding-bottom: .06em; }
.auth-mask > span { display: block; }
.auth-fields { display: flex; flex-direction: column; gap: 16px; }
.pass-wrap { position: relative; display: block; }
.pass-wrap .input { width: 100%; box-sizing: border-box; padding-right: 86px; }
.pass-toggle { position: absolute; right: 8px; top: 8px; height: 34px; padding: 0 10px; border-radius: 7px; border: 0; background: oklch(0.22 0.006 250); color: var(--ink-2); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.auth-actions { display: flex; flex-direction: column; gap: 18px; }
.auth-submit { height: 52px; }
.auth-alt { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
.auth-foot { font-size: 13px; color: var(--muted-2); }
.auth-aside { display: none; position: relative; overflow: hidden; background: var(--surface); border-left: 1px solid var(--line); flex-direction: column; justify-content: space-between; padding: 28px 40px; box-sizing: border-box; min-height: 100vh; }
.auth-grid { position: absolute; inset: 0; background-image: linear-gradient(oklch(0.95 0.004 250 / .04) 1px, transparent 1px), linear-gradient(90deg, oklch(0.95 0.004 250 / .04) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 20%, transparent 75%); }
.auth-aside-top { position: relative; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.auth-aside-top > span:first-child { display: flex; align-items: center; gap: 8px; }
.auth-logo-wrap { position: relative; display: flex; justify-content: center; }
.auth-logo { width: min(340px, 60%); overflow: visible; color: var(--ink); }
.auth-facts { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid oklch(0.26 0.006 250); }
.auth-fact { padding-top: 16px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
@media (min-width: 960px) {
  .auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .auth-aside { display: flex; }
}

/* ---------- checkout ---------- */
.co { min-height: 100vh; display: flex; flex-direction: column; }
.co-head { border-bottom: 1px solid var(--line); }
.co-head-in { max-width: 1240px; margin: 0 auto; padding: 20px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.co-steps { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.co-st { display: flex; align-items: center; gap: 6px; color: var(--ink); transition: color .4s; }
.co-bar { width: 22px; height: 1px; background: currentColor; transition: width .5s var(--ease); }
.co[data-step="form"] .co-st:nth-child(3) { color: var(--dim); }
.co[data-step="form"] .co-st:nth-child(3) .co-bar { width: 10px; }
.co-st-num { display: none; }
.co-main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 56px 28px 96px; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; align-items: start; }
.co-stage { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.co-form { display: flex; flex-direction: column; gap: 40px; }
.co-copy { display: flex; flex-direction: column; gap: 14px; }
.co-reqs .kv { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); padding: 14px 0; }
.co-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.plan-card { position: relative; text-align: left; display: flex; flex-direction: column; gap: 18px; padding: 20px; border-radius: 14px; cursor: pointer; background: var(--surface); border: 1px solid oklch(0.26 0.006 250); color: var(--ink); transition: border-color .25s, background .25s, transform .35s var(--ease); }
.plan-card:hover { transform: translateY(-2px); }
.plan-card input { position: absolute; opacity: 0; pointer-events: none; }
.plan-card:has(input:checked) { background: oklch(0.80 0.12 230 / .08); border-color: var(--accent); }
.plan-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan-name { font-size: 15px; font-weight: 600; }
.plan-radio { width: 18px; height: 18px; border-radius: 50%; border: 1px solid oklch(0.26 0.006 250); display: flex; align-items: center; justify-content: center; transition: border-color .25s; }
.plan-radio span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .35s var(--ease); }
.plan-card:has(input:checked) .plan-radio { border-color: var(--accent); }
.plan-card:has(input:checked) .plan-radio span { transform: scale(1); }
.plan-price { display: flex; align-items: baseline; gap: 4px; }
.plan-price > span:first-child { font-size: 14px; color: var(--ink-2); }
.plan-price .display { font-size: 38px; }
.plan-meta { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.plan-best { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.co-fields { display: flex; flex-direction: column; gap: 18px; }
.co-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.co-terms { margin: 0; font-size: 14px; color: var(--muted); }
.co-fpga { flex-direction: row; align-items: flex-start; gap: 14px; padding: 16px 18px; background: color-mix(in oklab, var(--accent) 7%, var(--surface-2)); border: 1px solid color-mix(in oklab, var(--accent) 35%, var(--line)); border-radius: 14px; cursor: pointer; transition: background .25s var(--ease), border-color .25s var(--ease); }
.co-fpga:hover { border-color: color-mix(in oklab, var(--accent) 55%, var(--line)); }
.co-fpga input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; min-width: 20px; margin: 2px 0 0; border: 1.5px solid color-mix(in oklab, var(--accent) 60%, var(--line)); border-radius: 5px; background: var(--surface); cursor: pointer; position: relative; transition: background .2s var(--ease), border-color .2s var(--ease); flex-shrink: 0; }
.co-fpga input[type=checkbox]:checked { background: var(--accent); border-color: var(--accent); }
.co-fpga input[type=checkbox]:checked::after { content: ''; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.co-fpga-txt { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); flex: 1; }
.co-fpga-txt strong { display: block; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.co-fpga:has(input:checked) { background: color-mix(in oklab, oklch(0.72 0.14 150) 8%, var(--surface-2)); border-color: color-mix(in oklab, oklch(0.72 0.14 150) 45%, var(--line)); }
.co-fpga:has(input:checked) input[type=checkbox] { border-color: oklch(0.72 0.14 150); background: oklch(0.72 0.14 150); }
.co-fpga:has(input:checked) .co-fpga-txt strong { color: oklch(0.78 0.14 150); }
.co-cta { height: 54px; }

/* ---------- coupon box ---------- */
/* Padrao premium: altura, espacamentos e tipografia alinhadas com .input,
   .co-cta e .co-fpga. Toggle sempre full-width clicavel. Fechada: dashed
   discreto. Aberta: solid com glow sutil do accent. Aplicada: solid verde. */
.co-coupon {
  margin-top: 4px;
  border: 1px dashed var(--line-2);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.co-coupon:hover { border-color: var(--line-in); }
.co-coupon.open {
  border-style: solid;
  border-color: color-mix(in oklab, var(--accent) 48%, var(--line));
  background: color-mix(in oklab, var(--accent) 5%, var(--surface));
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 8%, transparent);
}
.co-coupon.applied {
  border-style: solid;
  border-color: color-mix(in oklab, var(--ok) 55%, var(--line));
  background: color-mix(in oklab, var(--ok) 7%, var(--surface));
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--ok) 8%, transparent);
}

.cp-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer;
  gap: 14px;
  user-select: none;
}
.cp-toggle .cp-lead {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  min-width: 0;
}
.cp-toggle .cp-lead > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cp-toggle .cp-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.cp-toggle .cp-icon svg { width: 16px; height: 16px; }
.co-coupon.applied .cp-icon {
  background: color-mix(in oklab, var(--ok) 15%, transparent);
  color: var(--ok);
}
.cp-toggle .cp-chev {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  transition: transform .25s var(--ease), color .25s var(--ease);
}
.cp-toggle .cp-chev::after { content: '▾'; }
.co-coupon:hover .cp-toggle .cp-chev { color: var(--ink-2); }
.co-coupon.open .cp-toggle .cp-chev,
.co-coupon.applied .cp-toggle .cp-chev { transform: rotate(180deg); color: var(--ink-2); }

.cp-body {
  display: none;
  padding: 0 20px 20px;
  flex-direction: column;
  gap: 12px;
  animation: cp-reveal .35s var(--ease);
}
.co-coupon.open .cp-body,
.co-coupon.applied .cp-body { display: flex; }
@keyframes cp-reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

.cp-row { display: flex; gap: 10px; }
.cp-input {
  flex: 1;
  min-width: 0;
  height: 52px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 12px;
  padding: 0 16px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  outline: none;
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.cp-input::placeholder {
  color: var(--muted-2);
  letter-spacing: .1em;
  font-weight: 400;
}
.cp-input:focus {
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent);
}

.cp-btn {
  height: 52px;
  padding: 0 24px;
  border: none;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: filter .2s var(--ease), transform .2s var(--ease);
  flex: 0 0 auto;
}
.cp-btn:hover:not(:disabled) { filter: brightness(1.08); }
.cp-btn:active:not(:disabled) { transform: scale(.98); }
.cp-btn:disabled { opacity: .55; cursor: not-allowed; }
.cp-btn .spin {
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: cp-spin .8s linear infinite;
  box-sizing: border-box;
}
@keyframes cp-spin { to { transform: rotate(360deg); } }

.cp-msg {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 2px 0;
}
.cp-msg.err { color: var(--danger); }
.cp-msg.ok  { color: var(--ok); }
.cp-msg::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}

.cp-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: color-mix(in oklab, var(--ok) 10%, transparent);
  border: 1px solid color-mix(in oklab, var(--ok) 42%, var(--line));
}
.cp-applied .cp-code {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--ok);
  letter-spacing: .14em;
}
.cp-applied .cp-detail {
  font-size: 12.5px;
  color: var(--ink-2);
  letter-spacing: .01em;
}
.cp-applied .cp-remove {
  background: none;
  border: 1px solid transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 10px;
  letter-spacing: .14em;
  border-radius: 6px;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
  flex: 0 0 auto;
}
.cp-applied .cp-remove:hover {
  color: var(--danger);
  border-color: color-mix(in oklab, var(--danger) 35%, var(--line));
  background: color-mix(in oklab, var(--danger) 8%, transparent);
}

/* ---------- summary rows: discount + strikethrough original ---------- */
.sum-disc-row > span:first-child { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sum-disc-row > span:first-child > :first-child {
  color: var(--ok) !important;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
}
.sum-disc-row .cp-tag {
  background: color-mix(in oklab, var(--ok) 14%, transparent);
  border: 1px solid color-mix(in oklab, var(--ok) 38%, var(--line));
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 10.5px;
  font-family: var(--mono);
  letter-spacing: .1em;
  color: var(--ok);
  font-weight: 600;
}
.sum-disc-row > span:last-child {
  color: var(--ok) !important;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 14px;
}

/* .co-total > span:last-child existente ja aplica flex+baseline no container
   amount; aqui redefinimos pra coluna com especificidade suficiente, e o
   .final interno retoma o baseline + font-size do total original. */
.co-total > span.co-total-amount { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.co-total > span.co-total-amount .orig {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: color-mix(in oklab, var(--danger) 60%, var(--muted));
  color: var(--muted);
  font-size: 15px;
  font-family: var(--mono);
}
.co-total > span.co-total-amount .final { display: flex; align-items: baseline; gap: 4px; font-size: 16px; }

@media (max-width: 480px) {
  .cp-row { flex-direction: column; }
  .cp-input, .cp-btn { width: 100%; }
}

.co-pane { display: flex; flex-direction: column; gap: 32px; }
.pix-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px; align-items: center; padding: 28px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.pix-qr { aspect-ratio: 1; max-width: 260px; width: 100%; border-radius: 12px; background: #fff; display: block; }
.pix-info { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pix-timer { display: flex; flex-direction: column; gap: 6px; }
.pix-timer .display { font-size: 40px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pix-code { font-family: var(--mono); font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 12px 14px; border-radius: 8px; background: oklch(0.14 0.005 250); border: 1px solid var(--line); }
.pix-copy { height: 48px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); transition: all .25s; }
.pix-copy.is-done { background: oklch(0.85 0.13 160 / .12); border-color: oklch(0.85 0.13 160 / .5); color: var(--ok); }
.note-box { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 12px; border: 1px solid var(--line); }
.note-box > span:first-child { font-weight: 600; font-size: 15px; }
.note-box > span:last-child { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.co-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.co-btn { height: 50px; padding: 0 22px; }
.co-ok { gap: 28px; padding-top: 24px; }
.co-ok .lead { max-width: 520px; font-size: 17px; }
.co-ok .note-box { max-width: 520px; }
.ok-check { width: 72px; height: 72px; border-radius: 50%; background: oklch(0.85 0.13 160 / .14); border: 1px solid oklch(0.85 0.13 160 / .45); display: flex; align-items: center; justify-content: center; color: var(--ok); font-size: 30px; }
.co-sum { display: flex; flex-direction: column; gap: 22px; padding: 28px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.co-sum-rows { display: flex; flex-direction: column; }
.co-sum-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.co-sum-rows > div > span:first-child { color: var(--ink-2); }
.co-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; color: var(--ink-2); }
.co-total > span:last-child { display: flex; align-items: baseline; gap: 4px; font-size: 16px; }
.co-total .display { font-size: 52px; color: var(--ink); font-variant-numeric: tabular-nums; }
.co-secure { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.co-secure img { height: 16px; width: auto; opacity: .8; }
.co-other { border-top: 1px solid var(--line); padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.co-other a { color: var(--accent); }
.co-cta-aside { display: none; }
.co-head .badge { margin-left: 0; }
@media (min-width: 960px) {
  .co-main { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .co-sum { position: sticky; top: 32px; }
  .co-cta-narrow { display: none; }
  .co[data-step="form"] .co-cta-aside { display: flex; }
}
@media (max-width: 959px) {
  .co-st-full { display: none; }
  .co-st-num { display: inline; }
}
@media (max-width: 560px) {
  .co-head-in { padding: 16px 20px; flex-wrap: wrap; row-gap: 12px; }
  .co-steps { order: 3; flex: 1 1 100%; }
  .co-head .back-link { display: none; }
  .co-main { padding: 40px 20px 72px; }
}
