/* ==========================================================================
   FUTURISTIC XMAS - CSS COMPLETO (FINAL v4 CORRIGIDO)
   ========================================================================== */

/* 1. RESET & GLOBAIS */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-dark: #0a0e27;
  --bg-light: #11193f;
  --accent: #ff5a5a;
  --glow: rgba(120, 160, 255, 0.45);
}

html, body { height: 100%; }

body {
  background: radial-gradient(circle at 50% 0, #131a42 0%, #080b20 75%);
  color: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}

/* Canvas da Neve (Fundo) */
#snowCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* 2. HEADER */
.header {
  margin-top: 36px;
  text-align: center;
  position: relative;
  z-index: 10;
}

.titulo-neo {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 2px;
  text-shadow: 0 0 25px rgba(255, 60, 60, 0.5), 0 0 40px var(--glow);
  margin-bottom: 10px;
}

.welcome {
  font-size: 16px;
  opacity: .9;
  color: #dbeaff;
}

/* 3. ÁREA DO CALENDÁRIO (PRINCIPAL) */
.calendar-area {
  margin-top: 46px;
  text-align: center;
  position: relative;
  z-index: 10;
}

.calendar-png-wrapper {
  position: relative;
  width: 350px;
  margin: 0 auto;
  cursor: pointer;
  transition: transform .3s ease;
  perspective: 1000px;
}

.calendar-png-wrapper:hover {
  transform: scale(1.03);
}

.calendar-png {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.6));
}

/* ================================================================
   CORREÇÃO DEFINITIVA DO NÚMERO (RESTOURADO DO SEU CÓDIGO)
   ================================================================ */
.calendar-day-display {
    position: absolute;
    
    /* Coordenadas originais que você enviou */
    top: 75% !important;        
    left: 38% !important;       
    
    transform: translate(-5%, -50%) rotate(0deg) !important; 
    
    font-size: 80px !important; 
    
    font-weight: 900;
    color: #d62828 !important;
    
    text-shadow: 
        1px 1px 0 rgba(160, 30, 30, 0.5),
        0 2px 5px rgba(0,0,0,0.1) !important;
        
    pointer-events: none;
    z-index: 10;
    display: block !important;
}

.calendar-month-display {
  position: absolute;
  top: 58%;
  left: 51%;
  transform: translate(-50%, -50%);
  font-size: 26px; /* Ajustado para 26px conforme seu código */
  font-weight: 800;
  color: #3b1f1f;
  text-transform: uppercase;
  letter-spacing: 2px;
  
  text-shadow: 
        0px 1px 0 rgba(255,255,255,0.4),
        0px 2px 3px rgba(0,0,0,0.2);

  pointer-events: none;
  z-index: 9;
}

/* Animação de Rasgo */
.calendar-rip {
  position: absolute;
  top: 34%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 40%;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  opacity: 0;
  pointer-events: none;
}

.calendar-rip.rip {
  animation: ripAway .8s ease-out forwards;
}

@keyframes ripAway {
  0%   { transform: translate(-50%, 0) rotate(0) scale(1); opacity: 1; }
  40%  { transform: translate(-50%, -30%) rotate(-8deg) scale(1.05); opacity: .9; }
  100% { transform: translate(-50%, -160%) rotate(-15deg) scale(.8); opacity: 0; }
}

.legenda {
  margin-top: 20px;
  font-size: 16px;
  color: #cbd5ff;
}

/* 4. POPUP - OVERLAY */
.popup {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 20, 0.85);
  backdrop-filter: blur(14px);
  display: none; 
  align-items: center;
  justify-content: center;
  z-index: 999;
  animation: fadeInBg .45s ease forwards;
}

.popup-show { display: flex !important; }

@keyframes fadeInBg { from { opacity: 0; } to { opacity: 1; } }

/* 5. POPUP - CARD PRINCIPAL */
.popup-card {
  position: relative;
  width: 440px;
  max-width: 92%;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(25, 35, 70, 0.95), rgba(10, 15, 35, 0.99));
  border: 2px solid rgba(140, 160, 255, 0.25);
  border-radius: 22px;
  box-shadow: 
      0 35px 85px rgba(0, 0, 0, 0.75),
      0 0 40px rgba(135, 160, 255, 0.32),
      inset 0 0 20px rgba(255, 255, 255, 0.05);
  padding-top: 85px; 
  overflow: hidden;
  text-align: center;
  animation: popupEntrance .65s cubic-bezier(.25, 1.4, .3, 1) forwards;
  opacity: 0;
  transform: translateY(40px) scale(.8);
}

@keyframes popupEntrance {
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* 5.1 BOTÃO X BONITO (FECHAR) */
/* 5.1 BOTÃO X BONITO (FECHAR) – POSICIONADO ABAIXO DO TIMER */
.popup-close-btn{
    position:absolute;

    /* joga o X para baixo da barra laranja */
    top: 90px;          /* antes estava ~22px */
    right: 24px;

    width:30px;
    height:30px;
    padding:0;

    border-radius:999px;
    border:none;

    background:transparent;
    color:transparent;
    appearance:none;
    -webkit-appearance:none;

    cursor:pointer;
    z-index:25;         /* continua acima do conteúdo pra ser clicável */
}

/* bolinha com o X dentro */
.popup-close-btn::before{
    content:"✕";
    display:flex;
    align-items:center;
    justify-content:center;

    width:100%;
    height:100%;
    border-radius:inherit;

    background:rgba(8,14,40,0.95);
    color:#ffffff;
    font-size:18px;
    font-weight:700;

    box-shadow:0 0 0 2px rgba(255,255,255,0.08);
    transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.popup-close-btn:hover::before{
    transform:scale(1.05);
    background:rgba(255,122,43,0.95);
    box-shadow:0 0 18px rgba(255,122,43,0.7);
}

.popup-close-btn:active::before{
    transform:scale(0.96);
}


/* 6. BARRA DE CONTAGEM (TIMER) */
.popup-timer-bar {
  position: absolute;
  top: 15px; 
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px); 
  min-height: 60px;
  padding: 8px 16px;
  border-radius: 14px;
  background: linear-gradient(90deg, #ff7a2b, #ff4d1a);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 
      0 8px 20px rgba(255, 77, 26, 0.25),
      inset 0 1px 1px rgba(255, 255, 255, 0.2);
  z-index: 20;
}

.timer-left-group {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.timer-icon {
  width: 34px;
  height: 34px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 18px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.timer-text {
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  line-height: 1.3;
}

.timer-right-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.timer-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 42px; 
  height: 40px; 
  background: rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.timer-box span {
  font-family: monospace, sans-serif;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 2px;
}

.timer-box label {
  font-size: 7px;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  font-weight: 600;
}

/* 7. CONTEÚDO INTERNO */
.popup-content {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 30px 40px 30px;
  position: relative;
  z-index: 5;
}

/* Efeito de Aura Vermelha atrás do Título */
.titulo-com-aura {
    position: relative;
    display: inline-block;
    z-index: 5;
}

.titulo-com-aura::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160%;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 60, 60, 0.3) 0%, rgba(255, 0, 0, 0) 70%);
    filter: blur(25px);
    z-index: -1;
    pointer-events: none;
}

.popup-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 18px;
  font-weight: bold;
  color: white;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* 8. INPUTS E BOTÕES */
.popup-form input {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(120, 150, 255, 0.25);
  color: #fff;
  border-radius: 10px;
  outline: none;
  transition: .25s;
}

.popup-form input:focus {
  border-color: #ff6060;
  box-shadow: 0 0 12px rgba(255, 60, 60, 0.3);
}

.popup-btn {
  margin-top: 10px;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff4c4c, #d61515);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 10px 25px rgba(255, 60, 60, 0.25);
}

.popup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(255, 60, 60, 0.4);
}

/* 9. RESPONSIVIDADE */
@media (max-width: 480px) {
  .titulo-neo { font-size: 28px; }
  .calendar-png-wrapper { width: 280px; }
  .popup-card { width: 95%; }
  
  .popup-timer-bar { padding: 8px 10px; }
  .timer-text { font-size: 9px; }
  .timer-box { width: 36px; height: 34px; }
  .timer-box span { font-size: 14px; }
}

/* Botão VERDE (copiar código / etc) */
.popup-btn-green {
  display: block;
  margin: 18px auto 0 auto;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1dbf5b, #17a84e);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(20, 255, 120, 0.35);
  transition: transform .2s, box-shadow .2s;
}

.popup-btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 28px rgba(20, 255, 120, 0.55);
}

/* Botão LARANJA (resgatar) */
.popup-btn-orange {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff7a2b, #ff4d1a);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  margin-top: 10px;
  transition: .2s;
}

.popup-btn-orange:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ff8d4a, #ff6333);
}

/* ==========================================================================
   REDES SOCIAIS (FUTURISTAS)
   ========================================================================== */

.social-section {
  margin-top: 30px;
  padding: 20px 25px;
  
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(4px);
  
  display: inline-block;
  width: 90%;
  max-width: 600px;
  
  box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}

.social-title {
  margin-bottom: 18px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #a0b0ff;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(100, 150, 255, 0.3);
}

.social-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* Estilo Base do Botão */
.social-btn {
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 50px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  
  display: flex;
  align-items: center;
  gap: 8px;
  
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}

.social-icon {
  font-size: 16px;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2));
}

/* Hover Geral */
.social-btn:hover {
  transform: translateY(-4px) scale(1.02);
  filter: brightness(1.1);
}

/* Instagram */
.btn-insta {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); 
  box-shadow: 0 4px 15px rgba(220, 39, 67, 0.3);
}
.btn-insta:hover {
  box-shadow: 0 8px 25px rgba(220, 39, 67, 0.5);
}

/* (Facebook e WhatsApp seguem aqui, mesmo que não use no modal) */
.btn-face {
  background: linear-gradient(to bottom, #1877F2, #125ac4);
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}
.btn-face:hover {
  box-shadow: 0 8px 25px rgba(24, 119, 242, 0.5);
}

.btn-whats {
  background: linear-gradient(to bottom, #25D366, #128C7E);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
}
.btn-whats:hover {
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
}

/* Responsivo das redes */
@media (max-width: 400px) {
  .social-section {
    width: 100%;
    border-radius: 0;
    border-left: none; 
    border-right: none;
    background: rgba(0,0,0,0.2);
  }
  .social-grid {
    flex-direction: column;
    gap: 10px;
  }
  .social-btn {
    width: 100%;
    justify-content: center;
  }
}

.site-oficial-wrapper {
    text-align: center;
    margin: 25px 0 5px;
}

.site-oficial-btn {
    display: inline-block;
    padding: 12px 20px;
    background: #4d78ff;
    color: white;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    transition: .25s;
    box-shadow: 0 0 15px rgba(77,120,255,0.4);
}

.site-oficial-btn:hover {
    background: #6d90ff;
    transform: scale(1.05);
}

/* DISPOSIÇÃO DOS BOTÕES DAS REDES */
.social-grid {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: nowrap;
}

@media (max-width: 600px) {
    .social-grid {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
    }

    .social-grid .social-btn {
        width: 100%;
        text-align: center;
    }
}

/* BARRA DE CONTADOR DO TOPO DA PÁGINA */
.page-timer-bar {
    width: 100%;
    max-width: 600px;
    margin: 20px auto 10px auto;
    background: linear-gradient(90deg, #ff2e63, #ff6f20);
    padding: 12px 20px;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    box-shadow: 0 0 12px rgba(255, 90, 40, 0.4);
}

.page-timer-bar .timer-left-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-timer-bar .timer-icon {
    font-size: 30px;
}

.page-timer-bar .timer-text {
    font-size: 14px;
    font-weight: bold;
    line-height: 15px;
    text-transform: uppercase;
}

.page-timer-bar .timer-right-group {
    display: flex;
    gap: 10px;
}

.page-timer-bar .timer-box {
    background: rgba(255,255,255,0.15);
    padding: 6px 10px;
    border-radius: 8px;
    text-align: center;
    min-width: 55px;
}

.page-timer-bar .timer-box span {
    display: block;
    font-size: 22px;
    font-weight: bold;
}

.page-timer-bar .timer-box label {
    font-size: 11px;
    margin-top: -2px;
    display: block;
    opacity: .9;
}
