/* Minimal New Year decorations: garland + snowfall */

/* Snow falling animation */
@keyframes snowfall {
  0%   { transform: translateY(-100vh) rotate(0deg);   opacity:1; }
  100% { transform: translateY(100vh)  rotate(360deg);  }
}

/* Garland twinkle animation */
@keyframes twinkle {
  0%,100% { opacity:.35 }
  50%     { opacity:1   }
}

/* Fixed containers */
.christmas-lights {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  pointer-events: none;
  z-index: 1000;
}

.light {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: twinkle 2s ease-in-out infinite;
}

/* Generate 20 evenly-spaced bulbs */
.light:nth-child(1)  { left:5%;  animation-delay:0s   }
.light:nth-child(2)  { left:10%; animation-delay:.2s }
.light:nth-child(3)  { left:15%; animation-delay:.4s }
.light:nth-child(4)  { left:20%; animation-delay:.6s }
.light:nth-child(5)  { left:25%; animation-delay:.8s }
.light:nth-child(6)  { left:30%; animation-delay:1s  }
.light:nth-child(7)  { left:35%; animation-delay:1.2s}
.light:nth-child(8)  { left:40%; animation-delay:1.4s}
.light:nth-child(9)  { left:45%; animation-delay:1.6s}
.light:nth-child(10) { left:50%; animation-delay:1.8s}
.light:nth-child(11) { left:55%; animation-delay:2s  }
.light:nth-child(12) { left:60%; animation-delay:2.2s}
.light:nth-child(13) { left:65%; animation-delay:2.4s}
.light:nth-child(14) { left:70%; animation-delay:2.6s}
.light:nth-child(15) { left:75%; animation-delay:2.8s}
.light:nth-child(16) { left:80%; animation-delay:3s  }
.light:nth-child(17) { left:85%; animation-delay:3.2s}
.light:nth-child(18) { left:90%; animation-delay:3.4s}
.light:nth-child(19) { left:95%; animation-delay:3.6s}
  .light:nth-child(20) { left:100%;animation-delay:3.8s}
  
    /* Promotion Banner */
    .ny-promotion-banner {
      background: linear-gradient(90deg, #1b0060, #7b6dff, #ff0075, #1b0060);
      background-size: 200% auto;
      color: #fff;
      padding: 12px 20px;
      text-align: center;
      position: relative; /* Changed from sticky to relative to stay at the very top */
      z-index: 1001;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
      animation: bannerShift 5s linear infinite;
    }

    /* Ensure navbar is below the banner and sticks to the top when scrolling */
    .navbar {
      position: sticky !important;
      top: 0 !important;
      z-index: 1000;
    }

    /* Adjust main content padding to account for the new layout (banner + sticky navbar) */
    /* Only apply to the main container, heroes should handle their own internal centering */
    .home-page main, 
    .page-main {
      padding-top: 20px !important;
    }

    .premium-hero,
    .api-hero {
      padding: 60px 20px !important;
      display: flex !important;
      flex-direction: column !important;
      justify-content: center !important;
      align-items: center !important;
      min-height: 80vh !important;
      text-align: center !important;
    }

    .premium-hero .hero-content {
      margin: 0 !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      justify-content: center !important;
      width: 100% !important;
      max-width: 1000px !important;
    }

    /* API hero needs to keep its potential 2-column layout but be vertically centered */
    .api-hero .api-hero-content {
      margin: 0 auto !important;
      display: flex !important;
      flex-direction: row !important; /* Keep horizontal on desktop */
      align-items: center !important;
      justify-content: center !important;
      width: 100% !important;
      max-width: 1200px !important;
      gap: 40px !important;
    }

    @media (max-width: 968px) {
      .api-hero .api-hero-content {
        flex-direction: column !important;
      }
    }

    .premium-hero h1,
    .api-hero h1 {
      margin-top: 0 !important;
    }

    /* Add spacing for New Year buttons */
    .cta-btn {
      margin-top: 25px !important;
    }

    .hero-countdown {
      margin-bottom: 10px !important;
    }
    
    @keyframes bannerShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
  }
  
    .ny-promotion-banner .banner-content {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 15px;
      max-width: 1200px;
      margin: 0 auto;
      font-weight: 600;
      text-align: center;
      width: 100%;
    }
  
  .ny-promotion-banner .banner-text {
    font-size: 0.95rem;
  }
  
  .ny-promotion-banner .banner-dates {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
  }
  
  .ny-promotion-banner .banner-btn {
    background: #fff;
    color: #ff0075;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
  }
  
  .ny-promotion-banner .banner-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  }
  
  @media (max-width: 768px) {
    .ny-promotion-banner {
      padding: 15px 15px;
    }
    .ny-promotion-banner .banner-content {
      flex-direction: column;
      gap: 10px;
    }
    .ny-promotion-banner .banner-emoji {
      font-size: 1.2rem;
      margin-bottom: -5px;
    }
    .ny-promotion-banner .banner-text {
      font-size: 0.9rem;
      line-height: 1.3;
      max-width: 320px;
      margin: 0 auto;
    }
    .ny-promotion-banner .banner-dates {
      font-size: 0.8rem;
      padding: 4px 12px;
    }
    .ny-promotion-banner .banner-btn {
      width: 80%;
      max-width: 200px;
      padding: 8px 15px;
      font-size: 0.9rem;
      font-weight: 700;
    }
  }
  
  /* New Year Discounts Section */
  .ny-discounts-section {
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
  }
  
  .ny-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 50px;
    background: linear-gradient(45deg, #ff0075, #fff, #ff0075);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titlePulse 3s infinite;
  }
  
  @keyframes titlePulse {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 0, 117, 0.5)); }
    50% { filter: drop-shadow(0 0 25px rgba(255, 0, 117, 0.8)); }
  }
  
  .ny-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .ny-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
  }
  
  .ny-card.highlight {
    background: rgba(123, 109, 255, 0.1);
    border-color: rgba(123, 109, 255, 0.3);
    transform: scale(1.05);
  }
  
  .ny-card:hover {
    transform: translateY(-10px);
    border-color: #ff0075;
    box-shadow: 0 10px 30px rgba(255, 0, 117, 0.2);
  }
  
  .ny-duration {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 10px;
  }
  
  .ny-discount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ff0075;
    margin-bottom: 15px;
  }
  
  .ny-price {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
  }
  
  .old-price {
    font-size: 1.2rem;
    text-decoration: line-through;
    color: #666;
    margin-left: 10px;
  }
  
  .ny-promo {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 0.9rem;
  }
  
  .promo-code {
    color: #ff0075;
    font-weight: 700;
    letter-spacing: 1px;
  }
  
  .ny-btn {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    background: #ff0075;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .ny-btn:hover {
    background: #ff3d97;
    transform: scale(1.02);
  }
  
  .ny-extra-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto 0;
  }
  
.ny-extra-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.ny-extra-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.ny-extra-card h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: #fff;
}

.ny-extra-card p {
  color: #ccc;
  line-height: 1.5;
  margin-bottom: 20px;
}

.tg-card h3 {
  margin-bottom: 0;
}

.tg-card p {
  margin: 0;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ny-btn.secondary {
  background: linear-gradient(135deg, #7b6dff, #5c4dff);
  box-shadow: 0 4px 15px rgba(123, 109, 255, 0.3);
}

.tg-card {
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.1), rgba(123, 109, 255, 0.1));
  border-color: rgba(0, 136, 204, 0.3);
}

.tg-card:hover {
  border-color: rgba(0, 136, 204, 0.6);
  box-shadow: 0 10px 40px rgba(0, 136, 204, 0.2);
}

.ny-btn.telegram {
  background: linear-gradient(135deg, #0088cc, #00aaff);
  box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

.ny-btn.telegram:hover {
  background: linear-gradient(135deg, #0099ee, #00bbff);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}
  
  .ny-api-badge {
      display: inline-block;
      background: linear-gradient(45deg, #ff0075, #7b6dff);
      color: #fff;
      padding: 8px 16px;
      border-radius: 12px;
      font-weight: 700;
      margin-bottom: 20px;
      box-shadow: 0 0 20px rgba(255, 0, 117, 0.4);
      animation: badgePulse 2s infinite;
    }
    
    /* Festive Card Enhancements */
    .ny-festive-card {
      border: 2px solid #ff0075 !important;
      box-shadow: 0 0 30px rgba(255, 0, 117, 0.3) !important;
      background: linear-gradient(135deg, rgba(255, 0, 117, 0.1), rgba(123, 109, 255, 0.15)) !important;
    }

    .ny-festive-card:hover {
      box-shadow: 0 0 50px rgba(255, 0, 117, 0.5) !important;
      transform: translateY(-15px) scale(1.03) !important;
    }

    .ny-card-badge {
      position: absolute;
      top: 20px;
      left: 20px;
      background: #fff;
      color: #ff0075;
      padding: 4px 12px;
      border-radius: 20px;
      font-size: 0.8rem;
      font-weight: 800;
      box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
      animation: badgeBounce 2s infinite;
      z-index: 10;
    }

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

    .premium-comparison::before {
      content: '❄️';
      position: absolute;
      top: 10%;
      left: 5%;
      font-size: 2rem;
      opacity: 0.3;
      animation: float 6s ease-in-out infinite;
    }

    .premium-comparison::after {
      content: '🎁';
      position: absolute;
      bottom: 10%;
      right: 5%;
      font-size: 2.5rem;
      opacity: 0.3;
      animation: float 8s ease-in-out infinite reverse;
    }

    @keyframes float {
      0%, 100% { transform: translateY(0) rotate(0deg); }
      50% { transform: translateY(-20px) rotate(10deg); }
    }
    
    @keyframes badgePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
  }
  
  @media (max-width: 768px) {
    .ny-grid { grid-template-columns: 1fr; }
    .ny-card.highlight { transform: none; }
    .ny-extra-grid { grid-template-columns: 1fr; }
    .ny-title { font-size: 2rem; }
  }
  
  /* Snow container */
.snowflakes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events:none;
  z-index: 999;
}

.snowflake {
  position:absolute;
  color:#fff;
  font-size:1em;
  text-shadow:0 0 5px rgba(255,255,255,.8);
  opacity:0;
  transform: translateY(-100vh) rotate(0deg);
  animation: snowfall linear infinite;
  animation-fill-mode: forwards;
}

/* Hidden state when snow disabled */
.snow-hidden { display:none !important; }
/* Remove individual snowflake style override if any */

/* Toggle button */
.snow-toggle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  padding: 10px 16px;
  background: rgba(0,0,0,.6);
  color:#fff;
  border:none;
  border-radius:30px;
  cursor:pointer;
  z-index: 1001;
  backdrop-filter: blur(6px);
}

/* Festive message animation */
@keyframes festiveMessage {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.snow-toggle:hover { background: rgba(0,0,0,.75) }

/* Responsive */
@media(max-width:768px){
  .snow-toggle{ bottom:15px; left:10px; font-size:12px; padding:8px 14px; }
  .christmas-lights{ height:30px; }
  .light{ width:6px; height:6px; }
}