/* ================= Sticky Promo (Responsive + Attractive) ================ */
.sticky-promo{
  position: fixed;
  left: 50%;
  bottom: 0;                          /* visible position (slide via transform) */
  transform: translate(-50%, 100%);   /* hidden by default */
  transition: transform .45s ease, box-shadow .2s ease;
  width: min(94vw, 440px);
  max-width: 440px;

  /* Glare + gradient background (no images) */
  background:
    radial-gradient(ellipse at 12% 0%, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 50%),
    linear-gradient(135deg, #0b5bd3, #6c2bd9);

  border-radius: 14px 14px 0 0;
  box-shadow: 0 -8px 28px rgba(0,0,0,.18);
  z-index: 650; /* आपकी मौजूदा स्टैकिंग के अनुसार */
  padding-bottom: env(safe-area-inset-bottom, 0px);
  overflow: visible;                  /* बाहर वाला close बटन दिख सके */

  /* subtle inner border / gloss */
  outline: 1px solid rgba(255,255,255,.20);
}
.sticky-promo::before{
  /* subtle moving sheen (reduced-motion में बंद हो जाएगी) */
  content:"";
  position:absolute; inset:-30% -10% 0 -10%;
  background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,.25) 50%, transparent 60%);
  transform: translateX(-120%);
  mix-blend-mode: screen;
  pointer-events:none;
  animation: promoSheen 4.5s ease-in-out infinite;
}
@keyframes promoSheen{
  0%,60% { transform: translateX(-120%) }
  100%   { transform: translateX(120%) }
}

/* Visible state via attribute (not a "show" class) */
.sticky-promo[data-open="1"]{
  transform: translate(-50%, var(--slide-up, 0px)); /* JS sets var / or default 0 */
  box-shadow: 0 -14px 36px rgba(0,0,0,.22);
}

/* ========== Layout ========== */
:root{
  /* padding vars so close button का calc हर breakpoint पर सही रहे */
  --promo-pad-y: 12px;
  --promo-pad-x: 14px;
}
.sticky-promo--inner{
  position: relative;
  padding: var(--promo-pad-y) var(--promo-pad-x);
}
.sticky-promo .creative{
  display:flex; align-items:center; gap:12px;
}
.sticky-promo .badge{
  flex: 0 0 44px; height: 44px; border-radius: 11px;
  border: 1px solid rgba(11,91,211,.25);
  background: linear-gradient(135deg, rgba(11,91,211,.10), rgba(108,43,217,.10));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}
.sticky-promo .txt h4{
  margin: 0;
  font: 800 16px/1.15 system-ui, Inter, Arial, sans-serif;
  color: #ffffff;
}
.sticky-promo .txt p{
  margin: 3px 0 0;
  font: 500 12.5px/1.35 system-ui, Inter, Arial, sans-serif;
  color: #eaf1ff;
}

/* CTA — Dark Green */
.sticky-promo .cta{
  margin-left: auto;
  padding: 9px 12px;
  border-radius: 11px;
  font-weight: 800;
  text-decoration: none;
  background: #16a34a;              /* dark-ish green */
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(22,163,74,.28);
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease, background .12s ease;
}
.sticky-promo .cta:hover{
  background: #15803d;              /* darker on hover */
  transform: translateY(-1px);
  filter: none;
  box-shadow: 0 10px 22px rgba(21,128,61,.32);
}
.sticky-promo .cta:active{
  transform: translateY(0);
}

/* ========== Close “×” — transparent round, box से 2px ऊपर/दाएँ ========== */
.sticky-promo-close{
  position: absolute;
  top:  calc(-2px - var(--promo-pad-y));
  right: calc(-2px - var(--promo-pad-x));
  width: 28px; height: 28px; border-radius: 999px;
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,.75);
  display: grid; place-items: center;
  font-size: 18px; line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  z-index: 1;
}
.sticky-promo-close:hover{ background: rgba(255,255,255,.08) }
.sticky-promo-close:focus-visible{ outline: 2px solid #fff; outline-offset: 2px }

/* =================== Breakpoints: Mobile / Tablet / Desktop =================== */
/* Mobile (≤ 480px): center CTA @ 35% of screen width */
@media (max-width: 480px){
  :root{ --promo-pad-y: 10px; --promo-pad-x: 12px; }
  .sticky-promo{ width: calc(100vw - 16px); max-width: none; border-radius: 12px 12px 0 0; }
  .sticky-promo .creative{ gap:10px; flex-wrap: wrap; }   /* button नीचे shift हो सके */
  .sticky-promo .badge{ flex-basis: 40px; height: 40px; border-radius: 10px }
  .sticky-promo .txt h4{ font-size: 15px }
  .sticky-promo .txt p{ font-size: 12px }

  /* ⬇️ CTA: center + 35% of screen (25vw) */
  .sticky-promo .cta{
    margin-left: 0;
    width: 35vw;               /* 35% of viewport width */
    margin: 6px auto 0;        /* center horizontally */
    text-align: center;
  }
}

/* Small Tablets (481px–767px) */
@media (min-width: 481px) and (max-width: 767px){
  :root{ --promo-pad-y: 12px; --promo-pad-x: 14px; }
  .sticky-promo{ width: min(92vw, 520px) }
}

/* Tablets (768px–991px) */
@media (min-width: 768px) and (max-width: 991px){
  :root{ --promo-pad-y: 14px; --promo-pad-x: 16px; }
  .sticky-promo{ width: min(86vw, 680px) }
  .sticky-promo .creative{ gap:14px }
}

/* Desktop (≥ 992px) */
@media (min-width: 992px){
  :root{ --promo-pad-y: 14px; --promo-pad-x: 18px; }
  .sticky-promo{ width: 72vw; max-width: 860px; }
  .sticky-promo .creative{ gap:16px }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .sticky-promo{ transition: none }
  .sticky-promo::before{ animation: none }
}