/* =====================================================
   AdSense Safelink Pro — Frontend CSS v4
   Premium Light Theme — Inline Embedded Widgets
   ===================================================== */

/* =====================================================
   PHASE 2 — VERIFY WIDGET
   Embedded inline inside #asp-wrap (after header).
   NOT a full-screen overlay. Page content shows below.
   ===================================================== */

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

.asp-verify-card {
  width: 100%;
  background: #ffffff;
  border-top: 3px solid #6366f1;
  border-bottom: 1px solid #e8eaf0;
  box-shadow: 0 4px 20px rgba(99,102,241,.09), 0 1px 4px rgba(0,0,0,.05);
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

/* ---- Card Header ---- */
.asp-vc-head {
  background: linear-gradient(90deg, #f5f3ff 0%, #eff0ff 100%);
  border-bottom: 1px solid #e8eaf0;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.asp-vc-brand-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .78rem;
  font-weight: 700;
  color: #6366f1;
  letter-spacing: .02em;
}
.asp-vc-dot {
  display: inline-block;
  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.5); }
}
.asp-vc-title-wrap { text-align: center; flex: 1; }
.asp-vc-title {
  font-size: .9rem;
  font-weight: 800;
  color: #1e1b4b;
  line-height: 1.3;
}
.asp-vc-sub {
  font-size: .72rem;
  color: #7c7fa8;
  margin-top: 2px;
}
.asp-vc-secure {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  font-weight: 700;
  color: #10b981;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 20px;
  padding: 4px 10px;
  white-space: nowrap;
}

/* ---- Card Body: 3 columns ---- */
.asp-vc-body {
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 96px 1fr 140px;
  gap: 20px;
  align-items: center;
}

/* --- Col 1: Ring Timer --- */
.asp-ring-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.asp-ring-svg {
  width: 80px;
  height: 80px;
  overflow: visible;
}
.asp-ring-track {
  fill: none;
  stroke: #ede9fe;
  stroke-width: 6;
}
/* r=33, circumference = 2*PI*33 = 207.35 -> use 207 */
.asp-ring-fill {
  fill: none;
  stroke: url(#aspGrad);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 207;
  stroke-dashoffset: 207;
  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: .07em;
}

/* --- Col 2: Checkbox + Progress --- */
.asp-mid-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.asp-cb-card {
  background: #fafbff;
  border: 1.5px solid #e8eaf0;
  border-radius: 10px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  user-select: none;
  transition: background .18s, border-color .18s, box-shadow .18s;
}
.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: .82rem;
  font-weight: 700;
  color: #374151;
  line-height: 1.3;
}
.asp-cb-sublabel {
  font-size: .7rem;
  color: #9ca3af;
  margin-top: 1px;
}
.asp-prog-wrap { display: flex; flex-direction: column; gap: 4px; }
.asp-prog-labels {
  display: flex;
  justify-content: space-between;
  font-size: .69rem;
  font-weight: 600;
  color: #9ca3af;
}
.asp-prog-track {
  height: 7px;
  background: #f0f0f8;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid #e8eaf0;
}
.asp-prog-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg,#6366f1,#8b5cf6);
  border-radius: 7px;
  transition: width .95s linear;
}

/* --- Col 3: Continue Button --- */
.asp-cont-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
}
.asp-cont-btn {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: .84rem;
  color: #fff;
  background: linear-gradient(135deg,#6366f1,#8b5cf6);
  border: none;
  border-radius: 10px;
  padding: 11px 14px;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 3px 12px rgba(99,102,241,.28);
  opacity: .35;
  pointer-events: none;
  transition: opacity .22s, transform .18s, box-shadow .18s;
  white-space: nowrap;
}
.asp-cont-btn.go {
  opacity: 1;
  pointer-events: all;
  animation: aspBtnGlow 2.2s ease-in-out infinite;
}
.asp-cont-btn.go:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(99,102,241,.42);
  animation: none;
}
@keyframes aspBtnGlow {
  0%,100% { box-shadow: 0 3px 12px rgba(99,102,241,.28); }
  50%      { box-shadow: 0 3px 20px rgba(99,102,241,.5); }
}
.asp-cont-hint {
  font-size: .69rem;
  color: #9ca3af;
  text-align: center;
  line-height: 1.4;
}
.asp-hint-ready { color: #10b981; font-weight: 700; }

/* ---- Ad slots inside card ---- */
.asp-vc-ad { text-align: center; padding: 8px 20px 0; }

/* ---- Steps footer ---- */
.asp-vc-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 20px 12px;
  border-top: 1px solid #f0f0f8;
}
.asp-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ede9fe;
  color: #8b5cf6;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .3s;
}
.asp-step-active { background: #6366f1; color: #fff; }
.asp-step-done   { background: #10b981; color: #fff; }
.asp-step-sep {
  width: 28px;
  height: 2px;
  background: #e8eaf0;
  border-radius: 2px;
  flex-shrink: 0;
}

/* =====================================================
   PHASE 3 — ARTICLE BANNER
   Light bar inserted directly below theme header.
   ===================================================== */
#asp-article-banner {
  width: 100%;
  background: #ffffff;
  border-top: 3px solid #6366f1;
  border-bottom: 1px solid #e8eaf0;
  box-shadow: 0 2px 10px rgba(99,102,241,.08);
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  position: relative;
  z-index: 500;
}

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

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

.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;
  flex-shrink: 0;
}
.asp-dot-active { background: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.18); }
.asp-dot-done   { background: #10b981; }

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

.asp-ban-timer-section {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  flex-shrink: 0;
}
.asp-ban-timer-label {
  font-size: .72rem;
  font-weight: 600;
  color: #9ca3af;
  white-space: nowrap;
}
.asp-ban-countdown-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  background: linear-gradient(135deg,#f5f3ff,#ede9fe);
  border: 1.5px solid #ddd6fe;
  border-radius: 10px;
  padding: 0 8px;
}
#aspBanCount {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #6366f1;
  line-height: 1;
  transition: color .3s;
}

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

.asp-art-ad {
  text-align: center;
  padding: 6px 20px;
  border-top: 1px solid #f0f0f8;
}

/* =====================================================
   PHASE 4 — DOWNLOAD BAR
   Fixed bottom, slides up, premium light style.
   ===================================================== */
#asp-download-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 99990;
  background: #ffffff;
  border-top: 3px solid #6366f1;
  box-shadow: 0 -4px 24px rgba(99,102,241,.14), 0 -1px 6px rgba(0,0,0,.07);
  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 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.asp-dl-left { display: flex; flex-direction: column; gap: 1px; flex-shrink: 0; }
.asp-dl-brand { font-size: .73rem; font-weight: 700; color: #6366f1; }
.asp-dl-msg   { font-size: .82rem; font-weight: 700; color: #1e1b4b; }

.asp-dl-timer-block {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f5f3ff;
  border: 1.5px solid #ddd6fe;
  border-radius: 10px;
  padding: 7px 14px;
  flex-shrink: 0;
}
.asp-dl-count {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #6366f1;
  min-width: 44px;
  text-align: center;
  line-height: 1;
  transition: color .3s;
}
.asp-count-done { color: #10b981; }
.asp-dl-timer-txt {
  font-size: .7rem;
  font-weight: 600;
  color: #a0a4c8;
  line-height: 1.4;
}

.asp-dl-ad { flex: 1; min-width: 100px; text-align: center; }

.asp-dl-btn {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: .88rem;
  color: #fff;
  background: linear-gradient(135deg,#6366f1,#8b5cf6);
  border: none;
  border-radius: 10px;
  padding: 12px 26px;
  cursor: pointer;
  box-shadow: 0 3px 14px rgba(99,102,241,.28);
  opacity: .28;
  pointer-events: none;
  transition: opacity .22s, transform .18s, box-shadow .18s;
  white-space: nowrap;
  flex-shrink: 0;
}
.asp-dl-btn.go {
  opacity: 1;
  pointer-events: all;
  animation: aspBtnGlow 2.2s ease-in-out infinite;
}
.asp-dl-btn.go:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99,102,241,.42);
  animation: none;
}

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