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

:root {
  --slp-p:       #4f46e5;
  --slp-ph:      #4338ca;
  --slp-green:   #059669;
  --slp-amber:   #d97706;
  --slp-white:   #ffffff;
  --slp-bg:      #f4f5f9;
  --slp-border:  #e1e3ee;
  --slp-text:    #1a1c2e;
  --slp-text2:   #55597a;
  --slp-text3:   #959ab8;
  --slp-font:    'Inter', -apple-system, sans-serif;
}

/* ══════════════════════════════════════════════════════════
   HOMEPAGE VERIFICATION BAR  (embedded top banner, not popup)
══════════════════════════════════════════════════════════ */
#slp-verify-bar {
  width: 100%;
  background: var(--slp-white);
  border-bottom: 3px solid var(--slp-p);
  font-family: var(--slp-font);
  position: relative;
  z-index: 9990;
  box-shadow: 0 2px 20px rgba(79,70,229,.10);
  animation: slpSlideDown .35s ease;
}

#slp-verify-bar * { box-sizing: border-box; }

.slpv-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 32px;
}

/* ── Top row: brand + step dots ── */
.slpv-toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.slpv-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 700;
  color: var(--slp-p);
}
.slpv-brand-ico {
  width: 32px; height: 32px;
  background: var(--slp-p);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.slpv-brand-ico svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2; }

.slpv-steps {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--slp-text2);
}
.slpv-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--slp-border); transition: all .25s;
}
.slpv-dot.active { background: var(--slp-p); transform: scale(1.2); }
.slpv-dot.done   { background: var(--slp-green); }

/* ── Main content row: timer + checkbox + button ── */
.slpv-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}

/* Timer ring */
.slpv-ring-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  flex-shrink: 0;
}
.slpv-ring {
  position: relative; width: 100px; height: 100px;
}
.slpv-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.slpv-ring-bg   { fill: none; stroke: var(--slp-bg); stroke-width: 6; }
.slpv-ring-fill {
  fill: none;
  stroke: var(--slp-p);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
  opacity: .2;
}
.slpv-ring-fill.running { opacity: 1; }
.slpv-ring-num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800; color: var(--slp-text);
  letter-spacing: -1px;
}
.slpv-ring-lbl {
  font-size: 11px; font-weight: 600;
  color: var(--slp-text3);
  text-transform: uppercase; letter-spacing: .6px;
  text-align: center; max-width: 100px;
}

/* Middle col: checkbox + progress */
.slpv-mid {
  display: flex; flex-direction: column; gap: 14px;
}

.slpv-chk-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--slp-bg);
  border: 1.5px solid var(--slp-border);
  border-radius: 12px;
  padding: 15px 20px;
  cursor: pointer; user-select: none;
  transition: border-color .15s, background .15s;
}
.slpv-chk-row:hover { border-color: #c4bfff; }
.slpv-chk-row.ticked { border-color: var(--slp-p); background: #eeecff; }

.slpv-tick {
  width: 24px; height: 24px; flex-shrink: 0;
  border: 2px solid #c8cce0; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.slpv-tick svg { width: 13px; height: 13px; stroke: #fff; fill: none; stroke-width: 2.5; display: none; }
.slpv-tick.on { background: var(--slp-p); border-color: var(--slp-p); }
.slpv-tick.on svg { display: block; }

.slpv-chk-label { font-size: 14px; font-weight: 600; color: var(--slp-text); flex: 1; }
.slpv-recaptcha { font-size: 9.5px; color: var(--slp-text3); text-align: center; line-height: 1.4; }

/* Progress bar (shows while timer running) */
.slpv-progress-wrap {
  height: 6px; background: var(--slp-bg);
  border-radius: 3px; overflow: hidden;
  display: none;
}
.slpv-progress-wrap.show { display: block; }
.slpv-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--slp-p), #f59e0b);
  border-radius: 3px;
  transition: width 1s linear;
}

.slpv-status-text {
  font-size: 12px; font-weight: 600; color: var(--slp-text3);
  text-align: center;
}
.slpv-status-text.go { color: var(--slp-green); }

/* Right col: action button */
.slpv-right {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  flex-shrink: 0; min-width: 190px;
}

.slpv-btn {
  width: 100%;
  padding: 15px 24px;
  background: var(--slp-p);
  color: #fff;
  border: none; border-radius: 10px;
  font-family: var(--slp-font);
  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 16px rgba(79,70,229,.35);
  letter-spacing: -.1px;
  white-space: nowrap;
}
.slpv-btn:hover:not(:disabled) { background: var(--slp-ph); transform: translateY(-1px); box-shadow: 0 6px 22px rgba(79,70,229,.45); }
.slpv-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.slpv-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.5; flex-shrink: 0; }

/* Ad zones */
.slpv-ad {
  width: 100%; text-align: center; overflow: hidden;
  margin: 14px 0;
}
.slpv-ad-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: .6px;
  color: var(--slp-text3); margin-bottom: 6px;
}

/* Divider */
.slpv-divider {
  height: 1px; background: var(--slp-border); margin: 20px 0;
}

/* ── Mobile ── */
@media (max-width: 680px) {
  .slpv-inner { padding: 20px 18px; }
  .slpv-main {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .slpv-ring-wrap { flex-direction: row; gap: 16px; align-items: center; }
  .slpv-ring { width: 80px; height: 80px; }
  .slpv-ring-num { font-size: 22px; }
  .slpv-right { min-width: unset; width: 100%; }
}

/* ══════════════════════════════════════════════════════════
   ARTICLE PAGE BANNER
══════════════════════════════════════════════════════════ */
#slp-article-banner {
  width: 100%;
  background: var(--slp-white);
  border-bottom: 3px solid var(--slp-p);
  font-family: var(--slp-font);
  position: relative;
  z-index: 9990;
  box-shadow: 0 2px 16px rgba(79,70,229,.10);
}
#slp-article-banner .slpb-inner {
  max-width: 860px; margin: 0 auto; padding: 18px 32px;
}

.slpb-toprow {
  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: 13px; font-weight: 700; color: var(--slp-p);
}
.slpb-brand svg { width: 14px; height: 14px; stroke: var(--slp-p); fill: none; stroke-width: 2; }
.slpb-stepdots { display: flex; gap: 5px; }
.slpb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--slp-border); }
.slpb-dot.active { background: var(--slp-p); }
.slpb-dot.done   { background: var(--slp-green); }

.slpb-timerrow {
  display: flex; align-items: center; gap: 12px;
}
.slpb-timer-lbl {
  font-size: 12px; font-weight: 600; color: var(--slp-text2); white-space: nowrap;
  display: flex; align-items: center; gap: 5px;
}
.slpb-timer-lbl svg { width: 13px; height: 13px; stroke: var(--slp-p); fill: none; stroke-width: 2; }
.slpb-prog-wrap { flex: 1; height: 7px; background: var(--slp-bg); border-radius: 4px; overflow: hidden; }
.slpb-prog-bar  { height: 100%; background: linear-gradient(90deg, var(--slp-p), #f59e0b); border-radius: 4px; transition: width 1s linear; }
.slpb-num { font-size: 16px; font-weight: 800; color: var(--slp-p); 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: 10px; font-size: 13px; font-weight: 700; color: var(--slp-green);
  margin-top: 8px;
  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; }

/* ══════════════════════════════════════════════════════════
   DOWNLOAD BAR
══════════════════════════════════════════════════════════ */
#slp-dl-bar {
  width: 100%;
  background: var(--slp-white);
  border-top: 3px solid var(--slp-p);
  font-family: var(--slp-font);
  position: relative;
  z-index: 9990;
  box-shadow: 0 -2px 16px rgba(79,70,229,.10);
}
#slp-dl-bar .slpb-inner {
  max-width: 860px; margin: 0 auto;
  padding: 22px 32px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}

.slpd-timerrow {
  display: flex; align-items: center; gap: 12px;
  width: 100%; max-width: 560px;
}
.slpd-lbl { font-size: 12px; font-weight: 600; color: var(--slp-text2); white-space: nowrap; }
.slpd-pw  { flex: 1; height: 7px; background: var(--slp-bg); border-radius: 4px; overflow: hidden; }
.slpd-pb  { height: 100%; background: linear-gradient(90deg, var(--slp-p), #f59e0b); border-radius: 4px; transition: width 1s linear; }
.slpd-num { font-size: 15px; font-weight: 800; color: var(--slp-amber); min-width: 24px; font-family: monospace; }

.slpd-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 40px;
  background: var(--slp-p); color: #fff;
  border: none; border-radius: 10px;
  font-family: var(--slp-font);
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: all .15s;
  box-shadow: 0 3px 16px rgba(79,70,229,.35);
}
.slpd-btn:hover:not(:disabled) { background: var(--slp-ph); transform: translateY(-1px); box-shadow: 0 6px 22px 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 {
  font-size: 14px; font-weight: 700; color: var(--slp-green);
  display: flex; align-items: center; gap: 7px;
}
.slpd-done svg { width: 16px; height: 16px; stroke: var(--slp-green); fill: none; stroke-width: 2.5; }

/* Ad zone shared */
.slp-ad-zone {
  width: 100%; text-align: center; overflow: hidden;
  margin: 12px 0;
}

/* ── Animations ── */
@keyframes slpSlideDown { from { transform: translateY(-100%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slpPulse     { 0%,100%{opacity:1}50%{opacity:.6} }
@keyframes slpSpin      { to { transform: rotate(360deg); } }
