/* Shared recovery header: loaded last on every localized HTML page. */
body {
  padding-top: 88px !important;
}

.header {
  position: fixed !important;
  inset: 0 0 auto 0 !important;
  width: 100% !important;
  min-height: 76px;
  margin: 0 !important;
  padding: 12px 0 !important;
  z-index: 100 !important;
  background: rgba(5, 16, 29, 0.97) !important;
  border-bottom: 1px solid rgba(77, 163, 255, 0.24) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24) !important;
  backdrop-filter: blur(12px);
}

.header .container { max-width: 1240px; }
.header-content { min-height: 52px; gap: 24px; flex-wrap: nowrap !important; }
.header .custom-logo-link { width: auto !important; min-width: 176px; flex: 0 0 auto; }
.header img.custom-logo {
  display: block;
  width: 220px !important;
  height: 46px !important;
  max-width: 220px !important;
  object-fit: cover;
  object-position: center;
}

.header .nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  white-space: nowrap;
}

.header .nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #eef7ff !important;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}

.header .nav a:hover,
.header .nav a:focus-visible {
  color: #fff !important;
  background: rgba(77, 163, 255, 0.12);
  opacity: 1;
}

.header-buttons { flex: 0 0 auto; gap: 10px; }
.header-buttons .btn {
  min-width: 104px;
  max-width: none;
  height: 42px;
  line-height: 1;
  margin: 0 !important;
  padding: 0 17px;
  animation: none !important;
  white-space: nowrap;
}

.header .mobile-btn { flex: 0 0 34px; width: 34px; }
.mobile-wrap { z-index: 140 !important; }
.mobile-wrap .mobile-nav { display: flex !important; flex-direction: column; align-items: stretch; gap: 8px; }
.mobile-wrap .mobile-nav a {
  display: block;
  margin: 0;
  padding: 14px 16px;
  color: #fff !important;
  border: 1px solid rgba(77, 163, 255, 0.22);
  border-radius: 12px;
  text-decoration: none;
}

@media (max-width: 1099px) {
  body { padding-top: 76px !important; }
  .header { min-height: 68px; padding: 8px 0 !important; }
  .header-content { min-height: 52px; }
  .header .nav.max-1100\:hidden,
  .header .header-buttons { display: none !important; }
  .header .mobile-btn { display: block !important; margin-left: auto; }
  .header .custom-logo-link { min-width: 0; }
  .header img.custom-logo { width: min(190px, 64vw) !important; height: 40px !important; max-width: min(190px, 64vw) !important; }
}

@media (prefers-reduced-motion: reduce) {
  .header *, .mobile-wrap { animation: none !important; transition: none !important; }
}
