/* ========== RESET & VARIABLES ========== */
:root {
  --bg-primary: #0a0c0f;
  --bg-secondary: #0f1217;
  --bg-card: #13161c;
  --border-glow: rgba(0, 255, 100, 0.25);
  --green-primary: #00ff66;
  --green-dim: #00aa44;
  --cyan-glow: #00ffff;
  --red-alert: #ff3366;
  --orange-warn: #ff8844;
  --yellow-warn: #ffcc44;
  --text-white: #f0f0f0;
  --text-dim: #8a9ba8;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Fira Code', 'Share Tech Mono', monospace;
  --font-display: 'Orbitron', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg-primary);
  color: var(--text-white);
  font-family: var(--font-main);
  overflow: hidden;
  height: 100vh;
  font-size: 14px;
  line-height: 1.5;
}
/* ========== HEADER STYLES ========== */
.main-header {
  position: fixed;
  top: 0;
  left: 280px;
  right: 0;
  height: 60px;
  background: rgba(10, 12, 18, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 100;
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.hacker-icon {
  font-size: 1.8rem;
  color: var(--green-primary);
  text-shadow: 0 0 10px var(--green-primary);
  animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

.header-title {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.header-glow {
  color: var(--text-white);
  text-shadow: 0 0 8px rgba(0, 255, 100, 0.5);
}

.header-accent {
  color: var(--green-primary);
  text-shadow: 0 0 12px var(--green-primary);
}

.header-badge {
  font-size: 0.65rem;
  background: rgba(0, 255, 100, 0.15);
  padding: 2px 6px;
  border-radius: 12px;
  border: 1px solid var(--green-dim);
  margin-left: 0.5rem;
  color: var(--green-primary);
}

.header-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-dim);
  background: rgba(0, 255, 100, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
  border-left: 2px solid var(--green-primary);
}

.status-led {
  width: 8px;
  height: 8px;
  background: var(--green-primary);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green-primary);
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-stats-mini {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.header-stats-mini span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.header-stats-mini i {
  color: var(--green-primary);
  font-size: 0.8rem;
}

.social-icons {
  display: flex;
  gap: 0.8rem;
}

.social-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 100, 0.08);
  border: 1px solid var(--border-glow);
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 1rem;
  transition: all 0.2s;
  text-decoration: none;
}

.social-icon:hover {
  background: var(--green-primary);
  border-color: var(--green-primary);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(0, 255, 100, 0.3);
}

/* ========== BACKGROUND EFFECTS ========== */
#matrixCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.12;
  pointer-events: none;
}

#threeCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.08;
  pointer-events: none;
}

.scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.1) 0px, rgba(0,0,0,0.1) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
  z-index: 1;
}

.vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ========== BOOT SCREEN ========== */
#boot-screen {
  position: fixed;
  inset: 0;
  background: #000000;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}

.boot-container {
  text-align: center;
  max-width: 650px;
  width: 90%;
}

.boot-logo {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--green-primary);
  text-shadow: 0 0 20px var(--green-primary);
  margin-bottom: 0.5rem;
  letter-spacing: 3px;
}

.boot-accent {
  color: var(--cyan-glow);
  text-shadow: 0 0 15px var(--cyan-glow);
}

.boot-sub {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  letter-spacing: 2px;
}

.boot-log {
  background: rgba(0, 20, 0, 0.4);
  border: 1px solid var(--border-glow);
  height: 200px;
  overflow-y: auto;
  padding: 1rem;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-bottom: 1.5rem;
}

.boot-log-line {
  color: var(--green-dim);
  margin: 4px 0;
  animation: fadeInLine 0.2s ease;
}

.boot-log-line.ok { color: var(--green-primary); }
.boot-log-line.warn { color: var(--orange-warn); }

.boot-progress {
  height: 3px;
  background: #1a2a1a;
  margin-bottom: 1rem;
  overflow: hidden;
}

#bootProgressFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green-dim), var(--green-primary));
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--green-primary);
}

.boot-status {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 1px;
}

@keyframes fadeInLine {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ========== MAIN APP LAYOUT ========== */
.app-wrapper {
  display: flex;
  height: 100vh;
  position: relative;
  z-index: 2;
}

/* ========== SIDEBAR ========== */
.sidebar {
  width: 280px;
  background: rgba(10, 12, 18, 0.95);
  backdrop-filter: blur(12px);
  border-right: 1px solid var(--border-glow);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 10;
}

.sidebar-brand {
  padding: 1.5rem 1.2rem;
  border-bottom: 1px solid var(--border-glow);
}

.brand-3d {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: 1px;
}

.brand-highlight {
  color: var(--green-primary);
  text-shadow: 0 0 10px var(--green-primary);
}

.brand-tag {
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-top: 0.3rem;
  letter-spacing: 1px;
}

.security-stats {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border-glow);
}

.sec-item {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sec-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.sec-led.green { background: var(--green-primary); box-shadow: 0 0 5px var(--green-primary); animation: pulse 1.5s infinite; }
.sec-led.cyan { background: var(--cyan-glow); box-shadow: 0 0 5px var(--cyan-glow); }
.sec-led.red { background: var(--red-alert); box-shadow: 0 0 5px var(--red-alert); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.nav-menu {
  flex: 1;
  padding: 1rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-btn {
  background: transparent;
  border: none;
  padding: 10px 16px;
  color: var(--text-dim);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 6px;
}

.nav-btn:hover {
  background: rgba(0, 255, 100, 0.08);
  color: var(--green-primary);
}

.nav-btn.active {
  background: rgba(0, 255, 100, 0.12);
  color: var(--green-primary);
  border-left-color: var(--green-primary);
}

.nav-icon {
  font-size: 1.1rem;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--border-glow);
}

.threat-ticker {
  font-size: 0.65rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: tickerScroll 20s linear infinite;
  margin-bottom: 8px;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.footer-copyright {
  font-size: 0.6rem;
  color: #3a4a3a;
  text-align: center;
}

/* ========== MAIN CONTENT ========== */
.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--green-dim) transparent;
}

.main-content::-webkit-scrollbar {
  width: 5px;
}
.main-content::-webkit-scrollbar-track {
  background: transparent;
}
.main-content::-webkit-scrollbar-thumb {
  background: var(--green-dim);
  border-radius: 10px;
}

.tab-pane {
  display: none;
  animation: fadeUp 0.25s ease;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pane-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-glow);
  flex-wrap: wrap;
  gap: 1rem;
}

.glow-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-white), var(--green-primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 1px;
}

.title-accent {
  color: var(--green-primary);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.header-stats {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  background: rgba(0, 255, 100, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
}

/* ========== FILTER SECTION ========== */
.filter-section {
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-area {
  flex: 2;
  min-width: 250px;
}

#searchPayload {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  color: var(--text-white);
  font-family: var(--font-main);
  font-size: 0.85rem;
  border-radius: 8px;
  outline: none;
  transition: all 0.2s;
}

#searchPayload:focus {
  border-color: var(--green-primary);
  box-shadow: 0 0 10px rgba(0, 255, 100, 0.2);
}

.filter-group {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

select {
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  color: var(--text-white);
  font-family: var(--font-main);
  font-size: 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  outline: none;
}

select:focus {
  border-color: var(--green-primary);
}

/* ========== PAYLOAD GRID ========== */
.payload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1rem;
}

.payload-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.2s;
  cursor: pointer;
}

.payload-card:hover {
  transform: translateY(-3px);
  border-color: var(--green-primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-primary);
}

.severity-badge {
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 600;
}

.severity-Critical { background: rgba(255, 51, 102, 0.2); color: var(--red-alert); border: 1px solid var(--red-alert); }
.severity-High { background: rgba(255, 136, 68, 0.2); color: var(--orange-warn); border: 1px solid var(--orange-warn); }
.severity-Medium { background: rgba(255, 204, 68, 0.2); color: var(--yellow-warn); border: 1px solid var(--yellow-warn); }
.severity-Low { background: rgba(0, 255, 100, 0.15); color: var(--green-primary); border: 1px solid var(--green-primary); }

.vector-badge {
  font-size: 0.65rem;
  padding: 3px 8px;
  background: rgba(100, 100, 200, 0.15);
  border-radius: 20px;
  color: var(--cyan-glow);
}

.payload-preview {
  background: #0a0c10;
  padding: 0.6rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #88ff88;
  margin: 0.75rem 0;
  word-break: break-all;
  border-left: 2px solid var(--green-dim);
}

.card-footer-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.card-btn {
  background: transparent;
  border: 1px solid var(--border-glow);
  padding: 5px 12px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}

.card-btn:hover {
  border-color: var(--green-primary);
  color: var(--green-primary);
}

/* ========== POLY ENGINE ========== */
.engine-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.engine-controls {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  padding: 1.2rem;
}

.ctrl-group {
  margin-bottom: 1.2rem;
}

.ctrl-group label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.ctrl-group select {
  width: 100%;
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

input[type="range"] {
  flex: 1;
  height: 3px;
  -webkit-appearance: none;
  background: var(--border-glow);
  border-radius: 3px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: var(--green-primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 5px var(--green-primary);
}

.encoding-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.encoding-grid label {
  font-size: 0.75rem;
  text-transform: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.action-btn {
  width: 100%;
  padding: 10px;
  margin-top: 0.5rem;
  border: none;
  border-radius: 8px;
  font-family: var(--font-main);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.primary {
  background: var(--green-dim);
  color: #000;
}

.primary:hover {
  background: var(--green-primary);
  box-shadow: 0 0 15px rgba(0, 255, 100, 0.3);
}

.secondary {
  background: transparent;
  border: 1px solid var(--green-primary);
  color: var(--green-primary);
}

.secondary:hover {
  background: rgba(0, 255, 100, 0.1);
}

.engine-output {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
}

.output-header {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-glow);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.code-block {
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #aaffaa;
  background: #0a0c10;
  margin: 0;
  min-height: 180px;
  word-break: break-all;
  white-space: pre-wrap;
  flex: 1;
}

.variant-hint {
  padding: 0.6rem 1rem;
  border-top: 1px solid var(--border-glow);
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* ========== 3D VISUALIZATION ========== */
.viz-3d-container {
  position: relative;
  height: 550px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-glow);
  background: #030605;
}

.viz-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.viz-control-panel {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-glow);
}

.viz-control {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  color: var(--text-dim);
  padding: 5px 10px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}

.viz-control:hover {
  border-color: var(--green-primary);
  color: var(--green-primary);
}

/* ========== TERMINAL ========== */
.terminal-container {
  background: #030605;
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  overflow: hidden;
  height: 500px;
  display: flex;
  flex-direction: column;
}

.terminal-bar {
  padding: 0.6rem 1rem;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px solid var(--border-glow);
}

.term-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.term-dot.red { background: #ff5555; }
.term-dot.yellow { background: #ffcc55; }
.term-dot.green { background: #55ff55; }

.term-path {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-left: auto;
  font-family: var(--font-mono);
}

.terminal-output {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #88ff88;
}

.terminal-line {
  margin: 4px 0;
}

.terminal-input-line {
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--border-glow);
  background: #0a100a;
}

.prompt {
  color: var(--green-primary);
  margin-right: 0.6rem;
  font-family: var(--font-mono);
}

#terminalInput {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-white);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  outline: none;
}

/* ========== STATS DASHBOARD ========== */
.stats-dashboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
}

.stat-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--green-primary);
}

.stat-value.critical {
  color: var(--red-alert);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 0.3rem;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  padding: 1rem;
  height: 280px;
}

/* ========== MODAL ========== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-container {
  background: var(--bg-card);
  border: 1px solid var(--green-primary);
  border-radius: 16px;
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 1.5rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: 1px solid var(--border-glow);
  color: var(--text-dim);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
}

.modal-close:hover {
  border-color: var(--red-alert);
  color: var(--red-alert);
}

/* ========== TOAST ========== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--green-primary);
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  font-size: 0.8rem;
  z-index: 1100;
}

.toast.hidden {
  display: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .sidebar {
    width: 240px;
  }
  .engine-layout {
    grid-template-columns: 1fr;
  }
  .stats-dashboard {
    grid-template-columns: repeat(2, 1fr);
  }
  .charts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .sidebar {
    display: none;
  }
  .main-content {
    padding: 1rem;
  }
  .payload-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== FOOTER STYLES ========== */
.main-footer {
  position: fixed;
  bottom: 0;
  left: 280px;
  right: 0;
  background: rgba(5, 7, 12, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-glow);
  padding: 1rem 2rem;
  z-index: 100;
  animation: slideUp 0.5s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 1px;
}

.footer-accent {
  color: var(--green-primary);
}

.footer-tagline {
  font-size: 0.65rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  transition: all 0.2s;
  position: relative;
}

.footer-link::before {
  content: '>';
  position: absolute;
  left: -12px;
  opacity: 0;
  transition: opacity 0.2s;
  color: var(--green-primary);
}

.footer-link:hover {
  color: var(--green-primary);
  transform: translateX(4px);
}

.footer-link:hover::before {
  opacity: 1;
}

.footer-social {
  display: flex;
  gap: 0.8rem;
}

.footer-social-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-glow);
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 0.9rem;
  transition: all 0.2s;
  text-decoration: none;
}

.footer-social-icon:hover {
  background: var(--green-primary);
  border-color: var(--green-primary);
  color: #000;
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-glow);
  font-size: 0.6rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.footer-version {
  color: var(--green-dim);
}

/* Adjust main content padding for header and footer */
.main-content {
  padding: 80px 2rem 70px 2rem !important;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .main-header {
    left: 240px;
  }
  .main-footer {
    left: 240px;
  }
  .header-title {
    font-size: 1rem;
  }
  .header-status {
    display: none;
  }
  .footer-links {
    display: none;
  }
}

@media (max-width: 650px) {
  .main-header {
    left: 0;
  }
  .main-footer {
    left: 0;
  }
  .header-stats-mini {
    display: none;
  }
  .social-icons {
    gap: 0.4rem;
  }
  .social-icon {
    width: 28px;
    height: 28px;
  }
  .footer-social {
    margin-left: auto;
  }
  .footer-brand {
    flex: 1;
  }
}