/* ==========================================================================
   REALM OF KINGDOMS • SMART ASSET DOWNLOADER
   Modal simple, limpio y responsivo
   ========================================================================== */

#smart-downloader-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #07090e;
  background-image: 
    radial-gradient(circle at 50% 30%, rgba(30, 41, 59, 0.6) 0%, rgba(7, 9, 14, 0.96) 80%),
    url('../background/image.webp');
  background-size: cover;
  background-position: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  font-family: 'Outfit', sans-serif;
  user-select: none;
  -webkit-user-select: none;
}

#smart-downloader-overlay.sd-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.sd-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 14, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.sd-card {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 380px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 14px;
  padding: 24px 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(245, 158, 11, 0.15);
  text-align: center;
}

.sd-view {
  width: 100%;
}

.sd-title {
  font-family: 'Cinzel', serif;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px 0;
  letter-spacing: 0.5px;
}

.sd-text {
  font-size: 14px;
  color: #94a3b8;
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.sd-text strong {
  color: #fbbf24;
}

.sd-check-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: #94a3b8;
  cursor: pointer;
  margin-bottom: 18px;
}

.sd-checkbox {
  accent-color: #f59e0b;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.sd-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sd-btn {
  width: 100%;
  padding: 11px 16px;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
}

.sd-btn-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.sd-btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.sd-btn-secondary {
  background: rgba(30, 41, 59, 0.7);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.sd-btn-secondary:hover {
  background: rgba(51, 65, 85, 0.8);
  color: #fff;
}

/* Barra de progreso */
.sd-progress-track {
  width: 100%;
  height: 12px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 9999px;
  padding: 2px;
  overflow: hidden;
  box-sizing: border-box;
}

.sd-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #38bdf8 50%, #f59e0b 100%);
  border-radius: 9999px;
  transition: width 0.12s ease-out;
}

.sd-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 8px;
}
