/* navbar.css */

.ms-nav {
  background: #121212;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ms-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

.ms-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  padding: 8px;
  box-sizing: border-box;
  border-radius: 50%;
  background: #c8c8c8;
  overflow: hidden;
  text-decoration: none;
  line-height: 0;
}

.ms-brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ms-nav-toggle,
.ms-nav-overlay,
.ms-nav-panel-head {
  display: none;
}

.ms-nav-panel {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 20px;
}

.ms-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}

.ms-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  opacity: 0.9;
  white-space: nowrap;
}

.ms-menu a:hover {
  opacity: 1;
  text-decoration: underline;
}

.ms-nav-actions {
  display: flex;
  gap: 12px;
  white-space: nowrap;
}

.ms-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.ms-nav-btn-light {
  background: #fff;
  color: #111;
}

.ms-nav-btn-outline {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}

body.ms-nav-lock {
  overflow: hidden;
}

@media (max-width: 900px) {
  .ms-nav-inner {
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
  }

  .ms-brand-logo {
    width: 100%;
    height: 100%;
  }

  .ms-brand {
    width: 58px;
    height: 58px;
    padding: 7px;
  }

  .ms-nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: #111a2b;
    color: #fff;
    padding: 9px 12px;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
  }

  .ms-nav-toggle:focus-visible,
  .ms-nav-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }

  .ms-nav-toggle-bars {
    display: inline-block;
    position: relative;
    width: 14px;
    height: 10px;
  }

  .ms-nav-toggle-bars::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    box-shadow: 0 4px 0 currentColor, 0 8px 0 currentColor;
  }

  .ms-nav-panel {
    position: fixed;
    top: 8px;
    right: 8px;
    bottom: 8px;
    width: min(320px, calc(100vw - 16px));
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #091223;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    transform: translateX(112%);
    transition: transform 0.24s ease;
    z-index: 2001;
    overflow-y: auto;
    pointer-events: none;
  }

  .ms-nav-panel[aria-hidden="true"] {
    visibility: hidden;
  }

  .ms-nav.ms-nav-open .ms-nav-panel {
    transform: translateX(0);
    pointer-events: auto;
  }

  .ms-nav.ms-nav-open .ms-nav-panel[aria-hidden="false"] {
    visibility: visible;
  }

  .ms-nav-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .ms-nav-panel-title {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
  }

  .ms-nav-close {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #111a2b;
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
  }

  .ms-nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(3, 8, 17, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 2000;
  }

  .ms-nav.ms-nav-open .ms-nav-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .ms-menu {
    flex: 0 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
  }

  .ms-menu li {
    width: 100%;
  }

  .ms-menu a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, #121d30 0%, #0d1726 100%);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.4px;
    font-weight: 800;
    opacity: 1;
  }

  .ms-menu a:hover {
    text-decoration: none;
  }

  .ms-nav-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    white-space: normal;
  }

  .ms-nav-btn {
    width: 100%;
    min-height: 44px;
    white-space: normal;
    line-height: 1.2;
    text-align: center;
    font-size: 12px;
  }
}
