/* One shared, opaque header. Icons are SVG so their appearance does not depend on OS fonts. */
.site-header.header {
  height: auto;
  background: #14111b;
  border-bottom: 1px solid #42314f;
}
.site-header .header-inner {
  display: block;
  height: auto;
  max-width: 1320px;
  padding: 0 38px 12px;
}
.site-header .header-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 18px 0;
}
.site-header .header-inner .brand {
  grid-column: 2;
  justify-self: center;
  gap: 13px;
  font-size: 1.75rem;
  letter-spacing: -1px;
}
.site-header .header-inner .brand img {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 16px;
  box-shadow: 0 0 24px #b37ae329;
}
.site-header .header-inner .brand small {
  display: block;
  font-size: .625rem;
  letter-spacing: 1.6px;
  margin-top: 9px;
  color: #c8bed5;
}
.site-header .header-tools {
  grid-column: 3;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
  gap: 14px;
}
.site-header .site-language-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid #6b4a80;
  border-radius: 10px;
  background: #281e33;
  color: #dfc5fa;
  white-space: nowrap;
}
.site-header .site-language-control select {
  min-height: 32px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.site-header .site-language-control option { color: #17121f; }
.site-header .site-language-control:focus-within { outline: 2px solid #d7aaff; outline-offset: 2px; }
.site-header .site-language-control .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.site-header .header-actions {
  margin: 0;
  gap: 14px;
  min-width: 0;
}
.site-header .header-actions .quiet {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #e9e1f2;
  font-size: .875rem;
  white-space: nowrap;
}
.site-header .header-actions .auth-nav-name {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 12rem;
  display: block;
  line-height: 44px;
}
.site-header .header-actions .button {
  min-height: 44px;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-header .header-inner .nav {
  position: static;
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  width: 100%;
  height: auto;
  gap: 6px;
  padding: 12px 0 0;
  border-top: 1px solid #302638;
  border-bottom: 0;
  background: #14111b;
}
.site-header .header-inner .nav a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  height: auto;
  min-height: 70px;
  padding: 10px 4px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #ded5e9;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  white-space: nowrap;
  text-align: center;
  transition: background .18s, border-color .18s, color .18s;
}
.site-header .nav-icon, .site-header .mobile-menu svg {
  display: block;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.site-header .nav-icon { color: #bd98df; }
.site-header .header-inner .nav a:hover {
  color: #fff;
  background: #292033;
  border-color: #5f4375;
}
.site-header .header-inner .nav a.active {
  color: #fff;
  background: #32223f;
  border-color: #785097;
}
.site-header .nav a.active .nav-icon { color: #dfb8ff; }
.site-header .header-inner .nav a.active:after {
  bottom: -1px;
  left: 30%;
  right: 30%;
  height: 3px;
}
.site-header .header-inner .nav a[href="/vip"] {
  background: linear-gradient(135deg, #382444, #4e2e62);
  border-color: #75528e;
  color: #f8eeff;
  animation: none;
  box-shadow: inset 0 1px #ffffff12;
  transform: none;
}
.site-header .header-inner .nav a[href="/vip"]:before { content: none; }
.site-header .header-inner .nav a[href="/vip"]:hover,
.site-header .header-inner .nav a[href="/vip"].active {
  background: #5c3873;
  border-color: #bd8be0;
}
.site-header .nav a[href="/bakiye"] .nav-icon { color: #e8c97a; }
.site-header .nav a[href="/launcher"] .nav-icon { color: #85ddc9; }
.site-header .mobile-menu { display: none; }
@media (max-width: 1100px) {
  .site-header .header-inner { padding: 0 24px 14px; }
  .site-header .header-top { grid-template-columns: 1fr; gap: 14px; padding: 16px 0 0; }
  .site-header .header-inner .brand { grid-column: 1; }
  .site-header .header-tools { grid-column: 1; justify-content: space-between; flex-wrap: wrap; width: 100%; }
  .site-header .mobile-menu {
    display: inline-flex;
    order: 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid #68477d;
    border-radius: 10px;
    background: #2b2036;
    color: #f5eaff;
    font-size: .875rem;
    font-weight: 700;
  }
  .site-header .mobile-menu[aria-expanded="true"] { background: #463055; }
  .site-header .header-inner .nav { display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; }
  .site-header .header-inner .nav.open { display: grid; }
  .site-header .header-inner .nav a { white-space: normal; }
}
@media (max-width: 480px) {
  .site-header .header-inner { padding: 0 16px 12px; }
  .site-header .header-inner .brand { font-size: 1.5rem; gap: 11px; }
  .site-header .header-inner .brand img { width: 56px; height: 56px; border-radius: 14px; }
  .site-header .header-inner .brand small { font-size: .5625rem; letter-spacing: 1.35px; }
  .site-header .header-tools, .site-header .header-actions { gap: 8px; }
  .site-header .header-actions .quiet { font-size: .8125rem; }
  .site-header .header-actions .auth-nav-name { max-width: 7.5rem; }
  .site-header .header-actions .button { font-size: .8125rem; padding: 9px 10px; gap: 5px; }
  .site-header .mobile-menu { padding: 9px 10px; }
  .site-header .mobile-menu svg { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header .header-inner .nav a { transition: none; }
}
