/* =============================================
   MARKOVQUERY - Main CSS
   Red-Black gradient theme + Starfield
   ============================================= */

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #141414;
  --bg-sidebar: #0d0d0d;
  --red-primary: #e01e37;
  --red-dark: #9b1220;
  --red-glow: rgba(224, 30, 55, 0.3);
  --red-glow-light: rgba(224, 30, 55, 0.15);
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #555555;
  --border-color: rgba(224, 30, 55, 0.2);
  --border-subtle: rgba(255,255,255,0.05);
  --gradient-red: linear-gradient(135deg, #e01e37 0%, #9b1220 100%);
  --gradient-dark: linear-gradient(180deg, #1a0a0a 0%, #0a0a0a 100%);
  --sidebar-width: 260px;
  --topbar-height: 56px;
  --font: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html { font-size: 14px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--red-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--red-primary); }

/* =============================================
   STARFIELD CANVAS
   ============================================= */
#starfield {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; }
a { color: var(--red-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: #ff3d54; }
code, .mono { font-family: var(--font-mono); }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 8px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: none; transition: all 0.2s; white-space: nowrap;
  font-family: var(--font);
}
.btn-primary {
  background: var(--gradient-red);
  color: #fff;
  box-shadow: 0 0 20px var(--red-glow);
}
.btn-primary:hover {
  box-shadow: 0 0 30px rgba(224,30,55,0.5);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--red-primary);
  border: 1px solid var(--red-primary);
}
.btn-outline:hover {
  background: var(--red-glow-light);
}
.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-xs { padding: 4px 10px; font-size: 11px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* =============================================
   BADGES
   ============================================= */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
}
.badge-free { background: rgba(0,200,100,0.15); color: #00c864; border: 1px solid rgba(0,200,100,0.3); }
.badge-premium { background: rgba(224,30,55,0.15); color: var(--red-primary); border: 1px solid var(--border-color); }
.badge-vip { background: linear-gradient(135deg,rgba(255,180,0,0.15),rgba(255,100,0,0.15)); color: #ffc107; border: 1px solid rgba(255,193,7,0.3); }
.badge-admin { background: rgba(150,0,255,0.15); color: #b44dff; border: 1px solid rgba(150,0,255,0.3); }
.badge-online { background: rgba(0,200,100,0.15); color: #00c864; border: 1px solid rgba(0,200,100,0.3); }

/* =============================================
   CARDS
   ============================================= */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient-red);
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover::before { opacity: 1; }

.card-glow {
  box-shadow: 0 0 30px var(--red-glow-light);
  border-color: var(--border-color);
}

/* =============================================
   INPUTS
   ============================================= */
.input-group { display: flex; flex-direction: column; gap: 6px; }
.input-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); letter-spacing: 0.05em; text-transform: uppercase; }
.input-field {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  outline: none;
}
.input-field:focus {
  border-color: var(--red-primary);
  box-shadow: 0 0 0 3px var(--red-glow-light);
}
.input-field::placeholder { color: var(--text-muted); }
.input-row { display: flex; gap: 10px; }
.input-row .input-field { flex: 1; }

/* =============================================
   ALERTS / TOASTS
   ============================================= */
.alert {
  padding: 12px 16px; border-radius: 8px;
  font-size: 13px; display: flex; align-items: center; gap: 10px;
  border: 1px solid;
}
.alert-error { background: rgba(224,30,55,0.1); border-color: rgba(224,30,55,0.3); color: #ff6b7a; }
.alert-success { background: rgba(0,200,100,0.1); border-color: rgba(0,200,100,0.3); color: #4dff9a; }
.alert-info { background: rgba(0,120,255,0.1); border-color: rgba(0,120,255,0.3); color: #66b3ff; }
.alert-warn { background: rgba(255,180,0,0.1); border-color: rgba(255,180,0,0.3); color: #ffd54f; }

#toast-container {
  position: fixed; top: 20px; right: 20px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--red-primary);
  border-radius: 8px;
  padding: 14px 18px;
  min-width: 280px; max-width: 380px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: toastIn 0.3s ease;
  pointer-events: all;
  font-size: 13px;
}
.toast.success { border-left-color: #00c864; }
.toast.error { border-left-color: var(--red-primary); }
.toast.info { border-left-color: #0078ff; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(20px); }
}

/* =============================================
   MODAL
   ============================================= */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px;
  width: 100%; max-width: 500px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px var(--red-glow-light);
  transform: scale(0.95);
  transition: transform 0.2s;
}
.modal-overlay.active .modal { transform: scale(1); }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.modal-title { font-size: 18px; font-weight: 700; }
.modal-close {
  background: none; border: none; color: var(--text-muted);
  font-size: 20px; cursor: pointer; transition: color 0.2s;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
}
.modal-close:hover { color: var(--text-primary); background: var(--border-subtle); }

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0;
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex; flex-direction: column;
  z-index: 100;
  overflow: hidden;
  transition: transform 0.3s;
}
.sidebar-header {
  padding: 18px 16px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.sidebar-logo {
  display: flex; align-items: center; gap: 10px;
}
.sidebar-logo-icon {
  width: 32px; height: 32px;
  background: var(--gradient-red);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900; color: #fff;
  box-shadow: 0 0 12px var(--red-glow);
  flex-shrink: 0;
}
.sidebar-logo-text { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.sidebar-logo-text span { color: var(--red-primary); }
.sidebar-version {
  font-size: 10px; color: var(--text-muted); margin-top: 2px;
}

.sidebar-nav {
  flex: 1; overflow-y: auto; padding: 10px 0;
}
.sidebar-section {
  margin-bottom: 4px;
}
.sidebar-section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px 6px;
  cursor: pointer;
  user-select: none;
}
.sidebar-section-title {
  font-size: 10px; font-weight: 700; color: var(--text-muted);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.sidebar-section-arrow {
  font-size: 10px; color: var(--text-muted);
  transition: transform 0.2s;
}
.sidebar-section.collapsed .sidebar-section-arrow { transform: rotate(-90deg); }
.sidebar-section-items {
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.sidebar-section.collapsed .sidebar-section-items { max-height: 0 !important; }

.sidebar-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px; margin: 1px 8px;
  border-radius: 8px; cursor: pointer;
  transition: all 0.15s;
  font-size: 13px; color: var(--text-secondary);
  gap: 10px;
}
.sidebar-item:hover { background: rgba(255,255,255,0.04); color: var(--text-primary); }
.sidebar-item.active {
  background: rgba(224,30,55,0.12);
  color: var(--text-primary);
  border: 1px solid rgba(224,30,55,0.2);
}
.sidebar-item-left { display: flex; align-items: center; gap: 10px; }
.sidebar-item-icon { font-size: 14px; width: 18px; text-align: center; flex-shrink: 0; }
.sidebar-item-name { font-size: 12px; }

.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; border-radius: 8px;
  cursor: pointer; transition: background 0.15s;
}
.sidebar-user:hover { background: rgba(255,255,255,0.04); }
.sidebar-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gradient-red);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
  border: 2px solid var(--border-color);
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-username { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 11px; color: var(--text-muted); }
.sidebar-user-actions { display: flex; gap: 4px; }
.sidebar-action-btn {
  width: 26px; height: 26px; border-radius: 6px;
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.sidebar-action-btn:hover { background: rgba(255,255,255,0.06); color: var(--text-primary); }

/* =============================================
   TOPBAR
   ============================================= */
.topbar {
  position: fixed; left: var(--sidebar-width); right: 0; top: 0;
  height: var(--topbar-height);
  background: rgba(10,10,10,0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  z-index: 90;
  transition: left 0.3s;
}
.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar-title { font-size: 15px; font-weight: 700; }
.topbar-subtitle { font-size: 11px; color: var(--text-muted); }
.topbar-right { display: flex; align-items: center; gap: 12px; }

.lang-select {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 8px; padding: 6px 10px;
  color: var(--text-secondary); font-size: 12px;
  cursor: pointer; outline: none;
  font-family: var(--font);
}
.lang-select:focus { border-color: var(--red-primary); }
.lang-select option { background: #1a1a1a; }

/* =============================================
   MAIN CONTENT
   ============================================= */
.main-content {
  margin-left: var(--sidebar-width);
  padding-top: var(--topbar-height);
  min-height: 100vh;
  position: relative; z-index: 1;
}
.content-wrapper { padding: 28px 28px; }

/* =============================================
   DASHBOARD STATS
   ============================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px; padding: 18px 20px;
  position: relative; overflow: hidden;
}
.stat-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient-red); opacity: 0.6;
}
.stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.stat-value { font-size: 28px; font-weight: 800; font-family: var(--font-mono); }
.stat-sub { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.stat-icon {
  position: absolute; right: 16px; top: 16px;
  font-size: 24px; opacity: 0.1;
}

/* =============================================
   WELCOME HERO
   ============================================= */
.welcome-hero {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 24px;
  position: relative; overflow: hidden;
}
.welcome-hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at top right, rgba(224,30,55,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.welcome-title {
  font-size: 28px; font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.welcome-title span { color: var(--red-primary); }
.welcome-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.welcome-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.welcome-stat {
  font-size: 12px; color: var(--text-secondary);
  display: flex; align-items: center; gap: 6px;
}
.welcome-stat .dot { width: 6px; height: 6px; border-radius: 50%; background: #00c864; flex-shrink: 0; }

/* =============================================
   TOOL PANEL
   ============================================= */
.tool-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
}
.tool-panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: space-between;
}
.tool-panel-title {
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.tool-panel-body { padding: 20px; }

.tool-search-row {
  display: flex; gap: 10px; margin-bottom: 16px;
}
.tool-search-row .input-field { flex: 1; }

.result-box {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  min-height: 80px;
  color: var(--text-secondary);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
  display: none;
}
.result-box.visible { display: block; }
.result-key { color: var(--red-primary); font-weight: 700; }
.result-value { color: #a3e4a3; }
.result-label { color: #888; }

/* =============================================
   VIP LOCK OVERLAY
   ============================================= */
.vip-lock {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(2px);
  border-radius: 12px;
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; z-index: 5;
}
.vip-lock-icon { font-size: 32px; }
.vip-lock-text { font-size: 14px; font-weight: 700; color: #ffc107; }
.vip-lock-sub { font-size: 12px; color: var(--text-muted); text-align: center; }

/* =============================================
   CATEGORIES GRID
   ============================================= */
.tools-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.category-card:hover {
  border-color: var(--border-color);
  box-shadow: 0 4px 20px var(--red-glow-light);
  transform: translateY(-2px);
}
.category-card-header {
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}
.category-icon { font-size: 18px; margin-right: 10px; }
.category-title { font-size: 13px; font-weight: 700; flex: 1; }
.category-count { font-size: 11px; color: var(--text-muted); }
.category-items { padding: 10px 12px; }
.category-tool-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 12px; color: var(--text-secondary);
}
.category-tool-row:last-child { border-bottom: none; }
.category-tool-row:hover { color: var(--text-primary); }
.category-tool-name { display: flex; align-items: center; gap: 8px; }

/* =============================================
   LOADING SPINNER
   ============================================= */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border-subtle);
  border-top-color: var(--red-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =============================================
   PRICING PAGE
   ============================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 960px; margin: 0 auto;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  position: relative; overflow: hidden;
  transition: all 0.3s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.pricing-card.featured {
  border-color: var(--red-primary);
  box-shadow: 0 0 40px var(--red-glow-light);
}
.pricing-card.featured::before {
  content: 'POPULAR';
  position: absolute; top: 16px; right: -20px;
  background: var(--gradient-red);
  color: #fff; font-size: 10px; font-weight: 800;
  padding: 4px 30px; letter-spacing: 0.1em;
  transform: rotate(45deg);
}
.pricing-tier { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 12px; }
.pricing-price { font-size: 48px; font-weight: 900; font-family: var(--font-mono); line-height: 1; margin-bottom: 6px; }
.pricing-price sup { font-size: 20px; font-weight: 700; }
.pricing-period { font-size: 12px; color: var(--text-muted); margin-bottom: 24px; }
.pricing-features { list-style: none; margin-bottom: 24px; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.pricing-features li {
  font-size: 13px; color: var(--text-secondary);
  display: flex; align-items: center; gap: 10px;
}
.pricing-features li::before { content: '✓'; color: var(--red-primary); font-weight: 700; }
.pricing-features li.disabled { color: var(--text-muted); }
.pricing-features li.disabled::before { content: '✕'; color: var(--text-muted); }

/* =============================================
   ADMIN TABLE
   ============================================= */
.table-wrapper { overflow-x: auto; }
table {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
}
thead tr { border-bottom: 1px solid var(--border-subtle); }
th {
  text-align: left; padding: 10px 14px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-muted);
}
td { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.03); }
tr:hover td { background: rgba(255,255,255,0.02); }

/* =============================================
   TABS
   ============================================= */
.tabs { display: flex; gap: 4px; margin-bottom: 20px; flex-wrap: wrap; }
.tab-btn {
  padding: 8px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-subtle);
  color: var(--text-secondary); transition: all 0.15s; font-family: var(--font);
}
.tab-btn:hover { background: rgba(255,255,255,0.07); color: var(--text-primary); }
.tab-btn.active {
  background: rgba(224,30,55,0.12);
  border-color: var(--border-color);
  color: var(--text-primary);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* =============================================
   API DOCS
   ============================================= */
.api-endpoint {
  background: rgba(0,0,0,0.3); border: 1px solid var(--border-subtle);
  border-radius: 8px; padding: 14px 16px; margin-bottom: 12px;
}
.api-method {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 800; font-family: var(--font-mono);
  margin-right: 8px;
}
.method-get { background: rgba(0,200,100,0.15); color: #00c864; }
.method-post { background: rgba(0,120,255,0.15); color: #4d9fff; }
.api-path { font-family: var(--font-mono); font-size: 13px; color: var(--text-primary); }
.api-desc { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.code-block {
  background: #0d0d0d; border: 1px solid var(--border-subtle);
  border-radius: 8px; padding: 16px;
  font-family: var(--font-mono); font-size: 12px;
  overflow-x: auto; color: #a8d8a8;
  line-height: 1.6;
}

/* =============================================
   PROFILE
   ============================================= */
.profile-header {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 24px;
}
.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--gradient-red);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700;
  border: 3px solid var(--border-color);
  box-shadow: 0 0 24px var(--red-glow);
}
.profile-name { font-size: 22px; font-weight: 800; }
.profile-sub { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* =============================================
   SYSTEM STATUS
   ============================================= */
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block;
}
.status-dot.online { background: #00c864; box-shadow: 0 0 6px #00c864; }
.status-dot.offline { background: #e01e37; box-shadow: 0 0 6px #e01e37; }
.status-dot.degraded { background: #ffc107; box-shadow: 0 0 6px #ffc107; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.mobile-open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .topbar { left: 0; }
  .content-wrapper { padding: 20px 16px; }
}
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .tools-categories { grid-template-columns: 1fr; }
}

/* =============================================
   UTILS
   ============================================= */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.text-muted { color: var(--text-muted); }
.text-red { color: var(--red-primary); }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.hidden { display: none !important; }
.relative { position: relative; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.w-full { width: 100%; }
.divider { height: 1px; background: var(--border-subtle); margin: 16px 0; }

/* =============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================= */
.sidebar { will-change: transform; transform: translateZ(0); }
.topbar  { will-change: transform; transform: translateZ(0); }
.main-content { transform: translateZ(0); }

/* Sadece gerekli property'lere transition */
.btn { transition: box-shadow 0.2s, transform 0.2s !important; }
.sidebar-item { transition: background 0.15s !important; }
.category-card { transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s !important; }

/* Paint azalt */
.card, .stat-card, .category-card, .pricing-card { contain: layout style; }
.sidebar-nav { contain: strict; }
#starfield { contain: strict; }

/* Animasyonları GPU'a taşı */
.spinner { will-change: transform; }
.progress-bar { will-change: width; }
