/* ============================================================
   Muhabbetci — Yönetici profili ve yetki ekle/çıkar stilleri
   ============================================================ */

/* ---- yönetici profil satırı ---- */
.admin-profile {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 11px;
  margin: 0 12px 4px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: linear-gradient(120deg, rgba(79,140,255,.12), rgba(123,92,255,.09) 70%, transparent);
  border: 1px solid rgba(79,140,255,.3);
}

.admin-profile-av {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 800; color: #fff;
  flex: 0 0 auto;
  border: 2px solid rgba(255,255,255,.22);
  box-shadow: 0 0 0 4px rgba(79,140,255,.12);
}

.admin-profile-meta { flex: 1 1 auto; min-width: 0; }
.admin-profile-name {
  font-size: 14px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.admin-profile-rank {
  font-size: 11px; color: var(--txt-mute);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.admin-profile-tag {
  font-size: 9.5px; font-weight: 800; letter-spacing: .5px;
  padding: 3px 8px; border-radius: 20px;
  text-transform: uppercase;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--bg-3);
  color: var(--txt-mute);
}
.admin-profile-tag.owner {
  background: rgba(255,176,32,.16);
  border-color: rgba(255,176,32,.55);
  color: #ffd27a;
}
.admin-profile-tag.staff {
  background: rgba(79,140,255,.16);
  border-color: rgba(79,140,255,.5);
  color: #9dc0ff;
}
.admin-profile-tag.none {
  background: rgba(255,59,92,.1);
  border-color: rgba(255,59,92,.35);
  color: #ff8095;
}

/* ---- yetki ver / çıkar satırı ---- */
.grant-row {
  display: flex; gap: 7px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.grant-row input,
.grant-row select {
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 11px;
  background: #0a0e16;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--txt);
  font-size: 13px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.grant-row input:focus,
.grant-row select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,140,255,.13);
}
.grant-row input::placeholder { color: var(--txt-mute); }
.grant-row select { cursor: pointer; max-width: 140px; }

.grant-btn {
  padding: 9px 14px;
  border-radius: var(--r-sm);
  font-size: 12.5px; font-weight: 700;
  transition: filter .15s, background .15s;
  white-space: nowrap;
  flex: 0 0 auto;
}
.grant-btn.go {
  background: linear-gradient(135deg, var(--ok), #1fae63);
  color: #06210f;
  box-shadow: 0 4px 14px rgba(47,208,122,.3);
}
.grant-btn.revoke {
  background: rgba(255,59,92,.14);
  border: 1px solid rgba(255,59,92,.42);
  color: #ff8095;
}
.grant-btn.revoke:hover { background: rgba(255,59,92,.26); color: #fff; }
.grant-btn:hover { filter: brightness(1.1); }
.grant-btn.small { padding: 5px 10px; font-size: 11px; }

/* ---- yetkili kişiler listesi ---- */
.grant-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 5px;
  margin-bottom: 12px;
}

.grant-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 9px;
  border-radius: var(--r-sm);
  background: var(--bg-3);
  border: 1px solid var(--line);
}
.grant-item.above { opacity: .6; }
.grant-item .rank-badge { width: 26px; height: 26px; font-size: 13px; }
.grant-item .rank-name { font-size: 12.5px; }
.grant-item .rank-title { font-size: 10.5px; }

.admin-sec-head.mt-small {
  margin-top: 12px;
  margin-bottom: 8px;
}

@media (max-width: 560px) {
  .admin-profile { margin: 0 8px 4px; padding: 9px 10px; }
  .admin-profile-av { width: 34px; height: 34px; font-size: 12px; }
  .admin-profile-tag { font-size: 8.5px; padding: 2px 6px; }
  .grant-row select { max-width: 100%; }
  .grant-row input, .grant-row select { font-size: 16px; }
  .grant-btn { padding: 8px 11px; font-size: 12px; }
}
