/* Шапка — по макету Figma (узел 1:120). Подключается после navbar.css
   и заменяет его раскладку: выравнивание по одной линии, элементы как в макете. */

.Navbar {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0 !important;
  height: 101px;
  padding-right: 24px;
  background-color: #19172c;
  border-bottom: 1px solid #201c38;
}

.Navbar > img#nav-logo {
  width: 210px;
  height: 101px;
  object-fit: contain;
  cursor: pointer;
  align-self: center;
  flex: none;
}

/* ── Вкладки игр ──────────────────────────────────────────── */
.NavTabs {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 100%;
  margin-left: 60px;
}
.NavTab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 100%;
  padding: 0 4px;
  color: #fff;
  opacity: 0.55;
  font-size: 18px;
  font-weight: 500;
  transition: 0.15s;
}
.NavTab:hover { opacity: 0.85; }
.NavTab__icon { width: 19px; height: 19px; }
.NavTab.is-active { opacity: 1; color: #7c00ff; }
.NavTab.is-active .NavTab__icon { filter: brightness(1.15); }
.NavTab.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 92px;
  height: 2px;
  border-radius: 19px 19px 0 0;
  background: #7c00ff;
  box-shadow: 0 -4px 23px 0 #7d00ff;
}

/* ── Кошелёк с кнопкой Deposit ────────────────────────────── */
.NavWallet {
  display: flex;
  align-items: stretch;
  height: 47px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  overflow: hidden;
  background: linear-gradient(180deg, #0f0c1f 0%, #201936 100%);
}
.NavWallet__amount {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 0 16px;
  align-self: center;
}
.NavWallet__icon { width: 14px; height: auto; align-self: center; }
.NavWallet__int { color: #fff; font-size: 13px; font-weight: 600; }
.NavWallet__dec { color: #fff; opacity: 0.5; font-size: 8px; }
.NavWallet__deposit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  background: #863aff;
  color: #0b0716;
  font-size: 10px;
  font-weight: 600;
  transition: 0.15s;
}
.NavWallet__deposit:hover { filter: brightness(1.08); }

/* ── Правая группа ────────────────────────────────────────── */
.NavActions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.Navbar .NavWallet + .NavActions { margin-left: 32px; }

.NavWithdraw {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  padding: 0 22px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  background: linear-gradient(180deg, #2f552c 0%, #2c542e 100%);
  box-shadow: inset 0 -18px 24px -18px rgba(5, 255, 0, 0.45);
  color: #3aff4e;
  font-size: 13px;
  font-weight: 500;
  transition: 0.15s;
}
.NavWithdraw:hover { filter: brightness(1.12); }

.NavIcon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  background: linear-gradient(180deg, #2d2a40 0%, #322c54 100%);
  cursor: pointer;
  transition: 0.15s;
}
.NavIcon:hover { filter: brightness(1.15); }
.NavIcon img { width: 20px; height: auto; }
.NavIcon_bell img { filter: brightness(0) saturate(100%) invert(38%) sepia(87%) saturate(3000%) hue-rotate(252deg) brightness(102%) contrast(103%); }
.NavIcon__dot {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff3b3b;
  box-shadow: 0 0 8px rgba(255, 59, 59, 0.8);
}

/* ── Профиль ──────────────────────────────────────────────── */
.NavUser {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 6px;
}
.NavUser__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #5c349e 0%, #34205e 100%);
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}
.NavUser__avatar img { width: 100%; height: 100%; object-fit: cover; }
.NavUser__text { display: flex; flex-direction: column; gap: 4px; }
.NavUser__name { color: #fff; font-size: 13px; font-weight: 600; }
.NavUser__level { color: #8000ff; font-size: 13px; font-weight: 500; }

.NavLogin {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  padding: 0 34px;
  border-radius: 5px;
  background: linear-gradient(180deg, #a448ff 0%, #873aff 100%);
  box-shadow: 0 0 24px rgba(134, 58, 255, 0.25);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: 0.15s;
}
.NavLogin:hover { filter: brightness(1.08); }

/* ── Узкие экраны ─────────────────────────────────────────── */
@media screen and (max-width: 1400px) {
  .Navbar { height: 90px; padding-right: 14px; }
  .Navbar > img#nav-logo {
    content: url("/img/ui/logo-mark-bloxpvp.png");
    width: 46px !important;
    height: 46px !important;
    margin-left: 14px;
  }
  .NavTabs { margin-left: 22px; gap: 18px; }
  .NavTab { font-size: 15px; }
  .NavTab.is-active::after { width: 60px; }
  .NavUser__text { display: none; }
  .NavWithdraw { padding: 0 14px; }
}
@media screen and (max-width: 900px) {
  .NavTabs { display: none; }
  .NavWallet__deposit { width: 54px; }
}

/* ── Тело шапки ───────────────────────────────────────────── */
.Navbar { align-items: stretch; }
.NavBody { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.NavMain {
  flex: 1;
  display: flex;
  align-items: center;
  padding-right: 4px;
}
.NavTabs { margin-left: 60px; height: 100%; }

@media screen and (max-width: 1400px) {
  .NavTabs { margin-left: 22px; }
}
