/* ═══════════════════════════════════════════════════════════════
   AdBlock Defender — Overlay Styles
   Three themes: dark · light · neon
   Font: Syne (display) + DM Sans (body) from Google Fonts
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Body lock ─────────────────────────────────────────────────── */
.abd-body-locked {
  overflow: hidden !important;
}

/* ── Base overlay ──────────────────────────────────────────────── */
#abd-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  font-family: 'DM Sans', sans-serif;
}
#abd-overlay.abd-visible   { opacity: 1; }
#abd-overlay.abd-hiding    { opacity: 0; pointer-events: none; }

/* ── Backdrop ──────────────────────────────────────────────────── */
.abd-backdrop {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
}

/* ── Modal card ────────────────────────────────────────────────── */
.abd-modal {
  position: relative;
  z-index: 1;
  max-width: 480px;
  width: 100%;
  border-radius: 24px;
  padding: 2.8rem 2.4rem 2.2rem;
  text-align: center;
  transform: translateY(28px) scale(0.96);
  transition: transform 0.45s cubic-bezier(.22,1,.36,1), box-shadow 0.3s;
}
#abd-overlay.abd-visible .abd-modal {
  transform: translateY(0) scale(1);
}
.abd-modal--error {
  animation: abd-shake 0.5s ease;
}

/* ── Icon area ─────────────────────────────────────────────────── */
.abd-icon-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 1.4rem;
}
.abd-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.abd-ring__track   { stroke: rgba(255,255,255,0.08); }
.abd-ring__progress{ stroke-linecap: round; transition: stroke-dashoffset 1.8s ease; }

@keyframes abd-dash {
  to { stroke-dashoffset: 0; }
}

.abd-icon {
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.abd-icon svg { width: 36px; height: 36px; }

/* ── Badge ─────────────────────────────────────────────────────── */
.abd-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 0.3em 1em;
  margin-bottom: 1.1rem;
}

/* ── Typography ────────────────────────────────────────────────── */
.abd-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}
.abd-message {
  font-size: 0.93rem;
  line-height: 1.65;
  margin: 0 0 1.8rem;
  font-weight: 300;
}

/* ── Steps ─────────────────────────────────────────────────────── */
.abd-steps {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.8rem;
  text-align: left;
}
.abd-step {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.88rem;
  font-weight: 400;
  border-radius: 12px;
  padding: 0.7rem 1rem;
}
.abd-step__num {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
}

/* ── Button ────────────────────────────────────────────────────── */
.abd-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 1rem 1.5rem;
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  overflow: hidden;
  margin-bottom: 1.1rem;
}
.abd-btn__inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
  z-index: 1;
}
.abd-btn__pulse {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: abd-pulse 2.4s ease infinite;
}
.abd-btn:hover:not(:disabled) { transform: translateY(-2px); }
.abd-btn:active:not(:disabled){ transform: translateY(0); }
.abd-btn:disabled              { opacity: 0.7; cursor: wait; }

/* Loading spinner */
.abd-btn--loading .abd-btn__inner::before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  animation: abd-spin 0.7s linear infinite;
  flex-shrink: 0;
}

.abd-footer {
  font-size: 0.75rem;
  opacity: 0.45;
  margin: 0;
}

/* ── Keyframes ─────────────────────────────────────────────────── */
@keyframes abd-spin  { to { transform: rotate(360deg); } }
@keyframes abd-pulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50%       { opacity: 0.12; transform: scale(1.04); }
}
@keyframes abd-shake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-8px); }
  40%     { transform: translateX(8px); }
  60%     { transform: translateX(-5px); }
  80%     { transform: translateX(5px); }
}

/* ═══════════════════════════════════════════════════════════════
   THEME: DARK (default)
   ═══════════════════════════════════════════════════════════════ */
#abd-overlay[data-theme="dark"] .abd-backdrop {
  background: rgba(6, 6, 12, 0.88);
}
#abd-overlay[data-theme="dark"] .abd-modal {
  background: linear-gradient(145deg, #161622 0%, #0d0d18 100%);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow:
    0 32px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.04) inset;
  color: #e8e8f0;
}
#abd-overlay[data-theme="dark"] .abd-ring__track    { stroke: rgba(255,255,255,0.06); }
#abd-overlay[data-theme="dark"] .abd-ring__progress { stroke: #f66548; }
#abd-overlay[data-theme="dark"] .abd-icon {
  background: linear-gradient(135deg, #f66548 0%, #e8375c 100%);
  color: #fff;
  box-shadow: 0 8px 28px rgba(246,101,72,0.45);
}
#abd-overlay[data-theme="dark"] .abd-badge {
  background: rgba(246,101,72,0.12);
  color: #f88a72;
  border: 1px solid rgba(246,101,72,0.25);
}
#abd-overlay[data-theme="dark"] .abd-headline { color: #fff; }
#abd-overlay[data-theme="dark"] .abd-message  { color: rgba(255,255,255,0.55); }
#abd-overlay[data-theme="dark"] .abd-step {
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.05);
}
#abd-overlay[data-theme="dark"] .abd-step__num {
  background: linear-gradient(135deg,#f66548,#e8375c);
  color: #fff;
}
#abd-overlay[data-theme="dark"] .abd-btn {
  background: linear-gradient(135deg, #f66548 0%, #e8375c 100%);
  color: #fff;
  box-shadow: 0 8px 30px rgba(246,101,72,0.4), 0 2px 8px rgba(0,0,0,0.3);
}
#abd-overlay[data-theme="dark"] .abd-btn:hover:not(:disabled) {
  box-shadow: 0 12px 38px rgba(246,101,72,0.55), 0 4px 12px rgba(0,0,0,0.3);
}
#abd-overlay[data-theme="dark"] .abd-btn__pulse { background: #f66548; }
#abd-overlay[data-theme="dark"] .abd-footer     { color: rgba(255,255,255,0.35); }

/* ═══════════════════════════════════════════════════════════════
   THEME: LIGHT
   ═══════════════════════════════════════════════════════════════ */
#abd-overlay[data-theme="light"] .abd-backdrop {
  background: rgba(240, 240, 248, 0.85);
}
#abd-overlay[data-theme="light"] .abd-modal {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow:
    0 32px 80px rgba(0,0,0,0.15),
    0 2px 0 rgba(255,255,255,0.8) inset;
  color: #1a1a2e;
}
#abd-overlay[data-theme="light"] .abd-ring__track    { stroke: rgba(0,0,0,0.07); }
#abd-overlay[data-theme="light"] .abd-ring__progress { stroke: #5b4cf5; }
#abd-overlay[data-theme="light"] .abd-icon {
  background: linear-gradient(135deg, #5b4cf5 0%, #8b5cf6 100%);
  color: #fff;
  box-shadow: 0 8px 28px rgba(91,76,245,0.35);
}
#abd-overlay[data-theme="light"] .abd-badge {
  background: rgba(91,76,245,0.08);
  color: #5b4cf5;
  border: 1px solid rgba(91,76,245,0.2);
}
#abd-overlay[data-theme="light"] .abd-headline { color: #111128; }
#abd-overlay[data-theme="light"] .abd-message  { color: #5a5a78; }
#abd-overlay[data-theme="light"] .abd-step {
  background: #f5f4ff;
  color: #3a3a5a;
  border: 1px solid rgba(91,76,245,0.1);
}
#abd-overlay[data-theme="light"] .abd-step__num {
  background: linear-gradient(135deg,#5b4cf5,#8b5cf6);
  color: #fff;
}
#abd-overlay[data-theme="light"] .abd-btn {
  background: linear-gradient(135deg, #5b4cf5 0%, #7c6cf5 100%);
  color: #fff;
  box-shadow: 0 8px 30px rgba(91,76,245,0.35), 0 2px 8px rgba(0,0,0,0.08);
}
#abd-overlay[data-theme="light"] .abd-btn:hover:not(:disabled) {
  box-shadow: 0 12px 38px rgba(91,76,245,0.5), 0 4px 12px rgba(0,0,0,0.1);
}
#abd-overlay[data-theme="light"] .abd-btn__pulse { background: #5b4cf5; }
#abd-overlay[data-theme="light"] .abd-footer     { color: #9090aa; }

/* ═══════════════════════════════════════════════════════════════
   THEME: NEON
   ═══════════════════════════════════════════════════════════════ */
#abd-overlay[data-theme="neon"] .abd-backdrop {
  background: rgba(2, 4, 18, 0.94);
}
#abd-overlay[data-theme="neon"] .abd-modal {
  background: linear-gradient(160deg, #06091f 0%, #020412 100%);
  border: 1px solid rgba(0, 255, 200, 0.15);
  box-shadow:
    0 0 60px rgba(0,255,200,0.06),
    0 32px 80px rgba(0,0,0,0.8),
    0 0 0 1px rgba(0,255,200,0.06) inset;
  color: #c8fdf0;
}
#abd-overlay[data-theme="neon"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(0,255,180,0.07) 0%, transparent 70%);
  pointer-events: none;
}
#abd-overlay[data-theme="neon"] .abd-ring__track    { stroke: rgba(0,255,200,0.08); }
#abd-overlay[data-theme="neon"] .abd-ring__progress { stroke: #00ffc8; filter: drop-shadow(0 0 6px #00ffc8); }
#abd-overlay[data-theme="neon"] .abd-icon {
  background: rgba(0,255,200,0.1);
  border: 1px solid rgba(0,255,200,0.3);
  color: #00ffc8;
  filter: drop-shadow(0 0 12px rgba(0,255,200,0.4));
}
#abd-overlay[data-theme="neon"] .abd-badge {
  background: rgba(0,255,200,0.07);
  color: #00ffc8;
  border: 1px solid rgba(0,255,200,0.25);
  text-shadow: 0 0 8px rgba(0,255,200,0.6);
}
#abd-overlay[data-theme="neon"] .abd-headline {
  color: #fff;
  text-shadow: 0 0 30px rgba(0,255,200,0.3);
}
#abd-overlay[data-theme="neon"] .abd-message  { color: rgba(200,253,240,0.55); }
#abd-overlay[data-theme="neon"] .abd-step {
  background: rgba(0,255,200,0.04);
  color: rgba(200,253,240,0.75);
  border: 1px solid rgba(0,255,200,0.08);
}
#abd-overlay[data-theme="neon"] .abd-step__num {
  background: rgba(0,255,200,0.1);
  border: 1px solid rgba(0,255,200,0.3);
  color: #00ffc8;
  text-shadow: 0 0 6px #00ffc8;
}
#abd-overlay[data-theme="neon"] .abd-btn {
  background: transparent;
  border: 1.5px solid #00ffc8;
  color: #00ffc8;
  font-size: 0.9rem;
  text-shadow: 0 0 12px rgba(0,255,200,0.7);
  box-shadow: 0 0 24px rgba(0,255,200,0.15), inset 0 0 20px rgba(0,255,200,0.05);
}
#abd-overlay[data-theme="neon"] .abd-btn:hover:not(:disabled) {
  background: rgba(0,255,200,0.08);
  box-shadow: 0 0 40px rgba(0,255,200,0.3), inset 0 0 30px rgba(0,255,200,0.08);
}
#abd-overlay[data-theme="neon"] .abd-btn__pulse { background: rgba(0,255,200,0.15); }
#abd-overlay[data-theme="neon"] .abd-footer     { color: rgba(0,255,200,0.3); }

/* Scan-line texture for neon */
#abd-overlay[data-theme="neon"] .abd-modal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,255,200,0.015) 2px,
    rgba(0,255,200,0.015) 4px
  );
  border-radius: inherit;
  pointer-events: none;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .abd-modal { padding: 2rem 1.5rem 1.8rem; border-radius: 20px; }
  .abd-headline { font-size: 1.4rem; }
}
