:root {
  --bg: #070809;
  --bg2: #0e1012;
  --card: #12151a;
  --border: #242a32;
  --text: #f2f4f7;
  --muted: #8b939e;
  --accent: #00e676;
  --accent-dim: rgba(0, 230, 118, 0.14);
  --danger: #ff6b6b;
  --radius: 16px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(0, 230, 118, 0.18), transparent 55%),
    radial-gradient(ellipse 40% 30% at 90% 80%, rgba(0, 180, 100, 0.08), transparent 50%);
  z-index: 0;
}

.top {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 22px 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-name {
  font-size: 15px;
  letter-spacing: 0.4px;
  font-weight: 600;
}
.brand-name b {
  color: var(--accent);
  font-weight: 700;
}

.hero {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 80px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0, 230, 118, 0.25);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.grad {
  background: linear-gradient(90deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 32px;
}
.lead strong {
  color: var(--text);
}

.price-card {
  text-align: left;
  background: linear-gradient(160deg, #14181f, #0c0e12);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px 20px;
  max-width: 400px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
}

.price-label {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.currency {
  font-size: 18px;
  color: var(--muted);
}
.amount {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
}
.per {
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
  margin-left: 4px;
  align-self: flex-end;
  padding-bottom: 6px;
}

.perks {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.perks li {
  position: relative;
  padding: 8px 0 8px 26px;
  font-size: 14px;
  color: #c5cbd3;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.btn-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: none;
  cursor: pointer;
  text-decoration: none;
  background: linear-gradient(135deg, #00e676, #00c853);
  color: #04140a;
  font-weight: 750;
  font-size: 15px;
  padding: 14px 18px;
  border-radius: 12px;
  transition: transform 0.12s, filter 0.12s, box-shadow 0.12s;
  box-shadow: 0 8px 28px rgba(0, 230, 118, 0.28);
}
.btn-buy:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.btn-buy:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.btn-sec {
  width: 100%;
  margin-top: 10px;
  background: var(--bg2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.btn-sec:hover {
  border-color: #3a4450;
}
.btn-sec.sm {
  width: auto;
  margin: 0;
  padding: 8px 12px;
}

.fine {
  text-align: center;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

.foot {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px 16px 40px;
  font-size: 12px;
  color: var(--muted);
}
.foot .sep {
  margin: 0 6px;
  opacity: 0.5;
}

/* Modal */
.modal[hidden] {
  display: none !important;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}
.modal-panel {
  position: relative;
  width: min(440px, 100%);
  max-height: min(92vh, 720px);
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 22px 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.modal-x {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}
.modal-x:hover {
  color: var(--text);
}

.step h2 {
  font-size: 1.25rem;
  margin-bottom: 6px;
  padding-right: 28px;
}
.muted {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 16px;
}

form label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
  text-align: left;
}
form input {
  display: block;
  width: 100%;
  margin-top: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 12px 12px;
  font-size: 15px;
  outline: none;
}
form input:focus {
  border-color: rgba(0, 230, 118, 0.45);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.err {
  color: var(--danger);
  font-size: 13px;
  margin-top: 10px;
  text-align: left;
}

.pix-box {
  display: grid;
  gap: 16px;
  margin-bottom: 14px;
  justify-items: center;
}

.qr-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  line-height: 0;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
}
.qr-wrap img,
.qr-wrap canvas {
  display: block;
  width: 200px;
  height: 200px;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
}
.qr-fallback {
  color: #333;
  font-size: 13px;
  line-height: 1.3;
  padding: 8px 12px;
}

.pix-copy label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  text-align: left;
}
.pix-copy textarea {
  width: 100%;
  resize: none;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 10px;
  font-size: 11px;
  font-family: ui-monospace, monospace;
  line-height: 1.4;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  justify-content: center;
  margin-top: 4px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f0c14b;
}
.dot.pulse {
  animation: pulse 1.2s ease infinite;
}
.dot.ok {
  background: var(--accent);
  animation: none;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

.mock-hint {
  margin-top: 12px;
  text-align: center;
}
.linkish {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  font-size: inherit;
}

.ok-badge {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(0, 230, 118, 0.3);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 12px;
}

.key-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 6px;
  text-align: left;
}
.key-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 10px 10px 12px;
}
.key-row code {
  flex: 1;
  font-size: 12px;
  word-break: break-all;
  color: var(--accent);
  text-align: left;
}

.howto {
  margin-top: 18px;
  padding-left: 18px;
  text-align: left;
  color: var(--muted);
  font-size: 13px;
}
.howto li {
  margin-bottom: 6px;
}
.howto code {
  font-size: 11px;
  color: #c5cbd3;
}

@media (max-width: 480px) {
  .hero {
    padding-top: 28px;
  }
  .amount {
    font-size: 34px;
  }
}
