

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #1d4ed8 100%);
  min-height: 100vh;
  color: #0d0d0d;
}

a { text-decoration: none; color: inherit; }

/* ---- Layout Shell ---- */
.page-shell {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #1d4ed8 100%);
  min-height: 100vh;
  padding:15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-card {
  background: #ffffff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  padding: 16px;
  width: 100%;
  max-width: 480px;
  height: fit-content;
}

/* ============================================
   SITE HEADER
   ============================================ */
.site-header {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  padding: 10px 14px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  width: 100%;
  max-width: 480px;
  margin-bottom: 0;
}

.site-header > img:first-child {
  grid-column: 1;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.site-header > img:last-child {
  grid-column: 2;
  justify-self: center;
  max-width: 150px;
  height: auto;
}

/* ============================================
   HERO GRADIENT SECTION
   ============================================ */
.hero-gradient {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 60%, #312e81 100%);
  color: #ffffff;
  padding: 18px 16px 20px;
  width: 100%;
  max-width: 480px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: blink 2s infinite;
  flex-shrink: 0;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

.hero-gradient h1 {
  font-size: 21px;
  font-weight: 900;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 6px;
}

.hero-gradient h1 .accent { color: #facc15; }
.hero-gradient h2 {
  font-size: 21px;
  font-weight: 900;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 6px;
}

.hero-sub {
  font-size: 13px;
  color: #bfdbfe;
  line-height: 1.5;
  margin-bottom: 12px;
}

/* Pre-approved pill */
.preapproved-pill {
  display: inline-block;
  background: #b5e51d;
  color: #000000;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 4px 16px;
  border-radius: 5px;
  margin: 6px 0 5px;
  text-transform: uppercase;
}

/* 2×2 stats grid inside hero */
.hero-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 12px;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 9px 6px;
  text-align: center;
}

.hero-stat .stat-val {
  font-size: 17px;
  font-weight: 800;
  color: #facc15;
  display: block;
  line-height: 1;
  margin-bottom: 3px;
}

.hero-stat .stat-lbl {
  font-size: 13px;
  color: #bfdbfe;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Trust badges row */
.trust-row {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-top: 10px;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 13px;
  color: #bfdbfe;
}

/* ============================================
   PAGE BODY AREA
   ============================================ */
.page-body {
  width: 100%;
  max-width: 480px;
  padding: 14px 16px;
  background: #ffffff;
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title {
  font-size: 17px;
  font-weight: 800;
  color: #1e3a8a;
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.3;
}

.section-sub {
  font-size: 13px;
  color: #6b7280;
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.4;
}

/* ============================================
   LEVEL CARDS v2 (gradient backgrounds)
   ============================================ */
.level-card-v2 {
  border-radius: 12px;
  padding: 13px;
  margin-bottom: 9px;
  border: 2px solid transparent;
}

.level-card-v2-green {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-color: #22c55e;
}

.level-card-v2-blue {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-color: #3b82f6;
}

.level-card-v2-purple {
  background: linear-gradient(135deg, #faf5ff, #ede9fe);
  border-color: #8b5cf6;
}

.level-card-v2 .level-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.level-badge-v2 {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  flex-shrink: 0;
}

.level-badge-green  { background: #16a34a; }
.level-badge-blue   { background: #2563eb; }
.level-badge-purple { background: #7c3aed; }

.level-card-v2 p {
  font-size: 13px;
  line-height: 1.5;
  color: #374151;
  margin-bottom: 9px;
}

/* ============================================
   WARNING / IMPORTANT BANNER
   ============================================ */
.important-banner {
  background: #fefce8;
  border: 2px solid #facc15;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 700;
  color: #78350f;
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.4;
}

/* ============================================
   VERIFY CARD (index.php)
   ============================================ */
.verify-card {
  background: #f8faff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  text-align: center;
}

.verify-card .welcome-name {
  font-size: 22px;
  font-weight: 900;
  color: #ea580c;
  margin: 4px 0 8px;
}

.verify-card .verify-q {
  font-size: 14px;
  font-weight: 800;
  color: #1e3a8a;
  line-height: 1.3;
  margin-bottom: 3px;
}

.verify-card .verify-sub {
  font-size: 14px;
  color: #6b7280;
  font-style: italic;
}

/* ============================================
   INFO CARD (prelander-a)
   ============================================ */
.info-card {
  background: #f8faff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}

.info-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 13px;
}

.info-row:last-child { border-bottom: none; }
.info-row .label { color: #6b7280; }
.info-row .value { font-weight: 700; color: #111827; }

/* ============================================
   FUNDING CALENDAR
   ============================================ */
.calendar-wrap {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  padding: 13px;
  margin-bottom: 12px;
  border-top: 4px solid #2563eb;
}

.calendar-wrap h3 {
  font-size: 13px;
  font-weight: 800;
  color: #1e3a8a;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.calendar-scroll { max-height: 210px; overflow-y: auto; }

.calendar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 6px 8px;
}

.calendar-row:nth-child(odd)  { background: #f9fafb; }
.calendar-row:nth-child(even) { background: #ffffff; }

.cal-date  { color: #374151; }
.cal-amt   { color: #16a34a; font-weight: 700; }
.cal-total { color: #9ca3af; font-size: 13px; }

.cal-summary {
  font-size: 13px;
  font-weight: 700;
  color: #16a34a;
  margin-top: 8px;
}

/* ============================================
   NOTICE BOX
   ============================================ */
.notice-box {
  background: #eff6ff;
  border: 2px solid #2563eb;
  border-radius: 10px;
  padding: 11px;
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #374151;
}

.notice-box .notice-title {
  font-weight: 800;
  color: #1e3a8a;
  margin-bottom: 5px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ============================================
   OFFER CARDS (prelander-c)
   ============================================ */
.offer-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  padding: 14px;
  margin-bottom: 9px;
  text-align: center;
  border: 1px solid #e5e7eb;
}

.offer-logo {
  width: 60px;
  height: 38px;
  border-radius: 7px;
  margin: 0 auto 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
}

/* ============================================
   OFFERWALL GRID
   ============================================ */
.offerwall-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.offerwall-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  padding: 12px;
  border: 2px dashed #d1d5db;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  justify-content:space-between;
}

.offerwall-card .offer-title { font-size: 13px; font-weight: 700; color: #374151; }
.offerwall-card .offer-sub   { font-size: 13px; color: #9ca3af; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: block;
  width: 100%;
  border: none;
  border-radius: 9999px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(11px, 3vw, 13px);
  text-transform: uppercase;
  cursor: pointer;
  padding: 13px 16px;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.1s, box-shadow 0.2s;
  line-height: 1.3;
  letter-spacing: 0.03em;
}

.btn:hover  { opacity: 0.92; transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: 1; }

.btn-orange {
  background: linear-gradient(to right, #f97316, #ea580c);
  color: #ffffff;
  box-shadow: 0 3px 14px rgba(249, 115, 22, 0.45);
}

.btn-green {
  background: linear-gradient(to right, #22c55e, #16a34a);
  color: #ffffff;
  box-shadow: 0 3px 14px rgba(34, 197, 94, 0.38);
}

.btn-blue {
  background: linear-gradient(to right, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 3px 14px rgba(37, 99, 235, 0.38);
}

.btn-blue-secondary {
  background: linear-gradient(to right, #0ea5e9, #0284c7);
  color: #ffffff;
  box-shadow: 0 3px 14px rgba(14, 165, 233, 0.38);
}

.btn-lavender {
  background: linear-gradient(to right, #8b5cf6, #7c3aed);
  color: #ffffff;
  box-shadow: 0 3px 14px rgba(139, 92, 246, 0.38);
}

.btn-ghost {
  background: #ffffff;
  color: #6b7280;
  border: 2px solid #d1d5db;
  box-shadow: none;
}
.btn-ghost:hover { background: #f9fafb; opacity: 1; transform: none; }

/* Pulse animations */
@keyframes pulse-orange {
  0%, 100% { box-shadow: 0 3px 14px rgba(249, 115, 22, 0.45); }
  50%       { box-shadow: 0 6px 26px rgba(249, 115, 22, 0.72); }
}
.btn-pulse { animation: pulse-orange 2s ease-in-out infinite; }

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 3px 14px rgba(34, 197, 94, 0.38); }
  50%       { box-shadow: 0 6px 26px rgba(34, 197, 94, 0.66); }
}
.btn-pulse-green { animation: pulse-green 2s ease-in-out infinite; }

@keyframes pulse-blue-sec {
  0%, 100% { box-shadow: 0 3px 14px rgba(14, 165, 233, 0.38); }
  50%       { box-shadow: 0 6px 26px rgba(14, 165, 233, 0.66); }
}
.btn-pulse-blue-secondary { animation: pulse-blue-sec 2s ease-in-out infinite; }

.btn-sm-new { font-size: 14px; padding: 10px 14px; }
.w-85 { width: 85%; margin-left: auto; margin-right: auto; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
.text-blue   { color: #2563eb; }
.text-navy   { color: #1e3a8a; }
.text-orange { color: #ea580c; }
.text-green  { color: #16a34a; }
.text-gray   { color: #6b7280; }
.text-center { text-align: center; }
.text-underline { text-decoration: underline; }

.text-2xs  { font-size: clamp(10px, 2.8vw, 12px); }
.text-xs   { font-size: 13px; }
.text-sm   { font-size: 14px; }
.text-15   { font-size: 17px; }
.text-md   { font-size: 16px; }
.text-lg   { font-size: 18px; }
.text-xl   { font-size: 20px; }
.text-2xl  { font-size: 24px; }
.text-3xl  { font-size: 30px; }
.text-4xl  { font-size: 36px; }

.font-light    { font-weight: 300; }
.font-bold     { font-weight: 700 !important; }
.font-black    { font-weight: 900; }
.font-semibold { font-weight: 600; }
.font-italics  { font-style: italic; }
.uppercase     { text-transform: uppercase; }

/* ============================================
   SPACING
   ============================================ */
.mt-1{margin-top:4px} .mt-2{margin-top:8px} .mt-3{margin-top:12px} .mt-4{margin-top:16px} .mt-6{margin-top:24px}
.mb-1{margin-bottom:4px} .mb-2{margin-bottom:8px} .mb-3{margin-bottom:12px} .mb-4{margin-bottom:16px}
.mb-6{margin-bottom:24px} .mb-8{margin-bottom:32px}
.p-2{padding:8px} .p-3{padding:12px} .p-4{padding:16px} .p-6{padding:24px} .p-8{padding:32px}
.px-2{padding-left:8px;padding-right:8px} .px-3{padding-left:12px;padding-right:12px}
.py-1{padding-top:4px;padding-bottom:4px} .py-2{padding-top:8px;padding-bottom:8px}
.py-3{padding-top:12px;padding-bottom:12px}
.space-y-3>*+*{margin-top:12px}
.gap-2{gap:8px} .gap-3{gap:12px}

/* ============================================
   CARDS (generic compat)
   ============================================ */
.card {
  background: #f8faff;
  border-radius: 12px;
  border: 1px solid #dbeafe;
  padding: 13px;
}

.card-dashed {
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

/* Old level-card compatibility */
.level-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 13px;
  margin-bottom: 9px;
  border-left: 4px solid;
}
.level-card-green          { border-left-color: #16a34a; }
.level-card-blue           { border-left-color: #2563eb; }
.level-card-blue-secondary { border-left-color: #0ea5e9; }
.level-card-purple         { border-left-color: #7c3aed; }

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 7px;
}
.badge-pill   { border-radius: 9999px; }
.badge-green  { background: #16a34a; }
.badge-blue   { background: #2563eb; }
.badge-purple { background: #7c3aed; }

/* ============================================
   EMAIL OPT-IN
   ============================================ */
.email-optin {
  background: #f0f9ff;
  border-left: 4px solid #0ea5e9;
  border-radius: 8px;
  padding: 11px;
  margin-top: 14px;
}
.email-optin p         { font-size: 13px; }
.email-optin .label    { font-size: 13px; margin-bottom: 7px; }
.email-optin .row      { display: flex; justify-content: center; align-items: center; gap: 8px; }

/* ============================================
   FOOTER LINK
   ============================================ */
.footer-link {
  font-size: 14px;
  color: #9ca3af;
  text-align: center;
  margin-top: 13px;
}
.footer-link a { color: #2563eb; text-decoration: underline; font-weight: 600; }

/* ============================================
   PROCESSING PAGE
   ============================================ */
@keyframes spin { to { transform: rotate(360deg); } }

.spinner {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 4px solid #2563eb;
  border-top-color: transparent;
  margin: 0 auto 16px;
  animation: spin 1s linear infinite;
}

.progress-bar-wrap {
  height: 8px;
  background: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
  margin: 12px 0;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(to right, #2563eb, #1d4ed8);
  border-radius: 9999px;
  width: 0%;
  transition: width 0.3s ease;
}

/* ============================================
   POPUP
   ============================================ */
#af-popup-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(10, 20, 50, 0.55);
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
#af-popup-overlay.af-open { display: flex; animation: af-fadeIn 0.3s ease both; }
@keyframes af-fadeIn { from{opacity:0} to{opacity:1} }

#af-popup-card {
  position: relative; background: #ffffff;
  border: 2px solid #1e3a8a; border-radius: 18px;
  padding: 22px; max-width: 400px; width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.22);
}
#af-popup-overlay.af-open #af-popup-card { animation: af-slideUp 0.35s cubic-bezier(0.22,1,0.36,1) both; }
@keyframes af-slideUp {
  from{opacity:0;transform:translateY(20px) scale(0.97)}
  to  {opacity:1;transform:translateY(0) scale(1)}
}

#af-popup-label {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: #ffffff; border: 2px solid #1e3a8a; border-radius: 20px;
  padding: 2px 14px; font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: #1e3a8a; white-space: nowrap;
}

#af-close-btn {
  position: absolute; top: -36px; right: -5px;
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid #1e3a8a; background: transparent;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #1e3a8a; font-weight: 700;
  transition: background 0.18s, color 0.18s;
}
#af-close-btn:hover { background: #1e3a8a; color: #ffffff; }

#af-popup-title {
  all: unset; display: block;
  font-family: "Inter", sans-serif; font-style: italic;
  font-size: 17px; font-weight: 700; color: #1e3a8a;
  text-decoration: underline; text-underline-offset: 3px;
  margin-bottom: 10px; line-height: 1.3; text-align: center;
}

.af-popup-p {
  all: unset; display: block;
  font-family: "Inter", sans-serif; font-size: 13px; font-style: italic;
  color: #374151; line-height: 1.6; margin-bottom: 7px; text-align: center;
}
.af-popup-p:last-child { margin-bottom: 0; }
.af-popup-p strong { font-weight: 700; font-style: normal; }

/* ============================================
   FLEX HELPERS
   ============================================ */
.flex{display:flex} .flex-col{flex-direction:column}
.items-center{align-items:center} .justify-center{justify-content:center}
.justify-between{justify-content:space-between}

.lead-debug {
  margin-top:18px; padding:10px; background:#f3f4f6;
  border-radius:8px; font-family:monospace; font-size:10px;
  color:#6b7280; line-height:1.8;
}
.d-none{
    display: none!important;
}