/* =========================================================
   Giriş sayfası (giris.html) — ortalanmış tek kart
   ========================================================= */
.auth-body { min-height: 100svh; display: flex; flex-direction: column; }
.auth-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.auth-bg #embers { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-bg .hero-grid-floor { height: 50%; }

.auth-top { display: flex; align-items: center; justify-content: space-between; padding: 28px clamp(20px, 4vw, 48px); }
.auth-back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; font-size: .92rem; transition: color .25s; }
.auth-back svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.auth-back:hover { color: var(--text); }
.auth-back:hover svg { transform: translateX(-3px); }

.auth-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 20px 60px; }
.auth-card {
  width: 100%; max-width: 400px; padding: 40px 36px 30px; border-radius: 24px; text-align: center;
  background: rgba(20, 17, 15, .82); border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02) inset;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  animation: authIn .7s var(--ease) both;
}
@keyframes authIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }

.auth-logo { position: relative; width: 76px; height: 80px; margin: 0 auto 22px; }
.auth-logo::before { content: ''; position: absolute; inset: -22px; border-radius: 50%; background: radial-gradient(circle, rgba(249,115,22,.35), transparent 68%); }
.auth-logo img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.auth-card h1 { font-family: var(--display); font-weight: 800; font-size: 1.75rem; letter-spacing: -.025em; margin: 0 0 8px; line-height: 1.15; }
.auth-sub { color: var(--muted); margin: 0 0 26px; font-size: .98rem; }

.auth-alert { display: block; text-align: left; padding: 12px 14px; border-radius: 12px; font-size: .85rem; margin-bottom: 16px; line-height: 1.5; }
.auth-alert.warn { background: rgba(255,201,77,.07); border: 1px solid rgba(255,201,77,.25); color: #f5d27a; }
.auth-alert.info { background: rgba(88,101,242,.1); border: 1px solid rgba(88,101,242,.3); color: #c7cbff; }
.auth-alert code { font-family: var(--mono); font-size: .8rem; padding: 1px 5px; border-radius: 5px; background: rgba(255,255,255,.08); }

.auth-discord {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 54px; border-radius: 14px; overflow: hidden; isolation: isolate;
  background: #5865f2; color: #fff; font-weight: 600; font-size: 1.02rem;
  box-shadow: 0 14px 30px -14px rgba(88,101,242,.9), inset 0 1px 0 rgba(255,255,255,.2);
  transition: transform .3s var(--ease), box-shadow .3s, background .25s;
}
.auth-discord::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.2) 50%, transparent 70%); transform: translateX(-100%); transition: transform .8s var(--ease); }
.auth-discord:hover { transform: translateY(-1px); background: #4f5be8; box-shadow: 0 18px 36px -14px rgba(88,101,242,1), inset 0 1px 0 rgba(255,255,255,.25); }
.auth-discord:hover::before { transform: translateX(100%); }
.auth-discord [data-icon] { display: inline-flex; width: 22px; height: 22px; }
.auth-discord [data-icon] svg { width: 22px; height: 22px; }
.auth-discord.disabled { filter: grayscale(.5); opacity: .55; pointer-events: none; }
.auth-discord.loading { pointer-events: none; }
.auth-discord.loading [data-icon] svg { display: none; }
.auth-discord.loading [data-icon]::after { content: ''; width: 18px; height: 18px; margin: 2px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }

.auth-servers { margin-top: 28px; }
.auth-servers > span { display: block; color: var(--dim); font-size: .8rem; margin-bottom: 12px; }
.auth-servers > div { display: flex; justify-content: center; gap: 10px; }
.auth-servers img { width: 34px; height: 34px; object-fit: contain; padding: 5px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line); filter: grayscale(1) brightness(.85); opacity: .7; transition: filter .3s, opacity .3s, transform .3s var(--ease), border-color .3s; }
.auth-servers img:hover { filter: none; opacity: 1; transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 50%, transparent); }

.auth-fine { display: flex; gap: 8px; align-items: flex-start; justify-content: center; text-align: left; margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--dim); font-size: .76rem; line-height: 1.5; }
.auth-fine svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.auth-foot { margin: 22px 0 0; color: var(--dim); font-size: .88rem; }
.auth-foot a { color: #8f97ff; font-weight: 600; }
.auth-foot a:hover { text-decoration: underline; }

.auth-account { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px; border-radius: 14px; border: 1px solid rgba(88,101,242,.3); background: rgba(88,101,242,.07); }
.auth-account img { width: 44px; height: 44px; border-radius: 50%; }
.auth-account b { display: block; }
.auth-account small { color: var(--dim); }
.auth-actions { display: flex; gap: 8px; margin-top: 12px; }
.auth-actions .btn { flex: 1; padding: 12px 14px; }

@media (max-width: 480px) {
  .auth-top { padding: 20px 16px; }
  .auth-top .brand-text { font-size: .95rem; }
  .auth-card { padding: 32px 22px 24px; }
}

/* Rol rozetleri */
.rb { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; margin: 0 4px 4px 0; border: 1px solid var(--line-2); color: var(--muted); background: rgba(255,255,255,.04); white-space: nowrap; }
.rb.media { color: var(--accent-2); border-color: rgba(253,186,116,.35); background: rgba(253,186,116,.08); }
.rb.plus { position: relative; overflow: hidden; color: #1a0f02; border: 0; background: linear-gradient(110deg, #fbbf24, #f97316 45%, #fde68a 55%, #f59e0b); background-size: 220% 100%; animation: plusShine 3.2s linear infinite; box-shadow: 0 0 16px -4px rgba(251,191,36,.7); }
.rb.plus::before { content: '★'; font-size: .7rem; }
@keyframes plusShine { to { background-position: -220% 0; } }
.rb.partner { position: relative; overflow: hidden; color: #fde68a; border: 1px solid rgba(251,191,36,.55); background: linear-gradient(135deg, #1c1407, #2a1d07); box-shadow: 0 0 18px -6px rgba(251,191,36,.8), inset 0 1px 0 rgba(255,255,255,.08); }
.rb.partner::before { content: '♛'; font-size: .78rem; color: #fbbf24; }
.rb.partner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(253,230,138,.35) 50%, transparent 70%); transform: translateX(-100%); animation: partnerShine 2.8s ease-in-out infinite; }
@keyframes partnerShine { 60%, 100% { transform: translateX(100%); } }
.rb.manager { color: #93c5fd; border-color: rgba(147,197,253,.35); background: rgba(59,130,246,.1); }
.rb.admin { color: #fca5a5; border-color: rgba(252,165,165,.35); background: rgba(239,68,68,.1); }
.nav-user .menu .role { display: flex; flex-wrap: wrap; }

/* Panel: yetki listesi */
.perm-list { display: grid; gap: 8px; text-align: left; margin: 22px 0 0; }
.perm { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(12,10,9,.5); font-size: .9rem; }
.perm i { width: 22px; height: 22px; flex: none; border-radius: 7px; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: .75rem; }
.perm.on i { background: rgba(16,185,129,.15); color: var(--ok); }
.perm.off { color: var(--dim); }
.perm.off i { background: rgba(255,255,255,.05); color: var(--dim); }

/* Başvurularım (başvuru sayfası yan paneli) */
.my-apps { scroll-margin-top: 100px; }
.my-app { --c: var(--accent); position: relative; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(12,10,9,.5); margin-bottom: 8px; overflow: hidden; }
.my-app::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--c); }
.my-app img { width: 38px; height: 38px; object-fit: contain; flex: none; margin-left: 4px; }
.my-app div { flex: 1; min-width: 0; }
.my-app b { display: block; font-size: .92rem; }
.my-app small { color: var(--dim); font-size: .78rem; }
.my-app p { margin: 6px 0 0; color: var(--muted); font-size: .8rem; }
.my-empty { padding: 18px; border-radius: 12px; border: 1px dashed var(--line-2); color: var(--dim); font-size: .86rem; text-align: center; }

/* Ana sayfa: çevrimiçi oyuncu rozeti */
.online-pill { display: inline-flex; align-items: center; gap: 12px; padding: 6px 8px 6px 14px; border-radius: 999px; background: rgba(16,185,129,.07); border: 1px solid rgba(16,185,129,.22); color: var(--muted); font-size: .92rem; transition: border-color .3s, background .3s; }
.online-pill:hover { border-color: rgba(16,185,129,.45); background: rgba(16,185,129,.11); }
.online-pill b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.online-pill .live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.online-pill .live i { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ok); animation: ping 1.8s var(--ease) infinite; }
.op-logos { display: flex; }
.op-logos img { width: 26px; height: 26px; padding: 3px; object-fit: contain; border-radius: 50%; background: var(--surface-2); border: 1.5px solid var(--bg); margin-left: -7px; }
.op-logos img:first-child { margin-left: 0; }

/* Sunucu kartı: çevrimiçi sayı */
.srv-online { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--ok); font-weight: 600; margin-top: 2px; }
.srv-online i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.srv-online.off { color: var(--dim); }
.srv-online.off i { box-shadow: none; }

@media (max-width: 480px) {
  .op-logos { display: none; }
}

/* Ana sayfa: şartlar için sunucu seçici */
.srv-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.srv-chip { --c: var(--accent); display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font: 600 .86rem var(--font); cursor: pointer; transition: border-color .25s, background .25s, color .25s; }
.srv-chip img { width: 24px; height: 24px; object-fit: contain; }
.srv-chip:hover { color: var(--text); border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.srv-chip.active { color: var(--text); border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--surface)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 15%, transparent); }
