.site-header {
  background:
    linear-gradient(115deg, transparent 54%, rgba(0, 151, 178, 0.08)),
    linear-gradient(90deg, rgba(255, 145, 77, 0.1), transparent 28%),
    #0f2236;
  border-bottom: 1px solid rgba(255, 145, 77, 0.3);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 16px 44px rgba(2, 6, 23, 0.2);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #FF914D, #0097B2, transparent);
  opacity: 0.75;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 68px;
  gap: clamp(10px, 1.1vw, 20px);
}

.logo {
  min-width: 0;
  flex: 0 1 auto;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: clamp(19px, 1.45vw, 24px);
  line-height: 1;
  letter-spacing: 0.2px;
  transform: translateY(3px);
}

.brand-text {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  line-height: 1;
  white-space: nowrap;
}

.brand-text strong {
  color: #FF914D;
  font-size: 1em;
  font-weight: 900;
  line-height: 1;
}

.brand-text span {
  color: #d7dee9;
  font-family: var(--ydea-font-mono);
  font-size: clamp(9px, 0.62vw, 12px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  opacity: 0.9;
}

.logo-mark {
  display: block;
  width: auto;
  height: clamp(46px, 3.7vw, 58px);
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(255, 145, 77, 0.38));
}

.main-nav {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  gap: clamp(5px, 0.7vw, 10px);
}

.main-nav a {
  margin-left: 0;
  padding: 9px clamp(7px, 0.65vw, 12px);
  border-radius: 10px;
  color: #cbd5e1;
  font-size: clamp(13px, 0.9vw, 15px);
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap !important;
  position: relative;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #FF914D;
  background: transparent;
  box-shadow: none;
  outline: none;
}


.btn-outline {
  border: 1px solid #FF914D;
  background: linear-gradient(135deg, #FF914D, #f97316);
  color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(255, 145, 77, 0.25);
}

.btn-outline:hover {
  background: linear-gradient(135deg, #ff9f62, #fb7c22) !important;
}

.btn-ghost {
  opacity: 1;
  background: rgba(51, 65, 85, 0.9);
}

.account-area-link {
  color: #e2e8f0 !important;
  background: rgba(148, 163, 184, 0.1);
}

.admin-dashboard-link {
  color: #ffffff !important;
  background: linear-gradient(135deg, #ff914d 0%, #ff7a25 100%);
  font-weight: 900 !important;
  box-shadow: 0 12px 28px rgba(255, 122, 37, 0.24);
}

.admin-dashboard-link:hover {
  background: linear-gradient(135deg, #ffae78 0%, #ff914d 100%) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.18);
}

.language-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 32px;
  padding: 0 8px;
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.language-switcher a:hover,
.language-switcher a:focus-visible,
.language-switcher a.is-active {
  color: #ffffff;
  background: rgba(255, 145, 77, 0.9);
}

.btn-outline,
.account-area-link,
.btn-ghost,
.admin-dashboard-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}

.account-area-link:hover {
  background: rgba(148, 163, 184, 0.18) !important;
}

.user-menu {
  position: relative;
  display: inline-flex;
}

.user-avatar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50% !important;
  background: #ffd9c5;
  color: #7c3f2a !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.user-avatar-button:hover,
.user-avatar-button[aria-expanded="true"] {
  background: #ffe2d2 !important;
  color: #6f3522 !important;
}

.user-menu-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 80;
  width: 230px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: #111820;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.36);
}

.user-menu-panel::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 16px;
  width: 10px;
  height: 10px;
  border-left: 1px solid rgba(148, 163, 184, 0.22);
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  background: #111820;
  transform: rotate(45deg);
}

.user-menu-panel a,
.user-menu-panel button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #cbd5e1;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.user-menu-panel a:hover,
.user-menu-panel button:hover {
  background: rgba(255, 145, 77, 0.14);
  color: #FF914D;
}

.user-menu-panel button {
  color: #fca5a5;
}

.user-menu[hidden],
.user-menu-panel[hidden],
.account-area-link[hidden],
.admin-dashboard-link[hidden],
.customer-nav-link[hidden],
.auth-login-link[hidden] {
  display: none;
}

@media (max-width: 1480px) {
  .header-inner {
    min-height: 64px;
    gap: 10px;
  }

  .logo-link {
    font-size: 20px;
  }

  .brand-text {
    gap: 5px;
  }

  .brand-text span {
    font-size: 10px;
  }

  .logo-mark {
    height: 48px;
  }

  .main-nav a {
    padding: 8px 9px;
    font-size: 13px;
  }

  .btn-outline,
  .account-area-link,
  .btn-ghost,
  .admin-dashboard-link {
    padding-inline: 12px !important;
  }

  .language-switcher a {
    min-width: 30px;
    min-height: 30px;
    font-size: 11px;
  }
}

@media (max-width: 1120px) {
  .header-inner {
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    padding-block: 10px;
  }

  .main-nav {
    justify-content: center;
    flex-wrap: wrap;
  }
}
