@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@600;700;800&family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@500;700;800&display=swap');

/* ============================================================
   1. DESIGN TOKENS — Clean White Theme & Defined Borders
   ============================================================ */
:root {
  /* Clean White Palette */
  --bg-page:            #F8FAFC;
  --card-bg:            #FFFFFF;
  --surface-alt:        #F1F5F9;
  --surface-card:       #FFFFFF;
  --surface-hover:      #F8FAFC;
  --border-subtle:      #E2E8F0;
  --border-card:        #CBD5E1;
  --border-strong:      #94A3B8;

  /* Accents */
  --neon-orange:        #FF6B00;
  --neon-orange-bright: #FF8200;
  --neon-orange-dark:   #EA580C;
  --glowing-cyan:       #00E5FF;
  --cyan-primary:       #0284C7;
  --cyan-dim:           rgba(2, 132, 199, 0.1);
  --bright-gold:        #D97706;
  --gold-primary:       #F59E0B;
  --gold-dim:           rgba(245, 158, 11, 0.12);
  --neon-green:         #16A34A;
  --green-dim:          rgba(22, 163, 74, 0.12);
  --muted-lavender:     #6D28D9;
  --purple-light:       #EDE9FE;

  /* Typography Colors */
  --text-primary:       #0F172A;
  --text-secondary:     #475569;
  --text-muted:         #64748B;
  --text-dim:           #94A3B8;
  --text-white:         #FFFFFF;

  /* Fonts */
  --font-main:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:          'JetBrains Mono', 'SF Mono', Consolas, monospace;
  --font-arabic:        'Cairo', 'Inter', sans-serif;

  /* Radii */
  --radius-sm:          6px;
  --radius-md:          10px;
  --radius-lg:          16px;
  --radius-xl:          20px;
  --radius-pill:        9999px;

  /* Shadows */
  --shadow-card:        0 8px 24px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-btn:         inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 12px rgba(255, 107, 0, 0.35);
}

/* ============================================================
   2. GLOBAL RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  overflow-x: clip;
}

body {
  background-color: var(--bg-page);
  background-image: radial-gradient(#E2E8F0 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 14px 64px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* In-App Browser Warning */
#inapp-banner {
  display: none;
  width: 100%;
  max-width: 440px;
  background: #0F172A;
  color: #FEF08A;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(250, 204, 21, 0.35);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

/* Container Shell */
.funnel-shell {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ============================================================
   3. TOP NAVIGATION BAR
   ============================================================ */
.top-nav-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--card-bg);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.nav-brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-avatar-box {
  width: 36px;
  height: 36px;
  min-width: 36px;
  max-width: 36px;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-avatar-img {
  width: 36px;
  height: 36px;
  max-width: 36px;
  max-height: 36px;
  object-fit: cover;
  display: block;
}

.brand-typography {
  font-family: var(--font-main);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1;
}

.brand-bux {
  color: var(--neon-orange);
}

.online-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  background: var(--green-dim);
  border: 1px solid rgba(22, 163, 74, 0.3);
  border-radius: var(--radius-pill);
}

.pulsing-green-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--neon-green);
  box-shadow: 0 0 6px var(--neon-green);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.8;
  }
}

.online-count-text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--neon-green);
  letter-spacing: 0.04em;
}

/* ============================================================
   4. MAIN FUNNEL CONTAINER & SCREENS
   ============================================================ */
.funnel-card {
  width: 100%;
  background: var(--card-bg);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 22px 18px 20px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.step-screen {
  display: none;
}

.step-screen.active {
  display: block;
  animation: fadeInStep 0.25s cubic-bezier(0.2, 0, 0, 1);
}

@keyframes fadeInStep {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Standard Header inside Cards */
.card-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  text-align: center;
}

.card-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 18px;
  text-align: center;
  line-height: 1.45;
}

/* ============================================================
   5. ADVANCED RADAR SCANNER & CONNECTION LOADER (Step 1)
   ============================================================ */
.connect-scanner-box {
  padding: 10px 4px 6px;
  text-align: center;
  animation: fadeInStep 0.3s ease;
}

.radar-scan-container {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 8px auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-ring-pulse {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(109, 40, 217, 0.25);
  animation: radarPulse 2.4s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
}

.radar-ring-pulse.ring-1 {
  width: 58px;
  height: 58px;
  animation-delay: 0s;
}

.radar-ring-pulse.ring-2 {
  width: 78px;
  height: 78px;
  animation-delay: 0.6s;
}

.radar-ring-pulse.ring-3 {
  width: 98px;
  height: 98px;
  animation-delay: 1.2s;
}

@keyframes radarPulse {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
    border-color: rgba(255, 107, 0, 0.7);
  }
  50% {
    border-color: rgba(2, 132, 199, 0.5);
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.radar-avatar-node {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(109, 40, 217, 0.25);
  border: 2px solid var(--muted-lavender);
  z-index: 2;
  position: relative;
  background: #FFFFFF;
}

.radar-avatar-face {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.radar-sweep-scanner {
  position: absolute;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border-top: 2.5px solid var(--neon-orange);
  border-right: 2.5px solid transparent;
  animation: radarSpin 1.2s linear infinite;
  z-index: 3;
  pointer-events: none;
}

@keyframes radarSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.connect-scan-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.connect-scan-target {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--muted-lavender);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.connect-meter-track {
  width: 100%;
  height: 8px;
  background: #E2E8F0;
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
  margin-bottom: 16px;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(203, 213, 225, 0.7);
}

.connect-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF6B00, #00E5FF);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
  transition: width 0.35s ease;
}

.connect-status-feed {
  background: var(--surface-alt);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feed-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.feed-step.active {
  color: var(--text-primary);
  font-weight: 800;
}

.feed-step.active .feed-dot {
  color: var(--neon-orange);
  animation: pulseDot 1s infinite;
}

.feed-step.done {
  color: var(--neon-green);
  font-weight: 700;
}

.feed-step.done .feed-dot {
  color: var(--neon-green);
}

/* ============================================================
   6. STEP 3: MAIN DASHBOARD & REALISTIC PROGRESS LINE
   ============================================================ */
.dashboard-header {
  margin-bottom: 16px;
  text-align: left;
}

.dashboard-subtitle {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted-lavender);
  letter-spacing: 0.01em;
  margin-bottom: 4px;
}

.dashboard-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* 3-Column User Status Bar */
.user-status-bar {
  display: grid;
  grid-template-columns: 0.95fr 0.95fr 1.25fr;
  background: var(--surface-alt);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 10px 8px;
  margin-bottom: 16px;
}

.status-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 6px;
}

.status-col:not(:last-child) {
  border-right: 1px solid var(--border-subtle);
}

.status-col-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.status-col-content {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
}

.status-col-content-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 28px;
}

/* Account Column */
.user-avatar-mini {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--muted-lavender);
  overflow: hidden;
  flex-shrink: 0;
  background: #E2E8F0;
}

.avatar-mini-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.user-handle-text {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 82px;
}

/* Reward Column */
.reward-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reward-val-block {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.reward-amt-gold {
  color: var(--bright-gold);
  font-weight: 900;
  font-size: 13.5px;
  letter-spacing: -0.01em;
}

.reward-unit-text {
  color: var(--text-primary);
  font-size: 10px;
  font-weight: 700;
}

/* Realistic Authentic Progress Meter (Status Column) */
.status-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  width: 100%;
  margin-bottom: 4px;
}

.status-completed-text {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  line-height: 1;
}

.status-live-pill {
  font-size: 8.5px;
  font-weight: 800;
  color: #0284C7;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  line-height: 1;
}

.live-dot-pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00E5FF;
  box-shadow: 0 0 6px #00E5FF;
  display: inline-block;
  -webkit-animation: pulseDot 1.2s infinite;
  animation: pulseDot 1.2s infinite;
}

.cyan-progress-track {
  width: 100%;
  height: 8px;
  background: #E2E8F0;
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(203, 213, 225, 0.8);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.cyan-progress-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  position: relative;
  -webkit-transition: width 0.4s ease;
  transition: width 0.4s ease;
}

/* Authentic Active Scanning Beam (When 0/1 Completed) - Full mobile 60fps GPU support */
.cyan-progress-fill.status-standby {
  width: 44%;
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, rgba(2, 132, 199, 0.2) 0%, #00E5FF 50%, #38BDF8 80%, rgba(2, 132, 199, 0.3) 100%);
  background-size: 100% 100%;
  box-shadow: 0 0 10px #00E5FF, 0 0 16px rgba(0, 229, 255, 0.6);
  -webkit-animation: beamSweep 1.8s ease-in-out infinite alternate;
  animation: beamSweep 1.8s ease-in-out infinite alternate;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.cyan-progress-fill.status-standby::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 0 6px #FFFFFF, 0 0 12px #00E5FF;
}

@-webkit-keyframes beamSweep {
  0% {
    -webkit-transform: translate3d(-15%, 0, 0);
    transform: translate3d(-15%, 0, 0);
  }
  100% {
    -webkit-transform: translate3d(140%, 0, 0);
    transform: translate3d(140%, 0, 0);
  }
}

@keyframes beamSweep {
  0% {
    -webkit-transform: translate3d(-15%, 0, 0);
    transform: translate3d(-15%, 0, 0);
  }
  100% {
    -webkit-transform: translate3d(140%, 0, 0);
    transform: translate3d(140%, 0, 0);
  }
}

/* Verified 100% State (When 1/1 Completed) */
.cyan-progress-fill.status-verified {
  width: 100% !important;
  -webkit-transform: none !important;
  transform: none !important;
  -webkit-animation: none !important;
  animation: none !important;
  background: linear-gradient(90deg, #10B981, #00E5FF) !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6) !important;
}

.cyan-progress-fill.status-verified::after {
  display: none !important;
}

/* Instruction Text */
.tasks-instruction-text {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 14px 0 16px;
}

.highlight-gold {
  color: var(--bright-gold);
  font-weight: 800;
}

/* ============================================================
   7. INTERACTIVE TASK CARDS WITH DEFINED BORDERS
   ============================================================ */
.task-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  position: relative;
}

.task-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-card);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.09);
}

.task-card:active {
  transform: scale(0.985);
}

/* First Featured Card with Glowing Orange-to-Cyan Gradient Border */
.task-card.featured-card {
  position: relative;
  background: 
    linear-gradient(#FFFFFF, #FFFFFF) padding-box,
    linear-gradient(135deg, #FF6B00 0%, #FF8A00 40%, #00E5FF 100%) border-box;
  border: 2px solid transparent;
  box-shadow: 0 4px 18px rgba(255, 107, 0, 0.2), 0 0 12px rgba(0, 229, 255, 0.15);
}

.task-card.featured-card:hover {
  box-shadow: 0 6px 24px rgba(255, 107, 0, 0.3), 0 0 16px rgba(0, 229, 255, 0.25);
}

/* Bulletproof Dual-Layer Icon Container */
.task-card-icon {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: #1B0C36;
}

.task-icon-base {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.task-icon-base svg {
  display: block;
  width: 100%;
  height: 100%;
}

.task-icon-sponsor {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  opacity: 0;
  transition: opacity 0.25s ease;
  background: #FFFFFF;
}

.task-icon-sponsor.loaded {
  opacity: 1;
}

/* Card Center: Titles & Subtitles */
.task-card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.task-card-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.task-card-arabic {
  font-family: var(--font-arabic);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.35;
  text-align: right;
  direction: rtl;
}

.task-card-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Right: Badge + Button */
.task-card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.task-pts-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(217, 119, 6, 0.35);
  background: var(--gold-dim);
  color: var(--bright-gold);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.btn-task-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: none;
  background: linear-gradient(180deg, var(--neon-orange-bright) 0%, var(--neon-orange-dark) 100%);
  color: var(--text-white);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: all 0.15s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.btn-task-action:hover {
  filter: brightness(1.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 5px 16px rgba(255, 107, 0, 0.5);
}

.btn-task-action:active {
  transform: scale(0.96);
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.2), 0 2px 6px rgba(255, 107, 0, 0.35);
}

/* ============================================================
   8. STEP 1 & STEP 2 STYLING
   ============================================================ */
.hero-logo-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.hero-logo-wrap img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  display: block;
}

.auto-device-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.field-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.detected-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--cyan-primary);
  background: var(--cyan-dim);
  border: 1px solid rgba(2, 132, 199, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.input-box {
  width: 100%;
  background: var(--surface-alt);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.input-box:focus {
  border-color: var(--muted-lavender);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.15);
}

.input-box::placeholder {
  color: var(--text-dim);
  font-weight: 500;
}

/* Primary CTA Buttons */
.btn-main {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: linear-gradient(180deg, var(--neon-orange-bright) 0%, var(--neon-orange-dark) 100%);
  color: var(--text-white);
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.02em;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: all 0.15s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  margin-bottom: 14px;
}

.btn-main:hover {
  filter: brightness(1.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 6px 18px rgba(255, 107, 0, 0.45);
}

.btn-main:active {
  transform: scale(0.98);
}

.btn-main:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.btn-outline {
  padding: 13px 18px;
  background: var(--surface-alt);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background: #E2E8F0;
}

/* Step 1B: Avatar Confirm Card */
.avatar-confirm-card {
  background: var(--surface-alt);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
}

.avatar-circle {
  width: 76px;
  height: 76px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 2.5px solid var(--muted-lavender);
  overflow: hidden;
  background: #E2E8F0;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.2);
}

.avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Step 2: Connected User Strip */
.connected-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-alt);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 16px;
}

.strip-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.strip-user img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--muted-lavender);
}

.platform-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--cyan-primary);
  background: var(--cyan-dim);
  border: 1px solid rgba(2, 132, 199, 0.3);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

/* Step 2: Rewards Grid */
.rewards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.reward-card {
  background: var(--surface-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.reward-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-card);
}

.reward-card.selected {
  background: #FFFFFF;
  border: 2px solid var(--neon-orange);
  box-shadow: 0 4px 16px rgba(255, 107, 0, 0.2);
  transform: translateY(-2px);
}

.stock-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  color: var(--bright-gold);
  background: var(--gold-dim);
  border: 1px solid rgba(217, 119, 6, 0.3);
  padding: 2px 6px;
  border-radius: var(--radius-pill);
}

.reward-amount {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.1;
}

.reward-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
}

/* ============================================================
   9. STEP 2.5: HUMAN SECURITY AUDIT & BOT VERIFICATION PROGRESS
   ============================================================ */
.sync-screen {
  text-align: center;
  padding: 6px 0;
}

.security-audit-box {
  background: var(--surface-alt);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  margin-bottom: 18px;
  text-align: left;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.security-audit-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 8px;
}

.audit-shield-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.shield-icon {
  font-size: 14px;
}

.audit-defense-pill {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  color: #0284C7;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: var(--radius-pill);
  padding: 3px 8px;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.sync-meter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
}

.sync-step-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
}

.sync-percent-text {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 900;
  color: var(--bright-gold);
}

.sync-meter-track {
  width: 100%;
  height: 13px;
  background: #E2E8F0;
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
  margin: 10px 0;
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(203, 213, 225, 0.8);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.sync-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF6B00 0%, #FF8F00 45%, #00E5FF 100%);
  background-size: 200% 100%;
  border-radius: var(--radius-pill);
  box-shadow: 0 0 12px rgba(255, 107, 0, 0.5);
  position: relative;
  -webkit-transition: width 0.18s cubic-bezier(0.2, 0, 0, 1);
  transition: width 0.18s cubic-bezier(0.2, 0, 0, 1);
  -webkit-animation: progressStripes 2s linear infinite;
  animation: progressStripes 2s linear infinite;
}

@-webkit-keyframes progressStripes {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

@keyframes progressStripes {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

.sync-laser-pip {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 0 8px #FFFFFF, 0 0 16px #00E5FF, 0 0 22px rgba(255, 107, 0, 0.8);
}

.security-signals-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  margin: 10px 0 12px;
  padding: 8px 10px;
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.signal-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.signal-dot.active {
  color: var(--neon-green);
  -webkit-animation: pulseDot 1.2s infinite;
  animation: pulseDot 1.2s infinite;
}

.sync-meter-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.sync-target-info {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.sync-rate-info {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--neon-green);
  letter-spacing: 0.04em;
}

.sync-verify-wrap {
  margin-bottom: 16px;
  animation: fadeInStep 0.3s ease;
}

.btn-verify-human {
  font-size: 14px;
  letter-spacing: 0.02em;
}

.cf-turnstile-slot {
  margin: 10px auto 14px;
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   10. GOOGLE VERIFIED BADGE
   ============================================================ */
.google-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--surface-alt);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin: 10px auto 4px;
}

.google-verified-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.google-verified-badge span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}

/* ============================================================
   11. FREQUENTLY ASKED QUESTIONS (FAQ)
   ============================================================ */
.faq-box {
  width: 100%;
  background: var(--card-bg);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.faq-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--muted-lavender);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 0;
  cursor: pointer;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  gap: 8px;
}

.faq-arrow {
  color: var(--text-muted);
  font-size: 12px;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-a {
  display: none;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 8px;
  padding-right: 12px;
}

.faq-item.open .faq-a {
  display: block;
}

/* ============================================================
   12. FLOATING SOCIAL PROOF TOAST
   ============================================================ */
.floating-social-toast {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #FFFFFF;
  border: 1.5px solid rgba(255, 107, 0, 0.45);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12), 0 0 10px rgba(255, 107, 0, 0.12);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  max-width: calc(100vw - 40px);
  animation: toastSlideUp 0.35s cubic-bezier(0.2, 0, 0, 1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes toastSlideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.toast-star-icon {
  color: var(--bright-gold);
  font-size: 15px;
  flex-shrink: 0;
}

.toast-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   13. TASK ACTIVATION MODAL
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
  animation: fadeInStep 0.25s ease;
}

.modal-box {
  width: 100%;
  max-width: 390px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 22px 18px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
  text-align: center;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  background: var(--surface-alt);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: #E2E8F0;
}

.modal-task-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(217, 119, 6, 0.35);
  background: var(--gold-dim);
  color: var(--bright-gold);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 12px;
}

.modal-task-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.modal-task-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 18px;
}

.modal-steps-box {
  background: var(--surface-alt);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  text-align: left;
  margin-bottom: 18px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.modal-step-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.modal-step-row:last-child {
  margin-bottom: 0;
}

.modal-step-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--purple-light);
  border: 1px solid var(--muted-lavender);
  color: var(--muted-lavender);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.modal-action-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
