/* Blitzverse Network - Dark Theme */
:root {
  --bg: #09090b;
  --bg-card: #0f0f13;
  --bg-muted: #18181f;
  --border: #27272f;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --primary: #8b5cf6;
  --primary-hover: #7c3aed;
  --accent: #a78bfa;
  --online: #34d399;
  --offline: #ef4444;
  --radius: 12px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9,9,11,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), #6d28d9);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.nav-logo-text {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #c084fc, #e879f9, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links { display: flex; gap: 0.25rem; list-style: none; }

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: rgba(139,92,246,0.1);
}

.nav-right { display: flex; align-items: center; gap: 0.75rem; }

/* Mobile menu */
.mobile-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 0.5rem; }

@media (max-width: 1024px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-card); border-bottom: 1px solid var(--border); flex-direction: column; padding: 1rem; gap: 0.5rem; }
  .nav-links.show { display: flex; }
  .mobile-toggle { display: block; }
  .nav-links a { padding: 0.75rem 1rem; }
}

@media (max-width: 640px) {
  .nav-links-desktop-sm { display: none !important; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #6d28d9);
  color: white;
}

.btn-primary:hover { background: linear-gradient(135deg, #7c3aed, #5b21b6); transform: translateY(-1px); }

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

.btn-outline:hover { background: var(--bg-muted); }

.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
.btn-xs { padding: 0.25rem 0.5rem; font-size: 0.6875rem; }

.btn-danger { background: rgba(239,68,68,0.1); color: #ef4444; }
.btn-danger:hover { background: rgba(239,68,68,0.2); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 0.5rem;
}
.btn-ghost:hover { color: var(--text); background: var(--bg-muted); }

/* Hero */
.hero {
  position: relative;
  padding: 5rem 1.5rem;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(139,92,246,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--online);
  border-radius: 50%;
  position: relative;
}

.hero-badge .dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--online);
  animation: ping 1.5s cubic-bezier(0,0,0.2,1) infinite;
}

@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #c084fc, #e879f9, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.hero-buttons { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* Stats bar */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  padding: 2rem 1.5rem;
}

.stats-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #c084fc, #e879f9, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }

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

/* Section */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-header { text-align: center; margin-bottom: 3rem; }

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #c084fc, #e879f9, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.section-header p { color: var(--text-muted); font-size: 0.875rem; max-width: 480px; margin: 0 auto; }

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
}

.card:hover {
  border-color: rgba(139,92,246,0.3);
  box-shadow: 0 4px 20px rgba(139,92,246,0.1);
}

.card-body { padding: 1.25rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

/* Game mode card */
.gm-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gm-title { font-weight: 600; font-size: 1rem; }

.gm-desc { font-size: 0.8125rem; color: var(--text-muted); margin-top: 0.25rem; line-height: 1.5; }

.gm-meta { display: flex; gap: 1rem; margin-top: 0.75rem; font-size: 0.6875rem; color: var(--text-muted); }

.gm-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }

.gm-tag {
  padding: 0.25rem 0.625rem;
  background: rgba(139,92,246,0.1);
  color: var(--primary);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 999px;
  font-size: 0.6875rem;
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.team-card { text-align: center; padding: 1.5rem 1rem; }

.team-card img {
  width: 64px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto;
  image-rendering: pixelated;
}

.team-name { font-weight: 600; font-size: 0.9375rem; margin-top: 0.75rem; }

.team-role { font-size: 0.6875rem; font-weight: 500; margin-top: 0.25rem; }

/* Role colors */
.role-admin { color: #ef4444; }
.role-developer { color: #06b6d4; }
.role-moderator { color: #8b5cf6; }
.role-supporter { color: #10b981; }
.role-builder { color: #f59e0b; }
.role-test-supporter { color: #34d399; }
.role-test-moderator { color: #a78bfa; }
.role-test-developer { color: #22d3ee; }
.role-user { color: var(--text-muted); }

/* Server status */
.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

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

.status-online { background: var(--online); box-shadow: 0 0 6px rgba(52,211,153,0.4); }
.status-offline { background: var(--offline); }

.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-muted);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), #6d28d9);
  transition: width 0.5s;
}

/* Specs grid */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

/* Forms */
.form-group { margin-bottom: 1rem; }

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: var(--text);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.875rem;
  transition: border-color 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}

.form-textarea { min-height: 120px; resize: vertical; }

.form-select { cursor: pointer; }

.form-select option { background: var(--bg-card); color: var(--text); }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--primary);
}

/* Forum */
.forum-filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }

.filter-btn {
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  border: none;
  background: var(--bg-muted);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: white;
}

.forum-post { padding: 1rem 1.25rem; }

.post-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.375rem; flex-wrap: wrap; }

.post-category {
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 600;
  border: 1px solid;
}

.cat-news { background: rgba(59,130,246,0.1); color: #60a5fa; border-color: rgba(59,130,246,0.2); }
.cat-update { background: rgba(16,185,129,0.1); color: #34d399; border-color: rgba(16,185,129,0.2); }
.cat-event { background: rgba(245,158,11,0.1); color: #fbbf24; border-color: rgba(245,158,11,0.2); }
.cat-guide { background: rgba(139,92,246,0.1); color: #a78bfa; border-color: rgba(139,92,246,0.2); }
.cat-other { background: rgba(113,113,122,0.1); color: #a1a1aa; border-color: rgba(113,113,122,0.2); }

.post-title { font-weight: 600; font-size: 0.9375rem; }

.post-content { font-size: 0.8125rem; color: var(--text-muted); margin-top: 0.25rem; line-height: 1.5; white-space: pre-line; }

.post-footer { display: flex; align-items: center; gap: 1rem; margin-top: 0.75rem; font-size: 0.6875rem; color: var(--text-muted); }

.like-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.6875rem;
  transition: color 0.2s;
}

.like-btn:hover, .like-btn.liked { color: var(--primary); }

/* Chat */
.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  min-height: 400px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.chat-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-message {
  max-width: 80%;
  padding: 0.625rem 0.875rem;
  border-radius: 10px;
  font-size: 0.8125rem;
}

.chat-message.staff { align-self: flex-start; background: rgba(139,92,246,0.1); }
.chat-message.visitor { align-self: flex-end; background: var(--bg-muted); }

.chat-message .msg-meta { font-size: 0.625rem; color: var(--primary); margin-bottom: 0.25rem; display: flex; gap: 0.5rem; }

.chat-input-bar {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
}

.chat-input-bar .form-input { flex: 1; }

/* Admin */
.admin-tabs { display: flex; gap: 0.25rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }

.admin-tab {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.admin-tab:hover { color: var(--text); }
.admin-tab.active { color: var(--primary); background: rgba(139,92,246,0.1); }

.admin-panel { display: none; }
.admin-panel.active { display: block; }

.table-row {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr 1fr auto;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
  font-size: 0.8125rem;
}

.table-header {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: rgba(255,255,255,0.02);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.show { display: flex; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-header h3 { font-size: 1rem; }

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.25rem;
  padding: 0.25rem;
}

.modal-body { padding: 1.25rem 1.5rem; }

/* Toast */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  animation: toastIn 0.3s ease;
  max-width: 320px;
}

.toast-success { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
.toast-error { background: rgba(239,68,68,0.15); color: #ef4444; border: 1px solid rgba(239,68,68,0.2); }

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

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.01);
  padding: 2.5rem 1.5rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer h4 {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.footer a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.footer a:hover { color: var(--text); }

.footer-bottom {
  max-width: 1280px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

/* Utility */
.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(135deg, #c084fc, #e879f9, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.gap-4 { gap: 1rem; }

@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.max-w-md { max-width: 448px; margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 672px; margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 896px; margin-left: auto; margin-right: auto; }
.max-w-7xl { max-width: 1280px; margin-left: auto; margin-right: auto; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }

.space-y > * + * { margin-top: 0.75rem; }

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Login page */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
}

.login-page::before {
  content: '';
  position: absolute;
  top: 25%; left: 25%;
  width: 400px; height: 400px;
  background: rgba(139,92,246,0.05);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.login-page::after {
  content: '';
  position: absolute;
  bottom: 25%; right: 25%;
  width: 400px; height: 400px;
  background: rgba(168,85,247,0.05);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

/* PINNED */
.pin-icon { color: #fbbf24; flex-shrink: 0; }

/* Select input styling */
select.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

/* Loading */
.skeleton {
  background: linear-gradient(90deg, var(--bg-muted) 25%, var(--bg-card) 50%, var(--bg-muted) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
  border-radius: 8px;
}

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* CTA section */
.cta-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(109,40,217,0.1));
  border: 1px solid rgba(139,92,246,0.2);
  padding: 3rem 2rem;
  text-align: center;
}

/* Page title */
.page-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, #c084fc, #e879f9, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.page-subtitle { color: var(--text-muted); font-size: 0.875rem; max-width: 480px; }

/* ─── PANEL ─── */
.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1rem;
}

.panel-server-card {
  transition: transform 0.15s, box-shadow 0.15s;
}

.panel-server-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.panel-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
  overflow-x: auto;
}

.panel-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  font-family: var(--font);
}

.panel-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

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

/* Panel Console */
.panel-console {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 280px);
  min-height: 400px;
}

.console-output {
  flex: 1;
  background: #0a0a0f;
  border: 1px solid var(--border);
  border-radius: 8px 8px 0 0;
  padding: 0.75rem;
  overflow-y: auto;
  font-family: 'Courier New', monospace;
}

.console-output pre {
  white-space: pre-wrap;
  word-break: break-all;
}

.console-input-bar {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.console-input-bar .form-input {
  flex: 1;
  background: var(--bg);
}

/* Panel Files */
.panel-files {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
}

.panel-breadcrumb {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.panel-breadcrumb span {
  cursor: pointer;
  color: var(--primary);
}

.panel-breadcrumb span:hover {
  text-decoration: underline;
}

.files-list {
  max-height: calc(100vh - 300px);
  overflow-y: auto;
}

.file-row {
  transition: background 0.15s;
}

.file-row:hover {
  background: rgba(139, 92, 246, 0.05);
}

/* Responsive Panel */
@media (max-width: 768px) {
  .panel-grid {
    grid-template-columns: 1fr;
  }
  .panel-console {
    height: calc(100vh - 220px);
  }
}
