/* MORGANA BOTS — koyu mor / siyah tema (v3) */
:root {
  --bg: #060509;
  --bg-2: #0b0912;
  --surface: rgba(20, 16, 31, 0.72);
  --surface-solid: #14101f;
  --surface-2: #1b1629;
  --surface-3: #251d38;
  --border: rgba(139, 112, 220, 0.14);
  --border-strong: rgba(160, 130, 255, 0.3);
  --text: #f1eefa;
  --text-2: #b0a8c9;
  --text-3: #736b8e;
  --purple: #8b5cf6;
  --purple-2: #b49bff;
  --purple-deep: #5b21b6;
  --pink: #d946ef;
  --glow: rgba(139, 92, 246, 0.38);
  --green: #34d399;
  --yellow: #fbbf24;
  --red: #fb7185;
  --blue: #60a5fa;
  --gold: #f5c86b;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }
::selection { background: var(--purple); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }
svg.ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Arka plan isiklari */
.bg-orbs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-orbs i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.bg-orbs i:nth-child(1) { width: 520px; height: 520px; background: #4c1d95; top: -180px; right: -120px; }
.bg-orbs i:nth-child(2) { width: 420px; height: 420px; background: #3b0764; bottom: -160px; left: -140px; }
.bg-orbs i:nth-child(3) { width: 300px; height: 300px; background: #701a75; top: 40%; left: 45%; opacity: 0.18; }

/* Sunucu banneri: tum sitenin arkasinda saydam, asagi dogru kaybolur */
.bg-banner {
  position: fixed; inset: 0 0 auto 0; height: 78vh; z-index: -2; pointer-events: none;
  background-image: var(--banner, none); background-size: cover; background-position: center 30%;
  opacity: 0; filter: saturate(1.15) blur(1.5px); transform: scale(1.03);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.45) 45%, transparent 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.45) 45%, transparent 100%);
  transition: opacity 0.8s ease;
}
.has-banner .bg-banner { opacity: 0.2; }
.has-banner .bg-orbs i { opacity: 0.35; }

/* Banner seridi: yan menunun ve giris kartinin ust kismi */
.has-banner .sidebar::before, .has-banner .login-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 150px; z-index: 0; pointer-events: none;
  background: var(--banner) center / cover; opacity: 0.4;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
}
.has-banner .login-card::before { display: none; }

/* Giris karti: ustte sunucu banneri, ortasinda banner'a tasan buyuk gif ikon (Discord profili gibi) */
.login-banner {
  height: 150px; margin: -34px -34px -6px; position: relative;
  background: linear-gradient(135deg, #4c1d95, #86198f);
}
.has-banner .login-banner { background: var(--banner) center / cover; }
.login-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--surface-solid) 100%); }
.login-brand { display: grid; justify-items: center; gap: 6px; text-align: center; margin-top: -70px; }
.login-brand .brand-mark { width: 96px; height: 96px; font-size: 40px; border-radius: 50%; box-shadow: 0 0 0 6px var(--surface-solid), 0 10px 40px var(--glow); }
.login-brand .brand-mark.has-icon img { inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); }
.login-brand .brand-name { font-size: 18px; margin-top: 8px; }
.login-guild { color: var(--text-2); font-size: 13px; letter-spacing: 0.12em; }
.login-card { background: var(--surface-solid); }
/* Yan menude banner kendi alanini alir: logo bannerin alt kenarina oturur, menu banner bitince baslar */
.has-banner .sidebar::before { height: 168px; opacity: 0.75; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
/* Logo ustte durur; altinda bannerin alt kismi acik kalir */
.has-banner .sidebar .brand { min-height: 126px; align-items: flex-start; }
.sidebar > *, .login-card > * { position: relative; z-index: 1; }
.login-card { position: relative; overflow: hidden; }
.brand-name, .brand-sub { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8); }

/* ── Marka ── */
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none;
  font-weight: 800; font-size: 18px; color: #fff;
  background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 130%);
  box-shadow: 0 8px 28px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
/* Sunucu gifi: donen mor-pembe halka icinde */
.brand-mark.has-icon { position: relative; padding: 0; border-radius: 50%; background: conic-gradient(from 0deg, var(--purple), var(--pink), var(--purple-2), var(--purple)); animation: ring 6s linear infinite; }
.brand-mark.has-icon img { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); border-radius: inherit; object-fit: cover; animation: ring 6s linear infinite reverse; background: var(--bg-2); }
@keyframes ring { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .brand-mark.has-icon, .brand-mark.has-icon img { animation: none; } }
.brand-name { font-weight: 800; letter-spacing: 0.16em; font-size: 13px; }
.brand-sub { color: var(--text-3); font-size: 12px; max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-lg .brand-mark { width: 52px; height: 52px; font-size: 24px; border-radius: 15px; }
.brand-lg .brand-name { font-size: 17px; }

/* ── Giris ── */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card {
  width: 100%; max-width: 410px; padding: 34px; border-radius: 22px; display: grid; gap: 26px;
  background: var(--surface); border: 1px solid var(--border-strong); backdrop-filter: blur(18px);
  box-shadow: var(--shadow), 0 0 120px rgba(139, 92, 246, 0.12);
}
.login-step { display: grid; gap: 14px; }
.login-greet { margin: 0; color: var(--text-2); }
.hint { margin: 0; color: var(--text-3); font-size: 12px; text-align: center; }

/* ── Form ── */
.field { display: grid; gap: 6px; }
.field > span { color: var(--text-2); font-size: 12px; font-weight: 600; }
input, select, textarea {
  width: 100%; background: rgba(8, 6, 14, 0.7); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px; outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
select { cursor: pointer; }
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2); }
#login-code { letter-spacing: 0.5em; text-align: center; font-size: 20px; font-weight: 700; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  padding: 9px 14px; border-radius: var(--radius-sm); cursor: pointer; font-weight: 600;
  transition: background 0.15s, border-color 0.15s, transform 0.08s, opacity 0.15s, box-shadow 0.15s; white-space: nowrap;
}
.btn:hover { background: var(--surface-3); border-color: var(--border-strong); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--purple), #7c3aed 60%, #a21caf); border-color: transparent; color: #fff; box-shadow: 0 6px 22px rgba(139, 92, 246, 0.35); }
.btn-primary:hover { filter: brightness(1.1); border-color: transparent; box-shadow: 0 8px 28px rgba(139, 92, 246, 0.5); }
.btn-danger { background: rgba(251, 113, 133, 0.1); border-color: rgba(251, 113, 133, 0.35); color: #fda4af; }
.btn-danger:hover { background: rgba(251, 113, 133, 0.2); border-color: rgba(251, 113, 133, 0.6); }
.btn-warn { background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.35); color: #fcd34d; }
.btn-warn:hover { background: rgba(251, 191, 36, 0.18); border-color: rgba(251, 191, 36, 0.55); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 6px 11px; font-size: 12px; }
.btn-block { width: 100%; }
.icon-btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--text-2); cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

/* ── Yerlesim ── */
.app { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 20px;
  padding: 22px 14px; background: rgba(9, 7, 15, 0.78); border-right: 1px solid var(--border); backdrop-filter: blur(16px);
}
.sidebar .brand { padding: 0 6px; }
.nav { display: grid; gap: 2px; flex: 1; align-content: start; overflow-y: auto; }
.nav-label { color: var(--text-3); font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 14px 12px 6px; }
.nav-label:first-child { padding-top: 2px; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 11px;
  color: var(--text-2); font-weight: 500; transition: background 0.15s, color 0.15s;
}
.nav-item:hover { background: rgba(139, 92, 246, 0.07); color: var(--text); }
.nav-item.active { background: linear-gradient(90deg, rgba(139, 92, 246, 0.22), rgba(139, 92, 246, 0.03)); color: #fff; }
.nav-item.active::before { content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(var(--purple-2), var(--pink)); box-shadow: 0 0 12px var(--glow); }
.nav-item.active svg { color: var(--purple-2); }
.me { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.me img { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-3); }
.me-info { flex: 1; min-width: 0; display: grid; gap: 2px; justify-items: start; }
.me-info div:first-child { font-weight: 700; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.level-chip { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.03em; border: 1px solid; }
.level-owner { color: #1b1206; background: linear-gradient(135deg, #fde68a, var(--gold)); border-color: transparent; }
.level-admin { color: var(--purple-2); background: rgba(139, 92, 246, 0.16); border-color: rgba(139, 92, 246, 0.4); }
.level-mod { color: #93c5fd; background: rgba(96, 165, 250, 0.12); border-color: rgba(96, 165, 250, 0.35); }

.main { min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px;
  padding: 14px 28px; background: rgba(6, 5, 9, 0.72); border-bottom: 1px solid var(--border); backdrop-filter: blur(16px);
}
.topbar-title { flex: 1; min-width: 0; }
.topbar h1 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.topbar-sub { color: var(--text-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 12px; white-space: nowrap; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.45; } }
.menu-btn { display: none; }
.scrim { display: none; }

.quick-search { position: relative; width: 280px; display: flex; align-items: center; }
.quick-search > svg { position: absolute; left: 11px; color: var(--text-3); width: 16px; height: 16px; }
.quick-search input { padding-left: 34px; background: rgba(20, 16, 31, 0.8); border-radius: 999px; }
.quick-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; display: grid; gap: 2px; max-height: 360px; overflow: auto; }
.quick-results .list-item { background: transparent; border-color: transparent; padding: 7px 9px; }
.quick-results .list-item:hover { background: var(--surface-2); }

.view { padding: 26px 28px 56px; display: grid; gap: 20px; animation: fade 0.22s var(--ease); max-width: 1500px; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── Kartlar ── */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.card-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 14px; font-weight: 700; color: var(--text); }
.card-title svg { color: var(--purple-2); }
.card-title .muted { font-weight: 500; }
.card-title .spacer { flex: 1; }
.card-note { color: var(--text-3); font-size: 12px; margin-top: 10px; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 4px 0 -6px; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.section-title svg { color: var(--purple-2); width: 16px; height: 16px; }
.section-title .muted { font-weight: 600; letter-spacing: 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stat { display: flex; align-items: center; gap: 14px; overflow: hidden; }
.stat::after { content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(var(--glow), transparent 70%); opacity: 0.35; }
.stat-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(217, 70, 239, 0.12)); color: var(--purple-2); border: 1px solid rgba(139, 92, 246, 0.25); }
.stat-value { font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.stat-label { color: var(--text-2); font-size: 12px; }

.hero { display: flex; align-items: center; gap: 18px; padding: 22px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(139, 92, 246, 0.2), transparent 55%); pointer-events: none; }
.hero img { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 0 30px var(--glow); background: var(--surface-3); }
.hero h2 { margin: 0; font-size: 22px; letter-spacing: -0.01em; }

.muted { color: var(--text-3); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stack { display: grid; gap: 10px; }
.empty { color: var(--text-3); text-align: center; padding: 26px 8px; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: rgba(139, 92, 246, 0.08); border: 1px solid rgba(139, 92, 246, 0.25); color: var(--text-2); font-size: 13px; }
.notice svg { color: var(--purple-2); margin-top: 1px; }
.notice-warn { background: rgba(251, 191, 36, 0.07); border-color: rgba(251, 191, 36, 0.3); }
.notice-warn svg { color: var(--yellow); }

/* ── Rozet ve cip ── */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-3); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap; }
.badge svg { width: 13px; height: 13px; }
.badge-green { background: rgba(52, 211, 153, 0.12); color: #6ee7b7; border-color: rgba(52, 211, 153, 0.3); }
.badge-red { background: rgba(251, 113, 133, 0.12); color: #fda4af; border-color: rgba(251, 113, 133, 0.3); }
.badge-yellow { background: rgba(251, 191, 36, 0.12); color: #fcd34d; border-color: rgba(251, 191, 36, 0.3); }
.badge-purple { background: rgba(139, 92, 246, 0.16); color: var(--purple-2); border-color: rgba(139, 92, 246, 0.35); }
.badge-blue { background: rgba(96, 165, 250, 0.12); color: #93c5fd; border-color: rgba(96, 165, 250, 0.3); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--text-3); flex: none; }
.dot-online { background: var(--green); box-shadow: 0 0 8px rgba(52, 211, 153, 0.6); } .dot-idle { background: var(--yellow); } .dot-dnd { background: var(--red); }
.role-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 999px; background: rgba(8, 6, 14, 0.7); border: 1px solid var(--border); font-size: 12px; }
.role-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--text-3); }
.role-chip button { border: 0; background: transparent; color: var(--text-3); cursor: pointer; padding: 0 4px; font-size: 14px; line-height: 1; }
.role-chip button:hover { color: var(--red); }

/* ── Liste ── */
.list { display: grid; gap: 6px; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(8, 6, 14, 0.55); border: 1px solid var(--border); transition: border-color 0.15s, background 0.15s; }
.list-item.clickable, .clickable { cursor: pointer; }
.list-item.clickable:hover { border-color: var(--border-strong); background: var(--surface-2); }
.list-item .grow, .grow { flex: 1; min-width: 0; }
.list-item .title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .sub { color: var(--text-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-3); flex: none; object-fit: cover; }
.avatar-sm { width: 28px; height: 28px; }
.avatar-lg { width: 88px; height: 88px; border: 3px solid var(--purple); box-shadow: 0 0 34px var(--glow); }
.rank { width: 28px; text-align: center; font-weight: 800; color: var(--text-3); flex: none; }
.rank-1 { color: var(--gold); } .rank-2 { color: #d4d4d8; } .rank-3 { color: #f59e0b; }

/* ── Uye profili ── */
.members-layout { display: grid; grid-template-columns: 330px 1fr; gap: 20px; align-items: start; }
.profile-head { display: flex; gap: 18px; align-items: center; }
.profile-head h2 { margin: 0; font-size: 21px; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.kv div { background: rgba(8, 6, 14, 0.55); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.kv b { display: block; font-size: 16px; }
.kv span { color: var(--text-3); font-size: 12px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions-group { display: flex; gap: 8px; flex-wrap: wrap; padding-right: 10px; margin-right: 2px; border-right: 1px solid var(--border); }
.actions-group:last-child { border-right: 0; }

/* Profil: ustte kullanicinin Discord banneri, avatar bannera tasar */
.profile-card { overflow: hidden; }
.profile-banner { height: 150px; margin: -18px -18px 0; background-size: cover; background-position: center; }
.profile-card .profile-head { margin-top: -52px; align-items: flex-start; }
.profile-card .profile-head > .stack { padding-top: 58px; min-width: 0; }
.profile-card .avatar-lg { width: 104px; height: 104px; border: 5px solid var(--surface-solid); box-shadow: 0 0 0 2px var(--purple), 0 0 34px var(--glow); }

/* ── Uye kartlari ── */
.members-toolbar { display: grid; gap: 12px; }
.member-tabs { flex-wrap: wrap; }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.member-card {
  position: relative; overflow: hidden; cursor: pointer; text-align: center; display: grid; justify-items: center; gap: 4px;
  padding: 0 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(14px); transition: transform 0.15s var(--ease), border-color 0.15s, box-shadow 0.15s;
}
.member-card:hover { transform: translateY(-3px); border-color: var(--mc); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 24px color-mix(in srgb, var(--mc) 35%, transparent); }
.member-card-top { width: calc(100% + 24px); height: 46px; background: linear-gradient(135deg, color-mix(in srgb, var(--mc) 55%, transparent), transparent); }
.member-avatar { position: relative; margin-top: -30px; }
.member-avatar img { width: 64px; height: 64px; border-radius: 50%; border: 4px solid var(--surface-solid); background: var(--surface-3); object-fit: cover; }
.member-avatar .dot { position: absolute; right: 2px; bottom: 4px; width: 14px; height: 14px; border: 3px solid var(--surface-solid); }
.member-name { font-weight: 700; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-user { color: var(--text-3); font-size: 12px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 4px; }
.member-tags .badge { font-size: 11px; padding: 2px 7px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.pager { justify-content: center; }

/* ── Ses ── */
.voice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.voice-card .card-title { margin-bottom: 10px; }
.voice-member { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 9px; cursor: pointer; }
.voice-member:hover { background: var(--surface-2); }
.voice-member img { width: 26px; height: 26px; border-radius: 50%; }
.voice-member .name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.voice-flags { display: flex; gap: 4px; color: var(--text-3); }
.voice-flags svg { width: 15px; height: 15px; }
.voice-flags .on { color: var(--red); }
.voice-flags .live { color: var(--purple-2); }

/* ── Bot kartlari ── */
.bot-card { display: grid; gap: 12px; }
.bot-head { display: flex; align-items: center; gap: 12px; }
.bot-head .avatar { width: 44px; height: 44px; border-radius: 14px; }
.slot-row { display: grid; grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.slot-row select { padding: 7px 10px; }

/* ── Sekmeler ── */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: rgba(8, 6, 14, 0.7); border: 1px solid var(--border); border-radius: 12px; }
.tab { border: 0; background: transparent; color: var(--text-2); padding: 7px 14px; border-radius: 9px; cursor: pointer; font-weight: 600; }
.tab.active { background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(139, 92, 246, 0.15)); color: #fff; }

/* ── Menu sayaci ── */
.nav-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #f43f5e, var(--pink)); box-shadow: 0 0 12px rgba(244, 63, 94, 0.5); }

/* ── Ban kartlari ── */
.ban-card { border-color: rgba(251, 113, 133, 0.25); }
.ban-reason { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: rgba(8, 6, 14, 0.55); border: 1px solid var(--border); font-size: 13px; overflow-wrap: anywhere; }
.ban-reason .muted { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.proof-link { color: var(--purple-2); text-decoration: underline; }

/* ── Cubuk grafik ── */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 170px; padding-top: 18px; }
.bar { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; position: relative; }
.bar i { width: 100%; max-width: 34px; border-radius: 6px 6px 3px 3px; opacity: 0.85; transition: opacity 0.15s, filter 0.15s; box-shadow: 0 0 14px rgba(139, 92, 246, 0.25); }
.bar:hover i { opacity: 1; filter: brightness(1.2); }
.bar-val { font-size: 10px; color: var(--text-2); white-space: nowrap; }
.bar-label { font-size: 10px; color: var(--text-3); white-space: nowrap; }
.bars:has(.bar:nth-child(15)) .bar-val { display: none; }
.bars:has(.bar:nth-child(15)) .bar:nth-child(odd) .bar-label { visibility: hidden; }

/* ── Yetki tablosu ── */
.perm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.perm-table th, .perm-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; }
.perm-table th { color: var(--text-3); font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.perm-table td:not(:first-child), .perm-table th:not(:first-child) { text-align: center; width: 80px; }
.perm-yes { color: var(--green); font-weight: 800; }
.perm-no { color: var(--text-3); }

/* ── Modal ── */
.modal-root { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(3, 2, 6, 0.7); backdrop-filter: blur(6px); animation: fade 0.14s ease; }
.modal { width: 100%; max-width: 470px; background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: 20px; box-shadow: var(--shadow), 0 0 80px rgba(139, 92, 246, 0.12); padding: 22px; display: grid; gap: 16px; }
.modal h3 { margin: 0; font-size: 17px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; }
.preset { border: 1px solid var(--border); background: rgba(8, 6, 14, 0.7); color: var(--text-2); padding: 7px 11px; border-radius: 9px; cursor: pointer; font-size: 12px; font-weight: 600; }
.preset.active, .preset:hover { border-color: var(--purple); color: #fff; background: rgba(139, 92, 246, 0.15); }

/* ── Bildirim ── */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: grid; gap: 8px; }
.toast { min-width: 260px; max-width: 380px; padding: 12px 14px; border-radius: 13px; background: var(--surface-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow); animation: slide 0.2s var(--ease); }
.toast.ok { border-left: 3px solid var(--green); }
.toast.err { border-left: 3px solid var(--red); }
@keyframes slide { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.skeleton { height: 88px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface-solid) 25%, var(--surface-2) 50%, var(--surface-solid) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Mobil ── */
@media (max-width: 1150px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .members-layout { grid-template-columns: 1fr; } .quick-search { width: 200px; } }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 40; left: 0; top: 0; width: 270px; transform: translateX(-100%); transition: transform 0.22s var(--ease); }
  .sidebar.open { transform: none; box-shadow: var(--shadow); }
  .sidebar.open + .scrim { display: block; position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, 0.5); }
  .menu-btn { display: grid; }
  .topbar { padding: 12px 16px; gap: 10px; }
  .topbar-right, .topbar-sub { display: none; }
  .quick-search { width: auto; flex: 1; max-width: 220px; }
  .view { padding: 16px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .slot-row { grid-template-columns: auto minmax(0, 1fr); }
  .actions-group { border-right: 0; padding-right: 0; }
}
@media (max-width: 480px) { .grid-4 { grid-template-columns: 1fr 1fr; } .stat-value { font-size: 20px; } .topbar-title h1 { font-size: 16px; } }
