/* ========================================================
   KEO AVANT-GARDE DESIGN SYSTEM & THEMES
   ======================================================== */

:root,
[data-theme="emerald"] {
  --bg-body: #07090e;
  --bg-surface: #0e131f;
  --bg-card: #141a29;
  --bg-card-hover: #192133;
  --border-color: #1e2638;
  --border-glow: rgba(0, 255, 135, 0.25);
  --text-main: #f3f6fc;
  --text-muted: #8b95a8;
  --accent-primary: #00ff87;
  --accent-primary-hover: #00e676;
  --accent-primary-glow: rgba(0, 255, 135, 0.35);
  --accent-secondary: #3b82f6;
  --accent-danger: #ef4444;
  --accent-pill-bg: rgba(0, 255, 135, 0.08);
  --accent-pill-border: rgba(0, 255, 135, 0.3);
  --theme-name: "Gece Zümrütü";
}

[data-theme="titanium"] {
  --bg-body: #0c0d10;
  --bg-surface: #14151a;
  --bg-card: #1c1d24;
  --bg-card-hover: #242630;
  --border-color: #2a2c38;
  --border-glow: rgba(255, 255, 255, 0.15);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-primary: #ffffff;
  --accent-primary-hover: #e2e8f0;
  --accent-primary-glow: rgba(255, 255, 255, 0.4);
  --accent-secondary: #64748b;
  --accent-danger: #f87171;
  --accent-pill-bg: rgba(255, 255, 255, 0.08);
  --accent-pill-border: rgba(255, 255, 255, 0.25);
  --theme-name: "Saf Titanyum";
}

[data-theme="cyberpunk"] {
  --bg-body: #080611;
  --bg-surface: #100d20;
  --bg-card: #18142e;
  --bg-card-hover: #211c3d;
  --border-color: #29224d;
  --border-glow: rgba(139, 92, 246, 0.3);
  --text-main: #fdf4ff;
  --text-muted: #a78bfa;
  --accent-primary: #a855f7;
  --accent-primary-hover: #c084fc;
  --accent-primary-glow: rgba(168, 85, 247, 0.45);
  --accent-secondary: #ec4899;
  --accent-danger: #f43f5e;
  --accent-pill-bg: rgba(168, 85, 247, 0.12);
  --accent-pill-border: rgba(168, 85, 247, 0.35);
  --theme-name: "Cyber Mor";
}

[data-theme="onyx"] {
  --bg-body: #000000;
  --bg-surface: #0a0a0a;
  --bg-card: #121212;
  --bg-card-hover: #1c1c1c;
  --border-color: #242424;
  --border-glow: rgba(245, 158, 11, 0.3);
  --text-main: #ffffff;
  --text-muted: #888888;
  --accent-primary: #f59e0b;
  --accent-primary-hover: #fbbf24;
  --accent-primary-glow: rgba(245, 158, 11, 0.4);
  --accent-secondary: #3b82f6;
  --accent-danger: #ef4444;
  --accent-pill-bg: rgba(245, 158, 11, 0.1);
  --accent-pill-border: rgba(245, 158, 11, 0.35);
  --theme-name: "Onyx Pure Black";
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-body);
  color: var(--text-main);
  transition: background-color 0.25s ease, color 0.25s ease;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

/* ========================================================
   DISCORD STİLİ ÇİFT SOL PANEL & 4 KOLONLU EKRAN DÜZENİ
   ======================================================== */
.app-container {
  display: grid;
  grid-template-columns: 68px var(--channels-sidebar-width, 240px) minmax(0, 1fr) 310px;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* 1. MİNİ İKON SOL PANEL (DISCORD SUNUCU BARI) */
.sidebar-mini {
  height: 100vh;
  background-color: var(--bg-body);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 16px 0;
  position: relative;
  z-index: 60;
  user-select: none;
}

.mini-top-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.mini-nav-item {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.server-pill {
  position: absolute;
  left: 0;
  width: 4px;
  height: 0px;
  border-radius: 0 4px 4px 0;
  background-color: var(--accent-primary);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mini-nav-item:hover .server-pill {
  height: 20px;
}

.mini-nav-item.active .server-pill {
  height: 38px;
}

.mini-icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 24px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.mini-icon-btn:hover {
  border-radius: 14px;
  background-color: var(--bg-card);
  color: var(--text-main);
  border-color: var(--accent-primary);
}

.mini-nav-item.active .mini-icon-btn {
  border-radius: 14px;
  background-color: var(--accent-pill-bg);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-primary-glow);
}

.mini-brand-btn {
  background: var(--bg-card);
  border-color: var(--border-color);
  color: var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-primary-glow);
}

.mini-divider {
  width: 32px;
  height: 2px;
  background-color: var(--border-color);
  border-radius: 1px;
  margin: 4px 0;
}

.mini-communities-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-height: calc(100vh - 350px);
  overflow-y: auto;
  overflow-x: hidden;
}

.mini-communities-list::-webkit-scrollbar {
  width: 0;
  display: none;
}

.mini-comm-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-comm-initial {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-main);
}

.mini-btn-add {
  border-style: dashed;
  border-color: var(--text-muted);
  color: var(--text-muted);
}

.mini-btn-add:hover {
  border-style: solid;
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.mini-bottom-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

/* 2. KANALLAR SOL PANELİ (DISCORD KANALLAR ALANI) */
.sidebar-channels {
  height: 100vh;
  width: 100%;
  max-width: 100%;
  background-color: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 55;
  overflow: hidden;
}

.channels-top {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 120px);
}

.channels-header {
  height: 52px;
  border-bottom: 1px solid var(--border-color);
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-main);
  background: var(--bg-surface);
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.channels-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.channels-scrollable {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* SES ODASI BAŞLAT BUTONU (DISCORD AKSİYON STİLİ) */
.btn-create-room {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-primary) 0%, #059669 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--accent-primary-glow);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-create-room:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-primary-glow);
}

.btn-create-room .icon {
  width: 16px;
  height: 16px;
  stroke: #fff;
}

/* KANAL / FİKİR ARAMA ÇUBUĞU */
.sidebar-search {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0 10px;
  transition: all 0.2s ease;
}

.sidebar-search:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px var(--accent-primary-glow);
}

.sidebar-search .icon {
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-right: 6px;
}

.sidebar-search input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 0.82rem;
  padding: 7px 0;
}

.sidebar-search input::placeholder {
  color: var(--text-muted);
}

/* TOPLULUK SEÇİLMEMİŞ DURUMDA BOŞ KANAL BİLDİRİMİ */
.channels-empty-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  margin-top: 6px;
}

.channels-empty-prompt .empty-prompt-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
  opacity: 0.8;
}

.channels-empty-prompt .empty-prompt-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.channels-empty-prompt .empty-prompt-text {
  font-size: 0.73rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.channel-group-block.channel-category {
  margin-top: 16px;
  margin-bottom: 8px;
}

.channel-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  margin-bottom: 4px;
  user-select: none;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.channel-category-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.channel-category-title {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

.btn-add-channel-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.btn-add-channel-icon:hover {
  color: var(--accent-primary);
  background: var(--bg-card);
}

.channels-items-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.channel-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.channel-item:hover {
  background-color: var(--bg-card);
  color: var(--text-main);
}

.channel-item.active {
  background-color: var(--accent-pill-bg);
  color: var(--accent-primary);
  font-weight: 700;
}

.channel-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-hash-icon {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-muted);
}

.channel-item.active .channel-hash-icon {
  color: var(--accent-primary);
}

.btn-delete-channel {
  opacity: 0;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s, color 0.15s;
}

.channel-item:hover .btn-delete-channel {
  opacity: 1;
}

.btn-delete-channel:hover {
  color: var(--accent-danger);
}

/* ========================================================
   KANALLAR PANELİ ALTI: SES DOCK + KULLANICI BÖLÜMÜ
   ======================================================== */
.channels-bottom-area {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 70;
}

/* DİSCORD SES DOCK PANELİ */
.sidebar-voice-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: fadeIn 0.2s ease-out;
}

.voice-status-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  cursor: pointer;
}

.voice-status-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.voice-connected-badge {
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.voice-room-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 95px;
}

.voice-bar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-voice-control {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-voice-control:hover {
  background: var(--bg-card);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.btn-voice-control.muted {
  border-color: var(--accent-danger);
  color: var(--accent-danger);
  background: rgba(239, 68, 68, 0.1);
}

.btn-voice-control.disconnect:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--accent-danger);
  color: #f87171;
}

/* KULLANICI PROFİL KARTI (EN ALT BOTTOM ALAN) */
.sidebar-bottom {
  position: relative;
  width: 100%;
}

.user-profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  transition: border-color 0.2s;
  user-select: none;
}

.user-profile-card:hover {
  border-color: var(--border-glow);
}

.user-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  cursor: pointer;
}

.sidebar-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.user-card-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--accent-primary);
  overflow: hidden;
  flex-shrink: 0;
}

.user-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-card-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.user-card-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
}

.user-card-balance {
  font-size: 0.7rem;
  color: var(--accent-primary);
  font-weight: 700;
}

.user-card-buttons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-user-action {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  position: relative;
}

.btn-user-action:hover {
  background: var(--bg-card);
  color: var(--text-main);
}

/* ========================================================
   CANLI KULLANICI DURUM GÖSTERGELERİ (ONLINE / DND / OFFLINE)
   ======================================================== */
.status-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--bg-surface);
  transition: all 0.2s ease;
  pointer-events: none;
}

.status-dot.online {
  background-color: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.7);
}

.status-dot.dnd {
  background-color: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.7);
}

.status-dot.offline {
  background-color: #475569;
  box-shadow: none;
}

.status-dot-mini {
  width: 8px;
  height: 8px;
  border-width: 1.5px;
}

.status-dot-large {
  width: 22px;
  height: 22px;
  border-width: 3.5px;
  bottom: 4px;
  right: 4px;
}

/* Durum İkon Butonu İç Göstergesi */
.status-indicator-badge {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  transition: all 0.2s;
}

.status-indicator-badge.online {
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.status-indicator-badge.dnd {
  background-color: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.status-indicator-badge.offline {
  background-color: #475569;
}

/* DURUM SEÇİM DROPDOWN'I */
.status-dropdown-menu {
  position: absolute;
  bottom: 52px;
  left: 8px;
  width: 214px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8);
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 150;
  animation: modalScale 0.15s ease-out;
}

.status-dropdown-menu.active {
  display: flex;
}

.status-dropdown-header {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  padding: 4px 6px 6px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2px;
}

.status-option-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.status-option-item:hover {
  background: var(--bg-card);
}

.status-dot-circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot-circle.online {
  background-color: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.status-dot-circle.dnd {
  background-color: #ef4444;
  box-shadow: 0 0 6px #ef4444;
}

.status-dot-circle.offline {
  background-color: #475569;
}

.status-option-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.status-option-text strong {
  font-size: 0.82rem;
  color: var(--text-main);
}

.status-option-text small {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.status-check {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-primary);
  display: none;
}

.status-option-item.selected .status-check {
  display: inline-block;
}

/* KULLANICI ÜÇ NOKTA PROFİL MENÜSÜ */
.profile-dropdown-menu {
  position: absolute;
  bottom: 52px;
  right: 8px;
  width: 190px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 150;
  animation: modalScale 0.15s ease-out;
}

.profile-dropdown-menu.active {
  display: flex;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: background 0.15s;
}

.dropdown-item:hover {
  background: var(--bg-card);
  color: var(--accent-primary);
}

.dropdown-item.danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

/* 2. ORTA İÇERİK ALANI (BAĞIMSIZ SCROLL) */
.feed-center {
  height: 100vh;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 32px;
  scroll-behavior: smooth;
}

.feed-content-wrapper {
  margin: 0 auto;
}

.view-section {
  display: none;
  animation: fadeIn 0.2s ease-out;
}

.view-section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

/* Gönderi Oluşturucu & Medya Yükleme */
.post-creator {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.post-creator:focus-within {
  border-color: var(--accent-primary);
}

.post-creator textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  color: var(--text-main);
  font-size: 0.94rem;
  line-height: 1.5;
  height: 65px;
}

.media-preview-container {
  display: none;
  position: relative;
  margin: 10px 0;
  max-height: 200px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.media-preview-container img,
.media-preview-container video {
  max-height: 200px;
  width: auto;
  display: block;
  border-radius: 8px;
}

.btn-remove-media {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.creator-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
  margin-top: 6px;
}

.creator-left-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-attach-media {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.btn-attach-media:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.reward-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--accent-primary);
  font-weight: 700;
}

/* Gönderi Kartı & Medya */
.posts-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px 18px;
  transition: border-color 0.15s;
}

.post-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.post-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.post-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--accent-primary);
  overflow: hidden;
  flex-shrink: 0;
}

.post-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-user {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
}

.post-user:hover {
  color: var(--accent-primary);
  text-decoration: underline;
}

.post-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-content {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 12px;
  word-break: break-word;
  cursor: pointer;
}

.post-media-box {
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  max-height: 420px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-media-box img {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
}

.post-media-box video {
  max-width: 100%;
  max-height: 420px;
  outline: none;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
}

.post-buttons-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.like-btn,
.comment-trigger-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.15s;
}

.like-btn:hover,
.comment-trigger-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.like-btn.liked {
  border-color: var(--accent-primary);
  background: var(--accent-pill-bg);
  color: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary-glow);
}

.btn-post-opt {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.btn-post-opt:hover {
  color: var(--text-main);
}

/* ========================================================
   CANLI SES ODASI SAHNESİ
   ======================================================== */
.stage-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  margin-bottom: 24px;
  position: relative;
}

.stage-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 10px 0 6px;
  color: var(--text-main);
}

.stage-subtitle {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 28px;
}

.stage-speakers-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 20px 0 32px;
}

.speaker-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.speaker-avatar-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 3px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-primary);
  overflow: hidden;
  transition: all 0.15s ease-out;
}

.speaker-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.speaker-avatar-circle.speaking {
  border-color: var(--accent-primary) !important;
  box-shadow: 0 0 0 5px var(--accent-primary-glow), 0 0 25px var(--accent-primary) !important;
  transform: scale(1.06);
}

.speaker-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.stage-controls-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* İkonlu Mikrofon Butonu */
.btn-mic-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-mic-icon-circle.active {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 0 14px var(--accent-primary-glow);
}

.btn-mic-icon-circle.muted {
  border-color: var(--accent-danger);
  color: var(--accent-danger);
  background: rgba(239, 68, 68, 0.12);
}

/* ========================================================
   TOPLULUK DETAY SAYFASI (/community/:id)
   ======================================================== */
.community-hero {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.community-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  pointer-events: none;
  opacity: 0.7;
}

.community-hero-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 260px;
  position: relative;
  z-index: 2;
}

.community-hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 3px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--accent-primary);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.community-hero-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-name-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  word-break: break-word;
}

.community-desc-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.45;
  word-break: break-word;
}

.community-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

/* Sunucu Tanıtımı & Genel Bakış Kartları */
.community-showcase-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.community-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.community-stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.community-stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
}

.community-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(88, 101, 242, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.community-stat-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.community-stat-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 3px;
}

.community-about-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 22px;
}

.community-about-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.community-about-body {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.community-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.community-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
  position: relative;
}

.community-feature-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.community-feature-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.community-feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.community-feature-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Tanıtım Sekmesi Özellik Kartları Editörü */
.showcase-editor-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.showcase-icon-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.showcase-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.showcase-icon-btn:hover {
  color: var(--text-main);
  border-color: var(--accent-primary);
}

.showcase-icon-btn.active {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.08);
}

/* Sağ Panel Topluluk Üyeleri */
.member-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  cursor: pointer;
  font-size: 0.85rem;
}

.member-list-item:hover {
  border-color: var(--accent-primary);
}

.creator-crown-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
  text-transform: uppercase;
}

/* ========================================================
   GÖNDERİ DETAY & YORUMLAR SAYFASI (/post/:id)
   ======================================================== */
.comments-section-title {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 20px 0 12px;
}

.comment-input-box {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.comment-input-box input {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-main);
  outline: none;
  font-size: 0.88rem;
}

.comment-input-box input:focus {
  border-color: var(--accent-primary);
}

.comment-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.comment-user {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
}

.comment-user:hover {
  color: var(--accent-primary);
}

.comment-text {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.5;
}

/* 3. SAĞ SABİT PANEL */
.sidebar-right {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  border-left: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  padding: 24px 18px;
}

.leader-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.leader-item:hover {
  border-color: var(--accent-primary);
  transform: translateX(2px);
}

.leader-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rank-badge {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--bg-surface);
  color: var(--text-muted);
}

.rank-badge.top-1 {
  background: #f59e0b;
  color: #000;
  font-weight: 900;
}

.rank-badge.top-2 {
  background: #94a3b8;
  color: #000;
  font-weight: 900;
}

.rank-badge.top-3 {
  background: #b45309;
  color: #fff;
  font-weight: 900;
}

.leader-val {
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ========================================================
   MODALLAR & DÜZELTME PENCERELERİ
   ======================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  width: 100%;
  max-width: 440px;
  padding: 24px;
  position: relative;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: scale(0.92) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-close:hover {
  color: #fff;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.modal-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.themes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.theme-card-option {
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  background: var(--bg-card);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.theme-card-option:hover {
  border-color: var(--accent-primary);
}

.theme-card-option.active {
  border-color: var(--accent-primary);
  background: var(--accent-pill-bg);
}

.theme-preview-dots {
  display: flex;
  gap: 6px;
}

.theme-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.theme-opt-name {
  font-size: 0.84rem;
  font-weight: 700;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
}

.form-input:focus {
  border-color: var(--accent-primary);
}

.modal-tabs {
  display: flex;
  background: var(--bg-body);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
}

.modal-tab {
  flex: 1;
  text-align: center;
  padding: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
}

.modal-tab.active {
  background: var(--bg-card);
  color: var(--text-main);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  user-select: none;
}

.btn-primary {
  background: var(--accent-primary);
  color: #050912;
  font-weight: 700;
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 14px var(--accent-primary-glow);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  background: var(--bg-card);
  border-color: var(--accent-primary);
}

.btn-danger-outline {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 6px;
}

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2000;
  pointer-events: none;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
  animation: toastIn 0.25s ease-out;
}

.toast.toast-success {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.toast.toast-error {
  border-color: var(--accent-danger);
  color: #fca5a5;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ========================================================
   SESLİ ODALAR GRID & KART TASARIMI (/odalar)
   ======================================================== */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.room-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
}

.room-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 25px var(--accent-primary-glow);
}

.room-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.room-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  text-transform: uppercase;
}

.room-category-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-pill-bg);
  border: 1px solid var(--accent-pill-border);
  color: var(--accent-primary);
}

.room-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.room-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

/* ========================================================
   KULLANICI PROFİL SAYFASI TASARIMI (/profile/:id)
   ======================================================== */
.profile-hero {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  margin-bottom: 24px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.profile-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar-large {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 3px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-primary);
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.profile-username {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.profile-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.profile-stat-box {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.profile-stat-box span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.profile-stat-box strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

/* ========================================================
   ÖZEL ONAY MODALI (SİLME MODALI)
   ======================================================== */
.modal-box-confirm {
  max-width: 380px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.confirm-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.confirm-actions-row {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-top: 14px;
}

.confirm-actions-row button {
  flex: 1;
}

.input-prefix-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.input-prefix {
  padding: 0 12px;
  color: var(--text-muted);
  font-weight: 800;
  font-size: 1.1rem;
}

.input-prefix-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 10px 12px;
  color: var(--text-main);
  font-size: 0.9rem;
}

/* ========================================================
   YORUM AKSİYONLARI (DÜZENLE / SİL)
   ======================================================== */
.comment-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 8px;
  transition: border-color 0.15s;
}

.comment-card:hover {
  border-color: var(--border-glow);
}

.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.comment-author-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.comment-author-meta:hover .comment-user {
  text-decoration: underline;
  color: var(--accent-primary);
}

.comment-item-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-comment-opt {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.btn-comment-opt:hover {
  color: var(--text-main);
  background: var(--bg-body);
}

.btn-comment-opt.danger:hover {
  color: var(--accent-danger);
  background: rgba(239, 68, 68, 0.12);
}

/* ========================================================
   DİSCORD STİLİ KULLANICI PROFİL POPOUT KARTI
   ======================================================== */
.user-popout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-popout-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.user-popout-card {
  width: 430px;
  max-width: 95vw;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: scale(0.92) translateY(12px);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-popout-overlay.active .user-popout-card {
  transform: scale(1) translateY(0);
}

.popout-banner {
  height: 115px;
  background: linear-gradient(135deg, var(--accent-primary) 0%, #1e1b4b 60%, #09090b 100%);
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.popout-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.15s;
}

.popout-close-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.05);
}

.popout-avatar-area {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 16px;
  margin-top: -36px;
  position: relative;
  z-index: 5;
}

.popout-avatar-wrapper {
  position: relative;
}

.popout-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 4px solid var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-primary);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.popout-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popout-status-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--bg-surface);
}

.popout-view-profile-btn {
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 8px;
}

.popout-body {
  padding: 12px 16px 18px;
}

.popout-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.popout-username {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.popout-role-badge {
  font-size: 0.65rem;
  padding: 2px 6px;
}

.popout-joined-text {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 3px;
  margin-bottom: 12px;
}

.popout-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 8px 6px;
  margin-bottom: 12px;
  text-align: center;
}

.popout-stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.popout-stat-item .stat-lbl {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.popout-stat-item .stat-val {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.popout-communities-section {
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
}

.popout-section-title {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.7px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.popout-communities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.popout-community-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s;
}

.popout-community-badge:hover {
  border-color: var(--accent-primary);
  background: var(--accent-pill-bg);
}

.popout-comm-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  overflow: hidden;
}

.popout-comm-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================================
   MOBİL ÖZEL DÜZEN & DİSCORD SLIDING DRAWER
   ======================================================== */
.mobile-top-bar {
  display: none;
}

.mobile-bottom-nav {
  display: none;
}

.mobile-drawer-btn {
  display: none;
}

.mobile-drawer-backdrop {
  display: none;
}

@media (max-width: 900px) {

  html,
  body {
    height: 100%;
    overflow-x: hidden;
  }

  .app-container {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
  }

  .sidebar-right {
    display: none !important;
  }

  /* DİSCORD MOBİL ÇEKMECE: SOLDA İKİ PANEL YAN YANA */
  .sidebar-mini {
    display: flex !important;
    position: fixed !important;
    top: 0;
    bottom: 0;
    left: 0;
    width: 68px;
    z-index: 1050;
    transform: translateX(-350px) !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.4);
    background: var(--bg-surface);
  }

  .sidebar-channels {
    display: flex !important;
    position: fixed !important;
    top: 0;
    bottom: 0;
    left: 68px;
    width: 240px;
    z-index: 1050;
    transform: translateX(-350px) !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.7);
    background: var(--bg-card);
  }

  body.mobile-drawer-open .sidebar-mini,
  body.mobile-drawer-open .sidebar-channels {
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .sidebar-resizer {
    display: none !important;
  }

  .mobile-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  }

  body.mobile-drawer-open .mobile-drawer-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    padding: 0 14px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    z-index: 100;
  }

  .mobile-drawer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    cursor: pointer;
  }

  .mobile-drawer-btn .icon {
    width: 18px;
    height: 18px;
  }

  .feed-center {
    flex: 1;
    height: calc(100vh - 52px - 58px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 14px 14px 70px 14px;
  }

  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 58px;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
    padding: 0;
    margin: 0;
  }

  .mobile-nav-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-nav-item.active {
    color: var(--accent-primary);
  }

  .mobile-nav-item.active .icon {
    stroke: var(--accent-primary);
  }
}

/* ========================================================
   CUSTOM CONTEXT MENU (DISCORD STYLE)
   ======================================================== */
.custom-context-menu {
  position: fixed;
  z-index: 9999;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: contextMenuFadeIn 0.12s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes contextMenuFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.context-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.context-menu-item:hover {
  background: var(--bg-card-hover);
  color: var(--accent-primary);
}

.context-menu-item.danger {
  color: var(--accent-danger);
}

.context-menu-item.danger:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ff6b6b;
}

.context-menu-divider {
  height: 1px;
  background: var(--border-color);
  margin: 4px 0;
}

/* ========================================================
   CHANNEL TEXT CHAT (DISCORD STREAM VIEW)
   ======================================================== */
.channel-chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 40px);
  max-width: 960px;
  margin: 0 auto;
}

.channel-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.channel-chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.channel-chat-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.channel-chat-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid var(--border-color);
}

.channel-messages-stream {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 10px 4px;
}

.channel-chat-msg {
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 3px;
  padding: 2px 16px 2px 12px;
  border-radius: 6px;
  margin-top: 14px;
  transition: background 0.15s ease;
}

.channel-chat-msg:first-child {
  margin-top: 0;
}

.channel-chat-msg:hover {
  background: rgba(255, 255, 255, 0.03);
}

.chat-msg-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--border-color);
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent-primary);
}

.chat-msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-msg-body {
  flex: 1;
  min-width: 0;
}

.chat-msg-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.chat-msg-author {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
}

.chat-msg-author:hover {
  text-decoration: underline;
  color: var(--accent-primary);
}

.chat-msg-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.chat-msg-text {
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-main);
  word-break: break-word;
}

.channel-chat-input-bar {
  margin-top: 14px;
  flex-shrink: 0;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

.channel-chat-input-bar form {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
  position: relative !important;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 4px 8px 4px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.channel-chat-input-bar form:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px var(--border-glow);
}

.channel-chat-input-bar input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: 100% !important;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 0.92rem;
  padding: 10px 0;
}

.btn-chat-send {
  background: var(--accent-primary);
  color: #000;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
  flex-shrink: 0;
}

.btn-chat-send:hover {
  transform: scale(1.05);
}

.btn-chat-send .icon {
  width: 17px;
  height: 17px;
  stroke: #000;
}

/* ========================================================
   VOICE ATTENDEES IN CHANNELS SIDEBAR
   ======================================================== */
.channel-voice-attendees {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 28px;
  margin-top: 2px;
  margin-bottom: 4px;
}

.voice-attendee-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.voice-attendee-item:hover {
  background: var(--bg-card-hover);
}

.voice-attendee-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--border-color);
  flex-shrink: 0;
}

.voice-attendee-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.voice-attendee-item:hover .voice-attendee-name {
  color: var(--text-main);
}

/* ========================================================
   POST EDITED INDICATOR & BADGES
   ======================================================== */
.post-edited-indicator {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-left: 6px;
  font-style: italic;
  font-weight: 500;
}

.creator-crown-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  font-size: 0.72rem;
  font-weight: 700;
}

.creator-crown-icon {
  width: 13px;
  height: 13px;
  stroke: #fbbf24;
  fill: rgba(245, 158, 11, 0.2);
}

/* ========================================================
   SERVER SETTINGS MODAL & INVITES LOGS
   ======================================================== */
.server-settings-invites-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 0.8rem;
}

.server-settings-invites-table th,
.server-settings-invites-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.server-settings-invites-table th {
  color: var(--text-muted);
  font-weight: 700;
}

.invite-code-pill {
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  font-family: monospace;
  font-weight: 700;
  color: var(--accent-primary);
}

/* ========================================================
   LIGHTBOX AVATAR MODAL
   ======================================================== */
.lightbox-avatar-box {
  max-width: 380px;
  text-align: center;
  padding: 24px;
}

.lightbox-avatar-img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px auto;
  border: 3px solid var(--accent-primary);
  box-shadow: 0 0 25px var(--accent-primary-glow);
  display: block;
}

/* ========================================================
   CHANNELS SIDEBAR RESIZER & DRAG AND DROP
   ======================================================== */
@media (min-width: 901px) {
  .sidebar-channels {
    position: relative;
  }
}

.sidebar-resizer {
  position: absolute;
  top: 0;
  right: -2px;
  width: 5px;
  height: 100%;
  cursor: col-resize;
  z-index: 50;
  transition: background 0.15s ease;
}

.sidebar-resizer:hover,
.sidebar-resizer.resizing {
  background: var(--accent-primary);
}

.channel-category.dragging,
.channel-item.dragging {
  opacity: 0.35;
  outline: none !important;
}

.channel-category.drag-indicator-top,
.channel-item.drag-indicator-top {
  border-top: 2px solid var(--accent-primary) !important;
  background: rgba(88, 101, 242, 0.1) !important;
  border-radius: 6px 6px 0 0;
}

.channel-category.drag-indicator-bottom,
.channel-item.drag-indicator-bottom {
  border-bottom: 2px solid var(--accent-primary) !important;
  background: rgba(88, 101, 242, 0.1) !important;
  border-radius: 0 0 6px 6px;
}

.channel-category.drag-indicator-into {
  background: rgba(88, 101, 242, 0.18) !important;
  outline: 1px dashed var(--accent-primary) !important;
  border-radius: 8px;
}

.channel-category.drag-over,
.channel-item.drag-over {
  border-top: 2px solid var(--accent-primary) !important;
  background: rgba(88, 101, 242, 0.08) !important;
}



/* ========================================================
   DISCORD SERVER SETTINGS MODAL (LEFT TABS SIDEBAR)
   ======================================================== */
.server-settings-box {
  max-width: 920px !important;
  width: 92% !important;
  height: 640px !important;
  max-height: 88vh !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  overflow: hidden !important;
  border-radius: 12px !important;
}

.server-settings-sidebar {
  width: 230px;
  background: var(--bg-body);
  border-right: 1px solid var(--border-color);
  padding: 24px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.server-settings-nav-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 0 10px 8px 10px;
}

.server-settings-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.server-settings-nav-item:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

.server-settings-nav-item.active {
  background: rgba(88, 101, 242, 0.18);
  color: var(--accent-primary);
  font-weight: 700;
}

.server-settings-nav-item.danger {
  color: var(--accent-danger);
}

.server-settings-nav-item.danger:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ff6b6b;
}

.server-settings-body {
  flex: 1;
  padding: 28px 34px;
  overflow-y: auto;
  position: relative;
}

@media (max-width: 768px) {
  .server-settings-box {
    flex-direction: column !important;
    height: 92vh !important;
  }

  .server-settings-sidebar {
    width: 100% !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 8px !important;
  }

  .server-settings-nav-title {
    display: none;
  }
}

/* ========================================================
   VOICE CHANNEL MIDDLE STAGE VIEW
   ======================================================== */
.voice-stage-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
  background: var(--bg-surface);
  border: none;
  border-radius: 0;
  overflow: hidden;
}

.voice-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card);
}

.voice-stage-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
  padding: 24px;
  overflow-y: auto;
  align-content: flex-start;
}

.voice-tile {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  transition: all 0.2s ease;
  overflow: hidden;
}

.voice-tile.speaking {
  border-color: #22c55e;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.45);
}

.voice-tile-avatar {
  width: 76px;
  height: 76px;
  min-width: 76px;
  min-height: 76px;
  max-width: 76px;
  max-height: 76px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.voice-tile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.voice-tile-avatar .avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.voice-tile.speaking .voice-tile-avatar {
  border-color: #22c55e;
}

.voice-tile-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.voice-stage-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
}

/* ========================================================
   CHAT MARKDOWN & REPLIES & ROLES
   ======================================================== */
.chat-md-bold {
  font-weight: 700;
}

.chat-md-h1 {
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 2px 0;
  line-height: 1.25;
  color: var(--text-main);
}

.chat-md-h2 {
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 2px 0;
  line-height: 1.25;
  color: var(--text-main);
}

.chat-md-h3 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 2px 0;
  line-height: 1.25;
  color: var(--text-main);
}

.chat-reply-quote {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 2px;
  padding-left: 54px;
  position: relative;
  cursor: pointer;
  user-select: none;
  transition: color 0.15s ease;
  line-height: 1.2;
}

.chat-reply-quote:hover {
  color: var(--text-main);
}

.chat-reply-quote::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 7px;
  width: 20px;
  height: 10px;
  border-left: 2px solid var(--border-color);
  border-top: 2px solid var(--border-color);
  border-top-left-radius: 6px;
}

.chat-reply-quote:hover::before {
  border-color: var(--accent-primary);
}

.chat-replying-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  background: var(--bg-card);
  border-radius: 10px 10px 0 0;
  border: 1px solid var(--border-color);
  border-bottom: none;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.chat-msg-actions {
  display: none;
  position: absolute;
  top: -12px;
  right: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 2px 4px;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.channel-chat-msg {
  position: relative;
}

.channel-chat-msg:hover .chat-msg-actions {
  display: flex;
}

.chat-action-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-action-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

.chat-action-btn.danger:hover {
  color: var(--accent-danger);
}

/* ========================================================
   ROLE GROUPING IN RIGHT SIDEBAR & ROLES LIST
   ======================================================== */
.member-group-container {
  margin-bottom: 14px;
}

.member-group-header {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 12px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.role-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  margin-right: 4px;
  margin-top: 4px;
}

.role-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* ========================================================
   TOP-CENTER TOAST CONTAINER & MOBILE HEADER
   ======================================================== */
.toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.mobile-brand .brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 10px var(--accent-primary-glow);
}

.mobile-brand .brand-icon .icon {
  width: 16px;
  height: 16px;
  stroke: #ffffff;
  fill: #ffffff;
}

.mobile-brand span {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--accent-primary), #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mobile-top-bar .btn-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-top-bar .btn-icon:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: var(--accent-primary);
}

/* ========================================================
   DISCORD STYLE CATEGORIES, DRAG & DROP AND TOOLTIP
   ======================================================== */
.channel-group-block.channel-category {
  margin-top: 18px;
  margin-bottom: 8px;
}

.channel-category-header {
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.15s ease;
  user-select: none;
}

.channel-category-header:hover {
  background: rgba(255, 255, 255, 0.04);
}

.channel-category.dragging,
.channel-item.dragging {
  opacity: 0.35 !important;
  outline: none !important;
}

.channel-category.drag-over {
  border-top: 2px solid var(--accent-primary) !important;
  background: rgba(88, 101, 242, 0.08) !important;
  border-radius: 6px;
}

.channel-item.drag-over {
  border-top: 2px solid var(--accent-primary) !important;
  background: rgba(88, 101, 242, 0.12) !important;
  border-radius: 6px;
}

/* Discord Tarzı Global Sunucu Tooltip (Sidebar Dışına Doğru) */
#global-server-tooltip {
  position: fixed;
  display: none;
  z-index: 9999999;
  background: #111214;
  color: #f2f3f5;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 6px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-50%) scale(0.95);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

#global-server-tooltip.show {
  display: block !important;
  opacity: 1 !important;
  transform: translateY(-50%) scale(1) !important;
}

#global-server-tooltip::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px 6px 6px 0;
  border-style: solid;
  border-color: transparent rgba(255, 255, 255, 0.12) transparent transparent;
}

#global-server-tooltip::after {
  content: '';
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px 5px 5px 0;
  border-style: solid;
  border-color: transparent #111214 transparent transparent;
}

/* Category Collapse & Animations */
.channel-category-header {
  cursor: pointer;
  user-select: none;
  transition: opacity 0.15s;
}

.channel-category-header:hover {
  opacity: 0.85;
}

.category-collapse-icon {
  width: 12px;
  height: 12px;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-muted);
  flex-shrink: 0;
}

.channel-group-block.collapsed .category-collapse-icon {
  transform: rotate(-90deg);
}

.channel-category-items {
  transition: all 0.22s ease;
  overflow: hidden;
}

.channel-group-block.collapsed .channel-category-items {
  display: none;
}

/* Voice Stage Controls & Badges */
.voice-stage-controls .btn.muted,
.voice-stage-controls .btn-icon.muted,
.btn-voice-control.muted {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.5) !important;
}

.voice-stage-controls .btn.muted svg,
.voice-stage-controls .btn-icon.muted svg,
.btn-voice-control.muted svg {
  stroke: #ef4444 !important;
}

.voice-tile {
  position: relative;
}

.voice-tile-state-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 5;
}

.voice-tile-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.voice-tile-badge.muted,
.voice-tile-badge.deafened {
  background: rgba(239, 68, 68, 0.9);
  border-color: rgba(239, 68, 68, 1);
  color: #ffffff;
}

.voice-tile-badge svg {
  width: 13px;
  height: 13px;
  stroke: #ffffff;
}

/* Audit Logs */
.audit-log-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 14px;
  transition: border-color 0.15s, background 0.15s;
}

.audit-log-card:hover {
  border-color: var(--border-focus);
  background: rgba(255, 255, 255, 0.02);
}

.audit-log-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-primary);
}

.audit-log-body {
  flex: 1;
  min-width: 0;
}

.audit-log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}

.audit-log-action {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.audit-log-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.audit-log-details {
  font-size: 0.78rem;
  color: var(--text-muted);
  word-break: break-word;
}

/* ========================================================
   PROFİL BANNER & GELİŞMİŞ GÖRÜNÜM
   ======================================================== */
.profile-card-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.profile-banner-container {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #1e1f29 0%, #2b2d42 50%, #1e1b4b 100%);
  position: relative;
  overflow: hidden;
}

.profile-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-hero-bannerized {
  border: none !important;
  box-shadow: none !important;
  margin-bottom: 0 !important;
  padding: 0 24px 24px 24px !important;
  position: relative;
  background: transparent !important;
}

.profile-hero-bannerized .profile-avatar-wrapper {
  margin-top: -46px;
}

.profile-hero-bannerized .profile-avatar-large {
  border: 4px solid var(--bg-surface);
}

/* ========================================================
   SOHBET MEDYA & DOSYA GÖNDERİMİ (100MB)
   ======================================================== */
.chat-attachment-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.chat-attachment-btn:hover {
  color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.05);
}

.chat-media-img {
  max-width: 440px;
  max-height: 340px;
  width: auto;
  height: auto;
  border-radius: 8px;
  margin-top: 6px;
  display: block;
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: transform 0.15s ease;
}

.chat-media-img:hover {
  transform: scale(1.01);
}

.chat-media-video {
  max-width: 460px;
  max-height: 340px;
  width: 100%;
  border-radius: 8px;
  margin-top: 6px;
  border: 1px solid var(--border-color);
  background: #000;
}

.chat-media-audio {
  width: 100%;
  max-width: 380px;
  margin-top: 6px;
  display: block;
}

.chat-media-file-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-top: 6px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.chat-media-file-card:hover {
  border-color: var(--accent-primary);
  background: rgba(88, 101, 242, 0.08);
}

.chat-media-file-card svg {
  width: 22px;
  height: 22px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

/* ========================================================
   DİREKT MESAJLAŞMA (DM) SİSTEMİ
   ======================================================== */
.mini-dm-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 6px;
}

.mini-dm-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
}

.mini-dm-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.mini-dm-avatar-wrap .status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border: 2px solid var(--bg-surface);
}

.dm-conv-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--text-muted);
  user-select: none;
}

.dm-conv-item:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

.dm-conv-item.active {
  background: rgba(88, 101, 242, 0.15);
  color: var(--text-main);
}

.dm-conv-avatar-box {
  position: relative;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.dm-conv-avatar-box img,
.dm-conv-avatar-box .dm-initial {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  font-weight: 700;
  color: var(--accent-primary);
}

.dm-conv-avatar-box .status-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--bg-card);
}

.dm-conv-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dm-conv-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dm-conv-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-conv-snippet {
  font-size: 0.76rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-unread-badge {
  background: var(--accent-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 10px;
}

/* ========================================================
   MOBİL PROFİL SCROLL & BOTTOM NAV KORUMA
   ======================================================== */
@media (max-width: 768px) {

  #view-profil,
  #view-kesfet,
  #view-liderler,
  #view-odalar,
  .profile-posts-container,
  #profile-posts-container {
    padding-bottom: 120px !important;
  }

  .feed-center {
    padding-bottom: 120px !important;
  }
}

/* ========================================================
   DM MODUNDA SAĞ SİDEBARI GİZLEME & GENİŞLETME
   ======================================================== */
.app-container.hide-right-sidebar {
  grid-template-columns: 68px var(--channels-sidebar-width, 240px) minmax(0, 1fr) !important;
}

.app-container.hide-right-sidebar .sidebar-right {
  display: none !important;
}

/* ========================================================
   PROFİL SAYFASI KART VE HERO AYRIMI
   ======================================================== */
#view-profil .profile-card-wrapper {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  margin-bottom: 32px !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45) !important;
}

#view-profil .section-header {
  margin-top: 24px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

#view-profil .posts-stream {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#view-profil .post-card {
  background-color: var(--bg-surface) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 14px !important;
  padding: 18px 20px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

#view-profil .post-card:hover {
  border-color: rgba(255, 255, 255, 0.18) !important;
  transform: translateY(-2px);
}

/* ========================================================
   KULLANICI AYARLARI MODALI DİKEY & MOBİL DOSTU DÜZEN
   ======================================================== */
.user-settings-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 14px;
}

.user-settings-media-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.media-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.media-card-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.media-card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.media-card-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.media-card-content.banner-content {
  flex-direction: column;
  align-items: stretch;
}

.ep-banner-preview-box {
  width: 100%;
  height: 90px;
  border-radius: 10px;
  overflow: hidden;
  background: #14161f;
  border: 1px solid var(--border-color);
}

.media-card-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.custom-file-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 16px !important;
  font-weight: 600;
  font-size: 0.82rem !important;
}

.custom-file-name {
  font-size: 0.78rem;
  color: var(--accent-primary);
  font-weight: 600;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-media-remove {
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  font-size: 0.82rem !important;
  padding: 8px 14px !important;
}

.btn-media-remove:hover {
  background: rgba(239, 68, 68, 0.12) !important;
}

@media (max-width: 768px) {
  .server-settings-box {
    width: 95% !important;
    height: 92vh !important;
    max-height: 94vh !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .server-settings-sidebar {
    width: 100% !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 10px !important;
    gap: 8px !important;
  }

  .server-settings-nav-title {
    display: none !important;
  }

  .server-settings-nav-item {
    white-space: nowrap;
    padding: 8px 14px !important;
    border-radius: 8px !important;
    font-size: 0.82rem !important;
  }

  .server-settings-body {
    padding: 18px 14px !important;
    overflow-y: auto !important;
  }

  .media-card-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .media-card-controls {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .custom-file-btn,
  .btn-media-remove {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================================
   TAM GENİŞLİK VE TEK SCROLL SOHBET DÜZENİ (DM & KANAL)
   ======================================================== */
.feed-center.in-chat-mode,
.feed-center:has(#view-voice-stage.active),
.feed-center:has(#view-channel-chat.active),
.feed-center:has(#view-dm-chat.active),
.feed-center:has(#view-friends.active) {
  padding: 0 !important;
  overflow: hidden !important;
  height: 100vh !important;
}

.feed-center.in-chat-mode .feed-content-wrapper,
.feed-center:has(#view-voice-stage.active) .feed-content-wrapper,
.feed-center:has(#view-channel-chat.active) .feed-content-wrapper,
.feed-center:has(#view-dm-chat.active) .feed-content-wrapper,
.feed-center:has(#view-friends.active) .feed-content-wrapper {
  max-width: 100% !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.feed-center.in-chat-mode .channel-chat-container {
  max-width: 100% !important;
  width: 100% !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 16px 24px !important;
  box-sizing: border-box !important;
}

.feed-center.in-chat-mode .channel-messages-stream {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 12px 14px !important;
}

#view-voice-stage.active,
#view-friends.active {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  width: 100% !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

.feed-center.in-chat-mode .voice-stage-container,
.feed-center:has(#view-voice-stage.active) .voice-stage-container {
  height: 100% !important;
  max-height: 100% !important;
  border-radius: 0 !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* ========================================================
   SOL MİNİ SİDEBAR OKUNMAMIŞ DM BİLDİRİM BALONU (KIRMIZI)
   ======================================================== */
.mini-icon-btn-wrapper {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 48px !important;
  height: 48px !important;
}

.mini-icon-btn.mini-dm-avatar-wrap {
  position: relative !important;
  overflow: visible !important;
}

.mini-icon-btn.mini-dm-avatar-wrap img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
}

.mini-nav-item:hover .mini-icon-btn.mini-dm-avatar-wrap img,
.mini-nav-item.active .mini-icon-btn.mini-dm-avatar-wrap img {
  border-radius: 14px !important;
}

.mini-icon-btn-wrapper .mini-dm-unread-badge,
.mini-nav-item .mini-dm-unread-badge,
.mini-dm-unread-badge {
  position: absolute !important;
  bottom: -3px !important;
  right: -3px !important;
  top: auto !important;
  background: #ef4444 !important;
  color: #ffffff !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  min-width: 20px !important;
  height: 20px !important;
  padding: 0 5px !important;
  border-radius: 10px !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2.5px solid var(--bg-body) !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.85) !important;
  z-index: 120 !important;
  pointer-events: none !important;
  line-height: 1 !important;
}

.mini-dm-unread-badge.active,
.mini-icon-btn-wrapper .mini-dm-unread-badge.active,
.mini-nav-item .mini-dm-unread-badge.active {
  display: flex !important;
}

/* ========================================================
   DM MESAJ HOVER BUTONLARI VE YANIT ÇİZGİSİ
   ======================================================== */
.dm-msg-item {
  position: relative;
  padding: 6px 14px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.dm-msg-item:hover {
  background: rgba(255, 255, 255, 0.035);
}

.dm-msg-actions-bar {
  position: absolute;
  top: -12px;
  right: 14px;
  display: none;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  z-index: 5;
  overflow: hidden;
}

.dm-msg-item:hover .dm-msg-actions-bar {
  display: flex;
}

.dm-action-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 9px;
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.dm-action-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.dm-action-btn.danger:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

.dm-reply-quote-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  padding: 4px 10px;
  border-left: 3px solid var(--accent-primary);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.dm-reply-quote-box:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-main);
  transform: translateX(2px);
}

.channel-chat-disabled-banner {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ========================================================
   DISCORD KANAL SİDEBARINDA ARKADAŞLAR SEKMESİ BUTONU
   ======================================================== */
.dm-friends-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  margin: 2px 8px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.90rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  box-sizing: border-box;
  height: 40px;
}

.dm-friends-row:hover {
  background: var(--bg-card);
  color: var(--text-main);
}

.dm-friends-row.active {
  background: var(--accent-pill-bg);
  color: var(--accent-primary);
  border-color: var(--accent-pill-border);
}

.dm-friends-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dm-friends-row-left svg {
  width: 18px;
  height: 18px;
}

.dm-friends-badge {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================================================
   ARKADAŞLAR GÖRÜNÜMÜ (#view-friends) DISCORD DÜZENİ
   ======================================================== */
.friends-main-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-surface);
  overflow: hidden;
}

.friends-top-nav {
  height: 52px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 18px;
  gap: 16px;
  flex-shrink: 0;
  background: var(--bg-surface);
}

.friends-top-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}

.friends-top-title svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-muted);
}

.friends-nav-divider {
  width: 1px;
  height: 24px;
  background: var(--border-color);
}

.friends-tabs-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.friends-tab-btn {
  background: transparent;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.friends-tab-btn:hover {
  background: var(--bg-card);
  color: var(--text-main);
}

.friends-tab-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.friends-tab-btn.btn-add-friend-tab {
  background: #22c55e !important;
  color: #ffffff !important;
  margin-left: 6px;
}

.friends-tab-btn.btn-add-friend-tab:hover {
  background: #16a34a !important;
}

.friends-tab-badge {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.friends-tab-badge.danger {
  background: #ef4444 !important;
  color: #fff !important;
}

.friends-content-body {
  flex: 1 1 0 !important;
  min-height: 0 !important;
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
  overflow-y: auto;
  background: var(--bg-surface);
  width: 100%;
  box-sizing: border-box;
}

.friends-search-row {
  margin-bottom: 16px;
}

.friends-search-box {
  display: flex;
  align-items: center;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 14px;
  width: 100%;
}

.friends-search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 0.88rem;
  flex: 1;
}

.friends-search-box svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
}

.friends-list-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.friend-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  transition: all 0.15s ease;
}

.friend-row-item:hover {
  background: var(--bg-card);
  border-color: var(--border-color);
}

.friend-info-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.friend-avatar-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--accent-primary);
  overflow: visible;
}

.friend-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.friend-avatar-wrap .status-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  border: 2px solid var(--bg-surface);
}

.friend-meta {
  display: flex;
  flex-direction: column;
}

.friend-name-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.friend-display-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}

.friend-username-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.friend-status-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.friend-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.friend-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.friend-action-btn:hover {
  background: var(--accent-pill-bg);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.friend-action-btn.danger:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #ef4444;
}

.friend-action-btn.success:hover {
  background: rgba(34, 197, 94, 0.15);
  border-color: #22c55e;
  color: #22c55e;
}

/* Arkadaş Ekle Bölümü */
.friends-add-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.friends-add-header h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 6px 0;
}

.friends-add-header p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0;
}

.friends-add-form {
  margin-top: 4px;
  width: 100%;
}

.friends-add-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 6px 8px 6px 14px;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.friends-add-input-wrap:focus-within {
  border-color: var(--accent-primary);
}

.friends-add-input-wrap input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 0.92rem;
  flex: 1;
  min-width: 0;
}

.friends-add-illu {
  margin-top: 36px;
  padding: 30px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.friends-add-illu-icon {
  width: 48px;
  height: 48px;
  border-radius: 24px;
  background: rgba(88, 101, 242, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
}

.friends-add-illu-icon svg {
  width: 24px;
  height: 24px;
}

/* ========================================================
   PROFİL SAYFASI "PAYLAŞTIĞI FİKİRLER" AYRIMI & SAYFALAMA
   ======================================================== */
.profile-posts-section {
  margin-top: 36px !important;
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 18px !important;
  padding: 24px 26px !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4) !important;
}

.profile-posts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 18px;
}

.profile-posts-counter-badge {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--accent-primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
}

.profile-posts-section .post-card {
  background-color: var(--bg-card) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  padding: 20px 22px !important;
  margin-bottom: 16px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}

.profile-posts-section .post-card:hover {
  border-color: var(--accent-primary) !important;
  transform: translateY(-2px);
}

.profile-pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.profile-page-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.profile-page-btn:hover:not(:disabled) {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: var(--accent-primary);
}

.profile-page-btn.active {
  background: var(--accent-pill-bg) !important;
  color: var(--accent-primary) !important;
  border-color: var(--accent-primary) !important;
}

.profile-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.profile-page-info {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 8px;
  font-weight: 600;
}

/* ========================================================
   MOBİL SOHBET, DM, SES KANALI VE ARKADAŞLAR DÜZENİ
   ======================================================== */
@media (max-width: 900px) {
  .feed-center.in-chat-mode {
    height: calc(100dvh - 52px - 58px) !important;
    max-height: calc(100dvh - 52px - 58px) !important;
    padding: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .feed-center.in-chat-mode .feed-content-wrapper {
    height: 100% !important;
    max-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .feed-center.in-chat-mode .channel-chat-container,
  .channel-chat-container {
    height: calc(100dvh - 52px - 58px) !important;
    max-height: calc(100dvh - 52px - 58px) !important;
    padding: 8px 10px 8px 10px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .channel-chat-header {
    margin-bottom: 6px !important;
    padding: 8px 12px !important;
    flex-shrink: 0 !important;
  }

  .feed-center.in-chat-mode .channel-messages-stream,
  .channel-messages-stream {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    padding: 8px 6px !important;
  }

  .channel-chat-input-bar {
    flex-shrink: 0 !important;
    padding: 8px 10px !important;
    margin-bottom: 0 !important;
    background: var(--bg-surface) !important;
    position: relative !important;
    z-index: 10 !important;
  }

  .voice-stage-container {
    height: calc(100dvh - 52px - 58px) !important;
    max-height: calc(100dvh - 52px - 58px) !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .voice-stage-header {
    flex-shrink: 0 !important;
    padding: 10px 14px !important;
  }

  .voice-stage-grid {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    padding: 10px !important;
  }

  .voice-stage-controls {
    flex-shrink: 0 !important;
    padding: 10px 14px !important;
    gap: 8px !important;
    background: var(--bg-surface) !important;
    position: relative !important;
    z-index: 10 !important;
  }

  .friends-main-container {
    height: calc(100dvh - 52px - 58px) !important;
    max-height: calc(100dvh - 52px - 58px) !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .friends-top-nav {
    height: auto !important;
    min-height: 44px !important;
    padding: 8px 12px !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    flex-shrink: 0 !important;
  }

  .friends-nav-divider {
    display: none !important;
  }

  .friends-top-title {
    font-size: 0.9rem !important;
  }

  .friends-tabs-group {
    flex: 1 1 100% !important;
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding-bottom: 4px !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    gap: 6px !important;
  }

  .friends-tab-btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    padding: 6px 10px !important;
    font-size: 0.8rem !important;
  }

  .friends-content-body {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    padding: 12px 10px !important;
  }
}

/* ========================================================
   KEO SPEED & SPEED BOOST GÖRSEL ROZETLERİ & TARİH TOOLTIP
   ======================================================== */
.keo-sub-badge-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  vertical-align: middle;
  margin-left: 4px;
}

.keo-sub-badge-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.keo-sub-badge-wrap.boost .keo-sub-badge-img {
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.55));
}

.keo-sub-badge-wrap.speed .keo-sub-badge-img {
  filter: drop-shadow(0 0 8px rgba(234, 179, 8, 0.5));
}

.keo-sub-badge-wrap.booster .keo-sub-badge-img {
  filter: drop-shadow(0 0 8px rgba(236, 72, 153, 0.6));
}

.keo-sub-badge-wrap:hover .keo-sub-badge-img {
  transform: scale(1.16);
}

.keo-sub-badge-wrap[data-sub-tooltip]::after {
  content: attr(data-sub-tooltip);
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #111214;
  color: #f8fafc;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 8px;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.18s ease;
  z-index: 9999;
}

.keo-sub-badge-wrap[data-sub-tooltip]::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: #111214 transparent transparent transparent;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.18s ease;
  z-index: 9999;
}

.keo-sub-badge-wrap[data-sub-tooltip]:hover::after,
.keo-sub-badge-wrap[data-sub-tooltip]:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.keo-badge-speed,
.keo-badge-speed-boost {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.keo-badge-speed {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.22), rgba(245, 158, 11, 0.1));
  border: 1px solid rgba(234, 179, 8, 0.5);
  color: #facc15;
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.25);
}

.keo-badge-speed-boost {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(236, 72, 153, 0.18));
  border: 1px solid rgba(168, 85, 247, 0.6);
  color: #d8b4fe;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.35);
}

/* ========================================================
   DM SİDEBAR KEO SPEED BUTONU & ROZETLER
   ======================================================== */
.dm-speed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  margin: 2px 8px;
  border-radius: 8px;
  cursor: pointer;
  background: rgba(234, 179, 8, 0.05);
  border: 1px solid rgba(234, 179, 8, 0.18);
  transition: all 0.2s ease;
  box-sizing: border-box;
  height: 40px;
}

.dm-speed-row:hover {
  background: rgba(234, 179, 8, 0.12);
  border-color: rgba(234, 179, 8, 0.35);
  transform: translateY(-1px);
}

.dm-speed-row.active {
  background: rgba(234, 179, 8, 0.18);
  border-color: #eab308;
}

.speed-pill-tag {
  background: linear-gradient(135deg, #eab308, #f59e0b);
  color: #000;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

/* ========================================================
   ENGELLİ SOHBET BİLDİRİMİ (DM CHAT)
   ======================================================== */
.chat-blocked-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.28);
  border-radius: 10px;
  padding: 12px 18px;
  color: #f87171;
  font-size: 0.88rem;
  font-weight: 500;
  margin: 12px 16px;
}

/* ========================================================
   KEO SPEED & BOOST SATIN ALMA / TANITIM SAYFASI (/buy)
   ======================================================== */
#view-buy.active {
  display: block !important;
  width: 100%;
  overflow-y: visible;
}

.buy-page-container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 32px 20px 100px;
  box-sizing: border-box;
}

.buy-hero-header {
  text-align: center;
  margin-bottom: 38px;
  position: relative;
}

.buy-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.35);
  color: #facc15;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}

.buy-hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #facc15;
  box-shadow: 0 0 8px #facc15;
}

.buy-hero-title {
  font-size: 2.35rem;
  font-weight: 900;
  letter-spacing: -0.6px;
  margin: 0 0 12px 0;
  background: linear-gradient(135deg, #ffffff 30%, #facc15 65%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.buy-hero-subtitle,
.buy-hero-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 650px;
  margin: 0 auto;
}

.buy-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 44px;
  align-items: stretch;
}

.buy-cards-grid .server-boost-card {
  grid-column: 1 / -1;
}

@media (max-width: 860px) {
  .buy-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .buy-cards-grid .server-boost-card {
    grid-column: auto;
  }
}

.buy-plan-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 30px 26px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.buy-plan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
}

.buy-plan-card.speed-card {
  border-color: rgba(234, 179, 8, 0.35);
  background: linear-gradient(180deg, rgba(234, 179, 8, 0.08) 0%, var(--bg-surface) 55%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.buy-plan-card.speed-card:hover {
  border-color: rgba(234, 179, 8, 0.65);
  box-shadow: 0 20px 48px rgba(234, 179, 8, 0.22);
}

.buy-plan-card.boost-card {
  border-color: rgba(168, 85, 247, 0.65);
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.16) 0%, var(--bg-surface) 60%);
  box-shadow: 0 14px 40px rgba(168, 85, 247, 0.24);
}

.buy-plan-card.boost-card:hover {
  border-color: rgba(236, 72, 153, 0.8);
  box-shadow: 0 22px 52px rgba(168, 85, 247, 0.38);
}

.buy-plan-card.server-boost-card {
  border-color: rgba(236, 72, 153, 0.35);
  background: linear-gradient(180deg, rgba(236, 72, 153, 0.08) 0%, var(--bg-surface) 55%);
}

.buy-plan-card.server-boost-card:hover {
  border-color: rgba(236, 72, 153, 0.65);
  box-shadow: 0 20px 48px rgba(236, 72, 153, 0.22);
}

.buy-card-top-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.buy-card-top-accent.speed {
  background: linear-gradient(90deg, #eab308, #f59e0b);
}

.buy-card-top-accent.boost {
  background: linear-gradient(90deg, #a855f7, #ec4899);
}

.buy-plan-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.buy-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.3px;
}

.buy-plan-badge.speed {
  color: #facc15;
}

.buy-plan-badge.boost {
  color: #d8b4fe;
}

.buy-badge-icon-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.buy-plan-tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(234, 179, 8, 0.18);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.4);
}

.buy-plan-tag.featured,
.buy-plan-tag.boost-tag {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.35);
}

.buy-plan-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 18px 0;
  line-height: 1.45;
}

.buy-plan-price-box {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 18px;
}

.buy-price-amount,
.buy-plan-price {
  font-size: 2.55rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -1px;
}

.buy-price-period,
.buy-plan-period {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 600;
}

.buy-duration-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(0, 0, 0, 0.28);
  padding: 5px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 22px;
}

.buy-dur-btn,
.btn-duration {
  padding: 9px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.buy-dur-btn:hover,
.btn-duration:hover {
  color: var(--text-main);
}

.buy-dur-btn.active,
.btn-duration.active {
  background: var(--bg-card);
  color: var(--text-main);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.buy-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.buy-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.4;
}

.feature-icon-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 900;
  flex-shrink: 0;
}

.feature-icon-circle.speed {
  background: rgba(234, 179, 8, 0.18);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.4);
}

.feature-icon-circle.boost {
  background: rgba(168, 85, 247, 0.22);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.45);
}

.buy-submit-btn {
  width: 100%;
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.22s ease;
}

.buy-submit-btn.speed-btn,
.buy-submit-btn.speed {
  background: linear-gradient(135deg, #eab308 0%, #f59e0b 100%);
  color: #090a0f;
  box-shadow: 0 6px 20px rgba(234, 179, 8, 0.32);
}

.buy-submit-btn.speed-btn:hover,
.buy-submit-btn.speed:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 10px 26px rgba(234, 179, 8, 0.45);
}

.buy-submit-btn.boost-btn,
.buy-submit-btn.boost {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  color: #ffffff;
  box-shadow: 0 6px 22px rgba(168, 85, 247, 0.38);
}

.buy-submit-btn.boost-btn:hover,
.buy-submit-btn.boost:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 10px 28px rgba(168, 85, 247, 0.55);
}

/* Karşılaştırma Tablosu Bölümü */
.buy-comparison-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 28px 24px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.buy-comparison-header {
  text-align: center;
  margin-bottom: 22px;
}

.buy-comparison-header h2,
.buy-comparison-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-main);
  margin: 0 0 6px 0;
}

.buy-comparison-header p,
.buy-comparison-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

.buy-comparison-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.buy-comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 580px;
}

.buy-comparison-table th,
.buy-comparison-table td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
  vertical-align: middle;
}

.th-plan-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.th-plan-box img {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  object-fit: contain !important;
  flex-shrink: 0;
}

.table-badge-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
  font-size: 0.82rem;
}

.table-badge-preview img {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  object-fit: contain !important;
  flex-shrink: 0;
}

.buy-notice-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(234, 179, 8, 0.08);
  border: 1px solid rgba(234, 179, 8, 0.25);
  border-radius: 14px;
  padding: 14px 18px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.buy-notice-box svg {
  color: #facc15;
  flex-shrink: 0;
}

.buy-comparison-table th:first-child,
.buy-comparison-table td:first-child {
  text-align: left;
  font-weight: 700;
  color: var(--text-main);
}

.buy-comparison-table thead th {
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.2);
}

.buy-comparison-table thead th.col-speed {
  color: #facc15;
}

.buy-comparison-table thead th.col-boost {
  color: #d8b4fe;
}

.buy-comparison-table td.col-speed {
  background: rgba(234, 179, 8, 0.03);
  color: var(--text-main);
}

.buy-comparison-table td.col-boost {
  background: rgba(168, 85, 247, 0.05);
  color: var(--text-main);
}

.table-badge-free {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.table-badge-speed {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(234, 179, 8, 0.16);
  color: #facc15;
  font-size: 0.78rem;
  font-weight: 800;
}

.table-badge-boost {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(168, 85, 247, 0.22);
  color: #d8b4fe;
  font-size: 0.78rem;
  font-weight: 800;
}

.table-check {
  font-weight: 800;
  font-size: 0.85rem;
}

.table-check.speed {
  color: #facc15;
}

.table-check.boost {
  color: #c084fc;
}

.table-cross {
  color: var(--text-muted);
  opacity: 0.5;
}

.buy-footer-info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(234, 179, 8, 0.06);
  border: 1px solid rgba(234, 179, 8, 0.22);
  border-radius: 16px;
  padding: 18px 22px;
}

.buy-footer-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ========================================================
   SESLİ KANAL EKRAN PAYLAŞIMI & KAMERA SAHNESİ
   ======================================================== */
.voice-streams-stage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
  padding: 14px 18px 4px;
  width: 100%;
  box-sizing: border-box;
  max-height: 62vh;
  overflow-y: auto;
}

.voice-streams-stage.has-focused-stream {
  grid-template-columns: 1fr;
  max-height: 68vh;
}

.voice-stream-card {
  position: relative;
  background: #07080c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: 48vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}

.voice-stream-card.focused {
  max-height: 62vh;
  border-color: var(--accent-primary);
}

.voice-stream-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050508;
}

.voice-stream-pip-video {
  position: absolute;
  bottom: 52px;
  right: 14px;
  width: 150px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  border: 2px solid var(--accent-primary);
  object-fit: cover;
  background: #000;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.65);
  z-index: 4;
}

.voice-stream-top-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
  z-index: 5;
}

.stream-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.4px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.stream-res-pill {
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #facc15;
  font-size: 0.72rem;
  font-weight: 800;
}

.voice-stream-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 70%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  z-index: 5;
}

.stream-owner-tag {
  font-size: 0.84rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.stream-control-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stream-volume-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.8);
  padding: 3px 8px 3px 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.stream-vol-slider {
  width: 68px;
  height: 4px;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.stream-ctrl-btn {
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.stream-ctrl-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
}

.stream-ctrl-btn.danger {
  background: rgba(239, 68, 68, 0.85);
  border-color: #ef4444;
  color: #fff;
}

.voice-tile.streaming {
  border-color: rgba(239, 68, 68, 0.55) !important;
}

.voice-tile-live-pill {
  background: #ef4444;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.active-media-btn,
.btn-voice-control.active-stream {
  background: rgba(34, 197, 94, 0.2) !important;
  border-color: #22c55e !important;
  color: #4ade80 !important;
}

/* Ekran Paylaşımı Kalite Seçim Modalı */
.stream-quality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stream-quality-option {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stream-quality-option:hover:not(.locked) {
  border-color: var(--accent-primary);
  background: var(--bg-card-hover);
}

.stream-quality-option.selected {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  box-shadow: 0 0 0 1px #22c55e;
}

.stream-quality-option.locked {
  opacity: 0.58;
  cursor: not-allowed;
}

.sq-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.sq-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
}

.sq-tier-pill {
  font-size: 0.62rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 6px;
  text-transform: uppercase;
}

.sq-tier-pill.free {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.sq-tier-pill.speed {
  background: rgba(234, 179, 8, 0.2);
  color: #facc15;
}

.sq-tier-pill.boost {
  background: rgba(168, 85, 247, 0.25);
  color: #d8b4fe;
}

.sq-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.stream-tier-lock-notice {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.3);
  font-size: 0.8rem;
  color: #facc15;
}

.screen-audio-toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 14px;
}

.keo-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.keo-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.keo-switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: 0.25s;
  border-radius: 24px;
}

.keo-switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s;
  border-radius: 50%;
}

.keo-switch input:checked+.keo-switch-slider {
  background-color: #22c55e;
}

.keo-switch input:checked+.keo-switch-slider:before {
  transform: translateX(20px);
}

@media (max-width: 900px) {
  .buy-page-container {
    padding: 20px 14px 110px !important;
  }

  .buy-hero-title {
    font-size: 1.65rem !important;
  }

  .buy-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .buy-comparison-section {
    padding: 18px 12px !important;
  }

  .buy-footer-info-card {
    flex-direction: column;
    text-align: center;
  }

  .stream-quality-grid {
    grid-template-columns: 1fr !important;
  }

  .voice-streams-stage {
    grid-template-columns: 1fr !important;
    padding: 8px 10px !important;
    max-height: 45vh !important;
  }
}

/* ========================================================
   KULLANICI AYARLARI: TAKVİYELERİM & FATURALANDIRMA
   ======================================================== */
.ep-boost-overview-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.ep-boost-stat-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.ep-boost-stat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.ep-boost-stat-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-main);
}

.ep-boost-stat-num.active {
  color: #a855f7;
}

.ep-boost-assign-box {
  background: rgba(168, 85, 247, 0.06);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.ep-boost-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
}

.ep-boost-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.boost-gem-icon {
  font-size: 1.4rem;
}

.ep-billing-history-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.ep-billing-history-table th {
  text-align: left;
  font-size: 0.74rem;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-color);
}

.ep-billing-history-table td {
  padding: 12px;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ========================================================
   SUNUCU BANNERI & TAKVİYE İLERLEME BARI (CHANNELS HEADER ALTI)
   ======================================================== */
.community-sidebar-banner-wrap {
  width: 100%;
  height: 96px;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #090a10;
}

.community-sidebar-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.community-boost-bar-wrap {
  margin: 6px 10px 8px 10px;
  padding: 3px 12px 3px 4px;
  height: 32px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(30, 31, 35, 0.85);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  user-select: none;
  position: relative;
  overflow: hidden;
}

.cbb-progress-fill-bg {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.28), rgba(168, 85, 247, 0.38));
  border-radius: 9999px;
  pointer-events: none;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

.community-boost-bar-wrap .cbb-level-badge,
.community-boost-bar-wrap .cbb-count-label {
  position: relative;
  z-index: 1;
}

.community-boost-bar-wrap:hover {
  background: rgba(43, 45, 49, 0.95);
  border-color: rgba(168, 85, 247, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.2);
}

.community-boost-bar-wrap .cbb-level-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 3px 11px;
  height: 25px;
  border-radius: 9999px;
  background: #58355e;
  color: #ffffff;
  border: none;
  box-shadow: none;
  flex-shrink: 0;
}

.community-boost-bar-wrap .cbb-level-badge.level-1 {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
}

.community-boost-bar-wrap .cbb-level-badge.level-2 {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
}

.community-boost-bar-wrap .cbb-level-badge svg {
  width: 13px;
  height: 13px;
  stroke: #ffffff;
}

.community-boost-bar-wrap .cbb-count-label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #dbdee1;
  letter-spacing: 0.2px;
}

.community-boost-bar-wrap .cbb-count-label::after {
  font-size: 0.82rem;
  color: #949ba4;
  margin-left: 2px;
  font-weight: 700;
}

.boost-rocket-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ========================================================
   SESLİ KANAL KİŞİ SAYISI ROZETİ (KANAL İSMİ SAĞINDA)
   ======================================================== */
.voice-ch-right-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.voice-ch-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 99px;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.38);
  color: #4ade80;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

/* ========================================================
   KULLANICI POPOUT KARTI: GENİŞLETME, 3 NOKTA MENÜSÜ & TAKVİYE ROZETİ
   ======================================================== */
#user-popout-card,
.user-popout-card {
  width: 440px !important;
  max-width: 95vw !important;
  overflow: visible !important;
  position: relative !important;
}

.popout-banner {
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.user-popout-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.popout-more-wrap {
  position: relative;
  display: inline-block;
}

.popout-more-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.popout-more-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.popout-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 190px;
  background: rgba(15, 18, 28, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85);
  z-index: 9999999 !important;
  display: none;
  flex-direction: column;
  gap: 2px;
}

.popout-dropdown-menu.active {
  display: flex;
  animation: subCelebFadeIn 0.15s ease;
}

.pdm-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdm-item:hover {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.pdm-item.pdm-danger {
  color: #f87171;
}

.pdm-item.pdm-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

/* Popout Rozetler Satırı & Takviye Rozeti */
.popout-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  position: relative;
  z-index: 100;
}

.user-custom-booster-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 6px;
  border-radius: 12px;
  background: rgba(236, 72, 153, 0.16);
  border: 1px solid rgba(236, 72, 153, 0.38);
  cursor: pointer;
  transition: transform 0.18s ease;
}

.user-custom-booster-badge:hover {
  transform: translateY(-1px);
  border-color: rgba(236, 72, 153, 0.7);
  box-shadow: 0 0 14px rgba(236, 72, 153, 0.35);
}

.booster-gem-svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.booster-badge-count-pill {
  font-size: 0.7rem;
  font-weight: 800;
  color: #f472b6;
  line-height: 1;
}

.booster-standalone-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #090a10;
  color: #fff;
  border: 1px solid rgba(236, 72, 153, 0.45);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.18s ease;
  z-index: 9999999 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 12px rgba(236, 72, 153, 0.35);
}

.user-custom-booster-badge:hover .booster-standalone-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-2px);
}

/* ========================================================
   PROFİL SAYFASI BANNER İLE DETAYLAR ARASI BOŞLUK & BUTONLAR
   ======================================================== */
.profile-banner-container {
  background: #0b0e14;
  transition: background 0.25s ease;
}

.profile-details {
  margin-top: 14px !important;
  padding-top: 6px !important;
}

.profile-action-buttons-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ========================================================
   KULLANICI AYARLARI BANNER RENK PALETİ
   ======================================================== */
.banner-color-palette-wrap {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bcp-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.bcp-swatches-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bcp-swatch {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  padding: 0;
}

.bcp-swatch:hover {
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.65);
}

.bcp-swatch.active {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px var(--accent-primary);
  transform: scale(1.08);
}

.bcp-custom-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-main);
  position: relative;
}

.bcp-custom-picker-btn input[type="color"] {
  width: 20px;
  height: 20px;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

/* ========================================================
   TAKVİYE BAS ANİMASYONLU BUTON & SVG İKON
   ======================================================== */
.boost-gem-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(236, 72, 153, 0.15);
  border: 1px solid rgba(236, 72, 153, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f472b6;
  flex-shrink: 0;
}

.boost-svg-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.btn-animated-boost {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #38bdf8 100%);
  background-size: 200% 200%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-position 0.4s ease;
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.35);
  white-space: nowrap;
}

.btn-animated-boost:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.55), 0 8px 24px rgba(139, 92, 246, 0.5);
}

/* ========================================================
   EKRAN PAYLAŞIMI MODALI (KAYNAK SEÇİMİ & MODERN TASARIM)
   ======================================================== */
.screen-share-modal-box {
  max-width: 640px !important;
  width: 95% !important;
  padding: 30px 28px !important;
  border-radius: 20px !important;
  background: rgba(15, 18, 28, 0.98) !important;
  backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85) !important;
}

.ssm-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.ssm-header-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.ssm-header-icon svg {
  width: 26px;
  height: 26px;
}

.ssm-section {
  margin-bottom: 22px;
}

.ssm-section-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #94a3b8;
  margin-bottom: 12px;
  display: block;
}

.ssm-source-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ssm-source-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ssm-source-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.ssm-source-card.selected {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.22);
}

.ssm-src-icon,
.ssm-source-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  margin-bottom: 2px;
}

.ssm-source-card.selected .ssm-src-icon,
.ssm-source-card.selected .ssm-source-icon {
  background: rgba(56, 189, 248, 0.22);
  color: #38bdf8;
}

.ssm-src-title,
.ssm-source-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.25;
}

.ssm-src-sub,
.ssm-source-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.3;
}

.sq-lock-svg {
  width: 11px;
  height: 11px;
  margin-right: 3px;
  vertical-align: -1px;
}

.ssm-start-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ========================================================
   EKRAN PAYLAŞIMI BÜYÜTME & TAM EKRAN (YEŞİLLEŞME / UZAKLAŞMA DÜZELTMESİ)
   ======================================================== */
.voice-streams-stage.has-focused-stream {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  max-height: 82vh !important;
}

.voice-streams-stage.has-focused-stream .voice-stream-card.focused {
  width: 100% !important;
  height: 68vh !important;
  max-height: 68vh !important;
  aspect-ratio: auto !important;
  background: #000000 !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.85), 0 0 24px rgba(56, 189, 248, 0.25) !important;
  order: 1 !important;
}

.voice-streams-stage.has-focused-stream .voice-stream-card:not(.focused) {
  height: 120px !important;
  max-height: 120px !important;
  width: 213px !important;
  aspect-ratio: 16 / 9 !important;
  order: 2 !important;
  flex-shrink: 0 !important;
}

video:fullscreen,
video:-webkit-full-screen,
.voice-stream-card:fullscreen,
.voice-stream-card:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
  border: none !important;
  background: #000000 !important;
  margin: 0 !important;
  padding: 0 !important;
  filter: none !important;
  -webkit-filter: none !important;
  backdrop-filter: none !important;
  mix-blend-mode: normal !important;
}

.voice-stream-card:fullscreen .voice-stream-video,
.voice-stream-card:-webkit-full-screen .voice-stream-video,
.voice-stream-card.focused .voice-stream-video {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  background: #000000 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

/* ========================================================
   ABONELİK SATIN ALMA KUTLAMA ANİMASYONU & ZATEN SAHİPSİNİZ BUTONU
   ======================================================== */
.buy-submit-btn.owned-plan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  filter: saturate(0.85);
}

.sub-celebration-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 12, 0.82);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  animation: subCelebFadeIn 0.3s ease forwards;
}

.sub-celebration-overlay.fade-out {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.sub-celebration-card {
  position: relative;
  width: 420px;
  max-width: 92vw;
  background: linear-gradient(165deg, #131722 0%, #0b0e14 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  border-radius: 22px;
  padding: 32px 26px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  animation: subCelebPop 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.sub-celebration-card.boost {
  border-color: rgba(236, 72, 153, 0.55);
}

.sub-celebration-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 140px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

.sub-celebration-card.boost .sub-celebration-glow {
  background: radial-gradient(circle, rgba(236, 72, 153, 0.4) 0%, transparent 70%);
}

.sub-celebration-badge-ring {
  width: 84px;
  height: 84px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: subCelebPulse 1.8s infinite ease-in-out;
}

.sub-celebration-img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.sub-celebration-tag {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 1.2px;
  color: #38bdf8;
  margin-bottom: 6px;
}

.sub-celebration-card.boost .sub-celebration-tag {
  color: #f472b6;
}

.sub-celebration-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 10px;
}

.sub-celebration-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 22px;
}

.sub-celebration-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  font-weight: 800;
}

@keyframes subCelebFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes subCelebPop {
  0% {
    opacity: 0;
    transform: scale(0.82) translateY(20px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes subCelebPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

@media (max-width: 640px) {
  .ssm-source-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================
   SOL SIDEBAR KEO LOGO ŞEFFAF TASARIM
   ======================================================== */
#mini-brand-btn,
.mini-brand-btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#mini-brand-btn:hover,
.mini-brand-btn:hover {
  background: transparent !important;
  transform: scale(1.08) !important;
}

#mini-brand-btn img,
.mini-brand-btn img {
  border-radius: 0 !important;
  object-fit: contain !important;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

/* ========================================================
   BETA TEST ROZETİ (PARLAK SİSTEM ROZETİ)
   ======================================================== */
.keo-beta-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.38);
  padding: 2.5px 8px;
  border-radius: 99px;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
  cursor: help;
  position: relative;
  vertical-align: middle;
  line-height: 1;
}

.keo-beta-badge.mini {
  font-size: 0.58rem;
  padding: 2px 6px;
  margin-left: 6px;
}

/* ========================================================
   CHATTA CANLI SUNUCU DAVET KARTI (RICH DISCORD EMBED)
   ======================================================== */
.chat-invite-embed-card {
  margin-top: 8px;
  max-width: 440px;
  background: #11141f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}

.chat-invite-embed-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
}

.chat-invite-embed-card .cie-loading {
  padding: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.cie-banner {
  width: 100%;
  height: 90px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.cie-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(17, 20, 31, 0.95) 100%);
}

.cie-body {
  padding: 14px 16px;
}

.cie-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.cie-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cie-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cie-icon-placeholder {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.cie-info-col {
  min-width: 0;
  flex: 1;
}

.cie-invited-tag {
  display: block;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.cie-server-name {
  font-size: 0.96rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cie-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cie-stats-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.cie-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

.cie-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.cie-dot.online {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}

.cie-dot.offline {
  background: #64748b;
}

.cie-footer-row {
  display: flex;
  justify-content: flex-end;
}

.cie-join-btn {
  padding: 8px 20px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  background: #22c55e !important;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3) !important;
}

.cie-join-btn:hover {
  background: #16a34a !important;
}

/* ========================================================
   CHAT ÖZEL EMOJİLER & TOOLTIP
   ======================================================== */
.chat-custom-emoji-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin: 0 2px;
  cursor: pointer;
}

.chat-custom-emoji {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
}

.chat-custom-emoji-wrap[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #090a10;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.15s ease;
  z-index: 999999;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
}

.chat-custom-emoji-wrap:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-2px);
}

/* ========================================================
   SUNUCU AYARLARI: DROPZONE, KİLİT EKRANI & EMOJİLER SEKMESİ
   ======================================================== */
.ss-upload-dropzone {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px dashed rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ss-upload-dropzone:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-primary);
}

.ss-upload-preview-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #181c2b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.ss-upload-preview-box.banner {
  width: 88px;
  height: 48px;
  border-radius: 8px;
}

.ss-locked-screen-box {
  text-align: center;
  padding: 36px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  margin-top: 10px;
}

.ss-locked-icon-ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(234, 179, 8, 0.12);
  border: 1.5px solid rgba(234, 179, 8, 0.35);
  color: #facc15;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.ss-emojis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.ss-emoji-item-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  transition: all 0.18s ease;
}

.ss-emoji-item-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
}

.ss-emoji-preview-box {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ss-emoji-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ss-emoji-code {
  font-size: 0.74rem;
  font-weight: 700;
  color: #e2e8f0;
  word-break: break-all;
}

.ss-emoji-actions {
  display: flex;
  gap: 4px;
  margin-top: 2px;
}

.ss-emoji-del-btn {
  color: #f87171 !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
}

.ss-emoji-del-btn:hover {
  background: rgba(239, 68, 68, 0.15) !important;
}

/* ========================================================
   /buy SAYFASI SERVER BOOST KARTI & PİLLER
   ======================================================== */
.server-boost-card {
  border-color: rgba(236, 72, 153, 0.4) !important;
  position: relative;
}

.bqs-pills-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.bqs-pill {
  padding: 6px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.bqs-pill:hover {
  background: rgba(236, 72, 153, 0.18);
  border-color: rgba(236, 72, 153, 0.4);
}

.bqs-pill.active {
  background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
  border-color: #ec4899;
  color: #fff;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.35);
}

.sb-duration-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.sb-dur-btn {
  flex: 1;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.sb-dur-btn.active {
  background: rgba(236, 72, 153, 0.2);
  border-color: #ec4899;
  color: #f472b6;
}

/* ========================================================
   GELİŞMİŞ SUNUCU TAKVİYE MODALI VE AYARLAR
   ======================================================== */
.boost-community-modal-box {
  max-width: 500px !important;
  width: 92vw !important;
  background: #18191c !important;
  border: 1px solid rgba(168, 85, 247, 0.3) !important;
  border-radius: 20px !important;
  padding: 26px 28px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(168, 85, 247, 0.15) !important;
}

.bcm-hero {
  text-align: center;
  margin-bottom: 18px;
}

.bcm-rocket-badge-glow {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(168, 85, 247, 0.25));
  border: 2px solid rgba(236, 72, 153, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 0 24px rgba(236, 72, 153, 0.35);
}

.bcm-hero-rocket {
  width: 30px;
  height: 30px;
  stroke: #f472b6;
}

.bcm-server-tag {
  display: inline-block;
  padding: 3px 12px;
  background: rgba(236, 72, 153, 0.15);
  border: 1px solid rgba(236, 72, 153, 0.35);
  color: #f472b6;
  font-size: 0.76rem;
  font-weight: 800;
  border-radius: 99px;
  margin-bottom: 8px;
}

.bcm-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.bcm-subtitle {
  font-size: 0.84rem;
  color: var(--text-muted, #949ba4);
  margin: 0;
  line-height: 1.45;
}

.bcm-level-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 16px;
}

.bcm-level-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.bcm-count-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #dbdee1;
}

.bcm-progress-track {
  position: relative;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.bcm-progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #ec4899 0%, #a855f7 50%, #38bdf8 100%);
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.6);
  transition: width 0.35s ease;
}

.bcm-perks-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.bcm-perk-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.bcm-perk-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(236, 72, 153, 0.3);
}

.bcm-perk-item.unlocked {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.4);
}

.bcm-perk-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.2), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(236, 72, 153, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bcm-perk-svg {
  width: 17px;
  height: 17px;
  stroke: #f472b6;
}

.bcm-perk-info {
  flex: 1;
  min-width: 0;
}

.bcm-perk-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.bcm-perk-desc {
  font-size: 0.78rem;
  color: var(--text-muted, #949ba4);
}

.bcm-perk-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted, #949ba4);
  flex-shrink: 0;
}

.bcm-perk-pill.unlocked {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.bcm-user-boost-info {
  border-radius: 14px;
  padding: 16px;
}

.bcm-user-boost-info.has-boosts {
  background: rgba(236, 72, 153, 0.08);
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.bcm-user-boost-info.no-boosts {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  text-align: center;
}

.bcm-ubi-header {
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bcm-user-boost-info.no-boosts .bcm-ubi-header {
  justify-content: center;
}

.bcm-ubi-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.bcm-btn-apply,
.bcm-btn-buy {
  background: linear-gradient(135deg, #ec4899, #a855f7) !important;
  border: none !important;
  box-shadow: 0 4px 18px rgba(236, 72, 153, 0.4) !important;
  font-weight: 700 !important;
  padding: 12px 24px !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  color: #fff !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bcm-btn-apply:hover,
.bcm-btn-buy:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(236, 72, 153, 0.5) !important;
  filter: brightness(1.08);
}

/* Ekran Paylaşımı Ayarları Modalı Butonlar (ssm-footer) */
.ssm-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
}

.ssm-footer .btn {
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.ssm-footer .btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.ssm-footer .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.25);
}

.ssm-start-btn {
  background: var(--accent-primary, #5865f2) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.35) !important;
}

.ssm-start-btn:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.45) !important;
}

/* Sunucu Banner Kilit Rozeti */
.ss-tier-req-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(236, 72, 153, 0.18));
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #e9d5ff;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 4px 11px;
  border-radius: 99px;
  box-shadow: 0 2px 10px rgba(168, 85, 247, 0.18);
}

.ss-tier-req-pill .sq-lock-svg {
  width: 13px;
  height: 13px;
  stroke: #c084fc;
  stroke-width: 2.2;
}

/* Sunucu Emojileri Modern Dosya Yükleme & Form */
.ss-emoji-fields-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.ss-emoji-field-name {
  flex: 1;
  min-width: 140px;
  margin-bottom: 0 !important;
}

.ss-emoji-field-file {
  flex: 1.3;
  min-width: 190px;
  margin-bottom: 0 !important;
}

.ss-custom-file-wrap {
  position: relative;
}

.ss-custom-file-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1.5px dashed var(--border-color);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ss-custom-file-btn:hover {
  border-color: var(--accent-primary);
  background: rgba(56, 189, 248, 0.05);
  color: var(--text-main);
}

.ss-custom-file-btn svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent-primary);
  flex-shrink: 0;
}

.ss-hidden-file-input {
  display: none !important;
}

.ss-emoji-btn-wrap button {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  padding: 0 16px;
}

/* /buy Takviye Adet Seçim Butonları */
.bqs-pill {
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.bqs-pill.active {
  background: linear-gradient(135deg, #ec4899, #a855f7) !important;
  color: #ffffff !important;
  border-color: #ec4899 !important;
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.5) !important;
  font-weight: 800 !important;
  transform: translateY(-2px) !important;
}

/* PC Masaüstü BETA Rozeti */
.desktop-rail-beta {
  position: absolute;
  bottom: 6px;
  right: 6px;
  font-size: 0.52rem !important;
  padding: 1.5px 4.5px !important;
  pointer-events: none;
}

/* 3 Durumlu Discord Tarzı İzin Kontrolleri */
.perm-tristate-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px;
}

.perm-tristate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.perm-tristate-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
}

.perm-tristate-group {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.tristate-btn {
  width: 32px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.tristate-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.tristate-btn.deny.active {
  background: #ef4444 !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.45);
}

.tristate-btn.neutral.active {
  background: #64748b !important;
  color: #ffffff !important;
  box-shadow: 0 0 8px rgba(100, 116, 139, 0.4);
}

.tristate-btn.allow.active {
  background: #22c55e !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.45);
}

.cat-perm-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.78rem;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 14px;
}

.cat-perm-info-banner svg {
  width: 18px;
  height: 18px;
  stroke: #38bdf8;
  flex-shrink: 0;
  margin-top: 1px;
}

/* @mention Otomatik Tamamlama & Bildirim Rozetleri */
.chat-mention-popup {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 12px;
  right: 12px;
  max-width: 380px;
  max-height: 220px;
  overflow-y: auto;
  background: rgba(15, 18, 28, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85);
  z-index: 99999;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-mention-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.chat-mention-item:hover,
.chat-mention-item.active {
  background: rgba(56, 189, 248, 0.18);
}

.chat-mention-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text-main);
  flex-shrink: 0;
  position: relative;
}

.chat-mention-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.chat-mention-meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
  overflow: hidden;
  min-width: 0;
}

.chat-mention-disp {
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--text-main);
  white-space: nowrap;
}

.chat-mention-user {
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.chat-mention-tag {
  display: inline-block;
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.chat-mention-tag:hover {
  background: rgba(56, 189, 248, 0.35);
  color: #bae6fd;
  text-decoration: underline;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}

.chat-mention-tag.me {
  background: rgba(234, 179, 8, 0.25);
  color: #facc15;
}

.chat-mention-tag.me:hover {
  background: rgba(234, 179, 8, 0.45);
  color: #fef08a;
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.35);
}

.channel-chat-msg.has-mention-me {
  background: rgba(234, 179, 8, 0.08);
  border-left: 3px solid #eab308;
}

.mini-community-mention-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border-radius: 99px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.6);
  border: 2px solid #0f121c;
  pointer-events: none;
  z-index: 10;
}

.channel-mention-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5);
}

/* Chat Emoji Otomatik Tamamlama (: popover) */
.chat-emoji-ac-popover {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 14px;
  max-width: 320px;
  width: calc(100% - 28px);
  max-height: 220px;
  overflow-y: auto;
  background: var(--bg-surface, #11141d);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65);
  z-index: 1000;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-emoji-ac-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
  color: var(--text-main, #f1f5f9);
  font-size: 0.85rem;
}

.chat-emoji-ac-item:hover,
.chat-emoji-ac-item.active {
  background: rgba(255, 255, 255, 0.08);
}

.chat-ac-emoji-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.chat-ac-emoji-char {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.chat-ac-badge {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted, #94a3b8);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ========================================================
   DISCORD TARZI ARDIŞIK (GRUPLANMIŞ) MESAJ DÜZENİ
   ======================================================== */
.channel-chat-msg.is-grouped {
  padding: 1px 16px 1px 12px !important;
  margin-top: 0 !important;
  min-height: 22px;
}

.channel-chat-msg.is-grouped .chat-msg-avatar,
.channel-chat-msg.is-grouped .chat-msg-header {
  display: none !important;
}

.chat-msg-grouped-time {
  width: 40px !important;
  min-width: 40px !important;
  text-align: right;
  font-size: 0.68rem;
  color: var(--text-muted, #94a3b8);
  opacity: 0;
  transition: opacity 0.12s ease;
  flex-shrink: 0;
  margin-right: 12px !important;
  user-select: none;
  line-height: 1.4;
  padding-top: 1px;
}

.channel-chat-msg.is-grouped:hover .chat-msg-grouped-time {
  opacity: 1 !important;
}

.channel-chat-msg.is-grouped .chat-msg-body {
  flex: 1;
  min-width: 0;
}

.channel-chat-msg.is-grouped .chat-msg-text {
  margin: 0 !important;
  line-height: 1.4;
}

/* Discord Tarzı Sistem (Hoş Geldin & Takviye) Mesajları */
.channel-chat-msg.system-msg {
  padding: 3px 16px 3px 12px !important;
  background: transparent !important;
}

.channel-chat-msg.system-msg .system-msg-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.channel-chat-msg.system-msg .system-msg-text {
  font-size: 0.88rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.4;
}

.channel-chat-msg.system-msg .system-msg-text strong,
.channel-chat-msg.system-msg .system-msg-text .chat-mention-tag {
  color: var(--text-main, #fff);
  font-weight: 700;
}

.channel-chat-msg.system-msg .chat-system-time {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  margin-left: 8px;
}

/* Kullanıcı Ayarları: Ses & Mikrofon Test Barı */
.voice-test-meter-wrap {
  width: 100%;
  height: 12px;
  background: var(--bg-card, rgba(255, 255, 255, 0.06));
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  margin-top: 8px;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.voice-test-meter-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22c55e, #10b981);
  border-radius: 6px;
  transition: width 0.05s ease;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

/* ========================================================
   SUNUCU AYARLARI: OTO MESAJLAR KARTLARI
   ======================================================== */
.auto-msg-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.auto-msg-card:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.15);
}

.auto-msg-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.auto-msg-card-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.auto-msg-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auto-msg-card-icon.welcome {
  background: rgba(88, 101, 242, 0.16);
  color: #818cf8;
}

.auto-msg-card-icon.boost {
  background: rgba(236, 72, 153, 0.16);
  color: #f472b6;
}

.auto-msg-card-icon svg {
  width: 22px;
  height: 22px;
}

.auto-msg-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main, #f8fafc);
  margin-bottom: 2px;
}

.auto-msg-card-desc {
  font-size: 0.78rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.35;
}

.auto-msg-channel-group {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.auto-msg-channel-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auto-msg-select {
  width: 100%;
  max-width: 320px;
  background: var(--bg-surface, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text-main, #f8fafc);
  padding: 8px 12px;
  font-size: 0.88rem;
}

.auto-msg-preview-note {
  margin-top: 8px;
  font-size: 0.76rem;
  color: var(--text-muted, #94a3b8);
}

.auto-msg-preview-note span {
  font-weight: 600;
  color: var(--text-main, #f8fafc);
}

/* ========================================================
   MODERN TOGGLE SWITCHES & DM SIDEBAR ENHANCEMENTS
   ======================================================== */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

input:checked+.slider {
  background-color: var(--accent-primary, #38bdf8);
}

input:checked+.slider:before {
  transform: translateX(20px);
}

/* DM Sidebar Başlık + Butonu */
.btn-dm-add-icon {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  margin-left: auto;
}

.btn-dm-add-icon:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

/* DM Satırı Kapat (X) Butonu */
.btn-dm-close-conv {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
  margin-left: 4px;
}

.dm-conv-item:hover .btn-dm-close-conv {
  opacity: 1;
}

.btn-dm-close-conv:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

/* Yeni DM Modal Kontak Listesi */
.contact-picker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  transition: all 0.15s ease;
}

.contact-picker-item:hover {
  background: var(--bg-hover);
  border-color: var(--accent-primary);
  transform: translateX(2px);
}

.contact-picker-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
  flex-shrink: 0;
}

.contact-picker-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.contact-picker-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.contact-picker-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-picker-handle {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ========================================================
   SUNUCULAR KEŞFET & TOPLULUK REHBERİ (/sunucular)
   ======================================================== */
.sunucular-page-view {
  padding: 32px 28px 48px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.sunucular-hero {
  text-align: center;
  margin-bottom: 28px;
}

.sunucular-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.sunucular-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 580px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.sunucular-search-wrap {
  position: relative;
  max-width: 520px;
  margin: 0 auto 32px;
}

.sunucular-search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 18px 12px 42px;
  color: var(--text-main);
  font-size: 0.95rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.sunucular-search-input:focus {
  border-color: var(--accent-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.sunucular-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  stroke: var(--text-muted);
  pointer-events: none;
}

.sunucular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.sunucular-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.sunucular-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.sunucular-card-banner {
  height: 104px;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-color: #1e1f2b;
  position: relative;
}

.sunucular-card-body {
  padding: 12px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sunucular-card-header {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: -36px;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

.sunucular-card-avatar,
.sunucular-card-avatar-fallback {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  border: 4px solid var(--bg-card);
  background: var(--bg-surface);
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.sunucular-card-avatar-fallback {
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--accent-primary);
}

.sunucular-card-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sunucular-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 3.6em;
}

.sunucular-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  gap: 8px;
}

.sunucular-card-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.sunucular-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.sunucular-card-btn {
  background: var(--accent-primary);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sunucular-card-btn:hover {
  background: #0284c7;
  transform: scale(1.02);
}

.sunucular-card-btn.joined {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

/* Rol Sıralama Butonları */
.role-reorder-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font-size: 0.75rem;
  transition: all 0.15s ease;
}

.role-reorder-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.25);
}

.role-reorder-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

/* Boost Modalı Adet Seçici */
.bcm-quantity-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 14px;
  flex-wrap: wrap;
}

.bcm-qty-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bcm-qty-pill:hover,
.bcm-qty-pill.active {
  background: rgba(236, 72, 153, 0.2);
  border-color: #ec4899;
  color: #f472b6;
}

.bcm-qty-input-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.bcm-qty-input {
  width: 58px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  text-align: center;
  padding: 5px 4px;
}
/* ===== Boost Modalı: Adet Seçici (düzeltilmiş) ===== */
.bcm-quantity-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 16px;
  flex-wrap: wrap;
  padding: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
}
.bcm-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}
.bcm-pill:hover { color: #fff; border-color: rgba(244, 114, 182, 0.6); transform: translateY(-1px); }
.bcm-pill.active {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(168, 85, 247, 0.3));
  border-color: #ec4899;
  color: #fff;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.3);
}
.bcm-input {
  margin-left: auto;
  width: 78px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  font-family: inherit;
  text-align: center;
  padding: 7px 6px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.bcm-input:focus { border-color: #ec4899; box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.18); }
.bcm-input::-webkit-inner-spin-button, .bcm-input::-webkit-outer-spin-button { opacity: 1; }

/* ===== Sunucular Kartı: header / boost badge / avatar ===== */
.sunucular-card-boost-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 9px;
  border-radius: 999px;
  background: rgba(15, 17, 26, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(244, 114, 182, 0.5);
  color: #f472b6;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 10px rgba(236, 72, 153, 0.25);
  z-index: 5;
}
.sunucular-card-boost-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: #f472b6;
  filter: drop-shadow(0 0 4px rgba(236, 72, 153, 0.6));
}
.sunucular-card-boost-badge span {
  display: inline-flex;
  align-items: center;
}
.sunucular-card-body {
  padding: 14px 16px 16px;
}
.sunucular-card-header {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: -36px;
  margin-bottom: 10px;
  position: relative;
  z-index: 3;
}
.sunucular-card-header .sunucular-card-avatar,
.sunucular-card-header .sunucular-card-avatar-fallback {
  position: static !important;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  border: 4px solid var(--bg-card);
  background: var(--bg-surface);
  object-fit: cover;
  display: block;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}
.sunucular-card-avatar-fallback {
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--accent-primary);
}
.sunucular-card-name-wrap {
  min-width: 0;
  flex: 1;
  padding-bottom: 2px;
}
.sunucular-card-name-wrap .sunucular-card-name {
  margin-bottom: 3px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sunucular-card-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
}
.sunucular-card-footer .sunucular-card-btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* Erken Dönem Destekçisi Rozeti */
.keo-sub-badge-wrap.supporter .keo-sub-badge-img {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.5));
}
