/* ===== Digital Points funnel ===== */
:root {
  --bg: #0a0a0b;
  --bg-2: #111214;
  --card: #161719;
  --card-2: #1d1f22;
  --line: #2a2d31;
  --text: #f4f6f5;
  --muted: #9aa0a6;
  --accent: #22e06b;
  --accent-2: #17b957;
  --accent-glow: rgba(34, 224, 107, 0.35);
  --danger: #ff5d5d;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--bg); }

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* subtle grid + radial glow backdrop */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(600px circle at 50% -10%, rgba(34, 224, 107, 0.10), transparent 60%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 100% 100%, 44px 44px, 44px 44px;
  opacity: 0.5;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  pointer-events: none;
}

.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ---- brand ---- */
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--text);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent);
  color: #05130a;
  box-shadow: 0 0 22px var(--accent-glow);
}
.brand-name { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand-accent { font-size: 1.25rem; color: var(--accent); }

/* ---- card ---- */
.card {
  position: relative;
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

/* ---- progress ---- */
.progress {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
}
.progress .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--card-2);
  border: 1px solid var(--line);
  flex: 0 0 auto;
  transition: 0.3s;
}
.progress .dot.is-active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.progress .dot.is-done {
  background: var(--accent-2);
  border-color: var(--accent-2);
}
.progress .bar {
  flex: 1 1 auto;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.progress .bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.4s ease;
}
.progress .bar.is-filled i { width: 100%; }

/* ---- steps ---- */
.step { display: none; text-align: center; }
.step.is-current {
  display: block;
  animation: stepIn 0.4s ease both;
}
@keyframes stepIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.reward-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(34, 224, 107, 0.10);
  border: 1px solid rgba(34, 224, 107, 0.3);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-wrap: balance;
}
.title-sm { font-size: 1.32rem; }
.hl { color: var(--accent); }
.hl-soft { color: var(--accent); font-weight: 700; }

.subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-top: 10px;
  text-wrap: pretty;
}

/* ---- form ---- */
.field { margin-top: 22px; text-align: left; }
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 14px;
  color: var(--muted);
  pointer-events: none;
}
.field input {
  width: 100%;
  padding: 15px 15px 15px 44px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: 0.2s;
}
.field input::placeholder { color: #6b7075; }
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 224, 107, 0.16);
}
.error {
  color: var(--danger);
  font-size: 0.82rem;
  min-height: 1.1em;
  margin: 8px 2px 0;
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn-primary {
  margin-top: 16px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #05130a;
  box-shadow: 0 10px 26px rgba(34, 224, 107, 0.28);
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- loader ---- */
.loader {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 10px auto 22px;
}
.ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid var(--card-2);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
  box-shadow: 0 0 22px var(--accent-glow);
}
.ring-sm { width: 30px; height: 30px; border-width: 3px; box-shadow: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.loader-pct {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent);
}
.checklist {
  list-style: none;
  text-align: left;
  margin: 22px auto 0;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.checklist li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
  font-size: 0.92rem;
  opacity: 0.5;
  transition: 0.3s;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: transparent;
  transition: 0.3s;
}
.checklist li.is-done {
  color: var(--text);
  opacity: 1;
}
.checklist li.is-done::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}
.checklist li.is-done::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 5px;
  height: 9px;
  border: solid #05130a;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---- verify ---- */
.verify-badge {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 6px auto 18px;
  border-radius: 50%;
  color: var(--accent);
  background: rgba(34, 224, 107, 0.10);
  border: 1px solid rgba(34, 224, 107, 0.3);
  box-shadow: 0 0 26px var(--accent-glow);
  animation: pop 0.45s ease both;
}
@keyframes pop {
  0% { transform: scale(0.6); opacity: 0; }
  70% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}
.reward-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 22px 0 6px;
  padding: 18px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.reward-box-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.reward-box-amount { font-size: 1.7rem; font-weight: 800; }
.reward-box-amount b { color: var(--accent); }
.fineprint {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-top: 14px;
}

#offer-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.offer-meta-spinner {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 2px solid var(--muted);
  border-top-color: transparent;
  animation: offer-meta-spin 1.6s linear infinite;
}
@keyframes offer-meta-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .offer-meta-spinner { animation-duration: 2.4s; }
}

/* ---- faq accordion ---- */
.faq {
  margin-top: 18px;
  border-top: 1px solid var(--line, rgba(255, 255, 255, 0.1));
}
.faq-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 2px 4px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--fg, inherit);
}
.faq-q {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--muted);
}
.faq-chevron {
  flex: 0 0 auto;
  color: var(--muted);
  transition: transform 0.25s ease;
}
.faq-toggle[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}
.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq-panel.is-open {
  grid-template-rows: 1fr;
}
.faq-panel > p {
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}
.faq-panel.is-open > p {
  padding: 6px 2px 4px;
}
@media (prefers-reduced-motion: reduce) {
  .faq-panel, .faq-chevron { transition: none; }
}

/* ---- offerwall ---- */
.offerwall {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  text-align: left;
}
.ow-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 30px 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.offer {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border-radius: 13px;
  background: var(--card-2);
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  transition: 0.16s;
}
.offer:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.offer:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.offer-img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--bg);
  flex: 0 0 auto;
}
.offer-fallback {
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 800;
  font-size: 1.1rem;
}
.offer-body { flex: 1 1 auto; min-width: 0; }
.offer-name {
  display: block;
  font-weight: 600;
  font-size: 0.94rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.offer-desc {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.offer-go {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(34, 224, 107, 0.12);
  color: var(--accent);
  transition: transform 0.15s ease, background 0.15s ease;
}
.offer:hover .offer-go {
  background: rgba(34, 224, 107, 0.22);
  transform: translateX(2px);
}
.ow-error {
  padding: 20px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.ow-hint {
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.foot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}
.foot-secure { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); }
.foot-sep { opacity: 0.5; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 480px) {
  .card { padding: 22px 18px 20px; }
  .title { font-size: 1.42rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .ring { animation: none; border-top-color: var(--accent); }
}
