/* ============================================================
   Adjactive — AI Red Teaming Dashboard
   Terminal / Cyberpunk Theme
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #0d0d14;
  --bg-card: #111118;
  --bg-card-hover: #16161f;
  --bg-terminal: #08080d;
  --bg-header: #0c0c12;
  --bg-sidebar: #0b0b11;
  --bg-footer: #0c0c12;

  --border-primary: #1a1a2e;
  --border-accent: #2a2a44;
  --border-glow: rgba(0, 255, 136, 0.15);

  --text-primary: #c8c8d4;
  --text-secondary: #6a6a80;
  --text-muted: #44445a;
  --text-bright: #e8e8f0;

  --accent-green: #00ff88;
  --accent-green-dim: #00cc6a;
  --accent-cyan: #00d4ff;
  --accent-blue: #4488ff;
  --accent-red: #ff3355;
  --accent-orange: #ff8844;
  --accent-yellow: #ffcc00;
  --accent-purple: #aa66ff;

  --severity-critical: #ff2244;
  --severity-high: #ff4466;
  --severity-medium: #ffaa33;
  --severity-low: #44cc88;

  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
  --font-sans: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  --sidebar-width: 200px;
  --header-height: 48px;
  --footer-height: 36px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-mono);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

::selection {
  background: rgba(0, 255, 136, 0.2);
  color: var(--accent-green);
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-accent);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ---------- Scanline Overlay ---------- */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

body.no-scanlines::after {
  display: none;
}

/* ---------- HEADER ---------- */
.header {
  height: var(--header-height);
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(0, 255, 136, 0.3));
  border-radius: 4px;
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 1px;
  font-family: var(--font-mono);
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--text-secondary);
}

.meta-separator {
  color: var(--border-accent);
}

.meta-value {
  color: var(--text-primary);
  font-weight: 600;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 6px rgba(0, 255, 136, 0.6);
  animation: pulse-dot 2s ease-in-out infinite;
  vertical-align: middle;
  margin-right: 2px;
}

.status-active {
  color: var(--accent-green);
}

.status-secure {
  color: var(--accent-green);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-time {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(0, 255, 136, 0.6); }
  50% { opacity: 0.5; box-shadow: 0 0 2px rgba(0, 255, 136, 0.3); }
}

/* ---------- APP LAYOUT ---------- */
.app-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: calc(100vh - var(--header-height) - var(--footer-height));
}

/* ---------- SIDEBAR ---------- */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-primary);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  padding: 12px 0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.nav-list {
  list-style: none;
}

.nav-primary {
  margin-bottom: auto;
}

.nav-secondary {
  border-top: 1px solid var(--border-primary);
  padding-top: 8px;
  margin-top: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--text-secondary);
  font-size: 12px;
  position: relative;
}

.nav-item:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.nav-item.active {
  background: rgba(0, 255, 136, 0.05);
  color: var(--accent-green);
  border-right: 2px solid var(--accent-green);
}

.nav-item.active .nav-prefix {
  color: var(--accent-green);
}

.nav-prefix {
  margin-right: 10px;
  font-size: 10px;
  color: var(--text-muted);
}

.nav-label {
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ---------- USER PROFILE ---------- */
.user-profile {
  border-top: 1px solid var(--border-primary);
  padding: 10px 12px;
  margin-top: 8px;
}

.user-profile-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.user-avatar svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.user-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.user-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-email {
  font-size: 9px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-auth {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: var(--radius-sm);
  color: var(--accent-green);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  letter-spacing: 0.3px;
}

.btn-auth:hover {
  background: rgba(0, 255, 136, 0.15);
  border-color: rgba(0, 255, 136, 0.4);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.1);
}

.btn-auth.btn-logout {
  background: rgba(255, 51, 85, 0.08);
  border-color: rgba(255, 51, 85, 0.2);
  color: var(--accent-red);
}

.btn-auth.btn-logout:hover {
  background: rgba(255, 51, 85, 0.15);
  border-color: rgba(255, 51, 85, 0.4);
  box-shadow: 0 0 12px rgba(255, 51, 85, 0.1);
}

.hidden {
  display: none !important;
}

/* ---------- LOGIN SCREEN ---------- */
.login-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.login-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.login-card {
  text-align: center;
  padding: 40px 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 255, 136, 0.03);
  max-width: 400px;
  width: 90vw;
}

.login-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 12px rgba(0, 255, 136, 0.2));
  border-radius: 8px;
}

.login-title {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.login-subtitle {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-green);
  margin-bottom: 20px;
}

.login-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 32px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: var(--radius-md);
  color: var(--accent-green);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
  width: 100%;
}

.login-btn:hover {
  background: rgba(0, 255, 136, 0.18);
  border-color: rgba(0, 255, 136, 0.5);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.15);
  transform: translateY(-1px);
}

.login-btn:active {
  transform: translateY(0);
}

.login-footer {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 20px;
  letter-spacing: 0.5px;
}

/* ---------- MAIN CONTENT ---------- */
.main-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
}

/* ---------- SYSTEM LOAD CARDS ---------- */
.system-load {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.load-card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.load-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
}

.load-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
}

.load-card.critical::before { background: var(--severity-critical); }
.load-card.high::before { background: var(--severity-high); }
.load-card.medium::before { background: var(--severity-medium); }
.load-card.low::before { background: var(--severity-low); }

.load-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.load-card.critical .load-label { color: var(--severity-critical); }
.load-card.high .load-label { color: var(--severity-high); }
.load-card.medium .load-label { color: var(--severity-medium); }
.load-card.low .load-label { color: var(--severity-low); }

.load-count {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
  color: var(--text-bright);
}

.load-desc {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.load-bar {
  height: 3px;
  background: var(--bg-secondary);
  border-radius: 2px;
  overflow: hidden;
}

.load-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1s ease;
}

.critical-fill { background: var(--severity-critical); }
.high-fill { background: var(--severity-high); }
.medium-fill { background: var(--severity-medium); }
.low-fill { background: var(--severity-low); }

/* ---------- AUDIT PANEL ---------- */
.audit-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.audit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-primary);
}

.audit-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.settings-icon:hover {
  color: var(--accent-green);
}

.audit-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.audit-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.audit-progress-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 0.5px;
}

.audit-progress-bar {
  height: 3px;
  background: var(--bg-secondary);
}

.audit-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  transition: width 0.5s ease;
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
}

.audit-module {
  padding: 8px 16px;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-primary);
}

.module-name {
  color: var(--accent-cyan);
  font-weight: 600;
}

.audit-terminal {
  background: var(--bg-terminal);
  padding: 12px 16px;
  max-height: 200px;
  overflow-y: auto;
  font-size: 11.5px;
  line-height: 1.7;
}

.terminal-line {
  display: flex;
  gap: 8px;
  white-space: nowrap;
  animation: fadeInLine 0.3s ease;
}

.terminal-line .time {
  color: var(--text-muted);
  min-width: 60px;
}

.terminal-line .level {
  min-width: 48px;
  font-weight: 600;
}

.terminal-line .level.info { color: var(--accent-cyan); }
.terminal-line .level.warn { color: var(--accent-orange); }
.terminal-line .level.exec { color: var(--accent-purple); }
.terminal-line .level.error { color: var(--accent-red); }
.terminal-line .level.ok { color: var(--accent-green); }

.terminal-line .msg {
  color: var(--text-primary);
}

@keyframes fadeInLine {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- FINDINGS TABLE ---------- */
.findings-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.findings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-primary);
}

.findings-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.findings-count {
  font-size: 11px;
  color: var(--text-muted);
}

.findings-table-wrap {
  overflow-x: auto;
}

.findings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}

.findings-table thead {
  background: var(--bg-secondary);
}

.findings-table th {
  padding: 8px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-primary);
}

.findings-table td {
  padding: 8px 16px;
  border-bottom: 1px solid rgba(26, 26, 46, 0.5);
  color: var(--text-primary);
}

.findings-table tbody tr {
  transition: background 0.15s ease;
}

.findings-table tbody tr:hover {
  background: var(--bg-card-hover);
}

.cell-id {
  font-weight: 600;
  color: var(--text-secondary);
}

.cell-module {
  font-weight: 500;
}

.cell-vector {
  color: var(--text-secondary);
}

/* Severity badges */
.severity {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.severity.high {
  background: rgba(255, 68, 102, 0.15);
  color: var(--severity-high);
  border: 1px solid rgba(255, 68, 102, 0.3);
}

.severity.medium {
  background: rgba(255, 170, 51, 0.12);
  color: var(--severity-medium);
  border: 1px solid rgba(255, 170, 51, 0.3);
}

.severity.low {
  background: rgba(68, 204, 136, 0.12);
  color: var(--severity-low);
  border: 1px solid rgba(68, 204, 136, 0.3);
}

.severity.critical {
  background: rgba(255, 34, 68, 0.15);
  color: var(--severity-critical);
  border: 1px solid rgba(255, 34, 68, 0.3);
}

/* Status badges */
.status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.status.unresolved {
  background: rgba(255, 68, 102, 0.1);
  color: var(--accent-red);
  border: 1px solid rgba(255, 68, 102, 0.25);
}

.status.investigating {
  background: rgba(255, 170, 51, 0.1);
  color: var(--accent-orange);
  border: 1px solid rgba(255, 170, 51, 0.25);
}

.status.patched {
  background: rgba(0, 255, 136, 0.08);
  color: var(--accent-green-dim);
  border: 1px solid rgba(0, 255, 136, 0.2);
}

/* ---------- COMMAND BAR (FOOTER) ---------- */
.command-bar {
  height: var(--footer-height);
  background: var(--bg-footer);
  border-top: 1px solid var(--border-primary);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 20px;
  flex-shrink: 0;
  z-index: 100;
}

.cmd-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.cmd-item kbd {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.cmd-item span {
  letter-spacing: 0.5px;
  font-size: 10px;
}

/* ---------- COMMAND PALETTE MODAL ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  z-index: 1000;
}

.modal-overlay.visible {
  display: flex;
}

.command-palette {
  width: 480px;
  max-width: 90vw;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 255, 136, 0.05);
}

.palette-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-primary);
}

.palette-prompt {
  color: var(--accent-green);
  font-size: 14px;
  font-weight: 700;
  margin-right: 8px;
}

.palette-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-bright);
}

.palette-input::placeholder {
  color: var(--text-muted);
}

.palette-results {
  list-style: none;
  max-height: 300px;
  overflow-y: auto;
}

.palette-item {
  padding: 10px 16px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.1s;
  border-left: 2px solid transparent;
}

.palette-item:hover,
.palette-item.selected {
  background: rgba(0, 255, 136, 0.05);
  color: var(--accent-green);
  border-left-color: var(--accent-green);
}

/* ---------- WAITLIST GLASSMORPHISM OVERLAY ---------- */
.waitlist-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 15, 0.55);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.waitlist-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.waitlist-card {
  text-align: center;
  padding: 44px 40px 36px;
  max-width: 460px;
  width: 90vw;
  background: rgba(17, 17, 24, 0.72);
  border: 1px solid rgba(0, 255, 136, 0.12);
  border-radius: 16px;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(0, 255, 136, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: waitlistCardIn 0.5s ease forwards;
}

@keyframes waitlistCardIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.waitlist-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: rgba(0, 255, 136, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(0, 255, 136, 0.2);
  margin-bottom: 20px;
}

.waitlist-title {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.waitlist-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.waitlist-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}

.waitlist-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.waitlist-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.waitlist-btn:active {
  transform: scale(0.98);
}

.waitlist-btn.free {
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: var(--accent-cyan);
}

.waitlist-btn.free:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.12);
}

.waitlist-btn.pro {
  background: linear-gradient(135deg, rgba(170, 102, 255, 0.12), rgba(0, 255, 136, 0.12));
  border: 1px solid rgba(170, 102, 255, 0.3);
  color: var(--accent-purple);
}

.waitlist-btn.pro:hover {
  background: linear-gradient(135deg, rgba(170, 102, 255, 0.2), rgba(0, 255, 136, 0.2));
  border-color: rgba(170, 102, 255, 0.5);
  box-shadow: 0 0 24px rgba(170, 102, 255, 0.15);
}

.waitlist-btn .btn-tag {
  font-size: 9px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.waitlist-btn.free .btn-tag {
  background: rgba(0, 212, 255, 0.15);
  color: var(--accent-cyan);
}

.waitlist-btn.pro .btn-tag {
  background: rgba(170, 102, 255, 0.15);
  color: var(--accent-purple);
}

.waitlist-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.waitlist-btn .spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Waitlist toast notification */
.waitlist-toast {
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  z-index: 2500;
  opacity: 0;
  transition: all 0.4s ease;
  pointer-events: none;
  white-space: nowrap;
}

.waitlist-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.waitlist-toast.success {
  background: rgba(0, 255, 136, 0.12);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: var(--accent-green);
  box-shadow: 0 8px 32px rgba(0, 255, 136, 0.1);
}

.waitlist-toast.error {
  background: rgba(255, 51, 85, 0.12);
  border: 1px solid rgba(255, 51, 85, 0.3);
  color: var(--accent-red);
  box-shadow: 0 8px 32px rgba(255, 51, 85, 0.1);
}

/* ---------- WAITLIST CONFIRMED OVERLAY ---------- */
.waitlist-confirmed-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 15, 0.55);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.waitlist-confirmed-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.waitlist-confirmed-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  background: rgba(0, 255, 136, 0.06);
  border: 1px solid rgba(0, 255, 136, 0.15);
}

.confirmed-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}

.confirmed-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-green);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ---------- ANIMATIONS ---------- */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(0, 255, 136, 0.2); }
  50% { box-shadow: 0 0 16px rgba(0, 255, 136, 0.4); }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .system-load {
    grid-template-columns: repeat(2, 1fr);
  }

  .sidebar {
    width: 160px;
  }

  .header-meta {
    display: none;
  }
}

@media (max-width: 600px) {
  .system-load {
    grid-template-columns: 1fr;
  }

  .sidebar {
    width: 48px;
  }

  .nav-label {
    display: none;
  }

  .nav-prefix {
    margin-right: 0;
  }

  .command-bar {
    overflow-x: auto;
  }
}
