/*
 * NIGHTPN_GLOBAL_FOOTER_CSS_V2
 *
 * Approved desktop compact V2
 * Approved mobile compact V3
 */

.np-global-footer,
.np-global-footer *{
  box-sizing:border-box;
}


.np-global-footer{
  position:relative;
  isolation:isolate;
  overflow:hidden;

  width:100%;

  padding:
    25px 0 11px;

  border-top:
    1px solid rgba(126,194,250,.08);

  background:
    linear-gradient(
      180deg,
      #071521 0%,
      #06131f 44%,
      #05111c 72%,
      #050f19 100%
    );

  color:#eaf5ff;

  direction:rtl;
}


.np-global-footer::before{
  content:"";

  position:absolute;
  z-index:0;

  top:0;
  left:0;
  right:0;

  height:1px;

  pointer-events:none;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(112,188,250,.15),
      transparent
    );
}


.np-global-footer::after{
  content:"";

  position:absolute;
  z-index:0;

  left:12%;
  right:12%;
  bottom:-118px;

  height:185px;

  pointer-events:none;

  background:
    radial-gradient(
      ellipse at center,
      rgba(181,121,255,.20) 0%,
      rgba(151,99,241,.13) 30%,
      rgba(113,84,216,.07) 50%,
      rgba(75,74,180,.03) 66%,
      transparent 78%
    );

  filter:
    blur(25px);
}


.np-global-footer-shell{
  position:relative;
  z-index:1;

  width:
    min(
      1180px,
      calc(100% - 48px)
    );

  margin:
    0 auto;
}


.np-global-footer-grid{
  display:grid;

  grid-template-columns:
    1.48fr
    .80fr
    .80fr
    .80fr;

  gap:
    34px;

  align-items:start;
}


.np-global-footer-brand{
  min-width:0;
  max-width:380px;
}


.np-global-brand{
  display:inline-flex;

  align-items:center;

  gap:8px;

  margin:
    0 0 8px;

  padding:0;

  background:transparent;

  color:inherit;

  text-decoration:none;
}


.np-global-brand-mark{
  display:grid;
  place-items:center;

  width:42px;
  height:42px;

  min-width:42px;
  flex:0 0 42px;

  border:0;

  background:transparent;

  overflow:visible;
}


.np-global-brand-mark img{
  display:block;

  width:34px;
  height:34px;

  max-width:none;

  object-fit:contain;

  filter:
    drop-shadow(
      0 0 9px
      rgba(92,190,255,.20)
    );
}


.np-global-brand-wordmark{
  display:inline-flex;

  align-items:baseline;

  direction:ltr;

  font-size:18px;

  font-weight:900;

  line-height:1;

  letter-spacing:.025em;
}


.np-global-brand-wordmark b{
  font:inherit;
}


.np-global-brand-night{
  color:#edf8ff;
}


.np-global-brand-pn{
  color:#78c9ff;
}


.np-global-footer-copy{
  max-width:365px;

  margin:0;

  color:#7690a5;

  font-size:10.5px;

  line-height:1.72;
}


.np-global-footer-telegram{
  display:inline-flex;

  align-items:center;

  gap:6px;

  margin-top:9px;

  color:#71caff;

  font-size:10px;

  font-weight:700;

  line-height:1.4;

  text-decoration:none;

  transition:
    color .18s ease,
    opacity .18s ease;
}


.np-global-footer-telegram:hover{
  color:#a9e1ff;
}


.np-global-footer-telegram svg{
  width:15px;
  height:15px;

  flex:0 0 15px;

  fill:currentColor;
}


.np-global-footer-title{
  margin:
    0 0 11px;

  padding:0;

  color:#e9f5ff;

  font-size:13.5px;

  font-weight:800;

  line-height:1.5;
}


.np-global-footer-links{
  display:grid;

  gap:7px;

  margin:0;
  padding:0;
}


.np-global-footer-links a{
  width:max-content;
  max-width:100%;

  color:#7891a6;

  font-size:10.5px;

  font-weight:500;

  line-height:1.65;

  text-decoration:none;

  transition:
    color .18s ease,
    transform .18s ease;
}


.np-global-footer-links a:hover{
  color:#bfeaff;
}


.np-global-footer-copyright{
  display:flex;

  align-items:center;
  justify-content:space-between;

  gap:18px;

  width:100%;

  margin-top:17px;

  padding-top:10px;

  border-top:
    1px solid rgba(124,190,243,.07);

  color:#5f768a;

  font-size:8.5px;

  line-height:1.6;
}


@media (max-width:860px){

  .np-global-footer-grid{
    grid-template-columns:
      1fr 1fr;

    gap:
      25px 22px;
  }

}


@media (max-width:560px){

  .np-global-footer{
    padding:
      24px 0 12px;
  }


  .np-global-footer-shell{
    width:
      calc(100% - 32px);
  }


  .np-global-footer-grid{
    grid-template-columns:
      1fr 1fr;

    gap:
      22px 18px;
  }


  .np-global-footer-brand{
    grid-column:
      1 / -1;

    max-width:none;
  }


  .np-global-brand{
    margin-bottom:
      7px;
  }


  .np-global-brand-mark{
    width:36px;
    height:36px;

    min-width:36px;
    flex-basis:36px;
  }


  .np-global-brand-mark img{
    width:29px;
    height:29px;
  }


  .np-global-brand-wordmark{
    font-size:16px;
  }


  .np-global-footer-copy{
    font-size:9.5px;

    line-height:1.8;
  }


  .np-global-footer-telegram{
    margin-top:8px;

    font-size:9.5px;
  }


  .np-global-footer-title{
    margin:
      0 0 9px;

    font-size:12.5px;
  }


  .np-global-footer-links{
    gap:7px;
  }


  .np-global-footer-links a{
    font-size:9.5px;
  }


  .np-global-footer-company{
    grid-column:
      1 / -1;
  }


  .np-global-footer-company
  .np-global-footer-links{
    grid-template-columns:
      repeat(
        3,
        minmax(0,1fr)
      );

    gap:8px;
  }


  .np-global-footer-company
  .np-global-footer-links a{
    width:auto;

    white-space:nowrap;
  }


  .np-global-footer-copyright{
    flex-direction:column;

    align-items:flex-start;

    gap:3px;

    margin-top:18px;

    padding-top:10px;

    font-size:7.5px;
  }


  .np-global-footer::after{
    left:-28%;
    right:-28%;

    bottom:-118px;

    height:175px;
  }

}

/* =========================================================
   NIGHTPN_GLOBAL_FOOTER_HEADER_BRAND_V1

   Footer brand visually matches approved public header.
   Mark + NIGHT/PN identity only.
========================================================= */


/* Brand row */

.np-global-footer .np-global-brand{
  display:inline-flex !important;
  align-items:center !important;

  gap:9px !important;

  width:max-content !important;

  direction:rtl !important;

  text-decoration:none !important;

  white-space:nowrap !important;
}


/* Circular logo holder */

.np-global-footer
.np-global-brand
.np-global-brand-mark{
  display:grid !important;
  place-items:center !important;

  width:42px !important;
  height:42px !important;

  min-width:42px !important;
  min-height:42px !important;

  flex:0 0 42px !important;

  margin:0 !important;
  padding:0 !important;

  border:
    1px solid
    rgba(122,198,255,.22) !important;

  border-radius:50% !important;

  background:
    radial-gradient(
      circle,
      rgba(22,68,101,.40),
      rgba(4,15,24,.92) 72%
    ) !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.045),
    inset 0 0 12px rgba(106,195,255,.05),
    0 0 0 3px rgba(74,166,231,.025),
    0 0 18px rgba(84,181,244,.11),
    0 6px 16px rgba(0,0,0,.20) !important;

  overflow:hidden !important;

  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease !important;
}


/* Actual NightPN bird mark */

.np-global-footer
.np-global-brand
.np-global-brand-mark
img{
  display:block !important;

  width:34px !important;
  height:34px !important;

  max-width:34px !important;
  max-height:34px !important;

  margin:0 !important;
  padding:0 !important;

  object-fit:contain !important;

  border:0 !important;
  border-radius:50% !important;

  background:transparent !important;

  box-shadow:none !important;

  filter:
    drop-shadow(
      0 0 6px
      rgba(116,203,255,.18)
    ) !important;

  transform:none !important;
}


/* NIGHTPN wordmark */

.np-global-footer
.np-global-brand-wordmark{
  display:inline-flex !important;
  align-items:center !important;

  direction:ltr !important;

  margin:0 !important;
  padding:0 !important;

  font-family:
    Inter,
    "Segoe UI",
    Arial,
    sans-serif !important;

  font-size:18px !important;
  line-height:1 !important;

  font-weight:850 !important;

  letter-spacing:.055em !important;

  text-shadow:
    0 1px 10px
    rgba(0,0,0,.28) !important;
}


.np-global-footer
.np-global-brand-wordmark
b{
  display:inline !important;

  margin:0 !important;
  padding:0 !important;

  font:inherit !important;
}


/* NIGHT = white */

.np-global-footer
.np-global-brand-night{
  color:#f3f7fb !important;
}


/* PN = NightPN cyan */

.np-global-footer
.np-global-brand-pn{
  color:#74caff !important;

  text-shadow:
    0 0 14px
    rgba(90,188,255,.22) !important;
}


/* restrained hover — same language as header */

@media(hover:hover){

  .np-global-footer
  .np-global-brand:hover
  .np-global-brand-mark{
    border-color:
      rgba(122,203,255,.30) !important;

    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.055),
      inset 0 0 13px rgba(106,195,255,.065),
      0 0 0 3px rgba(77,177,244,.035),
      0 0 23px rgba(84,186,250,.16),
      0 7px 18px rgba(0,0,0,.22) !important;
  }


  .np-global-footer
  .np-global-brand:hover
  .np-global-brand-pn{
    color:#84d1ff !important;

    text-shadow:
      0 0 17px
      rgba(102,199,255,.32) !important;
  }

}


/* Mobile = header proportions */

@media(max-width:560px){

  .np-global-footer
  .np-global-brand{
    gap:8px !important;
  }


  .np-global-footer
  .np-global-brand
  .np-global-brand-mark{
    width:36px !important;
    height:36px !important;

    min-width:36px !important;
    min-height:36px !important;

    flex-basis:36px !important;
  }


  .np-global-footer
  .np-global-brand
  .np-global-brand-mark
  img{
    width:29px !important;
    height:29px !important;

    max-width:29px !important;
    max-height:29px !important;
  }


  .np-global-footer
  .np-global-brand-wordmark{
    font-size:16px !important;
  }

}
