/*--------------------------------------------------------------
# Mahakal Online — Lead-Gen Module
# Sticky CTA bar · Spin & Win · Exit popup · Social proof · Trust badges
--------------------------------------------------------------*/
:root {
  --lg-gold: #f5b301;
  --lg-gold-2: #ffd34e;
  --lg-orange: #f85d23;
  --lg-deep: #d8400c;
  --lg-ink: #14101f;
  --lg-grad: linear-gradient(135deg, #f85d23 0%, #f5b301 100%);
}

/* ============ Trust badges strip ============ */
.lg-trust {
  background: linear-gradient(100deg, #15101f, #241a3a);
  padding: 14px 0;
  border-top: 1px solid rgba(245, 179, 1, 0.25);
  border-bottom: 1px solid rgba(245, 179, 1, 0.25);
}
.lg-trust-track {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.lg-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}
.lg-trust-item i {
  font-size: 1.15rem;
  background: var(--lg-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============ Sticky bottom CTA bar (mobile) ============ */
.lg-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(100deg, #15101f, #2a1d44);
  border-top: 2px solid var(--lg-gold);
  box-shadow: 0 -8px 24px -10px rgba(0, 0, 0, 0.6);
}
.lg-sticky-bar .lg-sb-text {
  line-height: 1.15;
  color: #fff;
}
.lg-sticky-bar .lg-sb-text strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
}
.lg-sticky-bar .lg-sb-text small {
  font-size: 0.74rem;
  color: var(--lg-gold-2);
}
.lg-sticky-bar .lg-sb-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #25d366;
  color: #06321a;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 11px 16px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  animation: lgPulse 2.2s infinite;
}
.lg-sticky-bar .lg-sb-btn i { font-size: 1.15rem; }
@keyframes lgPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ============ Spin & Win launcher tab ============ */
.lg-spin-tab {
  position: fixed;
  left: 0;
  top: 42%;
  z-index: 996;
  transform: rotate(-90deg);
  transform-origin: left top;
  background: var(--lg-grad);
  color: #1a1208;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  border-radius: 0 0 12px 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lg-spin-tab:hover { filter: brightness(1.06); }

/* ============ Generic modal ============ */
.lg-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(8, 6, 16, 0.78);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.lg-overlay.lg-open { display: flex; animation: lgFade 0.25s ease; }
@keyframes lgFade { from { opacity: 0; } to { opacity: 1; } }
.lg-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: radial-gradient(circle at 50% 0%, #241a3a, #14101f 70%);
  border: 1px solid rgba(245, 179, 1, 0.4);
  border-radius: 20px;
  padding: 26px 22px 24px;
  text-align: center;
  color: #fff;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  animation: lgPop 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes lgPop { from { transform: translateY(18px) scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }
.lg-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: #cbb9ff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.lg-close:hover { color: #fff; }
.lg-modal h3 {
  font-family: var(--heading-font, "Poppins"), sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  margin: 4px 0 6px;
}
.lg-modal h3 .lg-hl {
  background: var(--lg-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lg-modal p { color: #d9d2f0; font-size: 0.95rem; margin-bottom: 14px; }
.lg-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #25d366;
  color: #06321a;
  font-weight: 800;
  font-size: 1rem;
  padding: 13px 18px;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px -6px rgba(37, 211, 102, 0.5);
}
.lg-cta:hover { filter: brightness(1.05); }
.lg-cta i { font-size: 1.2rem; }
.lg-fineprint { display: block; margin-top: 10px; font-size: 0.72rem; color: #9b8fc4; }

/* Countdown chip */
.lg-countdown {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(248, 93, 35, 0.16);
  border: 1px solid rgba(245, 179, 1, 0.4);
  color: var(--lg-gold-2);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 7px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.lg-countdown b { font-variant-numeric: tabular-nums; letter-spacing: 0.5px; }

/* ============ Spin wheel ============ */
.lg-wheel-wrap {
  position: relative;
  width: 280px;
  max-width: 78vw;
  margin: 6px auto 18px;
  aspect-ratio: 1;
}
.lg-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 0 8px #14101f, 0 0 0 11px var(--lg-gold), 0 18px 40px -12px rgba(0, 0, 0, 0.7);
  transition: transform 4.5s cubic-bezier(0.12, 0.7, 0.12, 1);
}
.lg-wheel-pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 24px solid var(--lg-gold);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
  z-index: 3;
}
.lg-wheel-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--lg-grad);
  color: #1a1208;
  font-weight: 800;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px #14101f;
  z-index: 2;
}
.lg-spin-go {
  width: 100%;
  background: var(--lg-grad);
  color: #1a1208;
  font-weight: 800;
  font-size: 1rem;
  padding: 13px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 20px -6px rgba(245, 179, 1, 0.6);
}
.lg-spin-go:disabled { opacity: 0.6; cursor: default; }

/* ============ Social-proof toasts ============ */
.lg-toast {
  position: fixed;
  left: 16px;
  bottom: 20px;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 300px;
  background: #fff;
  color: #1d1430;
  border-radius: 14px;
  padding: 10px 14px 10px 10px;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.45);
  border-left: 4px solid #25d366;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}
.lg-toast.lg-show { transform: translateY(0); opacity: 1; }
.lg-toast .lg-toast-ic {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--lg-grad);
  color: #1a1208;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.lg-toast .lg-toast-body { line-height: 1.25; }
.lg-toast .lg-toast-body strong { font-size: 0.86rem; }
.lg-toast .lg-toast-body span { display: block; font-size: 0.76rem; color: #6b6388; }

/* ============ Responsive behaviour ============ */
@media (max-width: 767.98px) {
  .lg-sticky-bar { display: flex; }
  .whatsapp-float { display: none !important; } /* sticky bar replaces it on mobile */
  body { padding-bottom: 70px; }               /* room above the sticky bar */
  .lg-toast { bottom: 80px; max-width: 260px; }
  .scroll-top { bottom: 80px !important; }
  .lg-spin-tab { top: 38%; font-size: 0.74rem; padding: 7px 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .lg-sticky-bar .lg-sb-btn { animation: none; }
  .lg-wheel { transition-duration: 2s; }
}

/* ============ Refer & Earn section ============ */
.lg-refer {
  background: radial-gradient(circle at 18% 0%, #271c40, #14101f 72%);
  padding: 58px 0;
  color: #fff;
}
.lg-refer-inner { max-width: 1000px; margin: 0 auto; padding: 0 18px; text-align: center; }
.lg-refer-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(245, 179, 1, 0.14);
  border: 1px solid rgba(245, 179, 1, 0.4);
  color: var(--lg-gold-2);
  font-weight: 700; font-size: 0.82rem;
  padding: 6px 14px; border-radius: 50px; margin-bottom: 14px;
}
.lg-refer h2 {
  font-family: var(--heading-font, "Poppins"), sans-serif;
  font-weight: 800; font-size: 2rem; margin-bottom: 10px;
}
.lg-refer h2 .lg-hl {
  background: var(--lg-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lg-refer-sub { color: #d9d2f0; max-width: 620px; margin: 0 auto 28px; font-size: 1rem; }
.lg-refer-steps { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-bottom: 30px; }
.lg-refer-step {
  flex: 1 1 220px; max-width: 290px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 179, 1, 0.22);
  border-radius: 16px; padding: 24px 18px;
}
.lg-refer-step .n {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--lg-grad); color: #1a1208; font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
}
.lg-refer-step h4 { font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }
.lg-refer-step p { font-size: 0.9rem; color: #c9c0e4; margin: 0; }
.lg-refer-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.lg-refer-cta a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 50px; font-weight: 800; text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.lg-refer-cta a:hover { transform: translateY(-2px); filter: brightness(1.05); }
.lg-refer-cta .share { background: #25d366; color: #06321a; box-shadow: 0 8px 20px -6px rgba(37, 211, 102, 0.5); }
.lg-refer-cta .code { background: var(--lg-grad); color: #1a1208; box-shadow: 0 8px 20px -6px rgba(245, 179, 1, 0.5); }
.lg-refer-fine { display: block; margin-top: 16px; font-size: 0.74rem; color: #9b8fc4; }
@media (max-width: 767.98px) {
  .lg-refer { padding: 44px 0; }
  .lg-refer h2 { font-size: 1.6rem; }
  .lg-refer-cta a { width: 100%; justify-content: center; }
}

/* ============ Refer & Earn — interactive generator ============ */
.lg-refer-gen {
  max-width: 620px;
  margin: 4px auto 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 179, 1, 0.28);
  border-radius: 18px;
  padding: 22px 20px;
}
.lg-refer-label {
  display: block;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  font-size: 1.02rem;
}
.lg-refer-row { display: flex; gap: 10px; flex-wrap: wrap; }
.lg-refer-input {
  flex: 1 1 220px;
  min-width: 0;
  background: #fff;
  color: #1d1430;
  border: 2px solid transparent;
  border-radius: 50px;
  padding: 13px 18px;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
}
.lg-refer-input:focus { border-color: var(--lg-gold); }
.lg-refer-make {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--lg-grad);
  color: #1a1208;
  font-weight: 800;
  border: none;
  border-radius: 50px;
  padding: 13px 22px;
  font-size: 1rem;
  cursor: pointer;
  min-height: 48px;
}
.lg-refer-make:hover { filter: brightness(1.05); }
.lg-refer-result { margin-top: 18px; }
.lg-refer-rtitle { color: var(--lg-gold-2) !important; font-weight: 700; margin-bottom: 10px; }
.lg-refer-msg {
  background: rgba(0, 0, 0, 0.28);
  border: 1px dashed rgba(245, 179, 1, 0.4);
  border-radius: 12px;
  padding: 14px 16px;
  color: #efe9ff;
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: left;
  word-break: break-word;
}
.lg-refer-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.lg-refer-actions .share,
.lg-refer-actions .copy {
  flex: 1 1 200px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.96rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  min-height: 48px;
}
.lg-refer-actions .share { background: #25d366; color: #06321a; }
.lg-refer-actions .copy { background: var(--lg-grad); color: #1a1208; }
.lg-refer-actions .share:hover,
.lg-refer-actions .copy:hover { filter: brightness(1.05); }
.lg-refer-support {
  display: inline-block;
  margin-top: 16px;
  color: #d9d2f0;
  font-size: 0.9rem;
  text-decoration: none;
}
.lg-refer-support strong { color: var(--lg-gold-2); }
@media (max-width: 767.98px) {
  .lg-refer-make { flex: 1 1 100%; justify-content: center; }
  .lg-refer-actions .share,
  .lg-refer-actions .copy { flex: 1 1 100%; }
}

/* ============ Responsive hardening (web + mobile) ============ */
img, svg, video, iframe { max-width: 100%; }
* { min-width: 0; }
body { overflow-x: clip; }
/* Fluid headings scale smoothly across phone -> desktop */
.hero h1 { font-size: clamp(1.6rem, 5.2vw, 3rem) !important; line-height: 1.2 !important; }
.section-title h2, .section-heading { font-size: clamp(1.5rem, 4vw, 2.3rem) !important; }
.lg-refer h2 { font-size: clamp(1.55rem, 4.4vw, 2.2rem); }
/* Guarantee the contact map never collapses */
.map-wrapper, .map-wrapper iframe { min-height: 300px; }
/* Comfortable tap targets for all key links */
.navmenu a, .footer-links a, .read-more-btn, .btn, .lg-cta, .lg-sb-btn { min-height: 40px; }
