/* ============================================
   Ürgüp Belediyesi Bot — Teknik Panel Teması
   Düz yüzeyler, net kenarlıklar, yüksek okunabilirlik
   Not: Sadece CSS değişti, HTML/JS sınıf adları aynı.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* ---- Tasarım Değişkenleri ---- */
:root {
  /* Yüzeyler (düz, şeffaflık yok) */
  --color-bg: #101216;
  --color-bg-2: #14171c;
  --color-bg-3: #1a1d24;
  --color-surface: #181b21;
  --color-surface-2: #1f232b;
  --color-surface-3: #272c36;

  --color-border: #2a2f39;
  --color-border-2: #3a414e;
  --color-border-glow: #4c8dff;

  /* Metin */
  --color-text: #e6e9ef;
  --color-text-sub: #a3abba;
  --color-text-muted: #6f7889;

  /* Vurgu: tek ana renk (mavi) + durum renkleri */
  --color-primary: #4c8dff;
  --color-primary-h: #3a77e0;
  --color-primary-bg: rgba(76, 141, 255, 0.14);
  --color-accent: #4c8dff;
  --color-accent-2: #7aa9ff;

  --color-green: #3fb950;
  --color-yellow: #d9a521;
  --color-red: #f0524f;
  --color-orange: #e8833a;

  /* Eski değişken adları (uyumluluk için) */
  --glass-bg: var(--color-surface);
  --glass-bg-hover: var(--color-surface-2);
  --glass-bg-card: var(--color-surface);
  --glass-border: var(--color-border);
  --glass-border-hover: var(--color-border-glow);
  --gradient-primary: var(--color-primary);

  /* Tipografi */
  --font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', 'Monaco', monospace;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 0.9375rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.75rem;
  --font-size-4xl: 2rem;
  --font-size-5xl: 2.5rem;

  /* Boşluk */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Köşe yuvarlaklığı: küçük ve tutarlı */
  --radius-sm: 3px;
  --radius: 4px;
  --radius-md: 6px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  --radius-2xl: 10px;
  --radius-full: 9999px;

  /* Gölge: yalnızca katman ayrımı için */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 0 2px rgba(76, 141, 255, 0.35);

  --transition-fast: 0.12s ease;
  --transition: 0.18s ease;
  --transition-slow: 0.3s ease;

  --sidebar-w: 240px;
}

/* ---- Sıfırlama ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
}

input,
select,
textarea {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- Yardımcı ---- */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: var(--space-4);
}

.gradient-text {
  color: var(--color-primary);
}

/* ============================================
   DÜĞMELER
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--color-primary-h);
  border-color: var(--color-primary-h);
}

.btn-secondary {
  background: var(--color-surface-2);
  color: var(--color-text);
  border-color: var(--color-border-2);
}

.btn-secondary:hover {
  background: var(--color-surface-3);
  border-color: var(--color-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-sub);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

.btn-danger {
  background: var(--color-red);
  color: #fff;
  border-color: var(--color-red);
}

.btn-danger:hover {
  filter: brightness(1.12);
}

.btn-warning {
  background: var(--color-orange);
  color: #fff;
  border-color: var(--color-orange);
}

.btn-warning:hover {
  filter: brightness(1.1);
}

.btn-lg {
  padding: 0.7rem 1.4rem;
  font-size: var(--font-size-base);
}

.btn-sm {
  padding: 0.3rem 0.65rem;
  font-size: var(--font-size-xs);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-text-sub);
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background: var(--color-surface-3);
  color: var(--color-text);
  border-color: var(--color-primary);
}

/* ============================================
   LANDING PAGE
   ============================================ */
.landing-page {
  overflow-x: hidden;
}

.bg-particles {
  display: none;
}

.particle {
  display: none;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-3) 0;
  background: var(--color-bg-2);
  border-bottom: 1px solid var(--color-border);
}

.navbar.scrolled {
  border-bottom-color: var(--color-border-2);
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-logo {
  font-size: 1.4rem;
}

.nav-title {
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--color-text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-link {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-sub);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-text);
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-16);
  max-width: 1200px;
  margin: 0 auto;
  padding: 110px var(--space-8) var(--space-16);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-2);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  color: var(--color-text-sub);
  margin-bottom: var(--space-5);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.45;
  }
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: var(--space-5);
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-sub);
  line-height: 1.65;
  margin-bottom: var(--space-8);
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

.hero-stats {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.stat-card {
  text-align: left;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  min-width: 110px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: var(--font-size-2xl);
  font-weight: 600;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--color-text-muted);
}

/* Hero görsel */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
}

.bot-avatar {
  font-size: 4.5rem;
  z-index: 2;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--color-border-2);
  animation: rotate linear infinite;
}

.ring-1 {
  width: 180px;
  height: 180px;
  animation-duration: 10s;
}

.ring-2 {
  width: 280px;
  height: 280px;
  animation-duration: 16s;
  border-style: dashed;
}

.ring-3 {
  width: 380px;
  height: 380px;
  animation-duration: 24s;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.orbit-icon {
  position: absolute;
  font-size: 1.5rem;
  animation: counter-rotate linear infinite;
}

.oi-1 {
  top: 5%;
  left: 50%;
  animation-duration: 10s;
}

.oi-2 {
  top: 50%;
  right: 2%;
  animation-duration: 16s;
  animation-direction: reverse;
}

.oi-3 {
  bottom: 10%;
  left: 50%;
  animation-duration: 24s;
}

.oi-4 {
  top: 50%;
  left: 2%;
  animation-duration: 16s;
}

@keyframes counter-rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(-360deg);
  }
}

/* Özellikler */
.features {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-20) var(--space-8);
}

.section-header {
  text-align: left;
  margin-bottom: var(--space-10);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-5);
}

.section-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.section-subtitle {
  font-size: var(--font-size-base);
  color: var(--color-text-sub);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-4);
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color var(--transition);
}

.feature-card:hover {
  border-color: var(--color-primary);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: var(--space-3);
  display: block;
}

.feature-card h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.feature-card p {
  font-size: var(--font-size-sm);
  color: var(--color-text-sub);
  line-height: 1.65;
  margin-bottom: var(--space-4);
}

.feature-tags {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.tag {
  padding: 2px var(--space-2);
  background: var(--color-primary-bg);
  border: 1px solid rgba(76, 141, 255, 0.3);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  color: var(--color-accent-2);
}

/* Komutlar */
.commands {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-20) var(--space-8);
}

.commands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-2);
}

.cmd-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.cmd-card:hover {
  border-color: var(--color-primary);
  background: var(--color-surface-2);
}

.cmd-card code {
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-accent-2);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 1px var(--space-2);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.cmd-card span {
  font-size: var(--font-size-sm);
  color: var(--color-text-sub);
}

/* CTA */
.cta-section {
  position: relative;
  z-index: 1;
  padding: var(--space-16) var(--space-8);
  text-align: center;
  background: var(--color-bg-2);
  border-top: 1px solid var(--color-border);
}

.cta-content h2 {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.cta-content p {
  font-size: var(--font-size-base);
  color: var(--color-text-sub);
  margin-bottom: var(--space-6);
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--color-border);
  padding: var(--space-6) var(--space-8);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

/* ============================================
   PANEL YERLEŞİMİ
   ============================================ */
.panel-page {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  background: var(--color-bg-2);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 50;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-header {
  padding: var(--space-4) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.sidebar-logo {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.sidebar-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.sidebar-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.sidebar-sub {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.sidebar-nav {
  flex: 1;
  padding: var(--space-3) var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-sub);
  transition: background var(--transition-fast), color var(--transition-fast);
  cursor: pointer;
  border-left: 3px solid transparent;
}

.sidebar-link:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

.sidebar-link.active {
  background: var(--color-primary-bg);
  color: var(--color-accent-2);
  border-left-color: var(--color-primary);
  font-weight: 600;
}

.sidebar-link svg {
  flex-shrink: 0;
}

/* WS durumu */
.ws-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
}

.ws-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.ws-dot.connected {
  background: var(--color-green);
}

.ws-dot.disconnected {
  background: var(--color-red);
}

.ws-dot.connecting {
  background: var(--color-yellow);
  animation: pulse 1s infinite;
}

/* Kullanıcı kutusu */
.sidebar-user {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
}

.user-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--color-border-2);
}

.user-status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-green);
  border: 2px solid var(--color-bg-2);
}

.user-info {
  flex: 1;
  overflow: hidden;
}

.user-name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.logout-btn {
  color: var(--color-text-muted);
  padding: var(--space-1);
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.logout-btn:hover {
  color: var(--color-red);
  background: rgba(240, 82, 79, 0.12);
}

/* Ana içerik */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: var(--space-6);
  min-height: 100vh;
  background: var(--color-bg);
}

/* Sayfa başlığı */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-lg);
}

.page-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-text);
}

.page-subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-sub);
  margin-top: var(--space-1);
}

.header-stats {
  display: flex;
  gap: var(--space-6);
}

.header-stat {
  text-align: right;
}

.hs-value {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--color-text);
}

.hs-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* Sekmeler */
.tab-content {
  display: none;
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.tab-content.active {
  display: block;
}

/* ============================================
   SUNUCU KARTI
   ============================================ */
.guilds-section {
  margin-bottom: var(--space-10);
}

.guilds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--space-4);
}

.guild-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
  color: inherit;
}

.guild-card:hover {
  border-color: var(--color-primary);
  background: var(--color-surface-2);
}

.guild-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 1px solid var(--color-border-2);
}

.guild-avatar-placeholder {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
}

.guild-name {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text);
}

.guild-meta {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.guild-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px var(--space-2);
  background: var(--color-primary-bg);
  border: 1px solid rgba(76, 141, 255, 0.3);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  color: var(--color-accent-2);
}

/* ============================================
   İSTATİSTİK WIDGET
   ============================================ */
.section-title-sm {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-3);
}

.stat-widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  transition: border-color var(--transition-fast);
}

.stat-widget:hover {
  border-color: var(--color-border-2);
}

.sw-icon {
  font-size: 1.5rem;
}

.sw-value {
  font-family: var(--font-mono);
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--color-text);
}

.sw-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* ============================================
   MÜZİK PANELİ (eski bileşenler)
   ============================================ */
.now-playing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-5);
}

.np-artwork {
  position: relative;
  flex-shrink: 0;
}

.np-thumbnail {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}

.np-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity var(--transition);
}

.np-artwork:hover .np-play-overlay {
  opacity: 1;
}

.np-play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background var(--transition-fast);
}

.np-play-btn:hover {
  background: var(--color-primary-h);
}

.np-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  color: var(--color-accent-2);
  font-weight: 500;
}

.playing-indicator {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}

.playing-indicator span {
  width: 3px;
  background: var(--color-primary);
  border-radius: 1px;
  animation: music-bar 1s ease-in-out infinite;
}

.playing-indicator span:nth-child(1) {
  height: 8px;
  animation-delay: 0s;
}

.playing-indicator span:nth-child(2) {
  height: 14px;
  animation-delay: 0.15s;
}

.playing-indicator span:nth-child(3) {
  height: 10px;
  animation-delay: 0.3s;
}

.playing-indicator span:nth-child(4) {
  height: 6px;
  animation-delay: 0.45s;
}

@keyframes music-bar {

  0%,
  100% {
    transform: scaleY(0.4);
  }

  50% {
    transform: scaleY(1);
  }
}

.np-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np-artist {
  font-size: var(--font-size-sm);
  color: var(--color-text-sub);
  margin-bottom: var(--space-3);
}

.np-meta {
  display: flex;
  gap: var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--color-text-sub);
  margin-bottom: var(--space-4);
}

.np-duration {
  font-family: var(--font-mono);
  font-weight: 500;
}

/* Müzik geçmişi / trendler */
.music-trends-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-top: var(--space-5);
}

.trends-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.history-tabs {
  display: flex;
  gap: 2px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 3px;
  border-radius: var(--radius-md);
}

.history-tab-btn {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius);
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-text-sub);
  transition: all var(--transition-fast);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.history-tab-btn:hover {
  color: var(--color-text);
}

.history-tab-btn.active {
  background: var(--color-primary);
  color: #fff;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.history-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--color-bg-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.history-item:hover {
  background: var(--color-surface-2);
  border-color: var(--color-border-2);
}

.history-rank {
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-primary);
  min-width: 24px;
  text-align: center;
}

.history-thumb {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-surface-2);
}

.history-info {
  flex: 1;
  overflow: hidden;
}

.history-title {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-meta {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  display: flex;
  gap: var(--space-3);
}

.quick-play-btn {
  background: var(--color-primary-bg);
  color: var(--color-accent-2);
  border: 1px solid rgba(76, 141, 255, 0.35);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius);
  font-size: var(--font-size-xs);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  transition: all var(--transition-fast);
}

.quick-play-btn:hover {
  background: var(--color-primary);
  color: #fff;
}

.np-controls {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.control-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-2);
  color: var(--color-text-sub);
  transition: all var(--transition-fast);
}

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

.control-btn.danger:hover {
  background: var(--color-red);
  border-color: var(--color-red);
}

/* Ses kaydırıcı */
.volume-control {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-sub);
}

.volume-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  --val: 70%;
  background: linear-gradient(to right, var(--color-primary) var(--val), var(--color-surface-3) var(--val));
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--color-primary);
  cursor: pointer;
}

.volume-value {
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  color: var(--color-text-sub);
  min-width: 36px;
  text-align: right;
}

/* Kuyruk */
.queue-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.queue-header {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.queue-header h3 {
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--color-text);
}

.queue-count {
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.queue-list {
  padding: var(--space-3);
  max-height: 400px;
  overflow-y: auto;
}

.queue-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.queue-item:hover {
  background: var(--color-surface-2);
}

.qi-index {
  width: 28px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.qi-info {
  flex: 1;
  overflow: hidden;
}

.qi-name {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qi-meta {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.qi-duration {
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  color: var(--color-text-sub);
  flex-shrink: 0;
}

.qi-remove {
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
  flex-shrink: 0;
  opacity: 0;
}

.queue-item:hover .qi-remove,
.qi-remove:focus-visible {
  opacity: 1;
}

.qi-remove:hover {
  background: rgba(240, 82, 79, 0.15);
  color: var(--color-red);
}

/* ============================================
   SES KANALI PANELİ
   ============================================ */
.voice-channels-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.voice-channel-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.vc-header {
  padding: var(--space-3) var(--space-5);
  background: var(--color-surface-2);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.vc-icon {
  font-size: 1.1rem;
}

.vc-name {
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--color-text);
  flex: 1;
}

.vc-count {
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.vc-members {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.vc-empty {
  padding: var(--space-5) 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.member-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.member-row:hover {
  background: var(--color-surface-2);
}

.member-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--color-border-2);
  flex-shrink: 0;
}

.member-info {
  flex: 1;
  overflow: hidden;
}

.member-name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text);
}

.member-status {
  display: flex;
  gap: var(--space-2);
  margin-top: 2px;
  flex-wrap: wrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
}

.status-muted {
  background: rgba(240, 82, 79, 0.15);
  color: var(--color-red);
}

.status-deaf {
  background: rgba(232, 131, 58, 0.15);
  color: var(--color-orange);
}

.status-stream {
  background: var(--color-primary-bg);
  color: var(--color-accent-2);
}

.member-actions {
  display: flex;
  gap: var(--space-2);
}

.action-btn {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius);
  font-size: var(--font-size-xs);
  font-weight: 600;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.action-kick {
  background: rgba(240, 82, 79, 0.12);
  color: var(--color-red);
  border-color: rgba(240, 82, 79, 0.3);
}

.action-kick:hover {
  background: var(--color-red);
  color: #fff;
}

.action-timeout {
  background: rgba(232, 131, 58, 0.12);
  color: var(--color-orange);
  border-color: rgba(232, 131, 58, 0.3);
}

.action-timeout:hover {
  background: var(--color-orange);
  color: #fff;
}

/* ============================================
   KART
   ============================================ */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card-header {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h3 {
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--color-text);
}

.card-body {
  padding: var(--space-5);
}

/* ============================================
   FORM
   ============================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text);
}

.form-hint {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.form-input {
  padding: 0.5rem var(--space-3);
  background: var(--color-bg);
  border: 1px solid var(--color-border-2);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}

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

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(76, 141, 255, 0.2);
}

.form-input option {
  background: var(--color-bg-2);
  color: var(--color-text);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: var(--space-4);
  align-items: end;
}

.form-group-btn {
  padding-bottom: 0;
}

.form-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--color-surface-3);
  outline: none;
  cursor: pointer;
}

.form-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid #fff;
  cursor: pointer;
}

.input-with-value {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.range-display {
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  color: var(--color-text-sub);
  min-width: 40px;
  text-align: right;
}

/* ============================================
   ROL TABLOSU
   ============================================ */
.roles-table-wrap {
  overflow-x: auto;
}

.roles-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.roles-table th {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-text-sub);
  border-bottom: 1px solid var(--color-border-2);
  background: var(--color-surface-2);
}

.roles-table td {
  padding: var(--space-3) var(--space-4);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.roles-table tr:last-child td {
  border-bottom: none;
}

.roles-table tr:hover td {
  background: var(--color-surface-2);
}

.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px var(--space-2);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  font-weight: 600;
}

.role-badge.ADMIN {
  background: rgba(240, 82, 79, 0.15);
  color: var(--color-red);
}

.role-badge.MODERATOR {
  background: var(--color-primary-bg);
  color: var(--color-accent-2);
}

.role-badge.MUSIC_MANAGER {
  background: rgba(63, 185, 80, 0.15);
  color: var(--color-green);
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.modal {
  background: var(--color-surface);
  border: 1px solid var(--color-border-2);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-2);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--color-text);
}

.modal-close {
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-sub);
  font-size: var(--font-size-lg);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--color-surface-3);
  color: var(--color-text);
}

.modal-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.modal-footer {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
}

/* ============================================
   TOAST
   ============================================ */
.toast-container {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-5);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-2);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: var(--font-size-sm);
  color: var(--color-text);
  min-width: 280px;
  max-width: 400px;
  animation: slide-in-right 0.25s ease;
}

.toast.success {
  border-left: 4px solid var(--color-green);
}

.toast.error {
  border-left: 4px solid var(--color-red);
}

.toast.warning {
  border-left: 4px solid var(--color-yellow);
}

.toast.info {
  border-left: 4px solid var(--color-primary);
}

@keyframes slide-in-right {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

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

@keyframes slide-out-right {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.toast.removing {
  animation: slide-out-right 0.25s ease forwards;
}

/* ============================================
   BOŞ / YÜKLEME
   ============================================ */
.loading-state,
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-8);
  color: var(--color-text-muted);
  gap: var(--space-3);
}

.empty-icon {
  font-size: 2.5rem;
  opacity: 0.5;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--color-border-2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-2);
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--color-border-2);
}

/* ============================================
   RESPONSIVE (genel)
   ============================================ */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 100px;
  }

  .hero-visual {
    display: none;
  }

  .hero-actions,
  .hero-stats {
    justify-content: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .main-content {
    padding: var(--space-5);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .now-playing-card {
    grid-template-columns: 1fr;
  }

  .np-thumbnail {
    width: 100%;
    height: 200px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform var(--transition);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .footer-content {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
}

/* ============================================
   KUMARHANE & EKONOMİ
   ============================================ */
.casino-user-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.balance-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  background: rgba(217, 165, 33, 0.12);
  border: 1px solid rgba(217, 165, 33, 0.45);
  border-radius: var(--radius-md);
}

.coin-icon {
  font-size: 1.1rem;
}

.balance-amount {
  font-family: var(--font-mono);
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: #f0c040;
}

.currency-label {
  font-size: var(--font-size-xs);
  color: #b88a14;
  font-weight: 600;
}

.casino-subnav {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
}

.casino-subnav-btn {
  padding: 10px 18px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--color-text-sub);
  font-weight: 600;
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
  margin-bottom: -1px;
}

.casino-subnav-btn:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}

.casino-subnav-btn.active {
  color: var(--color-accent-2);
  border-bottom-color: var(--color-primary);
  background: var(--color-primary-bg);
}

.casino-tab-content {
  display: block;
}

.casino-tab-content.hidden {
  display: none !important;
}

/* BLACKJACK MASASI */
.blackjack-table {
  background: #0d3b2c !important;
  border: 1px solid #1f6b4f !important;
  border-radius: var(--radius-xl) !important;
  padding: 28px !important;
  position: relative;
  min-height: 500px;
}

.felt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-5);
}

.felt-title {
  font-family: var(--font-mono);
  font-size: var(--font-size-md);
  font-weight: 600;
  color: #b7f0d6;
}

.payout-badge {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(183, 240, 214, 0.35);
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  color: #6fe0aa;
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  font-weight: 600;
}

.hand-section {
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

.hand-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}

.hand-title {
  font-weight: 600;
  color: var(--color-text);
  font-size: var(--font-size-md);
}

.hand-score-badge {
  background: #0b1220;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 2px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: #f0c040;
}

.cards-container {
  display: flex;
  gap: var(--space-3);
  min-height: 110px;
  align-items: center;
  flex-wrap: wrap;
}

.card-placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--font-size-sm);
}

/* Oyun kartı */
.playing-card {
  width: 75px;
  height: 105px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px;
  font-family: var(--font-mono);
  user-select: none;
  animation: card-pop 0.25s ease;
  position: relative;
}

@keyframes card-pop {
  0% {
    transform: scale(0.6) translateY(-16px);
    opacity: 0;
  }

  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.playing-card.red {
  color: #d12a2a;
}

.playing-card.black {
  color: #0f172a;
}

.playing-card.card-back {
  background: #25306b;
  border: 2px solid #4c8dff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.playing-card.card-back::after {
  content: '🃏';
  font-size: 2rem;
}

.card-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.card-value {
  font-size: 1.1rem;
  font-weight: 700;
}

.card-suit {
  font-size: 0.9rem;
}

.card-center-suit {
  align-self: center;
  font-size: 1.6rem;
}

.card-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
  transform: rotate(180deg);
}

.bj-status-banner {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--color-border-2);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-5);
  text-align: center;
  margin-bottom: var(--space-4);
  animation: fadeIn 0.25s ease;
}

.bj-status-msg {
  font-size: var(--font-size-md);
  font-weight: 600;
  color: #fff;
}

.bj-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  background: rgba(0, 0, 0, 0.35);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.bet-input-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.bet-label {
  font-weight: 600;
  color: var(--color-text);
  font-size: var(--font-size-sm);
}

.bet-input {
  width: 110px !important;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 600;
  color: #f0c040 !important;
}

.chip-buttons {
  display: flex;
  gap: var(--space-2);
}

.chip-btn {
  padding: 4px 10px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: var(--color-surface-3);
  color: #fff;
  transition: filter var(--transition-fast);
}

.chip-btn:hover {
  filter: brightness(1.2);
}

.chip-10 {
  background: #2b6cd9;
  border-color: #5b95ee;
}

.chip-50 {
  background: #1f9d68;
  border-color: #46c590;
}

.chip-100 {
  background: #6a50d0;
  border-color: #8f7ae8;
}

.chip-500 {
  background: #c23a78;
  border-color: #e0679c;
}

.chip-max {
  background: #d9a521;
  color: #000;
  border-color: #f0c85a;
}

.action-buttons-group {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* RULET */
.roulette-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--space-5);
}

@media (max-width: 1024px) {
  .roulette-layout {
    grid-template-columns: 1fr;
  }
}

.roulette-wheel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  text-align: center;
}

.wheel-container-outer {
  position: relative;
  width: 240px;
  height: 240px;
  margin-bottom: var(--space-4);
}

.roulette-pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  color: var(--color-red);
  z-index: 10;
}

.roulette-wheel-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(#059669 0deg 9.7deg,
      #dc2626 9.7deg 19.4deg, #0f172a 19.4deg 29.1deg,
      #dc2626 29.1deg 38.8deg, #0f172a 38.8deg 48.5deg,
      #dc2626 48.5deg 58.2deg, #0f172a 58.2deg 67.9deg,
      #dc2626 67.9deg 77.6deg, #0f172a 77.6deg 87.3deg,
      #dc2626 87.3deg 97deg, #0f172a 97deg 106.7deg,
      #dc2626 106.7deg 116.4deg, #0f172a 116.4deg 126.1deg,
      #dc2626 126.1deg 135.8deg, #0f172a 135.8deg 145.5deg,
      #dc2626 145.5deg 155.2deg, #0f172a 155.2deg 164.9deg,
      #dc2626 164.9deg 174.6deg, #0f172a 174.6deg 184.3deg,
      #dc2626 184.3deg 194deg, #0f172a 194deg 203.7deg,
      #dc2626 203.7deg 213.4deg, #0f172a 213.4deg 223.1deg,
      #dc2626 223.1deg 232.8deg, #0f172a 232.8deg 242.5deg,
      #dc2626 242.5deg 252.2deg, #0f172a 252.2deg 261.9deg,
      #dc2626 261.9deg 271.6deg, #0f172a 271.6deg 281.3deg,
      #dc2626 281.3deg 291deg, #0f172a 291deg 300.7deg,
      #dc2626 300.7deg 310.4deg, #0f172a 310.4deg 320.1deg,
      #dc2626 320.1deg 329.8deg, #0f172a 329.8deg 339.5deg,
      #dc2626 339.5deg 349.2deg, #0f172a 349.2deg 360deg);
  border: 8px solid var(--color-surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 4s cubic-bezier(0.15, 0.9, 0.2, 1);
}

.roulette-center-cap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #cbd5e1;
  border: 3px solid var(--color-bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.spin-result-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.result-number-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  border: 3px solid #fff;
}

.result-number-badge.number-red {
  background: #dc2626;
  border-color: #f87171;
}

.result-number-badge.number-black {
  background: #0f172a;
  border-color: #475569;
}

.result-number-badge.number-green {
  background: #059669;
  border-color: #34d399;
}

.result-number-badge.number-none {
  background: var(--color-surface-3);
  border-color: var(--color-border-2);
}

.board-section-title {
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.selected-bet-info {
  background: var(--color-primary-bg);
  border: 1px solid rgba(76, 141, 255, 0.35);
  padding: 8px 14px;
  border-radius: var(--radius);
  margin-bottom: var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

.highlight-text {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--color-accent-2);
}

.board-grid-outside,
.board-grid-dozens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.roulette-cell {
  padding: 10px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: #fff;
  text-align: center;
}

.roulette-cell:hover {
  border-color: #fff;
  filter: brightness(1.15);
}

.roulette-cell.active {
  box-shadow: 0 0 0 2px #f0c040;
  border-color: #f0c040 !important;
}

.cell-red {
  background: #991b1b;
}

.cell-black {
  background: #1e293b;
}

.cell-even {
  background: #24306b;
}

.cell-odd {
  background: #2f3a82;
}

.cell-dozen {
  background: #0f6a4d;
}

.roulette-numbers-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  margin-bottom: var(--space-4);
}

@media (max-width: 768px) {
  .roulette-numbers-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.num-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 3px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: filter 0.12s;
}

.num-cell.red {
  background: #dc2626;
  color: #fff;
}

.num-cell.black {
  background: #0f172a;
  color: #fff;
}

.num-cell.green {
  background: #059669;
  color: #fff;
  grid-column: span 12;
  aspect-ratio: auto;
  padding: 8px;
}

.num-cell:hover {
  filter: brightness(1.25);
  border-color: #fff;
}

.num-cell.active {
  border: 2px solid #f0c040 !important;
  box-shadow: 0 0 0 2px rgba(240, 192, 64, 0.4);
}

.roulette-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  background: var(--color-surface-2);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

/* ÇARK */
.wheel-layout {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: var(--space-5);
}

@media (max-width: 900px) {
  .wheel-layout {
    grid-template-columns: 1fr;
  }
}

.wheel-canvas-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
}

.canvas-wheel-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
}

#wheel-canvas {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50%;
}

.wheel-pointer-top {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: #f0c040;
  z-index: 20;
}

.wheel-multipliers-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  padding: 6px 10px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  font-weight: 600;
}

.legend-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

/* LİDERLİK TABLOSU */
.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.lb-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.lb-rank {
  font-family: var(--font-mono);
  font-weight: 600;
  width: 30px;
  color: #f0c040;
}

.lb-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: 1;
}

.lb-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.lb-username {
  font-weight: 600;
  color: var(--color-text);
  font-size: var(--font-size-sm);
}

.lb-balance {
  font-family: var(--font-mono);
  font-weight: 600;
  color: #f0c040;
}

/* ============================================
   KUMARHANE ANA IZGARA & ÇEVRİMİÇİ KULLANICILAR
   ============================================ */
.casino-main-grid {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 340px);
  gap: var(--space-6);
  align-items: start;
  position: relative;
  width: 100%;
}

@media (max-width: 1280px) {
  .casino-main-grid {
    grid-template-columns: 1fr;
  }
}

.casino-sidebar-column {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: var(--space-3);
  background: var(--color-bg-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-sizing: border-box;
}

.casino-sidebar-column .card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.casino-sidebar-column::-webkit-scrollbar {
  width: 5px;
}

.casino-sidebar-column::-webkit-scrollbar-track {
  background: transparent;
}

.casino-sidebar-column::-webkit-scrollbar-thumb {
  background: var(--color-surface-3);
  border-radius: 4px;
}

.online-user-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-2);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.online-user-item:hover {
  background: var(--color-primary-bg);
  border-color: var(--color-primary);
}

.online-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.online-user-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.online-user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

.online-user-status {
  font-size: 0.75rem;
  color: var(--color-green);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================
   CRASH
   ============================================ */
.crash-game-container {
  padding: var(--space-5) !important;
  background: var(--color-bg-2) !important;
  border: 1px solid var(--color-border) !important;
}

.crash-history-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.crash-history-chip {
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-2);
  color: var(--color-text);
}

.crash-history-chip.low {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.4);
}

.crash-history-chip.medium {
  color: #6aa4ff;
  border-color: rgba(106, 164, 255, 0.4);
}

.crash-history-chip.high {
  color: #f0c040;
  border-color: rgba(240, 192, 64, 0.5);
}

.crash-display-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

@media (max-width: 850px) {
  .crash-display-layout {
    grid-template-columns: 1fr;
  }
}

.crash-chart-area {
  position: relative;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

#crash-canvas {
  width: 100% !important;
  height: 380px !important;
}

.crash-multiplier-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.crash-multiplier-text {
  font-family: var(--font-mono);
  font-size: 4rem;
  font-weight: 600;
  color: var(--color-primary);
}

.crash-multiplier-text.crashed {
  color: var(--color-red) !important;
  animation: shake 0.4s ease;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-8px);
  }

  75% {
    transform: translateX(8px);
  }
}

.crash-status-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-sub);
}

.crash-live-bets-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
}

.live-bets-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}

.crash-players-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
}

.crash-bet-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  border-radius: var(--radius);
  background: var(--color-surface-2);
  font-size: 0.8rem;
}

.crash-bet-item.cashed-out {
  border: 1px solid rgba(63, 185, 80, 0.5);
  background: rgba(63, 185, 80, 0.1);
}

.crash-bet-user {
  display: flex;
  align-items: center;
  gap: 6px;
}

.crash-bet-user img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.crash-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  background: var(--color-surface-2);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.crash-action-wrap {
  display: flex;
  gap: var(--space-3);
}

/* 3 RENK ÇARK */
.wheel-color-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.wheel-color-btn {
  padding: var(--space-3);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition-fast), filter var(--transition-fast);
  color: #fff;
  text-align: center;
}

.wheel-color-btn:hover {
  filter: brightness(1.15);
}

.wheel-color-btn.color-red {
  background: #dc2626;
}

.wheel-color-btn.color-blue {
  background: #2563eb;
}

.wheel-color-btn.color-gold {
  background: #ca8a04;
  color: #fff;
}

/* ============================================
   GRAND RULET
   ============================================ */
.grand-roulette-container {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: var(--space-5);
}

@media (max-width: 1024px) {
  .grand-roulette-container {
    grid-template-columns: 1fr;
  }
}

.grand-wheel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-6) !important;
  background: var(--color-bg-2) !important;
  border: 1px solid #8a6a14 !important;
}

.grand-outer {
  width: 340px !important;
  height: 340px !important;
  margin-bottom: var(--space-5) !important;
}

.grand-pointer {
  font-size: 2.2rem !important;
  top: -20px !important;
  color: #f0c040 !important;
}

.grand-disc {
  border: 12px solid #8a6a14 !important;
}

.grand-cap {
  width: 90px !important;
  height: 90px !important;
  font-size: 2.2rem !important;
  border: 4px solid #f0c040 !important;
}

.grand-result-display {
  flex-direction: row !important;
  gap: var(--space-4) !important;
}

.grand-badge {
  width: 72px !important;
  height: 72px !important;
  font-size: 2rem !important;
  border-width: 4px !important;
}

.grand-result-text {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
}

.grand-board-card {
  padding: var(--space-6) !important;
  background: #0d3b2c !important;
  border: 1px solid #1f6b4f !important;
}

.grand-board-title {
  font-family: var(--font-mono) !important;
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  color: #b7f0d6 !important;
  margin-bottom: var(--space-5) !important;
}

.grand-selected-info {
  font-size: 1rem !important;
  padding: 10px 16px !important;
  margin-bottom: var(--space-5) !important;
}

.grand-outside-grid,
.grand-dozens-grid {
  gap: var(--space-3) !important;
  margin-bottom: var(--space-4) !important;
}

.grand-cell {
  padding: 12px 16px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  border-width: 2px !important;
}

.grand-num-grid {
  gap: 6px !important;
  margin-bottom: var(--space-5) !important;
}

.grand-num-grid .num-cell {
  height: 46px !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
}

.grand-controls {
  padding: var(--space-5) var(--space-6) !important;
}

.grand-spin-btn {
  font-size: 1.1rem !important;
  padding: 12px 28px !important;
  font-weight: 600 !important;
}

/* ============================================
   MERKEZLİ BLACKJACK & PVP
   ============================================ */
.centered-cards {
  justify-content: center !important;
}

.centered-hand .hand-header {
  justify-content: center !important;
  gap: var(--space-4);
}

.centered-controls {
  justify-content: center !important;
}

.pvp-turn-badge {
  background: var(--color-orange);
  color: #fff;
  padding: 6px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  margin: 12px auto;
  width: fit-content;
  animation: pulse 1.5s infinite;
}

.pvp-players-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

@media (max-width: 768px) {
  .pvp-players-row {
    grid-template-columns: 1fr;
  }
}

.pvp-player-card {
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
  transition: border-color var(--transition), background var(--transition);
}

.pvp-player-card.active-turn {
  border-color: var(--color-orange) !important;
  background: rgba(232, 131, 58, 0.1) !important;
}

.pvp-player-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.pvp-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
}

.pvp-player-name {
  font-weight: 600;
  color: #fff;
  font-size: 1rem;
}

.pvp-player-msg {
  margin-top: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #f0c040;
  min-height: 20px;
}

/* CANLI RULET AKIŞI */
.roulette-live-feed-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
}

.roulette-live-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  animation: fadeIn 0.25s ease;
}

.roulette-live-item.win {
  border-left-color: var(--color-green);
  background: rgba(63, 185, 80, 0.08);
}

.roulette-live-item.loss {
  border-left-color: var(--color-red);
  background: rgba(240, 82, 79, 0.06);
}

.roulette-live-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--color-text);
}

.roulette-live-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

/* ============================================
   DUYURU & MESAJ PANELİ
   ============================================ */
.announcement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: start;
}

@media (max-width: 1024px) {
  .announcement-grid {
    grid-template-columns: 1fr;
  }
}

.message-type-toggle {
  display: flex;
  background: var(--color-bg);
  padding: 3px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.msg-type-btn {
  padding: 5px 12px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-sub);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.msg-type-btn:hover {
  color: var(--color-text);
}

.msg-type-btn.active {
  background: var(--color-primary);
  color: #fff;
}

.color-presets {
  display: flex;
  gap: 6px;
  align-items: center;
}

.color-chip {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.12s;
}

.color-chip:hover {
  border-color: #fff;
}

.md-toolbar {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  background: var(--color-surface-2);
  padding: 6px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border: 1px solid var(--color-border-2);
  border-bottom: none;
}

.md-tool-btn {
  padding: 3px 10px;
  background: var(--color-surface-3);
  border: 1px solid var(--color-border-2);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.md-tool-btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

#msg-content-input {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

/* DISCORD ÖNİZLEME (Discord görünümünü taklit eder, bilerek ayrı renkler) */
.discord-preview-box {
  background: #313338;
  border: 1px solid #1e1f22;
  border-radius: var(--radius-lg);
  padding: 16px;
  font-family: 'Inter', var(--font-family);
  color: #dbdee1;
}

.discord-msg-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.discord-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.discord-user-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.discord-bot-name {
  font-weight: 700;
  color: #f2f3f5;
  font-size: 0.95rem;
}

.discord-bot-badge {
  background: #5865f2;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
}

.discord-timestamp {
  font-size: 0.75rem;
  color: #949ba4;
  margin-left: 4px;
}

.discord-msg-body {
  font-size: 0.95rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
  color: #dbdee1;
}

.discord-placeholder-text {
  color: #80848e;
  font-style: italic;
}

.discord-embed-card {
  background: #2b2d31;
  border-radius: 4px;
  margin-top: 8px;
  display: flex;
  position: relative;
  overflow: hidden;
  max-width: 520px;
}

.discord-embed-color-bar {
  width: 4px;
  background: #5865f2;
  flex-shrink: 0;
}

.discord-embed-content {
  padding: 12px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.discord-embed-author {
  font-size: 0.8rem;
  font-weight: 700;
  color: #f2f3f5;
}

.discord-embed-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.discord-embed-description {
  font-size: 0.88rem;
  line-height: 1.35;
  color: #dbdee1;
  white-space: pre-wrap;
  word-break: break-word;
}

.discord-embed-img {
  max-width: 100%;
  border-radius: 6px;
  margin-top: 8px;
  max-height: 260px;
  object-fit: cover;
}

.discord-embed-thumb {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
}

.discord-embed-footer {
  font-size: 0.72rem;
  color: #949ba4;
  margin-top: 4px;
}

.discord-msg-body strong,
.discord-embed-description strong {
  color: #fff;
  font-weight: 700;
}

.discord-msg-body em,
.discord-embed-description em {
  font-style: italic;
}

.discord-msg-body code,
.discord-embed-description code {
  background: #1e1f22;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #e0e0e0;
}

.discord-msg-body pre,
.discord-embed-description pre {
  background: #1e1f22;
  padding: 8px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #e0e0e0;
  overflow-x: auto;
  margin: 6px 0;
  border: 1px solid #383a40;
}

.discord-msg-body blockquote,
.discord-embed-description blockquote {
  border-left: 3px solid #4e5058;
  padding-left: 10px;
  margin: 4px 0;
  color: #b5bac1;
}

.discord-msg-body h1,
.discord-embed-description h1 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 4px 0;
}

.discord-msg-body h2,
.discord-embed-description h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 4px 0;
}

/* ============================================
   ECHO BEATS — Müzik Kontrol Paneli (3 sütun)
   ============================================ */
:root {
  --eb-bg: var(--color-bg);
  --eb-panel: var(--color-bg-2);
  --eb-panel-2: var(--color-surface-2);
  --eb-border: var(--color-border);
  --eb-accent: var(--color-primary);
  --eb-accent-2: var(--color-accent-2);
  --eb-green: var(--color-green);
  --eb-red: var(--color-red);
  --eb-text: var(--color-text);
  --eb-text-muted: var(--color-text-muted);
  --eb-text-sub: var(--color-text-sub);
}

/* ============================================
   MÜZİK PANEL — Yeni Dikey Layout
   ============================================ */

/* Ana wrapper: dikey flex layout */
.music-panel-wrap {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 60px);
  overflow: hidden;
  background: var(--eb-bg);
}

/* === ÜST: MÜZİK KÜTÜPHANESİ === */
.music-library-section {
  flex-shrink: 0;
  border-bottom: 1px solid var(--eb-border);
  background: rgba(12, 14, 23, 0.5);
  padding: 14px 16px 10px;
}

.music-lib-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.music-lib-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.music-lib-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.music-lib-filters {
  display: flex;
  gap: 6px;
}

.lib-filter-btn {
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--eb-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--eb-text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.lib-filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.lib-filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}

.music-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Müzik Grid: kare kartlar */
.music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  max-height: 220px;
  overflow-y: auto;
  padding: 2px;
}

.music-grid::-webkit-scrollbar {
  width: 4px;
}

.music-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.music-grid-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--eb-text-muted);
  font-size: 0.85rem;
  padding: 20px;
}

/* Kare Müzik Kartı */
.music-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--eb-border);
  background: var(--color-surface-2);
  transition: transform 0.2s, box-shadow 0.2s;
  group: true;
}

.music-card:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  border-color: var(--color-primary);
  z-index: 2;
}

.music-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.music-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(168,85,247,0.2));
}

.music-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 6px;
  opacity: 0;
  transition: opacity 0.2s;
}

.music-card:hover .music-card-overlay {
  opacity: 1;
}

.music-card-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.music-card-meta {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

.music-card-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(99,102,241,0.5);
}

.music-card:hover .music-card-play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.music-card-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0,0,0,0.7);
  color: #facc15;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
}

/* === ORTA: Now Playing + Ses Kanalı === */
.music-mid-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--eb-border);
}

/* === ALT: KUYRUK === */
.music-queue-section {
  flex-shrink: 0;
  height: 200px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--eb-border);
  background: rgba(12, 14, 23, 0.35);
}

.music-queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  border-bottom: 1px solid var(--eb-border);
  background: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.music-queue-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

/* Bottom queue: horizontal scrollable */
.eb-queue-list--bottom {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  padding: 8px 12px;
  min-height: 0;
}

.eb-queue-list--bottom::-webkit-scrollbar {
  height: 4px;
}

.eb-queue-list--bottom::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.eb-queue-list--bottom .eb-empty {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  color: var(--eb-text-muted);
  font-size: 0.8rem;
}

/* Queue items horizontal */
.eb-queue-list--bottom .queue-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 100px;
  max-width: 110px;
  flex-shrink: 0;
  padding: 6px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  margin-right: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  position: relative;
}

.eb-queue-list--bottom .queue-item:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
}

.eb-queue-list--bottom .qi-thumb {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--color-surface-2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.eb-queue-list--bottom .qi-info {
  width: 100%;
  text-align: center;
}

.eb-queue-list--bottom .qi-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--eb-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 98px;
}

.eb-queue-list--bottom .qi-meta {
  display: none;
}

.eb-queue-list--bottom .qi-duration {
  font-size: 0.65rem;
  color: var(--eb-text-sub);
}

.eb-queue-list--bottom .qi-index {
  position: absolute;
  top: 4px;
  left: 5px;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(0,0,0,0.6);
  padding: 1px 4px;
  border-radius: 3px;
}

.eb-queue-list--bottom .qi-remove {
  position: absolute;
  top: 3px;
  right: 4px;
  background: rgba(239, 68, 68, 0.15);
  border: none;
  border-radius: 3px;
  color: #ef4444;
  cursor: pointer;
  padding: 2px;
  opacity: 0;
  transition: opacity 0.15s;
  display: flex;
  align-items: center;
}

.eb-queue-list--bottom .queue-item:hover .qi-remove {
  opacity: 1;
}

.eb-queue-list--bottom .qi-playing-badge {
  font-size: 0.6rem;
  background: var(--eb-green);
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
}

/* Old eb-layout kept for compatibility - now unused but not breaking */
.eb-layout {
  display: grid;
  grid-template-columns: 260px 1fr 280px;
  gap: 0;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  background: var(--eb-bg);
}



.eb-left,
.eb-center,
.eb-right {
  display: flex;
  flex-direction: column;
  background: var(--eb-panel);
  overflow: hidden;
  min-height: 0;
}

.eb-left {
  border-right: 1px solid var(--eb-border);
  overflow-y: auto;
}

.eb-center {
  border-right: 1px solid var(--eb-border);
  background: var(--eb-bg);
}

.eb-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--eb-border);
  background: var(--color-surface);
  flex-shrink: 0;
}

.eb-panel-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--eb-text);
}

.eb-panel-actions {
  display: flex;
  gap: 4px;
}

.eb-icon-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-2);
  border: 1px solid var(--eb-border);
  border-radius: var(--radius);
  color: var(--eb-text-sub);
  cursor: pointer;
  transition: all 0.12s;
}

.eb-icon-btn:hover {
  background: var(--eb-accent);
  color: #fff;
  border-color: var(--eb-accent);
}

/* Sol panel: çalan şarkı */
.eb-artwork-wrap {
  position: relative;
  margin: 14px 16px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--color-surface-2);
  border: 1px solid var(--eb-border);
  flex-shrink: 0;
}

.eb-artwork {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eb-artwork-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 18, 22, 0.85) 0%, transparent 45%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10px;
}

.eb-playing-bars {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 22px;
}

.eb-playing-bars span {
  display: block;
  width: 3px;
  border-radius: 1px;
  background: var(--eb-accent-2);
  animation: eb-bar 0.8s ease-in-out infinite;
  transform-origin: bottom;
}

.eb-playing-bars span:nth-child(1) {
  height: 60%;
  animation-delay: 0s;
}

.eb-playing-bars span:nth-child(2) {
  height: 100%;
  animation-delay: 0.15s;
}

.eb-playing-bars span:nth-child(3) {
  height: 70%;
  animation-delay: 0.3s;
}

.eb-playing-bars span:nth-child(4) {
  height: 90%;
  animation-delay: 0.1s;
}

.eb-playing-bars span:nth-child(5) {
  height: 50%;
  animation-delay: 0.25s;
}

@keyframes eb-bar {

  0%,
  100% {
    transform: scaleY(0.4);
  }

  50% {
    transform: scaleY(1);
  }
}

.eb-song-info {
  padding: 12px 16px 4px;
  text-align: center;
}

.eb-song-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--eb-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eb-song-artist {
  font-size: 0.8rem;
  color: var(--eb-text-sub);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eb-progress-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  flex-shrink: 0;
}

.eb-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--eb-text-sub);
  min-width: 34px;
}

.eb-progress-bar {
  flex: 1;
  height: 4px;
  background: var(--color-surface-3);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
}

.eb-progress-fill {
  height: 100%;
  background: var(--eb-accent);
  border-radius: 2px;
  transition: width 1s linear;
}

.eb-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 16px;
  flex-shrink: 0;
}

.eb-ctrl-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--eb-text-sub);
  cursor: pointer;
  transition: all 0.12s;
}

.eb-ctrl-btn:hover {
  color: var(--eb-text);
  background: var(--color-surface-3);
}

.eb-ctrl-play {
  width: 44px;
  height: 44px;
  background: var(--eb-accent) !important;
  color: #fff !important;
  border-radius: 50%;
}

.eb-ctrl-play:hover {
  filter: brightness(1.15);
}

.eb-ctrl-stop {
  color: var(--color-red) !important;
}

.eb-ctrl-stop:hover {
  background: rgba(240, 82, 79, 0.15) !important;
}

.eb-volume-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  flex-shrink: 0;
}

.eb-vol-label {
  font-size: 0.75rem;
  color: var(--eb-text-sub);
  min-width: 42px;
}

.eb-vol-track {
  flex: 1;
}

.eb-vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--color-surface-3);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.eb-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--eb-accent-2);
  cursor: pointer;
}

.eb-status-row {
  display: flex;
  justify-content: space-between;
  padding: 2px 16px;
  flex-shrink: 0;
}

.eb-settings-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 0.8rem;
  color: var(--eb-text-sub);
  background: transparent;
  border: none;
  border-top: 1px solid var(--eb-border);
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: color 0.12s, background 0.12s;
  margin-top: auto;
}

.eb-settings-row:hover {
  color: var(--eb-text);
  background: var(--color-surface-2);
}

/* Orta panel: arama + kuyruk */
.eb-search-wrap {
  position: relative;
  margin: 14px 16px 0;
  flex-shrink: 0;
}

.eb-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--eb-text-muted);
  pointer-events: none;
}

.eb-search-input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  background: var(--color-bg-2);
  border: 1px solid var(--color-border-2);
  border-radius: var(--radius-md);
  color: var(--eb-text);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
  font-family: var(--font-family);
}

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

.eb-search-input:focus {
  border-color: var(--eb-accent);
  box-shadow: 0 0 0 3px rgba(76, 141, 255, 0.2);
}

.eb-queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 6px;
  flex-shrink: 0;
}

.eb-queue-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--eb-text);
}

.eb-queue-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--eb-text-sub);
}

.eb-add-song-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--eb-accent);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  cursor: pointer;
  transition: filter 0.12s;
}

.eb-add-song-btn:hover {
  filter: brightness(1.15);
}

.eb-queue-list {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding: 4px 8px;
}

.eb-queue-list .queue-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: var(--radius-md);
  transition: background 0.12s;
  cursor: pointer;
}

.eb-queue-list .queue-item:hover {
  background: var(--color-surface-2);
}

.eb-queue-list .qi-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--eb-text-muted);
  min-width: 20px;
  text-align: center;
}

.eb-queue-list .qi-thumb {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--color-surface-2);
  flex-shrink: 0;
}

.eb-queue-list .qi-info {
  flex: 1;
  min-width: 0;
}

.eb-queue-list .qi-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--eb-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eb-queue-list .qi-meta {
  font-size: 0.74rem;
  color: var(--eb-text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eb-queue-list .qi-duration {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--eb-text-sub);
  flex-shrink: 0;
}

.eb-queue-list .qi-playing-badge {
  font-size: 0.68rem;
  background: var(--eb-green);
  color: #fff;
  padding: 1px 7px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  white-space: nowrap;
}

.eb-queue-list .qi-remove {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  color: var(--eb-text-muted);
  cursor: pointer;
  transition: all 0.12s;
  flex-shrink: 0;
  padding: 0;
}

.eb-queue-list .qi-remove:hover {
  background: rgba(240, 82, 79, 0.2);
  color: var(--color-red);
}

.eb-history-tabs {
  display: flex;
  gap: 0;
  padding: 8px 16px 0;
  border-top: 1px solid var(--eb-border);
  flex-shrink: 0;
}

.eb-hist-btn {
  flex: 1;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--eb-text-sub);
  cursor: pointer;
  transition: all 0.12s;
}

.eb-hist-btn:hover {
  color: var(--eb-text);
}

.eb-hist-btn.active {
  color: var(--eb-accent-2);
  border-bottom-color: var(--eb-accent);
}

.eb-history-list {
  overflow-y: auto;
  padding: 4px 8px 8px;
  max-height: 200px;
  min-height: 60px;
}

.eb-history-list .history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border: none;
  background: transparent;
  border-radius: var(--radius-md);
  transition: background 0.12s;
}

.eb-history-list .history-item:hover {
  background: var(--color-surface-2);
  transform: none;
}

.eb-history-list .history-rank {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--eb-accent-2);
  font-weight: 600;
  min-width: 24px;
}

.eb-history-list .history-thumb {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
}

.eb-history-list .history-info {
  flex: 1;
  min-width: 0;
}

.eb-history-list .history-title {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--eb-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eb-history-list .history-meta {
  font-size: 0.72rem;
  color: var(--eb-text-sub);
}

.eb-history-list .quick-play-btn {
  padding: 3px 10px;
  font-size: 0.72rem;
  background: var(--eb-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  flex-shrink: 0;
  transition: filter 0.12s;
}

.eb-history-list .quick-play-btn:hover {
  filter: brightness(1.15);
  transform: none;
}

/* Sağ panel: kanal katılımcıları */
.eb-channel-selector-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--eb-border);
  flex-shrink: 0;
}

.eb-channel-selector {
  flex: 1;
  background: var(--color-bg);
  border: 1px solid var(--color-border-2);
  border-radius: var(--radius);
  color: var(--eb-text);
  font-size: 0.82rem;
  padding: 6px 8px;
  outline: none;
  cursor: pointer;
  font-family: var(--font-family);
}

.eb-channel-selector:focus {
  border-color: var(--eb-accent);
}

.eb-refresh-btn {
  flex-shrink: 0;
}

.eb-participants-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px 8px;
  min-height: 0;
}

.eb-participants-list .user-item,
.eb-participant-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: var(--radius-md);
  transition: background 0.12s;
}

.eb-participants-list .user-item:hover,
.eb-participant-item:hover {
  background: var(--color-surface-2);
}

.eb-participant-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-surface-2);
  flex-shrink: 0;
  position: relative;
}

.eb-participant-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.eb-participant-avatar-wrap img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.eb-participant-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--eb-panel);
  background: var(--eb-green);
}

.eb-participant-status-dot.muted {
  background: var(--eb-red);
}

.eb-participant-status-dot.deafened {
  background: #888;
}

.eb-participant-info {
  flex: 1;
  min-width: 0;
}

.eb-participant-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--eb-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eb-participant-state {
  font-size: 0.72rem;
  color: var(--eb-text-sub);
}

.eb-participant-actions {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}

.eb-part-action-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-2);
  border: 1px solid var(--eb-border);
  border-radius: var(--radius);
  color: var(--eb-text-sub);
  cursor: pointer;
  transition: all 0.12s;
  padding: 0;
}

.eb-part-action-btn:hover {
  background: var(--eb-accent);
  color: #fff;
  border-color: var(--eb-accent);
}

.eb-part-action-btn.active-mute {
  background: rgba(240, 82, 79, 0.2);
  color: var(--eb-red);
  border-color: rgba(240, 82, 79, 0.45);
}

.eb-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  gap: 6px;
  color: var(--eb-text-sub);
  font-size: 0.82rem;
  text-align: center;
}

/* Scrollbar (Echo Beats listeleri) */
.eb-queue-list::-webkit-scrollbar,
.eb-history-list::-webkit-scrollbar,
.eb-participants-list::-webkit-scrollbar {
  width: 6px;
}

.eb-queue-list::-webkit-scrollbar-track,
.eb-history-list::-webkit-scrollbar-track,
.eb-participants-list::-webkit-scrollbar-track {
  background: transparent;
}

.eb-queue-list::-webkit-scrollbar-thumb,
.eb-history-list::-webkit-scrollbar-thumb,
.eb-participants-list::-webkit-scrollbar-thumb {
  background: var(--color-surface-3);
  border-radius: 3px;
}

/* ---- Müzik sekmesi tam yükseklik ---- */
#tab-music {
  padding: 0 !important;
  overflow: hidden;
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tab-content#tab-music {
  padding: 0;
}

.panel-page .main-content {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  height: 100vh;
}

.panel-page .tab-content:not(#tab-music) {
  padding: 24px 32px;
  overflow-y: auto;
  height: 100%;
  box-sizing: border-box;
}

/* ---- Responsive (Echo Beats) ---- */
@media (max-width: 1100px) {
  .eb-layout {
    grid-template-columns: 220px 1fr 220px;
  }
}

@media (max-width: 860px) {
  .eb-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    height: auto;
    overflow: auto;
  }

  .eb-left,
  .eb-center,
  .eb-right {
    border: none;
    border-bottom: 1px solid var(--eb-border);
    min-height: 200px;
    max-height: unset;
    overflow: visible;
  }

  .eb-queue-list,
  .eb-history-list,
  .eb-participants-list {
    max-height: 300px;
  }
}
/* ============================================================
   MÜZİK PANELİ — 3 KOLON YENİ TASARIM (mp-*)
   Sol: Oynatıcı | Orta: Kütüphane+Kuyruk | Sağ: Ses Kanalı
   ============================================================ */

/* Ana 3-kolon layout — tam ekran */
.mp-layout {
  display: grid;
  grid-template-columns: 270px 1fr 300px;
  height: calc(100vh - 60px);
  overflow: hidden;
  background: var(--eb-bg);
}

/* ── SOL: Oynatıcı ── */
.mp-left {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  border-right: 1px solid var(--eb-border);
  background: rgba(10, 12, 20, 0.6);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.mp-left::-webkit-scrollbar { width: 4px; }
.mp-left::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }

/* Ses satırı */
.mp-vol-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 4px;
}

/* Durum satırı */
.mp-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 16px 8px;
}
.mp-status-text { font-size: 0.73rem; color: var(--eb-text-muted); }
.mp-requester-text { font-size: 0.7rem; color: var(--eb-text-muted); }

/* Telemetri */
.mp-telemetry {
  margin: 6px 12px;
  padding: 10px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  font-size: 0.77rem;
}
.mp-telemetry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.mp-telemetry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  color: var(--color-text-muted);
}
.mp-telemetry-grid strong { color: #fff; }
.mp-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}
.mp-badge--idle { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.mp-badge--streaming { background: rgba(99, 102, 241, 0.2); color: #818cf8; }
.mp-badge--paused { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }

/* DSP Filtreler kutusu */
.mp-filters-box {
  margin: 6px 12px 10px;
  padding: 10px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
}
.mp-filters-label {
  font-size: 0.73rem;
  font-weight: 700;
  color: #a0a3b8;
  margin-bottom: 6px;
}
.mp-filters-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* ── ORTA: Kütüphane + Kuyruk ── */
.mp-center {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--eb-border);
  background: var(--eb-bg);
}

/* ORTA ÜST: Kütüphane */
.mp-library {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-bottom: 1px solid var(--eb-border);
}

/* Arama barı */
.mp-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--eb-border);
  background: rgba(0,0,0,0.15);
  flex-shrink: 0;
}
.mp-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  height: 36px;
  border-radius: var(--radius);
  border: none;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, box-shadow 0.2s;
}
.mp-add-btn:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 0 14px rgba(99,102,241,0.4);
}

/* Filtre başlık */
.mp-lib-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 6px;
  flex-shrink: 0;
}
.mp-lib-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #e2e4f0;
}
.mp-lib-filters {
  display: flex;
  gap: 5px;
}

/* Grid — fill remaining */
.mp-library .music-grid {
  flex: 1;
  overflow-y: auto;
  max-height: none;
  padding: 6px 12px 10px;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
}

/* ORTA ALT: Kuyruk */
.mp-queue {
  height: 190px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mp-queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  background: rgba(0,0,0,0.2);
  border-bottom: 1px solid var(--eb-border);
  flex-shrink: 0;
}
.mp-queue-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #e2e4f0;
}
.mp-queue-count {
  font-size: 0.72rem;
  color: var(--eb-text-muted);
}
/* Kuyruk listesi yatay scrollable */
.mp-queue-list {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  padding: 8px 10px;
  gap: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.mp-queue-list::-webkit-scrollbar { height: 4px; }
.mp-queue-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }
.mp-queue-list .eb-empty {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--eb-text-muted);
  font-size: 0.78rem;
}
/* Queue kartları yatay */
.mp-queue-list .queue-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 95px;
  max-width: 100px;
  flex-shrink: 0;
  padding: 6px 5px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  margin-right: 7px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  position: relative;
}
.mp-queue-list .queue-item:hover {
  background: rgba(99,102,241,0.1);
  border-color: rgba(99,102,241,0.3);
}
.mp-queue-list .qi-thumb {
  width: 68px;
  height: 68px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.mp-queue-list .qi-info { width: 100%; text-align: center; }
.mp-queue-list .qi-name {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--eb-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}
.mp-queue-list .qi-meta { display: none; }
.mp-queue-list .qi-duration { font-size: 0.62rem; color: var(--eb-text-sub); }
.mp-queue-list .qi-index {
  position: absolute;
  top: 3px; left: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(0,0,0,0.65);
  padding: 1px 3px;
  border-radius: 3px;
}
.mp-queue-list .qi-playing-badge {
  font-size: 0.58rem;
  background: var(--eb-green);
  color: #fff;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 700;
}
.mp-queue-list .qi-remove {
  position: absolute;
  top: 3px; right: 3px;
  background: rgba(239,68,68,0.15);
  border: none;
  border-radius: 3px;
  color: #ef4444;
  cursor: pointer;
  padding: 2px;
  opacity: 0;
  transition: opacity 0.15s;
  display: flex;
  align-items: center;
}
.mp-queue-list .queue-item:hover .qi-remove { opacity: 1; }

/* ── SAĞ: Ses Kanalı + Moderasyon ── */
.mp-right {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(10, 12, 20, 0.5);
}

/* Kanal Seçici */
.mp-channel-select {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  color: var(--color-text);
  font-size: 0.78rem;
  padding: 4px 8px;
  cursor: pointer;
  min-width: 0;
  max-width: 160px;
}
.mp-channel-select:focus { outline: none; border-color: var(--color-primary); }

/* Katılımcı listesi */
.mp-voice-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.mp-voice-list::-webkit-scrollbar { width: 4px; }
.mp-voice-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

/* Ses kanalı grubu */
.vc-group {
  margin-bottom: 8px;
}
.vc-group-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #a0a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 6px 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Kullanıcı kartı (sağ panel) */
.vc-member {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s;
  position: relative;
}
.vc-member:hover { background: rgba(255,255,255,0.07); }
.vc-member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-surface-2);
}
.vc-member-info {
  flex: 1;
  min-width: 0;
}
.vc-member-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--eb-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vc-member-status {
  font-size: 0.68rem;
  color: var(--eb-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.vc-status-icon { font-size: 0.7rem; }

/* Moderasyon butonları */
.vc-mod-actions {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}
.vc-mod-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #a0a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  font-size: 0.72rem;
  padding: 0;
}
.vc-mod-btn:hover { background: rgba(239, 68, 68, 0.15); color: #ef4444; border-color: rgba(239,68,68,0.3); }
.vc-mod-btn--mute:hover { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border-color: rgba(245,158,11,0.3); }
.vc-mod-btn--move:hover { background: rgba(99, 102, 241, 0.15); color: #818cf8; border-color: rgba(99,102,241,0.3); }
.vc-mod-btn--deafen:hover { background: rgba(168, 85, 247, 0.15); color: #c084fc; border-color: rgba(168,85,247,0.3); }
.vc-mod-btn[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 4px);
  right: 0;
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-size: 0.68rem;
  padding: 3px 7px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}

/* Tab-music için main-content overflow düzeltmesi */
#tab-music.active {
  overflow: hidden !important;
  padding: 0 !important;
}

/* mp-left içindeki artwork — tam genişlikte */
.mp-left .eb-artwork-wrap {
  margin: 12px 12px 0;
}
.mp-left .eb-song-info {
  padding: 10px 16px 4px;
}
.mp-left .eb-progress-wrap {
  padding: 6px 16px;
}
.mp-left .eb-controls {
  padding: 4px 12px 8px;
}
.mp-left .eb-panel-header {
  background: rgba(0,0,0,0.25);
}

/* ============================================================
   YETKİ SİSTEMİ — Kilitli Sidebar Öğeleri
   ============================================================ */

/* Kilitli nav item — gri, soluk, tamamen tıklanamaz */
.sidebar-link.nav-locked {
  opacity: 0.38;
  cursor: not-allowed !important;
  position: relative;
  pointer-events: none; /* onclick de kaldırıldığı için çift katman engel */
  filter: grayscale(0.7);
  user-select: none;
}

.sidebar-link.nav-locked:hover {
  background: transparent !important;
  color: var(--color-text-muted) !important;
  transform: none !important;
}

/* Kilit ikonu */
.nav-lock-icon {
  margin-left: auto;
  display: flex;
  align-items: center;
  color: #ef4444;
  opacity: 0.7;
  flex-shrink: 0;
}

/* Yetki rozeti (sidebar-sub) */
.perm-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 4px;
}
.perm-badge.perm-admin {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.perm-badge.perm-mod {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}
.perm-badge.perm-user {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* Sidebar kategori gizlenince boşluk kalmasın */
.sidebar-category[style*="display: none"] + .sidebar-link[style*="display: none"] {
  margin: 0;
}

/* ============================================================
   SİSTEM YÜKLEME / ERİŞİM ENGELİ OVERLAY
   ============================================================ */

/* Tam ekran overlay temel */
.sys-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(ellipse at center, #0d1117 0%, #070b12 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.sys-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.sys-overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 40px;
  max-width: 480px;
}

/* ── Logo animasyonu ── */
.sys-logo {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.sys-logo-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--color-primary, #6366f1);
  animation: sys-spin 1.4s linear infinite;
}

.sys-logo-ring--2 {
  inset: 12px;
  border-top-color: transparent;
  border-right-color: rgba(168, 85, 247, 0.7);
  animation-duration: 0.9s;
  animation-direction: reverse;
}

@keyframes sys-spin {
  to { transform: rotate(360deg); }
}

.sys-logo-core {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary, #6366f1);
  backdrop-filter: blur(10px);
  animation: sys-pulse 2s ease-in-out infinite;
}

@keyframes sys-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,0.3); }
  50% { box-shadow: 0 0 0 14px rgba(99,102,241,0); }
}

/* ── Başlık ── */
.sys-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0;
}

.sys-title--denied {
  color: #ef4444;
}

.sys-subtitle {
  font-size: 0.92rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* ── Animasyonlu noktalar ── */
.sys-dots {
  display: flex;
  gap: 8px;
  margin: 4px 0;
}

.sys-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary, #6366f1);
  animation: sys-dot-bounce 1.2s ease-in-out infinite;
}

.sys-dots span:nth-child(2) { animation-delay: 0.2s; }
.sys-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes sys-dot-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ── Adım listesi ── */
.sys-steps {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 260px;
  text-align: left;
}

.sys-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #64748b;
  transition: color 0.3s;
}

.sys-step.done { color: #e2e8f0; }

.sys-step-icon {
  font-size: 1rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.sys-step-icon.done::before { content: '✅'; }
.sys-step-icon.loading::before { content: '⏳'; }
.sys-step-icon.error::before { content: '❌'; }

.sys-step-icon.done,
.sys-step-icon.loading,
.sys-step-icon.error { font-style: normal; }

/* ── Bağlantı kesildi banner ── */
.sys-reconnect-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: linear-gradient(90deg, rgba(239,68,68,0.95), rgba(220,38,38,0.95));
  backdrop-filter: blur(10px);
  color: #fff;
  text-align: center;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.sys-reconnect-banner.visible {
  transform: translateY(0);
}

.sys-reconnect-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sys-spin 0.8s linear infinite;
  flex-shrink: 0;
}

/* ── Erişim engeli özel ── */
.sys-overlay-inner--denied {
  gap: 14px;
}

.sys-denied-icon {
  font-size: 4rem;
  animation: sys-shake 0.5s ease 0.3s both;
}

@keyframes sys-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

.sys-denied-detail {
  font-size: 0.82rem;
  color: #475569;
  background: rgba(239, 68, 68, 0.07);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 8px;
  padding: 10px 16px;
  max-width: 360px;
  line-height: 1.5;
}

.sys-denied-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Yeniden bağlanma sayacı */
.sys-reconnect-count {
  font-size: 0.72rem;
  color: #475569;
  margin-top: 4px;
}

/* ============================================================
   TAB ERİŞİM ENGELİ (kilitli sayfalara girilince)
   ============================================================ */

.tab-access-denied {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 11, 18, 0.92);
  backdrop-filter: blur(12px);
  z-index: 100;
  border-radius: inherit;
}

.tab-denied-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 48px;
  max-width: 420px;
}

.tab-denied-icon {
  font-size: 3.5rem;
  animation: sys-shake 0.5s ease 0.2s both;
}

.tab-denied-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #f1f5f9;
  margin: 0;
}

.tab-denied-sub {
  font-size: 0.9rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

.tab-denied-sub strong {
  color: #818cf8;
}

.tab-denied-hint {
  font-size: 0.78rem;
  color: #475569;
  margin: 0;
  padding: 8px 14px;
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.12);
  border-radius: 8px;
}

/* Tab'ın overflow:hidden olması gerekiyor ki blocker düzgün görünsün */
.tab-content {
  position: relative;
}

/* ============================================================
   YÜKLEME EKRANI — Sunucu + Kullanıcı Bilgi Kartı
   ============================================================ */

.sys-info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 14px 20px;
  backdrop-filter: blur(10px);
  margin-bottom: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Guild logo wrapper — animasyonlu halka */
.sys-guild-logo {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sys-guild-name {
  font-size: 1rem;
  font-weight: 700;
  color: #e2e8f0;
  max-width: 130px;
  text-align: center;
  line-height: 1.3;
  word-break: break-word;
}

.sys-info-divider {
  font-size: 1.2rem;
  color: #334155;
  flex-shrink: 0;
}

/* Kullanıcı kartı */
.sys-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sys-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(99, 102, 241, 0.4);
}

.sys-user-avatar-placeholder {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.12);
  border: 2px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6366f1;
  flex-shrink: 0;
}

.sys-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sys-user-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #e2e8f0;
}

.sys-user-tag {
  font-size: 0.72rem;
  color: #64748b;
}

/* Timeout uyarısı */
.sys-timeout-warn {
  margin-top: 10px;
  padding: 12px 16px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 10px;
  text-align: center;
  font-size: 0.83rem;
  color: #fbbf24;
  max-width: 340px;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.sys-timeout-warn.hidden { display: none; }
