:root {
  --bg-deep: #050a1a;
  --gold: #d9a85a;
  --gold-bright: #f4c771;
  --gold-soft: #f5e1b3;
  --cream: #fdf6e8;
  --ink: #f5ecd6;
  --ink-mute: #c9c0a4;
  --red: #c0392b;
  --red-deep: #8b2418;
}

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

html { scroll-behavior: smooth; font-size: 18px; }

html, body {
  min-height: 100%;
  background: #050a1a;
  color: var(--ink);
  font-family: 'Lora', Georgia, serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(ellipse at 20% 10%, rgba(217,168,90,0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 60%, rgba(100,140,220,0.10) 0%, transparent 55%),
    linear-gradient(180deg, #0a1530 0%, #050a1a 50%, #020510 100%);
  background-attachment: fixed;
  position: relative;
  padding: 30px 18px 40px;
}

/* === BACKGROUND ANIMADO === */
.stars {
  position: fixed; inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, white, transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 80% 10%, white, transparent),
    radial-gradient(2px 2px at 30% 80%, rgba(244,199,113,0.7), transparent),
    radial-gradient(1px 1px at 90% 50%, white, transparent),
    radial-gradient(2px 2px at 50% 20%, rgba(244,199,113,0.5), transparent);
  background-size: 200% 200%;
  animation: starsDrift 60s linear infinite;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

@keyframes starsDrift {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 200%; }
}

.aurora {
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(217,168,90,0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(217,168,90,0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: auroraPulse 8s ease-in-out infinite;
}

@keyframes auroraPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

#particles {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* === CONTAINER PRINCIPAL === */
.top {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  animation: fadeIn 1s ease-out both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === LOGO === */
.logo-halo {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  width: 150px;
  height: 150px;
  position: relative;
  z-index: 3;
  filter: drop-shadow(0 0 30px rgba(244,199,113,0.6)) drop-shadow(0 8px 20px rgba(0,0,0,0.5));
  animation: logoBreath 4s ease-in-out infinite;
}

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

.halo-ring {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid rgba(244,199,113,0.4);
  animation: haloExpand 3s ease-out infinite;
  pointer-events: none;
}

.halo-ring.r2 { animation-delay: 1.5s; }

@keyframes haloExpand {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* === TÍTULO === */
.title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(38px, 7vw, 56px);
  letter-spacing: 3px;
  background: linear-gradient(180deg, var(--gold-soft) 0%, var(--gold-bright) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(244,199,113,0.3);
  margin-bottom: 14px;
  line-height: 1.1;
}

.tagline {
  font-size: clamp(20px, 3vw, 24px);
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 36px;
  letter-spacing: 0.5px;
}

/* === CARD PIX (DESTAQUE TOTAL) === */
.pix-card {
  background: linear-gradient(180deg, rgba(15,28,58,0.92) 0%, rgba(8,16,38,0.96) 100%);
  border: 2px solid var(--gold);
  border-radius: 24px;
  padding: 36px 28px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.6),
    0 0 60px rgba(244,199,113,0.2),
    inset 0 1px 0 rgba(244,199,113,0.3);
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}

.pix-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(244,199,113,0.08), transparent 40%);
  animation: glowSweep 12s linear infinite;
  pointer-events: none;
}

@keyframes glowSweep {
  to { transform: rotate(360deg); }
}

/* === QR CODE === */
.qr-frame {
  display: inline-block;
  background: var(--cream);
  padding: 20px;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 0 2px var(--gold-bright);
  position: relative;
  z-index: 2;
}

.qr {
  width: 260px;
  height: 260px;
  display: block;
}

.qr-instruction {
  margin-top: 22px;
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 500;
  color: var(--gold-soft);
  position: relative;
  z-index: 2;
}

/* === DIVIDER === */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 30px 0 22px;
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 14px;
  letter-spacing: 3px;
  font-weight: 600;
  position: relative;
  z-index: 2;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217,168,90,0.6), transparent);
}

/* === BLOCO PIX === */
.pix-block {
  background: rgba(0,0,0,0.4);
  border: 2px dashed var(--gold);
  border-radius: 14px;
  padding: 22px 18px;
  position: relative;
  z-index: 2;
}

.pix-label {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: 600;
}

#pixKey {
  display: block;
  background: rgba(253,246,232,0.08);
  border: 1px solid rgba(217,168,90,0.4);
  color: var(--ink);
  padding: 18px 16px;
  border-radius: 12px;
  font-family: 'Lora', monospace;
  font-size: clamp(18px, 2.8vw, 22px);
  font-weight: 600;
  word-break: break-all;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

#copyBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1a1208;
  border: none;
  padding: 20px 24px;
  border-radius: 12px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(18px, 2.6vw, 20px);
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(217,168,90,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}

#copyBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(217,168,90,0.6), inset 0 1px 0 rgba(255,255,255,0.4);
}

#copyBtn:active { transform: translateY(0); }

/* === VERSÍCULO === */
.verse {
  background: rgba(217,168,90,0.05);
  border-left: 3px solid var(--gold);
  border-right: 3px solid var(--gold);
  padding: 28px 26px;
  margin: 0 0 36px;
  text-align: center;
  position: relative;
}

.verse::before, .verse::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 1px;
  background: var(--gold);
  left: 50%;
  transform: translateX(-50%);
}
.verse::before { top: 0; }
.verse::after { bottom: 0; }

.verse p {
  font-style: italic;
  font-size: clamp(19px, 2.8vw, 22px);
  color: var(--ink);
  line-height: 1.65;
  margin-bottom: 14px;
}

.verse cite {
  display: block;
  font-style: normal;
  font-family: 'Cinzel', serif;
  color: var(--gold-bright);
  font-size: 15px;
  letter-spacing: 3px;
  font-weight: 600;
}

/* === ORAÇÃO === */
.prayer {
  font-style: italic;
  font-size: clamp(19px, 2.8vw, 22px);
  color: var(--gold-soft);
  margin-bottom: 40px;
  line-height: 1.7;
  padding: 0 8px;
}

.prayer strong {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-family: 'Cinzel', serif;
  color: var(--gold-bright);
  font-size: clamp(22px, 3.2vw, 28px);
  letter-spacing: 6px;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(244,199,113,0.5);
}

/* === BOTÃO YOUTUBE === */
.yt-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff;
  text-decoration: none;
  padding: 22px 40px;
  border-radius: 60px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(18px, 2.6vw, 22px);
  letter-spacing: 2px;
  box-shadow: 0 12px 36px rgba(192,57,43,0.55);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.yt-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}

.yt-btn:hover::before { left: 100%; }
.yt-btn:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(192,57,43,0.7); }

/* === FOOTER === */
footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px 20px;
  margin-top: 50px;
  color: var(--ink-mute);
  font-size: 16px;
  border-top: 1px solid rgba(217,168,90,0.2);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.footer-verse {
  font-size: 17px;
  color: var(--gold);
  margin-top: 8px;
}

/* === TOAST === */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: linear-gradient(135deg, #0e2348, #061129);
  color: var(--gold-bright);
  border: 2px solid var(--gold);
  padding: 18px 30px;
  border-radius: 60px;
  font-size: 17px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: 1.5px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 30px rgba(244,199,113,0.3);
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  html { font-size: 17px; }
  body { padding: 20px 12px 30px; }
  .pix-card { padding: 28px 18px; }
  .qr { width: 230px; height: 230px; }
  .qr-frame { padding: 16px; }
  .verse { padding: 24px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
