/* SafeLink Pro — Frontend (Light Theme) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Variables ───────────────────────────────────────────── */
:root {
  --slp-primary:     #4f46e5;
  --slp-primary-h:   #4338ca;
  --slp-accent:      #f59e0b;
  --slp-green:       #059669;
  --slp-white:       #ffffff;
  --slp-bg:          #f5f6fa;
  --slp-border:      #e2e4eb;
  --slp-text:        #1a1d2e;
  --slp-text2:       #5a5f7a;
  --slp-text3:       #9499b5;
  --slp-shadow:      0 4px 24px rgba(0,0,0,.12);
  --slp-shadow-lg:   0 16px 56px rgba(0,0,0,.18);
  --slp-r:           14px;
  --slp-r-sm:        8px;
}

/* ════════════════════════════════════════════════════════════
   HOMEPAGE OVERLAY
════════════════════════════════════════════════════════════ */
#slp-overlay {
  position: fixed; inset: 0; z-index: 999999;
  background: rgba(245,246,250,.97);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  font-family: 'Inter', sans-serif;
  animation: slpFadeIn .35s ease;
}
#slp-overlay * { box-sizing: border-box; }

/* background blobs */
#slp-overlay::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 40% at 15% 25%, rgba(79,70,229,.06) 0%, transparent 70%),
    radial-gradient(ellipse 45% 55% at 85% 75%, rgba(245,158,11,.05) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Card ─────────────────────────────────────────────────── */
.slpf-card {
  background: var(--slp-white);
  border: 1px solid var(--slp-border);
  border-radius: 20px;
  width: 100%; max-width: 440px;
  box-shadow: var(--slp-shadow-lg);
  position: relative; overflow: hidden;
  animation: slpSlideUp .45s cubic-bezier(.34,1.56,.64,1);
}
.slpf-card-top-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--slp-primary), var(--slp-accent));
}

/* ── Header ───────────────────────────────────────────────── */
.slpf-header {
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--slp-border);
  text-align: center;
}
.slpf-brand {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
}
.slpf-brand-icon {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--slp-primary), #3730a3);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.slpf-brand-icon svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2; }
.slpf-brand-name { font-size: 13px; font-weight: 700; color: var(--slp-text2); }

/* Step dots */
.slpf-dots { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 6px; }
.slpf-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--slp-border); transition: all .3s;
}
.slpf-dot.active { background: var(--slp-primary); transform: scale(1.25); }
.slpf-dot.done   { background: var(--slp-green); }
.slpf-step-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: var(--slp-text3); }

/* ── Body ─────────────────────────────────────────────────── */
.slpf-body { padding: 24px 26px 22px; }

.slpf-title {
  font-size: 20px; font-weight: 800; color: var(--slp-text);
  text-align: center; margin-bottom: 5px; letter-spacing: -.4px;
}
.slpf-subtitle {
  font-size: 13px; color: var(--slp-text2); text-align: center;
  margin-bottom: 22px; line-height: 1.5;
}

/* ── Timer ring ───────────────────────────────────────────── */
.slpf-timer-wrap {
  display: flex; flex-direction: column; align-items: center; margin-bottom: 20px;
}
.slpf-ring { position: relative; width: 90px; height: 90px; }
.slpf-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.slpf-ring-bg   { fill: none; stroke: var(--slp-bg); stroke-width: 5; }
.slpf-ring-fill { fill: none; stroke: url(#slpGrad); stroke-width: 5; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.slpf-ring-num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: var(--slp-text); letter-spacing: -1px;
}
.slpf-timer-label { font-size: 11px; color: var(--slp-text3); margin-top: 7px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }

/* ── Checkbox ─────────────────────────────────────────────── */
.slpf-checkbox-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--slp-bg); border: 1px solid var(--slp-border);
  border-radius: 10px; padding: 13px 16px; margin-bottom: 18px;
  cursor: pointer; user-select: none; transition: border-color .15s;
}
.slpf-checkbox-row:hover { border-color: #c7c2f7; }
.slpf-checkbox-row.ticked { border-color: var(--slp-primary); background: #ede9fe; }
.slpf-tick {
  width: 22px; height: 22px; flex-shrink: 0;
  border: 2px solid var(--slp-border); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.slpf-tick svg { width: 12px; height: 12px; stroke: #fff; display: none; }
.slpf-tick.on { background: var(--slp-primary); border-color: var(--slp-primary); }
.slpf-tick.on svg { display: block; }
.slpf-check-label { font-size: 13.5px; font-weight: 600; color: var(--slp-text); flex: 1; }
.slpf-recaptcha { font-size: 9px; color: var(--slp-text3); text-align: center; line-height: 1.3; }

/* ── Ad zone ──────────────────────────────────────────────── */
.slpf-ad { width: 100%; text-align: center; margin: 10px 0; overflow: hidden; }

/* ── Action button ────────────────────────────────────────── */
.slpf-btn {
  width: 100%; padding: 14px;
  background: var(--slp-primary); color: #fff;
  border: none; border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all .15s;
  box-shadow: 0 3px 14px rgba(79,70,229,.35);
  letter-spacing: -.1px;
}
.slpf-btn:hover:not(:disabled) { background: var(--slp-primary-h); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(79,70,229,.45); }
.slpf-btn:disabled { opacity: .4; cursor: not-allowed; }
.slpf-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.5; }

/* ════════════════════════════════════════════════════════════
   ARTICLE BANNER (top of article page)
════════════════════════════════════════════════════════════ */
#slp-article-banner {
  background: var(--slp-white);
  border-bottom: 2px solid var(--slp-primary);
  padding: 16px 0;
  font-family: 'Inter', sans-serif;
  position: relative;
  z-index: 9990;
  box-shadow: 0 2px 16px rgba(79,70,229,.12);
}
#slp-article-banner .slpb-inner {
  max-width: 900px; margin: 0 auto; padding: 0 24px;
}
.slpb-row1 {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; flex-wrap: wrap; gap: 10px;
}
.slpb-brand {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700; color: var(--slp-primary);
}
.slpb-brand svg { width: 14px; height: 14px; stroke: var(--slp-primary); fill: none; stroke-width: 2; }
.slpb-progress-label {
  font-size: 12px; font-weight: 600; color: var(--slp-text2);
  display: flex; align-items: center; gap: 6px;
}
.slpb-progress-label svg { width: 13px; height: 13px; stroke: var(--slp-primary); fill: none; stroke-width: 2; }

.slpb-row2 { display: flex; align-items: center; gap: 12px; }
.slpb-progress-wrap {
  flex: 1; height: 7px;
  background: var(--slp-bg); border-radius: 4px; overflow: hidden;
}
.slpb-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--slp-primary), var(--slp-accent));
  border-radius: 4px;
  transition: width 1s linear;
}
.slpb-num {
  font-size: 15px; font-weight: 800; color: var(--slp-primary);
  min-width: 28px; text-align: right;
  font-family: monospace;
}

.slpb-scroll-msg {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px;
  padding: 9px; font-size: 13px; font-weight: 700; color: var(--slp-green);
  margin-top: 6px;
  animation: slpPulse 1.6s ease-in-out infinite;
}
.slpb-scroll-msg svg { width: 13px; height: 13px; stroke: var(--slp-green); fill: none; stroke-width: 2.5; }

.slpb-steps { display: flex; align-items: center; gap: 5px; }
.slpb-step-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--slp-border); }
.slpb-step-dot.active { background: var(--slp-primary); }
.slpb-step-dot.done   { background: var(--slp-green); }

/* ════════════════════════════════════════════════════════════
   DOWNLOAD BAR (bottom of article page)
════════════════════════════════════════════════════════════ */
#slp-dl-bar {
  background: var(--slp-white);
  border-top: 2px solid var(--slp-primary);
  padding: 20px 0;
  font-family: 'Inter', sans-serif;
  position: relative;
  z-index: 9990;
  box-shadow: 0 -3px 16px rgba(79,70,229,.1);
}
#slp-dl-bar .slpb-inner {
  max-width: 900px; margin: 0 auto; padding: 0 24px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.slpd-timer-row {
  display: flex; align-items: center; gap: 12px; width: 100%; max-width: 500px;
}
.slpd-timer-label { font-size: 12px; font-weight: 600; color: var(--slp-text2); white-space: nowrap; }
.slpd-progress-wrap {
  flex: 1; height: 7px;
  background: var(--slp-bg); border-radius: 4px; overflow: hidden;
}
.slpd-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--slp-primary), var(--slp-accent));
  border-radius: 4px; transition: width 1s linear;
}
.slpd-num { font-size: 14px; font-weight: 800; color: var(--slp-accent); min-width: 24px; font-family: monospace; }

.slpd-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 32px;
  background: var(--slp-primary); color: #fff;
  border: none; border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  box-shadow: 0 3px 14px rgba(79,70,229,.35);
}
.slpd-btn:hover:not(:disabled) { background: var(--slp-primary-h); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(79,70,229,.45); }
.slpd-btn:disabled { opacity: .4; cursor: not-allowed; }
.slpd-btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2.5; }

.slpd-done-msg {
  font-size: 14px; font-weight: 700; color: var(--slp-green);
  display: flex; align-items: center; gap: 7px;
}
.slpd-done-msg svg { width: 16px; height: 16px; stroke: var(--slp-green); fill: none; stroke-width: 2.5; }

/* ── Spinner keyframe ─────────────────────────────────────── */
@keyframes slpSpin    { to { transform: rotate(360deg); } }
@keyframes slpFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slpSlideUp { from { transform: translateY(32px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slpPulse   { 0%,100% { opacity: 1; } 50% { opacity: .65; } }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 500px) {
  .slpf-card { border-radius: 14px; }
  .slpf-body, .slpf-header { padding-left: 18px; padding-right: 18px; }
  .slpf-title { font-size: 17px; }
  #slp-article-banner .slpb-inner,
  #slp-dl-bar .slpb-inner { padding: 0 14px; }
}
