.bh-home-greeting-card.bh-popup-brand-card{
  position: relative;
  overflow: hidden;
}

.bh-home-greeting-card.bh-popup-brand-card::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 12% 14%, rgba(255,158,64,.08), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(73,240,255,.09), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(123,92,255,.08), transparent 30%);
}

.bh-popup-brand-content{
  position: relative;
  z-index: 2;
}

.bh-popup-brand-top{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
}

.bh-popup-brand-logo{
  width:44px;
  height:44px;
  object-fit:contain;
  border-radius:12px;
  background:rgba(255,255,255,.08);
  padding:6px;
  box-shadow:0 8px 24px rgba(0,0,0,.18);
}

.bh-popup-brand-meta{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.bh-popup-brand-name{
  font-size:15px;
  line-height:1.2;
  font-weight:800;
  color:#ffffff;
  letter-spacing:.02em;
}

.bh-popup-brand-tag{
  font-size:10px;
  line-height:1.3;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.22em;
  color:#62f6ef;
}

.bh-popup-main-title{
  line-height:1.2 !important;
  padding-top:10px !important;
  padding-bottom:14px !important;
  margin-top:0 !important;
  margin-bottom:12px !important;
  overflow:visible !important;
}

.bh-popup-main-message{
  line-height:1.72 !important;
  margin-top:10px !important;
  margin-bottom:16px !important;
}

.bh-popup-brand-note{
  margin-top:6px;
  margin-bottom:14px;
  font-size:13px;
  line-height:1.6;
  color:rgba(232,243,255,.85);
}

.bh-popup-feature-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:2px 0 18px;
}

.bh-popup-feature-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid rgba(113,225,255,.18);
  background:rgba(255,255,255,.04);
  color:#d8efff;
  font-size:12px;
  font-weight:700;
  line-height:1.2;
  letter-spacing:.02em;
  backdrop-filter: blur(8px);
}

.bh-popup-brand-footer{
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid rgba(120,170,255,.15);
  color:rgba(230,240,255,.82);
  font-size:12px;
  line-height:1.6;
}

.bh-popup-brand-footer strong{
  display:block;
  margin-bottom:3px;
  font-size:13px;
  color:#ffffff;
}

.bh-popup-actions-professional{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  align-items:center;
}

.bh-popup-main-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 18px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  color:#f7fbff;
  font-weight:700;
  text-decoration:none;
  transition:transform .18s ease, background .18s ease, border-color .18s ease;
}

.bh-popup-main-link:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.07);
  border-color:rgba(115,225,255,.28);
}

@media (max-width: 980px){
  .bh-popup-brand-top{
    margin-top:4px;
  }
}

@media (max-width: 720px){
  .bh-popup-main-title{
    line-height:1.22 !important;
    padding-top:8px !important;
    padding-bottom:12px !important;
  }

  .bh-popup-feature-row{
    gap:8px;
  }

  .bh-popup-feature-chip{
    font-size:11px;
    padding:7px 12px;
  }

  .bh-popup-brand-name{
    font-size:14px;
  }

  .bh-popup-actions-professional{
    gap:10px;
  }
}


/* ==========================================================
   BHAVYA_POPUP_BRANDING_LAYOUT_FIX_V1
   Keep branding inside the actual premium greeting card.
   ========================================================== */

.bh-home-greeting-card.bh-popup-brand-content{
  grid-template-rows:
    auto
    auto
    auto
    auto
    auto
    auto
    auto
    auto;
  align-items:start;
}

.bh-home-greeting-card.bh-popup-brand-content
.bh-home-greeting-visual{
  grid-column:1;
  grid-row:1 / 9;
  align-self:center;
}

.bh-home-greeting-card.bh-popup-brand-content
.bh-popup-brand-top{
  grid-column:2;
  grid-row:1;
  align-self:end;
  margin:0 0 13px;
}

.bh-home-greeting-card.bh-popup-brand-content
.bh-home-greeting-kicker{
  grid-column:2;
  grid-row:2;
  margin-bottom:10px;
}

.bh-home-greeting-card.bh-popup-brand-content
h2{
  grid-column:2;
  grid-row:3;
}

.bh-home-greeting-card.bh-popup-brand-content
> p{
  grid-column:2;
  grid-row:4;
}

.bh-home-greeting-card.bh-popup-brand-content
.bh-popup-brand-note{
  grid-column:2;
  grid-row:5;
}

.bh-home-greeting-card.bh-popup-brand-content
.bh-popup-feature-row{
  grid-column:2;
  grid-row:6;
}

.bh-home-greeting-card.bh-popup-brand-content
.bh-home-greeting-actions{
  grid-column:2;
  grid-row:7;
}

.bh-home-greeting-card.bh-popup-brand-content
.bh-popup-brand-footer{
  grid-column:2;
  grid-row:8;
}

@media(max-width:760px){

  .bh-home-greeting-card.bh-popup-brand-content{
    display:block;
  }

  .bh-popup-brand-top{
    justify-content:center;
    text-align:left;
    margin:
      0 auto 12px !important;
  }

  .bh-popup-feature-row{
    justify-content:center;
  }

  .bh-popup-brand-footer{
    text-align:center;
  }
}

/* ==========================================================
   BHAVYA_G3G_MOBILE_POPUP_POLISH
   Compact premium greeting presentation for mobile.
   ========================================================== */

@media(max-width:760px){

  /*
   * Keep the popup inside the modern dynamic viewport,
   * including browsers with large bottom navigation bars.
   */
  .bh-home-greeting-popup{
    padding:
      max(8px,env(safe-area-inset-top))
      8px
      max(8px,env(safe-area-inset-bottom));
  }


  .bh-home-greeting-card{
    width:min(520px,calc(100vw - 16px)) !important;

    max-height:
      calc(
        100dvh
        - env(safe-area-inset-top)
        - env(safe-area-inset-bottom)
        - 16px
      ) !important;

    padding:
      15px 14px 16px !important;

    border-radius:23px !important;

    overflow-x:hidden !important;
    overflow-y:auto !important;

    overscroll-behavior:contain;

    -webkit-overflow-scrolling:touch;
  }


  /*
   * Branding stays visible but takes less vertical space.
   */
  .bh-popup-brand-top{
    gap:9px !important;

    margin:
      0 auto 8px !important;
  }


  .bh-popup-brand-logo{
    width:36px !important;
    height:36px !important;

    padding:5px !important;

    border-radius:10px !important;
  }


  .bh-popup-brand-name{
    font-size:13px !important;
    line-height:1.15 !important;
  }


  .bh-popup-brand-tag{
    font-size:8px !important;
    line-height:1.25 !important;

    letter-spacing:.18em !important;
  }


  /*
   * Smaller festival kicker.
   */
  .bh-home-greeting-kicker{
    margin-bottom:7px !important;

    font-size:8px !important;

    letter-spacing:.16em !important;
  }


  /*
   * Portrait remains premium but no longer consumes most
   * of the phone screen.
   */
  .bh-home-greeting-visual{
    width:min(174px,46vw) !important;

    margin:
      3px auto 13px !important;

    aspect-ratio:4 / 5 !important;

    border-radius:18px !important;
  }


  .bh-home-greeting-visual img{
    border-radius:18px !important;
  }


  /*
   * Devanagari headline: readable but compact.
   */
  .bh-home-greeting-card h2{
    max-width:440px;

    margin:
      0 auto !important;

    padding-top:.10em !important;
    padding-bottom:.13em !important;

    font-size:
      clamp(
        25px,
        7vw,
        31px
      ) !important;

    line-height:1.24 !important;
  }


  /*
   * Supporting devotional message.
   */
  .bh-home-greeting-card > p{
    max-width:430px;

    margin:
      8px auto 0 !important;

    font-size:13px !important;
    line-height:1.65 !important;
  }


  .bh-popup-brand-note{
    margin:
      8px auto 9px !important;

    max-width:420px;

    font-size:11.5px !important;
    line-height:1.55 !important;
  }


  /*
   * Compact service identity chips.
   */
  .bh-popup-feature-row{
    display:grid !important;

    grid-template-columns:
      repeat(2,minmax(0,1fr));

    width:100%;

    gap:6px !important;

    margin:
      4px 0 11px !important;
  }


  .bh-popup-feature-chip{
    min-height:29px !important;

    padding:
      6px 7px !important;

    font-size:9.5px !important;

    line-height:1.2 !important;

    text-align:center;
  }


  .bh-popup-feature-chip:nth-child(3){
    grid-column:1 / 3;
  }


  /*
   * Mobile already has strong company branding above.
   * Remove duplicate long footer to keep the greeting focused.
   */
  .bh-popup-brand-footer{
    display:none !important;
  }


  /*
   * Main Website is secondary on a small popup.
   * The visitor can still enter the website after closing.
   */
  .bh-popup-main-link{
    display:none !important;
  }


  /*
   * Keep only the two important actions in one balanced row.
   */
  .bh-home-greeting-actions{
    display:grid !important;

    grid-template-columns:
      minmax(0,1fr)
      auto;

    gap:8px !important;

    width:100%;

    margin-top:10px !important;
  }


  .bh-home-greeting-primary{
    min-height:43px !important;

    padding:
      0 13px !important;

    font-size:13px !important;

    border-radius:13px !important;
  }


  .bh-home-greeting-secondary{
    min-height:43px !important;

    padding:
      0 16px !important;

    font-size:13px !important;

    border-radius:13px !important;
  }


  .bh-home-greeting-close{
    top:9px !important;
    right:9px !important;

    width:38px !important;
    height:38px !important;
  }


  /*
   * IMPORTANT:
   * Do not permanently remove privacy controls on mobile.
   * Hide the floating Cookie Settings pill only while the
   * greeting popup is visibly open.
   *
   * It becomes available again immediately after closing.
   */
  body:has(.bh-home-greeting-popup.show)
  #bhCookieSettings{
    display:none !important;
  }
}


/* Narrow phones */
@media(max-width:390px){

  .bh-home-greeting-card{
    padding:
      13px 12px 14px !important;
  }

  .bh-home-greeting-visual{
    width:min(156px,43vw) !important;
  }

  .bh-home-greeting-card h2{
    font-size:
      clamp(
        23px,
        7vw,
        28px
      ) !important;
  }

  .bh-popup-brand-name{
    font-size:12px !important;
  }
}
