.helpbro-app {
  --helpbro-bg: #fffaf4;
  --helpbro-card: rgba(255,255,255,0.92);
  --helpbro-line: rgba(64, 35, 19, 0.09);
  --helpbro-ink: #24150e;
  --helpbro-muted-ink: #765a4b;
  --helpbro-accent-a: #ff7434;
  --helpbro-accent-b: #d94a10;
  --helpbro-gold: #ffd166;
  --helpbro-green-a: #25d366;
  --helpbro-green-b: #149b49;
}

.helpbro-app {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 12px 60px;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--helpbro-ink);
  position: relative;
}

.helpbro-app::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at top left, rgba(255, 221, 173, 0.32), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 165, 114, 0.18), transparent 24%),
    linear-gradient(180deg, #fff8ef 0%, #fffdf9 100%);
}

.helpbro-hero,
.helpbro-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(255,244,230,0.94));
  border: 1px solid var(--helpbro-line);
  border-radius: 30px;
  box-shadow:
    0 24px 70px rgba(69, 35, 11, 0.11),
    inset 0 1px 0 rgba(255,255,255,0.7);
  backdrop-filter: blur(14px);
}

.helpbro-hero {
  padding: 24px 18px;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at top right, rgba(255, 209, 102, 0.85), transparent 28%),
    radial-gradient(circle at left bottom, rgba(255, 107, 53, 0.2), transparent 30%),
    linear-gradient(135deg, #fffaf3, #ffe7d0 48%, #fff1e2 100%);
  display: grid;
  gap: 18px;
  overflow: hidden;
}

.helpbro-hero-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.helpbro-eyebrow {
  margin: 0 0 8px;
  color: #cb4f17;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
}

.helpbro-hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(36, 21, 14, 0.06);
  font-size: 13px;
  color: #7b3918;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(118, 63, 28, 0.08);
}

.helpbro-hero h1 {
  margin: 0;
  font-size: clamp(31px, 7vw, 62px);
  line-height: 0.96;
  max-width: 12ch;
  letter-spacing: -0.03em;
}

.helpbro-subcopy,
.helpbro-muted {
  color: #765a4b;
  line-height: 1.55;
}

.helpbro-subcopy {
  max-width: 30ch;
  margin: 10px 0 0;
  font-size: clamp(18px, 4.1vw, 28px);
  font-weight: 800;
  color: #8f4519;
}

.helpbro-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.helpbro-hero-points span {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(36,21,14,0.06);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(69, 35, 11, 0.06);
}

.helpbro-hero-copy {
  min-width: 0;
}

.helpbro-hero-banner {
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
}

.helpbro-hero-poster {
  width: min(100%, 330px);
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(180deg, #eadbff 0%, #d28cff 100%);
  border: 1px solid rgba(36, 21, 14, 0.08);
  box-shadow: 0 24px 50px rgba(124, 44, 181, 0.25);
  position: relative;
}

.helpbro-hero-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 12%, rgba(255, 209, 102, 0.85) 0, rgba(255, 209, 102, 0.85) 4px, transparent 5px),
    radial-gradient(circle at 85% 22%, rgba(255,255,255,0.75) 0, rgba(255,255,255,0.75) 7px, transparent 8px),
    radial-gradient(circle at 70% 8%, rgba(255, 209, 102, 0.85) 0, rgba(255, 209, 102, 0.85) 5px, transparent 6px),
    radial-gradient(circle at 16% 48%, rgba(255,255,255,0.65) 0, rgba(255,255,255,0.65) 8px, transparent 9px);
  pointer-events: none;
  z-index: 2;
}

.helpbro-hero-poster img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.helpbro-hero-money {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 92px;
  z-index: 3;
  text-align: center;
  color: #7b22d3;
  background: rgba(255,255,255,0.94);
  border-radius: 22px;
  padding: 16px 12px;
  font-size: clamp(22px, 5vw, 38px);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
}

.helpbro-hero-poster-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  text-align: center;
  background: linear-gradient(135deg, #7b22d3, #b144ff);
  color: #fff;
  padding: 16px 12px 14px;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.helpbro-hero-prize-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 330px);
}

.helpbro-prize-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(36, 21, 14, 0.06);
  border-radius: 24px;
  box-shadow: 0 18px 38px rgba(69, 35, 11, 0.1);
  padding: 12px 12px 8px;
  text-align: center;
}

.helpbro-prize-label {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff4ea;
  color: #8f4519;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.helpbro-prize-card img {
  display: block;
  width: 100%;
  height: 130px;
  object-fit: contain;
}

.helpbro-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.helpbro-card {
  padding: 20px 17px;
  overflow: hidden;
  position: relative;
}

.helpbro-card h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.02;
}

.helpbro-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 108px;
  height: 4px;
  background: linear-gradient(90deg, var(--helpbro-accent-a), var(--helpbro-gold));
  border-radius: 999px;
}

.helpbro-auth-card input,
.helpbro-card input,
.helpbro-card select {
  width: 100%;
  padding: 14px 15px;
  margin-top: 10px;
  border-radius: 18px;
  border: 1px solid rgba(36,21,14,0.11);
  background: rgba(255,255,255,0.96);
  font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.helpbro-auth-card input:focus,
.helpbro-card input:focus,
.helpbro-card select:focus {
  outline: none;
  border-color: rgba(217, 74, 16, 0.45);
  box-shadow: 0 0 0 4px rgba(255, 116, 52, 0.12);
}

.helpbro-card button,
.helpbro-share-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 12px;
  padding: 15px 18px;
  border-radius: 18px;
  border: 0;
  background: linear-gradient(135deg, var(--helpbro-accent-a), var(--helpbro-accent-b));
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 14px 26px rgba(217, 74, 16, 0.24),
    inset 0 1px 0 rgba(255,255,255,0.24);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.helpbro-card button:hover,
.helpbro-card button:active,
.helpbro-share-link:hover,
.helpbro-share-link:active {
  transform: translateY(-1px);
  box-shadow:
    0 18px 30px rgba(217, 74, 16, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.24);
  filter: saturate(1.02);
}

.helpbro-secondary {
  background: linear-gradient(180deg, #fffaf6, #fff0e2) !important;
  color: #24150e !important;
  border: 1px solid rgba(36,21,14,0.1) !important;
  box-shadow:
    0 12px 24px rgba(69, 35, 11, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.88) !important;
}

.helpbro-share-link-whatsapp {
  background: linear-gradient(135deg, var(--helpbro-green-a), var(--helpbro-green-b)) !important;
  box-shadow:
    0 16px 30px rgba(20, 155, 73, 0.24),
    inset 0 1px 0 rgba(255,255,255,0.24) !important;
}

.helpbro-list,
.helpbro-task-list {
  display: grid;
  gap: 10px;
}

.helpbro-hidden-panel {
  display: none;
}

.helpbro-hidden-panel.is-visible {
  display: block;
}

.helpbro-hidden-button {
  display: none !important;
}

.helpbro-hidden-button.is-visible {
  display: inline-flex !important;
}

.helpbro-timer {
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(36,21,14,0.06);
  color: #8f4519;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.helpbro-task-flow {
  display: grid;
  gap: 12px;
}

.helpbro-task-action-card {
  padding: 15px;
  border-radius: 22px;
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(36,21,14,0.06);
  box-shadow: 0 14px 28px rgba(69, 35, 11, 0.06);
}

.helpbro-task-action-card strong {
  display: block;
  margin-bottom: 10px;
}

.helpbro-task-action-card .helpbro-share-link {
  margin-top: 0;
}

.helpbro-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.helpbro-modal.is-visible {
  display: block;
}

.helpbro-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 11, 7, 0.45);
  backdrop-filter: blur(4px);
}

.helpbro-modal-card {
  position: relative;
  z-index: 1;
  width: min(calc(100vw - 28px), 420px);
  margin: 14vh auto 0;
  padding: 24px 20px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(255, 209, 102, 0.35), transparent 30%),
    linear-gradient(135deg, #fffaf3, #ffe0c8);
  box-shadow: 0 28px 70px rgba(69, 35, 11, 0.24);
  border: 1px solid rgba(36,21,14,0.06);
}

.helpbro-modal-card h3 {
  margin: 0 0 8px;
  font-size: 28px;
}

.helpbro-modal-card p {
  margin: 0;
  color: #6b4b3c;
  line-height: 1.5;
}

.helpbro-modal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.helpbro-task-complete.is-done {
  background: #27ae60 !important;
  color: #fff !important;
  border-color: #27ae60 !important;
}

.helpbro-list > div,
.helpbro-task-row {
  padding: 15px 14px;
  background: rgba(255,255,255,0.86);
  border-radius: 20px;
  border: 1px solid rgba(36,21,14,0.06);
  line-height: 1.45;
  box-shadow: 0 12px 24px rgba(69, 35, 11, 0.05);
}

.helpbro-list > div strong,
.helpbro-task-row strong {
  display: block;
  margin-bottom: 4px;
}

.helpbro-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.helpbro-stats div {
  background: rgba(255,255,255,0.84);
  padding: 14px 12px;
  border-radius: 20px;
  min-width: 0;
}

.helpbro-stats strong {
  display: block;
  font-size: 22px;
  line-height: 1;
}

.helpbro-stats span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
}

.helpbro-scratch-card {
  position: relative;
  min-height: 238px;
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.8), transparent 34%),
    linear-gradient(135deg, #fff1dc, #ffc9b5);
  border: 1px solid rgba(36,21,14,0.06);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    0 22px 54px rgba(113, 58, 23, 0.13);
}

.helpbro-scratch-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.28);
  filter: blur(18px);
  top: -40px;
  right: -50px;
}

.helpbro-prize-confetti {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  opacity: 0.35;
}

.helpbro-prize-confetti-a {
  left: 18px;
  top: 18px;
  background: #ff6b35;
  box-shadow: 18px 28px 0 #ffd166, 210px 24px 0 #ff9f1c, 250px 92px 0 #ff6b35;
}

.helpbro-prize-confetti-b {
  right: 34px;
  bottom: 34px;
  background: #ffd166;
  box-shadow: -22px -18px 0 #ff6b35, -180px -8px 0 #ffd166, -240px -84px 0 #ff9f1c;
}

.helpbro-reward-face {
  padding: 22px 16px;
  text-align: center;
  display: grid;
  gap: 10px;
  place-items: center;
  min-height: 238px;
  position: relative;
  z-index: 1;
}

.helpbro-prize-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-bottom: 4px;
}

.helpbro-prize-grid span {
  padding: 11px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(36,21,14,0.06);
  font-size: 13px;
  font-weight: 700;
  color: #8f4519;
}

.helpbro-prize-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 182, 140, 0.28);
  color: #c35d1a;
  font-weight: 700;
  text-transform: capitalize;
}

.helpbro-prize-tag,
.helpbro-pill {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,107,53,0.14);
  color: #cb4f17;
  font-size: 13px;
}

.helpbro-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(238,238,238,0.98), rgba(124,124,124,0.96)),
    linear-gradient(135deg, rgba(57,57,57,0.95), rgba(147,147,147,0.9));
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  transition: opacity 0.4s ease;
  z-index: 2;
  text-align: center;
}

.helpbro-mask span {
  display: block;
}

.helpbro-mask small {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.9;
}

.helpbro-mask-shine {
  position: absolute;
  inset: -30% auto auto -10%;
  width: 60%;
  height: 180%;
  transform: rotate(22deg);
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.38), rgba(255,255,255,0));
  animation: helpbroScratchShine 2.8s linear infinite;
}

.helpbro-mask.helpbro-hidden {
  opacity: 0;
  pointer-events: none;
}

.helpbro-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.helpbro-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

#helpbro-reward-amount {
  font-size: clamp(26px, 8vw, 44px);
  line-height: 1;
  letter-spacing: -0.04em;
}

#helpbro-user-state {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.helpbro-scratch-card.helpbro-winning {
  animation: helpbroCardPop 320ms ease;
}

.helpbro-scratch-card.helpbro-losing {
  animation: helpbroCardShake 360ms ease;
}

#helpbro-reward-message,
#helpbro-auth-message,
#helpbro-cooldown-message,
#helpbro-payout-message {
  word-break: break-word;
}

.helpbro-task-row button {
  margin-top: 12px;
}

@keyframes helpbroScratchShine {
  0% {
    transform: translateX(-20%) rotate(22deg);
  }
  100% {
    transform: translateX(220%) rotate(22deg);
  }
}

@keyframes helpbroCardPop {
  0% {
    transform: scale(0.98);
  }
  60% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes helpbroCardShake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  50% {
    transform: translateX(4px);
  }
  75% {
    transform: translateX(-3px);
  }
}

@media (max-width: 767px) {
  .helpbro-app {
    padding: 10px 10px 44px;
  }

  .helpbro-card {
    border-radius: 24px;
  }

  .helpbro-hero {
    border-radius: 26px;
    padding: 22px 15px;
  }

  .helpbro-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .helpbro-hero h1 {
    max-width: none;
  }

  .helpbro-hero-poster,
  .helpbro-hero-prize-stack {
    width: 100%;
  }

  .helpbro-prize-card img {
    height: 110px;
  }

  .helpbro-modal-card {
    margin-top: 18vh;
    width: min(calc(100vw - 20px), 420px);
    padding: 22px 16px;
  }

  .helpbro-modal-actions {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  .helpbro-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    align-items: center;
    padding: 32px 28px;
  }

  .helpbro-hero-banner {
    align-items: end;
  }

  .helpbro-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .helpbro-app {
    padding: 24px 18px 64px;
  }

  .helpbro-card {
    padding: 22px;
  }
}
