:root {
  --bg: #080d1a;
  --bg-2: #0d1424;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-2: rgba(255, 255, 255, 0.07);
  --panel-hover: rgba(255, 255, 255, 0.09);
  --text: rgba(255, 255, 255, 0.95);
  --muted: rgba(255, 255, 255, 0.6);
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.12);
  --brand: #8b5cf6;
  --brand-light: #a78bfa;
  --brand-2: #22d3ee;
  --brand-3: #10b981;
  --accent: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 50%, #10b981 100%);
  --accent-soft: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(6, 182, 212, 0.15) 50%, rgba(16, 185, 129, 0.1) 100%);
  --danger: #f43f5e;
  --danger-soft: rgba(244, 63, 94, 0.15);
  --warning: #f59e0b;
  --success: #10b981;
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 60px rgba(139, 92, 246, 0.15);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
}

* { box-sizing: border-box; }

html, body {
  padding: 0;
  margin: 0;
  min-height: 100vh;
  background: 
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(139, 92, 246, 0.25), transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 0%, rgba(6, 182, 212, 0.2), transparent 45%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(16, 185, 129, 0.12), transparent 40%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--text);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(8, 13, 26, 0.75);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 13px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.link {
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
}

.link.active,
.link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.hero {
  padding: 56px 0 26px;
}

.hero-card {
  position: relative;
  border: 1px solid var(--border-light);
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  box-shadow: var(--shadow), var(--shadow-glow);
  border-radius: var(--radius);
  padding: 32px;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.h-title {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.08;
  margin: 0 0 10px;
}

.h-sub {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:hover { 
  background: rgba(255, 255, 255, 0.08); 
  border-color: rgba(255, 255, 255, 0.2);
  text-decoration: none; 
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn.primary {
  border: none;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn.primary:hover {
  background: linear-gradient(135deg, #9d6eff 0%, #8b5cf6 100%);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn.btn-danger {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-soft);
}

.btn.btn-danger:hover {
  background: var(--danger);
  color: white;
}

.btn.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.btn.btn-accent {
  border: none;
  background: var(--accent);
  color: white;
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  padding: 18px 0 46px;
}

.card {
  grid-column: span 4;
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  padding: 20px;
  transition: all 0.3s ease;
}

.card:hover { 
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.04) 100%);
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.badge-featured {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  font-weight: 600;
}

.empty-state {
  grid-column: span 12;
  text-align: center;
  padding: 40px;
  color: var(--muted);
}

.kv {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12px;
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  padding: 18px 0 46px;
}

.panel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  padding: 24px;
  backdrop-filter: blur(10px);
}

.panel h2 { 
  margin: 0 0 16px; 
  font-size: 18px; 
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel h2::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--accent);
  border-radius: 2px;
}

.panel h3 { margin: 20px 0 10px; font-size: 15px; color: rgba(255,255,255,0.9); font-weight: 600; }
.panel p, .panel li { color: var(--muted); line-height: 1.6; }

.table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.table th, .table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.table th { color: rgba(255,255,255,0.82); font-weight: 700; background: rgba(255, 255, 255, 0.04); }
.table td { color: var(--muted); }

.form { margin-top: 10px; }

.field { display: block; margin-bottom: 12px; }
.field.checkbox { display: flex; align-items: center; gap: 10px; }

.label { font-size: 12px; color: rgba(255,255,255,0.82); font-weight: 700; margin-bottom: 6px; }
.help { margin-top: 6px; font-size: 12px; color: var(--muted); }

.input, .textarea, select.input {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  padding: 12px 14px;
  outline: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

.input:focus, .textarea:focus, select.input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
  background: rgba(255,255,255,0.05);
}

.input::placeholder, .textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.textarea { resize: vertical; min-height: 100px; }

select.input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='rgba(255,255,255,0.6)' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.grid-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 26px 0;
  color: var(--muted);
}

@media (max-width: 920px) {
  .card { grid-column: span 6; }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .card { grid-column: span 12; }
  .grid-form { grid-template-columns: 1fr; }
}

/* ===== ADMIN STYLES ===== */

.drop-zone {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.02);
}

.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--brand);
  background: rgba(139, 92, 246, 0.08);
}

.drop-zone-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.6;
}

.drop-zone-text {
  color: var(--muted);
  font-size: 14px;
}

.drop-zone-text strong {
  color: var(--brand-light);
}

.file-selected {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-sm);
  margin-top: 12px;
}

.file-icon {
  font-size: 24px;
}

.file-details {
  flex: 1;
  text-align: left;
}

.file-details strong {
  display: block;
  font-size: 14px;
}

.file-details small {
  color: var(--muted);
  font-size: 12px;
}

.btn-remove {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(244, 63, 94, 0.2);
  color: var(--danger);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-remove:hover {
  background: var(--danger);
  color: white;
}

.preview-box {
  padding: 12px 16px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-sm);
  margin-top: 12px;
}

.preview-box small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.preview-box code {
  display: block;
  color: var(--brand-light);
  font-size: 14px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  word-break: break-all;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-error {
  background: linear-gradient(135deg, #f43f5e 0%, #dc2626 100%);
}

.toast-info {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.text-muted {
  color: var(--muted);
}

.software-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.software-item {
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.software-item:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--border-light);
}

.software-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.software-item p {
  margin: 0 0 10px;
  font-size: 13px;
}

/* Admin specific badge */
.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(6, 182, 212, 0.15) 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 999px;
  font-size: 12px;
  color: var(--brand-light);
  font-weight: 600;
}

/* Stats cards */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  padding: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* Checkbox styling */
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--border-light);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  accent-color: var(--brand);
}

/* Code blocks */
code {
  padding: 2px 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
}

/* Status cards */
.status-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
}

.status-icon {
  font-size: 18px;
}

.status-connected {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.status-disconnected {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}

.status-error {
  background: var(--danger-soft);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: var(--danger);
}

/* Upload progress */
.upload-progress {
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-sm);
}

.upload-progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
}

.upload-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* Mode toggle */
.mode-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.mode-btn {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.mode-btn:hover {
  background: rgba(255,255,255,0.04);
}

.mode-btn.active {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--brand);
  color: var(--brand-light);
}

/* ===== HOMEPAGE STYLES ===== */

.hero-main {
  text-align: center;
  position: relative;
}

.hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.gradient-text {
  background: linear-gradient(135deg, #fff 0%, #a78bfa 50%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-mini {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.stat-mini .stat-value {
  font-size: 24px;
  font-weight: 700;
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-mini .stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-top: 20px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
  padding-bottom: 40px;
}

.feature-card {
  padding: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.03) 100%);
  border-color: var(--border-light);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.feature-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.featured-card {
  position: relative;
  overflow: hidden;
}

.featured-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: white;
}

/* Footer styles */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text);
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--brand-light);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

/* Software cards */
.software-card {
  padding: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.software-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.software-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

/* Docs Horizontal Tabs - Categorías y Subcategorías */
.docs-tabs-section {
  background: linear-gradient(180deg, rgba(13, 20, 36, 0.95) 0%, rgba(8, 13, 26, 0.9) 100%);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 60px;
  z-index: 90;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.docs-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 0;
  overflow-x: auto;
}

/* Categoría completa */
.docs-category {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.docs-category:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-light);
}

/* Header de categoría */
.category-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.category-icon {
  font-size: 16px;
  line-height: 1;
}

.category-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--brand-light);
}

/* Subcategorías (tabs) */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.docs-tabs .tab {
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.docs-tabs .tab:hover {
  background: rgba(139, 92, 246, 0.15);
  color: var(--text);
  text-decoration: none;
  transform: translateY(-1px);
  border-color: rgba(139, 92, 246, 0.3);
}

.docs-tabs .tab.active {
  background: var(--accent);
  border-color: transparent;
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(139, 92, 246, 0.4);
}

.docs-wrapper {
  padding: 32px 0 48px;
  max-width: 900px;
  margin: 0 auto;
}

.docs-content {
  min-width: 0;
}

.docs-content h2 {
  font-size: 24px;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.docs-content h3 {
  font-size: 18px;
  margin: 32px 0 12px;
  color: var(--brand-light);
}

.docs-content p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.docs-content ul, .docs-content ol {
  color: var(--muted);
  padding-left: 24px;
  margin-bottom: 16px;
}

.docs-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.docs-content pre {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  overflow-x: auto;
  margin-bottom: 16px;
}

.docs-content code {
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.docs-content pre code {
  background: none;
  padding: 0;
  font-size: 13px;
  color: #e2e8f0;
}

.callout {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.callout-info {
  background: rgba(139, 92, 246, 0.1);
  border-left: 4px solid var(--brand);
}

.callout-warning {
  background: rgba(245, 158, 11, 0.1);
  border-left: 4px solid #f59e0b;
}

.callout-success {
  background: rgba(16, 185, 129, 0.1);
  border-left: 4px solid #10b981;
}

.callout p {
  margin: 0;
}

/* Docs Navigation Sections */
.docs-nav .nav-section {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  padding: 16px 14px 6px;
  margin-top: 8px;
  opacity: 0.7;
}

.docs-nav .nav-section:first-child {
  margin-top: 0;
  padding-top: 0;
}

/* Plugin Section Headers */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-header h2 {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.plugin-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: white;
}

/* Detection Grid for MushhXel */
.detection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.detection-card {
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.detection-card h4 {
  font-size: 16px;
  margin: 0 0 12px;
  color: var(--brand-light);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.detection-card ul {
  margin: 0;
  padding-left: 18px;
}

.detection-card li {
  font-size: 13px;
  margin-bottom: 6px;
}

/* Docs Tables Enhancement */
.docs-content .table {
  width: 100%;
  margin: 16px 0 24px;
  font-size: 14px;
}

.docs-content .table th {
  background: rgba(139, 92, 246, 0.15);
  text-align: left;
  padding: 12px;
  font-weight: 600;
}

.docs-content .table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.docs-content .table tr:hover td {
  background: rgba(255,255,255,0.02);
}

/* Responsive */
@media (max-width: 920px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .docs-tabs {
    gap: 12px;
    flex-direction: column;
  }
  .docs-category {
    width: 100%;
  }
  .category-tabs {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .stats-row {
    flex-direction: column;
    gap: 8px;
  }
}
