/* ==========================================================================
   Clean WhatsApp & Rewards Landing Page
   Modern, Ultra-responsive, 100% Clean Vanilla CSS
   ========================================================================== */

:root {
  --wa-teal-dark: #075e54;
  --wa-teal: #008069;
  --wa-light-green: #25d366;
  --wa-outgoing-bubble: #d9fdd3;
  --wa-incoming-bubble: #ffffff;
  --wa-chat-bg: #efeae2;
  --wa-ticks-blue: #53bdeb;
  --wa-badge-red: #ef4444;

  --primary-accent: #10b981;
  --primary-gold: #f59e0b;
  --primary-btn: #2563eb;
  --primary-btn-hover: #1d4ed8;

  --bg-app: #0f172a;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-light: #e2e8f0;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 35px -10px rgba(0, 0, 0, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(circle at 50% 0%, #1e293b 0%, #0b0f19 100%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  overflow-x: hidden;
}

/* App Wrapper (Mobile-first centered on desktop) */
.app-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  padding-bottom: 30px;
}

/* Top Live Status Ribbon */
.live-status-bar {
  background: #0f172a;
  color: #f8fafc;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 7px;
}

.pulsing-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulseGreen 1.5s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 12px #22c55e; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.secure-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #94a3b8;
}

/* Header & Banner */
.hero-header {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
}

.hero-banner-img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.banner-overlay-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85), transparent);
  display: flex;
  align-items: flex-end;
  padding: 10px 16px;
}

.brand-pill {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: #fbbf24;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Card Content Body */
.content-wrapper {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Announcement Box */
.announcement-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 18px 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  text-align: center;
  position: relative;
}

.announcement-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #059669;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  border: 1px solid #a7f3d0;
}

.announcement-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 8px;
}

.announcement-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

/* User verification input field */
.input-group {
  margin-bottom: 14px;
}

.username-input {
  width: 100%;
  padding: 13px 16px;
  font-size: 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #cbd5e1;
  outline: none;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.username-input:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Glowing Pulsing Action Button */
.btn-primary-action {
  width: 100%;
  padding: 16px 20px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: pulseGlow 2.5s infinite;
}

.btn-primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.55);
}

.btn-primary-action:active {
  transform: translateY(1px);
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 10px rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 25px rgba(16, 185, 129, 0.7); }
  100% { box-shadow: 0 0 10px rgba(16, 185, 129, 0.4); }
}

/* Step 2 Content Section */
#step2Section {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

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

/* Announcement winner text */
.winner-announcement {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.85;
  color: #222222;
  letter-spacing: 0.2px;
  margin-bottom: 20px;
  text-align: left;
}

/* Divider: HERE'S WHAT TO DO NEXT */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px 18px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.divider-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  white-space: nowrap;
}

/* Steps 1, 2, 3 List */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 22px;
}

.step-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.step-num {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: #1877f2;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  box-shadow: 0 2px 5px rgba(24, 119, 242, 0.35);
}

.step-body {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.7;
  color: #1e293b;
  letter-spacing: 0.2px;
}

/* Sponsor Offers Section */
.offers-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.offer-card {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.offer-card:hover {
  border-color: #9ca3af;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.offer-icon-box {
  width: 68px;
  height: 68px;
  min-width: 68px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  background: #f1f5f9;
}

.offer-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.offer-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.offer-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

.offer-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.3;
  margin-bottom: 4px;
}

.offer-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.offer-complete-btn {
  background: #5cb85c;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 4px;
  text-align: center;
  display: inline-block;
  white-space: nowrap;
}

.offer-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #9ca3af;
  font-size: 12px;
}


/* Guarantee / Security Notice */
.security-guarantee-card {
  background: #f0fdf4;
  border: 1px dashed #86efac;
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #166534;
  line-height: 1.4;
}

/* Footer */
.app-footer {
  margin-top: auto;
  padding: 20px 16px 10px;
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
  border-top: 1px solid var(--border-light);
  line-height: 1.6;
}

/* ==========================================================================
   WHATSAPP CHAT SIMULATOR (Pixel-perfect WhatsApp Experience)
   ========================================================================== */

/* Floating WhatsApp Launcher Button */
.wa-floating-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}

.wa-circle-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.wa-circle-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
}

.wa-unread-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: var(--wa-badge-red);
  color: white;
  font-size: 11px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border: 2px solid white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  animation: badgePop 0.5s ease;
}

@keyframes badgePop {
  0% { transform: scale(0); }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Compact Floating WhatsApp Chat Window (Never takes full screen) */
.wa-chat-window {
  display: none;
  position: fixed;
  bottom: 95px;
  right: 16px;
  left: auto;
  top: auto;
  width: calc(100vw - 32px);
  max-width: 365px;
  height: 480px;
  max-height: 70vh;
  background-color: var(--wa-chat-bg);
  /* WhatsApp Clean Doodle Background Pattern */
  background-image: radial-gradient(#d1d7db 1px, transparent 1px), radial-gradient(#d1d7db 1px, #efeae2 1px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 0, 0, 0.12);
  z-index: 100000;
  flex-direction: column;
  overflow: hidden;
  animation: chatPopupFade 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes chatPopupFade {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (min-width: 600px) {
  .wa-chat-window {
    right: 24px;
    bottom: 95px;
    width: 380px;
    height: 520px;
    max-height: 75vh;
  }
}

/* Chat Header */
.wa-chat-header {
  background-color: var(--wa-teal);
  color: #ffffff;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 62px;
  min-height: 62px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.wa-header-back {
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.wa-profile-pic-container {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.wa-profile-pic-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wa-online-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  background: #25d366;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.wa-agent-meta {
  flex: 1;
  min-width: 0;
}

.wa-agent-name {
  font-weight: 700;
  font-size: 15.5px;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa-verified-icon {
  color: #60a5fa;
  font-size: 14px;
}

.wa-agent-status {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.wa-header-icons {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 17px;
  color: #ffffff;
}

.wa-header-icons span {
  cursor: pointer;
  opacity: 0.9;
}

.wa-header-icons span:hover {
  opacity: 1;
}

/* Chat Messages Stream */
.wa-messages-container {
  flex: 1;
  padding: 12px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

/* Security notice */
.wa-encryption-notice {
  background: rgba(254, 240, 138, 0.9);
  border: 1px solid #fef08a;
  color: #713f12;
  font-size: 11.5px;
  padding: 6px 12px;
  margin: 4px auto 8px;
  border-radius: var(--radius-sm);
  text-align: center;
  max-width: 92%;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Message Bubble */
.wa-msg {
  max-width: 84%;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 14px;
  line-height: 1.42;
  position: relative;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
  word-break: break-word;
  animation: msgPop 0.25s ease forwards;
}

@keyframes msgPop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.wa-msg.received {
  background-color: var(--wa-incoming-bubble);
  align-self: flex-start;
  border-top-left-radius: 0;
}

.wa-msg.sent {
  background-color: var(--wa-outgoing-bubble);
  align-self: flex-end;
  border-top-right-radius: 0;
}

/* Voice Message Player */
.wa-voice-bubble {
  min-width: 230px;
  max-width: 290px;
}

.wa-voice-layout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}

.wa-voice-play-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background: #00a884;
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform 0.1s ease, background 0.15s ease;
}

.wa-voice-play-btn:active {
  transform: scale(0.92);
}

.wa-voice-track {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.wa-waveform {
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 20px;
}

.wa-waveform-bar {
  width: 3px;
  background: #cbd5e1;
  border-radius: 2px;
  transition: background 0.2s ease, height 0.15s ease;
}

.wa-waveform-bar.active {
  background: #00a884;
}

.wa-voice-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #64748b;
}

/* In-Chat CTA Offer Card */
.wa-chat-offer-box {
  margin-top: 8px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.wa-offer-thumb {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}

.wa-offer-content {
  padding: 8px 10px;
}

.wa-offer-card-title {
  font-weight: 700;
  font-size: 13.5px;
  color: #0f172a;
}

.wa-offer-card-sub {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
  margin-bottom: 8px;
}

.wa-chat-cta-btn {
  display: block;
  width: 100%;
  text-align: center;
  background-color: #128c7e;
  color: #ffffff;
  padding: 9px 12px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  font-size: 13.5px;
  letter-spacing: 0.3px;
  transition: background-color 0.15s ease;
}

.wa-chat-cta-btn:hover {
  background-color: #0d7064;
}

/* Message Time & Blue Double Ticks */
.wa-msg-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 4px;
}

.wa-msg-time {
  font-size: 10.5px;
  color: #8696a0;
}

.wa-ticks {
  color: var(--wa-ticks-blue);
  font-size: 12px;
  display: flex;
  align-items: center;
}

/* Typing Indicator */
.wa-typing-bubble {
  display: none;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 14px;
  border-radius: 12px;
  align-self: flex-start;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.wa-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

.wa-dots span {
  width: 7px;
  height: 7px;
  background-color: #8696a0;
  border-radius: 50%;
  display: inline-block;
  animation: waDotBounce 1.4s infinite ease-in-out both;
}

.wa-dots span:nth-child(1) { animation-delay: -0.32s; }
.wa-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes waDotBounce {
  0%, 80%, 100% { transform: scale(0.3); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

/* Interactive Quick Reply Suggestion Chips */
.wa-quick-replies-tray {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 14px;
  background: transparent;
  scrollbar-width: none;
}

.wa-quick-replies-tray::-webkit-scrollbar {
  display: none;
}

.wa-reply-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: all 0.15s ease;
}

.wa-reply-chip:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.wa-reply-chip:active {
  transform: scale(0.96);
}

/* Chat Footer & Input Bar */
.wa-chat-footer {
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0f2f5;
  min-height: 60px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.wa-input-pill {
  flex: 1;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 25px;
  padding: 0 14px;
  height: 44px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.wa-input-pill input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  padding: 6px 8px;
  background: transparent;
  color: #111b21;
}

.wa-input-icon {
  color: #717d85;
  font-size: 19px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s ease;
}

.wa-input-icon:hover {
  color: #111b21;
}

.wa-action-circle-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background-color: #00a884;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 168, 132, 0.35);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.wa-action-circle-btn:active {
  transform: scale(0.92);
}

/* Audio Recording Simulator Mode */
.wa-recording-pill {
  display: none;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-radius: 25px;
  padding: 0 16px;
  height: 44px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.wa-rec-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

.wa-red-rec-dot {
  width: 10px;
  height: 10px;
  background: #ef4444;
  border-radius: 50%;
  animation: recBlink 1s infinite;
}

@keyframes recBlink {
  50% { opacity: 0; }
}

.wa-rec-trash {
  color: #64748b;
  cursor: pointer;
  font-size: 17px;
}

/* Emoji Picker Drawer */
.wa-emoji-drawer {
  display: none;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 10px 14px;
  gap: 12px;
  font-size: 22px;
  overflow-x: auto;
}

.wa-emoji-drawer span {
  cursor: pointer;
  transition: transform 0.1s ease;
  user-select: none;
}

.wa-emoji-drawer span:hover {
  transform: scale(1.25);
}
