/* ================================================
   VMI Portal — Murata & Maliska
   Elegant, professional styling with scroll animations
   ================================================ */

:root {
  --primary: #1a2332;
  --primary-light: #2c3e6b;
  --accent: #4a9d8e;
  --accent-light: #6dc4b4;
  --bg-light: #f5f7fa;
  --bg-dark: #1a2332;
  --bg-section-dark: #0f1923;
  --text: #333333;
  --text-light: #6c757d;
  --text-white: #f0f0f0;
  --white: #ffffff;
  --danger: #e74c3c;
  --warning: #f39c12;
  --success: #27ae60;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ================================================
   LOGIN PAGE
   ================================================ */

.login-body {
  height: 100vh;
  overflow: hidden;
  background: #0a0a0f;
}

.login-container {
  display: flex;
  height: 100vh;
  position: relative;
  background: #0a0a0f;
  overflow: hidden;
}

.login-left {
  flex: 0 0 50%;
  background: #0a0a0f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 3rem;
  perspective: 2000px;
  transform-style: preserve-3d;
}

.login-brand {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 0;
  width: 100%;
}

.brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Murata & Maliska icon (1934x2139, black bg blends with dark gradient) */
.brand-icon-mm {
  width: 150px;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
}

/* Murata & Maliska name (transparent bg, original colors) */
.brand-name-mm {
  width: 420px;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
}

.brand-subtitle {
  color: rgba(255,255,255,0.7);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.5px;
  margin: 1rem 0 0;
  text-align: center;
}

/* ================================================
   TESSERACT FLOATING CUBES (login background)
   ================================================ */
.floating-cubes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
  perspective: 2000px;
  transform-style: preserve-3d;
}

.float-cube {
  position: absolute;
  width: 80px;
  height: 80px;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
  opacity: 0;
  transition: opacity 1.5s ease;
  contain: layout style paint;
}

.float-cube.visible { opacity: 1; }

/* 6 depth layers — each cube at a unique distance */
/* Using 'scale' property (separate from 'transform') so drift animations don't override it */
.float-cube:nth-child(1) { scale: 1.95;  filter: none;                                        }
.float-cube:nth-child(1).visible { opacity: 0.9; }

.float-cube:nth-child(2) { scale: 1.05;  filter: blur(0.3px) brightness(0.92) saturate(0.92);  }
.float-cube:nth-child(2).visible { opacity: 0.75; }

.float-cube:nth-child(3) { scale: 0.75;  filter: blur(0.8px) brightness(0.78) saturate(0.8);   }
.float-cube:nth-child(3).visible { opacity: 0.55; }

.float-cube:nth-child(4) { scale: 0.55;  filter: blur(1.2px) brightness(0.65) saturate(0.7);   }
.float-cube:nth-child(4).visible { opacity: 0.45; }

.float-cube:nth-child(5) { scale: 0.65;  filter: blur(1.8px) brightness(0.5) saturate(0.55);   }
.float-cube:nth-child(5).visible { opacity: 0.35; }

.float-cube:nth-child(6) { scale: 0.5;   filter: blur(0.8px) brightness(0.7) saturate(0.7);    }
.float-cube:nth-child(6).visible { opacity: 0.55; }

.outer-cube {
  position: absolute;
  top: 50%; left: 50%;
  width: 56px; height: 56px;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.outer-cube-face {
  position: absolute;
  width: 56px; height: 56px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(0, 212, 255, 0.08);
}

.outer-face-front  { transform: translateZ(28px); }
.outer-face-back   { transform: translateZ(-28px); }
.outer-face-right  { transform: translateX(28px) rotateY(90deg); }
.outer-face-left   { transform: translateX(-28px) rotateY(-90deg); }
.outer-face-top    { transform: translateY(-28px) rotateX(90deg); }
.outer-face-bottom { transform: translateY(28px) rotateX(-90deg); }

.inner-cube {
  position: absolute;
  top: 50%; left: 50%;
  width: 28px; height: 28px;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%);
}

.cube-face {
  position: absolute;
  width: 28px; height: 28px;
  background: rgba(0, 212, 255, 0.04);
  border: 1px solid rgba(0, 212, 255, 0.12);
}

.face-front  { transform: translateZ(14px); }
.face-back   { transform: translateZ(-14px); }
.face-right  { transform: translateX(14px) rotateY(90deg); }
.face-left   { transform: translateX(-14px) rotateY(-90deg); }
.face-top    { transform: translateY(-14px) rotateX(90deg); }
.face-bottom { transform: translateY(14px) rotateX(-90deg); }

.tesseract-edges {
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%);
}

.t-edge {
  position: absolute;
  width: 1px;
  height: 24px;
  background: linear-gradient(to bottom, rgba(0, 212, 255, 0.2), rgba(255, 255, 255, 0.03));
  transform-origin: top center;
}

.t-edge:nth-child(1) { transform: translate3d(14px, 14px, 14px) rotateZ(-45deg) rotateX(35.26deg); }
.t-edge:nth-child(2) { transform: translate3d(-14px, 14px, 14px) rotateZ(45deg) rotateX(35.26deg); }
.t-edge:nth-child(3) { transform: translate3d(14px, -14px, 14px) rotateZ(-135deg) rotateX(35.26deg); }
.t-edge:nth-child(4) { transform: translate3d(-14px, -14px, 14px) rotateZ(135deg) rotateX(35.26deg); }
.t-edge:nth-child(5) { transform: translate3d(14px, 14px, -14px) rotateZ(-45deg) rotateX(-35.26deg); }
.t-edge:nth-child(6) { transform: translate3d(-14px, 14px, -14px) rotateZ(45deg) rotateX(-35.26deg); }
.t-edge:nth-child(7) { transform: translate3d(14px, -14px, -14px) rotateZ(-135deg) rotateX(-35.26deg); }
.t-edge:nth-child(8) { transform: translate3d(-14px, -14px, -14px) rotateZ(135deg) rotateX(-35.26deg); }

/* Unique rotation per cube */
.float-cube:nth-child(1) .outer-cube { animation: rotCube1 95s linear infinite; }
.float-cube:nth-child(2) .outer-cube { animation: rotCube2 95s linear infinite; }
.float-cube:nth-child(3) .outer-cube { animation: rotCube3 95s linear infinite; }
.float-cube:nth-child(4) .outer-cube { animation: rotCube4 95s linear infinite; }
.float-cube:nth-child(5) .outer-cube { animation: rotCube5 95s linear infinite; }
.float-cube:nth-child(6) .outer-cube { animation: rotCube3 95s linear infinite; }

@keyframes rotCube1 {
  0%  {transform:translate(-50%,-50%) rotateX(0deg) rotateY(0deg) rotateZ(0deg)}
  25% {transform:translate(-50%,-50%) rotateX(25deg) rotateY(90deg) rotateZ(5deg)}
  50% {transform:translate(-50%,-50%) rotateX(0deg) rotateY(180deg) rotateZ(0deg)}
  75% {transform:translate(-50%,-50%) rotateX(-25deg) rotateY(270deg) rotateZ(-5deg)}
  100%{transform:translate(-50%,-50%) rotateX(0deg) rotateY(360deg) rotateZ(0deg)}
}
@keyframes rotCube2 {
  0%  {transform:translate(-50%,-50%) rotateX(0deg) rotateY(0deg) rotateZ(0deg)}
  25% {transform:translate(-50%,-50%) rotateX(-20deg) rotateY(-90deg) rotateZ(8deg)}
  50% {transform:translate(-50%,-50%) rotateX(0deg) rotateY(-180deg) rotateZ(0deg)}
  75% {transform:translate(-50%,-50%) rotateX(20deg) rotateY(-270deg) rotateZ(-8deg)}
  100%{transform:translate(-50%,-50%) rotateX(0deg) rotateY(-360deg) rotateZ(0deg)}
}
@keyframes rotCube3 {
  0%  {transform:translate(-50%,-50%) rotateX(0deg) rotateY(0deg) rotateZ(0deg)}
  25% {transform:translate(-50%,-50%) rotateX(30deg) rotateY(90deg) rotateZ(-6deg)}
  50% {transform:translate(-50%,-50%) rotateX(0deg) rotateY(180deg) rotateZ(0deg)}
  75% {transform:translate(-50%,-50%) rotateX(-30deg) rotateY(270deg) rotateZ(6deg)}
  100%{transform:translate(-50%,-50%) rotateX(0deg) rotateY(360deg) rotateZ(0deg)}
}
@keyframes rotCube4 {
  0%  {transform:translate(-50%,-50%) rotateX(0deg) rotateY(0deg) rotateZ(0deg)}
  25% {transform:translate(-50%,-50%) rotateX(-15deg) rotateY(90deg) rotateZ(10deg)}
  50% {transform:translate(-50%,-50%) rotateX(0deg) rotateY(180deg) rotateZ(0deg)}
  75% {transform:translate(-50%,-50%) rotateX(15deg) rotateY(270deg) rotateZ(-10deg)}
  100%{transform:translate(-50%,-50%) rotateX(0deg) rotateY(360deg) rotateZ(0deg)}
}
@keyframes rotCube5 {
  0%  {transform:translate(-50%,-50%) rotateX(0deg) rotateY(0deg) rotateZ(0deg)}
  25% {transform:translate(-50%,-50%) rotateX(22deg) rotateY(-90deg) rotateZ(-4deg)}
  50% {transform:translate(-50%,-50%) rotateX(0deg) rotateY(-180deg) rotateZ(0deg)}
  75% {transform:translate(-50%,-50%) rotateX(-22deg) rotateY(-270deg) rotateZ(4deg)}
  100%{transform:translate(-50%,-50%) rotateX(0deg) rotateY(-360deg) rotateZ(0deg)}
}

/* CSS-based drift animations (GPU-accelerated, replaces JS requestAnimationFrame) */
@keyframes cubeDrift1 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(12px, -8px, 0); }
  50% { transform: translate3d(-5px, -15px, 0); }
  75% { transform: translate3d(-10px, 6px, 0); }
}
@keyframes cubeDrift2 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(-10px, 10px, 0); }
  50% { transform: translate3d(8px, 14px, 0); }
  75% { transform: translate3d(14px, -6px, 0); }
}
@keyframes cubeDrift3 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(6px, 12px, 0); }
  50% { transform: translate3d(-12px, -4px, 0); }
  75% { transform: translate3d(8px, -10px, 0); }
}

/* 3D extruded code symbol inside cubes */
.code-symbol-3d {
  position: absolute;
  top: 50%; left: 50%;
  width: 30px;
  height: 22px;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%);
  z-index: 100;
}

.code-extrude-layer {
  position: absolute;
  width: 30px;
  height: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 9px;
  font-weight: 400;
  white-space: nowrap;
  line-height: 1;
  gap: 0;
}

.code-extrude-layer .code-dashes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  margin-top: 0;
}

.code-extrude-layer .dash-long {
  display: block;
  width: 12px;
  height: 1.5px;
  border-radius: 1px;
}

.code-extrude-layer .dash-short {
  display: block;
  width: 7px;
  height: 1.5px;
  border-radius: 1px;
}

/* ================================================
   FLOATING PARTICLES (rising pixels)
   ================================================ */
.particles-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
  contain: strict;
}

.particle {
  position: absolute;
  background: rgba(0, 212, 255, 0.3);
  border-radius: 50%;
  animation: particleRise linear infinite;
  will-change: transform, opacity;
}

@keyframes particleRise {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate3d(40px, -100vh, 0); opacity: 0; }
}

/* ================================================
   SHOOTING STARS
   ================================================ */
.shooting-stars-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
  contain: strict;
}

.meteor {
  position: absolute;
  width: 0; height: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.meteor-head {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgba(200, 230, 255, 0.9) 30%, rgba(0, 212, 255, 0.4) 70%, transparent 100%);
}

.meteor-tail {
  position: absolute;
  top: 0; left: 0;
  overflow: visible;
}

/* Radial glow accents */
.login-container::before {
  content: '';
  position: absolute;
  top: -5%;
  right: -3%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.login-container::after {
  content: '';
  position: absolute;
  bottom: -5%;
  left: -3%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 128, 255, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.login-right {
  flex: 0 0 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  position: relative;
  z-index: 3;
  overflow: hidden;
}

.login-form-wrapper {
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 1;
}

.login-card {
  background: white;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 2.5rem 2.5rem 1.5rem;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.1);
}

.login-form-wrapper > .btn-primary {
  border-radius: 0 0 var(--radius) var(--radius);
  margin-top: 0;
}

.login-form-wrapper > .login-footer {
  margin-top: 1.5rem;
}

.login-form-wrapper > .login-footer p {
  color: rgba(255,255,255,0.5);
}

.login-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.login-desc {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.first-access-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Form */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-light);
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  background: white;
  color: var(--text);
}

.input-wrapper input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74, 157, 142, 0.15);
}

.input-wrapper input::placeholder {
  color: #b0b8c4;
}

.toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-light);
  transition: var(--transition);
}

.toggle-password:hover { color: var(--primary); }

.eye-icon { width: 18px; height: 18px; }

/* Password strength */
.password-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.strength-bar {
  flex: 1;
  height: 4px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s, background 0.3s;
  width: 0;
}

.strength-fill.weak { background: var(--danger); }
.strength-fill.medium { background: var(--warning); }
.strength-fill.good { background: #3498db; }
.strength-fill.strong { background: var(--success); }

.strength-text {
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 40px;
}

.password-rules {
  list-style: none;
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.password-rules li {
  font-size: 0.75rem;
  color: var(--text-light);
  padding-left: 18px;
  position: relative;
}

.password-rules li::before {
  content: '○';
  position: absolute;
  left: 0;
  font-size: 0.7rem;
}

.password-rules li.valid {
  color: var(--success);
}

.password-rules li.valid::before {
  content: '●';
  color: var(--success);
}

.password-rules li.invalid {
  color: var(--text-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: rgba(74, 157, 142, 0.2);
  color: white;
  padding: 12px 24px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  border: 1px solid rgba(74, 157, 142, 0.35);
}

.btn-primary:hover {
  background: rgba(74, 157, 142, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 157, 142, 0.3);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-full {
  width: 100%;
}

.btn-ghost {
  background: transparent;
  color: var(--text-light);
  padding: 8px 16px;
  border: 1px solid #e2e8f0;
}

.btn-ghost:hover {
  background: rgba(0,0,0,0.05);
  color: var(--text);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

.btn-loading {
  align-items: center;
  gap: 8px;
}

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.login-footer {
  margin-top: 2rem;
  text-align: center;
}

.login-footer p {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Mobile login */
@media (max-width: 768px) {
  .login-container { flex-direction: column; }
  .login-left {
    flex: 0 0 auto;
    padding: 3rem 2rem 2rem;
    min-height: 200px;
  }
  .login-right { padding: 2rem 1.5rem; }
  .brand-title { font-size: 1.5rem; }
  .login-title { font-size: 1.5rem; }
  .password-rules { grid-template-columns: 1fr; }
}

/* ================================================
   DASHBOARD PAGE
   ================================================ */

.dashboard-body {
  min-height: 100vh;
  background: var(--bg-light);
  display: flex;
  flex-direction: column;
}

.dash-header {
  background: white;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.dash-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-brand-full {
  height: 45px;
  width: auto;
  image-rendering: auto;
}

.dash-logo-img {
  height: 60px;
  width: auto;
  image-rendering: auto;
}

.dash-brand-name-img {
  height: 40px;
  width: auto;
  image-rendering: auto;
  margin-top: -6px;
}

.dash-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dash-user-name {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

.dash-main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  width: 100%;
}

.dash-welcome h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.dash-welcome p {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

/* Report Cards */
.reports-grid {
  display: grid;
  gap: 1.5rem;
}

.report-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
  transition: var(--transition);
}

.report-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.report-card-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  color: var(--accent);
}

.report-card-icon svg {
  width: 100%;
  height: 100%;
}

.report-card-body {
  flex: 1;
}

.report-card-badge {
  display: inline-block;
  background: var(--bg-light);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 0.5rem;
}

.report-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.report-card-desc {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

.report-card-arrow {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: var(--transition);
}

.report-card:hover .report-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

.dash-footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-light);
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .report-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
  }
  .report-card-arrow { display: none; }
  .dash-main { padding: 2rem 1rem; }
  .dash-welcome h1 { font-size: 1.5rem; }
}

/* ================================================
   REPORT PAGE — Interactive Scrollable
   ================================================ */

.report-body {
  background: var(--bg-light);
  overflow-x: hidden;
}

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1000;
  background: var(--primary);
}

.reading-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  width: 0%;
  transition: width 0.1s linear;
}

/* Report navigation */
.report-nav {
  position: fixed;
  top: 3px;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(26, 35, 50, 0.95);
  backdrop-filter: blur(12px);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.report-nav.visible {
  transform: translateY(0);
}

.report-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.report-nav-back {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.report-nav-back:hover { color: white; }

.report-nav-sections {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transition: var(--transition);
  text-decoration: none;
}

.nav-dot:hover {
  background: rgba(255,255,255,0.5);
  transform: scale(1.3);
}

.nav-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* Hero section */
.report-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, #1e3a5f 40%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(74, 157, 142, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(44, 62, 107, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 60% 80%, rgba(74, 157, 142, 0.1) 0%, transparent 50%);
  animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: scale(1) rotate(0deg); }
  33% { transform: scale(1.02) rotate(0.5deg); }
  66% { transform: scale(0.98) rotate(-0.5deg); }
}

.hero-content {
  text-align: center;
  z-index: 2;
  padding: 2rem;
}

.hero-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 2rem;
}

.hero-brand-full {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
  image-rendering: auto;
}

.hero-logo-icon-vmi {
  height: 50px;
  width: auto;
  image-rendering: auto;
}

.hero-logo-img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  image-rendering: auto;
}

.hero-logo-vmi {
  height: 36px;
}

.hero-logo-divider {
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 300;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: white;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-date {
  color: var(--accent-light);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 4rem;
}

.hero-scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.scroll-arrow {
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* Report sections */
.report-section {
  padding: 6rem 2rem;
  position: relative;
}

.section-light {
  background: var(--white);
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-white);
}

.section-conclusion {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--text-white);
}

.section-container {
  max-width: 960px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 3rem;
}

.section-icon {
  width: 56px;
  height: 56px;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-icon svg {
  width: 100%;
  height: 100%;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.section-light .section-title {
  color: var(--primary);
}

.section-subtitle {
  font-size: 1.05rem;
  opacity: 0.8;
  line-height: 1.6;
}

.text-lead {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.text-muted {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.section-dark .text-muted {
  color: rgba(255,255,255,0.6);
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.stat-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-4px);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: white;
}

.stat-detail {
  font-size: 0.8rem;
  opacity: 0.5;
}

/* Callout */
.callout {
  display: flex;
  gap: 16px;
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  margin-top: 2rem;
}

.callout-warning {
  background: rgba(243, 156, 18, 0.1);
  border: 1px solid rgba(243, 156, 18, 0.3);
}

.callout-icon {
  flex-shrink: 0;
  color: var(--warning);
}

.callout-body {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Glossary grid */
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.glossary-card {
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  transition: var(--transition);
}

.glossary-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.glossary-card h4 {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.glossary-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

.glossary-card-highlight {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe4e4 100%);
  border-color: #fecaca;
}

.glossary-card-highlight h4 {
  color: var(--danger);
}

/* Bar chart */
.chart-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bar-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bar-label {
  flex: 0 0 140px;
  text-align: right;
  font-size: 0.85rem;
  font-weight: 500;
}

.bar-track {
  flex: 1;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--bar-color);
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-fill.animated {
  width: calc(var(--target-width) * 1%);
}

.bar-value {
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  white-space: nowrap;
}

/* Modules list */
.modules-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.module-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}

.module-item:hover {
  background: rgba(255,255,255,0.1);
}

.module-rank {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.module-info {
  flex: 1;
}

.module-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.module-info p {
  font-size: 0.8rem;
  opacity: 0.6;
}

.module-bar {
  width: 100px;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}

.module-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}

/* Health grid */
.health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.health-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  border-left: 4px solid;
  box-shadow: var(--shadow);
}

.health-ok { border-color: var(--success); }
.health-warning { border-color: var(--warning); }
.health-critical { border-color: var(--danger); }

.health-metric {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.health-ok .health-metric { color: var(--success); }
.health-warning .health-metric { color: var(--warning); }
.health-critical .health-metric { color: var(--danger); }

.health-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.health-detail {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.4;
}

/* Storage bars */
.storage-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.storage-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.storage-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.storage-name {
  font-weight: 600;
  color: var(--primary);
}

.storage-size {
  color: var(--text-light);
}

.storage-track {
  height: 12px;
  background: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}

.storage-fill {
  height: 100%;
  background: var(--storage-color);
  border-radius: 6px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.storage-fill.animated {
  width: calc(var(--target-width) * 1%);
}

/* God Tables */
.god-tables {
  display: grid;
  gap: 1.25rem;
}

.god-table-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.god-table-card:hover {
  border-color: rgba(255,255,255,0.2);
}

.god-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.god-table-header h4 {
  font-family: 'Inter', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-light);
}

.god-table-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.badge-critical { background: rgba(231, 76, 60, 0.2); color: #e74c3c; }
.badge-warning { background: rgba(243, 156, 18, 0.2); color: #f39c12; }
.badge-ok { background: rgba(39, 174, 96, 0.2); color: #27ae60; }

.god-table-body {
  padding: 1.25rem 1.5rem;
}

.god-table-body p {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.8;
}

.god-table-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0.75rem;
  padding: 8px 12px;
  background: rgba(231, 76, 60, 0.1);
  border-radius: 6px;
  font-size: 0.85rem;
  color: #f5a0a0;
}

/* Integrations */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.integration-card {
  background: var(--bg-light);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.integration-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.integration-number {
  position: absolute;
  top: -8px;
  right: 12px;
  font-size: 4rem;
  font-weight: 800;
  color: rgba(74, 157, 142, 0.08);
  line-height: 1;
}

.integration-card h4 {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.integration-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* Performance comparison */
.perf-comparison {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 0;
  flex-wrap: wrap;
}

.perf-before, .perf-after {
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius);
  min-width: 180px;
}

.perf-before {
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.perf-after {
  background: rgba(39, 174, 96, 0.15);
  border: 1px solid rgba(39, 174, 96, 0.3);
}

.perf-time {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.perf-before .perf-time { color: #e74c3c; }
.perf-after .perf-time { color: #27ae60; }

.perf-label {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.perf-detail {
  font-size: 0.8rem;
  opacity: 0.6;
}

.perf-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--accent-light);
  font-weight: 500;
}

/* Risk cards */
.risk-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.risk-card {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-top: 4px solid;
}

.risk-high { border-color: var(--warning); }
.risk-critical { border-color: var(--danger); }
.risk-medium { border-color: #3498db; }

.risk-level {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.risk-high .risk-level { color: var(--warning); }
.risk-critical .risk-level { color: var(--danger); }
.risk-medium .risk-level { color: #3498db; }

.risk-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.risk-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.8;
}

/* Dead code stats */
.dead-code-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.dead-stat {
  text-align: center;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
}

.dead-stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--danger);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.dead-stat-label {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.dead-stat p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* Priorities */
.priorities {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.priority-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}

.priority-item:hover {
  background: rgba(255,255,255,0.12);
}

.priority-number {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.priority-content {
  flex: 1;
}

.priority-content h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.priority-content p {
  font-size: 0.9rem;
  opacity: 0.7;
}

.priority-status {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.status-todo {
  background: rgba(243, 156, 18, 0.2);
  color: #f4c542;
}

/* Report footer */
.report-footer {
  margin-top: 4rem;
  text-align: center;
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-text {
  font-size: 1rem;
  opacity: 0.7;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.footer-brand p {
  font-size: 0.95rem;
}

.footer-date {
  opacity: 0.5;
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

/* ================================================
   SCROLL ANIMATIONS
   ================================================ */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up { transform: translateY(40px); }

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }

/* Mobile adjustments */
@media (max-width: 768px) {
  .report-section {
    padding: 3rem 1.25rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-card {
    padding: 1.25rem 1rem;
  }

  .bar-item {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .bar-label {
    text-align: left;
    flex: none;
    font-size: 0.8rem;
  }

  .perf-comparison {
    flex-direction: column;
    gap: 1.5rem;
  }

  .perf-arrow {
    transform: rotate(90deg);
  }

  .risk-cards,
  .integrations-grid,
  .health-grid {
    grid-template-columns: 1fr;
  }

  .module-bar {
    display: none;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .report-nav-sections {
    gap: 5px;
  }

  .nav-dot {
    width: 8px;
    height: 8px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
