/* ===================================
   WebCheck - Professional Website Analysis
   Modern, Elegant, Distinctive Design
   =================================== */

/* ===== CSS VARIABLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Orbitron:wght@400;500;700;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Color Palette - Cooler, Brighter & Smoother */
  --color-primary: #0f172a;
  --color-primary-light: #334155;

  /* Accent: Electric Blue (Vibrant & Cool) */
  --color-accent: #2563eb;
  --color-accent-light: #60a5fa;
  --color-accent-dark: #1d4ed8;

  /* Text Colors */
  --color-text: #0f172a;
  --color-text-light: #475569;
  --color-text-muted: #94a3b8;

  /* Surfaces - Glassmorphism System */
  --color-background: #f8fafc;
  --color-surface: rgba(255, 255, 255, 0.7);
  --color-surface-hover: rgba(255, 255, 255, 0.9);
  --color-border: rgba(226, 232, 240, 0.8);
  --color-border-light: #f1f5f9;
  --color-border-glass: rgba(255, 255, 255, 0.6);

  /* Status Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;

  /* Typography */
  --font-primary: "Inter", -apple-system, system-ui, sans-serif;
  --font-heading: "Orbitron", sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Shadows - Glow feel */
  --shadow-sm: 0 1px 2px 0 rgba(148, 163, 184, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(148, 163, 184, 0.1), 0 2px 4px -1px rgba(148, 163, 184, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(37, 99, 235, 0.08), 0 4px 6px -2px rgba(37, 99, 235, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.05);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;

  /* Mesh Gradient Background */
  background-color: #f8fafc;
  background-image:
    radial-gradient(at 0% 0%, hsla(210, 100%, 96%, 1) 0, transparent 50%),
    radial-gradient(at 50% 0%, hsla(220, 100%, 97%, 1) 0, transparent 50%),
    radial-gradient(at 100% 0%, hsla(210, 100%, 96%, 1) 0, transparent 50%),
    radial-gradient(at 0% 100%, hsla(220, 100%, 98%, 1) 0, transparent 50%),
    radial-gradient(at 80% 100%, hsla(210, 100%, 96%, 1) 0, transparent 50%),
    radial-gradient(at 0% 50%, hsla(220, 100%, 97%, 1) 0, transparent 50%);
}

/* ===== ANIMATED BACKGROUND ORBS ===== */
body:not(.security-mode)::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(37, 99, 235, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(96, 165, 250, 0.10) 0%, transparent 40%);
  animation: bgBreath 15s ease-in-out infinite alternate;
  filter: blur(40px);
}

body:not(.security-mode)::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.8) 0%, transparent 60%),
    radial-gradient(circle at 90% 90%, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
  animation: bgDrift 20s ease-in-out infinite alternate-reverse;
}

@keyframes bgBreath {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }

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

@keyframes bgDrift {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(-20px, 20px);
  }
}

/* Floating blue orb particles */
body:not(.security-mode) .main::before {
  content: "";
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
  top: -10%;
  right: -10%;
  pointer-events: none;
  z-index: 0;
  animation: orbFloat1 25s ease-in-out infinite;
  filter: blur(60px);
}

body:not(.security-mode) .main::after {
  content: "";
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 197, 253, 0.08) 0%, transparent 70%);
  bottom: 10%;
  left: -5%;
  pointer-events: none;
  z-index: 0;
  animation: orbFloat2 30s ease-in-out infinite;
  filter: blur(50px);
}

@keyframes orbFloat1 {

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

  50% {
    transform: translate(-30px, 40px) scale(1.05);
  }
}

@keyframes orbFloat2 {

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

  50% {
    transform: translate(40px, -30px) scale(0.95);
  }
}

/* Ensure all content sits above background layers */
.header,
.main>*,
.footer {
  position: relative;
  z-index: 1;
}

/* ===== SECURITY MODE - Background ===== */
body.security-mode {
  background-color: #0a0000 !important;
  background-image: linear-gradient(135deg, #1a0000 0%, #0a0000 50%, #1a0505 100%) !important;
  transition: background 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Neon Pulse Animation */
body.security-mode-pulse::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 3px solid var(--color-error);
  pointer-events: none;
  z-index: 9999;
  animation: neonSecurityPulse 2s ease-in-out forwards;
  box-shadow:
    0 0 15px var(--color-error),
    0 0 30px var(--color-error),
    0 0 60px var(--color-error),
    inset 0 0 15px var(--color-error),
    inset 0 0 30px var(--color-error);
}

@keyframes neonSecurityPulse {
  0% {
    opacity: 0;
    border-width: 0px;
    transform: scale(0.98);
    box-shadow:
      0 0 0px var(--color-error), 0 0 0px var(--color-error), 0 0 0px var(--color-error),
      inset 0 0 0px var(--color-error), inset 0 0 0px var(--color-error);
  }

  15% {
    opacity: 1;
    border-width: 5px;
    transform: scale(1);
    box-shadow:
      0 0 30px var(--color-error), 0 0 60px var(--color-error), 0 0 90px var(--color-error),
      inset 0 0 30px var(--color-error), inset 0 0 60px var(--color-error);
  }

  25% {
    opacity: 0.6;
    border-width: 3px;
    transform: scale(1.005);
    box-shadow:
      0 0 15px var(--color-error), 0 0 30px var(--color-error), 0 0 45px var(--color-error),
      inset 0 0 15px var(--color-error), inset 0 0 30px var(--color-error);
  }

  40% {
    opacity: 0.9;
    border-width: 4px;
    transform: scale(1.01);
    box-shadow:
      0 0 25px var(--color-error), 0 0 50px var(--color-error), 0 0 75px var(--color-error),
      inset 0 0 25px var(--color-error), inset 0 0 50px var(--color-error);
  }

  55% {
    opacity: 0.7;
    border-width: 3px;
    transform: scale(1.01);
    box-shadow:
      0 0 20px var(--color-error), 0 0 40px var(--color-error), 0 0 60px var(--color-error),
      inset 0 0 20px var(--color-error), inset 0 0 40px var(--color-error);
  }

  70% {
    opacity: 0.4;
    border-width: 2px;
    transform: scale(1.015);
    box-shadow:
      0 0 12px var(--color-error), 0 0 24px var(--color-error), 0 0 36px var(--color-error),
      inset 0 0 12px var(--color-error), inset 0 0 24px var(--color-error);
  }

  85% {
    opacity: 0.15;
    border-width: 1px;
    transform: scale(1.02);
    box-shadow:
      0 0 6px var(--color-error), 0 0 12px var(--color-error), 0 0 18px var(--color-error),
      inset 0 0 6px var(--color-error), inset 0 0 12px var(--color-error);
  }

  100% {
    opacity: 0;
    border-width: 0px;
    transform: scale(1.02);
    box-shadow:
      0 0 0px var(--color-error), 0 0 0px var(--color-error), 0 0 0px var(--color-error),
      inset 0 0 0px var(--color-error), inset 0 0 0px var(--color-error);
  }
}

/* Hero Content Switching */
.hero-analytics,
.hero-security {
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(20px);
  position: absolute;
  width: 100%;
  pointer-events: none;
}

.hero-analytics.active,
.hero-security.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
  pointer-events: all;
}

.hero-content {
  position: relative;
  min-height: 200px;
}

/* Security Mode Hero */
.hero-security .title-line {
  color: #f8fafc;
  text-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
}

.hero-security .title-accent {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 25px rgba(239, 68, 68, 0.5));
}

.hero-security .hero-subtitle {
  color: #cbd5e1;
}

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* ===== HEADER (Glass Style) ===== */
.header {
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

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

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.logo {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
  filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.3));
  animation: logoSpin 20s linear infinite;
}

@keyframes logoSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: 0.1em;
}

.nav {
  display: flex;
  gap: var(--spacing-xs);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

.nav-link {
  padding: var(--spacing-sm) var(--spacing-xl);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-light);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-link:hover::before {
  opacity: 1;
}

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

.nav-link.active {
  background: #ffffff;
  color: var(--color-accent);
  border-color: rgba(37, 99, 235, 0.1);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
  font-weight: 600;
}

/* Analytics Mode active button */
.nav-link.active[data-mode="analytics"] {
  background: #ffffff;
  color: var(--color-accent);
}

/* Security Mode - Navigation */
body.security-mode .nav {
  background: rgba(239, 68, 68, 0.05);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(239, 68, 68, 0.2);
  box-shadow: 0 8px 32px rgba(239, 68, 68, 0.2), inset 0 1px 0 rgba(239, 68, 68, 0.1);
}

body.security-mode .nav-link {
  color: #cbd5e1;
}

body.security-mode .nav-link::before {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
}

body.security-mode .nav-link:hover {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.05);
}

body.security-mode .nav-link.active {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow:
    0 4px 20px rgba(239, 68, 68, 0.4),
    0 2px 10px rgba(239, 68, 68, 0.3),
    inset 0 1px 0 rgba(239, 68, 68, 0.2),
    0 0 20px rgba(239, 68, 68, 0.3);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}

body.security-mode .nav-link.active[data-mode="security"] {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.15) 100%);
  color: #fca5a5;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

body.security-mode .nav-link.active[data-mode="analytics"] {
  background: rgba(37, 99, 235, 0.1);
  color: #60a5fa;
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.2), 0 0 15px rgba(37, 99, 235, 0.2);
}

/* Header in Security Mode */
body.security-mode .header {
  background: rgba(26, 0, 0, 0.95);
  border-bottom-color: rgba(239, 68, 68, 0.3);
  backdrop-filter: blur(20px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

body.security-mode .brand-name {
  color: #ef4444;
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

body.security-mode .logo {
  color: #ef4444;
  filter: drop-shadow(0 0 12px rgba(239, 68, 68, 0.7));
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== MAIN ===== */
.main {
  flex: 1;
  padding: var(--spacing-3xl) 0;
}

/* ===== HERO ===== */
.hero {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--spacing-lg);
  letter-spacing: -0.03em;
  color: var(--color-primary);
}

.title-line {
  display: block;
  color: var(--color-primary);
}

.title-accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 10px rgba(37, 99, 235, 0.2));
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
  line-height: 1.6;
}

/* ===== INPUT SECTION ===== */
.input-section {
  margin-bottom: var(--spacing-3xl);
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both;
}

.check-form {
  max-width: 800px;
  margin: 0 auto;
}

.input-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  gap: var(--spacing-md);
  background: #ffffff;
  border: 2px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-xl);
  padding: var(--spacing-sm);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.input-wrapper:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1), 0 4px 24px rgba(37, 99, 235, 0.12);
}

.input-icon {
  display: flex;
  align-items: center;
  padding-left: var(--spacing-md);
  color: var(--color-text-muted);
}

.url-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-primary);
  font-size: 1.1rem;
  color: var(--color-text);
  background: transparent;
  padding: var(--spacing-md) 0;
}

.url-input::placeholder {
  color: #cbd5e1;
}

.submit-btn {
  padding: var(--spacing-md) var(--spacing-2xl);
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

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

.submit-btn.loading {
  background: var(--color-text-muted);
  cursor: not-allowed;
  box-shadow: none;
}

/* Submit Button in Security Mode */
.submit-btn.security-mode {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.submit-btn.security-mode:hover {
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.5);
  transform: translateY(-2px);
}

/* Loader Animation */
.btn-loader {
  display: inline-flex;
  gap: 4px;
}

.loader-dot {
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: dotPulse 1.4s infinite ease-in-out;
}

.loader-dot:nth-child(1) {
  animation-delay: 0s;
}

.loader-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.loader-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotPulse {

  0%,
  60%,
  100% {
    opacity: 0.3;
    transform: scale(0.8);
  }

  30% {
    opacity: 1;
    transform: scale(1);
  }
}

.mode-indicator {
  text-align: center;
  margin-top: var(--spacing-md);
}

.mode-badge {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-md);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: var(--color-text-light);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.mode-badge.security {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-error);
  border-color: rgba(239, 68, 68, 0.2);
}

/* Input Section in Security Mode */
body.security-mode .input-wrapper {
  background: rgba(26, 0, 0, 0.6);
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.2), inset 0 0 25px rgba(239, 68, 68, 0.08);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

body.security-mode .input-wrapper:focus-within {
  border-color: var(--color-error);
  box-shadow:
    0 0 30px rgba(239, 68, 68, 0.3),
    0 0 0 4px rgba(239, 68, 68, 0.15),
    inset 0 0 25px rgba(239, 68, 68, 0.08);
  transform: none;
}

body.security-mode .url-input {
  color: #f8fafc;
  transition: color 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

body.security-mode .url-input::placeholder {
  color: #94a3b8;
}

body.security-mode .input-icon {
  color: #ef4444;
  filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.5));
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== UTILITY CLASSES ===== */
.hidden {
  display: none !important;
}

/* ===== RESULTS SECTION ===== */
.results-section {
  animation: fadeInUp 0.6s ease-out both;
}

.results-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.results-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
}

.analyzed-url {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--color-accent);
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.1);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-full);
  display: inline-block;
}

/* Results in Security Mode */
body.security-mode .results-title {
  color: #f8fafc;
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

body.security-mode .analyzed-url {
  background: rgba(239, 68, 68, 0.1);
  color: #f8fafc;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ===== SUMMARY CARD (Glassmorphism) ===== */
.score-card-main {
  background: var(--color-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-border-glass);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
  box-shadow: var(--shadow-glass), var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: scaleIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.score-display {
  position: relative;
}

.score-circle {
  position: relative;
  width: 200px;
  height: 200px;
}

.score-ring {
  transform: rotate(-90deg);
}

.score-ring-bg {
  fill: none;
  stroke: #e2e8f0;
  stroke-width: 10;
  opacity: 0.5;
}

.score-ring-fill {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 534;
  stroke-dashoffset: 534;
  transition: stroke-dashoffset 1.5s ease-out 0.3s, stroke 0.5s ease;
  filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.4));
}

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

.score-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: var(--spacing-xs);
}

.score-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.score-grade {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-top: var(--spacing-xs);
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.score-breakdown {
  display: grid;
  gap: var(--spacing-md);
  width: 100%;
}

.score-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  animation: slideInRight 0.5s ease-out both;
}

.score-item:hover {
  background: #ffffff;
  transform: translateX(5px);
  box-shadow: var(--shadow-sm);
  border-color: var(--color-accent-light);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

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

.score-item:nth-child(1) {
  animation-delay: 0.1s;
}

.score-item:nth-child(2) {
  animation-delay: 0.2s;
}

.score-item:nth-child(3) {
  animation-delay: 0.3s;
}

.score-item:nth-child(4) {
  animation-delay: 0.4s;
}

.score-item:nth-child(5) {
  animation-delay: 0.5s;
}

.score-item-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
}

.score-item-value {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.score-item-number {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
}

.score-item-bar {
  width: 100px;
  height: 6px;
  background: rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.score-item-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  border-radius: var(--radius-full);
  transition: width 0.8s ease-out 0.5s;
  width: 0;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
}

/* Score Card in Security Mode */
body.security-mode .score-card-main,
body.security-mode .analysis-tabs,
body.security-mode .security-verdict {
  background: rgba(26, 0, 0, 0.7);
  border: 1px solid rgba(239, 68, 68, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(239, 68, 68, 0.15);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

body.security-mode .score-number {
  color: #f8fafc;
}

/* ===== HOSTING INFO (Glass Style) ===== */
.hosting-info-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  background: var(--color-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-border-glass);
  box-shadow: var(--shadow-glass);
  padding: 2rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  animation: fadeInUp 0.5s ease-out 0.2s both;
}

.host-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem;
  border-left: 2px solid transparent;
  transition: border-color 0.3s;
}

.host-item:hover {
  border-left-color: var(--color-accent-light);
}

.host-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.host-value {
  font-family: var(--font-primary);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.host-sub {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* Hosting Info in Security Mode */
body.security-mode .hosting-info-container {
  background: rgba(26, 0, 0, 0.7);
  border: 1px solid rgba(239, 68, 68, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

body.security-mode .host-value {
  color: #f8fafc;
}

body.security-mode .host-label {
  color: #fca5a5;
  opacity: 0.8;
}

/* ===== TABS ===== */
.analysis-tabs {
  background: var(--color-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-border-glass);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-glass);
}

.tab-navigation {
  display: flex;
  gap: var(--spacing-xs);
  padding: var(--spacing-md);
  background: rgba(241, 245, 249, 0.5);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  overflow-x: auto;
}

.tab-btn {
  padding: var(--spacing-sm) var(--spacing-lg);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-light);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--color-accent);
  background: rgba(255, 255, 255, 0.5);
}

.tab-btn.active {
  background: #ffffff;
  color: var(--color-accent);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  font-weight: 600;
}

.tab-content {
  padding: var(--spacing-2xl);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

/* Tabs in Security Mode */
body.security-mode .tab-navigation {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
}

body.security-mode .tab-btn {
  color: #cbd5e1;
}

body.security-mode .tab-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

body.security-mode .tab-btn.active {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

/* ===== DATA SECTIONS ===== */
.data-section {
  margin-bottom: var(--spacing-2xl);
}

.data-section-last-child {
  margin-bottom: 0;
}

.data-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid rgba(226, 232, 240, 0.8);
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.data-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  transition: all 0.3s;
}

.data-card:hover {
  background: #ffffff;
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent-light);
  transform: translateY(-3px);
}

.data-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-md);
}

.data-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--spacing-xs);
}

.data-card-description {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

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

.data-list-item {
  display: flex;
  justify-content: space-between;
  padding: var(--spacing-md);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.data-list-item:last-child {
  border-bottom: none;
}

.data-list-label {
  font-weight: 500;
  color: var(--color-text);
}

.data-list-value {
  font-family: var(--font-mono);
  color: var(--color-text-light);
  font-size: 0.9375rem;
}

/* Data Sections in Security Mode */
body.security-mode .data-section-title {
  color: #f8fafc;
}

body.security-mode .data-list-label {
  color: #e2e8f0 !important;
}

body.security-mode .data-list-value {
  color: #cbd5e1 !important;
}

/* ===== RECOMMENDATIONS ===== */
.recommendations-list {
  display: grid;
  gap: var(--spacing-md);
}

.recommendation-card {
  background: #ffffff;
  border-left: 4px solid var(--color-info);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.recommendation-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.recommendation-card.priority-critical,
.recommendation-card.priority-high {
  border-left-color: var(--color-error);
}

.recommendation-card.priority-medium {
  border-left-color: var(--color-warning);
}

.recommendation-card.priority-low {
  border-left-color: var(--color-info);
}

.recommendation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-sm);
}

.recommendation-category {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.recommendation-priority {
  padding: 4px var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.priority-critical,
.priority-high {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-error);
}

.priority-medium {
  background: rgba(245, 158, 11, 0.1);
  color: var(--color-warning);
}

.priority-low {
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-info);
}

.recommendation-issue {
  color: var(--color-text-light);
}

.recommendation-fix {
  color: var(--color-text);
}

.recommendation-evidence {
  color: #94a3b8;
}

/* Recommendations in Security Mode */
body.security-mode .recommendation-card {
  background: rgba(26, 0, 0, 0.4);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-left-width: 4px;
  /* Retain original emphasis */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.security-mode .recommendation-card:hover {
  background: rgba(239, 68, 68, 0.05);
  border-color: rgba(239, 68, 68, 0.4);
}

body.security-mode .recommendation-category {
  color: #f8fafc;
}

body.security-mode .recommendation-issue {
  color: #cbd5e1;
}

body.security-mode .recommendation-fix {
  color: #e2e8f0;
}

body.security-mode .recommendation-evidence {
  color: #94a3b8;
}

.recommendation-issue {
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--spacing-xs);
}

.recommendation-fix {
  color: var(--color-text-light);
  line-height: 1.6;
}

/* Security Mode Recommendations */
body.security-mode .priority-critical .recommendation-category,
body.security-mode .priority-critical .recommendation-priority,
body.security-mode .priority-high .recommendation-category,
body.security-mode .priority-high .recommendation-priority {
  color: #f87171 !important;
}

body.security-mode .priority-medium .recommendation-category,
body.security-mode .priority-medium .recommendation-priority {
  color: #fbbf24 !important;
}

body.security-mode .priority-low .recommendation-category,
body.security-mode .priority-low .recommendation-priority {
  color: #60a5fa !important;
}

body.security-mode .recommendation-issue {
  color: #ffffff !important;
}

body.security-mode .recommendation-fix {
  color: #cbd5e1 !important;
}

/* ===== SECURITY RESULTS ===== */
.security-verdict {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.verdict-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-lg);
}

.verdict-status {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.disclaimer-box {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #92400e;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.4;
  margin: var(--spacing-md) auto;
  max-width: 500px;
  text-align: left;
}

body.security-mode .disclaimer-box {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.verdict-score {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-lg);
}

.verdict-summary {
  font-size: 1.125rem;
  color: var(--color-text);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Security Mode Verdict */
body.security-mode .security-verdict,
body.security-mode .security-verdict * {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

body.security-mode .verdic.status-warning-text {
    color: #f59e0b !important;
    font-weight: 600;
}

/* Embedded WebSecured Sections */
.norwegian-embedded-section {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-top: 2rem;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

body.security-mode .norwegian-embedded-section {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(239, 68, 68, 0.15);
    box-shadow: 
        0 10px 40px rgba(0,0,0,0.3),
        inset 0 0 20px rgba(239, 68, 68, 0.03);
    color: white;
}

.norwegian-embedded-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

body.security-mode .norwegian-embedded-title {
    color: #ef4444 !important;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.norwegian-embedded-title .info-btn {
    opacity: 0.5;
    transition: opacity 0.2s, transform 0.2s;
    cursor: pointer;
}

.norwegian-embedded-title .info-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.norwegian-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.norwegian-security-card {
    padding: 1.5rem;
    border-radius: 16px;
    backdrop-filter: blur(5px);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.norwegian-security-card:hover {
    transform: translateY(-2px);
}

.norwegian-security-card.secure {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.norwegian-security-card.warning {
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.subdomain-chip {
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    transition: background 0.2s;
}

body.security-mode .subdomain-chip {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

.subdomain-chip:hover {
    background: rgba(0, 0, 0, 0.08);
}

body.security-mode .verdict-score {
  color: #ffffff !important;
  font-weight: 700;
  opacity: 1;
}

/* ===== ERROR SECTION ===== */
.error-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: var(--spacing-3xl);
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: shake 0.5s ease-out;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-10px);
  }

  75% {
    transform: translateX(10px);
  }
}

.error-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-lg);
}

.error-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
}

.error-message {
  color: var(--color-text-light);
  margin-bottom: var(--spacing-xl);
  font-size: 1.125rem;
}

.error-retry {
  padding: var(--spacing-md) var(--spacing-2xl);
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
}

.error-retry:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--spacing-2xl) 0;
  text-align: center;
  margin-top: var(--spacing-3xl);
}

.footer-text {
  font-weight: 600;
  color: white;
  margin-bottom: var(--spacing-sm);
}

.footer-disclaimer {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 600px;
  margin: 0 auto;
}

/* Footer in Security Mode */
body.security-mode .footer {
  background: linear-gradient(180deg, rgba(26, 0, 0, 0.95) 0%, #0a0000 100%);
  border-top: 1px solid rgba(239, 68, 68, 0.3);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .score-card-main {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .score-breakdown {
    width: 100%;
  }

  .hosting-info-container {
    grid-template-columns: 1fr;
  }

  .tab-navigation {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

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

  .hero-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
  }

  .input-wrapper {
    flex-direction: column;
  }

  .submit-btn {
    width: 100%;
  }
}

/* ===== STATUS BADGES ===== */
.status-badge {
  display: inline-block;
  padding: 4px var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
}

.status-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--color-warning);
}

.status-error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-error);
}

/* ===== URL VALIDATION STYLES ===== */
.input-wrapper.valid {
  border-color: var(--color-success);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1), 0 4px 24px rgba(16, 185, 129, 0.08);
}

.input-wrapper.valid .input-icon {
  color: var(--color-success);
}

.input-wrapper.invalid {
  border-color: var(--color-error);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1), 0 4px 24px rgba(239, 68, 68, 0.08);
}

.input-wrapper.invalid .input-icon {
  color: var(--color-error);
  animation: shake 0.3s ease-in-out;
}

body.security-mode .input-wrapper.valid {
  border-color: var(--color-success);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

body.security-mode .input-wrapper.invalid {
  border-color: var(--color-error);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

/* ===== SOCIAL MEDIA PREVIEW & LINKS ===== */
.social-section-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xl);
  align-items: start;
}

.preview-column {
  flex: 1;
  min-width: 300px;
}

.links-column {
  flex: 1;
  min-width: 250px;
}

.social-section-wrapper.single-column {
  display: block;
}

.links-column.full-width {
  width: 100%;
}

.subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.social-links-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.social-btn {
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
  color: white;
  background-color: var(--color-text-light);
  flex: 0 0 auto;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.social-btn.facebook {
  background-color: #1877f2;
}

.social-btn.linkedin {
  background-color: #0a66c2;
}

.social-btn.twitter {
  background-color: #000000;
}

.social-btn.x {
  background-color: #000000;
}

.social-btn.youtube {
  background-color: #ff0000;
}

.social-btn.tiktok {
  background-color: #000000;
}

.social-btn.instagram {
  background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

.social-preview-container {
  display: flex;
  justify-content: center;
  padding: var(--spacing-lg);
  background: var(--color-border-light);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-xl);
}

.social-card-wrapper {
  width: 100%;
  max-width: 450px;
}

.social-card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.social-card {
  background: #fff;
  border: 1px solid #dadde1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.og-image {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
}

.og-image.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e4e6eb;
  color: #65676b;
  font-weight: 600;
  flex-direction: column;
  gap: 10px;
  height: 220px;
}

.og-content {
  padding: 12px 16px;
  background: #f0f2f5;
}

.og-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 5px;
  color: #050505;
}

.og-desc {
  color: #65676b;
  font-size: 14px;
  line-height: 1.4;
}

.og-url {
  color: #65676b;
  font-size: 12px;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.og-warning {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* Security Mode Social Preview */
body.security-mode .social-preview-container {
  background: rgba(26, 0, 0, 0.5);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

body.security-mode .social-card {
  background: #1c1e21;
  border-color: #3e4042;
}

body.security-mode .og-content {
  background: #242526;
}

body.security-mode .og-title {
  color: #e4e6eb;
}

body.security-mode .og-desc,
body.security-mode .og-url {
  color: #b0b3b8;
}

/* ===== WEBSITE SCREENSHOTS ===== */
.screenshot-section {
  margin-bottom: var(--spacing-2xl);
  animation: fadeInUp 0.6s ease-out both;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.browser-mockup {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  height: auto;
}

.browser-header {
  background: #f1f5f9;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-dot.red {
  background: #ef4444;
}

.browser-dot.yellow {
  background: #f59e0b;
}

.browser-dot.green {
  background: #10b981;
}

.browser-address-bar {
  flex: 1;
  height: 24px;
  background: #fff;
  border-radius: 4px;
  margin-left: 10px;
  border: 1px solid #e2e8f0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  padding-left: 10px;
}

.mobile-mockup {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  border: 8px solid #1a1a1a;
  position: relative;
  aspect-ratio: 9 / 18;
  max-width: 180px;
  margin: 0 auto;
}

.mobile-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 45%;
  height: 18px;
  background: #1a1a1a;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 10;
}

.mobile-mockup::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 3px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.website-screenshot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

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

  .mobile-mockup {
    max-width: 160px;
    margin: var(--spacing-lg) auto 0;
  }
}

/* Security Mode Screenshots */
body.security-mode .browser-mockup {
  background: #1e293b;
  border-color: #334155;
}

body.security-mode .browser-header {
  background: #0f172a;
  border-color: #334155;
}

body.security-mode .browser-address-bar {
  background: #1e293b;
  border-color: #334155;
}

body.security-mode .mobile-mockup {
  border-color: #050505;
  background: #000;
}

body.security-mode .mobile-notch {
  background: #050505;
}

body.security-mode .mobile-mockup::after {
  background: rgba(255, 255, 255, 0.2);
}

/* ===== TECH STACK ===== */
.tech-stack-section {
  animation: fadeInUp 0.5s ease-out both;
  height: 100%;
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--color-border);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: default;
}

.tech-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.tech-icon {
  font-size: 1.2rem;
}

.tech-name {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.95rem;
}

.tech-cat {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  background: var(--color-border-light);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Security Mode Tech Stack */
body.security-mode .tech-badge {
  background: rgba(26, 0, 0, 0.4);
  border-color: rgba(239, 68, 68, 0.2);
}

body.security-mode .tech-name {
  color: #f8fafc;
}

body.security-mode .tech-cat {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

/* ===== SECURITY MODE - FORCE WHITE TEXT (DATA LISTS ETC.) ===== */
body.security-mode .data-section-title,
body.security-mode .data-list-label,
body.security-mode .data-list-value,
body.security-mode .score-number {
  color: #ffffff !important;
}

/* ===== NEW: SCORE DELTA (HISTORY) ===== */
.score-delta {
  font-size: 0.8rem;
  font-weight: 700;
  margin-left: 12px;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.delta-up {
  color: var(--color-success);
  background: rgba(16, 185, 129, 0.1);
}

.delta-down {
  color: var(--color-danger);
  background: rgba(239, 68, 68, 0.1);
}

.delta-same {
  color: var(--color-text-muted);
  background: rgba(100, 116, 139, 0.1);
}

/* ===== NEW: RADAR CHART ===== */
.radar-chart-container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: var(--spacing-md);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===== NEW: ANALYTICS GRID LAYOUTS ===== */
.metrics-grid, .tech-grid-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
}

.radar-chart-card, .score-breakdown-card, .tech-stack-card {
  background: var(--color-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-border-glass);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-glass);
  height: 100%;
}

.tech-grid-wrapper .hosting-info-container {
  margin-bottom: 0;
  height: 100%;
}

.norwegian-domain-container {
  margin-top: 2rem;
  background: var(--color-surface);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-left: 3px solid #df2020; /* Subtle crimson accent */
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(223, 32, 32, 0.05);
  animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.norwegian-domain-container:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.06),
    0 6px 16px rgba(223, 32, 32, 0.08);
}

.norwegian-domain-container.hidden {
  display: none !important;
}

.norwegian-insight-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(223, 32, 32, 0.9);
    backdrop-filter: blur(4px);
    color: white;
    padding: 8px 18px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(223, 32, 32, 0.25);
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.2);
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: badge-pulse-anim 2s infinite;
}

@keyframes badge-pulse-anim {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.subdomain-section {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: rgba(15, 23, 42, 0.03);
    border-radius: var(--radius-lg);
    border: 1px dashed rgba(15, 23, 42, 0.08);
}

.subdomain-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.subdomain-chip {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--color-primary);
    font-family: var(--font-secondary);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.subdomain-chip:hover {
    background: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-color: var(--color-primary-light);
}

.norwegian-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.norwegian-subheader {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.norwegian-field {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--color-border);
    padding: 10px 14px;
    border-radius: 12px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.norwegian-field:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.status-check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-ok { color: #10b981; }
.status-err { color: #ef4444; }

.technical-toggle-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
}

.technical-toggle-btn:hover {
    background: var(--color-border);
}

.technical-details {
    display: none;
    margin-top: 1.5rem;
    padding: var(--spacing-md);
    background: #1e293b;
    border-radius: 12px;
    color: #94a3b8;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    overflow-x: auto;
}

.technical-details.show {
    display: block;
}

.dns-record-item {
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 4px;
}

.dns-type {
    color: #fca5a5;
    margin-right: 8px;
    font-weight: bold;
}

@media (max-width: 960px) {
  .metrics-grid, .tech-grid-wrapper {
    grid-template-columns: 1fr;
  }
}

/* ===== NEW: HISTORY SECTION ===== */
.history-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px dashed var(--color-border);
}

.history-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 16px;
  font-weight: 600;
}

.history-cards {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.history-cards::-webkit-scrollbar {
  height: 6px;
}

.history-cards::-webkit-scrollbar-track {
  background: transparent;
}

.history-cards::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 10px;
}

.history-card {
  flex: 0 0 auto;
  min-width: 140px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-card-score {
  font-family: var(--font-numero);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-card-grade {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  padding: 2px 6px;
  background: var(--color-bg);
  border-radius: 6px;
  color: var(--color-text-muted);
}

.history-card-delta {
  font-size: 0.85rem;
  font-weight: 600;
}

.history-card-time {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: auto;
}

/* Security mode overrides for new features */
body.security-mode .radar-chart-container,
body.security-mode .history-card {
  background: rgba(30, 20, 20, 0.95);
  border-color: rgba(239, 68, 68, 0.2);
}

body.security-mode .history-title {
  color: var(--color-text-light);
}

body.security-mode .history-card-score {
  color: #fff;
}

body.security-mode .history-card-grade {
  background: rgba(239, 68, 68, 0.1);
  color: rgba(239, 68, 68, 0.9);
}

/* ===================================
   LOADING SECTION - Squirrel & Fun Facts
   =================================== */

.loading-section {
  margin: var(--spacing-2xl) 0;
  animation: fadeInUp 0.5s ease-out both;
}

.loading-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--spacing-2xl);
  background: var(--color-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-border-glass);
  border-radius: 24px;
  box-shadow: var(--shadow-glass), var(--shadow-lg);
}

/* ===== LEFT: Step List ===== */
.loading-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--spacing-lg);
  letter-spacing: -0.02em;
}

/* Animated dots in title */
.loading-dots span {
  display: inline-block;
  animation: dotBounce 1.4s infinite ease-in-out;
  color: var(--color-accent);
}

.loading-dots span:nth-child(1) {
  animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotBounce {

  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.step-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  background: rgba(241, 245, 249, 0.5);
  border: 1px solid transparent;
  transition: all 0.4s ease;
  opacity: 0.45;
}

.step-item.step-active {
  opacity: 1;
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.2);
  transform: translateX(6px);
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.1);
}

.step-item.step-done {
  opacity: 0.7;
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.2);
  transform: translateX(0);
}

.step-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.step-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  flex: 1;
}

.step-status {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-success);
  width: 18px;
  text-align: center;
}

/* Active step: pulsing spinner instead of checkmark */
.step-item.step-active .step-status::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(37, 99, 235, 0.2);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spinStep 0.7s linear infinite;
  vertical-align: middle;
}

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

/* ===== RIGHT: Mascot ===== */
.loading-mascot {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-top: 10px;
}

/* Thought bubble */
.thought-bubble {
  background: white;
  border: 2px solid rgba(37, 99, 235, 0.15);
  border-radius: 20px;
  padding: 16px 20px;
  margin-bottom: 4px;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
  max-width: 260px;
  text-align: center;
  position: relative;
  animation: bubbleFloat 3s ease-in-out infinite;
}

@keyframes bubbleFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.fact-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.fact-text {
  font-size: 0.85rem;
  color: var(--color-text);
  line-height: 1.5;
  font-weight: 500;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Connecting dots from bubble to squirrel */
.thought-dots {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin-bottom: 2px;
}

.thought-dots span {
  display: block;
  background: rgba(37, 99, 235, 0.25);
  border-radius: 50%;
  animation: dotPulseSmall 2s ease-in-out infinite;
}

.thought-dots span:nth-child(1) {
  width: 8px;
  height: 8px;
  animation-delay: 0s;
}

.thought-dots span:nth-child(2) {
  width: 6px;
  height: 6px;
  animation-delay: 0.15s;
}

.thought-dots span:nth-child(3) {
  width: 4px;
  height: 4px;
  animation-delay: 0.3s;
}

@keyframes dotPulseSmall {

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

  50% {
    opacity: 0.9;
    transform: scale(1.15);
  }
}

/* SVG Squirrel */
.squirrel-svg {
  width: 160px;
  height: auto;
  animation: squirrelBob 2.8s ease-in-out infinite;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
}

@keyframes squirrelBob {

  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-5px) rotate(1deg);
  }
}

/* Security mode adaptations */
body.security-mode .loading-inner {
  background: rgba(26, 0, 0, 0.7);
  border-color: rgba(239, 68, 68, 0.25);
}

body.security-mode .loading-title {
  color: #f8fafc;
}

body.security-mode .step-item {
  background: rgba(26, 0, 0, 0.4);
}

body.security-mode .step-item.step-active {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
}

body.security-mode .step-item.step-active .step-status::before {
  border-color: rgba(239, 68, 68, 0.2);
  border-top-color: #ef4444;
}

body.security-mode .step-item.step-done {
  background: rgba(16, 185, 129, 0.05);
}

body.security-mode .step-text {
  color: #e2e8f0;
}

body.security-mode .thought-bubble {
  background: rgba(26, 0, 0, 0.85);
  border-color: rgba(239, 68, 68, 0.25);
}

body.security-mode .fact-label {
  color: #ef4444;
}

body.security-mode .fact-text {
  color: #e2e8f0;
}

body.security-mode .thought-dots span {
  background: rgba(239, 68, 68, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .loading-inner {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .loading-mascot {
    order: -1;
  }

  .thought-bubble {
    max-width: 100%;
  }

  .squirrel-svg {
    width: 120px;
  }
}

/* ===== INFO MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.modal-content {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 550px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  transform: translateY(0) scale(1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--color-border-glass);
  overflow: hidden;
}

.modal-overlay .modal-content {
  transform: translateY(20px) scale(0.95);
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
  padding: 0;
}

.modal-close:hover {
  color: var(--color-error);
}

.modal-header {
  padding: var(--spacing-lg) var(--spacing-xl);
  border-bottom: 1px solid var(--color-border-glass);
  background: rgba(248, 250, 252, 0.5);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
}

.modal-body {
  padding: var(--spacing-xl);
  max-height: 70vh;
  overflow-y: auto;
}

.modal-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-subtitle::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background: var(--color-accent);
  border-radius: 2px;
}

.modal-generic-info p {
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: var(--spacing-xl);
}

.modal-insights-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.modal-insights-list li {
  background: rgba(241, 245, 249, 0.7);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-accent);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.modal-insights-list li p {
  margin: 0;
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.4;
}

.modal-insights-list li p strong {
  color: var(--color-primary);
  display: block;
  margin-bottom: 2px;
}

/* Modals in Security Mode */
body.security-mode .modal-content {
  background: rgba(20, 0, 0, 0.95);
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(239, 68, 68, 0.1);
}

body.security-mode .modal-header {
  background: rgba(239, 68, 68, 0.1);
  border-bottom: 1px solid rgba(239, 68, 68, 0.3);
}

body.security-mode .modal-title {
  color: #f8fafc;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

body.security-mode .modal-close {
  color: #94a3b8;
}

body.security-mode .modal-close:hover {
  color: #ef4444;
}

body.security-mode .modal-subtitle {
  color: #f8fafc;
}

body.security-mode .modal-subtitle::before {
  background: #ef4444;
}

body.security-mode .modal-generic-info p {
  color: #cbd5e1;
}

body.security-mode .modal-insights-list li {
  background: rgba(239, 68, 68, 0.05);
  border-left-color: #ef4444;
  border-top: 1px solid rgba(239, 68, 68, 0.1);
  border-right: 1px solid rgba(239, 68, 68, 0.1);
  border-bottom: 1px solid rgba(239, 68, 68, 0.1);
}

body.security-mode .modal-insights-list li p {
  color: #cbd5e1;
}

body.security-mode .modal-insights-list li p strong {
  color: #f8fafc;
}

/* Info Button */
.info-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 2px 6px;
  margin-left: 6px;
  transition: all 0.2s ease;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.info-btn:hover {
  color: var(--color-accent);
  background: rgba(37, 99, 235, 0.1);
  transform: scale(1.1);
}

/* Lighthouse Badge */
.lighthouse-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  cursor: help;
}

body.security-mode .lighthouse-badge {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* Accessibility Improvements */
.a11y-action-bar {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
  flex-wrap: wrap;
}

.a11y-main-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.a11y-main-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.a11y-main-btn .icon {
  font-size: 1.2rem;
}

.wcag-explain-btn {
  background: rgba(37, 99, 235, 0.05);
  border-color: rgba(37, 99, 235, 0.2);
}

.checks-view-btn {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.2);
}

.modal-wcag-explanation {
  background: rgba(37, 99, 235, 0.03);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(37, 99, 235, 0.1);
  margin-bottom: var(--spacing-xl);
}

.modal-wcag-explanation p {
  margin-bottom: var(--spacing-md) !important;
}

.modal-wcag-explanation ul {
  padding-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.modal-wcag-explanation li {
  margin-bottom: var(--spacing-xs);
  color: var(--color-text-light);
  font-size: 0.95rem;
}