/* ═══════════════════════════════════════════
   ZERO CLIENT — PANEL THEME
   LayerZero Inspired · Technical Minimalism
   ═══════════════════════════════════════════ */

@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: #000000;
  --bg-secondary: #0a0a0a;
  --bg-card: rgba(255, 255, 255, 0.02);
  --bg-card-hover: rgba(255, 255, 255, 0.04);
  --bg-glass: rgba(255, 255, 255, 0.015);
  --bg-input: rgba(255, 255, 255, 0.03);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 212, 255, 0.3);
  --text-primary: #e4e4e7;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  --accent-primary: #00d4ff;
  --accent-secondary: #00a3cc;
  --accent-glow: rgba(0, 212, 255, 0.08);
  --green: #00ff88;
  --green-dim: rgba(0, 255, 136, 0.06);
  --green-border: rgba(0, 255, 136, 0.18);
  --red: #ff4444;
  --red-dim: rgba(255, 68, 68, 0.06);
  --red-border: rgba(255, 68, 68, 0.18);
  --yellow: #ffaa00;
  --yellow-dim: rgba(255, 170, 0, 0.06);
  --yellow-border: rgba(255, 170, 0, 0.18);
  --cyan: #00d4ff;
  --cyan-dim: rgba(0, 212, 255, 0.06);
  --radius: 0px;
  --radius-sm: 0px;
  --radius-lg: 0px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.9);
  --transition: all 0.2s ease;
}

/* ── 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;
}

/* ═══════════════════════════════
   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);
  border: 1px solid var(--border-color);
  border-radius: 0;
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.5s ease-out;
}

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

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

.login-card .logo-icon {
  width: 56px;
  height: 56px;
  background: #fff;
  border-radius: 0;
  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: 2px;
  text-transform: uppercase;
  color: #fff;
}

.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: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.form-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 1px var(--accent-primary);
  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: 0;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  width: 100%;
  padding: 13px;
  background: #fff;
  color: #000;
  font-size: 13px;
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

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

.btn-success {
  background: rgba(0, 255, 136, 0.08);
  color: var(--green);
  border: 1px solid var(--green-border);
}

.btn-success:hover {
  background: rgba(0, 255, 136, 0.14);
}

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

.btn-danger:hover {
  background: rgba(255, 68, 68, 0.12);
}

.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.06);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

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

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

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

.login-error {
  background: var(--red-dim);
  border: 1px solid var(--red-border);
  color: var(--red);
  padding: 10px 14px;
  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.85);
  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: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.header-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
}

.header-title span {
  color: #fff;
}

.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: 6px;
  height: 6px;
  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: 1px;
  margin-bottom: 28px;
  background: var(--border-color);
  border: 1px solid var(--border-color);
}

.stat-card {
  background: var(--bg-primary);
  padding: 22px 24px;
  transition: var(--transition);
  position: relative;
}

.stat-card:hover {
  background: var(--bg-card-hover);
}

.stat-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.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-primary);
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
  overflow: hidden;
  position: relative;
}

.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: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.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: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  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: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.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: 5px;
  height: 5px;
  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;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
}

.key-text:hover {
  background: rgba(0, 212, 255, 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.8);
  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: #0a0a0a;
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 480px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8);
  transform: scale(0.95) translateY(20px);
  transition: var(--transition);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.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: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.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);
  padding: 16px;
  margin-top: 16px;
  display: none;
}

.result-box .result-label {
  font-size: 10px;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.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: 36px;
  margin-bottom: 12px;
  opacity: 0.4;
}

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

/* ── Tabs ── */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.tab {
  padding: 12px 24px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.tab.active {
  color: #fff;
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 1px;
  background: var(--accent-primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: tabSlideIn 0.25s ease;
}

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

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

.toast {
  background: #0a0a0a;
  border: 1px solid var(--border-color);
  padding: 14px 20px;
  font-size: 13px;
  color: var(--text-primary);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  animation: slideInRight 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
}

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

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

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.15); }

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

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

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

.pagination-btn.active {
  background: var(--accent-glow);
  color: var(--accent-primary);
  border-color: rgba(0, 212, 255, 0.25);
  font-weight: 700;
}

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

.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; }

/* ── 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;
}

.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: 8px; height: 8px; border-radius: 50%; }
.dot-red { background: #ff4444; }
.dot-yellow { background: #ffaa00; }
.dot-green { background: #00ff88; }
.manage-section-icon { font-size: 13px; }
.manage-section-label {
  color: var(--text-muted);
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.manage-section-badge {
  margin-left: auto;
  background: var(--accent-glow);
  color: var(--accent-primary);
  font-size: 10px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  padding: 2px 8px;
  border: 1px solid rgba(0, 212, 255, 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: #000;
  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;
}

.cmd-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(0,0,0,0.5);
  border-top: 1px solid rgba(255,255,255,0.04);
}
.cmd-prefix {
  color: var(--accent-primary);
  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.02);
  border: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
}
.player-item:hover {
  background: rgba(255,255,255,0.04);
  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(--accent-primary);
  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: 11px; color: var(--text-muted); white-space: nowrap; min-width: 70px; flex-shrink: 0; text-transform: uppercase; letter-spacing: 0.5px; }
.status-bar-wrap { flex: 1; height: 4px; background: rgba(255,255,255,0.06); overflow: hidden; min-width: 40px; }
.status-bar { height: 100%; transition: width 0.5s ease, background 0.5s ease; }
.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 ── */
.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; }

.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: 1px;
  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(0, 212, 255, 0.03); }
.inv-row-spawner { background: rgba(255, 170, 0, 0.04); border-left: 2px solid var(--yellow); }
.inv-row-spawner:hover { background: rgba(255, 170, 0, 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; padding: 2px; line-height: 1; }
.inv-drop-btn:hover { opacity: 1; }
.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); 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(255,68,68,0.1); color: var(--red); border: 1px solid rgba(255,68,68,0.2); padding: 5px 14px; font-size: 11px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.inv-drop-submit:hover { background: rgba(255,68,68,0.2); border-color: rgba(255,68,68,0.4); }

/* ── Set Home Button ── */
.btn-set-home {
  background: var(--accent-glow);
  color: var(--accent-primary);
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn-set-home:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.35);
}

/* ── 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: 1px solid rgba(255, 255, 255, 0.06); }
.last-signal-icon { font-size: 12px; }
.last-signal-label { font-size: 10px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.last-signal-value { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; color: var(--green); }

.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: 8px; height: 8px; 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(0, 212, 255, 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-primary); padding: 18px 24px; text-align: center; }
.chart-stat-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; 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
   ═══════════════════════════════════════ */

.configs-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px;
  padding: 0;
  background: var(--border-color);
}

.config-card {
  background: var(--bg-primary);
  border: none;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.config-card:hover {
  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: 13px; color: var(--accent-primary); text-transform: uppercase; letter-spacing: 0.5px; }
.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; text-transform: uppercase; font-size: 10px; letter-spacing: 0.5px; }

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

.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: 14px;
  height: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.3);
  font-size: 9px;
  font-weight: 700;
  cursor: help;
  margin-left: 6px;
  flex-shrink: 0;
  transition: all 0.2s;
  vertical-align: middle;
}
.info-tip:hover { background: rgba(0, 212, 255, 0.12); color: var(--accent-primary); }

.info-tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  font-weight: 400;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 100;
  max-width: 260px;
  line-height: 1.4;
  text-align: left;
  box-shadow: 0 4px 16px rgba(0,0,0,0.6);
  text-transform: none;
  letter-spacing: 0;
}
.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);
  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);
  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);
  transition: all 0.3s ease;
}
.toggle-label input[type="checkbox"]:checked + .toggle-switch {
  background: rgba(0, 212, 255, 0.2);
  border-color: rgba(0, 212, 255, 0.35);
}
.toggle-label input[type="checkbox"]:checked + .toggle-switch::after {
  left: 20px;
  background: var(--accent-primary);
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

/* Settings Layout */
.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; background: var(--border-color); }
.settings-info-item { padding: 16px 20px; background: var(--bg-primary); border: none; }
.settings-info-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 6px; }
.settings-info-value { font-size: 14px; font-weight: 600; color: var(--text-primary); }

/* Header user */
.header-user { display: flex; align-items: center; gap: 8px; }
.header-username { font-size: 12px; font-weight: 600; color: var(--accent-primary); background: var(--accent-glow); padding: 4px 12px; }

/* Lang toggle (header) */
.lang-toggle { display: flex; align-items: center; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); padding: 2px; cursor: pointer; user-select: none; position: relative; gap: 0; }
.lang-toggle-option { font-size: 10px; font-weight: 700; letter-spacing: 1px; padding: 4px 10px; 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: 2px; left: 2px; width: calc(50% - 2px); height: calc(100% - 4px); background: #fff; 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); }

/* Header logo image */
.header-logo-img { height: 28px; width: 28px; object-fit: contain; }

/* ═══════════════════════════════════════════
   UNIFIED BOT CARD SYSTEM 
   ═══════════════════════════════════════════ */

.bot-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  padding: 0;
  background: var(--border-color);
}

.bot-card {
  background: var(--bg-primary);
  border: none;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: var(--transition);
  position: relative;
}

.bot-card:hover {
  background: var(--bg-card-hover);
}

/* Online Card */
.bot-card--online {
  border-left: 2px solid var(--green);
}
.bot-card--online:hover {
  background: rgba(0, 255, 136, 0.02);
}

@keyframes cardPulse {
  0%, 100% { border-left-color: var(--green); }
  50% { border-left-color: rgba(0, 255, 136, 0.4); }
}

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

/* Waiting Card */
.bot-card--waiting {
  border-left: 2px solid var(--yellow);
  animation: cardPulseWaiting 3s ease-in-out infinite;
}
.bot-card--waiting:hover { background: rgba(255, 170, 0, 0.02); }

@keyframes cardPulseWaiting {
  0%, 100% { border-left-color: var(--yellow); }
  50% { border-left-color: rgba(255, 170, 0, 0.4); }
}

.bot-card--waiting .bc-status span { color: var(--yellow); }
.bc-dot-waiting { background: var(--yellow); box-shadow: 0 0 6px var(--yellow); animation: dotPulseWaiting 2s ease-in-out infinite; }
@keyframes dotPulseWaiting { 0%, 100% { box-shadow: 0 0 4px var(--yellow); } 50% { box-shadow: 0 0 10px var(--yellow); } }

/* Connect Button */
.bc-btn-connect {
  flex: 1;
  background: rgba(255, 170, 0, 0.08) !important;
  color: var(--yellow) !important;
  border: 1px solid rgba(255, 170, 0, 0.18) !important;
  font-weight: 700 !important;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  transition: all 0.2s ease !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.bc-btn-connect:hover { background: rgba(255, 170, 0, 0.14) !important; }

/* Card Header */
.bc-header { display: flex; justify-content: space-between; align-items: center; }
.bc-status { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.bc-status-dot { width: 6px; height: 6px; border-radius: 50%; }
.bc-dot-online { background: var(--green); box-shadow: 0 0 6px var(--green); animation: dotPulse 2s ease-in-out infinite; }
.bc-dot-offline { background: var(--text-muted); }
@keyframes dotPulse { 0%, 100% { box-shadow: 0 0 4px var(--green); } 50% { box-shadow: 0 0 10px var(--green); } }

.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: 700; padding: 2px 8px; letter-spacing: 0.5px; text-transform: uppercase; }
.bc-auth-ms { background: var(--accent-glow); color: var(--accent-primary); border: 1px solid rgba(0, 212, 255, 0.18); }
.bc-auth-off { background: var(--yellow-dim); color: var(--yellow); border: 1px solid var(--yellow-border); }

.bc-name { font-size: 17px; font-weight: 700; color: var(--text-primary); letter-spacing: 0.5px; line-height: 1.2; text-transform: uppercase; }

.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); }

.bc-live-status {
  background: rgba(0, 255, 136, 0.03);
  border: 1px solid rgba(0, 255, 136, 0.08);
  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: 3px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.bc-bar-fill { height: 100%; 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(--accent-primary); margin-top: 2px; }
.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: rgba(0, 255, 136, 0.06) !important;
  color: var(--green) !important;
  border: 1px solid rgba(0, 255, 136, 0.15) !important;
  font-weight: 700 !important;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  transition: all 0.2s ease !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.bc-btn-manage:hover { background: rgba(0, 255, 136, 0.12) !important; }

.bc-btn-edit { background: rgba(255, 255, 255, 0.03) !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.06) !important; color: var(--accent-primary) !important; }

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

/* ═══════════════════════════════════════════
   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: 700 !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: var(--accent-glow);
  border: 1px solid rgba(0, 212, 255, 0.18);
  padding: 4px 8px 4px 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(0, 212, 255, 0.12); border-color: rgba(0, 212, 255, 0.3); }
@keyframes tagSlideIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.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; transition: all 0.15s ease; line-height: 1; padding: 0; }
.wl-tag-remove:hover { background: rgba(255, 68, 68, 0.12); color: var(--red); }

/* ── Stat-Sub ── */
.stat-sub { font-size: 16px; font-weight: 400; color: var(--text-muted); margin-left: 2px; }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

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

@media (max-width: 768px) {
  .header { padding: 0 12px; height: 56px; gap: 8px; }
  .header-left { gap: 8px; }
  .header-title { font-size: 12px; }
  .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: 24px; height: 24px; }
  .lang-toggle { padding: 2px; }
  .lang-toggle-option { padding: 3px 8px; font-size: 9px; }

  .main-content { padding: 12px; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1px; }
  .stat-card { padding: 14px 12px; }
  .stat-value { font-size: 22px; }
  .stat-label { font-size: 9px; }
  .stat-sub { font-size: 14px; }

  .tabs { gap: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; flex-wrap: nowrap; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { font-size: 11px; padding: 10px 16px; white-space: nowrap; flex-shrink: 0; }

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

  .bot-card-grid { grid-template-columns: 1fr !important; gap: 1px; padding: 0; }
  .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; }

  .configs-card-grid { grid-template-columns: 1fr; padding: 0; gap: 1px; }
  .config-card { padding: 14px; }
  .config-form-grid { grid-template-columns: 1fr; }

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

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

  .manage-grid { grid-template-columns: 1fr !important; gap: 12px; }
  .manage-body { padding: 12px; }
  .manage-header-right { flex-wrap: wrap; gap: 6px; }
  .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; }
  .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; }
  .console-body { max-height: 250px; font-size: 11px; }

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

  .login-card { margin: 12px; padding: 28px 20px; }
  .pagination { gap: 2px; 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-layout { grid-template-columns: 1fr; }
  .settings-pw-row { grid-template-columns: 1fr; }
  .settings-info-grid { grid-template-columns: 1fr; }
  .last-signal-wrap { display: none; }
  .form-group label { font-size: 10px; }
}

@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: 1px; }
  .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: 10px; padding: 8px 12px; }
  .bot-card-grid { padding: 0 !important; gap: 1px !important; }
  .bot-card { padding: 14px; }
  .modal { max-height: 85vh; }
  .modal-body { padding: 12px; }
  .section-header { padding: 12px; }
  .configs-card-grid { padding: 0; gap: 1px; }
  .lp-hero-btns { flex-direction: column; align-items: center; }
  .lp-btn-primary, .lp-btn-outline { width: 100%; max-width: 280px; text-align: center; }
}

@media (min-width: 1200px) {
  .bot-card-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ═══════════════════════════════════════════
   PAGE TRANSITIONS
   ═══════════════════════════════════════════ */

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.2s ease both; }
::view-transition-new(root) { animation: vt-in 0.25s ease both; }
@keyframes vt-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } to { opacity: 1; } }

.page-fade-in { animation: pageLoad 0.3s ease both; }
@keyframes pageLoad { from { opacity: 0; } to { opacity: 1; } }

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.4s ease, transform 0.4s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.05s; }
.reveal-delay-2 { transition-delay: 0.10s; }
.reveal-delay-3 { transition-delay: 0.15s; }
.reveal-delay-4 { transition-delay: 0.20s; }
.reveal-delay-5 { transition-delay: 0.25s; }

/* Table row stagger */
@keyframes rowFadeIn { from { opacity: 0; } to { opacity: 1; } }
tbody tr { animation: rowFadeIn 0.15s ease both; }
tbody tr:nth-child(1) { animation-delay: 0.00s; }
tbody tr:nth-child(2) { animation-delay: 0.02s; }
tbody tr:nth-child(3) { animation-delay: 0.04s; }
tbody tr:nth-child(4) { animation-delay: 0.06s; }
tbody tr:nth-child(5) { animation-delay: 0.08s; }
tbody tr:nth-child(6) { animation-delay: 0.10s; }
tbody tr:nth-child(7) { animation-delay: 0.12s; }
tbody tr:nth-child(8) { animation-delay: 0.14s; }
tbody tr:nth-child(9) { animation-delay: 0.16s; }
tbody tr:nth-child(10) { animation-delay: 0.18s; }

/* Stat cards */
.stat-card { animation: cardIn 0.3s ease both; }
.stats-grid .stat-card:nth-child(1) { animation-delay: 0.05s; }
.stats-grid .stat-card:nth-child(2) { animation-delay: 0.10s; }
.stats-grid .stat-card:nth-child(3) { animation-delay: 0.15s; }
.stats-grid .stat-card:nth-child(4) { animation-delay: 0.20s; }
.stats-grid .stat-card:nth-child(5) { animation-delay: 0.25s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.modal-overlay.active .modal { transform: scale(1) translateY(0); transition: transform 0.25s ease, opacity 0.2s ease; }
.modal-overlay { transition: opacity 0.2s ease, visibility 0.2s ease; }

.btn:active { transform: scale(0.97) !important; transition: transform 0.08s ease !important; }
.sp-link { transition: color 0.15s ease !important; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fade-in { animation: fadeIn 0.3s ease both; }

.section { animation: sectionIn 0.3s ease both; }
@keyframes sectionIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ═══════════════════════════════════════════
   LOG ACTION BADGES
   ═══════════════════════════════════════════ */
.log-action {
  display: inline-block;
  padding: 3px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.log-action.login, .log-action.panel_login { background: var(--green-dim); color: var(--green); border-color: var(--green-border); }
.log-action.denied, .log-action.panel_denied, .log-action.config_delete { background: var(--red-dim); color: var(--red); border-color: var(--red-border); }
.log-action.disconnect { background: rgba(255, 170, 0, 0.06); color: var(--yellow); border-color: var(--yellow-border); }
.log-action.created, .log-action.config_create { background: var(--accent-glow); color: var(--accent-primary); border-color: rgba(0, 212, 255, 0.18); }
.log-action.config_update, .log-action.hwid_update, .log-action.discount, .log-action.price { background: var(--yellow-dim); color: var(--yellow); border-color: var(--yellow-border); }
.log-action.settings { background: rgba(100, 100, 255, 0.06); color: #8888ff; border-color: rgba(100, 100, 255, 0.18); }
.log-action.discord_link, .log-action.discord_unlink { background: rgba(96, 165, 250, 0.06); color: #60a5fa; border-color: rgba(96, 165, 250, 0.18); }
.log-action.heartbeat { background: rgba(255, 255, 255, 0.03); color: rgba(255, 255, 255, 0.3); border-color: rgba(255, 255, 255, 0.05); }
