/* =====================
   Roblox Garden Rewards - Main Styles
   ===================== */

/* Reset & Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Quicksand', Arial, sans-serif;
  background: linear-gradient(135deg, #eaf6ff 0%, #e0fddf 100%);
  color: #222;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 5.5rem;
}
:root {
  --roblox-red: #ff4754;
  --roblox-blue: #00b9f1;
  --roblox-green: #43d17a;
  --roblox-yellow: #ffe156;
  --roblox-gray: #f4f4f4;
  --roblox-dark: #23272a;
  --cta-gradient: linear-gradient(90deg, #ff4754 0%, #43d17a 100%);
  --card-shadow: 0 4px 16px rgba(0,0,0,0.10);
  --card-radius: 18px;
  --section-radius: 22px;
}

/* ========== Hero Section ========== */
.hero {
  width: 100%;
  max-width: 500px;
  background: linear-gradient(135deg, #eaf6ff 60%, #b2f2d6 100%);
  border-radius: var(--section-radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  padding: 2.5rem 1.5rem 2rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  left: -60px;
  top: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, #43d17a33 60%, transparent 100%);
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--roblox-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  border: 4px solid #fff;
}
.hero-avatar img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 50%;
}
.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.3rem;
  color: var(--roblox-red);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px #ffe15633;
}
.hero p {
  font-size: 1.15rem;
  color: #444;
  margin-bottom: 1.2rem;
}

/* ========== Form Section ========== */
.form-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-bottom: 1.2rem;
}
.form-section label {
  font-weight: bold;
  font-size: 1rem;
  color: var(--roblox-dark);
}
.form-section input[type="text"] {
  padding: 13px 18px;
  font-size: 1.1rem;
  border: 2px solid var(--roblox-blue);
  border-radius: 10px;
  background: #fff;
  color: #222;
  transition: border-color 0.2s;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 2px 8px #00b9f11a;
}
.form-section input[type="text"]:focus {
  border-color: var(--roblox-red);
  outline: none;
}
.subtitle {
  margin-top: 6px;
  text-align: center;
  font-size: 1.08rem;
  color: var(--roblox-blue);
  font-weight: 600;
}

/* ========== Product Sections ========== */
.sections {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 1.5rem auto;
  background: #fff;
  border-radius: var(--section-radius);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 1.5rem 1rem 1.2rem 1rem;
}
details.product-section {
  background: var(--roblox-gray);
  border-radius: var(--card-radius);
  margin-bottom: 1.2rem;
  box-shadow: var(--card-shadow);
  border: none;
  overflow: hidden;
  transition: box-shadow 0.2s, background 0.2s;
}
details.product-section[open] {
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
  background: #fff;
}
details.product-section summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.2rem;
  font-weight: bold;
  font-size: 1.08rem;
  color: var(--roblox-dark);
  user-select: none;
  display: flex;
  align-items: center;
  position: relative;
  background: none;
}
details.product-section summary::after {
  content: '▸';
  position: absolute;
  right: 20px;
  transition: transform 0.2s;
  color: var(--roblox-blue);
  font-size: 1.2rem;
}
details.product-section[open] summary::after {
  transform: rotate(90deg);
}
.section-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  margin-right: 10px;
  filter: brightness(1.1) saturate(1.2);
}

/* ========== Product Grid ========== */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 10px 10px 15px 10px;
}
@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 6px 4px 10px 4px;
  }
  .product-card {
    min-height: 110px;
    padding: 4px 0;
  }
  .image-container {
    aspect-ratio: 1 / 1;
    min-height: 60px;
    max-height: 70px;
  }
  .image-container img {
    width: 70%;
    height: 70%;
  }
  .product-info {
    padding: 5px 2px 4px 2px;
  }
  .product-info h3 {
    font-size: 0.92rem;
  }
}
@media (max-width: 400px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ========== Product Card ========== */
.product-card {
  background: #fff;
  border: 2.5px solid transparent;
  border-radius: var(--card-radius);
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s, background 0.18s;
  cursor: pointer;
  box-shadow: var(--card-shadow);
  min-height: 170px;
  position: relative;
  pointer-events: auto;
  border: 2px dashed #f00 !important; /* DEBUG: Remove after testing */
}
.product-card:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 24px #00b9f133;
  border-color: var(--roblox-blue);
}
.image-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-container img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 2px 6px #23272a11);
}
.product-info {
  padding: 10px 6px 8px 6px;
  background: #fff;
}
.product-info h3 {
  font-size: 1.05rem;
  margin: 0;
  color: var(--roblox-dark);
  font-weight: 700;
  letter-spacing: 0.5px;
}
.product-card.selected {
  border-color: var(--roblox-green);
  background: #d0f8e5;
  box-shadow: 0 8px 24px #43d17a33;
  transform: scale(1.04);
  z-index: 1;
}
.product-card.selected:hover {
  border-color: var(--roblox-blue);
  background: #b2f2d6;
  box-shadow: 0 12px 32px #00b9f144;
  transform: scale(1.06);
}
.product-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.3);
}
.product-card.flash {
  animation: flash-red 0.35s ease-in-out 2;
}
@keyframes flash-red {
  0% { border-color: transparent; }
  50% { border-color: var(--roblox-red); }
  100% { border-color: transparent; }
}
.product-card:focus {
  outline: 2px solid var(--roblox-blue);
  outline-offset: 2px;
}

/* ========== Alert Popup ========== */
.alert {
  position: fixed;
  right: 20px;
  bottom: 6.5rem;
  background: var(--roblox-red);
  color: #fff;
  padding: 12px 18px;
  border-radius: 7px;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1000;
  font-weight: 600;
  box-shadow: 0 2px 8px #ff475433;
}
.alert.show { opacity: 1; }

/* ========== Sticky Footer CTA ========== */
.sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0.5rem;
  right: 0.5rem;
  background: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 32px #43d17a22;
  padding: 1.1rem 1.2rem 1.1rem 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  animation: sticky-bounce 1.2s cubic-bezier(.68,-0.55,.27,1.55) 1;
}
@keyframes sticky-bounce {
  0% { transform: translateY(100%); }
  60% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}
.sticky-footer .get-now-btn {
  width: 100%;
  max-width: 400px;
  background: var(--cta-gradient);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1.35rem;
  text-transform: uppercase;
  padding: 18px 0;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px #43d17a33;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
}
.sticky-footer .get-now-btn:disabled {
  background: #ddd;
  color: #aaa;
  cursor: not-allowed;
  box-shadow: none;
}
.sticky-footer .get-now-btn:not(:disabled):hover {
  background: linear-gradient(90deg, #43d17a 0%, #ff4754 100%);
  transform: translateY(-2px) scale(1.02);
}
.sticky-footer .get-now-btn:focus {
  outline: 2px solid var(--roblox-green);
  outline-offset: 2px;
}
@media (max-width: 500px) {
  .hero, .sections { max-width: 98vw; }
  .sticky-footer { left: 0.1rem; right: 0.1rem; padding: 0.7rem; }
  .sticky-footer .get-now-btn { font-size: 1.1rem; padding: 14px 0; }
}

/* ========== Trust Signals ========== */
.trust-signals {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 2.5rem auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 1.2rem;
  padding: 1.1rem 0.5rem 0.5rem 0.5rem;
}
.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.98rem;
  color: var(--roblox-dark);
  font-weight: 600;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px #23272a11;
  padding: 0.7rem 1.1rem;
}
.trust-badge .emoji {
  font-size: 1.5rem;
  margin-bottom: 0.1rem;
}

/* ========== Reviews Section ========== */
.reviews-section {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 2.5rem auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
}
.reviews-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  color: var(--roblox-red);
  margin-bottom: 1.1rem;
  text-align: center;
  font-weight: 700;
}
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.review {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--roblox-gray);
  border-radius: 12px;
  padding: 1rem 1rem 0.8rem 1rem;
  box-shadow: 0 2px 8px #23272a11;
}
.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #eaf6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.review-avatar img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
}
.review-content {
  flex: 1;
}
.review-username {
  font-weight: 700;
  color: var(--roblox-blue);
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}
.review-text {
  color: #333;
  font-size: 1rem;
  line-height: 1.4;
}

/* Hero badge */
.free-badge {
  display: inline-block;
  background: linear-gradient(90deg, #43d17a 0%, #00b9f1 100%);
  color: #fff;
  font-weight: 700;
  border-radius: 16px;
  padding: 0.4em 1em;
  margin: 0.7em 0 0.5em 0;
  font-size: 1.05rem;
  box-shadow: 0 2px 8px #00b9f122;
  letter-spacing: 0.5px;
}

/* How it works */
.how-it-works {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 1.5rem auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px #43d17a11;
  padding: 1.2rem 1.2rem 1rem 1.2rem;
  text-align: center;
}
.how-it-works h2 {
  color: var(--roblox-green);
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
  font-family: 'Montserrat', sans-serif;
}
.steps {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.step {
  flex: 1 1 0;
  min-width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3em;
  font-size: 1rem;
  color: #333;
}
.step-icon {
  font-size: 1.7rem;
  margin-bottom: 0.2em;
}

/* Selection counter */
.selection-counter {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--roblox-blue);
  margin: 0.5em 0 0.7em 0;
  text-align: right;
}

/* Why Choose Us */
.why-choose-us {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 2rem auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px #43d17a11;
  padding: 1.2rem 1.2rem 1rem 1.2rem;
  text-align: center;
}
.why-choose-us h2 {
  color: var(--roblox-green);
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
  font-family: 'Montserrat', sans-serif;
}
.benefits {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.benefit {
  flex: 1 1 0;
  min-width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3em;
  font-size: 1rem;
  color: #333;
}
.benefit-icon {
  font-size: 1.7rem;
  margin-bottom: 0.2em;
}

/* FAQ */
.faq-section {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 2rem auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px #43d17a11;
  padding: 1.2rem 1.2rem 1rem 1.2rem;
  text-align: left;
}
.faq-section h2 {
  color: var(--roblox-green);
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
}
.faq-item {
  font-size: 1rem;
  color: #333;
  background: #f4f4f4;
  border-radius: 10px;
  padding: 0.7em 1em;
}

/* Scroll to top button */
.scroll-top-btn {
  position: fixed;
  bottom: 5.5rem;
  right: 1.2rem;
  background: var(--roblox-blue);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  box-shadow: 0 2px 8px #00b9f144;
  cursor: pointer;
  z-index: 1001;
  opacity: 0.85;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
}
.scroll-top-btn:focus {
  outline: 2px solid var(--roblox-green);
  outline-offset: 2px;
}
.scroll-top-btn.show {
  display: flex;
  animation: bounce-in 0.4s;
}
@keyframes bounce-in {
  0% { transform: scale(0.7); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}

/* Get Now button animation */
.get-now-btn {
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
}
.get-now-btn:focus {
  outline: 2px solid var(--roblox-green);
  outline-offset: 2px;
}

/* Review stars */
.review-stars {
  color: #ffe156;
  font-size: 1.1rem;
  margin-bottom: 0.2em;
}

/* Responsive tweaks for new sections */
@media (max-width: 600px) {
  .how-it-works, .why-choose-us, .faq-section {
    padding: 0.7rem 0.3rem 0.7rem 0.3rem;
  }
  .steps, .benefits {
    flex-direction: column;
    gap: 0.8em;
  }
}

.get-now-top-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.2rem 0 1.5rem 0;
}
.get-now-top-wrapper .get-now-btn {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  font-size: 1.2rem;
  padding: 16px 0;
}
@media (max-width: 600px) {
  .get-now-top-wrapper {
    margin: 0.7rem 0 1.1rem 0;
  }
  .get-now-top-wrapper .get-now-btn {
    font-size: 1rem;
    padding: 13px 0;
  }
}

.xyz-support-banner {
  width: 100%;
  background: linear-gradient(90deg, #ffe156 0%, #43d17a 100%);
  color: #23272a;
  font-weight: 700;
  text-align: center;
  padding: 0.7em 0.5em;
  font-size: 1.08rem;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px #ffe15633;
  z-index: 1002;
}

.offer-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34, 39, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.3s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.offer-modal-content {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px #23272a33;
  padding: 1.25rem;
  max-width: 320px;
  text-align: center;
  position: relative;
  animation: popIn 0.3s;
}
@keyframes popIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.offer-modal-content h2 {
  color: var(--roblox-green);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  font-family: 'Montserrat', sans-serif;
}
.offer-modal-content p {
  color: #333;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.offer-modal-actions {
  display: flex;
  gap: 1em;
  justify-content: center;
}
.offer-modal-actions .get-now-btn {
  width: 120px;
  max-width: 100%;
  margin: 0 0.2em;
  font-size: 1.08rem;
  padding: 13px 0;
  border-radius: 8px;
  background: var(--cta-gradient);
  color: #fff;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px #43d17a33;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  cursor: pointer;
}
.offer-modal-actions .get-now-btn:focus {
  outline: 2px solid var(--roblox-green);
  outline-offset: 2px;
}
.offer-modal-actions .get-now-btn:not(:disabled):hover {
  background: linear-gradient(90deg, #43d17a 0%, #ff4754 100%);
  transform: translateY(-2px) scale(1.02);
}
.offer-modal-actions .get-now-btn.cancel {
  background: #eee;
  color: #23272a;
  border: 1.5px solid #bbb;
  font-weight: 600;
  box-shadow: none;
}
.offer-modal-actions .get-now-btn.cancel:hover {
  background: #ddd;
  color: #23272a;
  border-color: #888;
}
@media (max-width: 500px) {
  .offer-modal-content {
    max-width: 300px;
    padding: 1rem;
  }
  .sponsor-logos {
    gap: 6px;
  }
  
  .sponsor-logo {
    width: 24px;
    height: 24px;
  }
}

/* ========== Sponsor Logos ========== */
.sponsors-section {
  margin-top: 0.75rem;
  text-align: center;
  padding-top: 0.5rem;
  border-top: 1px solid #e0e0e0;
  max-width: 100%;
}

.sponsors-section sub {
  display: block;
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 0.4rem;
  font-weight: normal;
}

.sponsor-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 4px;
}

.sponsor-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
  background: transparent;
  padding: 0;
  box-shadow: none;
  transition: transform 0.2s;
}

.sponsor-logo:hover {
  transform: scale(1.05);
} 