/* NORTHFALL UI PATCH v2.8 */

*{box-sizing:border-box}
:root{
  --bg:#050505;
  --gold:#d8b761;
  --gold2:#ad7b2e;
  --line:rgba(216,183,97,.34);
  --text:#f4efe3;
  --muted:#b9ad9a;
  --panel:rgba(17,15,12,.82);
}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at top center,rgba(149,105,38,.18),transparent 34%),
    linear-gradient(180deg,#050505 0%,#090704 52%,#030303 100%);
  color:var(--text);
  font-family:Arial,Helvetica,sans-serif;
  font-size:15px;
}
a{color:inherit;text-decoration:none}
h1,h2,h3,p{margin-top:0}
.muted{color:var(--muted)}

/* верхняя строка меньше и всегда сверху */
.nfTop{
  height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  padding:0 10vw;
  background:rgba(0,0,0,.93);
  border-bottom:1px solid var(--line);
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:100;
  backdrop-filter:blur(10px);
}
.nfBrand{
  display:flex;
  align-items:center;
  gap:13px;
  font-weight:900;
  letter-spacing:4px;
  font-size:20px;
}
.nfLogo{
  width:42px;
  height:42px;
  border:1px solid var(--gold);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--gold);
  font-weight:900;
  font-size:18px;

  position: relative;
  left: 1px;
  top: 1px;
  
}
.nfLogo img {
  width: 270%;
  height: 270%;
  object-fit: contain;
  position: relative;
  left: -1px;
  top: 4px;
}
.nfNav{
  display:flex;
  align-items:center;
  gap:28px;
  margin-left:auto;
}
.nfNav a{
  height:44px;
  min-width:auto;
  padding:0 6px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:0;
  background:transparent;
  font-weight:900;
  font-size:18px;
  position:relative;
  color:var(--text);
}
.nfNav a:hover,
.nfNav a.active{
  color:var(--gold);
}
.nfNav a.active::after,
.nfNav a:hover::after{
  content:"";
  position:absolute;
  left:6px;
  right:6px;
  bottom:3px;
  height:2px;
  background:var(--gold);
  box-shadow:0 0 10px rgba(216,183,97,.6);
}
.steamAvatarLink{
  width:48px;
  height:48px;
  border-radius:12px;
  border:1px solid rgba(216,183,97,.32);
  background:rgba(216,183,97,.08);
  display:flex;
  align-items:center;
  justify-content:center;
  margin-left:10px;
  overflow:hidden;
}
.steamAvatarLink img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.steamAvatarFallback{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--gold);
  font-weight:900;
  font-size:22px;
}
.steamAvatarLink:hover{
  box-shadow:0 0 18px rgba(216,183,97,.28);
}
.adminShield{
  color:var(--gold);
  margin-left:-20px;
  font-size:17px;
}

/* вторая строка меньше, уходит при прокрутке */
.nfStatusBar{
  min-height:46px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  padding:5px 10vw;
  margin-top:72px;
  background:rgba(13,10,6,.90);
  border-bottom:1px solid rgba(216,183,97,.22);
  position:relative;
  z-index:30;
}
.nfPills{
  display:flex;
  gap:28px;
  flex-wrap:wrap;
  align-items:center;
}
.nfPill{
  min-height:34px;
  padding:5px 0;
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--text);
  font-size:16px;
  cursor:pointer;
  position:relative;
}
.nfPill b{color:var(--gold)}
.nfPill:hover{color:var(--gold)}
.ipPill{position:relative}
.ipPill::after{
  content:"";
  position:absolute;
  left:0;
  top:100%;
  width:210px;
  height:12px;
  display:none;
}
.ipPill:hover::after{display:block}
.ipPill:hover .ipTooltip,
.ipTooltip:hover{display:block!important}
.ipTooltip{
  display:none;
  position:absolute;
  top:calc(100% + 10px);
  left:-10px;
  width:190px;
  padding:13px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(9,8,7,.97);
  color:var(--text);
  box-shadow:0 18px 40px rgba(0,0,0,.45);
  pointer-events:auto;
  z-index:300;
}
.ipTooltip::before{
  content:"";
  position:absolute;
  top:-7px;
  left:24px;
  width:13px;
  height:13px;
  transform:rotate(45deg);
  background:rgba(9,8,7,.97);
  border-left:1px solid var(--line);
  border-top:1px solid var(--line);
}
.ipTooltip p{margin:0 0 8px}
.copyIpBtn{
  width:auto!important;
  min-height:30px!important;
  padding:0 10px!important;
  font-size:13px!important;
  border-radius:8px!important;
  margin-top:4px!important;
  color:#120d04!important;
  transition:.08s;
}
.copyIpBtn:active,
.copyIpBtn.pressed{
  transform:scale(.94);
  filter:brightness(.88);
}
.copyMsg{
  display:none;
  position:absolute;
  left:205px;
  top:92px;
  min-width:120px;
  padding:9px 12px;
  border:1px solid rgba(216,183,97,.25);
  border-radius:10px;
  background:rgba(10,10,10,.95);
  color:var(--text);
  font-size:13px;
  box-shadow:0 12px 30px rgba(0,0,0,.38);
}
.copyMsg.show{display:block}
.copyMsg b{color:#40e07b}

/* layout */
.container{
  width:min(1240px,calc(100% - 44px));
  margin:0 auto;
  padding:125px 0 90px;
}
.hero{text-align:center;padding:18px 0 42px;margin-top:-55px}
.heroSmall{
  color:var(--gold);
  letter-spacing:8px;
  font-size:17px;
  font-weight:900;
  margin-bottom:30px;
}
.logoTitle{
  font-size:clamp(76px,9vw,138px);
  line-height:.9;
  letter-spacing:9px;
  font-weight:900;
  color:#f2eadc;
  text-shadow:0 0 38px rgba(216,183,97,.32);
  animation:nfAppear 1.1s ease both;
}
@keyframes nfAppear{
  from{opacity:0;transform:translateY(18px) scale(.96)}
  to{opacity:1;transform:none}
}
.panel,.homeCard,.newsCard{
  border:1px solid var(--line);
  border-radius:22px;
  background:linear-gradient(180deg,rgba(26,22,17,.82),rgba(7,7,7,.78));
  box-shadow:0 18px 50px rgba(0,0,0,.38);
}
.playerPanel{
  width:min(660px,100%);
  margin:0 auto 22px;
  padding:24px 28px;
  display:flex;
  align-items:center;
  gap:16px;
  text-align:left;
}
.playerAvatar{
  width:62px;
  height:62px;
  border-radius:50%;
  border:1px solid var(--gold);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--gold);
  font-weight:900;
  font-size:28px;
  background:rgba(216,183,97,.08);
  overflow:hidden;
}
.playerAvatar img{width:100%;height:100%;object-fit:cover}
.playerPanel b{color:var(--gold)}
.playerButtons{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.playerButtons a{
  height:46px;
  padding:0 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:13px;
  font-weight:900;
  background:rgba(255,255,255,.04);
}
.promoPanel{width:min(660px,100%);margin:0 auto 60px;padding:20px}
.formRow{display:flex;gap:10px}
input,button,select,textarea{
  min-height:46px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.62);
  color:var(--text);
  padding:0 14px;
  font-size:14px;
}
input{width:100%}
button,.btn{
  border:1px solid var(--line);
  cursor:pointer;
  background:linear-gradient(90deg,#e4c268,#a8792d);
  color:#120d04;
  font-weight:900;
}
.formRow button{width:210px}

.homeCards{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
  margin-bottom:58px;
}
.homeCard{
  min-height:205px;
  padding:26px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  position:relative;
  overflow:hidden;
}
.homeCard::before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 20% 0%,rgba(216,183,97,.18),transparent 35%);
}
.homeCard>*{position:relative}
.homeIcon{
  font-size:42px;
  line-height:1;
  margin-bottom:18px;
  color:var(--gold);
  filter:drop-shadow(0 0 10px rgba(216,183,97,.22));
}
.homeCard h2{font-size:30px;margin-bottom:14px}
.homeCard p{color:var(--muted);font-size:17px}
.homeCard b{color:var(--gold);margin-top:14px}
.sectionLabel{
  color:var(--gold);
  letter-spacing:6px;
  font-size:16px;
  font-weight:900;
  margin-bottom:8px;
}
.sectionTitle{font-size:44px;margin-bottom:24px}
.newsGrid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.newsCard{padding:28px;min-height:150px}
.newsCard h3{font-size:28px;margin-bottom:14px}
.newsCard p{color:var(--muted);font-size:17px}

/* other pages */
.productGrid,.inventoryGrid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.product,.inventoryItem,.reward,.statCard,.adminPanel,.caseBox{
  border:1px solid var(--line);
  border-radius:20px;
  background:linear-gradient(180deg,rgba(26,22,17,.82),rgba(7,7,7,.78));
  padding:16px;
}
.product img,.inventoryItem img,.reward img,.itemImage{
  width:100%;height:130px;object-fit:contain;border-radius:15px;background:rgba(0,0,0,.35);margin-bottom:12px;
}
.product h3,.inventoryItem h3{font-size:20px;margin-bottom:8px}
.product button,.inventoryItem button{width:100%;margin-top:10px}
.searchBar{margin-bottom:18px}
table{width:100%;border-collapse:collapse;border-radius:16px;overflow:hidden}
th,td{padding:13px 14px;border-bottom:1px solid rgba(216,183,97,.15);text-align:left}
th{background:rgba(216,183,97,.08);color:var(--gold)}
.statsGrid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.adminGrid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.rewardsRow{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}

@media(max-width:1100px){
  .nfTop{height:auto;min-height:72px;padding:12px 24px;flex-wrap:wrap}
  .nfStatusBar{margin-top:72px;padding-left:24px;padding-right:24px;flex-wrap:wrap}
  .nfNav{margin-left:0;overflow-x:auto}
  .container{padding-top:135px}
  .homeCards,.productGrid,.inventoryGrid{grid-template-columns:repeat(2,1fr)}
  .newsGrid,.statsGrid,.adminGrid,.rewardsRow{grid-template-columns:1fr}
}
@media(max-width:640px){
  .container{width:calc(100% - 28px);padding-top:155px}
  .homeCards,.productGrid,.inventoryGrid{grid-template-columns:1fr}
  .formRow{flex-direction:column}
  .formRow button{width:100%}
  .playerPanel{align-items:flex-start}
  .logoTitle{font-size:58px}
}


/* NORTHFALL v2.9 ICON FIX */

.homeCard {
  justify-content: flex-start !important;
  padding-top: 28px !important;
}

.homeIcon {
  width: 70px !important;
  height: 70px !important;
  margin-bottom: 22px !important;
  color: var(--gold) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.homeIcon svg {
  width: 64px !important;
  height: 64px !important;
  stroke: var(--gold) !important;
  fill: none !important;
  stroke-width: 2.4 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  filter: drop-shadow(0 0 10px rgba(216,183,97,.24));
}

.homeCard h2 {
  margin-top: 4px !important;
}

.homeCard b {
  margin-top: auto !important;
  padding-top: 18px !important;
}

body .container .hero {
  padding-top: 0 !important;
  padding-bottom: 70px !important;
  margin-top: -45px !important;
  margin-bottom: 0 !important;
}
.loginLogoImage {
  width: 74px;
  height: 74px;
  min-width: 74px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.loginLogoImage img {
  width: 250%;
  height: 250%;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(216,183,97,.34));
}

.nfBrand .nfLogo {
  overflow: visible !important;
  border: 0 !important;
}

.nfBrand .nfLogo img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(216,183,97,.28));
}
.roulettePage{padding-top:10px}
.caseSelectGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:24px 0}
.caseSelect{min-height:230px;border:1px solid rgba(216,183,97,.28);border-radius:22px;background:linear-gradient(180deg,rgba(27,22,16,.82),rgba(7,7,7,.78));display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:24px;transition:.18s;overflow:hidden;position:relative}
.caseSelect::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at center,rgba(216,183,97,.13),transparent 45%);opacity:0;transition:.18s}
.caseSelect:hover::before,.caseSelect.active::before{opacity:1}
.caseSelect:hover,.caseSelect.active{border-color:var(--gold);transform:translateY(-2px);box-shadow:0 0 28px rgba(216,183,97,.16)}
.caseImageWrap{width:170px;height:120px;display:flex;align-items:center;justify-content:center;position:relative}
.caseImageWrap img{max-width:100%;max-height:100%;object-fit:contain;filter:drop-shadow(0 0 18px rgba(216,183,97,.22))}
.caseSelect h2{position:relative;margin:0;font-size:25px;text-align:center}
.caseSelect p{position:relative;margin:0;color:var(--gold);font-weight:800}
.roulettePanel{border:1px solid rgba(216,183,97,.30);border-radius:24px;background:linear-gradient(180deg,rgba(26,22,17,.82),rgba(7,7,7,.78));padding:26px;box-shadow:0 20px 60px rgba(0,0,0,.38)}
.rouletteHead{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.rouletteHead h2{font-size:30px;margin-bottom:8px}
.rouletteHead b{color:var(--gold)}
.rouletteWindow{position:relative;height:250px;overflow:hidden;border:1px solid rgba(216,183,97,.28);border-radius:22px;background:rgba(0,0,0,.45);box-shadow:inset 0 0 40px rgba(216,183,97,.05)}
.rouletteWindow::before,.rouletteWindow::after{content:"";position:absolute;top:0;bottom:0;width:120px;z-index:4;pointer-events:none}
.rouletteWindow::before{left:0;background:linear-gradient(90deg,#050505,transparent)}
.rouletteWindow::after{right:0;background:linear-gradient(270deg,#050505,transparent)}
.roulettePointer{position:absolute;left:50%;top:0;transform:translateX(-50%);width:0;height:0;border-left:18px solid transparent;border-right:18px solid transparent;border-top:32px solid var(--gold);filter:drop-shadow(0 0 14px rgba(216,183,97,.65));z-index:6}
.rouletteTrack{height:100%;display:flex;align-items:center;gap:18px;padding:0 36px;will-change:transform}
.rouletteItem{flex:0 0 160px;height:170px;border:1px solid rgba(216,183,97,.22);border-radius:18px;background:linear-gradient(180deg,rgba(216,183,97,.08),rgba(0,0,0,.48));display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;padding:16px;box-shadow:0 12px 34px rgba(0,0,0,.26)}
.rouletteItem img{width:78px;height:78px;object-fit:contain;filter:drop-shadow(0 0 10px rgba(216,183,97,.18))}
.rouletteItem b{font-size:16px}
.rouletteItem.win{border-color:var(--gold);box-shadow:0 0 26px rgba(216,183,97,.32);transform:scale(1.04)}
.spinBtn{width:260px;min-height:62px;margin:24px auto 0;display:flex;font-size:22px;letter-spacing:1px}
.rouletteResult{margin-top:22px;padding:26px;border:1px solid var(--gold);border-radius:18px;background:rgba(216,183,97,.07);text-align:center}
.rouletteResult h2{margin:0 0 10px}
.rouletteResult span{color:var(--gold)}
.rouletteResult p{margin:0;color:var(--muted)}
@media(max-width:900px){.caseSelectGrid{grid-template-columns:1fr}.roulettePanel{padding:18px}.rouletteItem{flex-basis:140px}}

.roulette-hero {
    text-align: center;
    margin: -60px 0 60px;
}

.roulette-subtitle {
    color: #D4AF37;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 0px;
}

.roulette-title {
    color: #F5F1E8;
    font-size: 70px;
    font-weight: 800;
    letter-spacing: 22px;
    text-transform: uppercase;
    text-shadow:
        0 0 25px rgba(212,175,55,0.12),
        0 0 60px rgba(212,175,55,0.08);
    margin: 0;
}
.roulette-description {
    color: rgba(255,255,255,0.7);
    font-size: 18px;
    margin-top: 25px;
    text-align: center;
}
.rouletteHead {
  justify-content: center !important;
  text-align: center !important;
}

.rouletteHead > div {
  width: 100% !important;
  text-align: center !important;
}

.rouletteHead h2 {
  text-align: center !important;
}

.rouletteHead p {
  text-align: center !important;
}
.spinBtn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.spinBtn {
  font-size: 24px !important;
  font-weight: 900 !important;
}
.leaderboardPage {
  padding-top: 0px;
}

.leaderHero {
  text-align: left;
  margin-bottom: 20px;
}

.leaderHero h1 {
  font-size: 52px;
  line-height: 1;
  margin: 8px 0 10px;
  color: #f4efe3;
}

.leaderHero p {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
}

.leaderSorts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0 18px;
}

.leaderSorts a {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(216,183,97,.32);
  border-radius: 14px;
  background: rgba(216,183,97,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #f4efe3;
  transition: .15s;
}

.leaderSorts a:hover,
.leaderSorts a.active {
  color: #120d04;
  background: linear-gradient(90deg, #e8c86c, #a8792d);
  box-shadow: 0 0 22px rgba(216,183,97,.18);
  transform: translateY(-1px);
}

.leaderStats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 18px;
}

.leaderStatCard {
  border: 1px solid rgba(216,183,97,.24);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(26,22,17,.72), rgba(7,7,7,.62));
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.leaderStatCard span {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(216,183,97,.08);
  border: 1px solid rgba(216,183,97,.24);
  font-size: 24px;
}

.leaderStatCard b {
  color: var(--gold);
  font-size: 20px;
}

.leaderStatCard p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.leaderTablePanel {
  border: 1px solid rgba(216,183,97,.30);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(216,183,97,.08), transparent 35%),
    linear-gradient(180deg, rgba(26,22,17,.78), rgba(7,7,7,.78));
  box-shadow: 0 22px 70px rgba(0,0,0,.42);
  padding: 26px;
  overflow-x: auto;
}

.leaderTable {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.leaderTable th {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 1.6px;
  padding: 18px;
  text-align: left;
  border-bottom: 1px solid rgba(216,183,97,.26);
  background: transparent;
}

.leaderTable td {
  padding: 19px 18px;
  border-bottom: 1px solid rgba(216,183,97,.16);
  font-size: 18px;
  color: #f4efe3;
}

.leaderTable tbody tr {
  transition: .15s;
}

.leaderTable tbody tr:hover {
  background: rgba(216,183,97,.055);
}

.placeCell {
  width: 90px;
  color: var(--gold) !important;
  font-weight: 900;
}

.placeCell span {
  min-width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.playerName {
  display: flex;
  align-items: center;
  gap: 11px;
}

.playerDot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(216,183,97,.6);
  box-shadow: 0 0 10px rgba(216,183,97,.45);
}

.placeGold {
  background: linear-gradient(90deg, rgba(255,207,80,.18), transparent 72%);
}

.placeGold td {
  border-bottom-color: rgba(255,207,80,.36);
}

.placeGold .placeCell span {
  background: rgba(255,207,80,.16);
  border: 1px solid rgba(255,207,80,.45);
  box-shadow: 0 0 22px rgba(255,207,80,.17);
}

.placeGold .playerName b {
  color: #ffd45f;
}

.placeSilver {
  background: linear-gradient(90deg, rgba(215,225,235,.13), transparent 72%);
}

.placeSilver .placeCell span {
  background: rgba(215,225,235,.12);
  border: 1px solid rgba(215,225,235,.36);
}

.placeSilver .playerName b {
  color: #e8edf2;
}

.placeBronze {
  background: linear-gradient(90deg, rgba(190,112,50,.13), transparent 72%);
}

.placeBronze .placeCell span {
  background: rgba(190,112,50,.13);
  border: 1px solid rgba(190,112,50,.34);
}

.placeBronze .playerName b {
  color: #d98a47;
}

@media(max-width: 900px) {
  .leaderHero {
    text-align: center;
  }

  .leaderHero h1 {
    font-size: 44px;
  }

  .leaderSorts {
    justify-content: center;
  }

  .leaderStats {
    grid-template-columns: 1fr;
  }

  .leaderTablePanel {
    padding: 16px;
  }
}
.container {
  padding-top: 88px !important;
}

.leaderboardPage {
  padding-top: 0 !important;
  margin-top: -20px !important;
}

.leaderHero {
  margin-bottom: 18px !important;
}

.leaderHero h1 {
  font-size: 56px !important;
  margin: 4px 0 8px !important;
}

.leaderSorts {
  margin: 18px 0 16px !important;
}

.leaderStats {
  margin-bottom: 16px !important;
}

/* таблица компактнее, чтобы TOP 20 смотрелся нормально */
.leaderTablePanel {
  padding: 22px 26px !important;
}

.leaderTable td {
  padding: 14px 18px !important;
  font-size: 17px !important;
}

.leaderTable th {
  padding: 15px 18px !important;
}

.placeCell span {
  min-width: 34px !important;
  height: 34px !important;
}

/* если только на странице лидерборда нужно выше */
body:has(.leaderboardPage) .container {
  padding-top: 88px !important;
}
.cabinetPage{margin-top:-18px}.cabinetHero{margin-bottom:18px}.cabinetHero h1{font-size:50px;line-height:1;margin:6px 0 0}
.cabinetProfile{border:1px solid rgba(216,183,97,.30);border-radius:22px;background:radial-gradient(circle at left,rgba(216,183,97,.10),transparent 36%),linear-gradient(180deg,rgba(26,22,17,.76),rgba(7,7,7,.72));padding:24px;display:flex;align-items:center;gap:22px;box-shadow:0 18px 55px rgba(0,0,0,.34)}
.cabinetAvatar{width:78px;height:78px;min-width:78px;border:1px solid var(--gold);border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--gold);background:rgba(216,183,97,.08);overflow:hidden;font-size:34px;font-weight:900}.cabinetAvatar img{width:100%;height:100%;object-fit:cover}
.cabinetProfile h2{font-size:30px;margin:0 0 12px}.cabinetProfile p{margin:8px 0;color:var(--muted);font-size:17px}.cabinetProfile b{color:var(--gold)}
.cabinetStats{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin:18px 0}.cabinetStat{border:1px solid rgba(216,183,97,.26);border-radius:17px;background:linear-gradient(180deg,rgba(26,22,17,.70),rgba(7,7,7,.62));padding:15px 18px;min-height:88px;position:relative;overflow:hidden}.cabinetStat::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at top left,rgba(216,183,97,.10),transparent 45%)}.cabinetStat>*{position:relative}.cabinetStat span{float:right;opacity:.55;font-size:18px}.cabinetStat p{margin:0 0 7px;font-size:15px;color:#f4efe3}.cabinetStat b{color:var(--gold);font-size:27px}
.cabinetGrid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.cabinetPanel{border:1px solid rgba(216,183,97,.28);border-radius:22px;background:radial-gradient(circle at top left,rgba(216,183,97,.07),transparent 34%),linear-gradient(180deg,rgba(26,22,17,.74),rgba(7,7,7,.74));padding:24px;box-shadow:0 18px 55px rgba(0,0,0,.32)}.cabinetPanel h2{font-size:30px;margin-bottom:12px}
.cabinetItemList,.historyList,.incomeList{display:flex;flex-direction:column;gap:12px;margin-top:18px}.cabinetItem{display:grid;grid-template-columns:70px 1fr auto;align-items:center;gap:14px;min-height:78px;padding:10px;border:1px solid rgba(216,183,97,.20);border-radius:16px;background:rgba(0,0,0,.24)}.cabinetItemImg{width:58px;height:58px;border:1px solid rgba(216,183,97,.22);border-radius:14px;background:rgba(0,0,0,.28);display:flex;align-items:center;justify-content:center}.cabinetItemImg img{width:44px;height:44px;object-fit:contain;filter:drop-shadow(0 0 8px rgba(216,183,97,.16))}.cabinetItem b{font-size:17px}.cabinetItem p{margin:6px 0 0;color:var(--muted);font-size:14px}.cabinetItem button{min-height:42px;padding:0 16px;border-radius:12px;font-size:14px}
.historyRow,.incomeRow{min-height:54px;padding:0 16px;border:1px solid rgba(216,183,97,.22);border-radius:15px;background:rgba(0,0,0,.24);display:flex;align-items:center;justify-content:space-between;gap:14px}.historyRow b,.incomeRow strong{color:var(--gold)}.incomeRow p{margin:5px 0 0;color:var(--muted);font-size:13px}.incomeRow b{color:#f4efe3}.coinIncomePanel{grid-column:1/-1}
@media(max-width:1000px){.cabinetStats{grid-template-columns:repeat(2,1fr)}.cabinetGrid{grid-template-columns:1fr}}@media(max-width:640px){.cabinetProfile{align-items:flex-start}.cabinetStats{grid-template-columns:1fr}.cabinetItem{grid-template-columns:56px 1fr}.cabinetItem button{grid-column:1/-1;width:100%}}
.nf-income-panel {
    margin-top: 22px;
}

.nf-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.nf-small-label {
    display: block;
    font-size: 11px;
    letter-spacing: 2px;
    color: rgba(212, 175, 55, 0.75);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.nf-panel-head h2 {
    margin: 0;
    color: #f5d778;
    font-size: 22px;
    font-weight: 700;
}

.nf-panel-tag {
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(212, 175, 55, 0.08);
    color: #d6b85a;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
}

.nf-income-list {
    display: grid;
    gap: 10px;
}

.nf-income-item {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(212, 175, 55, 0.13);
    background: linear-gradient(135deg, rgba(255,255,255,0.035), rgba(212,175,55,0.045));
    border-radius: 14px;
    transition: 0.2s ease;
}

.nf-income-item:hover {
    border-color: rgba(212, 175, 55, 0.35);
    background: linear-gradient(135deg, rgba(255,255,255,0.055), rgba(212,175,55,0.075));
    transform: translateY(-1px);
}

.nf-income-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(212, 175, 55, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.nf-income-icon img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.nf-income-title {
    color: #f2f2f2;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.nf-income-desc {
    color: rgba(255,255,255,0.55);
    font-size: 12px;
}

.nf-income-date {
    color: rgba(255,255,255,0.35);
    font-size: 11px;
    margin-top: 4px;
}

.nf-income-amount {
    color: #f5d778;
    font-size: 18px;
    font-weight: 800;
    white-space: nowrap;
}

.nf-income-amount.plus::before {
    content: "+";
}

.nf-empty-income {
    padding: 18px;
    border-radius: 14px;
    border: 1px dashed rgba(212, 175, 55, 0.22);
    color: rgba(255,255,255,0.45);
    text-align: center;
    font-size: 14px;
}.nf-coins-section {
    margin-top: 26px;
    padding: 26px;
    border: 1px solid rgba(214, 175, 55, 0.22);
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(214, 175, 55, 0.10), transparent 34%),
        linear-gradient(145deg, rgba(18, 15, 9, 0.96), rgba(4, 4, 4, 0.98));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.nf-coins-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 22px;
}

.nf-section-kicker {
    color: #d6b45c;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.nf-coins-head h2 {
    margin: 0;
    color: #fff7df;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.nf-coins-head p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 15px;
}

.nf-coins-balance-card {
    min-width: 170px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(245, 215, 120, 0.35);
    background: linear-gradient(145deg, rgba(214, 175, 55, 0.18), rgba(0, 0, 0, 0.38));
    text-align: right;
}

.nf-coins-balance-card span {
    display: block;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    margin-bottom: 4px;
}

.nf-coins-balance-card strong {
    color: #f5d778;
    font-size: 26px;
    font-weight: 950;
}

.nf-coins-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.nf-coin-stat {
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(214, 175, 55, 0.16);
    background: rgba(255, 255, 255, 0.035);
}

.nf-coin-stat span {
    display: block;
    color: rgba(255, 255, 255, 0.48);
    font-size: 13px;
    margin-bottom: 5px;
}

.nf-coin-stat strong {
    color: #f5d778;
    font-size: 22px;
    font-weight: 900;
}

.nf-coins-history {
    display: grid;
    gap: 12px;
}

.nf-coin-row {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 15px 18px;
    border-radius: 18px;
    border: 1px solid rgba(214, 175, 55, 0.18);
    background:
        linear-gradient(90deg, rgba(214, 175, 55, 0.08), transparent 45%),
        rgba(0, 0, 0, 0.34);
    transition: 0.18s ease;
}

.nf-coin-row:hover {
    transform: translateY(-1px);
    border-color: rgba(245, 215, 120, 0.38);
    background:
        linear-gradient(90deg, rgba(214, 175, 55, 0.13), transparent 50%),
        rgba(0, 0, 0, 0.44);
}

.nf-coin-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    color: #171009;
    font-size: 16px;
    font-weight: 950;
    letter-spacing: -1px;

    background:
        radial-gradient(circle at 35% 25%, #fff0a8 0%, #f5d778 22%, #c8922e 58%, #70480d 100%);
    border: 2px solid rgba(255, 232, 150, 0.8);
    box-shadow:
        inset 0 2px 8px rgba(255, 255, 255, 0.28),
        inset 0 -8px 16px rgba(0, 0, 0, 0.28),
        0 0 22px rgba(214, 175, 55, 0.18);
}

.nf-coin-icon.dark {
    background:
        radial-gradient(circle at 35% 25%, #4a3920 0%, #23180c 45%, #090807 100%);
    color: #d6b45c;
    border-color: rgba(214, 175, 55, 0.32);
}

.nf-coin-info h3 {
    margin: 0;
    color: #fff;
    font-size: 17px;
    font-weight: 900;
}

.nf-coin-info p {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 14px;
}

.nf-coin-info small {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.32);
    font-size: 12px;
}

.nf-coin-amount {
    font-size: 24px;
    font-weight: 950;
    white-space: nowrap;
}

.nf-coin-amount.plus {
    color: #f5d778;
    text-shadow: 0 0 16px rgba(245, 215, 120, 0.18);
}

.nf-coin-amount.minus {
    color: #ff7272;
    text-shadow: 0 0 16px rgba(255, 80, 80, 0.15);
}

.minus-row {
    opacity: 0.88;
}
@media (max-width: 900px) {
    .nf-coins-head {
        flex-direction: column;
    }

    .nf-coins-balance-card {
        width: 100%;
        text-align: left;
    }

    .nf-coins-stats {
        grid-template-columns: 1fr;
    }

    .nf-coin-row {
        grid-template-columns: 48px 1fr;
    }

    .nf-coin-amount {
        grid-column: 2;
        font-size: 21px;
        margin-top: 4px;
    }

    .nf-coin-icon {
        width: 46px;
        height: 46px;
        font-size: 14px;
    }
}
/* NORTHFALL IP popup compact fix */
.ipPill::after{
  width: 165px !important;
  height: 10px !important;
}

.ipTooltip{
  width: 155px !important;
  padding: 9px 10px !important;
  border-radius: 10px !important;
  top: calc(100% + 8px) !important;
  left: -8px !important;
}

.ipTooltip::before{
  left: 20px !important;
  width: 10px !important;
  height: 10px !important;
  top: -6px !important;
}

.ipTooltip p{
  margin: 0 0 5px !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
}

.copyIpBtn{
  width: 100% !important;
  min-height: 26px !important;
  padding: 0 8px !important;
  margin-top: 5px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
}

.copyMsg{
  display: none;
  position: static !important;
  min-width: 0 !important;
  width: 100% !important;
  margin-top: 6px !important;
  padding: 5px 8px !important;
  border-radius: 8px !important;
  background: rgba(10,10,10,.95) !important;
  border: 1px solid rgba(216,183,97,.28) !important;
  color: #f5d778 !important;
  box-shadow: none !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  text-align: center !important;
}

.copyMsg.show{
  display: block !important;
}
.nfFlash{
  width:min(100%, 760px);
  margin:0 auto 18px;
  padding:14px 18px;
  border-radius:16px;
  border:1px solid rgba(216,183,97,.36);
  background:linear-gradient(180deg,rgba(26,22,17,.92),rgba(7,7,7,.88));
  color:#f4efe3;
  font-size:17px;
  font-weight:900;
  text-align:center;
  box-shadow:0 14px 40px rgba(0,0,0,.34);
  animation:nfFlashIn .18s ease both;
}
.nfFlash-success{
  border-color:rgba(79, 226, 136, .45);
  background:linear-gradient(180deg,rgba(30,58,38,.85),rgba(7,7,7,.88));
  color:#d8ffe5;
}
.nfFlash-error{
  border-color:rgba(255,98,98,.42);
  background:linear-gradient(180deg,rgba(70,18,18,.86),rgba(7,7,7,.88));
  color:#ffd6d6;
}
@keyframes nfFlashIn{
  from{opacity:0;transform:translateY(-6px)}
  to{opacity:1;transform:none}
}
.promoInlineRow{
  align-items:center !important;
  flex-wrap:wrap !important;
}

.promoInlineRow input{
  flex:1 1 360px !important;
}

.promoInlineRow button{
  width:auto !important;
  min-width:190px !important;
  flex:0 0 auto !important;
}

.promoInlineMsg{
  min-height:46px;
  padding:0 16px;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  font-weight:900;
  line-height:1;
  white-space:nowrap;
  border:1px solid rgba(216,183,97,.28);
  background:rgba(0,0,0,.36);
  box-shadow:0 12px 30px rgba(0,0,0,.20);
}

.promoInlineMsg.success{
  color:#f5d778;
  border-color:rgba(245,215,120,.48);
  background:linear-gradient(90deg,rgba(216,183,97,.13),rgba(0,0,0,.28));
}

.promoInlineMsg.error{
  color:#ff8d8d;
  border-color:rgba(255,105,105,.42);
  background:linear-gradient(90deg,rgba(120,20,20,.24),rgba(0,0,0,.28));
}

@media(max-width:700px){
  .promoInlineRow button,
  .promoInlineMsg{
    width:100% !important;
  }
}
button,
.btn,
a.btn,
input[type="button"],
input[type="submit"],
.copyIpBtn,
.mini-btn,
.spinBtn,
.nfNav a,
.nfPill,
.playerButtons a,
.leaderSorts a,
.caseSelect,
.shop-filter,
.filterBtn,
.promo-submit,
.promo-button {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  transition:
    transform .10s ease,
    filter .10s ease,
    box-shadow .16s ease,
    border-color .16s ease,
    background .16s ease,
    color .16s ease !important;
  will-change: transform;
}

button:hover,
.btn:hover,
a.btn:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
.copyIpBtn:hover,
.mini-btn:hover,
.spinBtn:hover,
.nfNav a:hover,
.nfPill:hover,
.playerButtons a:hover,
.leaderSorts a:hover,
.caseSelect:hover,
.shop-filter:hover,
.filterBtn:hover,
.promo-submit:hover,
.promo-button:hover {
  transform: translateY(-1px);
}

button:active,
.btn:active,
a.btn:active,
input[type="button"]:active,
input[type="submit"]:active,
.copyIpBtn:active,
.mini-btn:active,
.spinBtn:active,
.nfNav a:active,
.nfPill:active,
.playerButtons a:active,
.leaderSorts a:active,
.caseSelect:active,
.shop-filter:active,
.filterBtn:active,
.promo-submit:active,
.promo-button:active,
.nf-clicking {
  transform: translateY(1px) scale(.965) !important;
  filter: brightness(.88) saturate(1.08) !important;
  box-shadow: 0 0 0 rgba(0,0,0,0) !important;
}

button:disabled,
.btn:disabled,
.spinBtn:disabled,
input[type="button"]:disabled,
input[type="submit"]:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none !important;
  filter: none !important;
}

button::after,
.btn::after,
a.btn::after,
input[type="button"]::after,
input[type="submit"]::after,
.copyIpBtn::after,
.mini-btn::after,
.spinBtn::after,
.shop-filter::after,
.filterBtn::after,
.promo-submit::after,
.promo-button::after {
  content: "";
  position: absolute;
  inset: 50%;
  width: 0;
  height: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}

button:active::after,
.btn:active::after,
a.btn:active::after,
input[type="button"]:active::after,
input[type="submit"]:active::after,
.copyIpBtn:active::after,
.mini-btn:active::after,
.spinBtn:active::after,
.shop-filter:active::after,
.filterBtn:active::after,
.promo-submit:active::after,
.promo-button:active::after,
.nf-clicking::after {
  width: 180%;
  height: 180%;
  opacity: 1;
  transition: width .22s ease, height .22s ease, opacity .34s ease;
}
.homeCards .homeCard,
.homeCard {
  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease,
    background .22s ease,
    filter .22s ease !important;
  will-change: transform;
}

.homeCards .homeCard:hover,
.homeCard:hover {
  transform: translateY(-6px) scale(1.035) !important;
  border-color: rgba(245, 215, 120, .72) !important;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, .50),
    0 0 34px rgba(216, 183, 97, .22) !important;
  background:
    radial-gradient(circle at 28% 0%, rgba(216, 183, 97, .22), transparent 42%),
    linear-gradient(180deg, rgba(34, 28, 18, .92), rgba(8, 8, 7, .84)) !important;
  filter: brightness(1.08);
}

.homeCards .homeCard:hover .homeIcon,
.homeCard:hover .homeIcon {
  transform: scale(1.08);
  filter: drop-shadow(0 0 18px rgba(216, 183, 97, .42)) !important;
}

.homeCards .homeCard:hover h2,
.homeCard:hover h2 {
  color: #f5d778 !important;
  text-shadow: 0 0 18px rgba(216, 183, 97, .22);
}

.homeCards .homeCard:hover b,
.homeCard:hover b {
  color: #f5d778 !important;
  text-shadow: 0 0 14px rgba(216, 183, 97, .25);
}

.homeIcon {
  transition: transform .22s ease, filter .22s ease !important;
}

@media (prefers-reduced-motion: reduce) {
  .homeCards .homeCard,
  .homeCard,
  .homeIcon {
    transition: none !important;
  }

  .homeCards .homeCard:hover,
  .homeCard:hover {
    transform: none !important;
  }
}
.nf-fixed-flash-wrap{
  position:fixed;
  top:86px;
  left:50%;
  transform:translateX(-50%);
  width:min(720px, calc(100% - 36px));
  z-index:9999;
  display:flex;
  flex-direction:column;
  gap:10px;
  pointer-events:none;
}
body:has(.nfStatusBar) .nf-fixed-flash-wrap{top:128px;}
.nf-fixed-flash{
  min-height:44px;
  padding:12px 18px;
  border:1px solid rgba(216,183,97,.42);
  border-radius:14px;
  background:linear-gradient(180deg,rgba(22,18,12,.98),rgba(8,8,8,.96));
  color:#f4efe3;
  box-shadow:0 18px 48px rgba(0,0,0,.48), 0 0 20px rgba(216,183,97,.10);
  font-weight:900;
  text-align:center;
  opacity:0;
  transform:translateY(-10px) scale(.98);
  animation:nfFlashIn .18s ease forwards;
  pointer-events:auto;
}
.nf-fixed-flash.success{border-color:rgba(216,183,97,.70); color:#f5d778;}
.nf-fixed-flash.error{border-color:rgba(255,95,95,.55); color:#ffb0a8;}
.nf-fixed-flash.hide{animation:nfFlashOut .25s ease forwards;}
@keyframes nfFlashIn{to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes nfFlashOut{to{opacity:0;transform:translateY(-12px) scale(.98)}}

/* make old inline messages invisible after JS moves them */
.nf-message-moved{display:none!important;}

/* IP popup smaller and stable on hover */
.ipPill{position:relative!important; overflow:visible!important;}
.ipPill::after{
  content:"";
  position:absolute;
  left:0;
  top:100%;
  width:165px;
  height:12px;
}
.ipTooltip{
  position:absolute!important;
  top:calc(100% + 8px)!important;
  left:0!important;
  width:158px!important;
  min-width:158px!important;
  padding:10px!important;
  border-radius:11px!important;
  background:rgba(7,7,7,.98)!important;
  border:1px solid rgba(216,183,97,.32)!important;
  box-shadow:0 16px 38px rgba(0,0,0,.48)!important;
  z-index:10000!important;
  opacity:0!important;
  visibility:hidden!important;
  display:block!important;
  pointer-events:none!important;
  transform:translateY(-4px) scale(.98)!important;
  transition:opacity .14s ease, transform .14s ease, visibility .14s ease!important;
}
.ipPill:hover .ipTooltip,
.ipPill.open .ipTooltip,
.ipTooltip:hover{
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  transform:translateY(0) scale(1)!important;
}
.ipTooltip p{margin:0 0 5px!important;font-size:12px!important;line-height:1.25!important;}
.copyIpBtn{
  min-height:28px!important;
  width:100%!important;
  padding:0 8px!important;
  font-size:12px!important;
  border-radius:8px!important;
  margin-top:6px!important;
}
.copyMsg{
  position:static!important;
  display:none!important;
  min-width:0!important;
  margin-top:7px!important;
  padding:6px 8px!important;
  border-radius:8px!important;
  background:rgba(216,183,97,.12)!important;
  border:1px solid rgba(216,183,97,.25)!important;
  color:#f5d778!important;
  font-size:12px!important;
  text-align:center!important;
  box-shadow:none!important;
}
.copyMsg.show{display:block!important;}
html.nf-scroll-restore-lock body{
  opacity:0!important;
}

/* Сообщения не вверху страницы, а возле верхней панели */
.nfPanelMessageHost{
  position:fixed!important;
  top:82px!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  z-index:10050!important;
  width:min(520px, calc(100% - 32px))!important;
  display:flex!important;
  justify-content:center!important;
  pointer-events:none!important;
}

.nfPanelMessage{
  min-height:34px!important;
  padding:8px 16px!important;
  border-radius:12px!important;
  border:1px solid rgba(216,183,97,.45)!important;
  background:rgba(10,9,7,.96)!important;
  box-shadow:0 12px 34px rgba(0,0,0,.42), 0 0 18px rgba(216,183,97,.10)!important;
  color:#f5d778!important;
  font-size:14px!important;
  font-weight:900!important;
  line-height:1.2!important;
  text-align:center!important;
  opacity:0;
  transform:translateY(-5px) scale(.98);
  animation:nfPanelMsgIn .16s ease forwards;
  pointer-events:auto!important;
}

.nfPanelMessage.error{
  border-color:rgba(255,95,95,.55)!important;
  color:#ffb0a8!important;
}

.nfPanelMessage.hide{
  animation:nfPanelMsgOut .22s ease forwards!important;
}

@keyframes nfPanelMsgIn{
  to{opacity:1;transform:translateY(0) scale(1)}
}
@keyframes nfPanelMsgOut{
  to{opacity:0;transform:translateY(-6px) scale(.98)}
}

/* Старые .panel-сообщения скрываются после переноса в верхнюю панель */
.nf-message-moved{
  display:none!important;
}

/* IP popup: меньше, открывается по наведению и по клику */
.nfStatusBar,
.nfTop{
  overflow:visible!important;
}

.nfStatusBar .ipPill,
.ipPill{
  position:relative!important;
  overflow:visible!important;
}

.nfStatusBar .ipPill::after,
.ipPill::after{
  content:""!important;
  position:absolute!important;
  left:0!important;
  top:100%!important;
  width:150px!important;
  height:10px!important;
  display:block!important;
}

.nfStatusBar .ipPill .ipTooltip,
.ipPill .ipTooltip{
  display:block!important;
  position:absolute!important;
  top:calc(100% + 8px)!important;
  left:0!important;
  width:150px!important;
  min-width:150px!important;
  padding:9px!important;
  border-radius:10px!important;
  background:rgba(7,7,7,.98)!important;
  border:1px solid rgba(216,183,97,.34)!important;
  box-shadow:0 14px 34px rgba(0,0,0,.48)!important;
  z-index:10080!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  transform:translateY(-4px) scale(.98)!important;
  transition:opacity .14s ease, transform .14s ease, visibility .14s ease!important;
}

.nfStatusBar .ipPill:hover .ipTooltip,
.nfStatusBar .ipPill.nf-ip-open .ipTooltip,
.ipPill:hover .ipTooltip,
.ipPill.nf-ip-open .ipTooltip,
.ipTooltip:hover{
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  transform:translateY(0) scale(1)!important;
}

.ipTooltip::before{
  top:-6px!important;
  left:18px!important;
  width:10px!important;
  height:10px!important;
}

.ipTooltip p{
  margin:0 0 5px!important;
  font-size:12px!important;
  line-height:1.2!important;
}

.copyIpBtn{
  min-height:27px!important;
  width:100%!important;
  padding:0 8px!important;
  margin-top:6px!important;
  border-radius:8px!important;
  font-size:12px!important;
}

.copyMsg{
  position:static!important;
  left:auto!important;
  top:auto!important;
  display:none!important;
  min-width:0!important;
  width:100%!important;
  margin-top:7px!important;
  padding:6px 7px!important;
  border-radius:8px!important;
  background:rgba(216,183,97,.12)!important;
  border:1px solid rgba(216,183,97,.25)!important;
  box-shadow:none!important;
  color:#f5d778!important;
  font-size:12px!important;
  font-weight:900!important;
  text-align:center!important;
}
.copyMsg.show{
  display:block!important;
}
#nfServerStatus,
#nfServerOnline,
#nfRestartTimer {
  transition: color .18s ease, text-shadow .18s ease;
}

.nf-status-online {
  color: #49e079 !important;
  text-shadow: 0 0 10px rgba(73, 224, 121, .22);
}

.nf-status-offline {
  color: #ff6b6b !important;
  text-shadow: 0 0 10px rgba(255, 107, 107, .18);
}
#nfServerStatus.nf-online { color: #55e68a !important; }
#nfServerStatus.nf-offline { color: #ff6b6b !important; }
#nfServerOnline,
#nfRestartTimer { color: var(--gold) !important; }
