/* ============================================================
   tools4genz - Universal AI Defense & Writing Studio Design System
   3D Holographic Cyber-Forensics, Dynamic Lighting & Glassmorphism
   ============================================================ */

:root {
  --bg-primary: #040711;
  --bg-sidebar: rgba(8, 12, 24, 0.92);
  --bg-card: rgba(12, 18, 34, 0.68);
  --bg-card-hover: rgba(18, 28, 54, 0.85);
  
  --border-subtle: rgba(56, 189, 248, 0.16);
  --border-active: rgba(0, 240, 255, 0.65);
  --border-purple: rgba(168, 85, 247, 0.6);
  
  --cyan-glow: #00f0ff;
  --cyan-subtle: rgba(0, 240, 255, 0.14);
  --purple-glow: #a855f7;
  --purple-subtle: rgba(168, 85, 247, 0.14);
  --emerald-safe: #00ff88;
  --amber-warn: #ffaa00;
  --rose-danger: #ff3366;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --sidebar-width: 260px;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 240, 255, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(168, 85, 247, 0.08) 0%, transparent 45%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
}

/* CUSTOM CYBER NEON SCROLLBAR */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #040711;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.4) 0%, rgba(168, 85, 247, 0.4) 100%);
  border-radius: 4px;
  border: 1px solid rgba(0, 240, 255, 0.2);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.8) 0%, rgba(168, 85, 247, 0.8) 100%);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
}

/* 3D WEBGL BACKGROUND CONTAINER */
#three-bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

#canvas-3d-bg {
  display: none; /* Replaced by Three.js WebGL */
}

/* APP SHELL */
.app-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* 3D SIDEBAR */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  backdrop-filter: blur(28px);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 200;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-header {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

/* 3D FLOATING SHIELD BADGE */
.brand-badge-3d {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #00f0ff 0%, #7c3aed 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.45), inset 0 2px 4px rgba(255, 255, 255, 0.6);
  transform: perspective(600px) rotateY(-12deg) rotateX(6deg);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: floatShield 4s ease-in-out infinite alternate;
}

@keyframes floatShield {
  0% { transform: perspective(600px) rotateY(-12deg) rotateX(6deg) translateY(0px); }
  100% { transform: perspective(600px) rotateY(8deg) rotateX(-4deg) translateY(-4px); }
}

.brand-wrapper:hover .brand-badge-3d {
  transform: perspective(600px) rotateY(0deg) scale(1.1);
  box-shadow: 0 12px 32px rgba(0, 240, 255, 0.6), inset 0 2px 6px rgba(255, 255, 255, 0.8);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 40%, #00f0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tools4genz-credit-pill {
  font-size: 10px;
  font-family: var(--font-mono);
  color: #c084fc;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* SIDEBAR NAV LINKS */
.sidebar-nav {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
}

.sidebar-category {
  font-size: 10px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 12px 14px 4px;
  letter-spacing: 0.8px;
}

.nav-link-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.nav-link-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--cyan-glow);
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

.nav-link-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  transform: translateX(4px);
}

.nav-link-btn:hover::before {
  transform: scaleY(1);
}

.nav-link-btn.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.16) 0%, rgba(124, 58, 237, 0.18) 100%);
  color: #fff;
  border: 1px solid var(--border-active);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.22);
  transform: translateX(4px);
}

.nav-link-btn.active::before {
  transform: scaleY(1);
}

.nav-icon {
  font-size: 19px;
  width: 24px;
  display: flex;
  justify-content: center;
  transition: transform 0.2s ease;
}

.nav-link-btn:hover .nav-icon {
  transform: scale(1.15);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
}

/* MAIN CONTENT AREA */
.main-wrapper {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* TOP STATUS BAR */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 32px;
  background: rgba(4, 7, 17, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-bar-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
}

.tools4genz-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.18) 0%, rgba(0, 240, 255, 0.18) 100%);
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #c084fc;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 800;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.25);
}

.cf-edge-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(246, 130, 31, 0.12);
  border: 1px solid rgba(246, 130, 31, 0.4);
  color: #f6821f;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(246, 130, 31, 0.15);
}

/* CONTENT CONTAINER */
.content-body {
  padding: 32px 32px 80px;
  max-width: 1360px;
  margin: 0 auto;
  width: 100%;
}

/* 3D TILT GLASS PANELS */
.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  padding: 26px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  transform-style: preserve-3d;
  position: relative;
}

.glass-panel:hover {
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 20px 50px rgba(0, 240, 255, 0.12), inset 0 1px 2px rgba(255, 255, 255, 0.12);
}

.hero-header {
  text-align: center;
  margin-bottom: 28px;
}

.hero-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 30%, #00f0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 680px;
  margin: 0 auto;
}

/* 3D SOCIAL MEDIA SCANNER */
.social-input-bar {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-input {
  flex: 1;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}

.social-input:focus {
  border-color: var(--cyan-glow);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.platform-chips-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.platform-chip {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  transition: all 0.2s;
}

.platform-chip:hover {
  color: var(--cyan-glow);
  border-color: var(--cyan-glow);
}

.social-dossier-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  margin-top: 24px;
  animation: fadeIn3D 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn3D {
  from { opacity: 0; transform: perspective(800px) translateY(20px) rotateX(6deg); }
  to { opacity: 1; transform: perspective(800px) translateY(0) rotateX(0deg); }
}

.dossier-media-wrap {
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  position: relative;
  max-height: 380px;
  border: 1px solid var(--border-subtle);
}

.dossier-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   TEXT DETECTOR & HIGHLIGHTING
   ============================================================ */
.text-studio-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 24px;
}

.text-editor-box {
  display: flex;
  flex-direction: column;
  min-height: 480px;
}

.editor-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.text-area-main {
  width: 100%;
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.75;
  font-family: var(--font-sans);
  resize: none;
  min-height: 300px;
}

.sentence-highlight-output {
  min-height: 300px;
  font-size: 15px;
  line-height: 1.85;
  padding: 16px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  display: none;
}

.highlight-ai {
  background: rgba(239, 68, 68, 0.22);
  border-bottom: 2px solid #ef4444;
  border-radius: 4px;
  padding: 2px 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.highlight-ai:hover {
  background: rgba(239, 68, 68, 0.4);
}

.highlight-mixed {
  background: rgba(245, 158, 11, 0.22);
  border-bottom: 2px solid #f59e0b;
  border-radius: 4px;
  padding: 2px 4px;
}

.highlight-human {
  background: rgba(0, 255, 136, 0.15);
  border-bottom: 2px solid #00ff88;
  border-radius: 4px;
  padding: 2px 4px;
}

.editor-footer-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* HUMANIZER SPLIT COMPARISON */
.humanizer-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.tone-selector-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tone-btn {
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tone-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateY(-1px);
}

.tone-btn.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(0, 240, 255, 0.25) 100%);
  color: #fff;
  border-color: var(--purple-glow);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.3);
}

/* ============================================================
   3D HOLOGRAPHIC BIOMETRIC SCANNING PORTAL (DROPZONE)
   ============================================================ */
.dropzone-portal-wrapper {
  position: relative;
  perspective: 1200px;
}

.dropzone {
  background: radial-gradient(circle at 50% 45%, rgba(0, 240, 255, 0.08) 0%, rgba(168, 85, 247, 0.04) 45%, rgba(6, 11, 24, 0.88) 100%);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 24px;
  padding: 42px 28px;
  text-align: center;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), inset 0 0 35px rgba(0, 240, 255, 0.06);
  backdrop-filter: blur(24px);
  transform-style: preserve-3d;
}

.dropzone:hover, .dropzone.drag-active {
  border-color: var(--cyan-glow);
  box-shadow: 0 0 45px rgba(0, 240, 255, 0.38), inset 0 0 45px rgba(0, 240, 255, 0.15);
  transform: translateY(-4px) scale(1.008);
}

/* 3D HUD CORNER BRACKETS [ ] */
.hud-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--cyan-glow);
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 10;
}

.hud-corner.tl {
  top: 14px;
  left: 14px;
  border-top: 3px solid var(--cyan-glow);
  border-left: 3px solid var(--cyan-glow);
  border-top-left-radius: 6px;
}

.hud-corner.tr {
  top: 14px;
  right: 14px;
  border-top: 3px solid var(--cyan-glow);
  border-right: 3px solid var(--cyan-glow);
  border-top-right-radius: 6px;
}

.hud-corner.bl {
  bottom: 14px;
  left: 14px;
  border-bottom: 3px solid var(--cyan-glow);
  border-left: 3px solid var(--cyan-glow);
  border-bottom-left-radius: 6px;
}

.hud-corner.br {
  bottom: 14px;
  right: 14px;
  border-bottom: 3px solid var(--cyan-glow);
  border-right: 3px solid var(--cyan-glow);
  border-bottom-right-radius: 6px;
}

.dropzone:hover .hud-corner {
  box-shadow: 0 0 16px var(--cyan-glow);
  transform: scale(1.15);
}

/* DROPZONE 3D CANVAS */
#dropzone-3d-canvas {
  width: 170px;
  height: 170px;
  margin: 0 auto 12px;
  display: block;
  filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.5));
  transition: transform 0.3s ease;
}

.dropzone:hover #dropzone-3d-canvas {
  transform: scale(1.08);
}

/* 3D LASER SCANNER BEAM */
.scanning-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 240, 255, 0.3) 20%, #00f0ff 50%, rgba(0, 240, 255, 0.3) 80%, transparent 100%);
  box-shadow: 0 0 20px #00f0ff, 0 0 40px #00f0ff;
  animation: scanMove 2.6s infinite ease-in-out;
  display: block;
  opacity: 0.75;
  pointer-events: none;
  z-index: 5;
}

@keyframes scanMove {
  0% { top: 0%; opacity: 0; }
  15% { opacity: 0.9; }
  85% { opacity: 0.9; }
  100% { top: 100%; opacity: 0; }
}

/* 3D CYBER BUTTONS */
.btn-cyber-primary {
  background: linear-gradient(135deg, #00f0ff 0%, #0088ff 100%);
  color: #030712;
  font-weight: 800;
  border: none;
  border-radius: 12px;
  padding: 11px 22px;
  font-size: 13px;
  font-family: var(--font-sans);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(0, 240, 255, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.5);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-cyber-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 240, 255, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.7);
}

.btn-cyber-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(168, 85, 247, 0.45);
  border-radius: 12px;
  padding: 11px 22px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: default;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: all 0.2s;
}

.btn-cyber-secondary:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.8);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.3);
}

.workbench-grid {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 24px;
  margin-top: 28px;
}

.viewer-container {
  position: relative;
  width: 100%;
  height: 520px;
  background: #03060c;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
}

.viewer-canvas, .viewer-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* BUTTONS */
.btn-primary {
  padding: 12px 24px;
  background: linear-gradient(135deg, #00f0ff 0%, #7c3aed 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transform: perspective(400px) translateZ(0);
}

.btn-primary:hover {
  transform: perspective(400px) translateZ(8px) translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.6);
}

.btn-secondary {
  padding: 11px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: 12px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-active);
  transform: translateY(-1px);
}

.pill-btn {
  padding: 7px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.pill-btn:hover {
  background: rgba(0, 240, 255, 0.16);
  border-color: var(--border-active);
  color: var(--cyan-glow);
  transform: translateY(-1px);
}

/* LAYER BUTTONS */
.layer-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.layer-btn {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.layer-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
}

.layer-btn.active {
  background: var(--cyan-subtle);
  border-color: var(--border-active);
  color: var(--cyan-glow);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

/* SPLIT SCREEN SLIDER */
.split-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  user-select: none;
}

.split-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.split-layer.top {
  clip-path: inset(0 0 0 50%);
  pointer-events: none;
}

.split-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--cyan-glow);
  box-shadow: 0 0 16px var(--cyan-glow);
  cursor: ew-resize;
  z-index: 10;
  transform: translateX(-50%);
}

.split-handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  background: #060a16;
  border: 2px solid var(--cyan-glow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-glow);
  font-size: 14px;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
}

/* MAGNIFIER LOUPE */
.magnifier-loupe {
  position: absolute;
  width: 140px;
  height: 140px;
  border: 2px solid var(--cyan-glow);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.6), inset 0 0 24px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  display: none;
  overflow: hidden;
  z-index: 50;
  background-repeat: no-repeat;
  background-color: #000;
}

.magnifier-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.magnifier-crosshair::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: rgba(0, 240, 255, 0.7);
}

.magnifier-crosshair::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  height: 1px;
  width: 100%;
  background: rgba(0, 240, 255, 0.7);
}

/* 3D HOLOGRAPHIC GAUGE DIAL */
.gauge-svg-wrap {
  width: 180px;
  height: 180px;
  margin: 0 auto;
  position: relative;
}

.gauge-circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 14;
}

.gauge-circle-progress {
  fill: none;
  stroke-width: 14;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 1s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.5s ease;
  filter: drop-shadow(0 0 8px currentColor);
}

.gauge-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.gauge-value {
  font-size: 38px;
  font-weight: 800;
  font-family: var(--font-mono);
  line-height: 1;
}

.gauge-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}

.verdict-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.verdict-badge.emerald {
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid rgba(0, 255, 136, 0.4);
  color: #00ff88;
  box-shadow: 0 0 14px rgba(0, 255, 136, 0.25);
}

.verdict-badge.amber {
  background: rgba(255, 170, 0, 0.15);
  border: 1px solid rgba(255, 170, 0, 0.4);
  color: #ffaa00;
  box-shadow: 0 0 14px rgba(255, 170, 0, 0.25);
}

.verdict-badge.rose {
  background: rgba(255, 51, 102, 0.15);
  border: 1px solid rgba(255, 51, 102, 0.4);
  color: #ff3366;
  box-shadow: 0 0 16px rgba(255, 51, 102, 0.35);
  animation: pulseAlert 2s infinite ease-in-out;
}

@keyframes pulseAlert {
  0%, 100% { box-shadow: 0 0 12px rgba(255, 51, 102, 0.2); }
  50% { box-shadow: 0 0 26px rgba(255, 51, 102, 0.6); }
}

/* PROGRESS BARS */
.vector-row {
  margin-bottom: 10px;
}

.vector-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 3px;
}

.vector-name {
  color: var(--text-muted);
}

.vector-val {
  font-family: var(--font-mono);
}

.progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* FEED GRID */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--border-active);
  box-shadow: 0 16px 36px rgba(0, 240, 255, 0.18);
}

.post-thumb-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  background: #000;
}

.post-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
}

.post-badge.fake { background: #ff3366; box-shadow: 0 2px 10px rgba(255, 51, 102, 0.5); }
.post-badge.real { background: #00ff88; color:#000; box-shadow: 0 2px 10px rgba(0, 255, 136, 0.5); }

.post-info { padding: 14px; }

/* MOBILE RESPONSIVE */
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  .main-wrapper {
    margin-left: 0;
  }
  .workbench-grid, .text-studio-grid, .humanizer-split-grid, .social-dossier-card {
    grid-template-columns: 1fr;
  }
}
