/* Site header redesign — logo + menu layout */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(20, 20, 40, 0.06);
  box-shadow: 0 8px 24px rgba(44, 62, 80, 0.06);
  flex-shrink: 0;
}

.site-nav {
  min-height: 76px;
  padding: 0.55rem 0;
}

.site-nav.navbar {
  height: auto !important;
  box-shadow: none !important;
}

.site-nav-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none !important;
  min-width: 0;
  flex: 0 1 auto;
  max-width: min(320px, 56vw);
}

.site-brand-logo-only {
  max-width: min(220px, 55vw);
}

.site-brand-logo {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(233, 30, 140, 0.08), rgba(156, 39, 176, 0.06));
  border: 1px solid rgba(233, 30, 140, 0.12);
  overflow: hidden;
  flex-shrink: 0;
}

.site-brand-logo-only .site-brand-logo {
  width: auto;
  height: 56px;
  max-width: 220px;
  padding: 0 6px;
  background: transparent;
  border: none;
  border-radius: 0;
}

.site-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  display: block;
}

.site-brand-logo-only .site-brand-logo img {
  width: auto;
  max-width: 100%;
  height: 52px;
  padding: 0;
}

.site-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.site-brand-text strong {
  color: var(--main-text, #1f1f2e);
  font-size: 1.05rem;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-brand-text small {
  color: #8a8aa3;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.site-nav-toggle {
  margin-left: auto;
  border: 1px solid var(--site-color, #e91e8c) !important;
  border-radius: 10px;
  padding: 0.35rem 0.5rem;
}

.site-nav-collapse {
  align-items: center;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
  justify-content: center;
}

.site-menu .nav-link {
  color: #4b4b63 !important;
  font-size: 0.95rem !important;
  font-weight: 500;
  line-height: 1.2 !important;
  padding: 0.55rem 0.7rem !important;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}

.site-menu .nav-link:hover,
.site-menu .nav-link.active {
  color: var(--site-color, #e91e8c) !important;
  background: rgba(233, 30, 140, 0.08);
  font-weight: 600;
}

.site-menu-tv {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  background: rgba(233, 30, 140, 0.06);
}

.site-menu-tv em {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: #e53935;
  border-radius: 6px;
  padding: 0.12rem 0.35rem;
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-btn-ghost,
.site-btn-primary {
  border-radius: 999px !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  padding: 0.5rem 0.95rem !important;
  white-space: nowrap;
}

.site-btn-ghost {
  border: 1px solid rgba(20, 20, 40, 0.12) !important;
  color: #333 !important;
  background: #fff !important;
}

.site-btn-ghost:hover {
  border-color: var(--site-color, #e91e8c) !important;
  color: var(--site-color, #e91e8c) !important;
}

.site-btn-primary {
  border: none !important;
  color: #fff !important;
  background: var(--site-color, #e91e8c) !important;
}

.site-dropdown {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(20, 20, 40, 0.12);
  padding: 0.5rem;
  min-width: 240px;
}

.site-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  white-space: normal;
}

.site-dropdown .dropdown-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 8px;
  background: #f6f6fa;
  flex-shrink: 0;
}

@media (max-width: 1199.98px) {
  .site-nav-collapse {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.85rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(20, 20, 40, 0.06);
    box-shadow: 0 12px 30px rgba(20, 20, 40, 0.08);
  }

  .site-menu {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.2rem;
    margin-bottom: 0.75rem !important;
  }

  .site-menu .nav-link {
    border-radius: 12px;
  }

  .site-actions {
    width: 100%;
    justify-content: stretch;
  }

  .site-actions .btn,
  .site-actions form {
    flex: 1 1 auto;
  }

  .site-actions .btn {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .site-brand-logo-only .site-brand-logo {
    height: 44px;
    max-width: 160px;
  }

  .site-brand-logo-only .site-brand-logo img {
    height: 40px;
  }
}
