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

:root {
  --bg:        #07071a;
  --card-bg:   #0d0d23;
  --pink:      #d946ef;
  --blue:      #3b82f6;
  --cyan:      #22d3ee;
  --teal:      #00c9a7;
  --purple:    #7c3aed;
  --text:      #f1f5f9;
  --muted:     #94a3b8;
  --dim:       #475569;
  --border:    rgba(139,92,246,0.28);
  --glow:      rgba(139,92,246,0.12);
  --font:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

.page { display: none; min-height: 100vh; }
.page.active { display: block; }

/* ── HERO ──────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #050515 url('images/background.jpg') center top / cover no-repeat;
}
.hero.mini { min-height: 100px; }

.hero-bg { position: absolute; inset: 0; }

.poster-strip {
  position: absolute;
  top: 0; bottom: 0;
  width: 42%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(4, 1fr);
  gap: 3px;
  opacity: 0.75;
}
.poster-strip.left  { left: 0; }
.poster-strip.right { right: 0; }
.poster-strip .p { border-radius: 3px; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(5,5,21,0.15) 0%,
      rgba(5,5,21,0.55) 45%,
      rgba(5,5,21,0.92) 75%,
      rgba(5,5,21,1)    100%),
    linear-gradient(to right,
      rgba(5,5,21,0.7) 0%,
      transparent 30%,
      transparent 70%,
      rgba(5,5,21,0.7) 100%);
}
.hero-overlay.full { background: rgba(7,7,26,0.97); }

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 30px 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* Cube */
.logo-cube-wrap {
  position: relative;
  margin-bottom: 2px;
}

.logo-img {
  display: block;
  width: 260px;
  max-width: 88vw;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 28px rgba(120,60,255,0.55));
}
.logo-img--mini {
  width: 160px;
}
.logo-cube-glow {
  position: absolute;
  inset: -20px;
  border-radius: 36px;
  background: radial-gradient(circle, rgba(60,100,255,0.5) 0%, rgba(140,40,230,0.28) 45%, transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}
.logo-cube {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  filter:
    drop-shadow(0 0 18px rgba(50,100,255,0.65))
    drop-shadow(0 0 40px rgba(50,100,255,0.28))
    drop-shadow(0 4px 18px rgba(0,0,0,0.55));
}
@keyframes pulse {
  0%,100% { opacity:.6; transform:scale(1); }
  50%      { opacity:1;  transform:scale(1.08); }
}

.brand-name {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -1.5px;
  color: #fff;
  line-height: 1;
  text-shadow: 0 0 48px rgba(180,80,255,0.3);
}
.mini-brand {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1;
}

.brand-tagline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}
.tl-text {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.8px;
  color: var(--muted);
  white-space: nowrap;
}
.tl-line {
  flex: 1;
  max-width: 38px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--pink));
}
.tl-line.right { background: linear-gradient(to left, transparent, var(--pink)); }
.tl-line.small { max-width: 22px; }

/* ── UTILITIES ─────────────────────────── */
.cyan {
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(34,211,238,0.70), 0 0 30px rgba(34,211,238,0.35);
}
.grad-pink {
  background: linear-gradient(135deg, #ff007a 0%, #f500ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── CONTAINER ─────────────────────────── */
.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 14px 14px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── BADGE ─────────────────────────────── */
.badge-security {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(9,9,24,0.97);
  border: 2px solid rgba(175,90,255,0.75);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow:
    0 0 10px rgba(170,85,255,0.55),
    0 0 25px rgba(150,65,255,0.28),
    0 0 50px rgba(130,45,255,0.13);
}
.badge-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(139,92,246,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge-title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .6px;
  color: #fff;
}
.badge-sub {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

/* ── CARD ──────────────────────────────── */
.card-payment {
  background: linear-gradient(180deg, rgba(22,8,50,1) 0%, rgba(9,9,26,1) 28%);
  border: 2px solid rgba(175,90,255,0.90);
  border-radius: 20px;
  padding: 28px 18px 22px;
  box-shadow:
    0 0 14px rgba(170,85,255,0.80),
    0 0 32px rgba(150,65,255,0.55),
    0 0 65px rgba(130,45,255,0.30),
    0 0 110px rgba(110,30,255,0.15),
    0 14px 48px rgba(0,0,0,0.90);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* VALOR */
.valor-section { text-align: center; }
.valor-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--muted);
  margin-bottom: 6px;
}
.valor-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
}
.valor-rs {
  font-size: 26px;
  font-weight: 800;
  color: #e2e8f0;
  align-self: flex-end;
  margin-bottom: 14px;
}
.valor-num {
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #a855f7 0%, #d946ef 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.valor-cents {
  font-size: 30px;
  font-weight: 700;
  background: linear-gradient(135deg, #a855f7 0%, #d946ef 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  align-self: flex-end;
  margin-bottom: 12px;
}

.pacote-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--cyan);
  text-transform: uppercase;
}

/* INPUT VALOR CUSTOMIZADO */
.custom-input-wrap {
  display: none;
  justify-content: center;
  margin: 4px 0;
}
.custom-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(175,90,255,0.55);
  border-radius: 14px;
  padding: 10px 20px;
}
.custom-rs {
  font-size: 28px;
  font-weight: 800;
  color: #e2e8f0;
}
.custom-amount {
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 58px;
  font-weight: 900;
  width: 160px;
  color: transparent;
  background: linear-gradient(135deg, #a855f7 0%, #d946ef 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  caret-color: #d946ef;
  text-align: left;
}
.custom-amount::placeholder { color: rgba(139,92,246,0.35); -webkit-text-fill-color: rgba(139,92,246,0.35); }

/* DIVISOR */
.sec-divider {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sd-text {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--muted);
  white-space: nowrap;
}
.sd-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, #d946ef);
}
.sd-line.right { background: linear-gradient(to left, transparent, #d946ef); }

/* PIX OPTION */
.pix-option {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 13px 15px;
}
.pix-logo {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(0,201,167,0.22);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(0,201,167,0.25);
}
.pix-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.pix-info { flex: 1; }
.pix-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.pix-imediato {
  font-size: 12px;
  color: var(--teal);
  margin-top: 2px;
  font-weight: 500;
}
.pix-arrow {
  font-size: 24px;
  color: var(--pink);
  font-weight: 300;
  line-height: 1;
}

/* FEATURES */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.feature-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px 10px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.feat-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(139,92,246,0.18);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(139,92,246,0.2);
}
.icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.feat-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #e2e8f0;
}
.feat-text {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.55;
}

/* BOTÃO */
.btn-pay {
  width: 100%;
  padding: 18px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(92deg, #f500ff 0%, #9500d9 40%, #1565c0 100%);
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: transform .18s, box-shadow .18s;
  box-shadow:
    0 4px 32px rgba(245,0,255,0.60),
    0 4px 20px rgba(21,101,192,0.40),
    0 2px 8px rgba(0,0,0,0.5);
}
.btn-pay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.18) 0%, transparent 55%);
  border-radius: inherit;
  pointer-events: none;
}
.btn-pay:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    0 8px 36px rgba(224,64,251,0.65),
    0 4px 16px rgba(41,121,255,0.38),
    0 4px 14px rgba(0,0,0,0.45);
}
.btn-pay:active { transform: translateY(0); }
.btn-pay:disabled { opacity: .65; cursor: not-allowed; }
.btn-lock { flex-shrink: 0; }
.btn-txt  { position: relative; z-index: 1; }

.btn-spin {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .65s linear infinite;
}
.btn-spin.hidden { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.access-note {
  font-size: 11.5px;
  color: var(--dim);
  text-align: center;
  line-height: 1.55;
}
.error-msg {
  display: none;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 12.5px;
  color: #fca5a5;
  text-align: center;
}
.error-msg.show { display: block; }

/* ── FOOTER ─────────────────────────────── */
.footer { text-align: center; padding: 8px 0 18px; }
.footer-brand {
  font-size: 34px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -1px;
  line-height: 1;
}
.footer-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}
.ft-text {
  font-size: 9.5px;
  letter-spacing: 1.8px;
  color: var(--dim);
  font-weight: 500;
}

/* ── PIX TELA ──────────────────────────── */
.pix-status-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pix-status-icon {
  width: 50px;
  height: 50px;
  background: rgba(0,201,167,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pix-ok-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--teal);
}
.pix-ok-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.countdown-timer {
  font-weight: 700;
  color: var(--pink);
}

.how-to {
  background: rgba(255,255,255,0.028);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 13px 15px;
}
.how-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 8px;
}
.how-steps {
  padding-left: 17px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.how-steps li {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.how-steps strong { color: #e2e8f0; }

.code-section { display: flex; flex-direction: column; gap: 10px; }
.code-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .4px;
  color: var(--muted);
}
.code-box {
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 13px 14px;
  word-break: break-all;
}
.code-text {
  font-size: 10.5px;
  line-height: 1.7;
  color: #94a3b8;
  font-family: 'Courier New', Courier, monospace;
  user-select: all;
}

.btn-copy {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(92deg, #f500ff 0%, #9500d9 40%, #1565c0 100%);
  color: #fff;
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .18s;
  box-shadow: 0 4px 28px rgba(245,0,255,0.55), 0 4px 16px rgba(21,101,192,0.35);
}
.btn-copy:hover { transform: translateY(-1px); box-shadow: 0 7px 30px rgba(224,64,251,0.58); }
.btn-copy.copied { background: linear-gradient(100deg, #059669, #0d9488); box-shadow: 0 4px 18px rgba(5,150,105,0.38); }

.pix-valor-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.028);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 13px 16px;
}
.pix-valor-label {
  font-size: 13px;
  color: var(--muted);
}
.pix-valor-num {
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, #a855f7, #d946ef);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── TOAST ─────────────────────────────── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: #059669;
  color: #fff;
  padding: 12px 26px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(5,150,105,0.4);
  transition: opacity .3s, transform .3s;
  white-space: nowrap;
}
.toast.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(14px);
  pointer-events: none;
}

@media (max-width: 380px) {
  .valor-num { font-size: 58px; }
  .brand-name { font-size: 36px; }
  .features-grid { grid-template-columns: 1fr; }
}
