/* =========================================================
   Üye alanı: envanter, eşya seçici, oyuncu kartları, yönetim paneli
   ========================================================= */

/* ---------------- Envanter özeti ---------------- */

.inv-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.inv-stat {
  padding: 1.2rem 1.3rem;
  background: linear-gradient(165deg, rgba(30, 111, 242, 0.08), rgba(4, 8, 22, 0.75));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.inv-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.1;
}
.inv-stat span {
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.inv-stat em { display: block; margin-top: 0.4rem; font-style: normal; font-size: 0.8rem; color: var(--text-dim); }

.inv-bar {
  height: 6px;
  margin-top: 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}
.inv-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue-600), var(--gold-500));
  box-shadow: 0 0 10px rgba(245, 196, 81, 0.6);
  transition: width 0.5s var(--ease);
}

/* ---------------- Kahraman seçim ızgarası ---------------- */

.hero-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 0.7rem;
}
.hero-pick {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 0.4rem 0.7rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(4, 8, 22, 0.7));
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.hero-pick img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, 0.12); }
.hero-pick-name {
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-soft);
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero-pick:hover { transform: translateY(-4px); border-color: var(--line-gold); }
.hero-pick.is-active {
  border-color: var(--gold-500);
  background: linear-gradient(165deg, color-mix(in srgb, var(--hero-color) 24%, transparent), rgba(4, 8, 22, 0.8));
  box-shadow: 0 0 20px -6px color-mix(in srgb, var(--hero-color) 95%, transparent);
}
.hero-pick.is-active img { border-color: var(--gold-400); }
.hero-pick.is-active .hero-pick-name { color: var(--gold-200); }
.hero-pick-check {
  position: absolute;
  top: 5px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #0a0f1e;
  background: linear-gradient(135deg, var(--gold-200), var(--gold-600));
  border-radius: 3px;
}

/* ---------------- Dizilim yöneticisi ---------------- */

.build-hero-list { display: flex; flex-direction: column; gap: 1rem; }
.build-row { padding: 1.1rem 1.3rem; }
.build-row-head { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.build-row-head img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--hero-color); }
.build-row-head h3 { margin: 0 0 0.25rem; font-size: 1.1rem; }
.build-row-items { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }

/* ---------------- Eşya rozeti ---------------- */

.item-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.7rem 0.35rem 0.4rem;
  background: linear-gradient(165deg, color-mix(in srgb, var(--item-color) 16%, transparent), rgba(4, 8, 22, 0.8));
  border: 1px solid color-mix(in srgb, var(--item-color) 42%, transparent);
  border-radius: 3px;
}
.item-chip-index {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  color: var(--text-dim);
  min-width: 12px;
}
/* Eşya ikonları yuvarlak gösterilir (oyundaki gibi) */
.item-chip-gem {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.2), rgba(4, 8, 22, 0.95));
  border: 2px solid color-mix(in srgb, var(--item-color) 75%, transparent);
  box-shadow: 0 0 12px -3px color-mix(in srgb, var(--item-color) 90%, transparent);
  overflow: hidden;
}
.item-chip-gem img { width: 100%; height: 100%; object-fit: cover; }
.item-chip-body { display: flex; flex-direction: column; line-height: 1.25; }
.item-chip-body strong { font-family: var(--font-ui); font-size: 0.82rem; color: var(--text); }
.item-chip-body em { font-style: normal; font-size: 0.7rem; color: var(--text-dim); }
.item-chip-remove {
  background: none;
  border: 0;
  color: var(--text-dim);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 0.2rem;
}
.item-chip-remove:hover { color: #ff9aa4; }

/* ---------------- Eşya seçici ---------------- */

.item-picker {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.item-picker-label {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.slot-row { display: grid; grid-template-columns: repeat(8, 1fr); gap: 0.5rem; margin-bottom: 1.2rem; }
.slot {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: rgba(4, 8, 22, 0.6);
  border: 1px dashed var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.slot.is-required { border-color: rgba(245, 196, 81, 0.4); }
.slot.is-filled {
  border-style: solid;
  border-color: color-mix(in srgb, var(--item-color) 60%, transparent);
  background: linear-gradient(165deg, color-mix(in srgb, var(--item-color) 20%, transparent), rgba(4, 8, 22, 0.85));
}
.slot button {
  display: grid;
  place-items: center;
  gap: 3px;
  width: 100%;
  height: 100%;
  padding: 4px;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--text-soft);
}
.slot button img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid color-mix(in srgb, var(--item-color) 80%, transparent);
  box-shadow: 0 0 12px -3px color-mix(in srgb, var(--item-color) 90%, transparent);
}
.slot button span {
  font-size: 0.6rem;
  line-height: 1.15;
  text-align: center;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.slot-empty { font-family: var(--font-ui); font-size: 0.8rem; color: var(--text-dim); }

.item-grid-pick {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.5rem;
  max-height: 340px;
  overflow-y: auto;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(4, 8, 22, 0.4);
}
.item-pick {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.55rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.item-pick:hover { background: rgba(255, 255, 255, 0.07); border-color: color-mix(in srgb, var(--item-color) 50%, transparent); }
.item-pick.is-active {
  background: color-mix(in srgb, var(--item-color) 20%, transparent);
  border-color: var(--item-color);
}
.item-pick.is-disabled { opacity: 0.35; cursor: not-allowed; }
.item-pick-gem {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.18), rgba(4, 8, 22, 0.95));
  border: 1px solid color-mix(in srgb, var(--item-color) 60%, transparent);
  overflow: hidden;
}
.item-pick-gem img { width: 100%; height: 100%; object-fit: cover; }
.item-pick-name {
  flex: 1;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item-pick-cost { font-family: var(--font-ui); font-size: 0.72rem; color: var(--gold-400); }

.item-detail { margin-top: 0.9rem; padding: 1rem 1.2rem; border-left: 3px solid var(--item-color); }
.item-detail h4 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.item-stats { list-style: none; padding: 0; margin: 0 0 0.7rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.3rem 1rem; }
.item-stats li { display: flex; justify-content: space-between; font-size: 0.84rem; color: var(--text-soft); }
.item-stats strong { color: var(--gold-300); }
.item-effect { font-size: 0.85rem; margin: 0 0 0.4rem; }
.item-effect strong { color: var(--gold-300); }

.item-picker-actions { margin-top: 1.2rem; }

@media (max-width: 720px) {
  .slot-row { grid-template-columns: repeat(4, 1fr); }
}

/* ---------------- Kaydetme çubuğu ---------------- */

.save-bar {
  position: sticky;
  bottom: 0;
  z-index: 60;
  padding: 0.9rem 0;
  background: rgba(4, 7, 18, 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-gold);
  box-shadow: 0 -12px 34px -18px rgba(0, 0, 0, 0.95);
  animation: fade-up 0.3s var(--ease);
}
.save-bar-inner { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.save-bar span { font-size: 0.9rem; color: var(--gold-300); }

.settings-link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.2rem;
  background: rgba(4, 8, 22, 0.55);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.settings-link-card strong { display: block; font-family: var(--font-ui); color: var(--gold-300); margin-bottom: 0.2rem; }
.settings-link-card span { font-size: 0.86rem; color: var(--text-dim); }
.settings-link-card .btn { margin-left: auto; }

/* ---------------- Oyuncu kartları ---------------- */

.player-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  height: 100%;
  padding: 1.3rem;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.player-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--profile-accent) 60%, transparent);
  box-shadow: 0 22px 48px -24px color-mix(in srgb, var(--profile-accent) 90%, transparent);
}
.player-card-head { display: flex; align-items: center; gap: 0.9rem; }
.player-card-id strong { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--text); }
.player-card-id em { font-style: normal; font-size: 0.82rem; color: var(--text-dim); }
.player-card-bio { font-size: 0.86rem; color: var(--text-dim); margin: 0; }

.player-card-heroes { display: flex; align-items: center; gap: 0.35rem; }
.player-card-heroes span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--hero-color) 60%, transparent);
}
.player-card-heroes img { width: 100%; height: 100%; object-fit: cover; }
.player-card-heroes em { font-style: normal; font-size: 0.78rem; color: var(--text-dim); }

.player-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding-top: 0.8rem;
  margin-top: auto;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ---------------- Profil envanteri ---------------- */

.owned-grid { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.owned-grid a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--hero-color) 55%, transparent);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.owned-grid a:hover { transform: translateY(-3px) scale(1.08); border-color: var(--gold-400); }
.owned-grid img { width: 100%; height: 100%; object-fit: cover; }

.fav-hero-orb { overflow: hidden; display: grid; place-items: center; }
.fav-hero-orb img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.profile-builds { display: flex; flex-direction: column; gap: 1rem; }
.profile-build {
  padding: 1rem 1.1rem;
  background: rgba(4, 8, 22, 0.5);
  border: 1px solid var(--line);
  border-left: 3px solid var(--hero-color);
  border-radius: 0 12px 12px 0;
}
.profile-build-head { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.profile-build-head img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.profile-build-head strong { display: block; font-family: var(--font-ui); font-size: 1rem; }
.profile-build-head em { font-style: normal; font-size: 0.8rem; color: var(--gold-400); }
.profile-build-note { margin: 0.8rem 0 0; font-size: 0.85rem; color: var(--text-dim); font-style: italic; }
.profile-build-head > a { display: block; flex: none; }

/* Takip / beğeni */
.profile-social { display: flex; gap: 1.4rem; margin-bottom: 0.9rem; }
.profile-social span {
  display: flex;
  flex-direction: column;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.profile-social strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--text); line-height: 1.1; }

.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem 0.26rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.like-btn span { font-size: 1rem; line-height: 1; }
.like-btn:hover:not(:disabled) {
  color: #ff6b8a;
  border-color: rgba(255, 107, 138, 0.55);
  background: rgba(255, 107, 138, 0.12);
  transform: translateY(-2px);
}
.like-btn.is-liked {
  color: #ff6b8a;
  border-color: rgba(255, 107, 138, 0.6);
  background: rgba(255, 107, 138, 0.16);
  box-shadow: 0 0 16px -5px rgba(255, 107, 138, 0.9);
}
.like-btn.is-liked span { animation: like-pop 0.4s var(--ease); }
@keyframes like-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.45); }
  100% { transform: scale(1); }
}
.like-btn:disabled { opacity: 0.55; cursor: default; }

/* ---------------- Önerilen set (kahraman detayı) ---------------- */

.build-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.7rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.3rem;
}
.build-slot > a,
.build-slot > span {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  height: 100%;
  padding: 0.7rem 0.9rem 0.7rem 0.7rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(4, 8, 22, 0.82));
  border: 1px solid var(--line);
  border-radius: 4px;
  color: inherit;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.build-slot > a:hover {
  transform: translateY(-3px);
  border-color: var(--line-gold);
  box-shadow: 0 12px 26px -16px rgba(245, 196, 81, 0.9);
}
.build-slot-order {
  position: absolute;
  top: 5px;
  right: 8px;
  font-family: var(--font-ui);
  font-size: 0.66rem;
  color: var(--text-dim);
}
.build-slot-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.22), rgba(4, 8, 22, 0.95));
  border: 2px solid var(--gold-600);
  box-shadow: 0 0 14px -4px rgba(245, 196, 81, 0.9);
}
.build-slot-icon img { width: 100%; height: 100%; object-fit: cover; }
.build-slot-text { min-width: 0; }
.build-slot-text strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  line-height: 1.25;
  color: var(--text);
}
.build-slot-text em { font-style: normal; font-size: 0.76rem; color: var(--gold-400); }

.build-foot {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* ---------------- Eşya kütüphanesi ---------------- */

.items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 0.9rem; }
.item-card { overflow: hidden; transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.item-card:hover { border-color: color-mix(in srgb, var(--item-color) 55%, transparent); }
.item-card.is-open { border-color: var(--item-color); box-shadow: 0 0 30px -14px color-mix(in srgb, var(--item-color) 100%, transparent); }

.item-card-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.9rem 1rem;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
}
.item-card-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.18), rgba(4, 8, 22, 0.95));
  border: 2px solid color-mix(in srgb, var(--item-color) 75%, transparent);
  box-shadow: 0 0 16px -4px color-mix(in srgb, var(--item-color) 90%, transparent);
}
.item-card-icon img { width: 100%; height: 100%; object-fit: cover; }
.item-card-id { flex: 1; min-width: 0; }
.item-card-id strong { display: block; font-family: var(--font-ui); font-size: 1rem; color: var(--text); }
.item-card-id em { font-style: normal; font-size: 0.82rem; color: var(--gold-400); }
.item-card-cats { display: flex; flex-direction: column; gap: 0.25rem; align-items: flex-end; }
.item-card-cats .tag { font-size: 0.62rem; min-height: 20px; padding: 0.2rem 0.45rem 0.16rem; }
.item-card-body { padding: 0 1rem 1.1rem; border-top: 1px solid var(--line); padding-top: 0.9rem; }

/* ---------------- Topluluk dizilimleri ---------------- */

.community-build { padding: 1.2rem 1.3rem; height: 100%; display: flex; flex-direction: column; }
.community-build-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.cb-hero { flex: none; display: block; }
.cb-hero img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--hero-color);
  box-shadow: 0 0 14px -4px var(--hero-color);
}
.cb-title strong { display: block; font-family: var(--font-display); font-size: 1.15rem; }
.cb-title em { font-style: normal; font-size: 0.82rem; color: var(--gold-400); }

.cb-owner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  color: inherit;
}
.cb-owner strong { display: block; font-family: var(--font-ui); font-size: 0.88rem; color: var(--text); }
.cb-owner em { font-style: normal; font-size: 0.76rem; color: var(--text-dim); }
.cb-owner:hover strong { color: var(--gold-300); }
.cb-time { font-size: 0.74rem; color: var(--text-dim); }

/* =========================================================
   Yönetim paneli
   ========================================================= */

.admin-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - var(--nav-h));
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.4rem 0.9rem;
  background: linear-gradient(180deg, rgba(8, 16, 41, 0.92), rgba(4, 6, 14, 0.96));
  border-right: 1px solid var(--line);
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.admin-sidebar-head { padding: 0 0.6rem 1.2rem; border-bottom: 1px solid var(--line); margin-bottom: 0.8rem; }
.admin-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem 0.16rem;
  font-family: var(--font-ui);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0a0f1e;
  background: linear-gradient(135deg, var(--gold-200), var(--gold-600));
  border-radius: 2px;
  margin-bottom: 0.6rem;
}
.admin-sidebar-head strong { display: block; font-family: var(--font-display); font-size: 1.3rem; }
.admin-sidebar-head em { font-style: normal; font-size: 0.8rem; color: var(--text-dim); }

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: none;
  border: 0;
  border-radius: 4px;
  color: var(--text-soft);
  font-family: var(--font-ui);
  font-size: 0.94rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.admin-nav-item:hover { background: rgba(255, 255, 255, 0.05); color: var(--gold-300); }
.admin-nav-item.is-active {
  background: linear-gradient(90deg, rgba(245, 196, 81, 0.18), transparent);
  color: var(--gold-200);
  box-shadow: inset 2px 0 0 var(--gold-500);
}
.admin-sidebar-foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }
.admin-warn {
  margin: 0 0 0.5rem;
  padding: 0.5rem 0.7rem;
  font-size: 0.8rem;
  color: #ffd0d4;
  background: rgba(255, 95, 109, 0.14);
  border-left: 2px solid #ff5f6d;
  border-radius: 0 4px 4px 0;
}

.admin-main { padding: 1.8rem clamp(1rem, 3vw, 2.4rem) 4rem; min-width: 0; }
.admin-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}
.admin-header h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.admin-card { padding: 1.5rem; margin-bottom: 1.4rem; }
.admin-card h2 { font-size: 1.25rem; margin-bottom: 1.1rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line); }

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}
.admin-kpi {
  padding: 1.1rem 1.2rem;
  background: linear-gradient(165deg, rgba(30, 111, 242, 0.1), rgba(4, 8, 22, 0.8));
  border: 1px solid var(--line);
  border-radius: 4px;
}
.admin-kpi.is-danger { border-color: rgba(255, 95, 109, 0.35); background: linear-gradient(165deg, rgba(255, 95, 109, 0.12), rgba(4, 8, 22, 0.8)); }
.admin-kpi strong { display: block; font-family: var(--font-display); font-size: 1.9rem; line-height: 1.1; color: var(--gold-300); }
.admin-kpi span { font-family: var(--font-ui); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft); }
.admin-kpi em { display: block; margin-top: 0.3rem; font-style: normal; font-size: 0.76rem; color: var(--text-dim); }

.admin-chart { display: flex; align-items: flex-end; gap: 0.4rem; height: 160px; }
.admin-bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 0.4rem; }
.admin-bar span {
  width: 100%;
  min-height: 3px;
  background: linear-gradient(180deg, var(--gold-400), var(--blue-700));
  border-radius: 2px 2px 0 0;
  transition: height 0.5s var(--ease);
}
.admin-bar em { font-style: normal; font-size: 0.68rem; color: var(--text-dim); }

.admin-table td { vertical-align: middle; }
.admin-table tr.is-banned { background: rgba(255, 95, 109, 0.06); }
.admin-mono { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 0.8rem; color: var(--text-dim); }
.admin-user-btn { background: none; border: 0; cursor: pointer; padding: 0; color: inherit; }
.admin-user-btn:hover strong { color: var(--gold-300); }
.admin-actions { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.admin-actions .btn { padding: 0.35rem 0.7rem; font-size: 0.74rem; }

.admin-drawer { margin-top: 1.4rem; padding: 1.5rem; border-color: var(--line-gold); }
.admin-drawer h2 em { font-style: normal; font-size: 0.9rem; }
.admin-drawer h3 { font-size: 1.05rem; margin: 1.4rem 0 0.7rem; }

.log-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.log-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding: 0.6rem 0.8rem;
  background: rgba(4, 8, 22, 0.5);
  border-left: 2px solid var(--gold-600);
  border-radius: 0 4px 4px 0;
  font-size: 0.86rem;
}
.log-action { font-family: var(--font-ui); font-weight: 700; color: var(--gold-300); }
.log-detail { color: var(--text-soft); flex: 1; min-width: 120px; }
.log-meta { font-size: 0.76rem; color: var(--text-dim); }

@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0.8rem;
  }
  .admin-sidebar-head, .admin-sidebar-foot { display: none; }
  .admin-nav-item { white-space: nowrap; }
}

/* ---------------- Telefon doğrulama (Hesabım) ---------------- */
.hesap-telefon-onayli {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  margin: 0 0 0.5rem;
}
.hesap-telefon-onayli strong { font-family: var(--font-ui); font-size: 1.05rem; }

.hesap-tel-durum {
  margin: 0.8rem 0 0;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  font-size: 0.85rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-soft);
}
.hesap-tel-durum.is-ok {
  border-color: rgba(92, 230, 168, 0.4);
  background: rgba(92, 230, 168, 0.12);
  color: #a7f3d0;
}
.hesap-tel-durum.is-hata {
  border-color: rgba(255, 107, 139, 0.4);
  background: rgba(255, 107, 139, 0.12);
  color: #ffb3c4;
}

/* ============================================================
   PROFİL / HESABIM — banner + sekmeli düzen
   ============================================================ */
.profil-merkez { padding-top: calc(var(--nav-h) + 14px); }

.profil-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 2.4rem 1.6rem 1.4rem;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, #10204a 0%, #0a1330 55%, #0b1020 100%);
  border: 1px solid var(--line);
}
.profil-banner-fx {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 120% at 15% 0%, rgba(53,208,255,.18), transparent 60%),
    radial-gradient(50% 120% at 85% 0%, rgba(245,196,81,.15), transparent 60%);
  pointer-events: none;
}
.profil-kimlik {
  position: relative;
  display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap;
}
.profil-avatar { flex: none; filter: drop-shadow(0 6px 18px rgba(0,0,0,.5)); }
.profil-avatar .avatar { border-width: 3px; }
.profil-ad { min-width: 0; flex: 1; }
.profil-ad h1 { margin: 0; font-size: 1.7rem; letter-spacing: -0.01em; }
.profil-ad p { margin: 0.25rem 0 0; color: var(--text-dim); display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.profil-kademe {
  font-family: var(--font-ui); font-weight: 700; font-size: 0.78rem;
  padding: 3px 10px; border-radius: 999px;
  color: var(--kademe, var(--gold-400));
  background: color-mix(in srgb, var(--kademe, #f5c451) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--kademe, #f5c451) 40%, transparent);
}
.profil-gor-btn { flex: none; }

/* Sekme çubuğu */
.profil-sekmeler {
  display: flex; gap: 0.4rem; flex-wrap: wrap;
  margin-bottom: 1.1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}
.profil-sekme {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font: inherit; font-size: 0.9rem; font-weight: 600;
  padding: 0.5rem 0.9rem; cursor: pointer;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid transparent; border-radius: 10px;
  transition: background .15s, color .15s, border-color .15s;
}
.profil-sekme:hover { background: rgba(120,160,255,.08); color: var(--text); }
.profil-sekme.is-active {
  background: rgba(245,196,81,.13);
  color: var(--gold-300);
  border-color: var(--line-gold);
}
.profil-sekme-emoji { font-size: 1rem; }

/* Sekme içeriği: kartlar tek sütun, geniş */
.profil-govde .hesap-grid { display: block; }
.profil-govde .hesap-kart { margin: 0 auto; max-width: 720px; }

@media (max-width: 560px) {
  .profil-ad h1 { font-size: 1.35rem; }
  .profil-gor-btn { width: 100%; }
  .profil-sekme { font-size: 0.82rem; padding: 0.45rem 0.7rem; }
}

/* Discord bot istatistik kartı */
.bot-stat-izgara { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.bot-stat {
  text-align: center; padding: 0.9rem 0.5rem;
  background: rgba(88,101,242,.08); border: 1px solid rgba(88,101,242,.22);
  border-radius: 12px;
}
.bot-stat strong { display: block; font-size: 1.35rem; font-family: var(--font-ui); color: var(--text); }
.bot-stat span { font-size: 0.76rem; color: var(--text-dim); }
.bot-stat-alt { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.86rem; color: var(--text-soft); }
@media (max-width: 480px) { .bot-stat-izgara { grid-template-columns: repeat(2, 1fr); } }

.profil-premium { font-family: var(--font-ui); font-weight:700; font-size:0.76rem; padding:3px 10px; border-radius:999px; color:#1a1205; background:linear-gradient(180deg,#8be9ff,#35d0ff); }
