/* =====================================================
   AdSense Safelink Pro — Frontend CSS v4
   Premium Light Theme — Embedded (not full-screen)
   ===================================================== */

/* =====================================================
   PHASE 2 — VERIFY WIDGET
   Embedded inline below the header — NOT full-screen.
   Homepage content stays visible and scrollable below.
   ===================================================== */

#asp-wrap {
  width: 100%;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* The outer notification bar — thin accent strip */
.asp-notify-bar {
  width: 100%;
  background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
  padding: 0;
  position: relative;
  overflow: hidden;
}
.asp-notify-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    rgba(255,255,255,.04) 10px,
    rgba(255,255,255,.04) 20px
  );
}

/* Main verify card — light premium */
.asp-verify-card {
  background: #ffffff;
  border: 1px solid #e8eaf0;
  border-top: 4px solid #6366f1;
  box-shadow: 0 4px 24px rgba(99,102,241,.10), 0 1px 4px rgba(0,0,0,.06);
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  max-width: 100%;
  overflow: hidden;
}

/* Top colored header strip inside card */
.asp-vc-head {
  background: linear-gradient(135deg, #f8f7ff 0%, #eff0ff 100%);
  border-bottom: 1px solid #e8eaf0;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.asp-vc-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 700;
  color: #6366f1;
  letter-spacing: .02em;
}
.asp-vc-brand-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #6366f1;
  animation: aspDotPulse 2s ease-in-out infinite;
}
@keyframes aspDotPulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(1.4); }
}
.asp-vc-title-wrap { text-align: center; }
.asp-vc-title {
  font-size: .92rem;
  font-weight: 800;
  color: #1e1b4b;
  margin: 0;
}
.asp-vc-sub {
  font-size: .75rem;
  color: #7c7fa8;
  margin-top: 1px;
}
.asp-vc-secure {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .75rem;
  font-weight: 600;
  color: #10b981;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 20px;
  padding: 4px 10px;
}

/* Body of verify card — 3-column layout */
.asp-vc-body {
  padding: 20px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
}

/* ---- Ring Timer (left column) ---- */
.asp-ring-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.asp-ring-svg { width: 80px; height: 80px; }
.asp-ring-track {
  fill: none;
  stroke: #ede9fe;
  stroke-width: 6;
}
.asp-ring-fill {
  fill: none;
  stroke: url(#aspGrad);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 206;
  stroke-dashoffset: 206;
  transition: stroke-dashoffset .95s linear;
}
.asp-ring-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  fill: #1e1b4b;
  text-anchor: middle;
  dominant-baseline: central;
}
.asp-ring-label {
  font-size: .65rem;
  font-weight: 700;
  color: #a0a4c8;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ---- Middle column: checkbox + progress ---- */
.asp-mid-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

/* Ad slot inside card */
.asp-vc-ad { text-align: center; }

/* Checkbox card */
.asp-cb-card {
  background: #fafafa;
  border: 1.5px solid #e8eaf0;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.asp-cb-card:hover {
  background: #f5f3ff;
  border-color: #c4b5fd;
  box-shadow: 0 2px 8px rgba(99,102,241,.1);
}
.asp-cb-card.on {
  background: #f0fdf4;
  border-color: #6ee7b7;
  box-shadow: 0 2px 8px rgba(16,185,129,.12);
}
.asp-cb-box {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 2px solid #d1d5e8;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  transition: all .2s;
}
.asp-cb-card.on .asp-cb-box {
  background: linear-gradient(135deg,#10b981,#34d399);
  border-color: #10b981;
}
.asp-cb-tick { display: none; }
.asp-cb-card.on .asp-cb-tick { display: block; }
.asp-cb-tick svg { width: 11px; height: 11px; display: block; color: #fff; }
.asp-cb-label {
  font-size: .83rem;
  font-weight: 600;
  color: #374151;
  line-height: 1.3;
}
.asp-cb-sublabel {
  font-size: .72rem;
  color: #9ca3af;
  margin-top: 1px;
}

/* Progress bar */
.asp-prog-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.asp-prog-labels {
  display: flex;
  justify-content: space-between;
  font-size: .7rem;
  font-weight: 600;
  color: #9ca3af;
}
.asp-prog-track {
  height: 6px;
  background: #f0f0f5;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e8eaf0;
}
.asp-prog-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 6px;
  transition: width .95s linear;
  position: relative;
}
.asp-prog-fill::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 30px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5));
  animation: aspShimmer 1.5s linear infinite;
}
@keyframes aspShimmer { 0%{opacity:0} 50%{opacity:1} 100%{opacity:0} }

/* ---- Continue button (right column) ---- */
.asp-cont-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 130px;
}
.asp-cont-btn {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: .85rem;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  cursor: pointer;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 14px rgba(99,102,241,.3);
  opacity: .35;
  pointer-events: none;
  transition: opacity .25s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.asp-cont-btn.go {
  opacity: 1;
  pointer-events: all;
  animation: aspBtnPulse 2.2s ease-in-out infinite;
}
.asp-cont-btn.go:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(99,102,241,.45);
  animation: none;
}
@keyframes aspBtnPulse {
  0%,100% { box-shadow: 0 4px 14px rgba(99,102,241,.3); }
  50%      { box-shadow: 0 4px 22px rgba(99,102,241,.55); }
}
.asp-cont-hint {
  font-size: .7rem;
  color: #9ca3af;
  text-align: center;
  line-height: 1.4;
}
.asp-cont-hint.done { color: #10b981; font-weight: 600; }

/* Steps indicator inside card */
.asp-vc-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px 14px;
  border-top: 1px solid #f0f0f5;
}
.asp-step-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 600;
  color: #c4b5fd;
}
.asp-step-item.active { color: #6366f1; }
.asp-step-item.done   { color: #10b981; }
.asp-step-num {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #ede9fe;
  color: #8b5cf6;
  font-weight: 800;
  font-size: .68rem;
  display: flex; align-items: center; justify-content: center;
}
.asp-step-item.active .asp-step-num { background: #6366f1; color: #fff; }
.asp-step-item.done   .asp-step-num { background: #10b981; color: #fff; }
.asp-step-line { width: 24px; height: 2px; background: #ede9fe; border-radius: 2px; }
.asp-step-item.done + .asp-step-line { background: #10b981; }

/* =====================================================
   ARTICLE BANNER (Phase 3)
   Premium light — same inline style, under header
   ===================================================== */
#asp-article-banner {
  width: 100%;
  background: #ffffff;
  border-top: 3px solid #6366f1;
  border-bottom: 1px solid #e8eaf0;
  box-shadow: 0 2px 12px rgba(99,102,241,.08);
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  position: relative;
  z-index: 9980;
}

.asp-ban-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* Brand pill */
.asp-ban-brand-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: .75rem;
  font-weight: 700;
  color: #6366f1;
  white-space: nowrap;
  flex-shrink: 0;
}
.asp-ban-brand-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #6366f1;
  animation: aspDotPulse 2s ease-in-out infinite;
}

/* Step dots */
.asp-ban-steps {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.asp-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #ddd6fe;
  transition: all .3s;
}
.asp-dot.active {
  background: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,.2);
}
.asp-dot.done { background: #10b981; }

/* Article counter */
.asp-ban-counter {
  font-size: .8rem;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
}
.asp-ban-counter strong { color: #1e1b4b; }

/* Timer section */
.asp-ban-timer-section {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.asp-ban-timer-label {
  font-size: .72rem;
  font-weight: 600;
  color: #9ca3af;
  white-space: nowrap;
}
.asp-ban-countdown-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  border: 2px solid #ddd6fe;
  border-radius: 12px;
  flex-shrink: 0;
}
.asp-ban-count {
  font-size: 1.1rem;
  font-weight: 800;
  color: #6366f1;
  line-height: 1;
}

/* Scroll message */
.asp-ban-scroll-msg {
  display: none;
  width: 100%;
  text-align: center;
  padding: 8px 0 2px;
  font-size: .78rem;
  font-weight: 700;
  color: #f59e0b;
  animation: aspBlink 1.4s ease-in-out infinite;
}
@keyframes aspBlink { 0%,100%{opacity:1} 50%{opacity:.3} }

/* Article ad slot */
.asp-art-ad { text-align: center; padding: 8px 24px; border-top: 1px solid #f0f0f5; }

/* =====================================================
   DOWNLOAD BAR (Phase 4)
   Premium light sticky bar
   ===================================================== */
#asp-download-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 99997;
  background: #ffffff;
  border-top: 3px solid #6366f1;
  box-shadow: 0 -4px 30px rgba(99,102,241,.15), 0 -1px 8px rgba(0,0,0,.08);
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  transform: translateY(110%);
  transition: transform .6s cubic-bezier(.34,1.56,.64,1);
}
#asp-download-bar.show { transform: translateY(0); }

.asp-dl-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Left: brand + message */
.asp-dl-left {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex-shrink: 0;
}
.asp-dl-brand {
  font-size: .75rem;
  font-weight: 700;
  color: #6366f1;
}
.asp-dl-msg {
  font-size: .82rem;
  font-weight: 600;
  color: #374151;
}

/* Timer block */
.asp-dl-timer-block {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5f3ff;
  border: 1.5px solid #ddd6fe;
  border-radius: 12px;
  padding: 8px 16px;
  flex-shrink: 0;
}
.asp-dl-count {
  font-size: 1.8rem;
  font-weight: 800;
  color: #6366f1;
  min-width: 48px;
  text-align: center;
  line-height: 1;
  transition: color .3s;
}
.asp-dl-count.done { color: #10b981; }
.asp-dl-timer-txt {
  font-size: .72rem;
  font-weight: 600;
  color: #a0a4c8;
  line-height: 1.3;
}

/* Ad slot */
.asp-dl-ad { flex: 1; min-width: 120px; text-align: center; }

/* Download button */
.asp-dl-btn {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: .9rem;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  border-radius: 12px;
  padding: 12px 28px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(99,102,241,.3);
  opacity: .3;
  pointer-events: none;
  transition: opacity .25s, transform .2s, box-shadow .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.asp-dl-btn.go {
  opacity: 1;
  pointer-events: all;
  animation: aspBtnPulse 2.2s ease-in-out infinite;
}
.asp-dl-btn.go:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99,102,241,.45);
  animation: none;
}

/* ---- Responsive ---- */
@media (max-width: 700px) {
  .asp-vc-body          { grid-template-columns: 1fr; justify-items: center; }
  .asp-cont-wrap        { width: 100%; max-width: 300px; }
  .asp-ban-timer-section { margin-left: 0; }
  .asp-ban-inner        { justify-content: center; text-align: center; }
  .asp-dl-inner         { justify-content: center; }
  .asp-vc-head          { justify-content: center; text-align: center; }
}
