/**
 * UpPay site shell — header, search, mobile nav, footer helpers.
 * Colors inherit from uppay-theme.css
 */

.uppay-shell-header {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(2, 8, 25, 0.96), rgba(2, 8, 25, 0.88)) !important;
  border-bottom: 1px solid rgba(99, 124, 192, 0.22);
}

/* Logo wordmark: avoid clipping descenders (p, y), stable baseline with mark icon */
.uppay-logo-link {
  overflow: visible;
  text-decoration: none;
}

/* PNG-марк в круге (главная и др. при logoMarkSrc): целиком, без обрезки */
.uppay-logo-mark-wrap {
  box-sizing: border-box;
}

/* Белый диск под PNG-логотипом (тёмная шапка) */
.uppay-logo-mark-wrap--image {
  background-color: #ffffff;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(0, 0, 0, 0.08);
}

.uppay-logo-mark {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  flex-shrink: 0;
}
.uppay-wordmark {
  font-size: clamp(1.375rem, 2.5vw, 2.125rem);
  line-height: 1.22;
  padding-bottom: 0.12em;
  overflow: visible;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (min-width: 640px) {
  .uppay-wordmark {
    font-size: clamp(1.5rem, 2.2vw, 2.375rem);
    line-height: 1.2;
  }
}

.uppay-shell-body-pad {
  padding-top: var(--uppay-header-pad, 5.5rem);
}

@media (min-width: 1024px) {
  .uppay-shell-body-pad {
    padding-top: var(--uppay-header-pad, 6rem);
  }
}

.uppay-nav-dd-menu {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 80;
}

.uppay-nav-dd-menu.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* Пункты nav в шапке: визуально как «Помощь» — без обводки (Tailwind border даёт 1px линию на тёмном фоне) */
.uppay-shell-header nav .uppay-nav-link,
.uppay-shell-header nav .uppay-nav-trigger {
  border: none !important;
  border-width: 0 !important;
  box-shadow: none !important;
}

.uppay-shell-header nav .uppay-nav-link:focus-visible,
.uppay-shell-header nav .uppay-nav-trigger:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* Текущий раздел: без рамки, только акцент текста */
.uppay-nav-trigger[data-nav-active="1"] {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #ffffff !important;
  font-weight: 800;
  cursor: pointer;
}

/* SVG-геймпад (чёрные линии на прозрачном фоне) → светлый контур в шапке */
.uppay-nav-trigger img.uppay-nav-icon-gamepad {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.uppay-nav-trigger:hover img.uppay-nav-icon-gamepad {
  opacity: 1;
}

.uppay-nav-pill-active {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 12px;
  padding: 0.5rem 1.125rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(130, 155, 220, 0.28);
  background: rgba(79, 125, 255, 0.12);
  box-shadow: 0 0 16px rgba(79, 125, 255, 0.12);
}

/* Внутренний блок сервисов — без отдельного фона (единая «форма» с выпадающим меню) */
.uppay-mega-services-inner {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.uppay-nav-dd-menu a.uppay-mega-catalog-link {
  border: none !important;
  color: #fff !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Order bell + panel (global shell) */
.uppay-notif-btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.uppay-notif-backdrop {
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Позиция top/left задаётся в js/uppay-notifications.js от #uppay-notif-btn (не от высоты всей шапки). */
.uppay-notif-panel {
  width: min(calc(100vw - 1.5rem), 360px);
  max-height: min(85vh, calc(100vh - 1rem));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  background: rgba(12, 12, 17, 0.82);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.uppay-notif-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.8rem 0.95rem 0.78rem;
}

.uppay-notif-panel__title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}

.uppay-notif-panel__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

#uppay-notif-clear {
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.38rem 0.68rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #cbd5e1;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

#uppay-notif-clear:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

#uppay-notif-close {
  display: inline-flex;
  height: 2.15rem;
  width: 2.15rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 1.15rem;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

#uppay-notif-close:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* SVG-крестик закрытия: геометрический центр (символ × в шрифтах смещён) */
.uppay-modal-close-icon {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

#uppay-notif-close:has(.uppay-modal-close-icon),
.uppay-hero-modal__close:has(.uppay-modal-close-icon),
.uppay-storefront-modal-close:has(.uppay-modal-close-icon),
.steam-region-modal__close:has(.uppay-modal-close-icon),
.ml-help-image-zoom-close:has(.uppay-modal-close-icon),
.uppay-apple-ru-instr-close:has(.uppay-modal-close-icon),
.uppay-order-qr-guide-close:has(.uppay-modal-close-icon) {
  font-size: 0;
  line-height: 0;
}

.uppay-notif-body {
  max-height: min(72vh, 380px);
  overflow-y: auto;
  padding: 0.65rem;
}

.uppay-notif-empty {
  padding: 1.8rem 0.9rem;
  text-align: center;
  font-size: 0.75rem;
  color: #94a3b8;
}

.uppay-notif-item {
  margin-bottom: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.75rem 0.8rem;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.uppay-notif-item:last-child {
  margin-bottom: 0;
}

.uppay-notif-item.is-unread {
  border-color: rgba(39, 127, 242, 0.32);
  background: rgba(39, 127, 242, 0.08);
  box-shadow: inset 0 0 0 1px rgba(93, 168, 255, 0.08);
}

.uppay-notif-item__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem;
}

.uppay-notif-item__content {
  min-width: 0;
  flex: 1 1 auto;
}

.uppay-notif-item__title {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fff;
}

.uppay-notif-item__text {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #cbd5e1;
}

.uppay-notif-item-x {
  display: inline-flex;
  height: 1.65rem;
  width: 1.65rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.uppay-notif-item-x:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.uppay-notif-cta {
  margin-top: 0.65rem;
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #8ebcff;
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.uppay-notif-cta:hover {
  color: #bfdbfe;
}

.uppay-notif-amount {
  margin-top: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #8ebcff;
}

.uppay-search-wrap {
  position: relative;
  width: 100%;
  max-width: 56rem;
}

/* Ряд поиска в шапке: поле по центру, слоган справа от него, стрелка к полю (см. uppay-shell.js) */
.uppay-header-search-row .uppay-search-wrap {
  max-width: min(42rem, 100%);
}

.uppay-search-dd {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 90;
  max-height: min(320px, 50vh);
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--dropdown-bg);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  display: none;
}

.uppay-search-dd.is-open {
  display: block;
}

.uppay-search-dd button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-2);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.uppay-search-dd button:hover,
.uppay-search-dd button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(79, 125, 255, 0.35);
  background: rgba(79, 125, 255, 0.1);
  color: var(--text);
  box-shadow: 0 8px 24px rgba(79, 125, 255, 0.12);
  outline: none;
}

.uppay-search-dd button:active {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.uppay-search-dd-icon {
  flex-shrink: 0;
}

.uppay-header-avatar-btn:focus-within {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.uppay-shell-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  visibility: hidden;
}

.uppay-shell-mobile-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.uppay-shell-mobile-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.uppay-shell-mobile-drawer.is-open .uppay-shell-mobile-drawer__backdrop {
  opacity: 1;
}

.uppay-shell-mobile-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(20rem, 92vw);
  background: var(--dropdown-bg);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.22s ease;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 0.5rem;
  overflow-y: auto;
}

.uppay-shell-mobile-drawer.is-open .uppay-shell-mobile-drawer__panel {
  transform: translateX(0);
}

.uppay-shell-mobile-drawer a,
.uppay-shell-mobile-drawer span.uppay-nav-pill-active,
.uppay-shell-mobile-drawer span.uppay-nav-zakaz-donat--current {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.uppay-shell-mobile-drawer a.uppay-nav-pill-active {
  color: #fff;
}

/* Активный пункт без «таблетки» — как обычная ссылка, только жирнее (донат / сервисы) */
.uppay-shell-mobile-drawer a.uppay-nav-drawer-active {
  color: #fff;
  font-weight: 700;
}

.uppay-shell-mobile-drawer a {
  color: var(--text-2);
}

.uppay-shell-mobile-drawer a:hover {
  background: transparent;
  color: #fff;
}

.uppay-shell-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--footer-bar);
}

/**
 * Наведение как у чипов региона/номинала (App Store): синяя рамка, мягкая тень, лёгкий подъём.
 */
@media (hover: hover) and (pointer: fine) {
  #uppay-shell-menu-btn {
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease,
      border-color 0.2s ease,
      background-color 0.2s ease;
  }

  #uppay-shell-menu-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(79, 125, 255, 0.42);
    box-shadow: 0 12px 32px rgba(79, 125, 255, 0.14);
    background: rgba(79, 125, 255, 0.1);
  }

  #uppay-shell-menu-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  }

  /* Наведение как у активного «Донат в игры»: без цветной «таблетки», только лёгкий сдвиг и белый текст */
  .uppay-shell-header nav .uppay-nav-link,
  .uppay-shell-header nav .uppay-nav-trigger {
    transition:
      transform 0.2s ease,
      color 0.15s ease;
  }

  .uppay-shell-header nav .uppay-nav-link:not(.uppay-nav-zakaz-donat):hover,
  .uppay-shell-header nav .uppay-nav-trigger:hover {
    transform: translateY(-2px);
    border: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
    background: transparent !important;
  }

  .uppay-shell-header nav .uppay-nav-link:not(.uppay-nav-zakaz-donat):active,
  .uppay-shell-header nav .uppay-nav-trigger:active {
    transform: translateY(0) scale(0.98);
    box-shadow: none !important;
    background: transparent !important;
  }

  .uppay-nav-dd-menu .uppay-mega-row-link {
    border: 1px solid transparent;
    transition:
      transform 0.18s ease,
      box-shadow 0.18s ease,
      border-color 0.18s ease,
      background 0.18s ease,
      color 0.15s ease;
  }

  .uppay-nav-dd-menu .uppay-mega-row-link:hover {
    transform: translateY(-1px);
    border-color: rgba(94, 168, 255, 0.55);
    color: rgb(248 250 252);
    box-shadow: 0 6px 20px rgba(94, 168, 255, 0.2);
    background: rgba(94, 168, 255, 0.08);
  }

  .uppay-nav-dd-menu .uppay-mega-row-link:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }

  /* Нижние CTA в обоих меню — как прежняя кнопка в меню "Сервисы" */
  .uppay-nav-dd-menu a.uppay-mega-cta-primary,
  .uppay-nav-dd-menu a.uppay-mega-catalog-link {
    border: none !important;
    color: #fff !important;
    background: transparent !important;
    box-shadow: none !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
    transform: none !important;
  }

  .uppay-nav-dd-menu a.uppay-mega-cta-primary:hover,
  .uppay-nav-dd-menu a.uppay-mega-catalog-link:hover {
    border: none !important;
    color: #fff !important;
    box-shadow: none !important;
    background: rgba(255, 255, 255, 0.06) !important;
  }

  .uppay-nav-dd-menu a.uppay-mega-cta-primary:active,
  .uppay-nav-dd-menu a.uppay-mega-catalog-link:active {
    transform: none !important;
  }

  .uppay-shell-mobile-drawer a:not(.uppay-nav-pill-active):not(.uppay-nav-zakaz-donat) {
    border: none !important;
    transition: color 0.15s ease;
  }

  .uppay-shell-mobile-drawer a:not(.uppay-nav-pill-active):not(.uppay-nav-zakaz-donat):hover {
    transform: none;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff;
  }
}

/* Единая шапка сайта (mode home + inner): логотип, поиск, nav, уведомления и профиль */
#uppay-shell-header.uppay-shell-header--site .uppay-logo-link .uppay-wordmark {
  font-size: 1.125rem !important;
  line-height: 1.2;
  padding-bottom: 0.08em;
}
@media (min-width: 640px) {
  #uppay-shell-header.uppay-shell-header--site .uppay-logo-link .uppay-wordmark {
    font-size: 1.25rem !important;
  }
}
#uppay-shell-header.uppay-shell-header--site [data-nav-trigger],
#uppay-shell-header.uppay-shell-header--site nav .uppay-nav-link:not(.uppay-nav-trigger):not(.uppay-nav-zakaz-donat) {
  border: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transition: color 0.15s ease, background-color 0.15s ease, transform 0.15s ease !important;
}
#uppay-shell-header.uppay-shell-header--site [data-nav-trigger]:hover,
#uppay-shell-header.uppay-shell-header--site nav .uppay-nav-link:not(.uppay-nav-zakaz-donat):hover {
  box-shadow: none !important;
  background: rgba(139, 92, 246, 0.09) !important;
  transform: none !important;
  color: #ffffff !important;
}
/* CTA в nav: «Закажи Донат» — приглушённый акцент (градиент + лёгкое свечение) */
#uppay-shell-header.uppay-shell-header--site nav a.uppay-nav-zakaz-donat {
  position: relative;
  border: 1px solid rgba(120, 110, 160, 0.35) !important;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.11), rgba(47, 107, 255, 0.07)) !important;
  box-shadow:
    0 3px 10px -2px rgba(0, 0, 0, 0.35),
    0 0 18px -8px rgba(100, 80, 180, 0.22) !important;
  color: rgba(255, 255, 255, 0.95) !important;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease !important;
}
#uppay-shell-header.uppay-shell-header--site nav a.uppay-nav-zakaz-donat:hover {
  border-color: rgba(150, 135, 195, 0.45) !important;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(47, 107, 255, 0.11)) !important;
  box-shadow:
    0 4px 14px -4px rgba(0, 0, 0, 0.35),
    0 0 22px -8px rgba(110, 90, 200, 0.32) !important;
  transform: translateY(-2px) !important;
  color: #ffffff !important;
}
#uppay-shell-header.uppay-shell-header--site nav a.uppay-nav-zakaz-donat:active {
  transform: translateY(0) scale(0.98) !important;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.3),
    0 0 14px -10px rgba(100, 80, 180, 0.25) !important;
}
#uppay-shell-header.uppay-shell-header--site nav a.uppay-nav-zakaz-donat:focus-visible {
  outline: none !important;
  box-shadow:
    0 3px 10px -2px rgba(0, 0, 0, 0.35),
    0 0 18px -8px rgba(100, 80, 180, 0.22),
    0 0 0 2px rgba(100, 85, 180, 0.35),
    0 0 0 4px rgba(3, 7, 18, 0.9) !important;
}

/* Текущая страница «Закажи Донат» */
#uppay-shell-header.uppay-shell-header--site nav span.uppay-nav-zakaz-donat--current {
  border: 1px solid rgba(130, 120, 175, 0.4) !important;
  background: linear-gradient(135deg, rgba(120, 95, 220, 0.16), rgba(45, 95, 195, 0.1)) !important;
  box-shadow:
    0 3px 12px -3px rgba(0, 0, 0, 0.38),
    0 0 20px -8px rgba(100, 85, 190, 0.28) !important;
  color: rgba(255, 255, 255, 0.98) !important;
  cursor: default;
}

/* Та же кнопка в мобильном меню */
.uppay-shell-mobile-drawer a.uppay-nav-zakaz-donat {
  border: 1px solid rgba(120, 110, 160, 0.35) !important;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.11), rgba(47, 107, 255, 0.07)) !important;
  box-shadow:
    0 3px 10px -2px rgba(0, 0, 0, 0.35),
    0 0 16px -8px rgba(100, 80, 180, 0.2) !important;
  color: rgba(255, 255, 255, 0.95) !important;
  text-align: center;
}
@media (hover: hover) and (pointer: fine) {
  .uppay-shell-mobile-drawer a.uppay-nav-zakaz-donat:hover {
    border-color: rgba(150, 135, 195, 0.45) !important;
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(47, 107, 255, 0.11)) !important;
    box-shadow:
      0 4px 14px -4px rgba(0, 0, 0, 0.35),
      0 0 22px -8px rgba(110, 90, 200, 0.3) !important;
    color: #fff !important;
  }
}

.uppay-shell-mobile-drawer span.uppay-nav-zakaz-donat--current {
  border: 1px solid rgba(130, 120, 175, 0.4) !important;
  background: linear-gradient(135deg, rgba(120, 95, 220, 0.16), rgba(45, 95, 195, 0.1)) !important;
  box-shadow:
    0 3px 12px -3px rgba(0, 0, 0, 0.38),
    0 0 18px -8px rgba(100, 85, 190, 0.26) !important;
  color: rgba(255, 255, 255, 0.98) !important;
}
#uppay-shell-header.uppay-shell-header--site [data-nav-active="1"] {
  color: #fff !important;
  font-weight: 700 !important;
  background: rgba(139, 92, 246, 0.12) !important;
}
#uppay-shell-header.uppay-shell-header--site nav [data-nav-trigger],
#uppay-shell-header.uppay-shell-header--site nav > a.uppay-nav-link {
  font-size: 1rem !important;
}
@media (min-width: 640px) {
  #uppay-shell-header.uppay-shell-header--site nav [data-nav-trigger],
  #uppay-shell-header.uppay-shell-header--site nav > a.uppay-nav-link {
    font-size: 1.0625rem !important;
  }
}
#uppay-shell-header.uppay-shell-header--site .uppay-nav-pill-active--compact {
  display: inline-flex;
  align-items: center;
  border-radius: 0.5rem;
  padding: 0.375rem 0.75rem;
  font-size: 1rem !important;
  font-weight: 600;
  line-height: 1.25;
  color: #fff !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  background: rgba(79, 125, 255, 0.1) !important;
  box-shadow: none !important;
}
@media (min-width: 640px) {
  #uppay-shell-header.uppay-shell-header--site .uppay-nav-pill-active--compact {
    font-size: 1.0625rem !important;
    padding: 0.4rem 0.85rem;
  }
}
#uppay-shell-header.uppay-shell-header--site .uppay-nav-dd-menu > div {
  background: rgba(12, 12, 17, 0.985) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow:
    0 24px 52px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
  padding: 1rem !important;
  border-radius: 18px !important;
}

/* Убираем «коробку в коробке» у блока сервисов */
#uppay-shell-header.uppay-shell-header--site .uppay-nav-dd-menu > div > div:has(.uppay-mega-services-inner) {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
#uppay-shell-header.uppay-shell-header--site .uppay-nav-dd-menu .uppay-mega-services-inner > div > p,
#uppay-shell-header.uppay-shell-header--site .uppay-nav-dd-menu > div > div > p {
  color: rgba(148, 163, 184, 0.88) !important;
  padding-bottom: 0.35rem !important;
}
#uppay-shell-header.uppay-shell-header--site .uppay-nav-dd-menu a.uppay-mega-row-link {
  padding-top: 0.45rem !important;
  padding-bottom: 0.45rem !important;
  color: #d1d9e8 !important;
}
#uppay-shell-header.uppay-shell-header--site .uppay-nav-dd-menu a.uppay-mega-row-link:hover,
#uppay-shell-header.uppay-shell-header--site .uppay-nav-dd-menu a.uppay-mega-row-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(94, 168, 255, 0.55);
  color: #f1f5f9 !important;
  box-shadow: 0 6px 20px rgba(94, 168, 255, 0.2);
  background: rgba(94, 168, 255, 0.08);
}
#uppay-shell-header.uppay-shell-header--site .uppay-nav-dd-menu > div .grid.gap-4 {
  gap: 0.7rem !important;
}
#uppay-shell-header.uppay-shell-header--site .uppay-nav-dd-menu > div .grid.gap-5 {
  gap: 0.85rem !important;
}
#uppay-shell-header.uppay-shell-header--site .uppay-nav-dd-menu .uppay-mega-cta-primary {
  margin-top: 0.65rem !important;
}
#uppay-shell-header.uppay-shell-header--site .uppay-nav-dd-menu a.uppay-mega-catalog-link {
  margin-top: 0.5rem !important;
}
#uppay-shell-header.uppay-shell-header--site .uppay-search-dd {
  background: rgba(10, 12, 20, 0.96) !important;
  backdrop-filter: blur(26px) !important;
  -webkit-backdrop-filter: blur(26px) !important;
  border-color: rgba(255, 255, 255, 0.09) !important;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}
#uppay-shell-header.uppay-shell-header--site .uppay-search-dd button {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  color: #d1d9e8 !important;
}
#uppay-shell-header.uppay-shell-header--site .uppay-search-dd button:hover,
#uppay-shell-header.uppay-shell-header--site .uppay-search-dd button:focus-visible {
  color: #f1f5f9 !important;
}
#uppay-shell-header.uppay-shell-header--site {
  background: rgba(8, 9, 15, 0.10) !important;
  backdrop-filter: blur(22px) !important;
  -webkit-backdrop-filter: blur(22px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
#uppay-shell-header.uppay-shell-header--site .uppay-home-header-row {
  scrollbar-width: none;
}
#uppay-shell-header.uppay-shell-header--site .uppay-home-header-row::-webkit-scrollbar {
  display: none;
}
@media (min-width: 1024px) {
  #uppay-shell-header.uppay-shell-header--site .uppay-home-search-slot {
    min-width: min(7rem, 22vw);
  }
}
#uppay-shell-header.uppay-shell-header--site .uppay-home-search-slot .uppay-search-wrap {
  max-width: none !important;
}
#uppay-shell-header.uppay-shell-header--site .uppay-nav-dd-menu {
  left: auto !important;
  right: 0 !important;
}
#uppay-shell-header.uppay-shell-header--site .uppay-home-search-field {
  border-radius: 0.625rem !important;
  background: linear-gradient(180deg, rgba(18, 34, 62, 0.92), rgba(11, 24, 46, 0.98)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    inset 0 0 0 1px rgba(96, 115, 170, 0.22) !important;
  padding-top: 0.48rem !important;
  padding-bottom: 0.48rem !important;
}
@media (min-width: 1024px) {
  #uppay-shell-header.uppay-shell-header--site .uppay-home-search-field {
    padding-top: 0.55rem !important;
    padding-bottom: 0.55rem !important;
  }
}
#uppay-shell-header.uppay-shell-header--site .uppay-home-search-field input.uppay-home-search-input {
  color: rgba(241, 245, 249, 0.96) !important;
}
#uppay-shell-header.uppay-shell-header--site .uppay-home-search-field input::placeholder {
  color: rgba(148, 163, 184, 0.72) !important;
}
#uppay-shell-header.uppay-shell-header--site .uppay-home-search-field:focus-within {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(121, 134, 220, 0.38),
    0 0 0 2px rgba(59, 91, 180, 0.14) !important;
}
#uppay-shell-header.uppay-shell-header--site .uppay-home-search-field .text-slate-500 {
  color: rgba(148, 163, 184, 0.75) !important;
}

.uppay-auth-nick {
  max-width: 7.5rem;
}

@media (min-width: 640px) {
  .uppay-auth-nick {
    max-width: 9rem;
  }
}

