/* ========================================
   VEXTOR DEVELOPMENT - Panel CSS
   ======================================== */

:root {
  --primary: var(--vx-primary);
  --primary-light: color-mix(in srgb, var(--vx-primary) 72%, #fff);
  --secondary: var(--vx-accent);
  --danger: #EF4444;
  --warning: #F59E0B;
  --bg: var(--vx-bg);
  --bg-white: var(--vx-surface);
  --border: var(--vx-border);
  --text: var(--vx-text);
  --text-muted: var(--vx-muted);
  --sidebar-w: 220px;
  --topbar-h: 60px;
  --radius: 12px;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── AUTH PAGE ── */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--vx-hero);
  position: relative; overflow: hidden;
}
.auth-bg { position: absolute; inset: 0; pointer-events: none; }
.auth-orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.15;
}
.auth-orb.orb1 { width: 400px; height: 400px; background: var(--vx-primary); top: -100px; left: -100px; }
.auth-orb.orb2 { width: 300px; height: 300px; background: var(--vx-accent); bottom: -80px; right: -80px; }

.auth-card {
  position: relative; z-index: 1;
  background: var(--vx-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 40px;
  width: 100%; max-width: 420px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  text-align: center;
}
.auth-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
}
.auth-logo-text { display: flex; align-items: center; }
.auth-logo-text .lb { font-weight: 800; font-size: 1.1rem; color: var(--vx-text); }
.auth-logo-text .ls { font-weight: 600; font-size: 1.1rem; color: var(--vx-primary); }
.auth-logo-text .ld { font-weight: 800; font-size: 1.1rem; color: var(--vx-text); }
.auth-card h1 { font-size: 1.4rem; font-weight: 800; color: var(--text); }
.auth-sub { color: var(--text-muted); font-size: 0.9rem; max-width: 300px; }

.btn-discord {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 14px 24px;
  background: #5865F2;
  color: #fff; font-weight: 700; font-size: 1rem;
  border-radius: 12px; border: none; cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
}
.btn-discord:hover { background: #4752C4; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(88,101,242,0.35); }

.auth-note { font-size: 0.78rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.auth-note i { color: var(--secondary); }
.auth-back { font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; transition: color 0.2s; }
.auth-back:hover { color: var(--primary); }

/* ── SPINNER ── */
.spinner {
  width: 48px; height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── PANEL LAYOUT ── */
.panel-page { display: flex; min-height: 100vh; }

/* SIDEBAR */
.sidebar {
  width: var(--sidebar-w);
  background: var(--vx-surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 200;
  overflow-y: auto;
}
.sidebar-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--border);
}
.sl-brand { font-weight: 800; font-size: 1rem; color: var(--text); }
.sl-sub { color: var(--primary); }

.sidebar-nav { flex: 1; padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; }
.sidebar-section-label {
  font-size: 0.68rem; font-weight: 700; color: var(--text-muted);
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 12px 10px 4px;
}
.sidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px;
  font-size: 0.85rem; font-weight: 500; color: var(--text-muted);
  cursor: pointer; transition: all var(--transition);
}
.sidebar-item:hover { background: var(--bg); color: var(--text); }
.sidebar-item.active { background: var(--vx-tint); color: var(--primary); font-weight: 600; }
.si-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.si-dot.green { background: #22C55E; }
.si-dot.yellow { background: #F59E0B; }
.si-dot.red { background: #EF4444; }

.sidebar-logout {
  padding: 12px 8px;
  border-top: 1px solid var(--border);
}
.sidebar-logout button {
  width: 100%; padding: 9px 12px;
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem; font-weight: 500; color: var(--danger);
  border-radius: 8px; transition: background var(--transition);
  font-family: inherit;
}
.sidebar-logout button:hover { background: #FEF2F2; }

/* MAIN */
.panel-main {
  margin-left: var(--sidebar-w);
  flex: 1; display: flex; flex-direction: column; min-height: 100vh;
}
.panel-topbar {
  height: var(--topbar-h);
  background: var(--vx-surface); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; position: sticky; top: 0; z-index: 100;
}
.sidebar-toggle {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 1.1rem; color: var(--text-muted); padding: 6px;
}
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-admin-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 16px; border-radius: 8px;
  background: linear-gradient(135deg, var(--vx-primary), var(--vx-accent));
  color: #fff; font-size: 0.82rem; font-weight: 700;
  transition: opacity 0.2s; white-space: nowrap;
}
.topbar-admin-btn:hover { opacity: 0.85; }
.topbar-user { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.9rem; }
.topbar-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--vx-primary), var(--vx-accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.9rem; overflow: hidden;
}
.topbar-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.panel-content { padding: 24px; flex: 1; }

/* ── STAT CARDS ── */
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--vx-surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; display: flex; flex-direction: column; gap: 12px;
}
.stat-card-top { display: flex; align-items: center; gap: 12px; }
.stat-card-icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.stat-card-icon.green { background: #DCFCE7; color: #16A34A; }
.stat-card-icon.yellow { background: #FEF9C3; color: #CA8A04; }
.stat-card-icon.red { background: #FEE2E2; color: #DC2626; }
.stat-card-label { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.stat-card-num { font-size: 2rem; font-weight: 800; color: var(--text); }
.stat-card-sub { font-size: 0.75rem; color: var(--text-muted); }
.stat-card-footer { display: flex; align-items: center; justify-content: space-between; }
.stat-badge {
  padding: 4px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 700;
}
.stat-badge.green { background: #DCFCE7; color: #16A34A; }
.stat-badge.yellow { background: #FEF9C3; color: #CA8A04; }
.stat-badge.red { background: #FEE2E2; color: #DC2626; }
.stat-badge.blue { background: #DBEAFE; color: #2563EB; }

/* ── PROFILE SECTION ── */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.profile-card {
  background: var(--vx-surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
}
.profile-card-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.profile-avatar {
  width: 72px; height: 72px; border-radius: 12px;
  background: linear-gradient(135deg, var(--vx-primary), var(--vx-accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #fff; overflow: hidden; flex-shrink: 0;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.profile-name { font-size: 1.2rem; font-weight: 800; }
.profile-role { font-size: 0.8rem; color: var(--text-muted); }
.profile-fields { display: flex; flex-direction: column; gap: 12px; }
.profile-field {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; background: var(--bg); border-radius: 8px;
}
.profile-field-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--vx-tint); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 0.85rem; flex-shrink: 0;
}
.profile-field-label { font-size: 0.72rem; color: var(--text-muted); }
.profile-field-value { font-size: 0.85rem; font-weight: 600; }

/* ── TRANSACTIONS ── */
.transactions-card {
  background: var(--vx-surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
}
.transactions-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.tx-list { display: flex; flex-direction: column; gap: 0; }
.tx-item {
  display: grid; grid-template-columns: 100px 1fr;
  gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--border); font-size: 0.82rem;
}
.tx-item:last-child { border-bottom: none; }
.tx-date { color: var(--text-muted); }
.tx-desc { color: var(--text); }
.tx-tag { color: var(--primary); font-weight: 600; }

/* ── SERVICE TABLE ── */
.page-header {
  background: var(--vx-surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 1.1rem; font-weight: 700;
}
.service-table-card {
  background: var(--vx-surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.service-search-bar {
  display: flex; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.service-search-bar input {
  flex: 1; padding: 9px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 0.875rem; font-family: inherit; outline: none; color: var(--text);
  transition: border-color 0.2s;
}
.service-search-bar input:focus { border-color: var(--primary); }
.service-search-bar input::placeholder { color: var(--text-muted); }
.btn-search { padding: 9px 20px; background: var(--primary); color: #fff; border: none; border-radius: 8px; font-weight: 600; font-size: 0.875rem; cursor: pointer; font-family: inherit; }
.btn-clear { padding: 9px 20px; background: var(--danger); color: #fff; border: none; border-radius: 8px; font-weight: 600; font-size: 0.875rem; cursor: pointer; font-family: inherit; }
.service-table { width: 100%; border-collapse: collapse; }
.service-table th {
  text-align: left; padding: 12px 20px; font-size: 0.78rem; font-weight: 700;
  color: var(--text-muted); border-bottom: 1px solid var(--border); background: var(--vx-surface-2);
}
.service-table td { padding: 14px 20px; font-size: 0.85rem; border-bottom: 1px solid var(--border); }
.service-table tr:last-child td { border-bottom: none; }
.service-table tr:hover td { background: var(--vx-surface-2); }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 50px; font-size: 0.72rem; font-weight: 700;
}
.badge.green { background: #DCFCE7; color: #16A34A; }
.badge.blue { background: #DBEAFE; color: #2563EB; }
.badge.purple { background: #EDE9FE; color: #7C3AED; }
.badge.gray { background: var(--vx-surface-2); color: var(--vx-muted); }
.btn-view { padding: 4px 14px; background: var(--vx-tint); color: var(--primary); border: none; border-radius: 6px; font-size: 0.78rem; font-weight: 600; cursor: pointer; font-family: inherit; }
.table-footer { padding: 12px 20px; font-size: 0.8rem; color: var(--text-muted); border-top: 1px solid var(--border); }

/* ── DESTEK GEÇMİŞİ ── */
.destek-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.destek-stat {
  background: var(--vx-surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px;
  display: flex; align-items: center; gap: 16px;
}
.destek-stat-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.destek-stat-icon.blue { background: #DBEAFE; color: #2563EB; }
.destek-stat-icon.yellow { background: #FEF9C3; color: #CA8A04; }
.destek-stat-icon.purple { background: #EDE9FE; color: #7C3AED; }
.destek-stat-num { font-size: 1.8rem; font-weight: 800; }
.destek-stat-label { font-size: 0.8rem; color: var(--text-muted); }
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chart-card {
  background: var(--vx-surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
}
.chart-card h4 { font-size: 0.9rem; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.chart-bar-wrap { display: flex; align-items: flex-end; gap: 8px; height: 120px; }
.chart-bar {
  flex: 1; background: linear-gradient(180deg, var(--vx-primary), color-mix(in srgb, var(--vx-primary) 72%, var(--vx-surface)));
  border-radius: 4px 4px 0 0; min-width: 20px;
  transition: opacity 0.2s;
}
.chart-bar:hover { opacity: 0.8; }
.chart-bar.pink { background: linear-gradient(180deg, #F472B6, #FBCFE8); }

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--text-muted);
}
.empty-state i { font-size: 2.5rem; margin-bottom: 12px; color: var(--border); display: block; }
.empty-state p { font-size: 0.85rem; }
.pagination { display: flex; justify-content: center; padding: 16px; gap: 8px; }
.page-btn {
  width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700;
}

.badge.red { background: #FEE2E2; color: #DC2626; }

/* ── UYARI ── */
.panel-alert {
  background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C; border-radius: var(--radius);
  padding: 12px 16px; margin-bottom: 16px; font-size: 0.85rem; display: flex; align-items: center; gap: 10px;
}

/* ── HİZMET DETAY BİLGİ GRİDİ ── */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px 20px; }
.info-grid-wide { grid-column: span 2; }

/* ── BOT KARTLARI ── */
.bot-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.bot-card {
  background: var(--vx-surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
  display: flex; flex-direction: column; gap: 16px;
}
.bot-card-top { display: flex; align-items: center; gap: 14px; }
.bot-card-avatar {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  background: linear-gradient(135deg, var(--vx-primary), var(--vx-accent)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.bot-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bot-card-name { font-weight: 800; font-size: 1rem; margin-bottom: 4px; }
.bot-card-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; }
.bot-card-stats div {
  background: var(--bg); border-radius: 8px; padding: 10px; text-align: center;
  font-size: 0.72rem; color: var(--text-muted);
}
.bot-card-stats b { display: block; font-size: 0.95rem; color: var(--text); }
.bot-card-invite { text-align: center; display: flex; align-items: center; justify-content: center; gap: 8px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .stat-cards { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .destek-stats { grid-template-columns: 1fr; }
  .chart-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .info-grid-wide { grid-column: auto; }
  .service-table-card { overflow-x: auto; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.3s ease; }
  .sidebar.open { transform: translateX(0); }
  .panel-main { margin-left: 0; }
  .sidebar-toggle { display: block; }
}

/* ══════════ VEXTOR — MÜŞTERİ PANELİ EKLERİ ══════════ */
.si-count { margin-left: auto; background: #EF4444; color: #fff; border-radius: 50px; font-size: .64rem; font-weight: 800; padding: 1px 7px; }
.badge.yellow { background: #FEF9C3; color: #A16207; }
.badge .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; background: #9CA3AF; vertical-align: 1px; }
.badge .dot.online { background: #22C55E; } .badge .dot.idle { background: #F59E0B; } .badge .dot.dnd { background: #EF4444; }
.back-btn { margin-bottom: 14px; display: inline-flex; align-items: center; gap: 6px; background: var(--bg-white); color: var(--text); border: 1px solid var(--border); }
.copy-btn { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: .8rem; padding: 4px; }
.copy-btn:hover { color: var(--primary); }

.welcome-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 14%, var(--bg-white)), color-mix(in srgb, var(--secondary) 10%, var(--bg-white)));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 16px;
}
.welcome-card h2 { font-size: 1.2rem; font-weight: 800; }
.welcome-card p { font-size: .85rem; color: var(--text-muted); }

.duyuru { display: flex; gap: 14px; padding: 14px 18px; border-radius: var(--radius); margin-bottom: 12px; border: 1px solid; background: var(--bg-white); }
.duyuru > i { font-size: 1.1rem; margin-top: 2px; }
.duyuru p { font-size: .85rem; margin: 2px 0 4px; }
.duyuru span { font-size: .72rem; color: var(--text-muted); }
.duyuru-bilgi { border-color: color-mix(in srgb, #3B82F6 35%, transparent); } .duyuru-bilgi > i { color: #3B82F6; }
.duyuru-uyari { border-color: color-mix(in srgb, #F59E0B 45%, transparent); background: color-mix(in srgb, #F59E0B 6%, var(--bg-white)); } .duyuru-uyari > i { color: #D97706; }
.duyuru-basari { border-color: color-mix(in srgb, #22C55E 40%, transparent); } .duyuru-basari > i { color: #16A34A; }

.uyari-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.uyari { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-radius: 10px; font-size: .85rem; cursor: pointer; border: 1px solid transparent; }
.uyari-red { background: color-mix(in srgb, #EF4444 9%, var(--bg-white)); border-color: color-mix(in srgb, #EF4444 30%, transparent); } .uyari-red i { color: #DC2626; }
.uyari-yellow { background: color-mix(in srgb, #F59E0B 9%, var(--bg-white)); border-color: color-mix(in srgb, #F59E0B 35%, transparent); } .uyari-yellow i { color: #D97706; }
.uyari-blue { background: color-mix(in srgb, #3B82F6 8%, var(--bg-white)); border-color: color-mix(in srgb, #3B82F6 30%, transparent); cursor: default; } .uyari-blue i { color: #2563EB; }
.uyari-green { background: color-mix(in srgb, #22C55E 8%, var(--bg-white)); border-color: color-mix(in srgb, #22C55E 30%, transparent); } .uyari-green i { color: #16A34A; }
.panel-note { background: var(--bg-white); border: 1px dashed var(--border); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: .82rem; color: var(--text-muted); }

.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-head h3 { font-size: 1rem; font-weight: 700; }
.card-head-sub { font-size: .78rem; color: var(--text-muted); }

.hizmet-mini-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; padding: 16px 20px; }
.hizmet-mini { border: 1px solid var(--border); border-radius: 10px; padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s; }
.hizmet-mini:hover { border-color: var(--primary); }
.hizmet-mini-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.hizmet-mini-top b { display: block; font-size: .88rem; }
.hizmet-mini-top span { font-size: .74rem; color: var(--text-muted); }
.hizmet-mini-foot { display: flex; justify-content: space-between; font-size: .72rem; color: var(--text-muted); }

.sure-bar { height: 6px; border-radius: 50px; background: var(--bg); overflow: hidden; }
.sure-bar span { display: block; height: 100%; border-radius: 50px; background: linear-gradient(90deg, var(--primary), var(--secondary)); }
.sure-bar.az span { background: #F59E0B; }
.sure-bar.bitti span { background: #EF4444; width: 100% !important; opacity: .35; }
.sure-bar.infinite span { background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--primary) 55%, transparent) 0 6px, color-mix(in srgb, var(--primary) 30%, transparent) 6px 12px); }
.sure-text { font-size: .72rem; color: var(--text-muted); margin-top: 4px; }
.stat-card .sure-bar { margin-top: -4px; }

.hizmet-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--vx-tint); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.info-cell { background: var(--bg); border-radius: 8px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.info-cell-label { font-size: .72rem; color: var(--text-muted); margin-bottom: 2px; }
.info-cell-value { font-size: .85rem; font-weight: 600; word-break: break-all; }

/* Botlarım */
.bot-cards-full { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.bot-card.is-frozen { border-color: color-mix(in srgb, #3B82F6 40%, var(--border)); }
.bot-card.is-frozen .bot-card-avatar { filter: grayscale(.7); }
.bot-frozen-note { font-size: .78rem; color: var(--text-muted); background: color-mix(in srgb, #3B82F6 8%, var(--bg-white)); border-radius: 8px; padding: 10px 12px; }
.bot-sub { font-size: .72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.bot-guilds { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow-y: auto; }
.bot-guild { display: flex; align-items: center; gap: 10px; font-size: .82rem; }
.bot-guild img, .guild-ph { width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0; }
.guild-ph { background: var(--vx-tint); color: var(--primary); font-size: .62rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.bot-guild-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.bot-guild-meta { font-size: .72rem; color: var(--text-muted); }
.bot-presence { border-top: 1px solid var(--border); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.bot-presence-row { display: flex; gap: 8px; }
.bot-presence select, .bot-presence input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; font-size: .82rem; background: var(--bg-white); color: var(--text); }
.bot-presence-msg { font-size: .75rem; }
.bot-presence-msg.ok { color: #16A34A; } .bot-presence-msg.err { color: #DC2626; }

/* Destek */
.ticket-item { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); cursor: pointer; }
.ticket-item:last-child { border-bottom: none; }
.ticket-item:hover { background: var(--bg); }
.ticket-konu { font-weight: 700; font-size: .9rem; }
.ticket-meta { font-size: .75rem; color: var(--text-muted); }
.panel-form { display: flex; flex-direction: column; gap: 14px; }
.panel-form label { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; font-weight: 600; }
.panel-form input, .panel-form select, .panel-form textarea { padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font: inherit; font-size: .875rem; font-weight: 400; background: var(--bg-white); color: var(--text); outline: none; }
.panel-form input:focus, .panel-form select:focus, .panel-form textarea:focus { border-color: var(--primary); }
.form-msg { font-size: .82rem; }
.form-msg.err { color: #DC2626; }
.chat-box { padding: 20px; display: flex; flex-direction: column; gap: 14px; background: var(--bg); max-height: 540px; overflow-y: auto; }
.chat-msg { max-width: 80%; }
.chat-msg.mine { align-self: flex-end; text-align: right; }
.chat-meta { font-size: .7rem; color: var(--text-muted); margin-bottom: 4px; }
.chat-role { background: var(--primary); color: #fff; border-radius: 4px; padding: 0 5px; font-size: .62rem; font-weight: 700; }
.chat-bubble { display: inline-block; text-align: left; padding: 10px 14px; border-radius: 12px; background: var(--bg-white); border: 1px solid var(--border); font-size: .86rem; line-height: 1.55; }
.chat-msg.mine .chat-bubble { background: var(--primary); color: #fff; border-color: var(--primary); }
.chat-form { display: flex; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border); align-items: flex-end; }
.chat-form textarea { flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font: inherit; font-size: .875rem; background: var(--bg-white); color: var(--text); resize: vertical; outline: none; }
.chat-closed { padding: 14px 20px; border-top: 1px solid var(--border); font-size: .82rem; color: var(--text-muted); }
.chat-closed a { color: var(--primary); }

@media (max-width: 600px) {
  .bot-cards-full { grid-template-columns: 1fr; }
  .chat-msg { max-width: 95%; }
  .chat-form { flex-direction: column; align-items: stretch; }
}

/* ============================================================
   BOT YÖNETİMİ (müşteri paneli)
   ============================================================ */

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--vx-surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 14px; cursor: pointer; text-decoration: none;
  font: 600 0.84rem 'Inter', system-ui, sans-serif;
  transition: border-color .15s ease, background .15s ease;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.bot-card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.bot-card-actions .btn-search, .bot-card-actions .btn-ghost { flex: 1; justify-content: center; min-width: 140px; }

/* ── Sekmeler ── */
.bs-tabs {
  display: flex; gap: 6px; background: var(--vx-surface-2);
  border: 1px solid var(--border); border-radius: 12px; padding: 5px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.bs-tab {
  flex: 1; min-width: 140px; border: none; background: none; border-radius: 9px;
  padding: 10px 12px; cursor: pointer; color: var(--text-muted);
  font: 600 0.85rem 'Inter', system-ui, sans-serif;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s ease, color .15s ease;
}
.bs-tab:hover { color: var(--text); }
.bs-tab.active { background: var(--white); color: var(--primary); box-shadow: 0 1px 4px rgba(0,0,0,.12); }

/* ── Ayar kartı ── */
.bs-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px; margin-bottom: 14px;
}
.bs-card-head { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 16px; }
.bs-card-head > i {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 0.95rem;
}
.bs-card-head strong { font-size: 0.96rem; display: block; color: var(--text); }
.bs-card-head p { margin: 3px 0 0; font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

.bs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 15px; }
.bs-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bs-field label {
  font-size: 0.8rem; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 7px;
}
.bs-field label i { color: var(--text-muted); font-size: 0.78rem; }
.bs-field input[type="text"], .bs-field input[type="number"],
.bs-field input[type="password"], .bs-field select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--vx-surface-2); color: var(--text);
  font: 400 0.86rem 'Inter', system-ui, sans-serif;
}
.bs-field input:focus, .bs-field select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}
.bs-field .bs-color {
  width: 46px; height: 38px; padding: 2px; border: 1px solid var(--border);
  border-radius: 9px; background: none; cursor: pointer; flex-shrink: 0;
}
.bs-hint { font-size: 0.74rem; color: var(--text-muted); line-height: 1.45; }
.bs-hint code { font-size: 0.72rem; }

.bs-switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.86rem; font-weight: 600; }
.bs-switch input { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }

/* ── Kaydet bloğu ── */
.bs-save {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; padding: 18px 20px; margin-bottom: 14px;
}
.bs-msg { font-size: 0.84rem; margin-bottom: 12px; display: none; }
.bs-msg.ok, .bs-msg.err { display: block; padding: 11px 13px; border-radius: 10px; }
.bs-msg.ok  { background: color-mix(in srgb, #10B981 12%, transparent); color: #0F7B5A; }
.bs-msg.err { background: color-mix(in srgb, #EF4444 12%, transparent); color: #B91C1C; }
.bs-note { font-size: 0.78rem; color: var(--text-muted); margin: 12px 0 0; line-height: 1.55; }
.bs-loading { padding: 34px; text-align: center; color: var(--text-muted); font-size: 0.88rem; }

/* ── Sunucu seçici ── */
.bs-sunucu-secici {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 10px; margin-bottom: 14px;
}
.bs-sunucu {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px;
  border: 1.5px solid var(--border); border-radius: 13px;
  background: var(--white); cursor: pointer; text-align: left;
  font-family: 'Inter', system-ui, sans-serif; min-width: 0;
  transition: border-color .15s ease;
}
.bs-sunucu:hover { border-color: var(--primary); }
.bs-sunucu.active { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent); }
.bs-sunucu img, .bs-sunucu-ph {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; object-fit: cover;
}
.bs-sunucu-ph {
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 800;
}
.bs-sunucu-ad {
  font-size: 0.84rem; font-weight: 700; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bs-sunucu small { display: block; font-size: 0.7rem; color: var(--text-muted); font-weight: 500; }
.bs-sunucu > span:not(.bs-sunucu-ph) { min-width: 0; }

/* ── Çoklu rol seçimi ── */
.bs-rol-kutu {
  display: flex; flex-wrap: wrap; gap: 8px; max-height: 190px; overflow-y: auto;
  padding: 11px; border: 1px solid var(--border); border-radius: 11px;
  background: var(--vx-surface-2);
}
.bs-rol {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 6px 11px; border-radius: 999px; background: var(--white);
  border: 1.5px solid var(--border); font-size: 0.78rem; font-weight: 600;
  transition: border-color .15s ease;
}
.bs-rol:hover { border-color: var(--primary); }
.bs-rol.secili { border-color: var(--primary); background: var(--primary-light); }
.bs-rol input { display: none; }
.bs-rol i { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

/* ── E-tablo giriş hesapları ── */
.bs-hesap-liste { display: flex; flex-direction: column; gap: 9px; }
.bs-hesap {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--vx-surface-2);
}
.bs-hesap strong { font-size: 0.87rem; }
.bs-hesap-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.bs-hesap-dot.on  { background: #10B981; box-shadow: 0 0 0 3px color-mix(in srgb, #10B981 25%, transparent); }
.bs-hesap-dot.off { background: #9CA3AF; }
.bs-hesap-etiket {
  font-size: 0.73rem; color: var(--text-muted); margin-left: 7px;
  padding: 2px 8px; border-radius: 999px; background: var(--white); border: 1px solid var(--border);
}

@media (max-width: 640px) {
  .bs-grid { grid-template-columns: 1fr; }
  .bs-tab { min-width: 110px; font-size: 0.78rem; }
  .bs-card, .bs-save { padding: 16px; }
}