/* ===== Reset / Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(ellipse at top, #1a0b3d 0%, #0b0420 60%, #050110 100%);
  color: #f3eefe;
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, input { font: inherit; }
a { color: #c8a4ff; }

/* ===== Hero ===== */
.hero {
  position: relative;
  text-align: center;
  padding: 56px 20px 32px;
  overflow: hidden;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.4rem);
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #f9d976 0%, #ffaab0 40%, #c8a4ff 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 24px rgba(200, 164, 255, 0.35));
}
.hero .tag {
  margin: 8px 0 0;
  opacity: 0.85;
  font-size: 1.05rem;
}

/* Estrelas decorativas */
.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 20% 30%, #fff, transparent),
    radial-gradient(1px 1px at 60% 70%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 80% 20%, #fff, transparent),
    radial-gradient(1px 1px at 35% 80%, #fff, transparent),
    radial-gradient(2px 2px at 90% 65%, #fff, transparent),
    radial-gradient(1px 1px at 50% 50%, #fff, transparent);
  opacity: 0.7;
  animation: twinkle 4s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.3; } to { opacity: 0.85; } }

/* ===== Layout ===== */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 18px 80px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(200, 164, 255, 0.18);
  backdrop-filter: blur(8px);
  border-radius: 18px;
  padding: 26px 22px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.card h2 {
  margin: 0 0 4px;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, #c8a4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.card .sub { margin: 0 0 18px; opacity: 0.7; font-size: 0.95rem; }
.card h3 { margin: 0 0 8px; color: #f9d976; }

/* ===== Form ===== */
form { display: flex; flex-direction: column; gap: 14px; }
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  opacity: 0.9;
}
input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(200, 164, 255, 0.25);
  color: #fff;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus {
  border-color: #c8a4ff;
  box-shadow: 0 0 0 3px rgba(200, 164, 255, 0.2);
}

button {
  background: linear-gradient(135deg, #6a3df0 0%, #b552ff 100%);
  color: #fff;
  border: none;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 8px 24px rgba(106, 61, 240, 0.4);
}
button:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(106, 61, 240, 0.55); }
button:active { transform: translateY(0); }
button:disabled { opacity: 0.55; cursor: wait; }

button.ghost {
  background: transparent;
  border: 1px solid rgba(200, 164, 255, 0.35);
  box-shadow: none;
}
button.primary {
  background: linear-gradient(135deg, #f9d976 0%, #ff7a8b 100%);
  color: #2a0a40;
  box-shadow: 0 8px 24px rgba(249, 217, 118, 0.35);
}

.legal { display: block; margin-top: 12px; opacity: 0.55; font-size: 0.8rem; }

/* ===== Resultado ===== */
.hidden { display: none !important; }

.result .capture-zone {
  background: linear-gradient(160deg, #1a0b3d 0%, #2a0a40 100%);
  padding: 28px 22px 22px;
  border-radius: 14px;
  border: 1px solid rgba(249, 217, 118, 0.2);
  position: relative;
}
.result-header { text-align: center; margin-bottom: 22px; }
.result-badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  padding: 4px 12px;
  border: 1px solid rgba(249, 217, 118, 0.5);
  border-radius: 999px;
  color: #f9d976;
  margin-bottom: 10px;
}
#resNome {
  margin: 4px 0 2px;
  font-size: 1.5rem;
  text-transform: capitalize;
  background: linear-gradient(135deg, #fff 0%, #f9d976 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.tile {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(200, 164, 255, 0.18);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
}
.tile-emoji { font-size: 2.2rem; line-height: 1; }
.tile-color {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin: 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px currentColor;
}
.tile-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: 8px;
}
.tile-value {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 4px;
}

.profecia {
  margin-top: 20px;
  padding: 18px;
  background: rgba(249, 217, 118, 0.08);
  border-left: 3px solid #f9d976;
  border-radius: 8px;
  font-style: italic;
  font-size: 1.02rem;
}
.profecia-label {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: #f9d976;
  font-style: normal;
  margin-bottom: 8px;
}

.result-footer {
  text-align: center;
  margin-top: 18px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  opacity: 0.45;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.actions button { flex: 1; min-width: 120px; }

/* ===== Upsell / Afiliado ===== */
.upsell {
  margin-top: 22px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(249, 217, 118, 0.12), rgba(255, 122, 139, 0.08));
  border: 1px solid rgba(249, 217, 118, 0.3);
  border-radius: 14px;
  text-align: center;
}
.upsell h3 { margin: 0 0 6px; }
.upsell p { margin: 0 0 12px; opacity: 0.85; }
.btn-cta {
  display: inline-block;
  padding: 12px 22px;
  background: linear-gradient(135deg, #f9d976 0%, #ff7a8b 100%);
  color: #2a0a40 !important;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(249, 217, 118, 0.3);
  transition: transform 0.15s;
}
.btn-cta:hover { transform: translateY(-1px); }

/* ===== Info / FAQ ===== */
.info details {
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}
.info summary { font-weight: 600; }
.info summary + p { margin-top: 8px; opacity: 0.85; }

/* ===== Tip Jar — PIX com QR ===== */
.tip-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0 6px;
}
.tip-btn {
  background: rgba(249, 217, 118, 0.12);
  color: #f9d976;
  border: 1px solid rgba(249, 217, 118, 0.35);
  padding: 12px 6px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.15s, transform 0.1s;
}
.tip-btn:hover { background: rgba(249, 217, 118, 0.22); transform: translateY(-1px); }

.pix-block {
  margin-top: 14px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  border: 1px solid rgba(249, 217, 118, 0.25);
}
.pix-qr-wrap {
  background: #fff;
  width: 240px;
  height: 240px;
  margin: 0 auto 12px;
  padding: 8px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pix-qr-wrap img { max-width: 100%; height: auto; display: block; }
.pix-instr { text-align: center; font-size: 0.9rem; opacity: 0.85; margin: 4px 0 10px; }
.pix-meta { text-align: center; font-size: 0.78rem; opacity: 0.6; margin: 8px 0 0; }

.tipjar .pix-key {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}
.pix-key code {
  flex: 1;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-family: ui-monospace, "Cascadia Mono", Menlo, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px dashed rgba(200, 164, 255, 0.3);
}

/* ===== Share row ===== */
.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px dashed rgba(200, 164, 255, 0.18);
}
.share-row-label {
  font-size: 0.82rem;
  opacity: 0.65;
  margin-right: 4px;
  flex-basis: 100%;
}
.share-btn {
  flex: 1;
  min-width: 80px;
  padding: 10px 8px;
  font-size: 0.88rem;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.15s;
  box-shadow: none;
}
.share-btn:hover { transform: translateY(-1px); opacity: 0.92; }
.share-wa { background: #25D366; }
.share-tg { background: #229ED9; }
.share-tw { background: #000000; }
.share-fb { background: #1877F2; }

/* ===== Ad Slot ===== */
.ad-slot {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(200, 164, 255, 0.15);
  border-radius: 12px;
}
.ad-slot:empty::before {
  content: "espaço reservado para anúncio";
  font-size: 0.75rem;
  opacity: 0.35;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 30px 16px;
  opacity: 0.55;
  font-size: 0.85rem;
}
footer .micro { font-size: 0.75rem; opacity: 0.7; margin-top: 6px; }

/* ===== Mobile ===== */
@media (max-width: 480px) {
  .hero { padding: 40px 16px 24px; }
  .card { padding: 20px 16px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { padding: 14px 8px; }
  .actions button { font-size: 0.9rem; padding: 12px 14px; }
}
