/* =====================================================================
   GiveRefer homepage redesign — hand-ported from the v0 Tailwind design.
   All classes are gr-prefixed and the page is wrapped in .gr-home so these
   styles never leak into the rest of the Bootstrap-based site.
   ===================================================================== */

.gr-home {
  /* brand tokens */
  --gr-pink: #ec2d7a;
  --gr-magenta: #c026d3;
  --gr-purple: #9333ea;
  --gr-violet: #6d28d9;
  --gr-indigo: #4f46e5;

  --gr-bg: #fdfcff;
  --gr-fg: #1c1530;
  --gr-muted: #6b6580;
  --gr-card: #ffffff;
  --gr-border: #ece8f2;

  --gr-gradient: linear-gradient(100deg, var(--gr-pink) 0%, var(--gr-magenta) 50%, var(--gr-violet) 100%);
  --gr-shadow-soft: 0 10px 40px -12px rgba(80, 20, 90, 0.12);
  --gr-shadow-brand: 0 18px 40px -12px rgba(192, 38, 211, 0.45);
  --gr-radius: 16px;

  font-family: 'Inter', 'Open Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  color: var(--gr-fg);
  background: transparent;
  overflow-x: clip; /* clip (not hidden) so .gr-home doesn't become a scroll container */
}
/* Soft pink→violet wash behind the homepage (shows through the transparent header). */
body.grx-home-page { background: linear-gradient(180deg, #fdeef6 0%, #f6f0ff 20%, #fdfcff 52%) no-repeat; }

.gr-home *,
.gr-home *::before,
.gr-home *::after { box-sizing: border-box; }

/* Resets use :where() so they add ZERO specificity — otherwise `.gr-home h3`
   (0,1,1) would out-rank single-class component margins (0,1,0) and silently
   collapse all the spacing. */
.gr-home :where(h1, h2, h3) {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  letter-spacing: -0.025em;
  margin: 0;
}
.gr-home :where(p) { margin: 0; }
.gr-home img { max-width: 100%; display: block; }

/* ---------------------------------------------------------------------
   Typography hardening — the legacy CSS sets bare `h1{font-size:30px}`,
   `#wrapper h1{…}` etc. Re-assert the redesign scale deterministically.
   --------------------------------------------------------------------- */
.gr-home h1, .gr-home h2, .gr-home h3, .gr-home h4 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  color: var(--gr-fg);
}
.gr-home .gr-hero__title { font-size: clamp(40px, 4.6vw, 60px) !important; line-height: 1.07 !important; }
.gr-home .gr-section__title { font-size: clamp(32px, 3.4vw, 48px) !important; }
.gr-home .gr-hero__subtitle,
.gr-home .gr-section__sub { font-weight: 400 !important; }

/* ---------- shared layout / utilities ---------- */
.gr-container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.gr-section { padding: 80px 0; position: relative; }
@media (min-width: 768px) { .gr-section { padding: 96px 0; } }
.gr-gradient-text {
  background-image: var(--gr-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gr-eyebrow {
  display: inline-block; font-size: 12.8px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gr-magenta);
}
.gr-section__head { max-width: 640px; margin: 0 auto; text-align: center; }
.gr-section__title { font-size: clamp(30.4px, 4vw, 48px); font-weight: 800; margin-top: 12px; line-height: 1.1; }
.gr-section__sub { margin-top: 16px; font-size: 18px; line-height: 1.6; color: var(--gr-muted); }

/* buttons */
.gr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 16px; line-height: 1; padding: 14.4px 24px;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  text-decoration: none; transition: transform .2s ease, opacity .2s ease, background .2s ease;
}
.gr-btn:hover { text-decoration: none; }
.gr-btn--primary { background-image: var(--gr-gradient); color: #fff; box-shadow: var(--gr-shadow-brand); }
.gr-btn--primary:hover { transform: scale(1.02); opacity: .96; color: #fff; }
.gr-btn--outline { background: transparent; color: var(--gr-magenta); border-color: rgba(236, 45, 122, .3); }
.gr-btn--outline:hover { background: rgba(236, 45, 122, .06); color: var(--gr-magenta); }

/* Defeat the site-wide `button, input[type=submit], .btn { background:#FB6765 !important }`
   rule in upgrade/css/main.css. Higher specificity + !important so our brand
   buttons win wherever they appear inside .gr-home. */
.gr-home .gr-btn {
  font-size: 16px !important;
  line-height: 1 !important;
  padding: 14.4px 24px !important;
  border-radius: 999px !important;
  box-shadow: none;
}
.gr-home .gr-btn--primary {
  background-image: var(--gr-gradient) !important;
  background-color: transparent !important;
  color: #fff !important;
  box-shadow: var(--gr-shadow-brand) !important;
}
.gr-home .gr-btn--outline {
  background-image: none !important;
  background-color: transparent !important;
  color: var(--gr-magenta) !important;
}

/* =====================================================================
   HERO
   ===================================================================== */
.gr-hero { position: relative; padding: 104px 0 56px; overflow: hidden; }
.gr-hero::before, .gr-hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none; z-index: 0;
}
.gr-hero::before { width: 416px; height: 416px; left: -160px; top: 32px; background: rgba(236, 45, 122, .2); }
.gr-hero::after { width: 448px; height: 448px; right: -96px; top: 128px; background: rgba(109, 40, 217, .2); }

.gr-hero__grid {
  position: relative; z-index: 1; display: grid; gap: 32px; align-items: center;
}
@media (min-width: 992px) { .gr-hero__grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
.gr-hero__copy { max-width: 576px; }

.gr-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6.4px 16px;
  border-radius: 999px; border: 1px solid rgba(236, 45, 122, .2);
  background: rgba(255, 255, 255, .7); backdrop-filter: blur(8px);
  font-size: 14px; font-weight: 600; color: var(--gr-magenta); box-shadow: var(--gr-shadow-soft);
}
.gr-hero__title { font-size: clamp(35.2px, 5vw, 60px); font-weight: 800; line-height: 1.08; margin-top: 20px; }
.gr-hero__subtitle { margin-top: 20px; font-size: 18px; line-height: 1.65; color: var(--gr-muted); max-width: 544px; }

/* search */
.gr-search {
  margin-top: 24px; display: flex; gap: 8px; align-items: center;
  background: #fff; border: 1px solid #fff; border-radius: 999px; padding: 6.4px 6.4px 6.4px 20px;
  box-shadow: var(--gr-shadow-soft);
}
.gr-search__field { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; color: var(--gr-magenta); }
.gr-search__input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font-size: 16px; color: var(--gr-fg); padding: 8.8px 0;
}
.gr-search__input::placeholder { color: var(--gr-muted); }
/* Defeat legacy `input{border…}` so the field is a seamless pill (matches v0). */
.gr-home .gr-search { padding: 8px 8px 8px 24px; }
.gr-home .gr-search__field { border: 0 !important; background: transparent !important; }
.gr-home .gr-search__input {
  border: 0 !important; outline: 0 !important; box-shadow: none !important;
  background: transparent !important; -webkit-appearance: none; appearance: none;
  padding: 12.8px 0 !important; font-size: 16px !important; height: auto !important; margin: 0 !important;
}
@media (max-width: 575px) {
  .gr-search { flex-direction: column; border-radius: 20px; padding: 12px; align-items: stretch; }
  .gr-search .gr-btn { width: 100%; }
}

/* popular tags */
.gr-tags { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.gr-tags__label { font-weight: 600; color: rgba(28, 21, 48, .6); }
.gr-tag {
  border: 1px solid rgba(236, 45, 122, .15); background: rgba(236, 45, 122, .05);
  color: var(--gr-magenta); border-radius: 999px; padding: 4.8px 12px; font-weight: 600;
  text-decoration: none; transition: background .2s ease;
}
.gr-tag:hover { background: rgba(236, 45, 122, .12); color: var(--gr-magenta); text-decoration: none; }
/* tags submit via POST (search-two is POST-only). The form is layout-transparent
   so the button stays a flex item; defeat the global button{…!important} rule. */
.gr-tag-form { display: contents; margin: 0; }
.gr-home button.gr-tag {
  background: rgba(236, 45, 122, .05) !important;
  color: var(--gr-magenta) !important;
  border: 1px solid rgba(236, 45, 122, .15) !important;
  border-radius: 999px !important;
  padding: 4.8px 12px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
  cursor: pointer;
}
.gr-home button.gr-tag:hover { background: rgba(236, 45, 122, .12) !important; }

.gr-hero__ctas { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 575px) { .gr-hero__ctas .gr-btn { width: 100%; } }

/* stats */
.gr-stats {
  margin-top: 32px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  background: rgba(255, 255, 255, .6); border: 1px solid #fff; border-radius: 20px;
  padding: 20px; box-shadow: var(--gr-shadow-soft); backdrop-filter: blur(8px);
}
@media (min-width: 768px) { .gr-stats { grid-template-columns: repeat(4, 1fr); } }
.gr-stat { display: flex; flex-direction: column; gap: 4px; }
.gr-stat__icon { color: var(--gr-magenta); }
.gr-stat__value { font-size: 24px; font-weight: 800; }
.gr-stat__label { font-size: 12.8px; color: var(--gr-muted); }

/* mascot + floating cards */
.gr-hero__stage { position: relative; display: none; }
@media (min-width: 992px) { .gr-hero__stage { display: block; min-height: 540px; } }
.gr-hero__halo {
  position: absolute; left: 50%; top: 50%; width: 70%; padding-bottom: 70%; transform: translate(-50%, -50%);
  border-radius: 50%; background: linear-gradient(135deg, rgba(236, 45, 122, .25), rgba(109, 40, 217, .25));
  filter: blur(40px);
}
.gr-hero__mascot { position: relative; z-index: 1; width: 100%; height: 540px; object-fit: contain; filter: drop-shadow(0 25px 35px rgba(0,0,0,.25)); }

.gr-floatcards { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.gr-floatcard { position: absolute; width: 136px; animation: gr-float 6s ease-in-out infinite; }
.gr-floatcard:nth-child(1) { left: 0; top: 24px; }
.gr-floatcard:nth-child(2) { right: 0; top: 8px; animation-delay: .6s; }
.gr-floatcard:nth-child(3) { left: 8px; top: 50%; animation-delay: 1.2s; }
.gr-floatcard:nth-child(4) { right: 4px; top: 46%; animation-delay: 1.8s; }
.gr-floatcard:nth-child(5) { left: 16px; bottom: 40px; animation-delay: 2.4s; }
.gr-floatcard:nth-child(6) { right: 8px; bottom: 24px; animation-delay: 3s; }

.gr-brandcard {
  background: #fff; border: 1px solid var(--gr-border); border-radius: 16px; padding: 10.4px 12px;
  box-shadow: var(--gr-shadow-soft);
}
.gr-brandcard__top { display: flex; align-items: center; gap: 8px; }
.gr-brandcard__logo {
  width: 28px; height: 28px; flex: none; border-radius: 8px; object-fit: contain;
  display: grid; place-items: center; background: #f3eefb; color: var(--gr-magenta); font-weight: 800; font-size: 12.8px;
}
.gr-brandcard__name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gr-brandcard__reward { margin-top: 5.6px; font-size: 11.2px; font-weight: 600; color: var(--gr-muted); }

/* mobile brand-card grid below mascot */
.gr-hero__mobile { display: block; }
@media (min-width: 992px) { .gr-hero__mobile { display: none; } }
.gr-hero__mobile-mascot { position: relative; margin: 0 auto; max-width: 352px; }
.gr-hero__mobile-mascot img { height: 256px; width: 100%; object-fit: contain; filter: drop-shadow(0 20px 30px rgba(0,0,0,.2)); }
.gr-hero__mobile-cards { margin-top: 8px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 9.6px; }
@media (min-width: 576px) { .gr-hero__mobile-cards { grid-template-columns: repeat(3, 1fr); } }

@keyframes gr-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* =====================================================================
   BRAND MARQUEE
   ===================================================================== */
.gr-marquee-section { padding: 56px 0; }
.gr-marquee {
  position: relative; margin-top: 32px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.gr-marquee__track { display: flex; align-items: center; gap: 16px; width: max-content; animation: gr-marquee 32s linear infinite; }
.gr-marquee:hover .gr-marquee__track { animation-play-state: paused; }
.gr-marquee__item {
  flex: none; width: 160px; height: 80px; display: grid; place-items: center;
  background: var(--gr-card); border: 1px solid var(--gr-border); border-radius: 16px; box-shadow: var(--gr-shadow-soft);
}
.gr-marquee__item img { max-height: 44px; max-width: 70%; object-fit: contain; }
.gr-marquee__item span { font-weight: 800; }

@keyframes gr-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .gr-marquee__track { animation: none; } }

.gr-trust { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; }
.gr-trust__item { display: flex; align-items: center; gap: 8px; font-size: 14.4px; font-weight: 600; color: rgba(28,21,48,.8); }
.gr-trust__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(236,45,122,.1); color: var(--gr-magenta); }

/* =====================================================================
   CATEGORIES
   ===================================================================== */
.gr-cat-grid {
  margin-top: 48px; display: grid; gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .gr-cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .gr-cat-grid { grid-template-columns: repeat(5, 1fr); } }

.gr-cat-card {
  position: relative; display: flex; flex-direction: column; gap: 16px; height: 100%;
  padding: 20px; border-radius: 20px; border: 1px solid var(--gr-border); background: var(--gr-card);
  box-shadow: var(--gr-shadow-soft); text-decoration: none; color: inherit;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.gr-cat-card:hover {
  transform: translateY(-4px); border-color: rgba(236,45,122,.3); box-shadow: var(--gr-shadow-brand); text-decoration: none;
}
.gr-cat-card__icon {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background-image: var(--gr-gradient); color: #fff; box-shadow: var(--gr-shadow-brand);
}
.gr-cat-card__icon svg { display: block; overflow: visible !important; flex-shrink: 0; }
.gr-cat-card__info { display: flex; flex-direction: column; }
.gr-cat-card__name { font-size: 16px; font-weight: 700; }
.gr-cat-card__count { margin-top: 2px; font-size: 13px; color: var(--gr-muted); }
.gr-cat-card__arrow { position: absolute; right: 16px; top: 16px; color: var(--gr-muted); opacity: 0; transition: opacity .25s ease, transform .25s ease; }
.gr-cat-card:hover .gr-cat-card__arrow { opacity: 1; transform: translateX(2px); }

/* =====================================================================
   TRENDING STORES
   ===================================================================== */
.gr-trending__head { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
@media (min-width: 768px) { .gr-trending__head { flex-direction: row; justify-content: space-between; align-items: flex-end; } }
.gr-trending__viewall { flex: none; }
.gr-trending__grid { margin-top: 48px; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 576px) { .gr-trending__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .gr-trending__grid { grid-template-columns: repeat(4, 1fr); } }

.gr-store-card {
  display: flex; flex-direction: column; height: 100%; padding: 24px;
  border-radius: 24px; border: 1px solid var(--gr-border); background: var(--gr-card);
  box-shadow: var(--gr-shadow-soft); transition: transform .25s ease, box-shadow .25s ease;
}
.gr-store-card:hover { transform: translateY(-4px); box-shadow: var(--gr-shadow-brand); }
.gr-store-card__top { display: flex; align-items: center; justify-content: space-between; }
.gr-store-card__logo {
  width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center;
  overflow: hidden; background: #f3eefb; color: #fff; font-weight: 800; font-size: 18px;
}
.gr-store-card__logo img { width: 100%; height: 100%; object-fit: cover; }
.gr-store-card__cat { font-size: 11.5px; font-weight: 600; color: var(--gr-muted); background: #f4f1f8; border-radius: 999px; padding: 5px 11px; }
.gr-store-card__name { margin-top: 20px; font-size: 18px; font-weight: 700; }
.gr-store-card__reward { margin-top: 8px; font-size: 14.5px; color: var(--gr-muted); flex: 1; line-height: 1.45; }
.gr-store-card__amount { font-size: 21px; font-weight: 800; background-image: var(--gr-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; margin-right: 2px; }
.gr-store-card__meta { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--gr-muted); }
.gr-store-card__cta { margin-top: 20px; width: 100%; }

.gr-grad-a { background-image: linear-gradient(135deg,#fb923c,#f59e0b); }
.gr-grad-b { background-image: linear-gradient(135deg,#34d399,#14b8a6); }
.gr-grad-c { background-image: linear-gradient(135deg,#f97316,#f43f5e); }
.gr-grad-d { background-image: linear-gradient(135deg,#475569,#1e293b); }
.gr-grad-e { background-image: linear-gradient(135deg,#ec4899,#f43f5e); }
.gr-grad-f { background-image: linear-gradient(135deg,#3b82f6,#4f46e5); }

/* =====================================================================
   HOW IT WORKS
   ===================================================================== */
.gr-how__grid { position: relative; margin-top: 56px; display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .gr-how__grid { grid-template-columns: repeat(4, 1fr); } }
.gr-how__line { display: none; }
@media (min-width: 768px) {
  .gr-how__line { display: block; position: absolute; left: 0; right: 0; top: 28px;
    height: 2px; background: linear-gradient(90deg, rgba(236,45,122,.1), rgba(192,38,211,.4), rgba(109,40,217,.1)); }
}
.gr-how__step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.gr-how__num {
  position: relative; z-index: 1; width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 16px; background-image: var(--gr-gradient); color: #fff; font-weight: 800; font-size: 17.6px;
  box-shadow: var(--gr-shadow-brand);
}
.gr-how__title { margin-top: 20px; font-size: 17.6px; font-weight: 700; }
.gr-how__body { margin-top: 8px; font-size: 14.4px; color: var(--gr-muted); line-height: 1.6; }

/* =====================================================================
   GENIE AI (dark promo)
   ===================================================================== */
.gr-genie__panel {
  position: relative; overflow: hidden; border-radius: 32px; padding: 48px 24px;
  background: linear-gradient(135deg,#2a0a3a,#3b0d52 55%,#1e1065);
  box-shadow: 0 30px 60px -20px rgba(30,16,101,.6);
}
@media (min-width: 768px) { .gr-genie__panel { padding: 56px 48px; } }
.gr-genie__grid { position: relative; z-index: 1; display: grid; gap: 48px; align-items: center; }
@media (min-width: 992px) { .gr-genie__grid { grid-template-columns: 1fr 1fr; } }
.gr-genie__badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6.4px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.1); color: rgba(255,255,255,.9);
  font-size: 13.6px; font-weight: 600;
}
.gr-genie__title { margin-top: 20px; font-size: clamp(32px,4vw,48px); font-weight: 800; color: #fff !important; }
.gr-genie__lead { margin-top: 16px; max-width: 448px; color: rgba(255,255,255,.7) !important; line-height: 1.6; }
.gr-genie__features { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.gr-genie__feature { display: flex; gap: 12px; align-items: flex-start; }
.gr-genie__ficon {
  flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px;
  background: rgba(255,255,255,.1); color: var(--gr-pink); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}
.gr-genie__feature h3 { font-size: 14.4px; font-weight: 700; color: #fff !important; }
.gr-genie__feature p { font-size: 13.6px; color: rgba(255,255,255,.6) !important; }
.gr-genie__chatwrap { position: relative; }
.gr-chat { position: relative; z-index: 1; border-radius: 24px; background: rgba(255,255,255,.96); padding: 17.6px; box-shadow: 0 25px 50px -12px rgba(0,0,0,.5); }
.gr-chat__head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--gr-border); }
.gr-chat__avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background-image: var(--gr-gradient); color: #fff; }
.gr-chat__name { font-size: 14.4px; font-weight: 700; }
.gr-chat__status { display: flex; align-items: center; gap: 5.6px; font-size: 12px; color: #059669; }
.gr-chat__status span { width: 6.4px; height: 6.4px; border-radius: 50%; background: #10b981; }
.gr-chat__body { display: flex; flex-direction: column; gap: 9.6px; padding: 16px 0; }
.gr-bubble { max-width: 82%; padding: 8.8px 13.6px; font-size: 13.6px; line-height: 1.45; border-radius: 16px; }
.gr-bubble code { background: rgba(236,45,122,.1); color: var(--gr-magenta); padding: 0.8px 5.6px; border-radius: 5.6px; font-weight: 700; }
.gr-bubble--user { align-self: flex-end; background: #f1edf7; color: var(--gr-fg); border-bottom-right-radius: 4.8px; }
.gr-bubble--genie { align-self: flex-start; background-image: var(--gr-gradient); color: #fff; border-bottom-left-radius: 4.8px; }
.gr-chat__input { display: flex; align-items: center; gap: 8px; padding: 6.4px 6.4px 6.4px 16px; border: 1px solid var(--gr-border); border-radius: 999px; background: #faf8fd; color: var(--gr-muted); font-size: 13.6px; }
.gr-chat__input span:first-child { flex: 1; }
.gr-chat__send { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background-image: var(--gr-gradient); color: #fff; }
.gr-genie__mascot { position: absolute; right: -8px; top: -56px; width: 136px; z-index: 2; filter: drop-shadow(0 20px 30px rgba(0,0,0,.4)); animation: gr-float 8s ease-in-out infinite; }
@media (max-width: 575px) { .gr-genie__mascot { display: none; } }

/* =====================================================================
   COMMUNITY
   ===================================================================== */
.gr-trustbar {
  margin-top: 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  padding: 24px; border: 1px solid var(--gr-border); border-radius: 24px; background: var(--gr-card); box-shadow: var(--gr-shadow-soft);
}
@media (min-width: 768px) { .gr-trustbar { grid-template-columns: repeat(4, 1fr); } }
.gr-trustbar__item { text-align: center; }
.gr-trustbar__value { font-size: 29.6px; font-weight: 800; }
.gr-trustbar__label { margin-top: 4px; font-size: 13.6px; color: var(--gr-muted); }

.gr-testimonials { margin-top: 40px; columns: 1; column-gap: 20px; }
@media (min-width: 576px) { .gr-testimonials { columns: 2; } }
@media (min-width: 992px) { .gr-testimonials { columns: 3; } }
.gr-tcard { break-inside: avoid; margin: 0 0 20px; padding: 24px; border: 1px solid var(--gr-border); border-radius: 24px; background: var(--gr-card); box-shadow: var(--gr-shadow-soft); }
.gr-tcard__stars { display: flex; gap: 2.4px; color: #fbbf24; }
.gr-tcard__stars svg { fill: currentColor; }
.gr-tcard__text { margin: 12px 0 0; font-size: 15.2px; line-height: 1.6; color: rgba(28,21,48,.8); }
.gr-tcard__foot { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--gr-border); }
.gr-tcard__avatar { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background-image: var(--gr-gradient); color: #fff; font-weight: 700; }
.gr-tcard__who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.gr-tcard__name { font-size: 13.6px; font-weight: 700; }
.gr-tcard__handle { font-size: 12px; color: var(--gr-muted); }
.gr-tcard__reward { font-size: 11.2px; font-weight: 700; color: var(--gr-magenta); background: rgba(236,45,122,.1); border-radius: 999px; padding: 4px 9.6px; white-space: nowrap; }

/* =====================================================================
   BLOG
   ===================================================================== */
.gr-blog__grid { margin-top: 48px; display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .gr-blog__grid { grid-template-columns: repeat(3, 1fr); } }
.gr-blog-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--gr-border); border-radius: 24px; background: var(--gr-card); box-shadow: var(--gr-shadow-soft); transition: transform .25s ease, box-shadow .25s ease; }
.gr-blog-card:hover { transform: translateY(-4px); box-shadow: var(--gr-shadow-brand); }
.gr-blog-card__media { position: relative; display: block; aspect-ratio: 16/9; background: linear-gradient(135deg, rgba(236,45,122,.15), rgba(109,40,217,.15)); overflow: hidden; }
.gr-blog-card__media img { width: 100%; height: 100%; object-fit: cover; }
.gr-blog-card__cat { position: absolute; left: 16px; top: 16px; font-size: 11.2px; font-weight: 600; color: var(--gr-magenta); background: rgba(255,255,255,.85); border-radius: 999px; padding: 4px 10.4px; backdrop-filter: blur(4px); }
.gr-blog-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.gr-blog-card__title { font-size: 16.8px; font-weight: 700; line-height: 1.35; }
.gr-blog-card__title a { color: inherit; text-decoration: none; }
.gr-blog-card__title a:hover { color: var(--gr-magenta); }
.gr-blog-card__excerpt { margin-top: 8px; flex: 1; font-size: 14.4px; color: var(--gr-muted); line-height: 1.6; }
.gr-blog-card__meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--gr-border); font-size: 12px; color: var(--gr-muted); }
.gr-blog-card__meta span { display: inline-flex; align-items: center; gap: 5.6px; }
.gr-blog-card__meta svg { display: inline-block; flex-shrink: 0; vertical-align: middle; color: var(--gr-muted); overflow: visible !important; }
.gr-blog-card__more { margin-top: 16px; display: inline-flex; align-items: center; gap: 5.6px; font-size: 13.6px; font-weight: 700; color: var(--gr-magenta); text-decoration: none; }
.gr-blog-card__more svg { display: inline-block; flex-shrink: 0; overflow: visible !important; }
.gr-blog-card__more:hover { color: var(--gr-violet); }

/* =====================================================================
   FAQ accordion
   ===================================================================== */
.gr-faq__container { max-width: 760px; }
.gr-accordion { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.gr-faq-item { border: 1px solid var(--gr-border); border-radius: 16px; background: var(--gr-card); box-shadow: var(--gr-shadow-soft); overflow: hidden; }
.gr-faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left;
  padding: 18.4px 20px !important; background: transparent !important; color: var(--gr-fg) !important;
  border: 0 !important; border-radius: 0 !important; font-size: 16px !important; font-weight: 600; cursor: pointer; box-shadow: none !important;
}
.gr-faq-chevron { flex: none; color: var(--gr-muted); transition: transform .25s ease; }
.gr-faq-item.is-open .gr-faq-chevron { transform: rotate(180deg); }
.gr-faq-a { display: none; padding: 0 20px 20px; color: var(--gr-muted); line-height: 1.65; font-size: 15.2px; }
.gr-faq-item.is-open .gr-faq-a { display: block; }

/* =====================================================================
   FINAL CTA
   ===================================================================== */
.gr-final__panel {
  position: relative; overflow: hidden; display: grid; gap: 32px; align-items: center;
  border-radius: 32px; padding: 48px 24px; background-image: var(--gr-gradient);
  box-shadow: 0 30px 60px -20px rgba(192,38,211,.5);
}
@media (min-width: 768px) { .gr-final__panel { padding: 56px 48px; } }
@media (min-width: 992px) { .gr-final__panel { grid-template-columns: 1.1fr .9fr; } }
.gr-final__copy { position: relative; z-index: 1; text-align: center; }
@media (min-width: 992px) { .gr-final__copy { text-align: left; } }
.gr-final__title { font-size: clamp(32px,4vw,48px); font-weight: 800; color: #fff !important; line-height: 1.05; }
.gr-final__title span { color: #fff !important; }
.gr-final__lead { margin: 16px auto 0; max-width: 448px; color: rgba(255,255,255,.85) !important; }
@media (min-width: 992px) { .gr-final__lead { margin-left: 0; } }
.gr-final__badges { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@media (min-width: 992px) { .gr-final__badges { justify-content: flex-start; } }
.gr-storebadge { display: inline-flex; align-items: center; gap: 9.6px; padding: 9.6px 17.6px; border-radius: 14.4px; background: #0b0b0f; color: #fff; text-decoration: none; }
.gr-storebadge:hover { color: #fff; opacity: .92; }
.gr-storebadge span { display: flex; flex-direction: column; line-height: 1.1; font-weight: 700; font-size: 16px; }
.gr-storebadge small { font-weight: 500; font-size: 10.4px; opacity: .8; }
.gr-storebadge svg { display: inline-block; flex-shrink: 0; overflow: visible !important; fill: currentColor; stroke: none; }
/* Coming-soon variant: disabled look, no hover, with a faint "soon" pill */
.gr-storebadge--soon { opacity: .55; cursor: default; position: relative; }
.gr-storebadge--soon::after { content: '🔜'; position: absolute; top: -8px; right: -8px; font-size: 14px; line-height: 1; }
.gr-final__art { position: relative; z-index: 1; text-align: center; }
.gr-final__art img { display: inline-block; max-height: 288px; filter: drop-shadow(0 25px 35px rgba(0,0,0,.35)); }

/* =====================================================================
   Scroll-reveal (driven by giverefer.js IntersectionObserver)
   ===================================================================== */
.gr-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.gr-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .gr-reveal { opacity: 1; transform: none; } }
