/* Refined desktop header: calmer surfaces, tighter rhythm, and clearer hierarchy. */
@media (min-width: 769px) {
  .main-header {
    background: #111722;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  }

  .main-header::before,
  .main-header::after,
  .header-top::before,
  .header-main::before,
  .header-main::after,
  .header-categories::before,
  .header-categories::after {
    display: none;
  }

  .header-top {
    padding: 8px 0;
    background: #151c28;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: none;
  }

  .header-top-content {
    min-height: 34px;
    gap: 12px;
  }

  .header-left-links,
  .header-auth {
    gap: 8px;
  }

  .header-link-btn {
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(148, 163, 184, 0.16);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: none;
    box-shadow: none;
  }

  .header-link-btn i {
    color: #94a3b8;
    font-size: 13px;
  }

  .header-link-btn:hover {
    color: #fff;
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(96, 165, 250, 0.32);
    box-shadow: none;
    transform: none;
  }

  .header-link-btn[href*="ilan-ekle"] {
    background: rgba(37, 99, 235, 0.14);
    border-color: rgba(96, 165, 250, 0.32);
    color: #bfdbfe;
  }

  .header-main {
    padding: 12px 0;
    background: #111722;
  }

  .header-content {
    gap: 24px;
    min-height: 58px;
  }

  .logo {
    gap: 12px !important;
    flex-shrink: 0;
  }

  .logo:hover {
    transform: none;
  }

  .logo-text-main {
    font-size: 19px;
    letter-spacing: -0.5px;
  }

  .logo-text-subtitle {
    margin-top: 2px;
    font-size: 10px;
    letter-spacing: 0.7px;
  }

  .etbis-badge-header {
    animation: none !important;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.18) !important;
  }

  .header-categories {
    padding: 8px 0;
    background: #151c28;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
  }

  .header-categories .categories-nav {
    align-items: center;
    gap: 8px;
    padding: 2px 0;
    scrollbar-width: none;
  }

  .header-categories .categories-nav::-webkit-scrollbar {
    display: none;
  }

  .header-categories .category-link {
    min-height: 38px;
    padding: 8px 13px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 600;
    box-shadow: none;
  }

  .header-categories .category-link:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(96, 165, 250, 0.3);
    color: #fff;
    box-shadow: none;
    transform: none;
  }

  .header-categories .category-link-primary,
  .header-categories .category-link:first-child {
    background: #1e40af !important;
    border-color: rgba(96, 165, 250, 0.5) !important;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.22) !important;
  }

  .header-categories .category-link-highlight {
    margin-left: auto;
    background: #059669 !important;
    border-color: rgba(52, 211, 153, 0.36) !important;
    box-shadow: none !important;
  }

  .header-categories .category-link-highlight:hover {
    background: #047857 !important;
    box-shadow: none !important;
  }

  #userDropdown.user-dropdown-modern {
    top: calc(100% + 10px);
    width: 304px;
    min-width: 304px;
    max-width: min(340px, calc(100vw - 24px));
    max-height: calc(100vh - 96px);
    display: none;
    background: #111722;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(18px);
    animation: dropdownOpen 0.18s ease-out;
  }

  #userDropdown.user-dropdown-modern[style*="block"] {
    display: block;
  }

  #userDropdown .dropdown-modern-accent {
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #38bdf8);
  }

  #userDropdown .dropdown-header-modern {
    min-height: 76px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(17, 23, 34, 0));
    border-bottom-color: rgba(148, 163, 184, 0.14);
  }

  #userDropdown .dropdown-username {
    margin: 0;
    color: #f8fafc;
    font-size: 14px;
  }

  #userDropdown .dropdown-menu-items {
    max-height: min(390px, calc(100vh - 250px));
    padding: 12px 10px;
    overscroll-behavior: contain;
  }

  #userDropdown .dropdown-section-label {
    color: #64748b;
    padding: 5px 10px 7px;
    letter-spacing: 0.1em;
  }

  #userDropdown .dropdown-item {
    min-height: 42px;
    gap: 11px;
    padding: 6px 10px;
    margin: 2px 0;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #dbe4f0;
    font-size: 12px;
  }

  #userDropdown .dropdown-item:hover {
    background: rgba(59, 130, 246, 0.09);
    border-color: rgba(96, 165, 250, 0.14);
    color: #fff;
    transform: translateX(2px);
  }

  #userDropdown .dropdown-item-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 8px;
    background: rgba(96, 165, 250, 0.1);
  }

  #userDropdown .dropdown-divider {
    background: rgba(148, 163, 184, 0.14);
    margin: 8px 6px;
  }

  #userDropdown .dropdown-badge {
    font-size: 10px;
    padding: 3px 7px;
    animation: none;
  }

  #userDropdown .dropdown-footer-modern {
    padding: 10px 12px;
    background: rgba(2, 6, 23, 0.24);
    border-top-color: rgba(148, 163, 184, 0.14);
  }

  #userDropdown .dropdown-logout {
    padding: 10px 14px;
    border-radius: 9px;
    font-size: 12px;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .header-left-links,
  .header-auth {
    gap: 5px;
  }

  .header-link-btn {
    padding-inline: 9px;
    font-size: 11px;
  }

  .header-content {
    gap: 14px;
  }
}

/* Prestij ölçüleri: sonraki dosyaların üstüne yazar */
.header-main .header-content {
  min-height: 88px !important;
  gap: 16px !important;
}
.header-categories {
  background: #222437 !important;
  border-bottom: 1px solid #363a54 !important;
  padding: 0 !important;
}
.header-categories .categories-nav {
  min-height: 55px !important;
  gap: 2px !important;
  align-items: center !important;
}
.header-categories .categories-nav .category-link {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #aeb2cb !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 10px 0 5px !important;
  border-radius: 10px !important;
  font-size: 13.6px !important;
  font-weight: 600 !important;
  gap: 9px !important;
  transform: none !important;
}
.header-categories .categories-nav .category-link-primary,
.header-categories .categories-nav .category-link:first-child,
.header-categories .categories-nav .category-link-highlight {
  background: #6366f1 !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
  height: 38px !important;
  padding: 0 14px !important;
  font-weight: 700 !important;
  font-size: 13.8px !important;
}
.header-categories .categories-nav .category-link-epin {
  background: linear-gradient(135deg, #ff4655, #6366f1) !important;
}
.header-categories .categories-nav .category-link-highlight {
  margin-left: auto !important;
}
.header-categories .pp-nav-logo {
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
  object-fit: cover !important;
  border: 0 !important;
  filter: none !important;
  margin: 0 !important;
}
.header-balance::before,
.profile-btn-glow { display: none !important; }
.profile-btn-animated {
  height: 38px !important;
  padding: 0 8px 0 4px !important;
  background: #232536 !important;
  border: 1px solid #34384f !important;
  border-radius: 11px !important;
  box-shadow: none !important;
}
.profile-btn-content {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.main-header {
  position: relative !important;
  top: auto !important;
}
.header-top {
  background: #161826 !important;
  padding: 4px 0 !important;
}
.header-top-content { min-height: 30px !important; }
.header-top .header-link-btn {
  color: #b9bdd6 !important;
  font-size: 12.8px !important;
  font-weight: 500 !important;
  min-height: 28px !important;
  padding: 0 10px !important;
  background: transparent !important;
}
.header-main { padding: 0 !important; }
.header-search .search-input-wrapper,
.search-input-wrapper { background: #1f2133 !important; }
.profile-btn-animated {
  background: #272a3e !important;
  border-color: #363a54 !important;
  height: 44px !important;
  font-weight: 600 !important;
}
