/* ZIREXA PACKAGE COMPACT + OUTSIDE POPULAR BADGE v4 */

/* ===== DESKTOP PACKAGE LAYOUT ===== */
.plans-section{
  overflow:visible !important;
}

.plans-section .plan-grid{
  width:min(1180px,94vw) !important;
  max-width:1180px !important;
  margin:0 auto !important;
  padding-top:38px !important;   /* dedicated space ABOVE cards for POPULAR */
  gap:12px !important;
  align-items:stretch !important;
  overflow:visible !important;
}

.plans-section .plan-card{
  position:relative !important;
  overflow:visible !important;
  min-height:500px !important;
  padding:16px 14px 14px !important;
  border-radius:16px !important;
  text-align:center !important;
  color:#111114 !important;
  opacity:1 !important;
  filter:none !important;
  text-shadow:none !important;
  -webkit-font-smoothing:auto;
  -moz-osx-font-smoothing:auto;
  text-rendering:geometricPrecision;
}

/* POPULAR = FULLY OUTSIDE THE CARD */
.plans-section .plan-card .badge{
  position:absolute !important;
  top:-34px !important;
  bottom:auto !important;
  left:50% !important;
  right:auto !important;
  transform:translateX(-50%) !important;
  z-index:50 !important;
  width:calc(100% - 28px) !important;
  max-width:190px !important;
  margin:0 !important;
  padding:6px 12px !important;
  border-radius:999px !important;
  text-align:center !important;
  font-size:9.5px !important;
  line-height:1.1 !important;
  font-weight:900 !important;
  color:#fff !important;
  opacity:1 !important;
  box-shadow:0 7px 16px rgba(240,25,34,.18) !important;
}

/* SAME STARTING POINT INSIDE EVERY CARD */
.plans-section .plan-card .plan-icon{
  width:46px !important;
  height:46px !important;
  min-height:46px !important;
  margin:0 auto 8px !important;
  display:grid !important;
  place-items:center !important;
  opacity:1 !important;
  filter:none !important;
}

.plans-section .plan-card .plan-icon img{
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
}

.plans-section .plan-card h3{
  min-height:44px !important;
  margin:0 0 3px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  color:#111114 !important;
  font-size:17px !important;
  line-height:1.22 !important;
  font-weight:900 !important;
  letter-spacing:-.01em !important;
  opacity:1 !important;
  filter:none !important;
}

.plans-section .plan-card .plan-sub{
  min-height:30px !important;
  margin:0 0 5px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  color:#333338 !important;
  font-size:11.5px !important;
  line-height:1.3 !important;
  font-weight:700 !important;
  opacity:1 !important;
  filter:none !important;
}

.plans-section .plan-card .price{
  min-height:36px !important;
  width:100% !important;
  margin:2px 0 7px !important;
  display:flex !important;
  justify-content:center !important;
  align-items:baseline !important;
  gap:7px !important;
  opacity:1 !important;
  filter:none !important;
}

.plans-section .plan-card .price del{
  color:#55555c !important;
  font-size:12px !important;
  font-weight:750 !important;
  opacity:1 !important;
  text-decoration-thickness:2px !important;
}

.plans-section .plan-card .price strong{
  color:var(--accent) !important;
  font-size:27px !important;
  line-height:1 !important;
  font-weight:950 !important;
  letter-spacing:-.02em !important;
  opacity:1 !important;
  filter:none !important;
}

.plans-section .plan-card ul{
  width:100% !important;
  margin:0 0 8px !important;
  padding:0 !important;
  flex:1 !important;
  text-align:center !important;
}

.plans-section .plan-card li{
  padding:5px 1px !important;
  border-bottom:1px solid #e4e4e8 !important;
  text-align:center !important;
  color:#131317 !important;
  font-size:11.5px !important;
  line-height:1.25 !important;
  font-weight:750 !important;
  opacity:1 !important;
  filter:none !important;
  text-shadow:none !important;
}

.plans-section .plan-card li::before{
  position:static !important;
  display:inline-block !important;
  margin-right:5px !important;
  color:var(--accent) !important;
  font-weight:950 !important;
}

.plans-section .plan-card .btn{
  min-height:38px !important;
  padding:8px 10px !important;
  margin-top:auto !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:12px !important;
  font-weight:850 !important;
  opacity:1 !important;
}

/* Keep text sharp; reveal animation must not leave card transformed */
.plans-section .plan-card.reveal,
.plans-section .plan-card.reveal.from-left,
.plans-section .plan-card.reveal.from-right,
.plans-section .plan-card.reveal.from-bottom{
  opacity:1 !important;
  filter:none !important;
  transform:none !important;
}

.plans-section .plan-card:hover{
  transform:translateY(-5px) !important;
  box-shadow:0 18px 42px rgba(0,0,0,.11) !important;
  border-color:#efb1b5 !important;
}

/* ===== TABLET ===== */
@media (max-width:1100px) and (min-width:761px){
  .plans-section .plan-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    width:min(760px,92vw) !important;
    gap:16px !important;
  }

  .plans-section .plan-card{
    min-height:470px !important;
  }
}

/* ===== MOBILE: COMPACT HORIZONTAL CARDS ===== */
@media (max-width:760px){
  .plans-section .plan-grid{
    display:flex !important;
    width:100% !important;
    max-width:none !important;
    overflow-x:auto !important;
    overflow-y:visible !important;
    gap:12px !important;
    padding:38px 16px 18px !important;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
  }

  .plans-section .plan-grid::-webkit-scrollbar{
    display:none;
  }

  .plans-section .plan-card{
    flex:0 0 min(82vw,330px) !important;
    width:min(82vw,330px) !important;
    min-height:470px !important;
    scroll-snap-align:center;
  }
}

/* ===== KEEP EXISTING REVIEW CONTINUOUS CAROUSEL ===== */
.reviews-section{overflow:hidden}
.reviews-section .section-head{position:relative;z-index:2}
.reviews-section .review-grid.review-marquee-track{
  display:flex !important;
  grid-template-columns:none !important;
  align-items:stretch;
  gap:18px;
  width:max-content;
  max-width:none !important;
  margin:0;
  padding:10px 0 14px;
  will-change:transform;
  animation:zirexaReviewMarquee var(--review-duration,42s) linear infinite;
}
.review-marquee-group{
  display:flex;
  align-items:stretch;
  gap:18px;
  flex:none;
}
.reviews-section .review-marquee-track .review-card{
  flex:0 0 clamp(285px,27vw,390px);
  width:clamp(285px,27vw,390px);
  min-height:245px;
  opacity:1 !important;
  transform:none !important;
  filter:none !important;
  visibility:visible !important;
  text-align:left;
  color:#1d1d21;
}
.reviews-section .review-marquee-track .review-card>p{
  color:#29292f !important;
  font-weight:600 !important;
  line-height:1.65;
}
.reviews-section .review-marquee-track .review-person b{
  color:#18181b !important;
  font-weight:800 !important;
}
.reviews-section .review-marquee-track .review-person small{
  color:#505058 !important;
  font-weight:600 !important;
}
@keyframes zirexaReviewMarquee{
  from{transform:translate3d(0,0,0)}
  to{transform:translate3d(calc(-1 * var(--review-distance,1000px)),0,0)}
}
@media(prefers-reduced-motion:reduce){
  .reviews-section .review-grid.review-marquee-track{
    animation:none !important;
    transform:none !important;
  }
}
