/* ═══════════════════════════════════════════
   SPROTECT — PANEL THEME
   io.net Inspired · Pure Black + Mint/Lavender
   ═══════════════════════════════════════════ */

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

/* ── CSS Variables ── */
:root {
  --bg-primary: #08080c;
  --bg-secondary: #0c0c10;
  --bg-card: rgba(255, 255, 255, 0.02);
  --bg-card-hover: rgba(255, 255, 255, 0.04);
  --bg-glass: rgba(255, 255, 255, 0.025);
  --bg-input: rgba(255, 255, 255, 0.03);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(168, 237, 234, 0.3);
  --text-primary: #e4e4e7;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  --accent-primary: #a8edea;
  --accent-secondary: #d4c4fb;
  --accent-glow: rgba(168, 237, 234, 0.1);
  --green: #4ade80;
  --green-dim: rgba(74, 222, 128, 0.08);
  --green-border: rgba(74, 222, 128, 0.2);
  --red: #f87171;
  --red-dim: rgba(248, 113, 113, 0.08);
  --red-border: rgba(248, 113, 113, 0.2);
  --yellow: #fbbf24;
  --yellow-dim: rgba(251, 191, 36, 0.08);
  --yellow-border: rgba(251, 191, 36, 0.2);
  --cyan: #22d3ee;
  --cyan-dim: rgba(34, 211, 238, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.8);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Body glow kaldırıldı — ambient.js canvas ile sağlanıyor */

/* ═══════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════ */

.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.login-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.6s ease-out;
}

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

.login-card .logo {
  text-align: center;
  margin-bottom: 36px;
}

.login-card .logo-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #a8edea, #d4c4fb);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
}

.login-card .logo h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #a8edea, #d4c4fb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-card .logo p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Form Elements ── */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: rgba(168, 237, 234, 0.35);
  box-shadow: 0 0 0 3px rgba(168, 237, 234, 0.06), 0 0 16px rgba(168, 237, 234, 0.03);
  background: rgba(255, 255, 255, 0.04);
}

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

select.form-input {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-color: rgba(255, 255, 255, 0.03);
  padding-right: 36px;
}

select.form-input option {
  background: #111;
  color: #fff;
  padding: 8px;
}

/* ── Buttons ── */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  width: 100%;
  padding: 13px;
  background: #fff;
  color: #000;
  font-size: 14px;
  border-radius: var(--radius);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.1);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-success {
  background: rgba(74, 222, 128, 0.1);
  color: var(--green);
  border: 1px solid var(--green-border);
}

.btn-success:hover {
  background: rgba(74, 222, 128, 0.15);
  transform: translateY(-1px);
}

.btn-danger {
  background: rgba(248, 113, 113, 0.08);
  color: var(--red);
  border: 1px solid var(--red-border);
}

.btn-danger:hover {
  background: rgba(248, 113, 113, 0.12);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--bg-input);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-icon {
  padding: 8px;
  background: var(--bg-input);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 15px;
  line-height: 1;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.login-error {
  background: var(--red-dim);
  border: 1px solid var(--red-border);
  color: var(--red);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}

/* ═══════════════════════════════
   DASHBOARD LAYOUT
   ═══════════════════════════════ */

.dashboard {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ── Header ── */
.header {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.header-logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-primary), var(--green));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.header-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.header-title span {
  background: linear-gradient(135deg, #a8edea, #d4c4fb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-status {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Main Content ── */
.main-content {
  padding: 28px 32px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ── Stats Grid ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 237, 234, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  background: var(--bg-card-hover);
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -1px;
  color: var(--text-primary);
}

.stat-card.purple .stat-value { color: var(--accent-primary); }
.stat-card.green .stat-value { color: var(--green); }
.stat-card.cyan .stat-value { color: var(--cyan); }
.stat-card.yellow .stat-value { color: var(--yellow); }
.stat-card.red .stat-value { color: var(--red); }

/* ── Section ── */
.section {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 24px;
  overflow: hidden;
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 237, 234, 0.1), rgba(196, 181, 253, 0.08), transparent);
}

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

.section-title {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title .icon {
  font-size: 18px;
}

.section-actions {
  display: flex;
  gap: 8px;
}

/* ── Tables ── */
.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

td {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

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

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.badge-active {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid var(--green-border);
}

.badge-inactive {
  background: var(--red-dim);
  color: var(--red);
  border: 1px solid var(--red-border);
}

.badge-expired {
  background: var(--yellow-dim);
  color: var(--yellow);
  border: 1px solid var(--yellow-border);
}

.badge-online {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid var(--green-border);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ── Mono Text ── */
.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.3px;
}

.key-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent-primary);
  background: var(--accent-glow);
  padding: 3px 8px;
  border-radius: 5px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
}

.key-text:hover {
  background: rgba(168, 237, 234, 0.15);
}

/* ── Action Buttons in Table ── */
.action-group {
  display: flex;
  gap: 4px;
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.modal {
  background: rgba(12, 12, 16, 0.92);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.03) inset;
  transform: scale(0.9) translateY(20px);
  transition: var(--transition);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 237, 234, 0.2), rgba(196, 181, 253, 0.15), transparent);
}

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

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

.modal-header h2 {
  font-size: 16px;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition);
  padding: 4px;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 24px 28px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 28px;
  border-top: 1px solid var(--border-color);
}

/* ── Result Box ── */
.result-box {
  background: var(--green-dim);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 16px;
  display: none;
}

.result-box .result-label {
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 6px;
}

.result-box .result-key {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 1px;
  user-select: all;
}

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state .icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 14px;
}

/* ── Tabs ── */
.tabs {
  display: flex;
  gap: 2px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.tab {
  padding: 8px 18px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition);
  position: relative;
}

.tab:hover {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
}

.tab.active {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 30%; right: 30%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 237, 234, 0.4), transparent);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Toast Notifications ── */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: rgba(12, 12, 16, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 13px;
  color: var(--text-primary);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  animation: slideInRight 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
}

.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--red); }
.toast.info { border-left: 3px solid var(--accent-primary); }

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(100px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ── Log Action Badges ── */
.log-action {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

.log-action.login { background: var(--green-dim); color: var(--green); }
.log-action.denied { background: var(--red-dim); color: var(--red); }
.log-action.disconnect { background: var(--yellow-dim); color: var(--yellow); }
.log-action.created { background: var(--cyan-dim); color: var(--cyan); }
.log-action.expired { background: var(--red-dim); color: var(--red); }
.log-action.heartbeat { background: rgba(255,255,255,0.05); color: var(--text-muted); }

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.pagination-btn {
  padding: 7px 13px;
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  min-width: 34px;
  text-align: center;
}

.pagination-btn:hover:not(.disabled):not(.active) {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.12);
}

.pagination-btn.active {
  background: rgba(168, 237, 234, 0.08);
  color: var(--accent-primary);
  border-color: rgba(168, 237, 234, 0.25);
  font-weight: 600;
}

.pagination-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-dots {
  color: var(--text-muted);
  font-size: 12px;
  padding: 0 4px;
  user-select: none;
}

.pagination-info {
  color: var(--text-muted);
  font-size: 11px;
  margin-left: 12px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.3px;
}

/* ── Bot Management Modal ── */
.manage-modal {
  max-width: 720px;
  width: 95%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.manage-modal-body {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

/* Section Bar (Terminal header / Players header) */
.manage-section-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}
.manage-section-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }
.manage-section-icon { font-size: 13px; }
.manage-section-label {
  color: var(--text-muted);
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.5px;
  margin-left: 4px;
}
.manage-section-badge {
  margin-left: auto;
  background: var(--accent-glow);
  color: var(--accent-primary);
  font-size: 11px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid rgba(168, 237, 234, 0.2);
}

/* Console Area */
.manage-console-wrap {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border-color);
}
.terminal-log {
  flex: 1;
  background: #08080c;
  padding: 14px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.7;
  overflow-y: auto;
  color: #c8c8d0;
  white-space: pre-wrap;
  word-break: break-all;
  min-height: 200px;
  max-height: 340px;
}

/* Command Bar */
.cmd-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255,255,255,0.04);
}
.cmd-prefix {
  color: var(--green);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  user-select: none;
}
.cmd-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  padding: 4px 0;
}
.cmd-input::placeholder { color: var(--text-muted); }

/* Players Area */
.manage-players-wrap {
  max-height: 180px;
  display: flex;
  flex-direction: column;
}
.players-grid {
  overflow-y: auto;
  padding: 10px 16px 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.player-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255,255,255,0.025);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
}
.player-item:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}
.player-name {
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-dist {
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  margin-left: 8px;
}

/* ── Bot Status Panel ── */
.manage-status-wrap {
  border-bottom: 1px solid var(--border-color);
}
.bot-status-grid {
  display: flex;
  flex-direction: column;
  padding: 0;
}
.status-row-top {
  display: grid;
  grid-template-columns: 1fr 1fr 0.6fr;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.status-row-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.status-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  border-right: 1px solid rgba(255,255,255,0.03);
  overflow: hidden;
}
.status-item-label {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 70px;
  flex-shrink: 0;
}
.status-bar-wrap {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
  min-width: 40px;
}
.status-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease, background 0.5s ease;
  box-shadow: 0 0 6px currentColor;
}
.status-item-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Inventory Panel (Minecraft Style) ── */
.manage-inventory-wrap {
  border-bottom: 1px solid var(--border-color);
  max-height: 320px;
  display: flex;
  flex-direction: column;
}
.inventory-grid {
  overflow-y: auto;
  padding: 10px 16px 14px;
}

/* ── Inventory List (Text-Based) ── */
.inv-list-header {
  display: grid;
  grid-template-columns: 2fr 1.5fr 0.6fr 32px;
  gap: 8px;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.inv-list-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 0.6fr 32px;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 12px;
  transition: background 0.15s;
}
.inv-list-row:hover {
  background: rgba(168,237,234,0.04);
}
.inv-row-spawner {
  background: rgba(250,204,21,0.04);
  border-left: 2px solid #facc15;
}
.inv-row-spawner:hover {
  background: rgba(250,204,21,0.08);
}
.inv-list-name {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inv-list-id {
  font-family: 'JetBrains Mono', monospace;
  opacity: 0.5;
}
.inv-list-count {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  text-align: center;
}
.inv-drop-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  opacity: 0.3;
  transition: opacity 0.15s, transform 0.15s;
  padding: 2px;
  line-height: 1;
}
.inv-drop-btn:hover {
  opacity: 1;
  transform: scale(1.2);
}
.inv-drop-bar {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 4px;
}
.inv-drop-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 5px 10px;
  outline: none;
  transition: border-color 0.2s;
}
.inv-drop-input:focus {
  border-color: var(--accent-primary);
}
.inv-drop-input::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}
.inv-drop-submit {
  background: rgba(239,68,68,0.12);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.inv-drop-submit:hover {
  background: rgba(239,68,68,0.25);
  border-color: rgba(239,68,68,0.5);
}

/* ── Set Home Button ── */
.btn-set-home {
  background: rgba(168,237,234,0.08);
  color: var(--accent-primary);
  border: 1px solid rgba(168,237,234,0.2);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-set-home:hover {
  background: rgba(168,237,234,0.18);
  border-color: rgba(168,237,234,0.4);
  transform: scale(1.02);
}

/* ── Last Signal Indicator ── */
.manage-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.last-signal-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.last-signal-icon {
  font-size: 12px;
}
.last-signal-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}
.last-signal-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
}

/* Hidden log tag */
.log-hidden { color: var(--yellow); opacity: 0.85; }
.log-hidden::before { content: "[gizli] "; font-weight: bold; color: var(--yellow); opacity: 0.6; }

/* ═══════════════════════════════
   ACTIVITY CHART
   ═══════════════════════════════ */

.chart-legend {
  display: flex;
  gap: 24px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

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

.legend-value {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 12px;
  color: var(--text-primary);
  min-width: 24px;
}

.chart-range.active {
  background: var(--accent-glow) !important;
  color: var(--accent-primary) !important;
  border-color: rgba(168, 237, 234, 0.3) !important;
}

.chart-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-color);
  border-top: 1px solid var(--border-color);
}

.chart-stat {
  background: var(--bg-card);
  padding: 18px 24px;
  text-align: center;
}

.chart-stat:first-child { border-radius: 0 0 0 12px; }
.chart-stat:last-child { border-radius: 0 0 12px 0; }

.chart-stat-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.chart-stat-value {
  font-size: 22px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.5px;
}

/* ═══════════════════════════════════════
   USER DASHBOARD
   ═══════════════════════════════════════ */

/* Config Cards */
.configs-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  padding: 20px;
}

.config-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.config-card::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 237, 234, 0.12), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.config-card:hover::before {
  opacity: 1;
}

.config-card:hover {
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  background: var(--bg-card-hover);
}

.config-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255,255,255,0.02);
}

.config-card-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--accent-primary);
}

.config-card-actions {
  display: flex;
  gap: 4px;
}

.config-card-body {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.config-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.config-detail-label {
  color: var(--text-muted);
  font-weight: 500;
}

/* Config Form Sections */
.config-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 24px 0 14px 0;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  letter-spacing: 0.3px;
}

.config-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.config-form-grid .form-group {
  margin-bottom: 0;
}

/* Info Tooltip */
.info-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.3);
  font-size: 10px;
  font-weight: 700;
  cursor: help;
  margin-left: 6px;
  flex-shrink: 0;
  transition: all 0.2s;
  vertical-align: middle;
}

.info-tip:hover {
  background: rgba(168, 237, 234, 0.15);
  color: #a8edea;
}

.info-tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  font-weight: 400;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 100;
  max-width: 260px;
  white-space: normal;
  line-height: 1.4;
  text-align: left;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.info-tip:hover::after {
  opacity: 1;
}

/* Toggle label */
.toggle-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  user-select: none;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  transition: all 0.2s;
}

.toggle-label:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.toggle-label input[type="checkbox"] {
  display: none;
}

.toggle-switch {
  display: block;
  position: relative;
  width: 40px;
  min-width: 40px;
  height: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 11px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.toggle-label input[type="checkbox"]:checked + .toggle-switch {
  background: rgba(168, 237, 234, 0.2);
  border-color: rgba(168, 237, 234, 0.35);
}

.toggle-label input[type="checkbox"]:checked + .toggle-switch::after {
  left: 20px;
  background: #a8edea;
  box-shadow: 0 0 8px rgba(168, 237, 234, 0.4);
}

/* Settings Info Grid */
.settings-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border-color);
}

.settings-info-item {
  background: var(--bg-card);
  padding: 18px 22px;
}

.settings-info-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.settings-info-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Header user */
.header-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-username {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-primary);
  background: var(--accent-glow);
  padding: 4px 12px;
  border-radius: 6px;
}

/* Lang toggle (header) */
.lang-toggle {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 3px;
  cursor: pointer;
  user-select: none;
  position: relative;
  gap: 0;
}

.lang-toggle-option {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  z-index: 1;
  position: relative;
}

.lang-toggle-option.active {
  color: #000;
}

.lang-toggle-pill {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  background: #fff;
  border-radius: 14px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-toggle.en .lang-toggle-pill {
  transform: translateX(100%);
}

.lang-toggle.tr .lang-toggle-pill {
  transform: translateX(0);
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Mobil Uyumluluk
   ═══════════════════════════════════════════ */

/* ── Tablet (max-width 1024px) ── */
@media (max-width: 1024px) {
  .main-content { padding: 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .bot-card-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important; gap: 16px; }
  .configs-card-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .chart-stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobil (max-width 768px) ── */
@media (max-width: 768px) {
  /* Header */
  .header {
    padding: 0 12px;
    height: 56px;
    gap: 8px;
  }
  .header-left { gap: 8px; }
  .header-title { font-size: 14px; }
  .header-right {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .header-right .btn-sm {
    padding: 4px 8px !important;
    font-size: 11px !important;
  }
  .header-right .btn-sm span[data-t] { display: none; }
  .header-username { display: none; }
  .header-status span { display: none; }
  .header-status { gap: 0; }
  .header-logo-img { width: 28px; height: 28px; }
  .lang-toggle { padding: 2px; }
  .lang-toggle-option { padding: 3px 8px; font-size: 10px; }

  /* Main Content */
  .main-content { padding: 12px; }

  /* Stats */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .stat-card {
    padding: 14px 12px;
    border-radius: 10px;
  }
  .stat-value { font-size: 22px; }
  .stat-label { font-size: 10px; }
  .stat-sub { font-size: 14px; }

  /* Tabs */
  .tabs {
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab {
    font-size: 12px;
    padding: 8px 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Sections */
  .section { border-radius: 10px; margin-bottom: 16px; }
  .section-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    padding: 14px 16px;
  }
  .section-title { font-size: 14px; }
  .section-actions { width: 100%; }
  .section-actions .btn { width: 100%; justify-content: center; }

  /* Bot Cards */
  .bot-card-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
    padding: 12px;
  }
  .bot-card { padding: 16px; gap: 10px; }
  .bc-header { flex-wrap: wrap; gap: 8px; }
  .bc-actions { flex-wrap: wrap; gap: 6px; }
  .bc-actions .btn { font-size: 10px; padding: 4px 8px; }

  /* Config Cards */
  .configs-card-grid {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 12px;
  }
  .config-card { padding: 14px; }
  .config-form-grid { grid-template-columns: 1fr; }

  /* Tables */
  .table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 500px; }
  td, th { padding: 8px 10px; font-size: 11px; }

  /* Modal */
  .modal-overlay { padding: 8px; align-items: flex-end; }
  .modal {
    margin: 0;
    max-width: 100%;
    max-height: 90vh;
    border-radius: 16px 16px 0 0;
    overflow-y: auto;
  }
  .modal-header { padding: 16px; }
  .modal-header h2 { font-size: 16px; }
  .modal-body { padding: 16px; }
  .modal-footer { padding: 12px 16px; flex-wrap: wrap; }
  .modal-footer .btn { flex: 1; min-width: 120px; justify-content: center; }

  /* Manage Panel */
  .manage-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  .manage-body { padding: 12px; }
  .manage-header-right { flex-wrap: wrap; gap: 6px; }

  /* Bot Status Cards / Info Grid */
  .info-grid-section {
    grid-template-columns: 1fr !important;
    gap: 8px;
  }
  .status-row-top { grid-template-columns: 1fr 1fr 0.5fr; }
  .status-row-bottom { grid-template-columns: 1fr; }
  .btn-set-home { font-size: 9px; padding: 2px 8px; }

  /* Inventory List Mobile */
  .inv-list-header { grid-template-columns: 1.5fr 1fr 0.5fr 28px; gap: 4px; font-size: 9px; }
  .inv-list-row { grid-template-columns: 1.5fr 1fr 0.5fr 28px; gap: 4px; font-size: 11px; padding: 6px 8px; }
  .inv-list-id { font-size: 9px; }
  .inv-drop-input { font-size: 10px; }

  /* Console */
  .console-body { max-height: 250px; font-size: 11px; }
  .console-input-wrap input { font-size: 12px; }

  /* Player list */
  .player-list { max-height: 200px; }

  /* Charts */
  .chart-container { padding: 12px; }
  .chart-stats-row { grid-template-columns: 1fr; gap: 8px; }
  .chart-legend { flex-direction: column; gap: 8px; }

  /* Login */
  .login-card {
    margin: 12px;
    padding: 28px 20px;
    border-radius: 12px;
  }

  /* Pagination */
  .pagination { gap: 3px; padding: 10px 12px; }
  .pagination-btn { padding: 5px 8px; font-size: 10px; min-width: 28px; width: 28px; height: 28px; }
  .pagination-info { font-size: 9px; margin-left: 4px; }

  /* Settings */
  .settings-info-grid { grid-template-columns: 1fr; }

  /* Last signal */
  .last-signal-wrap { display: none; }

  /* Form groups */
  .form-group label { font-size: 11px; }
  .form-control { font-size: 13px; padding: 10px 12px; }
  select.form-control { font-size: 12px; }

  /* Tooltip */
  .tooltip-icon { display: none; }
}

/* ── Küçük Mobil (max-width 480px) ── */
@media (max-width: 480px) {
  .header { padding: 0 8px; height: 50px; }
  .header-right .btn-sm { padding: 3px 6px !important; }
  .header-right .lang-toggle { display: none; }

  .main-content { padding: 8px; }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .stat-card {
    padding: 12px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
  }
  .stat-card .stat-label { margin-bottom: 0; }
  .stat-value { font-size: 20px; }

  .tab { font-size: 11px; padding: 6px 10px; }

  .bot-card-grid { padding: 8px !important; gap: 10px !important; }
  .bot-card { padding: 12px; }

  .modal {
    max-height: 85vh;
    border-radius: 12px 12px 0 0;
  }
  .modal-body { padding: 12px; }

  .section-header { padding: 12px; }

  .configs-card-grid { padding: 8px; gap: 8px; }

  /* Hero button alignment */
  .lp-hero-btns { flex-direction: column; align-items: center; }
  .lp-btn-primary, .lp-btn-outline { width: 100%; max-width: 280px; text-align: center; }
}

/* ═══════════════════════════════════════════
   UNIFIED BOT CARD SYSTEM (User Dashboard v2)
   ═══════════════════════════════════════════ */

/* --- Card Grid --- */
.bot-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
}

/* --- Card Base --- */
.bot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.bot-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--text-muted), transparent);
  opacity: 0.3;
  transition: all 0.35s ease;
}

.bot-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* --- Online Card --- */
.bot-card--online {
  border-color: rgba(52, 211, 153, 0.2);
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.06),
              inset 0 0 30px rgba(52, 211, 153, 0.02);
  animation: cardPulse 3s ease-in-out infinite;
}

.bot-card--online::before {
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0.7;
}

.bot-card--online:hover {
  border-color: rgba(52, 211, 153, 0.35);
  box-shadow: 0 12px 40px rgba(52, 211, 153, 0.12),
              0 0 30px rgba(52, 211, 153, 0.08);
}

@keyframes cardPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(52, 211, 153, 0.06), inset 0 0 30px rgba(52, 211, 153, 0.02); }
  50% { box-shadow: 0 0 30px rgba(52, 211, 153, 0.12), inset 0 0 40px rgba(52, 211, 153, 0.04); }
}

/* --- Offline Card --- */
.bot-card--offline {
  opacity: 0.75;
}
.bot-card--offline:hover {
  opacity: 1;
}

/* --- Waiting Card (Beklemede) --- */
.bot-card--waiting {
  border-color: rgba(251, 191, 36, 0.2);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.06),
              inset 0 0 30px rgba(251, 191, 36, 0.02);
  animation: cardPulseWaiting 3s ease-in-out infinite;
}

.bot-card--waiting::before {
  background: linear-gradient(90deg, transparent, var(--yellow), transparent);
  opacity: 0.5;
}

.bot-card--waiting:hover {
  border-color: rgba(251, 191, 36, 0.35);
  box-shadow: 0 12px 40px rgba(251, 191, 36, 0.12),
              0 0 30px rgba(251, 191, 36, 0.08);
}

@keyframes cardPulseWaiting {
  0%, 100% { box-shadow: 0 0 20px rgba(251, 191, 36, 0.06), inset 0 0 30px rgba(251, 191, 36, 0.02); }
  50% { box-shadow: 0 0 30px rgba(251, 191, 36, 0.12), inset 0 0 40px rgba(251, 191, 36, 0.04); }
}

.bot-card--waiting .bc-status span { color: var(--yellow); }

.bc-dot-waiting {
  background: var(--yellow);
  box-shadow: 0 0 8px var(--yellow);
  animation: dotPulseWaiting 2s ease-in-out infinite;
}

@keyframes dotPulseWaiting {
  0%, 100% { box-shadow: 0 0 6px var(--yellow); }
  50% { box-shadow: 0 0 14px var(--yellow), 0 0 20px rgba(251, 191, 36, 0.3); }
}

/* --- Connect Button --- */
.bc-btn-connect {
  flex: 1;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.08)) !important;
  color: var(--yellow) !important;
  border: 1px solid rgba(251, 191, 36, 0.2) !important;
  font-weight: 600 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.25s ease !important;
}

.bc-btn-connect:hover {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(251, 191, 36, 0.15)) !important;
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.15) !important;
  transform: translateY(-1px);
}

/* --- Card Header (Status + Auth) --- */
.bc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bc-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.bc-dot-online {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: dotPulse 2s ease-in-out infinite;
}

.bc-dot-offline {
  background: var(--text-muted);
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 6px var(--green); }
  50% { box-shadow: 0 0 14px var(--green), 0 0 20px rgba(52, 211, 153, 0.3); }
}

.bot-card--online .bc-status span { color: var(--green); }
.bot-card--waiting .bc-status span { color: var(--yellow); }
.bot-card--offline .bc-status span { color: var(--text-muted); }

.bc-auth-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}
.bc-auth-ms {
  background: rgba(168, 237, 234, 0.15);
  color: var(--accent-primary);
  border: 1px solid rgba(168, 237, 234, 0.2);
}
.bc-auth-off {
  background: rgba(251, 191, 36, 0.1);
  color: var(--yellow);
  border: 1px solid rgba(251, 191, 36, 0.15);
}

/* --- Card Name --- */
.bc-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  line-height: 1.2;
}

/* --- Card Info (Server, Version) --- */
.bc-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bc-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.bc-info-icon {
  font-size: 13px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.bc-info-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-secondary);
}

/* --- Live Status (Health/Food bars + Position) --- */
.bc-live-status {
  background: rgba(52, 211, 153, 0.04);
  border: 1px solid rgba(52, 211, 153, 0.1);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bc-bar-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bc-bar-icon {
  font-size: 11px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.bc-bar-track {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.bc-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.bc-bar-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  width: 18px;
  text-align: right;
}

.bc-pos {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--cyan);
  margin-top: 2px;
}

/* --- Last Seen --- */
.bc-last-seen {
  font-size: 10px;
  color: var(--text-muted);
  font-style: italic;
}

/* --- Card Actions --- */
.bc-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid var(--border-color);
}

.bc-btn-manage {
  flex: 1;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.15), rgba(52, 211, 153, 0.08)) !important;
  color: var(--green) !important;
  border: 1px solid rgba(52, 211, 153, 0.2) !important;
  font-weight: 600 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.25s ease !important;
}

.bc-btn-manage:hover {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.25), rgba(52, 211, 153, 0.15)) !important;
  box-shadow: 0 4px 16px rgba(52, 211, 153, 0.15) !important;
  transform: translateY(-1px);
}

.bc-btn-edit {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-secondary) !important;
  min-width: 36px;
}
.bc-btn-edit:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--accent-primary) !important;
}

.bc-btn-delete {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-secondary) !important;
  min-width: 36px;
}
.bc-btn-delete:hover {
  background: rgba(248, 113, 113, 0.1) !important;
  color: var(--red) !important;
  border-color: rgba(248, 113, 113, 0.2) !important;
}

/* --- Responsive for cards --- */
@media (max-width: 640px) {
  .bot-card-grid {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 14px;
  }
}
@media (min-width: 1200px) {
  .bot-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ═══════════════════════════════════════════
   WHITELIST TAG SYSTEM
   ═══════════════════════════════════════════ */

.wl-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.wl-add-btn {
  white-space: nowrap;
  padding: 8px 16px !important;
  height: 42px;
  font-weight: 600 !important;
}

.wl-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  min-height: 0;
}

.wl-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(168, 237, 234, 0.1);
  border: 1px solid rgba(168, 237, 234, 0.2);
  border-radius: 8px;
  padding: 5px 8px 5px 10px;
  font-size: 12px;
  color: var(--accent-primary);
  font-weight: 500;
  transition: all 0.2s ease;
  animation: tagSlideIn 0.25s ease;
}

.wl-tag:hover {
  background: rgba(168, 237, 234, 0.15);
  border-color: rgba(168, 237, 234, 0.35);
  transform: translateY(-1px);
}

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

.wl-tag-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2px;
}

.wl-tag-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.15s ease;
  line-height: 1;
  padding: 0;
}

.wl-tag-remove:hover {
  background: rgba(248, 113, 113, 0.15);
  color: var(--red);
}

/* ═══════════════════════════════════════════
   STAT-SUB (Config 2/3 style)
   ═══════════════════════════════════════════ */
.stat-sub {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 2px;
}

/* ═══════════════════════════════════════════
   SETTINGS LAYOUT (Two-column)
   ═══════════════════════════════════════════ */
.settings-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.settings-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.settings-section {
  margin-bottom: 0;
}

.settings-form-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.settings-form-body .form-group {
  margin-bottom: 0;
}

.settings-form-body .btn {
  align-self: flex-start;
  padding: 8px 20px !important;
}

.settings-pw-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.settings-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  padding: 0;
}

.settings-info-item {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-color);
}

.settings-info-item:last-child,
.settings-info-item:nth-last-child(2):nth-child(odd) {
  border-bottom: none;
}

.settings-info-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.settings-info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .settings-pw-row {
    grid-template-columns: 1fr;
  }
  .settings-info-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════
   HEADER LOGO IMAGE
   ═══════════════════════════════════════════ */
.header-logo-img {
  height: 28px;
  width: 28px;
  object-fit: contain;
  border-radius: 50%;
}

/* ═══════════════════════════════════════════
   PAGINATION COMPONENT
   ═══════════════════════════════════════════ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 0 8px;
  flex-wrap: wrap;
}

.pagination-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.pagination-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.pagination-btn.active {
  background: rgba(168, 237, 234, 0.1);
  border-color: rgba(168, 237, 234, 0.25);
  color: var(--accent-primary);
  font-weight: 700;
}

.pagination-btn:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.pagination-dots {
  color: var(--text-muted);
  font-size: 12px;
  padding: 0 2px;
}

.pagination-info {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 8px;
  font-family: 'JetBrains Mono', monospace;
}
