.ads-container {
  display: flex;
  justify-content: center;
  margin: 2.5rem 0;
}

.ads-container > div {
  max-width: 100%;
}

@media (max-width: 768px) {
  body { padding-bottom: 110px; }
}

/* ===== ADS COUNTDOWN MODAL ===== */
.ad-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  backdrop-filter: blur(5px);
  animation: adFadeIn 0.2s ease;
}

.ad-modal-content {
  background: #020617;
  border-radius: 1.25rem;
  max-width: 420px;
  width: 92%;
  border: 1px solid rgba(34, 197, 94, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  animation: adSlideIn 0.3s ease;
}

.ad-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.ad-modal-header h3 {
  color: #22c55e;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.ad-modal-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.ad-modal-close:hover {
  background: #1e293b;
  color: white;
  transform: rotate(90deg);
}

.ad-modal-body {
  padding: 1.5rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.ad-modal-footer {
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  text-align: center;
}

#countdown-timer {
  font-size: 3rem;
  font-weight: 800;
  color: #22c55e;
  text-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
  line-height: 1;
  margin: 0.5rem 0 0.25rem;
  animation: pulse 1s infinite;
}

#countdown-continue {
  width: 100%;
  padding: 0.9rem;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

#countdown-continue:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #334155;
}

#countdown-continue:not(:disabled) {
  background: #22c55e;
  color: #022c22;
  font-weight: 700;
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

#countdown-continue:not(:disabled):hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

/* Ad container styling */
.ad-modal-body #container-df161c79b2e7c34816a03e92a70fda25 {
  background: #0b1220;
  border-radius: 0.75rem;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animations */
@keyframes adFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes adSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* Mobile optimization */
@media (max-width: 480px) {
  .ad-modal-content {
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
  }
  
  .ad-modal-body {
    padding: 1rem;
    min-height: 240px;
  }
  
  #countdown-timer {
    font-size: 2.5rem;
  }
}

/* Prevent body scroll when modal open */
body.modal-open {
  overflow: hidden;
}