/* Nexus global website header v18 */
.site-header.nexus-main-header,
.nexus-global-header {
  position: relative !important;
  z-index: 5000 !important;
  width: 100% !important;
  min-height: 76px !important;
  margin: 0 !important;
  padding: 0 max(28px, calc((100vw - 1440px)/2)) !important;
  display: flex !important;
  align-items: center !important;
  gap: 22px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(5,8,16,.94) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.18) !important;
  backdrop-filter: blur(26px) saturate(135%) !important;
  -webkit-backdrop-filter: blur(26px) saturate(135%) !important;
}
.site-header.nexus-main-header::after,
.nexus-global-header::after {
  content: "" !important;
  position: absolute !important;
  z-index: 4 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: -1px !important;
  height: 2px !important;
  background: linear-gradient(90deg, transparent 7%, rgba(142,44,255,.18) 18%, rgba(173,71,255,.70) 50%, rgba(142,44,255,.18) 82%, transparent 93%) !important;
  box-shadow: 0 5px 18px rgba(150,55,255,.18) !important;
  pointer-events: none !important;
}
.nexus-main-header .brand,
.nexus-global-header .brand {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
}
.nexus-main-header .brand-mark,
.nexus-global-header .brand-mark {
  width: 48px !important;
  height: 48px !important;
  display: grid !important;
  place-items: center !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}
.nexus-main-header .brand-mark img,
.nexus-global-header .brand-mark img { width:100% !important;height:100% !important;object-fit:contain !important;filter:drop-shadow(0 0 14px rgba(155,61,245,.24)) !important; }
.nexus-main-header .brand strong,
.nexus-global-header .brand strong { display:block !important;color:#f4f4f7 !important;font-size:17px !important;letter-spacing:.11em !important;line-height:1.1 !important; }
.nexus-main-header .brand small,
.nexus-global-header .brand small { display:block !important;margin-top:4px !important;color:#7d8493 !important;font-size:9.5px !important;letter-spacing:.14em !important;text-transform:uppercase !important; }
.nexus-main-nav { align-self: stretch !important; display:flex !important; align-items:stretch !important; gap:2px !important; }
.nexus-main-nav > a {
  position: relative !important;
  display:flex !important;
  align-items:center !important;
  padding: 0 11px !important;
  border:0 !important;
  border-radius:0 !important;
  color:#d7d8df !important;
  background:transparent !important;
  font-size:12.5px !important;
  font-weight:800 !important;
  letter-spacing:.015em !important;
  text-transform:uppercase !important;
  text-decoration:none !important;
  white-space:nowrap !important;
}
.nexus-main-nav > a:hover,
.nexus-main-nav > a.active { color:#c471ff !important; }
.nexus-main-nav > a::after { display:none !important; }
.nexus-main-nav > a.active::after,
.nexus-main-nav > a:hover::after {
  content:"" !important;
  display:block !important;
  position:absolute !important;
  left:10px !important;
  right:10px !important;
  bottom:-1px !important;
  height:3px !important;
  border-radius:99px 99px 0 0 !important;
  background:linear-gradient(90deg,#8d2cff,#c264ff) !important;
  box-shadow:0 0 14px rgba(155,61,245,.65) !important;
  z-index:6 !important;
}
.nexus-main-header .header-search-launch,
.nexus-global-header .header-search-launch {
  margin-left:auto !important;
  flex:0 0 190px !important;
  width:190px !important;
  height:40px !important;
  padding:0 12px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  border:1px solid rgba(255,255,255,.10) !important;
  border-radius:7px !important;
  color:#7f8798 !important;
  background:rgba(255,255,255,.025) !important;
  cursor:pointer !important;
  font-size:12.5px !important;
}
.nexus-main-header .header-search-launch:hover,
.nexus-global-header .header-search-launch:hover { color:#e6e7ec !important;border-color:rgba(155,61,245,.48) !important;background:rgba(155,61,245,.06) !important; }
.nexus-main-header .header-actions,
.nexus-global-header .header-actions { flex:0 0 auto !important;display:flex !important;align-items:center !important;gap:7px !important; }
.nexus-global-header .button { min-height:40px !important;padding:0 13px !important;border-radius:6px !important;font-size:11.5px !important;text-transform:uppercase !important;text-decoration:none !important;display:inline-flex !important;align-items:center !important;justify-content:center !important; }
.nexus-global-header .button-secondary { color:#c56aff !important;border:1px solid rgba(155,61,245,.45) !important;background:rgba(155,61,245,.06) !important; }
.nexus-global-header .button-ghost { color:#c9cbd3 !important;border:1px solid rgba(255,255,255,.11) !important;background:rgba(255,255,255,.02) !important; }
.nexus-global-header .member-badge { padding:10px 12px !important;border:1px solid rgba(255,255,255,.10) !important;border-radius:7px !important;color:#dddfe5 !important;background:rgba(255,255,255,.025) !important;font-size:11.5px !important; }

@media (max-width: 1180px) {
  .nexus-main-nav > a { padding:0 8px !important;font-size:11.5px !important; }
  .nexus-main-header .header-search-launch,.nexus-global-header .header-search-launch { flex-basis:160px !important;width:160px !important; }
}
@media (max-width: 980px) {
  .nexus-main-header .header-search-launch,.nexus-global-header .header-search-launch { display:none !important; }
  .nexus-main-nav > a:nth-child(5),.nexus-main-nav > a:nth-child(6) { display:none !important; }
}
@media (max-width: 760px) {
  .site-header.nexus-main-header,.nexus-global-header { min-height:auto !important;padding:10px 14px 0 !important;display:grid !important;grid-template-columns:1fr auto !important;gap:8px 10px !important; }
  .nexus-main-header .brand-mark,.nexus-global-header .brand-mark { width:40px !important;height:40px !important; }
  .nexus-main-header .brand strong,.nexus-global-header .brand strong { font-size:15.5px !important; }
  .nexus-main-header .brand small,.nexus-global-header .brand small { font-size:8px !important; }
  .nexus-main-nav { grid-column:1/-1 !important;order:3 !important;overflow-x:auto !important;scrollbar-width:none !important;min-width:0 !important; }
  .nexus-main-nav::-webkit-scrollbar { display:none !important; }
  .nexus-main-nav > a,.nexus-main-nav > a:nth-child(5),.nexus-main-nav > a:nth-child(6) { display:flex !important;min-height:42px !important;padding:0 10px !important;font-size:10.5px !important; }
  .nexus-main-header .header-actions,.nexus-global-header .header-actions { grid-column:2 !important;grid-row:1 !important; }
  .nexus-global-header .button-ghost { display:none !important; }
}


/* Global member authentication v20 */
.nexus-global-header-actions button.button { font-family:inherit; cursor:pointer; }
.nexus-global-auth { position:fixed; inset:0; z-index:15000; display:grid; place-items:center; padding:24px; }
.nexus-global-auth.hidden { display:none !important; }
.nexus-global-auth-backdrop { position:absolute; inset:0; border:0; background:rgba(2,4,10,.82); backdrop-filter:blur(12px); cursor:default; }
.nexus-global-auth-card { position:relative; z-index:1; width:min(470px,100%); max-height:calc(100vh - 40px); overflow:auto; padding:30px; border:1px solid rgba(170,75,255,.32); border-radius:18px; color:#f3f4f8; background:linear-gradient(155deg,rgba(25,14,43,.98),rgba(8,12,21,.99) 48%,rgba(13,9,24,.99)); box-shadow:0 30px 90px rgba(0,0,0,.58),0 0 55px rgba(139,43,236,.12); }
.nexus-global-auth-close { position:absolute; right:14px; top:14px; width:36px; height:36px; border:1px solid rgba(255,255,255,.10); border-radius:9px; color:#aab0bd; background:rgba(255,255,255,.035); font-size:22px; cursor:pointer; }
.nexus-global-auth-brand { display:flex; align-items:center; gap:11px; margin-bottom:24px; }
.nexus-global-auth-brand img { width:42px; height:42px; object-fit:contain; }
.nexus-global-auth-brand b,.nexus-global-auth-brand small { display:block; }
.nexus-global-auth-brand b { font-size:16.5px; letter-spacing:.10em; }
.nexus-global-auth-brand small { margin-top:4px; color:#9c55d5; font-size:9.5px; letter-spacing:.16em; }
.nexus-global-auth-card h2 { margin:0; color:#fff; font:700 27px/1.12 "Space Grotesk",system-ui,sans-serif; letter-spacing:-.025em; }
.nexus-global-auth-card>p { margin:8px 0 20px; color:#898f9d; font-size:12.5px; line-height:1.55; }
.nexus-global-auth-tabs { display:grid; grid-template-columns:1fr 1fr; gap:5px; margin-bottom:18px; padding:4px; border:1px solid rgba(255,255,255,.08); border-radius:10px; background:rgba(255,255,255,.025); }
.nexus-global-auth-tabs.hidden { display:none; }
.nexus-global-auth-tabs button { min-height:39px; border:0; border-radius:7px; color:#858c99; background:transparent; font-weight:800; cursor:pointer; }
.nexus-global-auth-tabs button.active { color:#fff; background:linear-gradient(135deg,#7929df,#a740f4); box-shadow:0 7px 18px rgba(123,43,225,.24); }
.nexus-global-auth-form { display:grid; gap:13px; }
.nexus-global-auth-form.hidden { display:none; }
.nexus-global-auth-form label span { display:block; margin:0 0 6px; color:#aab0bc; font-size:10.5px; font-weight:800; letter-spacing:.035em; }
.nexus-global-auth-form input { width:100%; height:45px; padding:0 13px; border:1px solid rgba(255,255,255,.10); border-radius:8px; outline:0; color:#f1f2f6; background:#090e18; font:inherit; font-size:13.5px; }
.nexus-global-auth-form input:focus { border-color:rgba(168,73,255,.64); box-shadow:0 0 0 3px rgba(155,61,245,.08); }
.nexus-global-auth-submit { min-height:45px; margin-top:4px; border:1px solid rgba(184,83,255,.50); border-radius:8px; color:#fff; background:linear-gradient(135deg,#7d28e2,#a43cf0); box-shadow:0 10px 25px rgba(123,43,225,.20); font-weight:900; cursor:pointer; }
.nexus-global-auth-submit:disabled { opacity:.55; cursor:wait; }
.nexus-global-auth-error { min-height:0; margin:0; color:#ff737f; font-size:11.5px; line-height:1.45; }
.nexus-global-auth-error:empty { display:none; }
.nexus-global-auth-note { color:#747c8c; font-size:10.5px; }
.nexus-global-admin-note { padding:12px; border:1px solid rgba(155,61,245,.18); border-radius:9px; background:rgba(155,61,245,.06); }
.nexus-global-admin-note b,.nexus-global-admin-note span { display:block; }
.nexus-global-admin-note span { margin-top:4px; color:#949baa; font-size:10.5px; }
#nexusGlobalAdminSecret { padding:10px 12px; border-radius:7px; color:#d3a3ff; background:#070b13; overflow-wrap:anywhere; }
#nexusGlobalAdminSecret.hidden { display:none; }
.nexus-global-auth-toast { position:fixed; z-index:16000; right:24px; bottom:24px; min-width:285px; max-width:min(390px,calc(100vw - 32px)); padding:14px 16px; display:flex; align-items:center; gap:11px; border:1px solid rgba(54,211,132,.30); border-radius:11px; color:#e8fff2; background:rgba(8,27,18,.96); box-shadow:0 20px 48px rgba(0,0,0,.42),0 0 28px rgba(54,211,132,.08); opacity:0; pointer-events:none; transform:translateY(16px); transition:.23s ease; }
.nexus-global-auth-toast.show { opacity:1; transform:translateY(0); }
.nexus-global-auth-toast b { width:26px; height:26px; display:grid; place-items:center; border-radius:50%; color:#7ff0ad; background:rgba(54,211,132,.12); }
.nexus-global-auth-toast span { font-size:12.5px; font-weight:750; }
/* Existing home / patches auth modal must sit above global header. */
.modal { z-index:15000 !important; }
.toast.toast-success { left:auto !important; right:24px !important; bottom:24px !important; min-width:285px; color:#e8fff2 !important; border-color:rgba(54,211,132,.30) !important; background:rgba(8,27,18,.96) !important; transform:translateY(16px) !important; }
.toast.toast-success.show { transform:translateY(0) !important; }
@media(max-width:600px){.nexus-global-auth{padding:12px}.nexus-global-auth-card{padding:24px 18px}.nexus-global-auth-toast,.toast.toast-success{right:16px !important;bottom:16px !important;min-width:0;width:calc(100vw - 32px)}}

/* v22 auth confirmation: always visible at lower-right before navigation */
#nexusAuthSuccessToast.nexus-global-auth-toast,#nexusGlobalAuthToast.nexus-global-auth-toast{position:fixed!important;z-index:2147483001!important;right:24px!important;bottom:24px!important;left:auto!important;top:auto!important;min-width:310px!important;max-width:min(430px,calc(100vw - 32px))!important;padding:15px 17px!important;display:flex!important;align-items:center!important;gap:12px!important;border:1px solid rgba(54,211,132,.38)!important;border-radius:12px!important;color:#eafff2!important;background:rgba(8,27,18,.98)!important;box-shadow:0 22px 55px rgba(0,0,0,.50),0 0 30px rgba(54,211,132,.10)!important;opacity:0!important;visibility:visible!important;transform:translateY(18px) scale(.98)!important;pointer-events:none!important;transition:opacity .22s ease,transform .22s ease!important}
#nexusAuthSuccessToast.nexus-global-auth-toast.show,#nexusGlobalAuthToast.nexus-global-auth-toast.show{opacity:1!important;transform:translateY(0) scale(1)!important}
#nexusAuthSuccessToast.nexus-global-auth-toast b,#nexusGlobalAuthToast.nexus-global-auth-toast b{width:30px!important;height:30px!important;flex:0 0 30px!important;display:grid!important;place-items:center!important;border-radius:50%!important;color:#82efae!important;background:rgba(54,211,132,.14)!important;font-size:15.5px!important}
#nexusAuthSuccessToast.nexus-global-auth-toast span,#nexusGlobalAuthToast.nexus-global-auth-toast span{font-size:13.5px!important;font-weight:850!important;line-height:1.45!important}
@media(max-width:600px){#nexusAuthSuccessToast.nexus-global-auth-toast,#nexusGlobalAuthToast.nexus-global-auth-toast{right:16px!important;bottom:16px!important;min-width:0!important;width:calc(100vw - 32px)!important}}


/* Oylama sekmesi v34 */
.nexus-main-nav .nav-voting-link{position:relative;color:#d6c0e8}.nexus-main-nav .nav-voting-link::before{content:"";width:6px;height:6px;margin-right:6px;display:inline-block;border-radius:50%;background:#b84cff;box-shadow:0 0 10px rgba(184,76,255,.75);vertical-align:1px}.nexus-main-nav .nav-voting-link:hover,.nexus-main-nav .nav-voting-link.active{color:#fff}.nexus-main-nav .nav-voting-link.active::before{background:#d37cff;box-shadow:0 0 14px rgba(211,124,255,.9)}


/* Nexus support/legal navigation consistency fix */
.nexus-main-nav .nexus-nav-support{color:#d9b3ff;font-weight:800}
.nexus-main-nav .nexus-nav-support:hover{color:#fff}
.nexus-main-nav .nexus-nav-legal{color:#b7becd}
.nexus-header-discord-button{white-space:nowrap}
@media (max-width:1280px){
  .nexus-main-nav .nexus-nav-legal{display:none}
  .nexus-header-discord-button{padding-left:12px!important;padding-right:12px!important}
}
@media (max-width:980px){
  .nexus-header-discord-button{display:none!important}
}

/* Nexus Destekçi üyelik rozetleri */
.nexus-nav-supporter-hub{color:#d8b4fe!important;border-color:rgba(168,85,247,.28)!important;background:rgba(126,34,206,.08)!important}
.member-badge.member-supporter{gap:7px;text-decoration:none;box-shadow:0 0 0 1px rgba(168,85,247,.22) inset,0 0 24px rgba(168,85,247,.08)}
.member-badge.member-supporter em{font-style:normal;font-size:9.5px;line-height:1;padding:4px 6px;border-radius:999px;letter-spacing:.06em;background:rgba(168,85,247,.18);color:#e9d5ff;border:1px solid rgba(192,132,252,.26);white-space:nowrap}
.member-badge.member-supporter.tier-nexus-supporter em{background:rgba(99,102,241,.18);color:#c7d2fe;border-color:rgba(129,140,248,.28)}
.member-badge.member-supporter.tier-nexus-plus em{background:linear-gradient(90deg,rgba(168,85,247,.24),rgba(236,72,153,.2));color:#f5d0fe;border-color:rgba(232,121,249,.3)}
@media (max-width:1180px){.nexus-nav-supporter-hub{display:none!important}.member-badge.member-supporter em{display:none}}


/* Destekçi profil görünümü: kullanıcı adı rengi + mini profil çerçevesi */
.member-badge.member-supporter{position:relative;font-weight:850}
.member-badge.member-supporter .member-dot{width:11px!important;height:11px!important;border-radius:50%!important;background:#c084fc!important;border:2px solid rgba(255,255,255,.85)!important;box-shadow:0 0 0 2px rgba(168,85,247,.5),0 0 13px rgba(168,85,247,.55)!important}
.member-badge.member-supporter.tier-supporter{color:#e9d5ff!important}
.member-badge.member-supporter.tier-nexus-supporter{color:#c7d2fe!important}
.member-badge.member-supporter.tier-nexus-supporter .member-dot{background:#818cf8!important;box-shadow:0 0 0 2px rgba(99,102,241,.5),0 0 14px rgba(99,102,241,.6)!important}
.member-badge.member-supporter.tier-nexus-plus{color:#f5d0fe!important;text-shadow:0 0 15px rgba(232,121,249,.2)}
.member-badge.member-supporter.tier-nexus-plus .member-dot{background:#f0abfc!important;box-shadow:0 0 0 2px rgba(232,121,249,.62),0 0 16px rgba(232,121,249,.72)!important}

/* Nexus global header v19 — geniş masaüstü taşma/çakışma düzeltmesi */
.site-header.nexus-main-header,
.nexus-global-header {
  padding-left: max(20px, calc((100vw - 1600px) / 2)) !important;
  padding-right: max(20px, calc((100vw - 1600px) / 2)) !important;
  gap: 14px !important;
}
.nexus-main-nav {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  justify-content: center !important;
}
.nexus-main-nav > a {
  flex: 0 0 auto !important;
}
.nexus-main-header .header-actions,
.nexus-global-header .header-actions {
  min-width: 0 !important;
  white-space: nowrap !important;
}

/* 1600px civarında giriş yapmış/admin kullanıcıda arama kutusu menüyü ezmesin. */
@media (max-width: 1780px) and (min-width: 981px) {
  .site-header.nexus-main-header,
  .nexus-global-header { gap: 10px !important; }
  .nexus-main-nav > a { padding-left: 7px !important; padding-right: 7px !important; font-size: 11.5px !important; }
  .nexus-main-header .header-search-launch,
  .nexus-global-header .header-search-launch {
    margin-left: 0 !important;
    flex: 0 0 42px !important;
    width: 42px !important;
    min-width: 42px !important;
    padding: 0 !important;
    justify-content: center !important;
    gap: 0 !important;
  }
  .nexus-main-header .header-search-launch > span,
  .nexus-global-header .header-search-launch > span { display: none !important; }
  .nexus-main-header .header-actions,
  .nexus-global-header .header-actions { gap: 5px !important; }
}

/* Orta masaüstünde ikincil menüleri sadeleştir; temel gezinme ve Destek Ol kalır. */
@media (max-width: 1500px) and (min-width: 981px) {
  .nexus-main-nav > a:nth-child(5),
  .nexus-main-nav > a:nth-child(6) { display: none !important; }
  .nexus-main-nav > a { padding-left: 8px !important; padding-right: 8px !important; }
  .nexus-main-header .brand strong,
  .nexus-global-header .brand strong { font-size: 16.5px !important; }
  .nexus-main-header .brand small,
  .nexus-global-header .brand small { font-size: 8px !important; }
}

/* Yönetici görünümündeki uzun Güvenlik düğmesini ikon boyutuna indir. */
@media (max-width: 1420px) and (min-width: 981px) {
  .nexus-main-header .admin-security-button,
  .nexus-global-header .admin-security-button {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    padding: 0 !important;
    overflow: hidden !important;
    font-size: 0 !important;
    color: transparent !important;
  }
  .nexus-main-header .admin-security-button::before,
  .nexus-global-header .admin-security-button::before {
    content: "🛡" !important;
    font-size: 16.5px !important;
    color: #c9cbd3 !important;
  }
}

/* Daha dar masaüstünde Discord metni yerine ikonu koru; mobil düzen 980px'de devralır. */
@media (max-width: 1280px) and (min-width: 981px) {
  .nexus-main-header .discord-dm-header-button b,
  .nexus-global-header .discord-dm-header-button b { display: none !important; }
  .nexus-main-header .discord-dm-header-button,
  .nexus-global-header .discord-dm-header-button {
    width: 42px !important;
    min-width: 42px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    justify-content: center !important;
  }
  .nexus-main-header .member-badge,
  .nexus-global-header .member-badge { display: none !important; }
  .nexus-main-nav > a { padding-left: 6px !important; padding-right: 6px !important; font-size: 10.5px !important; }
}

/* Nexus Puan Mağazası profil kozmetikleri */
.member-badge.point-neon{color:#f0abfc!important;text-shadow:0 0 9px rgba(236,72,153,.8),0 0 18px rgba(139,92,246,.55)}
.member-badge.point-frame{outline:1px solid rgba(167,139,250,.5);box-shadow:0 0 0 3px rgba(139,92,246,.1),0 0 20px rgba(139,92,246,.16)}
.member-badge.point-veteran{background:linear-gradient(90deg,rgba(245,158,11,.12),rgba(139,92,246,.12))!important}
.member-badge .point-collectible{background:rgba(245,158,11,.14)!important;color:#fde68a!important;border-color:rgba(245,158,11,.3)!important}
.member-badge .point-legend{background:linear-gradient(90deg,rgba(245,158,11,.22),rgba(236,72,153,.18))!important;color:#fff7cc!important;border-color:rgba(251,191,36,.4)!important}
