/* Download Link Locker — diseño oscuro. El color de acento llega desde PHP (--dll-accent). */
:root { --dll-accent: #007bff; }

.dll-locked { cursor: pointer; }

html.dll-open { overflow: hidden; }

.dll-overlay,
.dll-overlay * { box-sizing: border-box; }

.dll-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, .92);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.dll-overlay[hidden] { display: none !important; }

.dll-overlay .dll-box {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 100%;
  overflow: auto;
  padding: 32px 24px 24px;
  background: #1a1a1a;
  border: 2px solid #333;
  border-radius: 15px;
  color: #fff;
  text-align: center;
}

.dll-overlay .dll-title { margin: 0 0 8px; font-size: 22px; line-height: 1.3; color: #fff; }
.dll-overlay .dll-intro { margin: 0 0 8px; font-size: 14px; line-height: 1.5; color: #ccc; }

.dll-overlay .dll-close {
  position: absolute;
  top: 8px;
  right: 12px;
  width: auto;
  padding: 0 6px;
  background: none;
  border: 0;
  box-shadow: none;
  color: #aaa;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.dll-overlay .dll-close:hover { color: #fff; }

.dll-overlay .dll-dots { display: flex; justify-content: center; gap: 10px; margin: 16px 0 4px; }
.dll-overlay .dll-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #2a2a2a;
  border: 2px solid #3a3a3a;
  color: #aaa;
  font-size: 14px;
  font-weight: 600;
}
.dll-overlay .dll-dot.is-current { border-color: var(--dll-accent); color: #fff; }
.dll-overlay .dll-dot.is-done { background: #28a745; border-color: #28a745; color: #fff; }

.dll-overlay .dll-count { margin: 12px 0; font-size: 48px; font-weight: 700; line-height: 1; color: #ff4444; }

.dll-overlay .dll-bar { height: 10px; margin: 10px 0 20px; overflow: hidden; background: #333; border-radius: 5px; }
.dll-overlay .dll-fill { width: 0; height: 100%; background: var(--dll-accent); transition: width .25s linear; }

.dll-overlay .dll-btn {
  display: block;
  width: 100%;
  margin: 8px 0;
  padding: 14px 18px;
  background: var(--dll-accent);
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  color: #fff;
  font-family: inherit;
  font-size: 17px;
  line-height: 1.3;
  text-transform: none;
  text-decoration: none;
  letter-spacing: normal;
  cursor: pointer;
}
.dll-overlay .dll-btn:hover:not(:disabled) { filter: brightness(1.1); }
.dll-overlay .dll-btn:disabled { background: #555; color: #ddd; cursor: not-allowed; }
.dll-overlay .dll-btn.dll-ok { background: #28a745; color: #fff; }
.dll-overlay .dll-btn.dll-final { background: #28a745; font-size: 19px; font-weight: 700; }
.dll-overlay .dll-btn[hidden] { display: none; }

.dll-overlay .dll-msg { min-height: 20px; margin: 14px 0 4px; font-size: 14px; line-height: 1.4; color: #ccc; }
.dll-overlay .dll-msg--ok { color: #28a745; }
.dll-overlay .dll-msg--warn { color: #ff9800; }
.dll-overlay .dll-prog { font-size: 12px; color: #888; }

@media (max-width: 480px) {
  .dll-overlay .dll-box { padding: 28px 16px 20px; }
  .dll-overlay .dll-count { font-size: 40px; }
}
