/* ============================================================
   NEY IN WORLD CUP — Estilo inspirado no mbappein.com
   Preto profundo + dourado/amarelo + verde Brasil sutil
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg: #0b0907;
  --bg-2: #120f0b;
  --gold: #d4a017;
  --gold-bright: #f0bf2a;
  --gold-dark: #8c6a10;
  --green: #009c3b;
  --text: #f5f5f5;
  --text-dim: #b8b0a5;
  --text-faded: #8c8577;
  --border: #3a2f15;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 20% 10%, rgba(212, 160, 23, 0.08), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(212, 160, 23, 0.05), transparent 40%),
    repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(255,255,255,0.012) 3px, rgba(255,255,255,0.012) 4px);
}

.page {
  max-width: 460px;
  margin: 0 auto;
  padding: 60px 22px 60px;
  position: relative;
}

/* ============================================================
   Seletor de idiomas
   ============================================================ */
.lang-switcher {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 50;
  display: flex;
  gap: 4px;
  background: rgba(20, 16, 10, 0.85);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 6px 10px;
  border-radius: 100px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  color: var(--text);
  background: rgba(212, 160, 23, 0.1);
}

.lang-btn.active {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1a1306;
  box-shadow: 0 0 12px rgba(240,191,42,0.4);
}

.lang-btn .flag {
  font-size: 13px;
  line-height: 1;
}

.lang-btn .code {
  font-size: 10px;
  letter-spacing: 1px;
}

/* ===== Header ===== */
.header {
  text-align: center;
  padding: 8px 0 18px;
}

.logo {
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  font-size: 22px;
  letter-spacing: 5px;
  font-weight: 400;
  color: var(--text);
}

.logo-sub {
  font-size: 10px;
  color: var(--text-faded);
  margin-top: 4px;
  letter-spacing: 1.5px;
  font-style: italic;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  margin: 14px 0 36px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-photo {
  width: 100%;
  aspect-ratio: 879/1024;
  max-width: 360px;
  background: linear-gradient(180deg, #1a1306 0%, #0b0907 100%);
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.6),
    0 0 0 1px rgba(212,160,23,0.25),
    0 0 80px rgba(212,160,23,0.12);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Banner inclinado "NA COPA / IN THE CUP / AL MUNDIAL" */
.stay-banner {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 100%);
  color: #1a1306;
  padding: 14px 36px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 38px;
  letter-spacing: 3px;
  font-weight: 400;
  box-shadow:
    0 0 0 2px rgba(0,0,0,0.4),
    0 0 30px rgba(212,160,23,0.4),
    0 10px 24px rgba(0,0,0,0.5);
  border-radius: 2px;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.15);
  white-space: nowrap;
  min-width: 180px;
  text-align: center;
}

/* ===== Frase causa ===== */
.cause {
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.55;
  margin: 38px 14px 22px;
  font-style: italic;
}

/* ===== Contador ===== */
.counter-card {
  background: linear-gradient(180deg, #15110a 0%, #0d0b08 100%);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 22px 20px 18px;
  margin: 18px 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.counter-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.counter-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 44px;
  font-weight: 400;
  color: var(--text);
  line-height: 1;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}

.counter-target { text-align: right; }

.counter-target-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 1px;
  line-height: 1;
}

.counter-target-label {
  font-size: 9px;
  color: var(--text-faded);
  letter-spacing: 2px;
  margin-top: 4px;
}

.progress-bar {
  height: 4px;
  background: rgba(212,160,23,0.12);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-bright));
  width: 0%;
  transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 0 12px rgba(240,191,42,0.5);
}

.counter-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--text-faded);
}

/* ===== Botão principal ===== */
.btn-primary {
  width: 100%;
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 100%);
  color: #1a1306;
  border: 2px solid transparent;
  padding: 18px 20px;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 1.5px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 18px;
  box-shadow:
    0 0 30px rgba(240,191,42,0.35),
    0 8px 24px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.35);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  text-transform: uppercase;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 40px rgba(240,191,42,0.55),
    0 12px 28px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.4);
}

.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/* ===== Botão principal — estado pós-assinatura (outlined) ===== */
.btn-primary.signed {
  background: transparent;
  color: var(--gold-bright);
  border: 2px solid var(--gold);
  cursor: default;
  animation: none;
  box-shadow:
    inset 0 0 30px rgba(240, 191, 42, 0.08),
    0 0 20px rgba(212, 160, 23, 0.15);
  font-size: 13px;
  letter-spacing: 2px;
  text-shadow: 0 0 12px rgba(240, 191, 42, 0.35);
}

.btn-primary.signed:hover {
  transform: none;
  background: rgba(212, 160, 23, 0.05);
  box-shadow:
    inset 0 0 30px rgba(240, 191, 42, 0.12),
    0 0 24px rgba(212, 160, 23, 0.2);
}

.btn-primary.signed:active { transform: none; }

/* ===== Disclaimer ===== */
.disclaimer {
  text-align: center;
  font-size: 10px;
  color: var(--text-faded);
  margin: 14px 8px 22px;
  line-height: 1.5;
}

.disclaimer.hidden { display: none; }

/* ===== Subtítulo pós-assinatura (oculto por padrão) ===== */
.signed-subtitle {
  display: none;
  text-align: center;
  font-size: 11px;
  color: var(--text-dim);
  margin: 14px 8px 22px;
  line-height: 1.5;
  letter-spacing: 0.3px;
}

.signed-subtitle.visible { display: block; }

/* ===== Botão compartilhar ===== */
.btn-share {
  width: 100%;
  background: rgba(20,16,10,0.6);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 15px 18px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
}

.btn-share:hover {
  background: rgba(212,160,23,0.08);
  border-color: var(--gold-dark);
  color: var(--gold);
}

.btn-share i { font-size: 14px; }

/* ===== Divisor ===== */
.divider {
  margin: 36px 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(212,160,23,0.18);
}

.divider span {
  padding: 0 14px;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-faded);
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  color: var(--text-faded);
  font-size: 11px;
  margin-top: 14px;
  line-height: 1.6;
}

/* ============================================================
   Modal
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal.active {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.modal-content {
  background: linear-gradient(180deg, #1a140a 0%, #0d0b08 100%);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 26px 24px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 80px rgba(212,160,23,0.15);
  animation: slideUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #1a1306;
  font-size: 28px;
  box-shadow: 0 0 30px rgba(240,191,42,0.5);
}

.modal-content h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 2px;
  margin-bottom: 8px;
  color: var(--text);
}

.modal-content p {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 22px;
  line-height: 1.5;
}

.btn-close {
  width: 100%;
  background: transparent;
  color: var(--text-faded);
  border: none;
  padding: 12px;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  text-transform: uppercase;
}

.btn-close:hover { color: var(--text); }

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--gold);
  color: #1a1306;
  padding: 12px 22px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 200;
  max-width: 90vw;
}

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

/* ============================================================
   Animações
   ============================================================ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 30px rgba(240,191,42,0.35), 0 8px 24px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.35); }
  50% { box-shadow: 0 0 50px rgba(240,191,42,0.55), 0 8px 24px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.35); }
}

.btn-primary { animation: pulseGlow 2.6s ease-in-out infinite; }

/* ============================================================
   Responsivo
   ============================================================ */
@media (max-width: 380px) {
  .stay-banner { font-size: 32px; padding: 12px 28px; }
  .counter-number { font-size: 38px; }
  .hero-photo { max-width: 100%; }
  .logo { font-size: 18px; letter-spacing: 4px; }
}

@media (min-width: 768px) {
  .page { padding-top: 70px; }
  .counter-number { font-size: 54px; }
}
