:root {
  --bg-body: #090a0f;
  --bg-card: #111318;
  --bg-card-hover: #171a22;
  --bg-nav: #090a0e;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 255, 255, 0.2);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --primary: #e2e8f0;
  --primary-hover: #ffffff;
  --gold: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --terminal-bg: #07080b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  position: relative;
  background-color: #090a0f;
  overflow-x: hidden;
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Fixed Full-Screen Background Wallpaper */
.site-fixed-bg, .site-scroll-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background-color: #090a0f;
  background-image: 
    linear-gradient(180deg, rgba(9, 10, 15, 0.6) 0%, rgba(9, 10, 15, 0.8) 100%),
    url('/static/images/cs16_inferno_bg_2666.jpg?v=20260924_2666_v4');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.navbar, .main-wrapper, footer {
  position: relative;
  z-index: 1;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}
a:hover {
  color: var(--primary-hover);
}

/* Ultra Modern Gaming Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 72px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background-color: #090a0e;
  background-image: 
    linear-gradient(180deg, rgba(12, 14, 20, 0.75) 0%, rgba(8, 9, 14, 0.9) 100%),
    url('/static/images/navbar_bg.png');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  position: relative;
}
.navbar::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.15) 50%, transparent 100%);
  pointer-events: none;
}
.navbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.25s ease;
}
.brand-link:hover {
  transform: scale(1.02);
}
.brand-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 12px rgba(245, 158, 11, 0.2));
}
.brand-badge-fps {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.brand-badge-fps i {
  color: #ffd700;
  font-size: 0.75rem;
}
.navbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.nav-pill-group {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(18, 21, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  padding: 5px 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}
.nav-pill-group .nav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.nav-pill-group .nav-item i {
  font-size: 0.92rem;
  transition: transform 0.2s ease, color 0.2s ease;
}
.nav-pill-group .nav-item:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}
.nav-pill-group .nav-item:hover i {
  color: #ffffff;
  transform: scale(1.12);
}
.nav-pill-group .nav-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  text-shadow: none;
}
.nav-pill-group .nav-item.active i {
  color: #ffffff;
}
.nav-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
  animation: pulseGreenDot 2s infinite;
}
@keyframes pulseGreenDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.navbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.nav-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #34d399;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}
.radar-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  position: relative;
}
.radar-beacon::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #10b981;
  opacity: 0.6;
  animation: radarRing 1.8s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes radarRing {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}
.user-profile-capsule {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(18, 22, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  padding: 4px 14px 4px 5px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.user-profile-capsule:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  transform: translateY(-1px);
}
.user-capsule-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #374151, #1f2937);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.user-capsule-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.user-capsule-name {
  color: #f1f5f9;
  font-weight: 700;
  font-size: 0.88rem;
}
.user-capsule-role {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
}
.role-admin {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}
.role-user {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
}
.nav-logout-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #f87171;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}
.nav-logout-btn:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.5);
  transform: scale(1.08);
}
.nav-btn-signin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transition: all 0.2s ease;
}
.nav-btn-signin:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}
.nav-btn-register {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.86rem;
  font-weight: 800;
  color: #ffffff;
  background: #21262d;
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}
.nav-btn-register:hover {
  color: #ffffff;
  background: #30363d;
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}
.badge-admin {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.4px;
}
.badge-user {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.4px;
}

/* Layout */
.main-wrapper {
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 20px;
  flex: 1;
}

/* Cards */
.card {
  background: linear-gradient(rgba(10, 14, 22, 0.88), rgba(10, 14, 22, 0.88)), url('/static/images/bgsm.jpeg') no-repeat center center / cover !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 22px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}
.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  white-space: nowrap !important;
  line-height: 1.25 !important;
  flex-shrink: 0;
}
.badge-running {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.badge-stopped {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.4);
}
.badge-starting {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

/* Power Buttons */
.power-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-power {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #fff;
}
.btn-start { background: #10b981; }
.btn-start:hover { background: #059669; box-shadow: 0 0 12px rgba(16, 185, 129, 0.4); }
.btn-restart { background: #f59e0b; color: #000; }
.btn-restart:hover { background: #d97706; box-shadow: 0 0 12px rgba(245, 158, 11, 0.4); }
.btn-stop { background: #ef4444; }
.btn-stop:hover { background: #dc2626; box-shadow: 0 0 12px rgba(239, 68, 68, 0.4); }
.btn-kill { background: #7f1d1d; }
.btn-kill:hover { background: #991b1b; }

/* Stats Bar */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.stat-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}
.stat-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}
.stat-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}
.stat-bar-fill {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.4s ease;
}

/* Dark Terminal Console */
.terminal-window {
  background: #08090d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  position: relative;
}
.terminal-window::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  z-index: 2;
}
.terminal-header {
  background: rgba(15, 17, 23, 0.95);
  padding: 11px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #cbd5e1;
}
.terminal-body {
  height: 440px;
  overflow-y: auto;
  padding: 16px 18px;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #e2e8f0;
  background: #08090d;
  white-space: pre-wrap;
  word-break: break-all;
}
.terminal-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(15, 17, 23, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
  gap: 8px;
}
.terminal-prompt {
  color: #10b981;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 1rem;
  padding: 0 4px;
  display: flex;
  align-items: center;
  text-shadow: none;
}
.terminal-input {
  flex: 1;
  background: rgba(10, 12, 16, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  outline: none;
  color: #ffffff;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 0.88rem;
  padding: 9px 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.terminal-input:focus {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}
.terminal-send-btn {
  background: #21262d;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 6px;
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.terminal-send-btn:hover {
  background: #30363d;
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

/* Warp Quick Commands */
.quick-cmds {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  margin-bottom: 20px;
}
.quick-cmd-btn {
  background: rgba(14, 20, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
}
.quick-cmd-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

/* File Manager */
.file-list {
  list-style: none;
}
.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.15s;
}
.file-item:hover {
  background: rgba(255, 255, 255, 0.03);
}
.file-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  cursor: pointer;
}
.file-icon {
  font-size: 1.1rem;
}
.file-size {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.editor-textarea {
  width: 100%;
  height: 480px;
  background: #080b10;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 14px;
  font-family: 'Consolas', monospace;
  font-size: 0.88rem;
  line-height: 1.5;
  resize: vertical;
}

/* Server Cards Grid */
.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
}
.server-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.server-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-active);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* Terminal Syntax Highlighting & Colors */
.log-line {
  display: block;
  min-height: 1.3em;
  padding: 1px 0;
}
.log-ts {
  color: #a78bfa;
  font-weight: 600;
  margin-right: 6px;
  opacity: 0.85;
}
.log-tag {
  display: inline-block;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.78rem;
  margin-right: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.log-tag-amxx {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}
.log-tag-whb {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.4);
}
.log-tag-auth {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
}
.log-success {
  color: #34d399;
  font-weight: 600;
}
.log-err {
  color: #f87171;
  font-weight: 700;
}
.log-warn {
  color: #fbbf24;
  font-weight: 600;
}
.log-cmd {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 10px;
  border-radius: 4px;
  border-left: 3px solid #94a3b8;
  font-weight: 700;
  display: inline-block;
  margin: 4px 0;
}
.log-cvar-key {
  color: #93c5fd;
  font-weight: 600;
}
.log-cvar-val {
  color: #fde047;
  font-weight: 700;
}
.log-status-key {
  color: #ffd700;
  font-weight: 700;
}
.log-status-val {
  color: #ffffff;
}
.log-highlight {
  color: #f1f5f9;
  font-weight: 700;
}
.log-vac {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 12px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
  margin: 3px 0;
}
.log-vac-steam {
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border-left: 3px solid #10b981;
}
.log-vac-shield {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  border-left: 3px solid #94a3b8;
}
.log-round {
  color: #fbbf24;
  font-weight: 800;
  background: rgba(251, 191, 36, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  border-left: 3px solid #fbbf24;
}
.log-map {
  color: #cbd5e1;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  border-left: 3px solid #64748b;
}

/* 2-Column Server Dashboard Layout */
.server-layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 1024px) {
  .server-layout-grid {
    grid-template-columns: 1fr;
  }
}

.server-layout-main {
  min-width: 0;
}

.server-layout-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Sidebar Cards */
.side-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px;
}
.side-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.side-stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.side-info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.82rem;
}
.side-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
}
.side-info-row span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.side-info-row strong, .side-info-row span:last-child {
  color: #fff;
}

/* Connect Endpoints */
.connect-field {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px;
}
.connect-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 6px;
}
.connect-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #06090e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 4px 8px;
}
.connect-box code {
  color: var(--primary);
  font-family: 'Consolas', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  user-select: all;
}
.connect-box button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s;
}
.connect-box button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Quick Configs Bar */
.quick-configs-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 14px;
}
.qc-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 4px;
}
.qc-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.qc-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: #cbd5e1;
  font-family: 'Consolas', monospace;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.qc-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.qc-custom-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  min-width: 260px;
}
.qc-input {
  flex: 1;
  background: #06090e;
  border: 1px solid var(--border-color);
  color: #fff;
  font-family: 'Consolas', monospace;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 5px;
  outline: none;
}
.qc-input:focus {
  border-color: var(--primary);
}
.qc-open-btn {
  background: var(--primary);
  border: none;
  color: #0c1017;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s;
}
.qc-open-btn:hover {
  background: var(--primary-hover);
}

/* Pure 0/1 Matrix Rain Canvas */
.matrix-rain-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  background: #06090e;
  pointer-events: none;
  transition: opacity 0.35s ease-out;
}

/* Quick Config Modal */
.config-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.config-modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: 12px;
  width: 100%;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}
.config-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
}
.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  transition: color 0.2s;
}
.modal-close-btn:hover {
  color: #fff;
}
.config-modal-body {
  padding: 16px;
  background: #080c14;
}
.config-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
}

.btn-modal-cancel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.2px;
}
.btn-modal-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-1px);
}
.btn-modal-cancel:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.08);
}

.btn-modal-save {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #21262d;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.3px;
}
.btn-modal-save:hover {
  background: #30363d;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}
.btn-modal-save:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.btn-modal-save:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Mod Bookmarks Bar */
.mod-bookmarks-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}
.mod-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mod-tab-btn:hover, .mod-tab-btn.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* Drag and Drop File Upload Overlay */
.drag-drop-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 10, 15, 0.94);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.drag-drop-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
@keyframes bounceGlow {
  0% { transform: translateY(0); filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3)); }
  100% { transform: translateY(-8px); filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5)); }
}

/* Pro Config Studio Modal */
.config-modal-box.pro-studio {
  max-width: 1040px;
  width: 95%;
  height: 86vh;
}
.config-studio-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
@media (max-width: 900px) {
  .config-studio-grid {
    grid-template-columns: 1fr;
  }
}
.config-editor-pane {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-right: 1px solid var(--border-color);
  background: #070a10;
  position: relative;
  min-height: 0;
}
.config-editor-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: rgba(15, 23, 42, 0.4);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.78rem;
}
.editor-textarea-pro {
  flex: 1;
  width: 100%;
  height: 100%;
  background: #06090e;
  color: #e2e8f0;
  border: none;
  outline: none;
  padding: 14px 18px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.88rem;
  line-height: 1.6;
  resize: none;
  white-space: pre;
}
.config-presets-pane {
  background: #0b0f19;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.preset-group-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.preset-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
  transition: all 0.2s;
}
.preset-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}
.preset-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.preset-card-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 8px;
}
.preset-action-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.preset-action-btn:hover {
  background: #21262d;
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* Player chips */
.player-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  max-height: 140px;
  overflow-y: auto;
}
.player-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
}




/* --- Premium CS 1.6 Hero Banner & Navigation --- */
.server-hero-banner {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  background-size: cover !important;
  background-position: center !important;
  position: relative;
}
.server-hero-top {
  padding: 22px 24px 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.server-avatar-box {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 12px;
  background: rgba(18, 22, 30, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.server-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.server-hero-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.server-id-tag {
  color: #94a3b8;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 1rem;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.6);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.server-hero-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.hero-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.badge-online {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.badge-online i {
  color: #10b981;
  animation: pulseGreen 1.8s infinite;
}
@keyframes pulseGreen {
  0% { opacity: 0.4; }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0.4; }
}
.badge-offline {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
}
.badge-starting {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.badge-node {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.badge-engine {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
}
.badge-uptime {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.2);
}
.server-hero-nav {
  padding: 0 20px;
  display: flex;
  gap: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 14, 23, 0.82);
  backdrop-filter: blur(8px);
}
.hero-nav-tab {
  padding: 12px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
}
.hero-nav-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.hero-nav-tab.active {
  color: #ffffff;
  border-bottom-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* --- Server Layout & Sidebar --- */
.server-grid-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 992px) {
  .server-grid-container {
    grid-template-columns: 1fr;
  }
}
.sidebar-card {
  background: #111319;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.sidebar-title {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.endpoint-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
}
.endpoint-text {
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
}
.copy-btn-mini {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.copy-btn-mini:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.84rem;
}
.info-row:last-child {
  border-bottom: none;
}
.info-label {
  color: #8e9bb0;
}
.info-val {
  color: #fff;
  font-weight: 600;
}
.btn-action-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.btn-fastdl-action {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-fastdl-action:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}
.btn-join-action {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-join-action:hover {
  background: #10b981;
  color: #07090e;
}
.promo-card {
  background: rgba(18, 21, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  margin-top: 16px;
}
.promo-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.promo-sub {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 12px;
}
.promo-btn {
  display: inline-block;
  background: #21262d;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}
.promo-btn:hover {
  background: #30363d;
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* --- Professional Pterodactyl-Style File Manager --- */
.file-manager-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}
.breadcrumb-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.86rem;
}
.breadcrumb-item {
  color: var(--primary);
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.breadcrumb-item:hover {
  text-decoration: underline;
}
.breadcrumb-current {
  color: #fff;
  font-weight: 700;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
}
.breadcrumb-sep {
  color: #64748b;
}
.fm-action-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.fm-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  text-decoration: none;
}
.fm-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.fm-btn-primary {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  border: 1px solid #f97316 !important;
  color: #fff !important;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.4) !important;
}
.fm-btn-primary:hover {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%) !important;
  border-color: #fb923c !important;
  color: #fff !important;
  box-shadow: 0 0 18px rgba(249, 115, 22, 0.6) !important;
  transform: translateY(-1px);
}
.file-table-container {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.35);
}
.file-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.file-table th {
  background: rgba(15, 23, 42, 0.6);
  padding: 12px 14px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.file-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.86rem;
  color: #cbd5e1;
  vertical-align: middle;
}
.file-table tr:last-child td {
  border-bottom: none;
}
.file-table tr.file-row:hover {
  background: rgba(255, 255, 255, 0.03);
}
.file-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 500;
  color: #f1f5f9;
}
.file-name-cell:hover {
  color: var(--primary);
}
.file-icon {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}
.file-dots-menu-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
  position: relative;
}
.file-dots-menu-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.file-action-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  min-width: 150px;
  z-index: 100;
  display: none;
  flex-direction: column;
  padding: 4px 0;
}
.file-action-dropdown.show {
  display: flex;
}
.dropdown-item-btn {
  padding: 8px 14px;
  font-size: 0.82rem;
  color: #cbd5e1;
  background: transparent;
  border: none;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s;
  width: 100%;
}
.dropdown-item-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.dropdown-item-btn.text-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* Dedicated File Editor (shown only when opened) */
.dedicated-editor-card {
  background: #111319;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}
.dedicated-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}


/* ==========================================================================
   GLOBAL SLIM CUSTOM SCROLLBARS
   ========================================================================== */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) rgba(10, 12, 16, 0.75);
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(10, 12, 16, 0.75);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.32);
  box-shadow: none;
}
::-webkit-scrollbar-corner {
  background: transparent;
}

/* ==========================================================================
   RESOURCE METRIC CARDS PRO (CPU, Memory, Storage & Traffic)
   ========================================================================== */
/* ==========================================================================
   RESOURCE METRIC CARDS PRO (Raycast + NVIDIA Hardware Telemetry)
   ========================================================================== */
.metrics-grid-pro {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
@media (max-width: 960px) {
  .metrics-grid-pro {
    grid-template-columns: 1fr;
  }
}
.metric-card-pro {
  background: linear-gradient(rgba(10, 14, 22, 0.88), rgba(10, 14, 22, 0.88)), url('/static/images/bgsm.jpeg') no-repeat center center / cover !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card {
  background: linear-gradient(rgba(10, 14, 22, 0.88), rgba(10, 14, 22, 0.88)), url('/static/images/bgsm.jpeg') no-repeat center center / cover !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: all 0.25s ease;
}
.metric-card-pro:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  transform: translateY(-2px);
}
.metric-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.metric-card-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.metric-card-badge-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.metric-pill {
  background: rgba(10, 14, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  font-family: monospace;
}
.metric-help-icon {
  color: #94a3b8;
  font-size: 0.95rem;
  cursor: help;
  transition: transform 0.2s ease, color 0.2s ease;
}
.metric-help-icon:hover {
  transform: scale(1.18);
  color: #ffffff;
}
.metric-chart-container {
  position: relative;
  height: 122px;
  width: 100%;
}

/* Combined Storage & Traffic Card */
.metric-combined-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 16px;
}
.combined-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 15, 24, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 9px 12px;
  margin-bottom: 6px;
  transition: all 0.2s ease;
}
.combined-row:last-child {
  margin-bottom: 0;
}
.combined-row:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(18, 22, 30, 0.9);
}
.combined-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.combined-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
}
.combined-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #94a3b8;
  text-transform: uppercase;
}
.combined-pill-storage {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  font-family: monospace;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.combined-val-traffic {
  font-family: monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: #34d399;
}

/* ==========================================================================
   QUICK CONFIGS PRO BUTTONS (Raycast Style)
   ========================================================================== */
.qc-btn-pro {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: rgba(14, 20, 32, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.qc-btn-pro:hover {
  background: rgba(25, 30, 40, 0.95);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.qc-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.qc-meta {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.qc-filename {
  font-size: 0.86rem;
  font-weight: 700;
  color: #f1f5f9;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
}
.qc-desc {
  font-size: 0.71rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qc-arrow {
  color: #475569;
  font-size: 0.8rem;
  transition: transform 0.2s ease, color 0.2s ease;
}
.qc-btn-pro:hover .qc-arrow {
  color: #ffffff;
  transform: translateX(3px);
}

/* ==========================================================================
   ACTIVE PLAYERS TABLE PRO
   ========================================================================== */
.active-players-table-wrap {
  max-height: 280px;
  overflow-y: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #0b0d13;
}
.active-players-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  text-align: left;
}
.active-players-table th {
  position: sticky;
  top: 0;
  background: #12151c;
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 10;
}
.active-players-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}
.active-players-table tr:hover {
  background: rgba(255, 255, 255, 0.03);
}
.score-badge {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.75rem;
  font-family: monospace;
}
.badge-live-pulse {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   GLOBAL UNIVERSAL BUTTON SYSTEM (CYBERPUNK / PTERODACTYL DARK THEME)
   ========================================================================== */

/* Universal button reset & baseline */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.btn {
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-sizing: border-box;
  outline: none;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(17, 24, 39, 0.85);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.12);
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
.btn:hover {
  background: rgba(35, 42, 54, 0.95);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

button:active,
input[type="button"]:active,
input[type="submit"]:active,
.btn:active {
  transform: translateY(0);
}

button:disabled,
input[type="button"]:disabled,
input[type="submit"]:disabled,
.btn:disabled,
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none !important;
  transform: none !important;
}

/* --- .nav-btn Framework (Used across Admin, Dashboard, Login, Register, DB) --- */
.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #e2e8f0;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.nav-btn:hover {
  background: rgba(35, 42, 54, 0.95);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.nav-btn:active {
  transform: translateY(0);
}

.nav-btn-primary {
  background: #21262d !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #f1f5f9 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.nav-btn-primary:hover:not(:disabled) {
  background: #30363d !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
  transform: translateY(-1px);
}

.nav-btn-success {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  color: #10b981 !important;
}

.nav-btn-success:hover:not(:disabled) {
  background: rgba(16, 185, 129, 0.28) !important;
  border-color: #10b981 !important;
  color: #6ee7b7 !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.35) !important;
}

.nav-btn-warning {
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
  color: #f59e0b !important;
}

.nav-btn-warning:hover:not(:disabled) {
  background: rgba(245, 158, 11, 0.28) !important;
  border-color: #f59e0b !important;
  color: #fef08a !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35) !important;
}

.nav-btn-danger {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  color: #ef4444 !important;
}

.nav-btn-danger:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.28) !important;
  border-color: #ef4444 !important;
  color: #fca5a5 !important;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.35) !important;
}

.nav-btn-info {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #cbd5e1 !important;
}

.nav-btn-info:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35) !important;
}

/* --- .btn-ptero-blue & .btn-primary --- */
.btn-primary,
.btn-ptero-blue {
  background: linear-gradient(135deg, #27272a 0%, #18181b 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  text-shadow: none;
}

.btn-primary:hover:not(:disabled),
.btn-ptero-blue:hover:not(:disabled) {
  background: linear-gradient(135deg, #3f3f46 0%, #27272a 100%) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
  transform: translateY(-1px);
}

/* --- Danger & Reinstall Buttons --- */
.btn-danger,
.btn-reinstall-danger {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  border: 1px solid rgba(239, 68, 68, 0.6) !important;
  color: #fff !important;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}

.btn-danger:hover:not(:disabled),
.btn-reinstall-danger:hover:not(:disabled) {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  border-color: #f87171 !important;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.55) !important;
  transform: translateY(-1px);
}

/* --- Modal Cancel & Close Buttons --- */
.btn-modal-cancel {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
  font-weight: 700;
}

.btn-modal-cancel:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #fff !important;
}

.btn-modal-save {
  background: linear-gradient(135deg, #27272a 0%, #18181b 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.btn-modal-save:hover:not(:disabled) {
  background: linear-gradient(135deg, #3f3f46 0%, #27272a 100%) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
}

.modal-close-btn {
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  font-size: 1.15rem !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  transform: rotate(90deg);
}

/* --- Copy icon buttons & mini buttons --- */
.copy-icon-btn,
.copy-btn-mini {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #94a3b8 !important;
  width: 28px;
  height: 28px;
  padding: 0 !important;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-icon-btn:hover,
.copy-btn-mini:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* --- Deploy & Plan Selection Buttons --- */
.btn-choose-pkg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #21262d;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 12px 16px;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.6px;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.btn-choose-pkg:hover {
  background: #30363d;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transform: translateY(-1px);
}

.btn-trial-pkg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  padding: 10px 14px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.btn-trial-pkg:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn-order-continue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: linear-gradient(135deg, #00e676 0%, #00c853 100%);
  color: #000;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.8px;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 230, 118, 0.35);
  transition: all 0.2s ease;
}

.btn-order-continue:hover:not(:disabled) {
  background: linear-gradient(135deg, #00ff88 0%, #00e676 100%);
  box-shadow: 0 0 25px rgba(0, 230, 118, 0.65);
  transform: translateY(-2px);
}

/* --- Terminal Quick Action Pills --- */
.quick-cmd-btn {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-family: monospace;
  font-size: 0.76rem;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-cmd-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.preset-action-btn {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}


/* =========================================================================
   MOBILE RESPONSIVE SYSTEM OVERHAUL
   ========================================================================= */
@media (max-width: 768px) {
  .main-wrapper {
    padding: 16px 12px !important;
  }
  .server-hero-top {
    padding: 14px 12px !important;
  }
  .server-power-bar {
    width: 100% !important;
  }
  .metrics-grid-pro {
    grid-template-columns: 1fr !important;
  }
  .metric-card-pro {
    padding: 14px 14px !important;
  }
}

@media (max-width: 480px) {
  .main-wrapper {
    padding: 12px 8px !important;
  }
  h1 {
    font-size: 1.35rem !important;
  }
  h2 {
    font-size: 1.2rem !important;
  }
}


/* =========================================================================
   MASTER SITE-WIDE LAYOUT, GRID & CYBER COMPONENT SYSTEM
   Inherited from Main Index logic (Clean, Self-Contained, 100% Aligned)
   ========================================================================= */
.container {
  max-width: 1400px;
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* Base Glass Card */
.glass-card {
  background: linear-gradient(rgba(10, 14, 22, 0.88), rgba(10, 14, 22, 0.88)), url('/static/images/bgsm.jpeg') no-repeat center center / cover !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: all 0.25s ease;
}

.card-neon-border-red {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.25) 50%, transparent 100%);
  opacity: 0.85;
  animation: glowPulseCrimson 2s infinite alternate;
  z-index: 5;
}

.card-neon-border-green {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #10b981 50%, transparent 100%);
  opacity: 0.85;
  animation: glowPulseGreen 2s infinite alternate;
  z-index: 5;
}

.card-neon-border-cyan {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #f97316 50%, transparent 100%);
  opacity: 0.85;
  animation: glowPulseGreen 2s infinite alternate;
  z-index: 5;
}

/* Master Grid System */
.row {
  display: flex !important;
  flex-wrap: wrap !important;
  margin-right: -12px !important;
  margin-left: -12px !important;
  box-sizing: border-box !important;
}
.row.g-2 {
  margin-right: -6px !important;
  margin-left: -6px !important;
  row-gap: 12px !important;
}
.row.g-2 > [class*="col-"] {
  padding-right: 6px !important;
  padding-left: 6px !important;
}
.row.g-3 {
  margin-right: -8px !important;
  margin-left: -8px !important;
  row-gap: 16px !important;
}
.row.g-3 > [class*="col-"] {
  padding-right: 8px !important;
  padding-left: 8px !important;
}
.row.g-4 {
  margin-right: -12px !important;
  margin-left: -12px !important;
  row-gap: 20px !important;
}
.row > [class*="col-"] {
  padding-right: 12px !important;
  padding-left: 12px !important;
  box-sizing: border-box !important;
}

.col-12 { flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important; }
.col-6 { flex: 0 0 50% !important; max-width: 50% !important; width: 50% !important; }
.col-md-3 { flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important; }
.col-md-4 { flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important; }
.col-md-5 { flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important; }
.col-md-6 { flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important; }
.col-md-7 { flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important; }
.col-md-8 { flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important; }
.col-md-9 { flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important; }
.col-lg-3 { flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important; }
.col-lg-4 { flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important; }
.col-lg-6 { flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important; }
.col-lg-8 { flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important; }
.col-lg-9 { flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important; }

@media (min-width: 768px) {
  .col-md-3 { flex: 0 0 25% !important; max-width: 25% !important; width: 25% !important; }
  .col-md-4 { flex: 0 0 33.333333% !important; max-width: 33.333333% !important; width: 33.333333% !important; }
  .col-md-5 { flex: 0 0 41.666667% !important; max-width: 41.666667% !important; width: 41.666667% !important; }
  .col-md-6 { flex: 0 0 50% !important; max-width: 50% !important; width: 50% !important; }
  .col-md-7 { flex: 0 0 58.333333% !important; max-width: 58.333333% !important; width: 58.333333% !important; }
  .col-md-8 { flex: 0 0 66.666667% !important; max-width: 66.666667% !important; width: 66.666667% !important; }
  .col-md-9 { flex: 0 0 75% !important; max-width: 75% !important; width: 75% !important; }
}

@media (min-width: 992px) {
  .col-lg-3 { flex: 0 0 25% !important; max-width: 25% !important; width: 25% !important; }
  .col-lg-4 { flex: 0 0 33.333333% !important; max-width: 33.333333% !important; width: 33.333333% !important; }
  .col-lg-6 { flex: 0 0 50% !important; max-width: 50% !important; width: 50% !important; }
  .col-lg-8 { flex: 0 0 66.666667% !important; max-width: 66.666667% !important; width: 66.666667% !important; }
  .col-lg-9 { flex: 0 0 75% !important; max-width: 75% !important; width: 75% !important; }
}

/* Display & Flex Utilities */
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-none { display: none !important; }
.d-block { display: block !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-start { justify-content: flex-start !important; }
.justify-content-end { justify-content: flex-end !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.align-items-stretch { align-items: stretch !important; }
.gap-1 { gap: 4px !important; }
.gap-2 { gap: 8px !important; }
.gap-3 { gap: 16px !important; }
.gap-4 { gap: 24px !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.text-center { text-align: center !important; }
.text-start { text-align: left !important; }
.text-end { text-align: right !important; }
.text-uppercase { text-transform: uppercase !important; }
.text-decoration-none { text-decoration: none !important; }

/* Spacing Utilities */
.p-0 { padding: 0 !important; }
.p-1 { padding: 4px !important; }
.p-2 { padding: 8px !important; }
.p-3 { padding: 16px !important; }
.p-4 { padding: 24px !important; }
.py-1 { padding-top: 4px !important; padding-bottom: 4px !important; }
.py-2 { padding-top: 8px !important; padding-bottom: 8px !important; }
.py-3 { padding-top: 16px !important; padding-bottom: 16px !important; }
.py-4 { padding-top: 24px !important; padding-bottom: 24px !important; }
.px-2 { padding-left: 8px !important; padding-right: 8px !important; }
.px-3 { padding-left: 16px !important; padding-right: 16px !important; }
.px-4 { padding-left: 24px !important; padding-right: 24px !important; }
.m-0 { margin: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 14px !important; }
.mb-4 { margin-bottom: 20px !important; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 4px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 14px !important; }
.mt-4 { margin-top: 20px !important; }
.my-1 { margin-top: 4px !important; margin-bottom: 4px !important; }
.my-2 { margin-top: 8px !important; margin-bottom: 8px !important; }
.my-3 { margin-top: 14px !important; margin-bottom: 14px !important; }
.my-4 { margin-top: 20px !important; margin-bottom: 20px !important; }
.me-1 { margin-right: 4px !important; }
.me-2 { margin-right: 8px !important; }
.me-3 { margin-right: 14px !important; }
.ms-1 { margin-left: 4px !important; }
.ms-2 { margin-left: 8px !important; }
.ms-3 { margin-left: 14px !important; }
.ms-auto { margin-left: auto !important; }
.me-auto { margin-right: auto !important; }

/* Colors & Badges */
.badge {
  display: inline-flex !important;
  align-items: center !important;
  padding: 4px 8px !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  border-radius: 4px !important;
  letter-spacing: normal !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
.badge.bg-dark { background: rgba(10, 15, 24, 0.85) !important; color: #cbd5e1 !important; }
.badge.bg-danger { background: #dc2626 !important; color: #fff !important; }
.badge.bg-secondary { background: #475569 !important; color: #fff !important; }
.badge.bg-warning { background: #f59e0b !important; color: #000 !important; }
.badge.bg-success { background: #10b981 !important; color: #000 !important; }

.border { border: 1px solid rgba(255, 255, 255, 0.12) !important; }
.border-secondary { border-color: rgba(148, 163, 184, 0.3) !important; }
.border-warning { border-color: rgba(234, 179, 8, 0.4) !important; }
.border-danger { border-color: rgba(239, 68, 68, 0.4) !important; }
.border-success { border-color: rgba(34, 197, 94, 0.4) !important; }
.border-opacity-25 { border-color: rgba(255, 255, 255, 0.15) !important; }

.text-cyan { color: #38bdf8 !important; }
.text-danger, .text-red { color: #ef4444 !important; }
.text-warning, .text-gold { color: #f59e0b !important; }
.text-success { color: #22c55e !important; }
.text-muted, .text-secondary { color: #94a3b8 !important; }
.text-white { color: #ffffff !important; }
.small { font-size: 0.82rem; }
.font-orbitron { font-family: 'Orbitron', sans-serif !important; }
.font-rajdhani { font-family: 'Rajdhani', sans-serif !important; }
.font-inter { font-family: 'Inter', sans-serif !important; }
.font-bold, .fw-bold { font-weight: 700 !important; }

/* Forms & Inputs */
.form-label {
  display: block;
  margin-bottom: 6px;
  font-family: 'Rajdhani', sans-serif !important;
  font-weight: 700;
  font-size: 0.85rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-control, .form-select {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-family: 'Inter', sans-serif;
  color: #ffffff !important;
  background-color: rgba(9, 14, 24, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}
.form-control:focus, .form-select:focus {
  border-color: #f97316 !important;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.3) !important;
}
.form-select option {
  background-color: #0f172a;
  color: #ffffff;
}

/* Input Group Utility */
.input-group {
  position: relative;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  width: 100%;
}
.input-group > .input-group-text {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 16px !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  background-color: rgba(15, 23, 42, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-right: none !important;
  border-top-left-radius: 8px !important;
  border-bottom-left-radius: 8px !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  line-height: 1 !important;
}
.input-group > .form-control {
  position: relative;
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-top-right-radius: 8px !important;
  border-bottom-right-radius: 8px !important;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table {
  width: 100%;
  margin-bottom: 1rem;
  color: #cbd5e1;
  vertical-align: middle;
  border-collapse: collapse;
}
.table th {
  font-family: 'Rajdhani', sans-serif !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  color: #94a3b8;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.6);
}
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.table-hover tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* Tabs */
.nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}
.nav-tabs .nav-link {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  border-radius: 8px 8px 0 0;
  padding: 10px 18px;
  font-family: 'Rajdhani', sans-serif !important;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.nav-tabs .nav-link.active, .nav-tabs .nav-link:hover {
  background: rgba(30, 41, 59, 0.9);
  color: #f97316;
  border-color: rgba(249, 115, 22, 0.4);
  border-bottom-color: transparent;
}
.tab-content > .tab-pane {
  display: none;
}
.tab-content > .tab-pane.active, .tab-content > .tab-pane.show {
  display: block;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.modal.show, .modal.d-flex {
  display: flex !important;
}
.modal-dialog {
  max-width: 600px;
  width: 100%;
  margin: auto;
}
.modal-content {
  background: linear-gradient(165deg, rgba(17, 24, 39, 0.98) 0%, rgba(9, 14, 26, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-body {
  padding: 20px;
}
.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.btn-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
}
.btn-close:hover {
  color: #ffffff;
}

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  border: 1px solid transparent;
}
.alert-danger {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}
.alert-success {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}
.alert-warning {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fde68a;
}
