@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;700;800&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --bg-deep: #0b1230;
  --bg-card: #162048;
  --bg-card2: #1a2755;
  --accent-green: #2ecc40;
  --accent-green-dark: #22a832;
  --accent-gold: #f5c518;
  --accent-teal: #00d4aa;
  --text-white: #ffffff;
  --text-muted: #a0b3d6;
  --star-yellow: #ffc107;
  --confetti-1: #f5a623;
  --confetti-2: #e91e8c;
  --confetti-3: #00bcd4;
  --confetti-4: #8bc34a;
}

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

body {
  background: var(--bg-deep);
  font-family: 'Nunito', sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(0,180,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(0,80,200,0.12) 0%, transparent 60%);
}

/* ── Phone Frame ── */
.phone-frame {
  width: 100%;
  max-width: 420px;
  min-height: 100vh;
  background: linear-gradient(175deg, #0f1e45 0%, #0b1230 40%, #091028 100%);
  position: relative;
  overflow: hidden;
  padding-bottom: 100px;
}

/* ── Star Field ── */
.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle 3s infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50%       { opacity: 0.8; transform: scale(1.3); }
}

/* ── Step Progress ── */
.step-bar {
  position: relative;
  z-index: 2;
  padding: 18px 24px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.step-labels {
  display: flex;
  align-items: center;
  gap: 14px;
}

.step-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-white);
}

.step-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.step-done   { background: var(--accent-green); }
.step-locked { background: linear-gradient(135deg, #f5a623, #e8850a); }

.step-arrow {
  font-size: 18px;
  color: var(--text-white);
}

.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-teal));
  border-radius: 3px;
  animation: fillProgress 1.2s ease-out forwards;
}

@keyframes fillProgress {
  from { width: 0%; }
  to   { width: 55%; }
}

/* ── Header ── */
.header {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 14px 20px 18px;
}

.header h1 {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: var(--text-white);
  line-height: 1.25;
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(0,180,255,0.3);
}

.header h1 .phone-emoji {
  display: inline-block;
  animation: bounce 1.4s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

.header .subtitle {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,170,0.3), transparent);
  margin: 0 20px 20px;
  position: relative;
  z-index: 2;
}

/* ── Task Cards ── */
.tasks {
  position: relative;
  z-index: 2;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.task-card {
  background: var(--bg-card);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: cardSlideIn 0.5s ease-out both;
}

.task-card:nth-child(1) { animation-delay: 0.1s; }
.task-card:nth-child(2) { animation-delay: 0.2s; }
.task-card:nth-child(3) { animation-delay: 0.3s; }

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

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

.task-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(0,212,170,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Confetti Dots ── */
.confetti-dots {
  position: absolute;
  top: 8px;
  right: 140px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  width: 60px;
  pointer-events: none;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  animation: floatDot 2.5s ease-in-out infinite;
}

.dot:nth-child(1) { background: var(--confetti-1); animation-delay: 0.0s; }
.dot:nth-child(2) { background: var(--confetti-2); width: 5px; height: 5px; animation-delay: 0.3s; }
.dot:nth-child(3) { background: var(--confetti-3); width: 8px; height: 4px; animation-delay: 0.6s; }
.dot:nth-child(4) { background: var(--confetti-4); animation-delay: 0.9s; }
.dot:nth-child(5) { background: #e91e8c; width: 5px; height: 5px; animation-delay: 1.2s; }
.dot:nth-child(6) { background: var(--confetti-1); width: 6px; height: 6px; animation-delay: 0.5s; }

@keyframes floatDot {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-4px) rotate(20deg); }
}

/* ── App Icon ── */
.app-icon-wrap {
  position: relative;
  flex-shrink: 0;
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.icon-1 { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.icon-2 { background: linear-gradient(135deg, #f97316, #c2410c); }
.icon-3 { background: linear-gradient(135deg, #0ea5e9, #0369a1); }

.heart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: #e91e8c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  border: 2px solid var(--bg-card);
}

/* ── Task Info ── */
.task-info { flex: 1; }

.task-name {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-white);
  margin-bottom: 4px;
}

.stars-row {
  display: flex;
  align-items: center;
  gap: 3px;
}

.star-icon       { color: var(--star-yellow); font-size: 13px; }
.star-icon.half  { opacity: 0.5; }

.rating-num {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
  margin-left: 4px;
}

/* ── Task Action ── */
.task-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.earn-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.earn-amount {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: var(--text-white);
  line-height: 1;
}

.earn-amount .rupee {
  font-size: 20px;
  vertical-align: super;
  font-weight: 700;
}

/* ── Download Button ── */
.download-btn {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-green-dark));
  color: white;
  border: none;
  border-radius: 10px;
  padding: 9px 18px;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(46,204,64,0.35), 0 2px 4px rgba(0,0,0,0.2);
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
  overflow: hidden;
}

.download-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  border-radius: inherit;
}

.download-btn:active {
  transform: scale(0.96);
  box-shadow: 0 2px 8px rgba(46,204,64,0.25);
}

/* ── Instructions ── */
.instructions {
  position: relative;
  z-index: 2;
  margin: 20px 16px 0;
  background: rgba(255,255,255,0.97);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.instr-title {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: #1a1a2e;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.instr-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.instr-list li {
  font-size: 14px;
  font-weight: 700;
  color: #2d3748;
  display: flex;
  align-items: center;
  gap: 10px;
}

.instr-list li::before {
  content: '•';
  color: var(--accent-green-dark);
  font-size: 18px;
  line-height: 1;
}

/* ── CTA Button ── */
.cta-wrap {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 420px;
  padding: 14px 16px 20px;
  background: linear-gradient(to top, rgba(9,16,40,1) 60%, transparent);
  z-index: 10;
}

.cta-btn {
  width: 100%;
  background: linear-gradient(135deg, #2ecc40, #1ca82e);
  color: white;
  border: none;
  border-radius: 16px;
  padding: 17px 24px;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 19px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(46,204,64,0.4), 0 2px 8px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
  letter-spacing: 0.3px;
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
  0%   { left: -100%; }
  100% { left: 200%; }
}

.cta-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  border-radius: inherit;
  pointer-events: none;
}

.cta-btn:active {
  transform: scale(0.97);
  box-shadow: 0 3px 12px rgba(46,204,64,0.3);
}

/* ── Ripple ── */
@keyframes ripple {
  to { transform: scale(2); opacity: 0; }
}


/* ════════════════════════════════════════
   CLAIM PAGE  (claim.html)
   ════════════════════════════════════════ */

/* ── Limited Offer Badge ── */
.limited-offer-badge {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 22px 20px 0;
}

.limited-offer-badge span {
  background: linear-gradient(135deg, #f5c518, #e0a800);
  color: #1a1000;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1.5px;
  padding: 7px 22px;
  border-radius: 50px;
  box-shadow: 0 4px 18px rgba(245,197,24,0.45), 0 2px 6px rgba(0,0,0,0.25);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(245,197,24,0.45), 0 2px 6px rgba(0,0,0,0.25); }
  50%       { box-shadow: 0 6px 28px rgba(245,197,24,0.70), 0 2px 8px rgba(0,0,0,0.3); }
}

/* ── Claim Header ── */
.claim-header {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 18px 20px 10px;
}

.claim-header h1 {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: var(--text-white);
  line-height: 1.25;
  text-shadow: 0 2px 14px rgba(0,180,255,0.3);
}

.claim-header h1 .highlight-amount {
  color: var(--accent-gold);
  font-size: 40px;
  display: inline-block;
  animation: amountPop 1s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes amountPop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.claim-header h1 .money-emoji {
  display: inline-block;
  animation: bounce 1.4s ease-in-out infinite;
}

/* ── Working Badge ── */
.working-badge {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 8px 20px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.working-badge .flash {
  color: #f5c518;
  font-size: 16px;
}

.working-badge .dot-sep {
  color: rgba(255,255,255,0.3);
  margin: 0 2px;
}

/* ── UPI Card ── */
.upi-card {
  position: relative;
  z-index: 2;
  margin: 0 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 20px 18px 18px;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.08);
  animation: cardSlideIn 0.5s ease-out both;
}

.upi-label {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-white);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.upi-label .upi-chip {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 800;
  color: #a0b3d6;
  letter-spacing: 0.5px;
}

.upi-label .label-muted {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.upi-input-wrap {
  position: relative;
  margin-bottom: 14px;
}

.upi-input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 13px 16px;
  color: var(--text-muted);
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.upi-input::placeholder {
  color: rgba(160,179,214,0.5);
}

.upi-input:focus {
  border-color: var(--accent-teal);
  background: rgba(0,212,170,0.06);
  box-shadow: 0 0 0 3px rgba(0,212,170,0.12);
  color: var(--text-white);
}

/* claim page CTA inside card */
.claim-btn {
  width: 100%;
  background: linear-gradient(135deg, #2ecc40, #1ca82e);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 15px 24px;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(46,204,64,0.4), 0 2px 8px rgba(0,0,0,0.25);
  position: relative;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
  letter-spacing: 0.3px;
}

.claim-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  animation: shimmer 2.2s infinite;
}

.claim-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  border-radius: inherit;
  pointer-events: none;
}

.claim-btn:active {
  transform: scale(0.97);
  box-shadow: 0 3px 10px rgba(46,204,64,0.28);
}

/* ── Social Proof ── */
.social-proof {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 16px 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  animation: fadeIn 0.6s ease-out 0.4s both;
}

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

.social-proof .live-dot {
  width: 10px;
  height: 10px;
  background: #ff3b30;
  border-radius: 50%;
  flex-shrink: 0;
  animation: livePulse 1.2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,59,48,0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(255,59,48,0); }
}

.social-proof strong {
  color: var(--text-white);
}

/* ── Timer Pill ── */
.timer-pill {
  position: relative;
  z-index: 2;
  margin: 0 16px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  animation: fadeIn 0.6s ease-out 0.5s both;
}

.timer-pill .hourglass {
  font-size: 22px;
  animation: hourglassSpin 3s ease-in-out infinite;
}

@keyframes hourglassSpin {
  0%, 45%  { transform: rotate(0deg); }
  50%, 95% { transform: rotate(180deg); }
  100%     { transform: rotate(180deg); }
}

.timer-pill .timer-text {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-muted);
}

.timer-pill .timer-countdown {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #ff3b30;
  letter-spacing: 1px;
  margin-left: auto;
  text-shadow: 0 0 12px rgba(255,59,48,0.4);
  animation: timerGlow 1s ease-in-out infinite;
}

@keyframes timerGlow {
  0%, 100% { text-shadow: 0 0 10px rgba(255,59,48,0.35); }
  50%       { text-shadow: 0 0 20px rgba(255,59,48,0.65); }
}

/* ── Confetti Floor ── */
.confetti-floor {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 220px;
  margin-top: 20px;
  overflow: hidden;
  pointer-events: none;
}

.confetti-piece {
  position: absolute;
  bottom: -20px;
  width: 10px;
  height: 14px;
  border-radius: 2px;
  opacity: 0;
  animation: riseConfetti linear infinite;
}

@keyframes riseConfetti {
  0%   { bottom: -20px; opacity: 0;   transform: rotate(0deg)   translateX(0); }
  10%  { opacity: 1; }
  80%  { opacity: 0.8; }
  100% { bottom: 110%;  opacity: 0;   transform: rotate(720deg) translateX(30px); }
}
