/* Shared offers/shop surface. Page CSS should only contain overrides. */
.offers-section,
.offers-section * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.offers-section {
  font-family: var(--earn-font);
}
html,
body {
  background: var(--earn-black) !important;
}
:root {
/* Page layout vars */
  --card-w: 280px;
  --card-radius: var(--earn-radius-card);
  --card-pad: 18px;
  --logo: 44px;
  --logo-radius: var(--earn-radius-icon);
  --gap: 24px;
  --badge-font: 12px;
  --badge-pad-y: 6px;
  --badge-pad-x: 12px;
  --title-size: 18px;
  --title-weight: 700;
  --meta-size: 14px;
  --points-size: 28px;
  --cash-size: 14px;
  --earn-btn-h: 32px;
}
.offers-section {
  color: var(--earn-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.section-heading {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0;
  letter-spacing: -0.02em;
}
.section-heading .highlight {
  color: var(--earn-green);
  display: block;
  animation: subtleGlow 3s ease-in-out infinite;
}
@keyframes subtleGlow {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(89, 204, 128, 0.195));
    text-shadow: 0 0 20px rgba(89, 204, 128, 0.195);
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(89, 204, 128, 0.29));
    text-shadow: 0 0 40px rgba(89, 204, 128, 0.29);
  }
}
/* -- SECTION 1 -- */
.offers-section {
  width: 100%;
  padding: 80px 40px;
  text-align: center;
}
.offers-header {
  margin-bottom: 32px;
}
.offers-header p {
  font-size: 15px;
  font-weight: 400;
  color: var(--earn-text);
  line-height: 1.6;
  margin-top: 20px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
/* -- Category Bar -- */
.category-bar {
  display: inline-flex;
  align-items: center;
  background: var(--earn-surface-2);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 40px;
  border: 1px solid var(--earn-border);
}
.category-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--earn-text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.category-btn:hover,
.category-btn:focus,
.category-btn:focus-visible,
.category-btn:active {
  background: transparent;
  color: var(--earn-text);
  outline: none;
  box-shadow: none;
}
.category-btn.active {
  background: var(--earn-green) !important;
  color: var(--earn-black) !important;
  box-shadow: var(--earn-shadow-glow);
}
.category-btn.active:hover,
.category-btn.active:focus,
.category-btn.active:focus-visible,
.category-btn.active:active {
  background: var(--earn-green) !important;
  color: var(--earn-black) !important;
  outline: none;
  box-shadow: var(--earn-shadow-glow);
}
.category-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: currentColor;
}
/* Mobile: icon-only category pills (matches gift-cards page UX).
           font-size:0 collapses the bare text-node label to zero width
           without needing to wrap it in a span. The SVG has explicit
           width/height attributes so it stays visible.

           !important is required because a later rule
           (@media max-width:920px) re-declares font-size:13px on
           .category-btn - without !important, source order would
           let that rule win and the labels would reappear. */
@media (max-width: 600px) {
  .category-bar {
    padding: 3px !important;
    gap: 2px !important;
    width: 100% !important;
    max-width: none !important;
    display: flex !important;
    justify-content: space-between !important;
    grid-template-columns: none !important;
  }
  .category-btn {
    font-size: 0 !important;
    gap: 0 !important;
    padding: 10px 14px !important;
    flex: 1 !important;
    justify-content: center !important;
  }
  .category-btn svg {
    width: 18px !important;
    height: 18px !important;
    font-size: 18px;
  }
}
/* -- Grid -- */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(4, var(--card-w));
  gap: var(--gap);
  width: fit-content;
  margin: 0 auto;
  justify-content: center;
  align-items: start;
  min-height: 420px;
  transition: opacity 0.2s ease;
}
.offers-grid.loading {
  opacity: 0.4;
  pointer-events: none;
}
.offer-card {
  width: var(--card-w);
  border-radius: var(--card-radius);
  padding: var(--card-pad);
  position: relative;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  background: var(--earn-surface);
  border: 1px solid var(--earn-border);
  display: flex;
  flex-direction: column;
  min-height: 200px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  animation: cardFadeIn 0.35s ease both;
  transform-style: preserve-3d;
  perspective: 800px;
}
@keyframes cardFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.offer-card:nth-child(1) {
  animation-delay: 0.00s;
}
.offer-card:nth-child(2) {
  animation-delay: 0.04s;
}
.offer-card:nth-child(3) {
  animation-delay: 0.08s;
}
.offer-card:nth-child(4) {
  animation-delay: 0.12s;
}
.offer-card:nth-child(5) {
  animation-delay: 0.16s;
}
.offer-card:nth-child(6) {
  animation-delay: 0.20s;
}
.offer-card:nth-child(7) {
  animation-delay: 0.24s;
}
.offer-card:nth-child(8) {
  animation-delay: 0.28s;
}
.offer-card:nth-child(9) {
  animation-delay: 0.32s;
}
.offer-card:nth-child(10) {
  animation-delay: 0.36s;
}
.offer-card:nth-child(11) {
  animation-delay: 0.40s;
}
.offer-card:nth-child(12) {
  animation-delay: 0.44s;
}
.offer-card:nth-child(13) {
  animation-delay: 0.48s;
}
.offer-card:nth-child(14) {
  animation-delay: 0.52s;
}
.offer-card:nth-child(15) {
  animation-delay: 0.56s;
}
.offer-card:nth-child(16) {
  animation-delay: 0.60s;
}
.offer-card:nth-child(17) {
  animation-delay: 0.64s;
}
.offer-card:nth-child(18) {
  animation-delay: 0.68s;
}
.offer-card:nth-child(19) {
  animation-delay: 0.72s;
}
.offer-card:nth-child(20) {
  animation-delay: 0.76s;
}
.offer-card:hover {
  border-color: rgba(89, 204, 128, 0.15);
  box-shadow: var(--earn-shadow-card-hover);
}
.offer-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.offer-logo {
  width: var(--logo);
  height: var(--logo);
  border-radius: var(--logo-radius);
  flex-shrink: 0;
  overflow: hidden;
  background: transparent;
}
.offer-logo.no-image {
  background: #d9d9d9;
}
.offer-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Badge */
.offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: var(--badge-pad-y) var(--badge-pad-x);
  font-size: var(--badge-font);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1;
}
.offer-badge svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}
/* Info */
.offer-info {
  margin-top: 12px;
}
.offer-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--earn-text);
  margin-bottom: 6px;
  text-align: left;
  letter-spacing: -0.01em;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.offer-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
}
.offer-time svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}
/* Bottom row */
.offer-bottom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 14px;
}
.offer-points {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.offer-points-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--earn-green);
  line-height: 1.0;
  text-align: left;
  letter-spacing: -0.02em;
}
.offer-points-cash {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 4px;
  text-align: left;
}
/* Earn button */
.offer-earn {
  height: 32px;
  padding: 0 20px;
  background: var(--earn-green);
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #000;
  font-family: var(--earn-font);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.offer-card:hover .offer-earn {
  background: var(--earn-green-hover);
  box-shadow: var(--earn-shadow-btn-hover);
}
/* -- Skeletons -- */
.skeleton-card {
  width: var(--card-w);
  border-radius: var(--card-radius);
  padding: var(--card-pad);
  background: linear-gradient(180deg, #151515 0%, #0d0d0d 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  min-height: 200px;
  display: flex;
  flex-direction: column;
}
.skeleton-pulse {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--earn-radius-small);
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.skeleton-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.skeleton-logo {
  width: var(--logo);
  height: var(--logo);
  border-radius: var(--logo-radius);
}
.skeleton-badge {
  width: 60px;
  height: 24px;
  border-radius: 999px;
}
.skeleton-title {
  width: 70%;
  height: 20px;
  margin-top: 16px;
}
.skeleton-time {
  width: 50%;
  height: 14px;
  margin-top: 8px;
}
.skeleton-bottom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
}
.skeleton-points-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.skeleton-points {
  width: 60px;
  height: 28px;
}
.skeleton-cash {
  width: 45px;
  height: 14px;
}
.skeleton-arrow {
  width: 64px;
  height: 32px;
  border-radius: 100px;
}
/* Empty & Error */
.offers-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 15px;
}
.offers-empty svg {
  width: 48px;
  height: 48px;
  stroke: rgba(255, 255, 255, 0.15);
  margin-bottom: 16px;
}
.offers-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
}
.offers-error p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  margin-bottom: 16px;
}
.offers-error button {
  background: rgba(89, 204, 128, 0.15);
  border: 1px solid rgba(89, 204, 128, 0.3);
  color: var(--earn-green);
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.offers-error button:hover {
  background: rgba(89, 204, 128, 0.25);
}
/* Responsive */
@media (max-width: 1250px) {
  .offers-grid {
    grid-template-columns: repeat(3, var(--card-w));
  }
}
@media (max-width: 920px) {
  .offers-grid {
    grid-template-columns: repeat(2, var(--card-w));
  }
  .section-heading {
    font-size: 48px;
  }
  .category-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 360px;
    border-radius: var(--earn-radius-card);
    gap: 4px;
  }
  .category-btn {
    padding: 10px 16px;
    font-size: 13px;
    justify-content: center;
  }
}
@media (max-width: 620px) {
  .offers-section {
    padding: 60px 20px;
  }
  .section-heading {
    font-size: 36px;
  }
  /* Mobile: offer cards fill full width (no 320px cap) so they
               match the category bar above them. */
  .offers-grid {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
  }
  .offer-card, .skeleton-card {
    width: 100%;
  }
}
/* -- SECTION 2: START EARNING -- */
.hero-section {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  padding: 80px 20px;
}
.hero-header {
  margin-bottom: 56px;
}
.hero-header p {
  font-size: 32px;
  font-weight: 600;
  color: var(--earn-text);
  line-height: 1.3;
  margin-top: 16px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 56px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.step-card {
  background: transparent;
  text-align: center;
  text-decoration: none !important;
  color: inherit !important;
  display: block;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.step-card:hover {
  transform: translateY(-2px);
}
.step-card:visited,
.step-card:focus,
.step-card:active {
  color: inherit !important;
  text-decoration: none !important;
}
.step-icon-wrapper {
  width: 90px;
  height: 90px;
  background: var(--earn-surface-2);
  border-radius: var(--earn-radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: iconSubtleGlow 3s ease-in-out infinite;
  width: 55px;
  height: 55px;
}
@keyframes iconSubtleGlow {
  0%, 100% {
    filter: drop-shadow(0 0 6px rgba(89, 204, 128, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(89, 204, 128, 0.6));
  }
}
.step-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.step-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--earn-green);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--earn-text);
  margin-bottom: 10px;
  line-height: 1.3;
}
.step-description {
  font-size: 13px;
  font-weight: 400;
  color: var(--earn-text-muted);
  line-height: 1.5;
  max-width: 220px;
  margin: 0 auto;
}
.cta-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
@media (max-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Keep steps in 2x2 on mobile (matches homepage). Tighter gap so
           4 cards fit comfortably side-by-side on phones. */
@media (max-width: 768px) {
  .hero-header p {
    font-size: 24px;
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .cta-section {
    flex-direction: column;
    gap: 12px;
  }
  .earn-input, .earn-btn {
    width: 100%;
    max-width: 400px;
  }
}
@media (max-width: 480px) {
  .hero-header p {
    font-size: 20px;
  }
}
