.app-header {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.94));
  backdrop-filter: blur(14px);
  color: #e2e8f0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.22);
  z-index: 20;
}

.app-header-left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.app-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f8fafc;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.app-logo img {
  width: 22px;
  height: 22px;
}

.app-logo-mark {
  white-space: nowrap;
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.app-nav-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.app-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.06);
}

.app-nav-link.active {
  background: rgba(56, 189, 248, 0.18);
  color: #e0f2fe;
  border-color: rgba(56, 189, 248, 0.2);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.08);
}

.app-header-right {
  flex-shrink: 0;
}

.app-user {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  color: #f8fafc;
  text-decoration: none;
  padding: 0;
}

.app-user:hover {
  color: #e0f2fe;
}

.app-user-label {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
}

.app-user-subtitle {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.1;
}

@media (max-width: 860px) {
  .app-header {
    padding: 12px 14px;
  }

  .app-header-left {
    min-width: 0;
    flex: 1 1 auto;
  }

  .app-nav {
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .app-nav::-webkit-scrollbar {
    display: none;
  }

  .app-nav-link {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .app-header-right {
    flex: 0 0 auto;
  }
}
