/* ad-modal.css */
.ad-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.ad-modal-content {
  max-width: 500px;
  width: 90%;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: 30px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.ad-modal-content h2 {
  font-size: 28px;
  color: var(--text-main);
  margin-bottom: 15px;
}

.ad-modal-content p {
  color: var(--text-muted);
  margin-bottom: 30px;
  line-height: 1.6;
}

.ad-video-container {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
  border-radius: 16px;
  margin-bottom: 25px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.ad-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
}

.ad-placeholder i {
  font-size: 48px;
  color: var(--accent);
  margin-bottom: 10px;
  opacity: 0.5;
}

.watch-ad-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  border: none;
  border-radius: 40px;
  color: #000;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.watch-ad-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(255, 159, 28, 0.4);
}

.ad-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 15px;
  margin-bottom: 0;
}

/* Success state */
.ad-modal-content.success {
  padding: 50px 40px;
}

.ad-modal-content.success i {
  font-size: 80px;
  color: #4caf50;
  margin-bottom: 20px;
}

.continue-btn {
  padding: 12px 30px;
  background: var(--accent);
  border: none;
  border-radius: 40px;
  color: #000;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* ================= AD MODAL ENHANCEMENTS ================= */

.ad-header {
  margin-bottom: 25px;
}

.ad-description {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-top: 8px;
}

.ad-description strong {
  color: var(--accent);
}

/* Timer Circle */
.ad-timer {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.timer-circle {
  position: relative;
  width: 80px;
  height: 80px;
}

.timer-circle svg {
  width: 80px;
  height: 80px;
  transform: rotate(0deg);
}

.timer-bg {
  stroke: var(--border);
}

.timer-progress {
  stroke: var(--accent);
  transition: stroke-dashoffset 0.3s linear;
}

.timer-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
}

/* Video container */
.ad-container {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.ad-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--bg-hover);
}

.ad-placeholder i {
  font-size: 48px;
  color: var(--accent);
  margin-bottom: 10px;
  opacity: 0.5;
}

/* Watch button */
.watch-ad-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  border: none;
  border-radius: 40px;
  color: #000;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  margin: 10px 0;
}

.watch-ad-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(255, 159, 28, 0.3);
}

.ad-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* Success State */
.ad-modal-content.success {
  text-align: center;
  padding: 50px 30px;
}

.success-animation i {
  font-size: 70px;
  color: #4caf50;
  margin-bottom: 20px;
  animation: pulse 0.5s ease;
}

.success-message {
  font-size: 18px;
  color: var(--text-main);
  margin: 15px 0 5px;
}

.success-message strong {
  color: var(--accent);
}

.success-note {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 25px;
}

.continue-btn {
  padding: 14px 35px;
  background: var(--accent);
  border: none;
  border-radius: 40px;
  color: #000;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.continue-btn:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
}

@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 480px) {
  .ad-modal-content {
    padding: 30px 20px;
  }
  
  .ad-description {
    font-size: 14px;
  }
  
  .timer-circle {
    width: 70px;
    height: 70px;
  }
  
  .timer-circle svg {
    width: 70px;
    height: 70px;
  }
  
  .timer-text {
    font-size: 16px;
  }
  
  .watch-ad-btn {
    padding: 14px;
    font-size: 15px;
  }
}