/*─────────────────────────────────────────────────────────────
  OVERLAY & POPUP WINDOW
─────────────────────────────────────────────────────────────*/
.fixifi-popup {
  font-family: "Roboto", sans-serif;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 99999;
  position: fixed;
  inset: 0;
}

.fixifi-popup.visible {
  display: flex;
}

.fixifi-popup__content {
  border-radius: 2.4rem;
  width: 100%;
  /* Desktop-first default max-width (was your ≥1024px size) */
  max-width: 36.5rem;       /* 576px */
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  position: relative;
}
.break-for-mobile-only{
    display: none;
  }
/*─────────────────────────────────────────────────────────────
  CLOSE BUTTON
─────────────────────────────────────────────────────────────*/
.fixifi-popup__close {
    position: absolute;
    top: 0.71rem;
    right: 1rem;
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    color: #fff !important;
    font-size: 1.3rem;
    line-height: 1;
    z-index: 100001;
    text-align: center;
}

.fixifi-popup__close:hover{
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
}
.break-for-mobile-only{
    display: block !important;
  }

/*─────────────────────────────────────────────────────────────
  HEADER: GRADIENT + DECORATIONS
─────────────────────────────────────────────────────────────*/
.fixifi-popup__header {
  background: linear-gradient(
    90deg,
    #282974 0%,
    #03120e 100%
  );
  text-align: center;
  position: relative;
  border-radius: 30px 30px 0px 0px;
}

.fixifi-popup__stars {
  width: 2rem;
}

.fixifi-popup__avatars figure {
  margin: 0;
}

/* hide scrollbar */
.fixifi-popup__avatars::-webkit-scrollbar { display: none; }
.fixifi-popup__avatars { -ms-overflow-style: none; scrollbar-width: none; }

.fixifi-popup__avatar img {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-top: -40px;
  z-index: 10 !important;
}

.fixifi-popup__avatar figcaption {
    margin-top: 0.4rem;
    color: #fff;
    font-size: 0.7rem;
    line-height: 0.8;
    margin-left: 2.5rem;
    text-align: center;
}


.fixifi-popup__avatar figcaption strong {
  display: block;
  font-size: 0.9rem;
}
.text-div-inner{
    margin-top: 0.9rem;
    color: #fff;
    font-size: 0.7rem;
    line-height: 0.8;
    text-align: center;
}

.text-div span {
  font-size: 0.7rem;
  color: #000;
  line-height: 1.1;
}

.text-div strong {
  color: #282974;
  display: block;
  font-size: 0.85rem;
}

.fixifi-popup__avatar figcaption span {
  font-size: 0.6rem;
}
.fixifi-popup__skyline {
  position: absolute;
  bottom: -5px;
  width: 100%;           /* span full width */
  height: auto;           /* preserve aspect ratio */
  display: block;         /* remove any inline-img whitespace */
  pointer-events: none;   /* so it never accidentally "catches" clicks */
  user-select: none;
  object-fit: cover; 
}

/*─────────────────────────────────────────────────────────────
  BODY CONTENT: CREAM PANEL
─────────────────────────────────────────────────────────────*/
.fixifi-popup__body {
  background: #FCFDED;
  padding: 0rem 3.5rem 1.5rem 3.5rem;
  border-radius: 0px 0px 30px 30px;
}

.fixifi-popup__title {
  /* Desktop-first default font-size (your ≥1024px size) */
  font-size: 1.6rem;
  line-height: 1.2;
  color: #171614;       /* base text color */
  margin: 0 0 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.fixifi-popup__title .highlight {
  color: #282974;
  text-shadow: 1px 1px 2px #282974;
}

.fixifi-popup__title .base {
  text-shadow: 1px 1px 2px #1E2B2B;
  color: #1E2B2B;
}

.fixifi-popup__button {
  display: inline-block;
  background: #1D2B2E;  /* very dark */
  color: #FCFDED;
  text-decoration: none;
  font-weight: 500;
  padding: 0.3rem 0.85rem;
  border-radius: 0.5rem;
  transition: transform 0.2s ease;
}

.fixifi-popup__button:hover,
.fixifi-popup__button:focus {
  transform: translateY(-2px);
  color: #FCFDED;
  text-decoration: none;
}

.fixifi-popup__button:focus {
  outline: 2px solid #FCFDED;
  outline-offset: 2px;
}

.fixifi-popup__tagline {
  font-size: 1.2rem;
  color: #282974;
  text-shadow: 1px 1px 2px #282974;
  margin-top: 0.75rem;
  font-weight: 500;
  margin-bottom: 0px;
}

.fixifi-popup__logo {
  position: absolute;
  bottom: 18px;
  right: 30px;
  margin-top: 1rem;
}

.fixifi-popup__logo img {
  width: 6rem;
  height: 6rem;
}

/* ─────────────────────────────────────────────────────────────
   FADE + ZOOM KEYFRAMES
───────────────────────────────────────────────────────────── */
@keyframes contentZoomIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes contentZoomOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* ─────────────────────────────────────────────────────────────
   ANIMATION CLASSES
───────────────────────────────────────────────────────────── */

.fixifi-popup.anim-in {
    display: flex;
    /* ensure it's on screen */
    animation: contentZoomIn 0.3s ease-out forwards;
}

.fixifi-popup.anim-out {
    /* keep it on screen long enough to animate out */
    animation: contentZoomOut 0.3s ease-in forwards;
}


/*─────────────────────────────────────────────────────────────
  RESPONSIVE BREAKPOINTS (DESKTOP-FIRST)
─────────────────────────────────────────────────────────────*/
/* Tablet & small desktop: up to 1023px */
@media (max-width: 1023px) {
  .fixifi-popup__content {
    max-width: 32rem;   /* 512px */
  }

  .fixifi-popup__stars {
    top: 1.3rem;
    left: 1.5rem;
  }
  .text-div-inner {
    margin-top: 0rem !important;
    color: #fff;
    font-size: 0.7rem;
    line-height: 0.8;
    text-align: center;
}

  .fixifi-popup__body {
    padding: 0.5rem 2rem;
  }
  .fixifi-popup__title {
    font-size: 1.2rem;
    
  }
  .fixifi-popup__avatar img {
    width: 100%;
  }

  .fixifi-popup__logo {
    bottom: 15px;
    right: 20px;
  }

  .fixifi-popup__logo img {
    width: 4.5rem;
    height: 4.5rem;
  }
}

/* Phablet / large phone: up to 767px */
@media (max-width: 767px) {
  .fixifi-popup__content {
    max-width: 28rem;   /* 448px */
  }
  .fixifi-popup__title {
    font-size: 1.75rem;
  }
  .fixifi-popup__avatar img {
    width: 100%;
    height: auto;
  }
  
}

/* Mobile: up to 479px */
@media (max-width: 479px) {
  
  
  .text-div-inner {
    margin-top: 0.3rem;
    color: #fff;
    font-size: 0.7rem;
    line-height: 0.8;
    text-align: center;
}
  .text-div span {
    font-size: 0.65rem;
    color: #000;
    line-height: 1.2;
}

  .fixifi-popup__content {
    max-width: 24rem;   /* 384px */
  }
  .fixifi-popup__title {
    font-size: 1.3rem;
  }
  .fixifi-popup__avatars {
    grid-template-columns: repeat(4, 3.2rem);
    gap: 0.3rem;
  }
  .fixifi-popup__avatar img {
    width: 100%;
    height: auto;
  }

  .fixifi-popup__avatar figcaption {
      margin-left: 1rem;
      line-height: 1.3;
      font-size: 0.3rem;
  }


  .fixifi-popup__avatar figcaption strong {
    font-size: 0.5rem;
  }

  .fixifi-popup__avatar figcaption span{
    font-size: 0.35rem;
  }
}
