/* ============================================================
   PDF Forensics Tool — Main Design System
   Dark, premium UI with glassmorphism and micro-animations
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

@font-face {
  font-family: 'Organix';
  src: url('../fonts/organix/Organix.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  /* Color Palette */
  --bg-base: #020817;
  --bg-surface: #0f172a;
  --bg-elevated: #1e293b;
  --bg-glass: rgba(15, 23, 42, 0.8);

  --border: #1e293b;
  --border-light: #334155;

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  --text-code: #e2e8f0;

  --indigo: #6366f1;
  --purple: #8b5cf6;
  --violet: #7c3aed;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --emerald: #10b981;
  --amber: #f59e0b;
  --orange: #f97316;
  --red: #ef4444;
  --rose: #f43f5e;
  --sky: #0ea5e9;
  --pink: #ec4899;

  /* Severity Colors */
  --sev-critical: #ef4444;
  --sev-high: #f97316;
  --sev-medium: #f59e0b;
  --sev-low: #0ea5e9;
  --sev-info: #64748b;

  /* Classification Colors */
  --cls-success: #10b981;
  --cls-warning: #f59e0b;
  --cls-danger-l: #f97316;
  --cls-danger: #ef4444;

  /* Layout */
  --nav-h: 64px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Typography */
  --font-sans: 'Share Tech Mono', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-heading: 'Organix', 'Share Tech Mono', sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
  --glow-indigo: 0 0 30px rgba(99, 102, 241, 0.3);
  --glow-purple: 0 0 30px rgba(139, 92, 246, 0.3);
}

[data-theme="light"] {
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-elevated: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);

  --border: #e2e8f0;
  --border-light: #cbd5e1;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-code: #0f172a;

  /* Shadows adjustments for light theme */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: var(--font-mono);
}

strong {
  font-weight: 600;
}

h1,
h2,
h3,
h4,
h5,
h6,
.hero-title,
.section-title,
.topic-header {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* ── Navigation ────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .navbar {
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.nav-search {
  flex: 1;
  max-width: 480px;
  margin: 0 24px;
}

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

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
}

#global-search {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 36px 8px 36px;
  font-size: 0.875rem;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s;
}

#global-search:focus {
  border-color: var(--indigo);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-key {
  position: absolute;
  right: 12px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 6px;
  pointer-events: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  flex-shrink: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.15);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.2);
}

.nav-link.active::after {
  display: none;
}

#theme-toggle svg {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#theme-toggle:hover svg {
  transform: rotate(15deg) scale(1.1);
}

[data-theme="dark"] #theme-icon-light {
  transform: rotate(360deg);
}

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

.nav-brand strong {
  background: linear-gradient(135deg, var(--indigo) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Navigation Responsive ─────────────────────────────────── */
@media (max-width: 900px) {
  .nav-search {
    max-width: 200px;
    margin: 0 8px;
  }
}

@media (max-width: 768px) {
  .nav-link span {
    display: none !important;
  }

  .nav-link {
    padding: 10px;
  }
}

@media (max-width: 600px) {
  .nav-brand span {
    display: none;
  }

  .nav-container {
    padding: 0 12px;
  }
}

@media (max-width: 520px) {
  .nav-search {
    width: 36px;
    flex: 0 0 auto;
    max-width: 36px;
    margin: 0 4px;
    overflow: visible;
  }

  .nav-search:focus-within {
    position: absolute;
    left: 8px;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    max-width: none;
    z-index: 101;
  }

  .nav-search:focus-within #global-search {
    background: var(--bg-surface);
    padding-right: 40px;
  }

  .search-key {
    display: none !important;
  }

  #global-search {
    padding-right: 12px !important;
    font-size: 0.8rem !important;
  }
}

/* ── Flash Messages ────────────────────────────────────────── */
.flash-container {
  position: fixed;
  top: calc(var(--nav-h) + 12px);
  right: 16px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 400px;
}

.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  animation: slideIn 0.3s ease;
  border: 1px solid transparent;
}

.flash-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

[data-theme="dark"] .flash-error {
  color: #fca5a5;
}

.flash-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
}

[data-theme="dark"] .flash-success {
  color: #6ee7b7;
}

.flash-close {
  background: none;
  border: none;
  color: currentColor;
  cursor: pointer;
  font-size: 0.8rem;
  opacity: 0.7;
  padding: 2px 4px;
}

.flash-close:hover {
  opacity: 1;
}

@keyframes slideIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ── Main Content ──────────────────────────────────────────── */
.main-content {
  min-height: calc(100vh - var(--nav-h) - 48px);
}

/* ── Footer ────────────────────────────────────────────────── */
/* ── Footer Ultra Slim ────────────────────────────────────────── */
.footer-ultra-slim {
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 14px 0;
  width: 100%;
  margin-top: 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Subtle background glow for footer */
.footer-ultra-slim::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--indigo), transparent);
}

.footer-slim-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-main-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  width: 100%;
}

.footer-segment {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

/* Identity Col */
.brand-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-pill {
  background: rgba(99, 102, 241, 0.1);
  color: var(--indigo);
  padding: 4px 12px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.outline-pill {
  background: transparent;
  border: 1px solid var(--indigo);
}

.segment-label {
  color: var(--text-muted);
  font-weight: 600;
}

.topic-text {
  color: var(--text-primary);
  font-weight: 500;
}

.footer-divider-dot {
  width: 4px;
  height: 4px;
  background: var(--border-light);
  border-radius: 50%;
}

.author-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-chip {
  display: flex;
  align-items: center;
  line-height: 1.2;
}

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

.author-id {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.author-sep {
  color: var(--indigo);
  font-weight: 800;
  opacity: 0.5;
}

.footer-bottom-mini {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.health-mini {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
}

.health-mini:hover {
  color: var(--text-primary);
}

.dot-live {
  width: 6px;
  height: 6px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald);
}

@media (max-width: 1000px) {
  .footer-main-row {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-divider-dot {
    display: none;
  }

  .footer-bottom-mini {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}


/* ── Hero Section ──────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 24px 140px;
  min-height: 85vh;
  /* Added min-height */
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, var(--indigo), transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 80%, var(--purple), transparent 60%),
    radial-gradient(ellipse 30% 30% at 10% 70%, var(--cyan), transparent 60%);
  opacity: 0.15;
  pointer-events: none;
}

/* Animated grid lines */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--indigo) 1px, transparent 1px),
    linear-gradient(90deg, var(--indigo) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.05;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  width: 100%;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #a5b4fc;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: #6366f1;
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 40%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Upload Card ───────────────────────────────────────────── */
.upload-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  text-align: left;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.upload-card:has(.drop-zone.drag-over) {
  border-color: var(--indigo);
  box-shadow: var(--shadow-lg), var(--glow-indigo);
}

.drop-zone {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--indigo);
  background: rgba(99, 102, 241, 0.05);
}

.drop-icon {
  color: var(--indigo);
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  transition: transform 0.3s;
}

.drop-zone:hover .drop-icon {
  transform: translateY(-3px);
}

.drop-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.drop-text span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.link-btn {
  background: none;
  border: none;
  color: var(--indigo);
  font-size: inherit;
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.link-btn:hover {
  color: var(--purple);
}

.drop-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.drop-file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-top: 12px;
}

.file-icon {
  font-size: 1.5rem;
}

.file-details {
  flex: 1;
  text-align: left;
  min-width: 0;
}

.file-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
  overflow-wrap: anywhere;
}

.file-size {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.remove-file {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.remove-file:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.upload-options {
  display: flex;
  gap: 16px;
  padding: 16px 0 0;
  flex-wrap: wrap;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 200px;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.option-input {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.option-input:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

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

.analyze-btn {
  width: 100%;
  margin-top: 20px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--purple) 100%);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
  letter-spacing: 0.2px;
}

.analyze-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.analyze-btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.analyze-btn:not(:disabled):active {
  transform: translateY(0);
}

.btn-text,
.btn-loading {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

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

/* ── Modules Section ───────────────────────────────────────── */
.modules-section {
  padding: 80px 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.5) 100%);
}

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

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 48px;
  font-size: 0.95rem;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.module-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  cursor: default;
}

.module-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.module-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.module-icon--blue {
  background: rgba(6, 182, 212, 0.15);
  color: #06b6d4;
}

.module-icon--purple {
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
}

.module-icon--green {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.module-icon--orange {
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
}

.module-icon--pink {
  background: rgba(236, 72, 153, 0.15);
  color: #ec4899;
}

.module-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.module-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}

.module-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
  letter-spacing: 0.3px;
}

.tag--critical {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.tag--high {
  background: rgba(249, 115, 22, 0.12);
  color: #fdba74;
  border: 1px solid rgba(249, 115, 22, 0.2);
}

.tag--medium {
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.tag--info {
  background: rgba(100, 116, 139, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.2);
}

/* ── Legend Section ────────────────────────────────────────── */
.legend-section {
  padding: 60px 24px 100px;
}

.legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.legend-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid transparent;
  text-align: center;
  transition: transform 0.2s;
}

.legend-card:hover {
  transform: translateY(-3px);
}

.legend-card--success {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
}

.legend-card--warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.2);
}

.legend-card--danger-light {
  background: rgba(249, 115, 22, 0.08);
  border-color: rgba(249, 115, 22, 0.2);
}

.legend-card--danger {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
}

.legend-range {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 4px;
}

.legend-card--success .legend-range {
  color: var(--emerald);
}

.legend-card--warning .legend-range {
  color: var(--amber);
}

.legend-card--danger-light .legend-range {
  color: var(--orange);
}

.legend-card--danger .legend-range {
  color: var(--red);
}

.legend-label {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.legend-action {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.badge--success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge--warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge--danger-light {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.badge--danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge--secondary {
  background: rgba(100, 116, 139, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

/* Severity Badges */
.sev-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.sev-badge--critical {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.sev-badge--high {
  background: rgba(249, 115, 22, 0.2);
  color: #fdba74;
  border: 1px solid rgba(249, 115, 22, 0.4);
}

.sev-badge--medium {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.sev-badge--low {
  background: rgba(14, 165, 233, 0.2);
  color: #7dd3fc;
  border: 1px solid rgba(14, 165, 233, 0.4);
}

.sev-badge--info {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.4);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  text-decoration: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--indigo), var(--purple));
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn--primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  border-color: var(--border-light);
  color: var(--text-secondary);
}

.btn--outline:hover {
  border-color: var(--indigo);
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.05);
}

/* ── Result Page ───────────────────────────────────────────── */
.result-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--indigo);
}

.result-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
  word-break: break-all;
}

.result-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.result-meta code {
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  padding: 1px 6px;
  border-radius: 4px;
}

.result-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ── Score Summary Grid ────────────────────────────────────── */
.result-summary-grid {
  display: grid;
  grid-template-columns: 280px 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

@media (max-width: 900px) {
  .result-summary-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

.score-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.score-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.score-card--success::before {
  background: var(--cls-success);
}

.score-card--warning::before {
  background: var(--cls-warning);
}

.score-card--danger-light::before {
  background: var(--cls-danger-l);
}

.score-card--danger::before {
  background: var(--cls-danger);
}

.score-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 600;
}

.score-gauge {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: 8px;
}

.gauge-svg path {
  transition: stroke-dashoffset 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.score-number {
  position: absolute;
  bottom: 10px;
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
}

.score-max {
  position: absolute;
  bottom: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transform: translateX(50px);
}

.score-classification {
  margin-bottom: 20px;
}

.score-file-info {
  text-align: left;
  margin-top: 8px;
}

.fi-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
}

.fi-row:last-child {
  border-bottom: none;
}

.fi-row>span:first-child {
  color: var(--text-muted);
}

.fi-row>span:last-child {
  color: var(--text-secondary);
  font-weight: 500;
}

.mono-sm {
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

/* ── Severity Card ─────────────────────────────────────────── */
.severity-card,
.action-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.card-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 20px;
}

.severity-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sev-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sev-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
}

.sev-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  width: 58px;
  flex-shrink: 0;
}

.sev-bar-wrap {
  flex: 1;
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 3px;
  overflow: hidden;
}

.sev-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  min-width: 2px;
}

.sev-bar--danger {
  background: var(--sev-critical);
}

.sev-bar--warning {
  background: var(--sev-high);
}

.sev-bar--caution {
  background: var(--sev-medium);
}

.sev-bar--info {
  background: var(--sev-low);
}

.sev-bar--neutral {
  background: var(--sev-info);
}

.sev-count {
  font-size: 0.85rem;
  font-weight: 700;
  width: 24px;
  text-align: right;
  flex-shrink: 0;
  color: var(--text-muted);
}

.sev-count--danger {
  color: var(--sev-critical);
}

.sev-count--warning {
  color: var(--sev-high);
}

.sev-count--caution {
  color: var(--sev-medium);
}

.sev-count--info {
  color: var(--sev-low);
}

.total-findings {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.total-findings strong {
  color: var(--text-primary);
  font-size: 1.2rem;
}

/* ── Action Card ───────────────────────────────────────────── */
.action-card--success {
  border-top: 3px solid var(--cls-success);
}

.action-card--warning {
  border-top: 3px solid var(--cls-warning);
}

.action-card--danger-light {
  border-top: 3px solid var(--cls-danger-l);
}

.action-card--danger {
  border-top: 3px solid var(--cls-danger);
}

.action-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.action-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 10px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

/* ── Findings Section ──────────────────────────────────────── */
.findings-section,
.modules-detail-section {
  margin-bottom: 40px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.findings-count {
  background: var(--bg-elevated);
  border-radius: 100px;
  padding: 2px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.findings-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.finding-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}

.finding-card:hover {
  border-color: var(--border-light);
}

.finding-card.open {
  border-color: var(--border-light);
}

.finding-card--critical {
  border-left: 3px solid var(--sev-critical);
}

.finding-card--high {
  border-left: 3px solid var(--sev-high);
}

.finding-card--medium {
  border-left: 3px solid var(--sev-medium);
}

.finding-card--low {
  border-left: 3px solid var(--sev-low);
}

.finding-card--info {
  border-left: 3px solid var(--sev-info);
}

.finding-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
}

.finding-header:hover {
  background: rgba(255, 255, 255, 0.02);
}

.finding-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.finding-module {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  min-width: 60px;
}

.finding-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.finding-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.finding-card.open .finding-chevron {
  transform: rotate(180deg);
}

.finding-body {
  display: none;
  padding: 0 16px 16px;
}

.finding-card.open .finding-body {
  display: block;
}

.finding-detail {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.finding-evidence {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.evidence-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.evidence-pre {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-code);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.6;
}

/* ── No Findings ───────────────────────────────────────────── */
.no-findings {
  text-align: center;
  padding: 60px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.no-findings-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.no-findings h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.no-findings p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ── Module Detail Cards ───────────────────────────────────── */
.module-detail-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.module-detail-card.open {
  border-color: var(--border-light);
}

.module-detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
}

.module-detail-header:hover {
  background: rgba(255, 255, 255, 0.02);
}

.module-detail-icon {
  font-size: 1.1rem;
}

.module-detail-label {
  font-size: 0.875rem;
  font-weight: 600;
  flex: 1;
}

.module-chevron {
  color: var(--text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.module-detail-card.open .module-chevron {
  transform: rotate(180deg);
}

.module-detail-body {
  display: none;
  padding: 0 16px 16px;
}

.module-detail-card.open .module-detail-body {
  display: block;
}

.module-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
}

.md-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.md-key {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.md-val {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  word-break: break-all;
}

/* ── History Page ──────────────────────────────────────────── */
.page-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.page-header {
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.page-header p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.history-table-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
}

.history-table th {
  background: var(--bg-elevated);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.history-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-secondary);
  vertical-align: middle;
}

.history-row:last-child td {
  border-bottom: none;
}

.history-row:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.analysis-id {
  font-size: 0.75rem;
  background: var(--bg-elevated);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--text-secondary);
}

.filename-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-primary) !important;
  font-weight: 500;
}

.history-score-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.history-score-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 3px;
  overflow: hidden;
  max-width: 100px;
}

.history-score-fill {
  height: 100%;
  border-radius: 3px;
}

.history-score-fill--success {
  background: var(--cls-success);
}

.history-score-fill--warning {
  background: var(--cls-warning);
}

.history-score-fill--danger-light {
  background: var(--cls-danger-l);
}

.history-score-fill--danger {
  background: var(--cls-danger);
}

.history-score-num {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  width: 28px;
}

.date-cell {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: var(--font-mono);
}

.actions-cell {
  display: flex;
  align-items: center;
  gap: 4px;
}

.action-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}

.action-link:hover {
  color: var(--indigo);
  background: rgba(99, 102, 241, 0.1);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.page-btn {
  padding: 8px 18px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}

.page-btn:hover {
  border-color: var(--indigo);
  color: var(--indigo);
}

.page-info {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Empty State ───────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ── API Docs ──────────────────────────────────────────────── */
.api-docs {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.api-endpoint {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
}

.endpoint-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.http-method {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.http-method--post {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.http-method--get {
  background: rgba(14, 165, 233, 0.15);
  color: #7dd3fc;
}

.http-method--delete {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.endpoint-path {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  flex-shrink: 0;
}

.endpoint-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.endpoint-body {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ep-row {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
}

.ep-row>span:first-child {
  color: var(--text-muted);
  width: 110px;
  flex-shrink: 0;
  font-weight: 500;
}

.ep-row code {
  color: var(--text-secondary);
  background: var(--bg-elevated);
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 0.78rem;
}

.api-section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.code-block {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-code);
  overflow-x: auto;
  white-space: pre;
  line-height: 1.7;
}

.api-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.api-table th {
  background: var(--bg-elevated);
  padding: 10px 14px;
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.api-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.api-table tr:last-child td {
  border-bottom: none;
}

/* ── Utility ───────────────────────────────────────────────── */
.muted {
  color: var(--text-muted);
  font-style: normal;
}

.text-success {
  color: var(--cls-success);
}

.text-warning {
  color: var(--cls-warning);
}

.text-danger-light {
  color: var(--cls-danger-l);
}

.text-danger {
  color: var(--cls-danger);
}

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

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .history-table {
    display: block;
    overflow-x: auto;
  }

  .modules-grid {
    grid-template-columns: 1fr 1fr;
  }

  .result-header {
    flex-direction: column;
  }

  .endpoint-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .legend-grid {
    grid-template-columns: 1fr 1fr;
  }

  .module-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Integrity Verification ────────────────────────────────── */
.integrity-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 800px) {
  .integrity-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.hash-input-group {
  display: flex;
  flex-direction: column;
}

.hash-input {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-primary);
  width: 100%;
}

.hash-input:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.integrity-status {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.5;
  display: none;
}

.integrity-status--match {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.integrity-status--mismatch {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.integrity-info {
  background: var(--bg-elevated);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.fi-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 700;
}

.fi-hash {
  color: var(--text-primary) !important;
  line-height: 1.6 !important;
  word-break: break-all;
}

.btn-copy {
  background: none;
  border: none;
  color: var(--indigo);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  margin-top: 8px;
  transition: opacity 0.2s;
}

.btn-copy:hover {
  opacity: 0.7;
}