/* PromptSaar premium footer */

.ps-premium-footer{
  position:relative !important;
  overflow:hidden !important;
  margin-top:0 !important;
  border-top:1px solid rgba(255,255,255,.06) !important;
  background:
    radial-gradient(
      circle at 12% 20%,
      rgba(255,107,44,.18),
      transparent 28%
    ),
    radial-gradient(
      circle at 92% 10%,
      rgba(125,93,255,.12),
      transparent 26%
    ),
    linear-gradient(
      145deg,
      #0d0f14,
      #12151d 52%,
      #0c0e13
    ) !important;
  color:#f8fafc !important;
}

.ps-footer-grid-pattern{
  position:absolute;
  inset:0;
  opacity:.16;
  background-image:
    linear-gradient(
      rgba(255,255,255,.035) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255,255,255,.035) 1px,
      transparent 1px
    );
  background-size:34px 34px;
  pointer-events:none;
}

.ps-footer-glow{
  position:absolute;
  left:-120px;
  bottom:-140px;
  width:340px;
  height:340px;
  border-radius:50%;
  filter:blur(90px);
  background:rgba(255,107,44,.14);
  pointer-events:none;
}

.ps-footer-container{
  position:relative;
  z-index:1;
  padding-top:48px !important;
  padding-bottom:18px !important;
}

.ps-footer-top{
  display:grid;
  grid-template-columns:1.35fr 2fr;
  gap:44px;
  align-items:start;
}

.ps-footer-brand-card{
  padding:24px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:22px;
  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.07),
      rgba(255,255,255,.025)
    );
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 16px 45px rgba(0,0,0,.20);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}

.ps-footer-brand{
  display:inline-flex;
  align-items:center;
  gap:12px;
  color:#fff !important;
  text-decoration:none !important;
}

.ps-footer-logo,
.ps-footer-logo-img{
  width:44px !important;
  height:44px !important;
  flex:0 0 auto;
  border-radius:13px !important;
}

.ps-footer-logo{
  display:grid;
  place-items:center;
  background:
    linear-gradient(
      145deg,
      #ff8a55,
      #ff6b2c
    );
  box-shadow:
    0 10px 24px rgba(255,107,44,.28);
  color:#fff;
  font-size:24px;
  font-weight:900;
}

.ps-footer-logo-img{
  display:block;
  object-fit:cover;
  box-shadow:
    0 10px 24px rgba(255,107,44,.22);
}

.ps-footer-brand-name{
  color:#fff;
  font-size:25px;
  font-weight:850;
  letter-spacing:-.5px;
}

.ps-footer-brand-name b{
  color:#ff6b2c;
}

.ps-footer-description{
  max-width:390px;
  margin:18px 0 0 !important;
  color:#a9afbb !important;
  font-size:14px !important;
  line-height:1.75 !important;
}

.ps-footer-badges{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:20px;
}

.ps-footer-badges span{
  padding:7px 10px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:999px;
  background:rgba(255,255,255,.04);
  color:#dfe3ea;
  font-size:11px;
  font-weight:750;
}

.ps-footer-links{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:26px;
}

.ps-footer-column{
  min-width:0;
  padding:4px 0;
}

.ps-footer-column h3{
  margin:0 0 16px;
  color:#fff !important;
  font-size:13px !important;
  font-weight:800;
  letter-spacing:.6px;
  text-transform:uppercase;
}

.ps-footer-column a{
  display:flex !important;
  align-items:center;
  width:max-content;
  max-width:100%;
  margin:0 0 11px !important;
  color:#a9afbb !important;
  text-decoration:none !important;
  font-size:13px !important;
  line-height:1.35;
  transition:
    color .18s ease,
    transform .18s ease;
}

.ps-footer-column a::before{
  content:"";
  width:0;
  height:1px;
  margin-right:0;
  background:#ff6b2c;
  transition:
    width .18s ease,
    margin-right .18s ease;
}

.ps-footer-column a:hover{
  color:#fff !important;
  transform:translateX(2px);
}

.ps-footer-column a:hover::before{
  width:12px;
  margin-right:7px;
}

.ps-footer-divider{
  height:1px;
  margin:34px 0 18px;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,.08) 12%,
      rgba(255,255,255,.08) 88%,
      transparent
    );
}

.ps-footer-bottom{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  color:#858c98;
  font-size:11px;
  text-align:center;
}

.ps-footer-copyright{
  display:block;
  width:100%;
  text-align:center;
}

.ps-back-to-top{
  position:absolute;
  right:0;
  top:50%;
  width:36px;
  height:36px;
  padding:0;
  transform:translateY(-50%);
  border:1px solid rgba(255,255,255,.10);
  border-radius:11px;
  background:rgba(255,255,255,.05);
  color:#fff;
  display:grid;
  place-items:center;
  cursor:pointer;
  transition:
    background .18s ease,
    transform .18s ease,
    border-color .18s ease;
}

.ps-back-to-top:hover{
  border-color:rgba(255,107,44,.55);
  background:rgba(255,107,44,.18);
  transform:translateY(-50%) translateY(-2px);
}

.ps-back-to-top svg{
  width:17px;
  height:17px;
}

/* Remove the large Home-page gap after infinite scroll. */
main:has(#homeEnd){
  margin-bottom:0 !important;
  padding-bottom:0 !important;
}

main:has(#homeEnd) > .container{
  padding-bottom:0 !important;
}

#homeSentinel{
  height:1px !important;
  min-height:1px !important;
}

#homeEnd{
  margin:10px 0 12px !important;
  padding:0 !important;
  min-height:0 !important;
  line-height:1.3 !important;
}

#homeEnd[hidden]{
  display:none !important;
}

@media(max-width:900px){
  .ps-footer-top{
    grid-template-columns:1fr;
    gap:28px;
  }

  .ps-footer-brand-card{
    max-width:none;
  }
}

@media(max-width:620px){
  .ps-footer-container{
    padding-top:30px !important;
  }

  .ps-footer-brand-card{
    padding:20px;
    border-radius:18px;
  }

  .ps-footer-brand-name{
    font-size:22px;
  }

  .ps-footer-logo,
  .ps-footer-logo-img{
    width:40px !important;
    height:40px !important;
  }

  .ps-footer-links{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:24px 18px;
  }

  .ps-footer-column:last-child{
    grid-column:1/-1;
  }

  .ps-footer-bottom{
    padding-right:46px;
    padding-left:46px;
  }

  .ps-footer-copyright{
    line-height:1.45;
  }

  #homeEnd{
    margin:8px 0 10px !important;
  }
}

@media(prefers-reduced-motion:reduce){
  .ps-footer-column a,
  .ps-back-to-top{
    transition:none !important;
  }
}