/* ============================================================================
 * NEXUS UNION PROTOCOL // CYBER FORUM CORE STYLESHEET
 * ============================================================================
 */

:root {
  --bg-dark: #010308;
  --bg-dark-rgb: 1, 3, 8;
  --bg-panel: rgba(8, 14, 26, 0.95);
  --bg-panel-light: rgba(14, 24, 44, 0.8);
  --bg-glass: rgba(10, 18, 34, 0.65);
  
  --c-cyan: #00e5ff;
  --c-cyan-glow: rgba(0, 229, 255, 0.35);
  --c-purple: #9d00ff;
  --c-purple-bright: #b524ff;
  --c-purple-glow: rgba(157, 0, 255, 0.35);
  --c-blue: #0066ff;
  --c-green: #00ff88;
  --c-green-glow: rgba(0, 255, 136, 0.3);
  --c-red: #ff2a5f;
  --c-red-glow: rgba(255, 42, 95, 0.35);
  --c-orange: #ff9d00;
  
  --text-main: #e2eefc;
  --text-muted: #8ca3c0;
  --text-dim: #4d607b;
  
  --border-cyan: rgba(0, 229, 255, 0.25);
  --border-purple: rgba(157, 0, 255, 0.3);
  --border-panel: rgba(0, 229, 255, 0.15);
  
  --font-head: 'Orbitron', 'Rajdhani', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  --font-mono: 'VT323', monospace;

  --nxp-cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28' fill='none'%3E%3Cpath d='M2 1 L22 13 L12.5 15 L16.5 24 L12 26 L8 17 L2 21 Z' fill='%23040711' stroke='%23b524ff' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M3.5 3 L19 12.2 L11.8 13.8 L15 22 L13 22.8 L9.2 15.5 L3.5 19 Z' fill='url(%23g)'/%3E%3Ccircle cx='7' cy='7' r='1.5' fill='%2300e5ff'/%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%2300e5ff'/%3E%3Cstop offset='60%25' stop-color='%23b524ff'/%3E%3Cstop offset='100%25' stop-color='%237000ff'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E") 2 1, auto;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* ============================================================================
 * J.A.R.V.I.S. FORUM QUANTUM BOOT SEQUENCE STYLES
 * ============================================================================
 */
#boot-screen {
  position: fixed; inset: 0; background: #010308; z-index: 999999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background-image: 
    radial-gradient(circle at center, rgba(157, 0, 255, 0.12) 0%, transparent 65%),
    linear-gradient(rgba(157, 0, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157, 0, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 50px 50px, 50px 50px;
  padding: 20px; transition: opacity 0.6s ease, transform 0.6s ease;
}

.hud-controls {
  position: fixed; top: 25px; right: 25px; z-index: 1000000;
  display: flex; align-items: center; gap: 12px;
}

.hud-btn {
  background: rgba(8, 14, 26, 0.85); border: 1px solid var(--c-purple-bright);
  padding: 8px 16px; border-radius: 20px; color: #ffffff;
  font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  backdrop-filter: blur(10px); box-shadow: 0 0 15px rgba(181, 36, 255, 0.25);
  transition: all 0.3s ease; text-decoration: none; display: flex; align-items: center; gap: 8px;
  cursor: pointer;
}
.hud-btn:hover {
  background: var(--c-purple-bright); color: #000000;
  box-shadow: 0 0 25px var(--c-purple-bright); transform: translateY(-2px);
}

.hud-corner {
  position: fixed; width: 35px; height: 35px; pointer-events: none; z-index: 9999999;
  border: 2px solid var(--c-purple-bright); opacity: 0.6;
}
.hud-corner-tl { top: 25px; left: 25px; border-right: none; border-bottom: none; }
.hud-corner-tr { top: 25px; right: 25px; border-left: none; border-bottom: none; }
.hud-corner-bl { bottom: 25px; left: 25px; border-right: none; border-top: none; }
.hud-corner-br { bottom: 25px; right: 25px; border-left: none; border-top: none; }

.hud-tag-tl {
  position: fixed; top: 30px; left: 70px; z-index: 9999999; pointer-events: none;
  font-family: var(--font-head); font-size: 10px; letter-spacing: 2px; color: var(--c-cyan);
  opacity: 0.7; text-shadow: 0 0 8px var(--c-cyan);
}
.hud-tag-bl {
  position: fixed; bottom: 30px; left: 70px; z-index: 9999999; pointer-events: none;
  font-family: var(--font-mono); font-size: 14px; letter-spacing: 3px; color: var(--text-muted);
}

.jarvis-hud-container { 
  display: flex; align-items: center; gap: 50px; margin-bottom: 30px; z-index: 10; flex-wrap: wrap; justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#boot-init-btn {
  position: relative; width: 260px; height: 260px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 50%;
}
@media(max-width: 650px) {
  #boot-init-btn { width: 200px; height: 200px; }
}

.j-ring { position: absolute; border-radius: 50%; border: 2px solid transparent; pointer-events: none;}
.j-ring-1 { inset: 0; border-top-color: rgba(157,0,255,0.9); border-bottom-color: rgba(157,0,255,0.9); animation: spin-cursor 8s linear infinite; box-shadow: 0 0 15px rgba(157,0,255,0.3); }
.j-ring-2 { inset: 15px; border-left-color: var(--c-purple-bright); border-right-color: var(--c-purple-bright); border-width: 4px; border-style: dotted; animation: spin-cursor 12s linear infinite reverse; opacity: 0.8;}
.j-ring-3 { inset: 35px; border-color: rgba(0,229,255,0.4); border-style: dashed; border-width: 1px; animation: spin-cursor 20s linear infinite; }
.j-ring-4 { inset: 50px; border-top-color: var(--c-cyan); border-width: 3px; animation: spin-cursor 6s linear infinite reverse; }

.j-core-logo {
  width: 90px; height: 90px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--c-purple-bright);
  box-shadow: 0 0 35px var(--c-purple-bright), inset 0 0 20px rgba(157,0,255,0.5);
  animation: j-core-pulse 2s infinite alternate;
}
@keyframes j-core-pulse {
  0% { transform: scale(0.92); box-shadow: 0 0 25px var(--c-purple-bright); }
  100% { transform: scale(1.08); box-shadow: 0 0 55px var(--c-purple-bright), 0 0 30px var(--c-cyan); }
}
@keyframes spin-cursor { 100% { transform: rotate(360deg); } }

.j-text {
  position: absolute; bottom: -55px; font-family: var(--font-head); 
  color: var(--c-purple-bright); font-size: 13.5px; font-weight: 700; letter-spacing: 3px; 
  text-align: center; text-shadow: 0 0 12px rgba(157,0,255,0.7); pointer-events: none; width: 100%;
}

/* DIAGNOSTIC CONTAINER WITH CONIC-GRADIENT GLOW */
.diag-wrapper {
  display: none; width: 100%; max-width: 720px; z-index: 10;
  position: relative; border-radius: 16px; padding: 2px;
  background: conic-gradient(from var(--angle), var(--c-purple), var(--c-cyan), var(--c-green), var(--c-purple));
  animation: rotate-angle 5s linear infinite, fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  box-shadow: 0 0 60px rgba(157, 0, 255, 0.35);
}
@keyframes rotate-angle { to { --angle: 360deg; } }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }

#ai-diagnostic {
  background: rgba(8, 14, 26, 0.96); padding: 32px 28px;
  border-radius: 14px; backdrop-filter: blur(20px); text-align: center;
}

.diag-header { 
  font-family: var(--font-head); font-size: 14px; letter-spacing: 3.5px; color: var(--c-purple-bright); 
  border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 15px; margin-bottom: 25px; 
  text-shadow: 0 0 12px rgba(181,36,255,0.7); display: flex; justify-content: space-between; align-items: center;
}
.diag-stage-badge {
  font-size: 10.5px; font-weight: 800; padding: 4px 12px; background: rgba(0,255,136,0.15); border: 1.5px solid var(--c-green);
  color: var(--c-green); border-radius: 4px; letter-spacing: 2px; box-shadow: 0 0 12px rgba(0,255,136,0.3);
}

.diag-flex { display: flex; align-items: center; justify-content: center; gap: 30px; margin-bottom: 25px; flex-wrap: wrap; }
.diag-ring-container { position: relative; width: 130px; height: 130px; flex-shrink: 0; }
.diag-spin { position: absolute; inset: 0; border: 2.5px solid transparent; border-top-color: var(--c-purple-bright); border-radius: 50%; animation: spin-cursor 1s linear infinite; box-shadow: 0 0 15px var(--c-purple); }
.diag-spin-reverse { position: absolute; inset: 12px; border: 2px solid transparent; border-bottom-color: var(--c-cyan); border-radius: 50%; animation: spin-cursor 1.5s linear infinite reverse; box-shadow: 0 0 12px var(--c-cyan); }
#diag-percent { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 26px; font-weight: 900; color: #fff; text-shadow: 0 0 18px var(--c-purple-bright);}

.diag-logs { 
  text-align: left; font-family: var(--font-body), monospace; font-size: 14.5px; color: var(--c-purple-bright); 
  height: 140px; width: 100%; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  background: rgba(2, 6, 14, 0.75); padding: 14px 16px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.08);
}
.diag-line { margin-bottom: 5px; text-shadow: 0 0 6px rgba(181,36,255,0.4); font-size: 13.5px; font-weight: 600; }
.diag-time { color: var(--text-muted); margin-right: 8px; font-family: var(--font-mono); font-size: 15px; }

.diag-bar-bg { height: 6px; background: rgba(157,0,255,0.18); position: relative; overflow: hidden; border-radius: 3px; margin-top: 15px; border: 1px solid rgba(255,255,255,0.05); }
#diag-bar-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--c-cyan), var(--c-purple-bright), var(--c-green)); box-shadow: 0 0 25px var(--c-purple-bright); transition: width 0.08s linear;}

/* WARP DRIVE EXIT ANIMATION */
.warp-exit {
  animation: warp-drive 0.8s cubic-bezier(0.7, 0, 0.3, 1) forwards !important;
}
@keyframes warp-drive {
  0% { transform: scale(1); filter: blur(0px) brightness(1); opacity: 1; }
  50% { transform: scale(1.15); filter: blur(6px) brightness(1.6); opacity: 0.8; }
  100% { transform: scale(1.6); filter: blur(18px) brightness(3); opacity: 0; visibility: hidden; pointer-events: none; }
}

/* THEME MODES */
.theme-purple-mode {
  --c-purple: #9d00ff !important;
  --c-purple-bright: #b524ff !important;
}
.theme-cyan-mode {
  --c-purple: #00e5ff !important;
  --c-purple-bright: #66f0ff !important;
}
.theme-green-mode {
  --c-purple: #00ff88 !important;
  --c-purple-bright: #66ffb3 !important;
}
.theme-red-mode {
  --c-purple: #ff2a5f !important;
  --c-purple-bright: #ff6688 !important;
}

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

*, html, body, a, button, [role="button"], .btn, input, select, textarea {
  cursor: var(--nxp-cursor) !important;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Network Particle Canvas */
#network-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
}

/* Scanline subtle overlay */
.scanlines {
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
  background-size: 100% 3px, 6px 100%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.4;
}

/* Click Ripple */
.click-ripple {
  position: fixed;
  border-radius: 50%;
  border: 2px solid var(--c-cyan);
  box-shadow: 0 0 15px var(--c-cyan);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple-out 0.35s ease-out forwards;
  pointer-events: none;
  z-index: 10000000;
}
@keyframes ripple-out {
  to { transform: translate(-50%, -50%) scale(2.8); opacity: 0; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border-cyan); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-cyan); }

/* Container */
.nxp-container {
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

/* Header & Nav */
.nxp-header {
  border-bottom: 1px solid var(--border-cyan);
  background: rgba(1, 3, 8, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.nxp-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.nxp-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.2s;
}
.nxp-brand:hover {
  transform: scale(1.02);
}

.nxp-brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--c-purple-bright);
  box-shadow: 0 0 18px var(--c-purple-glow), inset 0 0 10px rgba(157, 0, 255, 0.3);
  object-fit: cover;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.nxp-brand:hover .nxp-brand-logo {
  border-color: var(--c-cyan);
  box-shadow: 0 0 25px var(--c-cyan);
  transform: rotate(5deg);
}

.nxp-brand-text h1 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 2.5px;
  background: linear-gradient(90deg, #ffffff, var(--c-purple-bright), var(--c-cyan), #ffffff);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 4s linear infinite;
  filter: drop-shadow(0 0 10px rgba(157, 0, 255, 0.7));
}
@keyframes shine { to { background-position: 250% center; } }

.nxp-brand-text span {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--c-cyan);
  letter-spacing: 1.5px;
  display: block;
}

/* Nav Links & Controls */
.nxp-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nxp-nav-links a {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c-purple-bright);
  text-decoration: none;
  transition: all 0.25s;
}
.nxp-nav-links a:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--c-cyan);
}

/* Theme Switcher */
.theme-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 14, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 5px 10px;
  border-radius: 20px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.6);
}
.theme-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer !important;
  transition: all 0.25s;
  opacity: 0.6;
  border: 1.5px solid transparent;
}
.theme-dot:hover, .theme-dot.active {
  opacity: 1;
  transform: scale(1.35);
  border-color: #ffffff;
}
.dot-purple { background: #9d00ff; box-shadow: 0 0 8px #9d00ff; }
.dot-cyan { background: #00e5ff; box-shadow: 0 0 8px #00e5ff; }
.dot-green { background: #00ff88; box-shadow: 0 0 8px #00ff88; }
.dot-red { background: #ff2a5f; box-shadow: 0 0 8px #ff2a5f; }

/* Buttons */
.btn-cyber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.btn-cyan {
  background: rgba(0, 229, 255, 0.12);
  color: var(--c-cyan);
  border: 1px solid var(--c-cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}
.btn-cyan:hover {
  background: var(--c-cyan);
  color: #010308;
  box-shadow: 0 0 25px var(--c-cyan);
  transform: translateY(-2px);
}

.btn-purple {
  background: rgba(157, 0, 255, 0.15);
  color: var(--c-purple-bright);
  border: 1px solid var(--c-purple);
  box-shadow: 0 0 12px var(--c-purple-glow);
}
.btn-purple:hover {
  background: var(--c-purple-bright);
  color: #fff;
  box-shadow: 0 0 25px var(--c-purple-bright);
  transform: translateY(-2px);
}

.btn-discord {
  background: #5865F2;
  color: #fff;
  border: 1px solid #7289da;
  box-shadow: 0 0 18px rgba(88, 101, 242, 0.45);
}
.btn-discord:hover {
  background: #4752c4;
  box-shadow: 0 0 28px rgba(88, 101, 242, 0.85);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  border: 1px solid var(--border-panel);
}
.btn-ghost:hover {
  color: var(--text-main);
  border-color: var(--c-cyan);
}

.btn-red {
  background: rgba(255, 42, 95, 0.15);
  color: var(--c-red);
  border: 1px solid var(--c-red);
}
.btn-red:hover {
  background: var(--c-red);
  color: #fff;
  box-shadow: 0 0 20px var(--c-red);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.1);
}
.btn-outline:hover {
  background: rgba(0, 229, 255, 0.15);
  color: #fff;
  border-color: var(--c-cyan);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
  transform: translateY(-2px);
}

.nav-forum-active {
  color: var(--c-purple-bright) !important;
  text-shadow: 0 0 12px var(--c-purple-bright), 0 0 22px rgba(181, 36, 255, 0.6) !important;
  border-bottom: 2px solid var(--c-purple-bright);
  box-shadow: 0 3px 12px rgba(181, 36, 255, 0.35);
  padding-bottom: 2px;
}

/* User Card in Nav */
.user-nav-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-panel-light);
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-cyan);
}
.user-nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--c-cyan);
}
.user-nav-info {
  display: flex;
  flex-direction: column;
}
.user-nav-name {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

/* Badges */
.badge-role {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  border: 1px solid currentColor;
}

/* Telemetry Bar */
.telemetry-banner {
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.08), rgba(157, 0, 255, 0.08));
  border-bottom: 1px solid var(--border-panel);
  padding: 8px 0;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  position: relative;
  z-index: 10;
}
.telemetry-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}
.telemetry-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.telemetry-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 8px var(--c-green);
  animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Main Grid Layout (Forum Content + Server Cluster HUD) */
.forum-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  margin-top: 24px;
}

/* Server Cluster Status Widget */
.cluster-widget {
  background: var(--bg-panel);
  border: 1px solid var(--border-cyan);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.08);
  height: fit-content;
  position: sticky;
  top: 90px;
}
.cluster-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-panel);
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.cluster-widget-header h3 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.server-item {
  background: rgba(3, 7, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 12px;
  transition: all 0.2s;
}
.server-item:hover {
  border-color: var(--c-cyan);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
}
.server-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.server-name {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}
.server-status-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
}
.server-status-pill.online {
  background: rgba(0, 255, 136, 0.15);
  color: var(--c-green);
  border: 1px solid var(--c-green);
}
.server-status-pill.offline {
  background: rgba(255, 42, 95, 0.15);
  color: var(--c-red);
  border: 1px solid var(--c-red);
}
.server-metrics {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.server-metrics span strong {
  color: var(--c-cyan);
}

/* Category List */
.category-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.category-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-panel);
  border-left: 4px solid var(--c-cyan);
  border-radius: 6px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 46px 1fr 120px 220px;
  align-items: center;
  gap: 18px;
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
}
.category-card:hover {
  border-color: var(--c-cyan);
  border-left-color: var(--c-purple-bright);
  box-shadow: 0 5px 25px rgba(0, 229, 255, 0.12);
  transform: translateY(-2px);
}
.category-card.classified {
  border-left-color: var(--c-red);
}

.category-icon {
  font-size: 1.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.category-info h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.category-info p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}
.category-stats {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0 10px;
}
.category-stats span {
  color: var(--c-cyan);
  font-weight: bold;
}
.category-last-post {
  font-size: 0.85rem;
}
.category-last-post .title {
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
.category-last-post .meta {
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* Thread List Table */
.thread-list-container {
  background: var(--bg-panel);
  border: 1px solid var(--border-panel);
  border-radius: 8px;
  overflow: hidden;
}
.thread-list-header {
  display: grid;
  grid-template-columns: 1fr 100px 90px 200px;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border-panel);
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  color: var(--c-cyan);
  text-transform: uppercase;
}
.thread-item {
  display: grid;
  grid-template-columns: 1fr 100px 90px 200px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}
.thread-item:hover {
  background: rgba(0, 229, 255, 0.04);
}
.thread-item.pinned {
  background: rgba(157, 0, 255, 0.05);
  border-left: 3px solid var(--c-purple-bright);
}
.thread-main {
  display: flex;
  align-items: center;
  gap: 12px;
}
.thread-icon {
  font-size: 1.1rem;
}
.thread-title {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.thread-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.thread-replies, .thread-views {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--text-muted);
}
.thread-last-activity {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Post Container */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}
.post-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-panel);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 200px 1fr;
  overflow: hidden;
}
.post-card.op-post {
  border-color: var(--border-cyan);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.06);
}
.post-author {
  background: rgba(0, 0, 0, 0.35);
  border-right: 1px solid var(--border-panel);
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.post-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--c-cyan);
  box-shadow: 0 0 15px var(--c-cyan-glow);
  margin-bottom: 10px;
}
.post-author-name {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  word-break: break-word;
}
.post-author-stats {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.4;
}
.post-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 14px;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.post-content {
  font-size: 1.02rem;
  color: var(--text-main);
  line-height: 1.7;
}

/* Markdown Rendering */
.post-content h1, .post-content h2, .post-content h3 {
  font-family: var(--font-head);
  color: #fff;
  margin: 14px 0 8px;
}
.post-content h1 { font-size: 1.35rem; color: var(--c-cyan); border-bottom: 1px solid var(--border-panel); padding-bottom: 6px; }
.post-content h2 { font-size: 1.2rem; color: var(--c-purple-bright); }
.post-content h3 { font-size: 1.05rem; }
.post-content p { margin-bottom: 12px; }
.post-content ul, .post-content ol { margin-left: 20px; margin-bottom: 12px; }
.post-content blockquote {
  border-left: 3px solid var(--c-cyan);
  background: rgba(0, 229, 255, 0.05);
  padding: 8px 14px;
  margin: 12px 0;
  border-radius: 0 4px 4px 0;
  color: var(--text-muted);
  font-style: italic;
}
.post-content pre {
  background: #030712;
  border: 1px solid var(--border-panel);
  border-radius: 6px;
  padding: 12px;
  overflow-x: auto;
  font-family: 'Consolas', monospace;
  font-size: 0.88rem;
  color: #a5f3fc;
  margin: 12px 0;
}
.post-content code {
  font-family: 'Consolas', monospace;
  background: rgba(0, 229, 255, 0.1);
  color: var(--c-cyan);
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 0.9em;
}

/* Reactions Bar */
.post-footer {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.btn-reaction {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-panel);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 20px;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.btn-reaction:hover {
  border-color: var(--c-cyan);
  color: #fff;
  transform: scale(1.05);
}
.btn-reaction.active {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--c-cyan);
  color: var(--c-cyan);
  box-shadow: 0 0 10px var(--c-cyan-glow);
}

/* Inputs */
.input-cyber, .textarea-cyber, .select-cyber {
  width: 100%;
  background: rgba(3, 7, 18, 0.85);
  border: 1px solid var(--border-cyan);
  border-radius: 4px;
  padding: 10px 14px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
}
.input-cyber:focus, .textarea-cyber:focus, .select-cyber:focus {
  border-color: var(--c-cyan);
  box-shadow: 0 0 12px var(--c-cyan-glow);
}
.textarea-cyber { min-height: 140px; resize: vertical; }

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.modal-backdrop.show { display: flex; }
.modal-content {
  background: var(--bg-panel);
  border: 1px solid var(--c-cyan);
  border-radius: 8px;
  width: 100%;
  max-width: 650px;
  box-shadow: 0 0 35px var(--c-cyan-glow);
  overflow: hidden;
  animation: modal-slide 0.3s ease;
}
@keyframes modal-slide {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-panel);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h2 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: #fff;
  margin: 0;
}
.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}
.modal-close:hover { color: var(--c-red); }
.modal-body { padding: 22px; }
.modal-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border-panel);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--bg-panel);
  border: 1px solid var(--c-cyan);
  box-shadow: 0 0 20px var(--c-cyan-glow);
  padding: 12px 18px;
  border-radius: 4px;
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toast-in 0.3s ease;
}
.toast.error {
  border-color: var(--c-red);
  box-shadow: 0 0 20px var(--c-red-glow);
}
@keyframes toast-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 1080px) {
  .forum-grid { grid-template-columns: 1fr; }
  .cluster-widget { position: static; margin-bottom: 25px; }
  .nxp-nav-links { display: none; }
}
@media (max-width: 768px) {
  .category-card { grid-template-columns: 36px 1fr; }
  .category-stats, .category-last-post { display: none; }
  .thread-list-header { grid-template-columns: 1fr; }
  .thread-list-header > div:not(:first-child) { display: none; }
  .thread-item { grid-template-columns: 1fr; }
  .thread-replies, .thread-views, .thread-last-activity { display: none; }
  .post-card { grid-template-columns: 1fr; }
  .post-author { border-right: none; border-bottom: 1px solid var(--border-panel); flex-direction: row; gap: 14px; text-align: left; }
  .post-avatar { width: 44px; height: 44px; margin-bottom: 0; }
}

/* Footer Nav Links */
.footer-nav-links a {
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-block;
}
.footer-nav-links a:hover {
  color: #ffffff !important;
  text-shadow: 0 0 12px var(--c-purple-bright), 0 0 20px var(--c-cyan) !important;
  transform: translateY(-2px);
}