:root {
  --primary: #0f8ca6;
  --primary-light: #45c6c3;
  --primary-dark: #0b3f63;
  --accent: #cda85b;
  --accent-light: #efd795;
  --success: #12a875;
  --text-dark: #102a3d;
  --text-gray: #5d7481;
  --bg-light: #eef8f7;
  --bg-soft: #dff2f0;
  --bg-white: #ffffff;
  --border: #c8e4e0;
  --shadow-sm: 0 1px 3px rgba(16, 42, 61, 0.08);
  --shadow-md: 0 8px 24px rgba(16, 42, 61, 0.1);
  --shadow-lg: 0 18px 46px rgba(16, 42, 61, 0.16);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #eaf8f6 0%, #f7fbfb 46%, #edf7f4 100%);
  color: var(--text-dark);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  direction: rtl;
  padding-bottom: 92px;
}

.container {
  width: min(100% - 28px, 480px);
  margin: 0 auto;
}

.top-bar {
  background: linear-gradient(135deg, #082f4f, #0d6b7f 56%, #159c8b);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 0;
  text-align: center;
  box-shadow: inset 0 -1px 0 rgba(239, 215, 149, 0.32);
}

.spots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(239, 215, 149, 0.32);
  padding: 4px 14px;
  backdrop-filter: blur(8px);
}

.spots strong {
  color: #fff2b8;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(7, 44, 74, 0.98), rgba(12, 127, 145, 0.94) 58%, rgba(30, 174, 144, 0.92)),
    linear-gradient(90deg, rgba(239, 215, 149, 0.14), transparent 42%);
  color: #fff;
  padding: 30px 0 112px;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent);
  opacity: 0.55;
}

.hero::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 24px;
  width: min(78%, 370px);
  height: 1px;
  transform: translateX(50%);
  background: linear-gradient(90deg, transparent, rgba(239, 215, 149, 0.85), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-top: 0;
  font-size: clamp(30px, 4vw, 36px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.16;
  text-shadow: 0 2px 12px rgba(5, 31, 51, 0.24);
}

.hero p {
  margin: 12px auto 0;
  max-width: 640px;
  font-size: 15px;
  font-weight: 600;
  opacity: 0.94;
}

.earnings-wrap {
  position: relative;
  z-index: 2;
  margin-top: -76px;
}

.earnings-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 253, 252, 0.94));
  box-shadow: var(--shadow-lg);
  padding: 24px 20px 20px;
  backdrop-filter: blur(12px);
}

.earnings-card::before {
  content: "";
  position: absolute;
  top: -44px;
  right: -22px;
  width: 122px;
  height: 122px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(239, 215, 149, 0.9), rgba(69, 198, 195, 0.45));
  opacity: 0.18;
}

.earnings-card::after {
  content: "";
  position: absolute;
  bottom: -42px;
  left: 22px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  opacity: 0.12;
}

.earnings-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(128px, 35%, 156px);
  align-items: center;
  gap: 14px;
}

.earnings-copy {
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
}

.earnings-image {
  justify-self: center;
  width: 100%;
  max-width: 156px;
  height: 88px;
  object-fit: contain;
  object-position: center;
}

.earnings-amount {
  background: linear-gradient(135deg, #0b3f63, #0f8ca6 58%, #16b889);
  background-clip: text;
  color: transparent;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.earnings-label {
  margin-top: 16px;
  color: var(--text-gray);
  font-size: 14px;
  font-weight: 700;
}

.task-pills {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 16px;
}

.task-pill {
  min-height: 62px;
  border: 1px solid rgba(200, 228, 224, 0.92);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff, #f1fbf9);
  color: var(--text-dark);
  display: grid;
  place-items: center;
  padding: 9px 6px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
}

.task-pill span {
  display: block;
  color: var(--accent);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.cta-btn {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #13a36f, #0d8f9d);
  box-shadow: 0 14px 30px rgba(13, 143, 157, 0.28);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding: 0 18px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.cta-btn:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.cta-btn:active {
  transform: translateY(0);
}

.cta-btn-floating {
  position: fixed;
  right: auto;
  bottom: 20px;
  left: 50%;
  width: min(calc(100% - 40px), 440px);
  margin-top: 0;
  transform: translateX(-50%);
  z-index: 1000;
}

.cta-btn-floating:hover {
  transform: translateX(-50%) translateY(-1px);
}

.cta-btn-floating:active {
  transform: translateX(-50%);
}

.whatsapp-mark {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  font-size: 10px;
  font-weight: 900;
}

.photo-card {
  position: relative;
  width: min(100% - 32px, 600px);
  margin: 10px auto 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 18px 44px rgba(16, 42, 61, 0.12);
}

.photo-card img {
  display: block;
  width: 100%;
  height: auto;
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 44, 74, 0.04), transparent 42%),
    linear-gradient(0deg, rgba(9, 87, 92, 0.22), transparent 36%);
}

.photo-card .info-card {
  position: absolute;
  z-index: 2;
  top: 40%;
  right: 16px;
  left: 16px;
}

.photo-badge {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 0;
  border-radius: 999px 999px 0 0;
  background: rgba(255, 255, 255, 0.94);
  color: #0b6f7a;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 17px;
  box-shadow: 0 -8px 20px rgba(16, 42, 61, 0.08);
}

.stats-section {
  padding: 26px 0 31px;
  background:
    linear-gradient(180deg, #eef8f7, #f8fcfb);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stat-card {
  min-height: 110px;
  border: 1px solid rgba(200, 228, 224, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f5fcfb 100%);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 8px;
}

.stat-card::before {
  content: "";
  width: 34px;
  height: 3px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light));
}

.stat-number {
  color: #0b6f7a;
  font-size: 27px;
  font-weight: 900;
  line-height: 1.1;
}

.stat-label {
  margin-top: 8px;
  color: var(--text-gray);
  font-size: 12px;
  font-weight: 700;
}

.info-card {
  border: 1px solid rgba(239, 215, 149, 0.4);
  border-radius: 8px;
  background: rgba(250, 255, 254, 0.82);
  box-shadow: 0 12px 28px rgba(16, 42, 61, 0.16);
  padding: 14px 16px;
  text-align: center;
  backdrop-filter: blur(8px);
}

.info-card p {
  color: #123246;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.cta-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, #082f4f, #0c7f91 60%, #1aa985),
    linear-gradient(90deg, rgba(239, 215, 149, 0.2), transparent);
  color: #fff;
  padding: 32px 0;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: -120px auto auto -80px;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: rgba(239, 215, 149, 0.08);
}

.cta-section::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(239, 215, 149, 0.22);
  transform: rotate(16deg);
}

.cta-box {
  position: relative;
  border: 1px solid rgba(239, 215, 149, 0.38);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.13);
  padding: 26px 20px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.cta-box h2 {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
}

.cta-box p {
  margin: 16px auto 0;
  max-width: 500px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  opacity: 0.95;
}

.timer {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.timer-box {
  width: 74px;
  min-height: 88px;
  border: 1px solid rgba(239, 215, 149, 0.22);
  border-radius: 8px;
  background: rgba(7, 44, 74, 0.42);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.timer-value {
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
}

.timer-label {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 800;
}

footer {
  background: #06283d;
  color: #fff;
  padding: 24px 0;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.52s ease, transform 0.52s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 380px) {
  .earnings-header {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 10px;
  }

  .earnings-image {
    height: 76px;
    max-width: 112px;
  }
}

@media (min-width: 521px) {
  .container {
    width: min(100% - 32px, 480px);
  }

  .hero {
    padding-bottom: 118px;
  }

  .earnings-wrap {
    margin-top: -88px;
  }

  .earnings-amount {
    font-size: 36px;
  }

  .task-pills {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .info-card {
    padding: 22px;
  }

  .cta-btn {
    font-size: 16px;
  }
}
