:root {
  --bg: #07080d;
  --surface: #0d1117;
  --surface2: #131923;
  --gold: #f5c842;
  --gold-dim: rgba(245,200,66,0.12);
  --gold-glow: rgba(245,200,66,0.25);
  --red: #ff4545;
  --red-dim: rgba(255,69,69,0.15);
  --text: #eef0f4;
  --muted: #7a8694;
  --border: rgba(255,255,255,0.06);
}

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

html, body {
  height: 100%;
  font-family: Inter, system-ui, 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* fundo com ruído sutil */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(245,200,66,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(255,69,69,0.04) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
}

.card {
  max-width: 500px;
  width: 100%;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.02) inset;
  overflow: hidden;
}

/* topo com badge */
.card-top {
  background: linear-gradient(135deg, rgba(245,200,66,0.1) 0%, rgba(245,200,66,0.04) 100%);
  border-bottom: 1px solid var(--border);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-dim);
  border: 1px solid rgba(245,200,66,0.3);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: blink 1.4s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* corpo do card */
.card-body {
  padding: 32px 28px 28px;
  text-align: center;
}

h1 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text);
}

/* bloco de preço */
.price-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
}

.price-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-old {
  font-size: 20px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
}

.price-saving {
  display: inline-block;
  background: var(--red-dim);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,69,69,0.25);
}

.price-new {
  font-size: 64px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 40px rgba(245,200,66,0.3);
}

.price-new sup {
  font-size: 26px;
  font-weight: 700;
  vertical-align: top;
  margin-top: 10px;
  opacity: 0.8;
}

/* divisor */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0 -28px 28px;
}

/* timer */
.timer-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.count-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.count {
  font-size: 64px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--gold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: color 0.5s ease;
}

.count.urgent { color: var(--red); }

.count.urgent-pulse {
  animation: pulse 0.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* barra de progresso */
.progress-track {
  width: 85%;
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold) 0%, #ffda70 100%);
  transform-origin: left;
  transition: width 0.9s linear, background 0.5s ease;
}

.progress-fill.urgent {
  background: linear-gradient(90deg, var(--red) 0%, #ff7a7a 100%);
}

/* CTA */
.cta-wrap {
  position: relative;
  display: block;
  margin-bottom: 16px;
}

.cta {
  display: block;
  width: 100%;
  padding: 17px 24px;
  border-radius: 14px;
  background: var(--gold);
  color: #1a1000;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 20px var(--gold-glow), 0 1px 0 rgba(255,255,255,0.2) inset;
}

/* shimmer no hover */
.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0s;
}

.cta:hover::before {
  left: 130%;
  transition: left 0.5s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--gold-glow), 0 1px 0 rgba(255,255,255,0.2) inset;
}

.cta:active {
  transform: translateY(0);
}

.cta.disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: not-allowed;
}

/* segurança */
.secure-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 18px;
}

.secure-row svg {
  flex-shrink: 0;
  opacity: 0.6;
}

/* nota final */
.note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.note strong { color: rgba(255,255,255,0.5); }

/* responsivo */
@media (max-width: 440px) {
  .card-body { padding: 24px 20px 22px; }
  .divider { margin: 0 -20px 24px; }
  h1 { font-size: 20px; }
  .count { font-size: 52px; }
  .price-new { font-size: 28px; }
  .progress-track { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .cta::before, .badge-dot, .count.urgent-pulse { animation: none; transition: none; }
}
