/* CSS Variables - PageRank Sky & Coral Theme */
:root {
  /* Warm Coral Primary Colors */
  --primary: #e8927d;
  --primary-dark: #d4735e;
  --primary-light: #f0b5a5;
  --secondary: #5a7a8a;
  --secondary-dark: #3d5a6a;
  --warning: #f39c12;
  --danger: #e74c3c;
  --info: #5a9ac5;

  /* Warm Background Colors */
  --bg-primary: #fdf6e9;
  --bg-secondary: #f9f1e3;
  --bg-tertiary: #f5ece0;
  --bg-card: rgba(255, 255, 255, 0.85);

  /* Text Colors */
  --text-primary: #2c2c2c;
  --text-secondary: #5a5a5a;
  --text-muted: #8a8a8a;

  /* Accent Colors - Golden Yellow & Slate Grey */
  --gold: #f5b041;
  --gold-light: #f9c97a;
  --gold-dark: #d4942b;
  --bronze: #6c7a89;

  --border-color: rgba(26, 58, 82, 0.08);
  --border-radius: 12px;
  --border-radius-lg: 24px;

  --shadow-sm: 0 1px 3px rgba(26, 58, 82, 0.06);
  --shadow-md: 0 4px 12px rgba(26, 58, 82, 0.08);
  --shadow-lg: 0 12px 32px rgba(26, 58, 82, 0.12);

  --font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Liquid Glass UI Variables - Apple/Tableau Style */
  --glass-bg: rgba(255, 255, 255, 0.12);
  --glass-bg-strong: rgba(255, 255, 255, 0.18);
  --glass-bg-light: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.25);
  --glass-border-highlight: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.25);
  --glass-shadow-strong: 0 25px 60px rgba(31, 38, 135, 0.4);
  --glass-blur: blur(20px);
  --glass-blur-strong: blur(30px);

  /* Liquid Glass Golden & Grey Palette - Warm tones */
  --liquid-purple-1: rgba(245, 176, 65, 0.45);
  --liquid-purple-2: rgba(249, 201, 122, 0.40);
  --liquid-purple-3: rgba(212, 148, 43, 0.35);
  --liquid-lavender: rgba(108, 122, 137, 0.35);
  --liquid-blue: rgba(245, 176, 65, 0.45);
  --liquid-teal: rgba(108, 122, 137, 0.40);
  --liquid-pink: rgba(249, 201, 122, 0.35);

  /* Main liquid gradient - warm golden & grey */
  --liquid-gradient: linear-gradient(135deg,
    rgba(245, 176, 65, 0.25) 0%,
    rgba(249, 201, 122, 0.22) 25%,
    rgba(108, 122, 137, 0.20) 50%,
    rgba(249, 201, 122, 0.22) 75%,
    rgba(245, 176, 65, 0.25) 100%);

  /* Accent blobs - golden and grey */
  --liquid-accent-1: rgba(245, 176, 65, 0.45);
  --liquid-accent-2: rgba(108, 122, 137, 0.40);
  --liquid-accent-3: rgba(212, 148, 43, 0.45);

  /* Text on glass */
  --liquid-text: rgba(30, 30, 50, 0.95);
  --liquid-text-muted: rgba(60, 60, 90, 0.75);
  --liquid-text-light: rgba(255, 255, 255, 0.95);
}

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

/* Base Styles */
html {
  scroll-behavior: smooth;
}

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

/* PageRank landing page background */
body.page-home {
  background: #fdf1ef;
}

/* PageRank-Inspired Sky Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
  background: linear-gradient(
    180deg,
    #c8dce8 0%,
    #d5e3ec 8%,
    #e2e9ec 15%,
    #ebe8e5 25%,
    #f0e5de 35%,
    #f5e0d4 45%,
    #f7d9c8 55%,
    #f9d4bf 65%,
    #f8d0b9 75%,
    #f5ccb3 85%,
    #f2c8ad 100%
  );
  pointer-events: none;
}

body.page-home::before {
  background: #fdf1ef url('/images/pagerank/bg-gradient-sunset.webp') center top / cover no-repeat;
}

/* Subtle warm overlay for depth */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background: radial-gradient(
    ellipse 80% 60% at 50% 30%,
    rgba(200, 220, 235, 0.3) 0%,
    transparent 50%
  );
  pointer-events: none;
}

body.page-home::after {
  display: none;
}

/* ========================================
   PAGERANK-STYLE DECORATIVE ELEMENTS
   ======================================== */

/* Floating Background Container */
.pagerank-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

/* PageRank-style clouds + islands (home page) */
.pagerank-bg img,
.pagerank-bg .ai-float-badge {
  position: absolute;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.pagerank-bg img {
  max-width: none;
  height: auto;
}

.pagerank-cloud {
  opacity: 1;
}

.pagerank-cloud-1 {
  width: 305px;
  top: 7rem;
  right: -5rem;
}

.pagerank-cloud-2 {
  width: 528px;
  top: 31rem;
  left: -7rem;
}

.ai-float-badge {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  will-change: transform;
  animation: ai-float-badge 9s ease-in-out infinite;
  z-index: 2;
}

.ai-float-badge img {
  width: 34px;
  height: 34px;
  opacity: 0.92;
}

.ai-float-badge-openai {
  top: 12rem;
  right: 5rem;
  animation-delay: -1s;
}

.ai-float-badge-gemini {
  top: 10rem;
  left: 4rem;
  animation-delay: -2.5s;
}

.ai-float-badge-copilot {
  bottom: 15rem;
  right: 4rem;
  animation-delay: -3.5s;
}

.ai-float-badge-copilot img {
  width: 36px;
  height: 36px;
}

/* Mascot Idle Animation */
.mascot-idle-container {
  position: absolute;
  bottom: 8rem;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  z-index: 3;
  pointer-events: none;
  animation: mascot-float 6s ease-in-out infinite;
}

.mascot-idle-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
}

@keyframes mascot-float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-15px); }
}

@media (max-width: 640px) {
  .mascot-idle-container {
    width: 140px;
    height: 140px;
    bottom: 6rem;
  }
}

@media (max-width: 480px) {
  .mascot-idle-container {
    width: 120px;
    height: 120px;
    bottom: 5rem;
  }
}

@keyframes ai-float-badge {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -12px, 0); }
}

@media (max-width: 640px) {
  .pagerank-cloud-1 {
    width: 200px;
    top: auto;
    bottom: 8rem;
    right: -3rem;
    opacity: 0.7;
  }

  .pagerank-cloud-2 {
    width: 320px;
    top: auto;
    bottom: 2rem;
    left: -4rem;
    opacity: 0.6;
  }

  .island-1 {
    top: 0.5rem;
    left: -3.25rem;
    width: 140px;
  }

  .island-2 {
    top: 1.25rem;
    right: -3.75rem;
    width: 150px;
  }

  .island-3 {
    bottom: 18%;
    right: -6.25rem;
    width: 120px;
  }

  .island-4 {
    bottom: 30%;
    left: -5.25rem;
    width: 110px;
  }

  .ai-float-badge {
    width: 60px;
    height: 60px;
  }

  .ai-float-badge img {
    width: 28px;
    height: 28px;
  }

  .ai-float-badge-openai {
    top: 10.5rem;
    right: 1.25rem;
  }

  .ai-float-badge-gemini {
    top: 9.5rem;
    left: 1.25rem;
  }

  .ai-float-badge-copilot {
    bottom: 11rem;
    right: 1rem;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .pagerank-cloud-1 {
    width: 160px;
    bottom: 6rem;
    right: -4rem;
    opacity: 0.5;
  }

  .pagerank-cloud-2 {
    width: 260px;
    bottom: 1rem;
    left: -5rem;
    opacity: 0.5;
  }

  .island-1 {
    top: 0.25rem;
    left: -3.75rem;
    width: 120px;
  }

  .island-2 {
    top: 0.75rem;
    right: -4.25rem;
    width: 130px;
  }

  .island-3 {
    bottom: 20%;
    right: -6.75rem;
    width: 110px;
  }

  .island-4 {
    display: none;
  }

  .ai-float-badge {
    width: 54px;
    height: 54px;
  }

  .ai-float-badge img {
    width: 26px;
    height: 26px;
  }

  .ai-float-badge-openai {
    top: 10rem;
    right: 1rem;
  }

  .ai-float-badge-gemini {
    top: 9rem;
    left: 1rem;
  }

  .ai-float-badge-copilot {
    bottom: 10.5rem;
    right: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-island,
  .ai-float-badge {
    animation: none;
  }
}

/* Cloud Base Styles */
.cloud {
  position: absolute;
  background: white;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.9;
}

.cloud::before,
.cloud::after {
  content: '';
  position: absolute;
  background: white;
  border-radius: 50%;
}

/* Cloud 1 - Top left large */
.cloud-1 {
  width: 200px;
  height: 60px;
  top: 5%;
  left: 5%;
  animation: float-cloud 60s ease-in-out infinite;
}

.cloud-1::before {
  width: 100px;
  height: 80px;
  top: -50px;
  left: 30px;
}

.cloud-1::after {
  width: 120px;
  height: 70px;
  top: -35px;
  left: 80px;
}

/* Cloud 2 - Top right */
.cloud-2 {
  width: 180px;
  height: 50px;
  top: 8%;
  right: 10%;
  animation: float-cloud 55s ease-in-out infinite reverse;
}

.cloud-2::before {
  width: 90px;
  height: 70px;
  top: -45px;
  left: 20px;
}

.cloud-2::after {
  width: 100px;
  height: 60px;
  top: -30px;
  left: 70px;
}

/* Cloud 3 - Middle left wispy */
.cloud-3 {
  width: 140px;
  height: 40px;
  top: 20%;
  left: 15%;
  opacity: 0.7;
  animation: float-cloud 70s ease-in-out infinite;
}

.cloud-3::before {
  width: 70px;
  height: 50px;
  top: -30px;
  left: 15px;
}

.cloud-3::after {
  width: 80px;
  height: 45px;
  top: -20px;
  left: 50px;
}

/* Cloud 4 - Top center large fluffy */
.cloud-4 {
  width: 250px;
  height: 70px;
  top: 3%;
  left: 35%;
  animation: float-cloud 65s ease-in-out infinite;
}

.cloud-4::before {
  width: 130px;
  height: 100px;
  top: -65px;
  left: 40px;
}

.cloud-4::after {
  width: 150px;
  height: 85px;
  top: -45px;
  left: 100px;
}

/* Cloud 5 - Right side middle */
.cloud-5 {
  width: 160px;
  height: 45px;
  top: 15%;
  right: 5%;
  opacity: 0.8;
  animation: float-cloud 50s ease-in-out infinite reverse;
}

.cloud-5::before {
  width: 80px;
  height: 60px;
  top: -40px;
  left: 25px;
}

.cloud-5::after {
  width: 90px;
  height: 55px;
  top: -25px;
  left: 60px;
}

/* Cloud 6 - Small accent cloud */
.cloud-6 {
  width: 100px;
  height: 30px;
  top: 12%;
  left: 60%;
  opacity: 0.6;
  animation: float-cloud 75s ease-in-out infinite;
}

.cloud-6::before {
  width: 50px;
  height: 40px;
  top: -25px;
  left: 10px;
}

.cloud-6::after {
  width: 60px;
  height: 35px;
  top: -15px;
  left: 35px;
}

/* Cloud Animation */
@keyframes float-cloud {
  0%, 100% {
    transform: translateX(0) translateY(0);
  }
  25% {
    transform: translateX(15px) translateY(-5px);
  }
  50% {
    transform: translateX(25px) translateY(0);
  }
  75% {
    transform: translateX(10px) translateY(5px);
  }
}

/* Floating Islands */
.floating-island {
  position: absolute;
  z-index: 1;
  animation: float-island 8s ease-in-out infinite;
}

/* Island 1 - Top left with palm tree */
.island-1 {
  top: 24%;
  left: -2%;
  width: 120px;
  height: auto;
  animation-delay: 0s;
}

/* Island 2 - Top right with palm trees */
.island-2 {
  top: 5%;
  right: -3%;
  width: 80px;
  height: auto;
  animation-delay: -2s;
  transform: scaleX(-1);
}

/* Island 3 - Bottom right corner accent */
.island-3 {
  bottom: 20%;
  right: -5%;
  width: 220px;
  height: auto;
  animation-delay: -4s;
}

@keyframes float-island {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(1deg);
  }
}

.island-2 {
  animation-name: float-island-mirror;
}

@keyframes float-island-mirror {
  0%, 100% {
    transform: scaleX(-1) translateY(0) rotate(0deg);
  }
  50% {
    transform: scaleX(-1) translateY(-15px) rotate(-1deg);
  }
}

/* Decorative Dot Particles - Bottom Left */
.dot-particles {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 400px;
  height: 500px;
  overflow: hidden;
  pointer-events: none;
}

.dot {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
}

/* Coral/salmon colored dots */
.dot-coral {
  background: #e8a090;
}

.dot-salmon {
  background: #eb9b8b;
}

.dot-peach {
  background: #f0b5a5;
}

.dot-rose {
  background: #e89888;
}

/* Individual dot positions - creating scattered pattern */
.dot-1 { width: 8px; height: 8px; bottom: 5%; left: 2%; animation: dot-float 4s ease-in-out infinite; }
.dot-2 { width: 6px; height: 6px; bottom: 8%; left: 5%; animation: dot-float 5s ease-in-out infinite 0.5s; }
.dot-3 { width: 10px; height: 10px; bottom: 3%; left: 8%; animation: dot-float 4.5s ease-in-out infinite 1s; }
.dot-4 { width: 5px; height: 5px; bottom: 12%; left: 3%; animation: dot-float 5.5s ease-in-out infinite 0.3s; }
.dot-5 { width: 7px; height: 7px; bottom: 15%; left: 6%; animation: dot-float 4s ease-in-out infinite 0.8s; }
.dot-6 { width: 9px; height: 9px; bottom: 10%; left: 10%; animation: dot-float 5s ease-in-out infinite 1.2s; }
.dot-7 { width: 6px; height: 6px; bottom: 18%; left: 4%; animation: dot-float 4.5s ease-in-out infinite 0.6s; }
.dot-8 { width: 8px; height: 8px; bottom: 22%; left: 7%; animation: dot-float 5.5s ease-in-out infinite 1.5s; }
.dot-9 { width: 5px; height: 5px; bottom: 7%; left: 12%; animation: dot-float 4s ease-in-out infinite 0.2s; }
.dot-10 { width: 7px; height: 7px; bottom: 25%; left: 2%; animation: dot-float 5s ease-in-out infinite 1.8s; }
.dot-11 { width: 10px; height: 10px; bottom: 20%; left: 9%; animation: dot-float 4.5s ease-in-out infinite 0.4s; }
.dot-12 { width: 6px; height: 6px; bottom: 28%; left: 5%; animation: dot-float 5.5s ease-in-out infinite 1s; }
.dot-13 { width: 8px; height: 8px; bottom: 14%; left: 11%; animation: dot-float 4s ease-in-out infinite 0.7s; }
.dot-14 { width: 5px; height: 5px; bottom: 30%; left: 8%; animation: dot-float 5s ease-in-out infinite 1.3s; }
.dot-15 { width: 9px; height: 9px; bottom: 24%; left: 12%; animation: dot-float 4.5s ease-in-out infinite 0.9s; }
.dot-16 { width: 7px; height: 7px; bottom: 33%; left: 3%; animation: dot-float 5.5s ease-in-out infinite 1.6s; }
.dot-17 { width: 6px; height: 6px; bottom: 35%; left: 10%; animation: dot-float 4s ease-in-out infinite 0.1s; }
.dot-18 { width: 8px; height: 8px; bottom: 38%; left: 6%; animation: dot-float 5s ease-in-out infinite 1.1s; }
.dot-19 { width: 5px; height: 5px; bottom: 40%; left: 4%; animation: dot-float 4.5s ease-in-out infinite 0.5s; }
.dot-20 { width: 10px; height: 10px; bottom: 32%; left: 14%; animation: dot-float 5.5s ease-in-out infinite 1.4s; }

/* More dots spreading upward */
.dot-21 { width: 6px; height: 6px; bottom: 42%; left: 8%; animation: dot-float 4s ease-in-out infinite 0.3s; }
.dot-22 { width: 7px; height: 7px; bottom: 45%; left: 2%; animation: dot-float 5s ease-in-out infinite 1.7s; }
.dot-23 { width: 5px; height: 5px; bottom: 48%; left: 5%; animation: dot-float 4.5s ease-in-out infinite 0.6s; }
.dot-24 { width: 8px; height: 8px; bottom: 44%; left: 11%; animation: dot-float 5.5s ease-in-out infinite 1.2s; }
.dot-25 { width: 6px; height: 6px; bottom: 50%; left: 3%; animation: dot-float 4s ease-in-out infinite 0.8s; }

@keyframes dot-float {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-8px) scale(1.1);
    opacity: 0.8;
  }
}

/* Dot particles on right side too - smaller cluster */
.dot-particles-right {
  position: absolute;
  bottom: 10%;
  right: 0;
  width: 200px;
  height: 300px;
  overflow: hidden;
  pointer-events: none;
}

.dot-r1 { width: 6px; height: 6px; bottom: 10%; right: 3%; animation: dot-float 4.5s ease-in-out infinite; }
.dot-r2 { width: 8px; height: 8px; bottom: 15%; right: 6%; animation: dot-float 5s ease-in-out infinite 0.5s; }
.dot-r3 { width: 5px; height: 5px; bottom: 20%; right: 2%; animation: dot-float 4s ease-in-out infinite 1s; }
.dot-r4 { width: 7px; height: 7px; bottom: 25%; right: 8%; animation: dot-float 5.5s ease-in-out infinite 0.3s; }
.dot-r5 { width: 6px; height: 6px; bottom: 30%; right: 4%; animation: dot-float 4.5s ease-in-out infinite 0.8s; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   APPLE-STYLE FIXED HEADER
   Glass effect with docking behavior
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(251, 250, 248, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Header scrolled state - add subtle shadow */
.header.scrolled {
  background: rgba(251, 250, 248, 0.78);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Logo in header */
.header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  color: #1d1d1f;
}

.header .logo .logo-icon {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.header .logo:hover .logo-icon {
  transform: scale(1.05);
}

/* Navigation in header */
.header .nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

/* Header nav links - Apple style */
.header .nav-link {
  font-size: 13px;
  font-weight: 500;
  color: #1d1d1f;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s ease;
  padding: 8px 0;
}

.header .nav-link:hover,
.header .nav-link.active {
  opacity: 1;
}

/* CTA button in nav - warm gold gradient matching brand */
.header .nav-link-cta {
  padding: 8px 18px;
  background: linear-gradient(135deg, #f5b041 0%, #d4942b 100%);
  color: #1d1d1f !important;
  border-radius: 980px;
  opacity: 1 !important;
  box-shadow: 0 2px 8px rgba(245, 176, 65, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header .nav-link-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 176, 65, 0.3);
}

/* History icon button in header */
.header .history-icon-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #1d1d1f;
  opacity: 0.7;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.header .history-icon-btn.visible {
  display: flex;
}

.header .history-icon-btn:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.05);
}

.header .history-icon-btn svg {
  width: 18px;
  height: 18px;
}

/* Mobile Hero Navigation (shown under URL input on small screens) */
.hero-mobile-nav {
  display: none;
  width: 100%;
  margin-top: 14px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.hero-mobile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.hero-mobile-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.hero-mobile-link:active {
  transform: translateY(1px);
}

.book-demo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  min-height: 44px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-family);
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, #e8927d 0%, #d4735e 100%);
  border: 1px solid rgba(232, 146, 125, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 10px 22px rgba(232, 146, 125, 0.22),
    0 6px 12px rgba(212, 115, 94, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.40);
  text-shadow: none;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.book-demo-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 26px rgba(31, 38, 135, 0.22),
    0 8px 14px rgba(31, 38, 135, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  border-color: var(--glass-border-highlight);
}

.book-demo-btn:active {
  transform: translateY(2px);
  border-bottom-width: 1px;
  box-shadow:
    0 6px 14px rgba(31, 38, 135, 0.18),
    0 2px 6px rgba(31, 38, 135, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.book-demo-btn:focus-visible {
  outline: 3px solid rgba(232, 146, 125, 0.45);
  outline-offset: 2px;
}

.book-demo-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 14px 14px 0 0;
  pointer-events: none;
}

.hero-mobile-nav .hero-mobile-link:first-child {
  justify-self: start;
}

.hero-mobile-nav .book-demo-btn {
  justify-self: center;
}

.hero-mobile-nav .hero-mobile-link:last-child {
  justify-self: end;
}

/* History Icon Button (Top Right) - Hidden by default, shown via ?history=1 */
.history-icon-btn {
  width: 38px;
  height: 38px;
  display: none; /* Hidden by default, JS enables when ?history=1 */
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 4px 12px rgba(31, 38, 135, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  margin-left: 4px;
}

.history-icon-btn.visible {
  display: flex;
}

.history-icon-btn svg {
  width: 20px;
  height: 20px;
}

.history-icon-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 100%);
  border-color: rgba(232, 146, 125, 0.4);
  color: var(--primary);
  transform: scale(1.05);
  box-shadow:
    0 6px 16px rgba(31, 38, 135, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Top Logo Text (scrolls with page) */
.top-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 88px; /* Space for the fixed logo icon */
}

.top-logo:hover .logo-svg {
  filter: drop-shadow(0 0 12px rgba(192, 192, 200, 0.5));
  transform: rotate(15deg);
}

.logo-link {
  display: inline-flex;
  text-decoration: none;
  color: inherit;
}

.logo-icon-link {
  line-height: 0;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  padding-top: 31px;
}

.logo-text {
  background: #0a2940;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.44rem;
  font-weight: 200;
  letter-spacing: -0.02em;
}

.logo-subtext {
  font-size: 0.6rem;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Hero Section - Centered Layout */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 24px;
  position: relative;
}

.hero-background {
  display: none;
}

.hero-robot-image {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 400;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  color: #1a2b3c;
  line-height: 1.15;
  margin-top: -48px;
}

/* PageRank-style italic emphasis for hero */
.hero h1 .emphasis {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #3d4f5f;
  margin-bottom: 46px;
  font-weight: 400;
  letter-spacing: 0.01em;
  min-height: 1.6em;
}

/* Demo Page */
.demo-hero {
  padding: 160px 0 90px;
}

.demo-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: start;
}

.demo-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.demo-hero-copy h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-primary);
}

.demo-kicker {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

.demo-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.demo-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-note {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.demo-form-card.glass-card {
  padding: 28px;
  margin-top: 50px;
}

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 1s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.7s ease, max-height 1s ease, margin 1s ease;
  max-height: 1200px;
  transform-origin: center;
}

.demo-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-field label,
.demo-field legend {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.demo-input,
.demo-textarea {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.demo-input:focus,
.demo-textarea:focus {
  outline: none;
  border-color: rgba(74, 144, 194, 0.6);
  box-shadow: 0 0 0 3px rgba(74, 144, 194, 0.18);
}

.demo-textarea {
  resize: vertical;
  min-height: 84px;
}

.demo-field-radio {
  border: none;
  padding: 0;
  margin: 0;
}

.demo-radio-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.demo-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.demo-radio input {
  accent-color: var(--primary);
}

.demo-radio:hover {
  border-color: rgba(74, 144, 194, 0.4);
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
}

.demo-radio-text {
  gap: 12px;
}

.demo-input-inline {
  flex: 1;
  width: 100%;
}

.demo-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-family);
  color: var(--liquid-text);
  background: linear-gradient(
    145deg,
    var(--glass-bg) 0%,
    var(--glass-bg-strong) 100%
  );
  border: 1px solid var(--glass-border);
  box-shadow:
    0 10px 18px rgba(31, 38, 135, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.demo-submit:hover {
  transform: translateY(-1px);
  border-color: var(--glass-border-highlight);
  box-shadow:
    0 14px 24px rgba(31, 38, 135, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.demo-submit:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

.demo-form-status {
  min-height: 1.2em;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.demo-form-status[data-status="success"] {
  color: #2f7a5f;
}

.demo-form-status[data-status="error"] {
  color: #a64545;
}

.demo-success-tile {
  display: none;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
  padding: 18px;
  border-radius: 18px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 16px 28px rgba(31, 38, 135, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: var(--text-primary);
  opacity: 0;
  transform: scale(0.6);
  transform-origin: center;
  transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.demo-success-tile p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.demo-success-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--glass-border-highlight);
  color: var(--primary-dark);
  flex-shrink: 0;
}

.demo-success-icon svg {
  width: 24px;
  height: 24px;
}

.heart-2d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  color: #d94848;
  font-size: 1.1rem;
  line-height: 1;
  transform-origin: center;
  animation: heartBeat 1.2s ease-in-out infinite;
  text-shadow: 0 6px 14px rgba(217, 72, 72, 0.35);
}

@keyframes heartBeat {
  0%, 100% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.12);
  }
  55% {
    transform: scale(0.98);
  }
  70% {
    transform: scale(1.08);
  }
}

.demo-form.is-success {
  opacity: 0;
  transform: scale(0.65);
  max-height: 0;
  margin: 0;
  pointer-events: none;
}

.demo-success-tile.is-visible {
  display: flex;
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 900px) {
  .demo-hero {
    padding: 140px 0 70px;
  }

  .demo-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .demo-hero {
    padding: 20px 0 60px;
  }

  .demo-hero-copy h1 {
    font-size: 2.4rem;
  }

  .demo-radio-group {
    grid-template-columns: 1fr;
  }
}

/* Rotating Text Animation */
.rotating-text {
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.rotating-text.fade-out {
  opacity: 0;
  transform: translateY(-10px);
}

.rotating-text.fade-in {
  opacity: 0;
  transform: translateY(10px);
}

/* Final state - color sweep from left to right */
.rotating-text.final {
  font-weight: 500;
  background: linear-gradient(
    90deg,
    var(--primary) 0%,
    #c2410c 50%,
    var(--text-secondary) 50%,
    var(--text-secondary) 100%
  );
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: colorSweep 1.5s ease-out forwards;
}

@keyframes colorSweep {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0% 0;
  }
}

/* Analyze Form - Centered */
.analyze-form {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

/* Copilot-style Input Container */
.input-group-wrapper {
  position: relative;
}

/* Google to OpenAI Halo Effect */
.input-group-wrapper::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 24px;
  background:
    conic-gradient(
      from 180deg at 0% 50%,
      /* Google colors - left side */
      #4285F4 0deg,      /* Google Blue */
      #EA4335 60deg,     /* Google Red */
      #FBBC05 120deg,    /* Google Yellow */
      #34A853 180deg,    /* Google Green */
      /* Transition to OpenAI - right side */
      #10a37f 220deg,    /* OpenAI Teal */
      #1a7f64 260deg,    /* OpenAI Dark Teal */
      #10a37f 300deg,    /* OpenAI Teal */
      #4285F4 360deg     /* Back to Google Blue */
    );
  opacity: 0.7;
  filter: blur(12px);
  z-index: -1;
  animation: haloRotate 8s linear infinite, haloPulse 3s ease-in-out infinite;
}

/* Evaporating particles layer */
.input-group-wrapper::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 0% 50%, rgba(66, 133, 244, 0.4) 0%, transparent 30%),
    radial-gradient(circle at 20% 30%, rgba(234, 67, 53, 0.3) 0%, transparent 20%),
    radial-gradient(circle at 15% 70%, rgba(251, 188, 5, 0.3) 0%, transparent 20%),
    radial-gradient(circle at 30% 50%, rgba(52, 168, 83, 0.3) 0%, transparent 25%),
    radial-gradient(circle at 100% 50%, rgba(16, 163, 127, 0.5) 0%, transparent 35%),
    radial-gradient(circle at 85% 30%, rgba(16, 163, 127, 0.3) 0%, transparent 25%),
    radial-gradient(circle at 90% 70%, rgba(26, 127, 100, 0.3) 0%, transparent 25%);
  opacity: 0.6;
  filter: blur(8px);
  z-index: -2;
  animation: evaporate 4s ease-in-out infinite;
}

@keyframes haloRotate {
  0% {
    filter: blur(12px) hue-rotate(0deg);
  }
  100% {
    filter: blur(12px) hue-rotate(360deg);
  }
}

@keyframes haloPulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.02);
  }
}

@keyframes evaporate {
  0%, 100% {
    opacity: 0.4;
    transform: translateX(0) scale(1);
  }
  25% {
    opacity: 0.6;
    transform: translateX(2px) scale(1.01);
  }
  50% {
    opacity: 0.5;
    transform: translateX(4px) scale(1.02);
  }
  75% {
    opacity: 0.6;
    transform: translateX(2px) scale(1.01);
  }
}

/* Copilot-style input box */
.input-group {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: 20px;
  border: 3px solid rgba(45, 42, 38, 0.1);
  transition: all 0.2s ease;
  box-shadow:
    0 2px 8px rgba(45, 42, 38, 0.04),
    0 1px 3px rgba(45, 42, 38, 0.06);
}

.input-group:hover {
  border-color: rgba(45, 42, 38, 0.15);
  box-shadow:
    0 4px 12px rgba(45, 42, 38, 0.06),
    0 2px 4px rgba(45, 42, 38, 0.08);
}

.input-group:focus-within {
  border-color: rgba(201, 169, 110, 0.4);
  box-shadow:
    0 4px 16px rgba(45, 42, 38, 0.08),
    0 0 0 3px rgba(201, 169, 110, 0.06);
}

/* Text input area */
.url-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 20px 24px 16px 24px;
  font-size: 1rem;
  color: var(--text-primary);
  outline: none;
  font-family: var(--font-family);
  font-weight: 400;
  min-height: 56px;
}

.url-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

/* Bottom toolbar */
.input-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 12px 12px;
  position: relative;
  z-index: 10;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 4px;
}

.toolbar-right {
  display: flex;
  align-items: center;
}

/* Toolbar buttons */
.toolbar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(45, 42, 38, 0.12);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-secondary);
}

.toolbar-btn:hover {
  background: var(--bg-secondary);
  border-color: rgba(45, 42, 38, 0.18);
  color: var(--text-primary);
}

.toolbar-btn:active {
  transform: scale(0.95);
}

.toolbar-btn svg {
  width: 16px;
  height: 16px;
}

/* Mic button - circular */
.mic-btn {
  width: 36px;
  height: 36px;
}

/* Mode dropdown container */
.mode-dropdown {
  position: relative;
  z-index: 100;
}

/* Mode selector button - pill shape */
.mode-btn {
  border-radius: 18px;
  padding: 8px 12px;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-family);
}

.mode-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.mode-dropdown.open .mode-btn svg {
  transform: rotate(180deg);
}

/* Dropdown menu */
.mode-dropdown-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 100;
}

.mode-dropdown.open .mode-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown options */
.mode-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-family);
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.15s ease;
  text-align: left;
}

.mode-option:hover {
  background: var(--bg-secondary);
}

.mode-option-check {
  width: 16px;
  font-size: 0.8rem;
  color: var(--gold);
}

/* Magic AI Icon - Gemini style */
.magic-ai-icon {
  width: 18px;
  height: 18px;
  margin-left: auto;
  filter: drop-shadow(0 0 3px rgba(155, 114, 203, 0.5));
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 3px rgba(155, 114, 203, 0.5));
  }
  50% {
    transform: scale(1.1) rotate(15deg);
    filter: drop-shadow(0 0 6px rgba(217, 101, 112, 0.8));
  }
}

/* Pink & Orange dust particles container */
.golden-dust-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 200;
}

.golden-dust {
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, #ffb6c1 0%, #ff69b4 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: dustFly 0.8s ease-out forwards;
}

.golden-dust:nth-child(odd) {
  background: radial-gradient(circle, #ffcc80 0%, #f59e0b 50%, transparent 70%);
}

@keyframes dustFly {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(0);
  }
}

/* Star-shaped dust particles */
.golden-dust.star {
  width: 8px;
  height: 8px;
  background: none;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  background: linear-gradient(135deg, #ff69b4, #f59e0b);
  animation: starDustFly 1s ease-out forwards;
}

@keyframes starDustFly {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(0) rotate(180deg);
  }
}

/* Custom Validation Tooltip */
.custom-validation-tooltip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #fff 0%, #fef3f3 100%);
  border: 1px solid rgba(255, 182, 193, 0.4);
  border-radius: 20px;
  padding: 12px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(255, 105, 180, 0.1);
  font-family: 'Sora', sans-serif;
  font-size: 0.9rem;
  color: var(--text-primary);
  z-index: 1000;
  animation: tooltipPop 0.3s ease-out;
  white-space: nowrap;
}

.custom-validation-tooltip::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid rgba(255, 182, 193, 0.4);
}

.custom-validation-tooltip::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #fff;
}

.tooltip-emoji {
  font-size: 1.4rem;
}

.tooltip-message {
  font-weight: 400;
  letter-spacing: 0.01em;
}

@keyframes tooltipPop {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

/* Uncover button - Liquid Glass Style */
.uncover-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-family);
  background: linear-gradient(135deg, #ffce60 0%, #542017 100%);
  color: white;
  border: 1px solid rgba(232, 146, 125, 0.5);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 8px 24px rgba(232, 146, 125, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.uncover-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
  border-radius: 14px 14px 0 0;
  pointer-events: none;
}

.uncover-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.uncover-btn:hover {
  background: linear-gradient(135deg, #f0a090 0%, #e8856e 100%);
  transform: translateY(-2px);
  box-shadow:
    0 12px 32px rgba(232, 146, 125, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.uncover-btn:hover svg {
  transform: translateX(3px);
}

.uncover-btn:active {
  transform: translateY(0);
  box-shadow:
    0 4px 16px rgba(232, 146, 125, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

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

.uncover-btn:disabled:hover {
  background: linear-gradient(135deg, #e8927d 0%, #d4735e 100%);
  transform: none;
  box-shadow:
    0 8px 24px rgba(232, 146, 125, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.uncover-btn:disabled:hover svg {
  transform: none;
}

/* Loader */
.btn-loader {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(90, 86, 80, 0.3);
  border-top-color: var(--text-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* How It Works - Interactive Comic Panel */
body.has-results .how-it-works-section {
  display: none;
}

.how-it-works-section {
  padding: 40px 0;
  background: linear-gradient(180deg, #f2c8ad 0%, #f5d0bb 40%, #f8e0d0 70%, #faf0ea 100%);
  position: relative;
  overflow: hidden;
}

/* Liquid Glass Background Effect for How It Works */
.how-it-works-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(16, 185, 129, 0.05) 0%, transparent 40%);
  animation: liquidFlow 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes liquidFlow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(2%, -2%) rotate(1deg); }
  50% { transform: translate(-1%, 2%) rotate(-1deg); }
  75% { transform: translate(-2%, -1%) rotate(0.5deg); }
}

.comic-main-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.comic-panel-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Navigation Dots - Liquid Glass Style */
.comic-nav-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 8px 32px rgba(31, 38, 135, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.comic-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.7;
  padding: 4px;
}

.comic-dot:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.comic-dot.active {
  opacity: 1;
  transform: scale(1.05);
}

.dot-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-family);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--text-secondary);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.dot-number::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
  border-radius: 50% 50% 0 0;
  pointer-events: none;
}

.comic-dot:hover .dot-number {
  background: rgba(255, 255, 255, 0.7);
  box-shadow:
    0 6px 20px rgba(59, 130, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: scale(1.05);
}

.comic-dot.active .dot-number {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(99, 102, 241, 0.9) 100%);
  color: white;
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow:
    0 6px 24px rgba(59, 130, 246, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 0 3px rgba(59, 130, 246, 0.15);
}

.dot-label {
  font-size: 0.7rem;
  font-weight: 500;
  font-family: var(--font-family);
  color: var(--text-muted);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.comic-dot:hover .dot-label {
  color: var(--text-secondary);
}

.comic-dot.active .dot-label {
  color: #3b82f6;
  font-weight: 600;
}

/* Panel Wrapper */
.comic-panel-wrapper {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Navigation Buttons */
.comic-nav-btn {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
  box-shadow:
    0 4px 16px rgba(31, 38, 135, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.comic-nav-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.15) 100%);
  transform: translateX(-4px);
  box-shadow:
    0 8px 24px rgba(31, 38, 135, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.comic-next-btn:hover {
  transform: translateX(4px);
}

.comic-nav-btn svg {
  width: 32px;
  height: 32px;
  color: var(--text-secondary);
}

.nav-btn-text {
  text-align: center;
}

.nav-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.nav-step-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Main Panel */
.comic-main-panel {
  flex: 1;
  min-height: auto;
  position: relative;
  overflow: visible;
  padding: 0;
}

/* Comic Steps */
.comic-step {
  display: none;
  padding: 24px;
  flex-direction: column;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.comic-step.active {
  display: flex;
  opacity: 1;
  transform: scale(1);
}

.step-header {
  text-align: center;
  margin-bottom: 16px;
}

.step-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.step-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.4;
}

.step-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 8px;
}

/* Chat Window Styles */
.chat-window {
  width: 100%;
  max-width: 520px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  overflow: visible;
  backdrop-filter: blur(20px);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(248, 250, 252, 0.8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px 20px 0 0;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.chatgpt-icon {
  width: 16px;
  height: 16px;
  color: white;
}

.chatgpt-icon-small {
  width: 12px;
  height: 12px;
  color: white;
}

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

.chat-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.85rem;
}

.chat-status {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.chat-messages {
  padding: 10px 14px 60px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 380px;
  background: rgba(255, 255, 255, 0.6);
  overflow: visible;
  border-radius: 0 0 20px 20px;
  position: relative;
}

.chat-message {
  max-width: 85%;
  animation: fadeInUp 0.3s ease forwards;
}

.chat-message.hidden {
  display: none;
}

.missing-alert.hidden, .success-alert.hidden {
  display: none;
}

.user-message {
  align-self: flex-end;
  background: #3b82f6;
  color: white;
  padding: 10px 16px;
  border-radius: 16px 16px 4px 16px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.user-message p {
  margin: 0;
  font-weight: 500;
  font-size: 0.85rem;
}

.ai-message {
  align-self: flex-start;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 12px 16px;
  border-radius: 16px 16px 16px 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ai-msg-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

.ai-msg-header svg {
  width: 16px;
  height: 16px;
  padding: 2px;
  background: #000;
  border-radius: 50%;
}

.ai-response p {
  margin: 0 0 8px 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Typing Dots */
.typing-dots {
  display: flex;
  gap: 5px;
  padding: 2px;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  background: #94a3b8;
  border-radius: 50%;
  animation: typingBounce 1s infinite;
}

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

@keyframes typingBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* Search Results */
.search-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.search-result:hover {
  background: rgba(248, 250, 252, 0.8);
  border-color: rgba(0, 0, 0, 0.05);
}

.search-result.highlighted {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.1);
}

.result-icon {
  width: 28px;
  height: 28px;
  background: #f1f5f9;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.search-result.highlighted .result-icon {
  background: rgba(59, 130, 246, 0.15);
}

.result-icon svg {
  width: 14px;
  height: 14px;
  color: #64748b;
}

.search-result.highlighted .result-icon svg {
  color: #3b82f6;
}

.result-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.result-name {
  font-weight: 600;
  color: #3b82f6;
  font-size: 0.8rem;
  cursor: pointer;
}

.result-name:hover {
  text-decoration: underline;
}

.search-result.highlighted .result-name {
  color: #2563eb;
}

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

.search-result.highlighted .result-desc {
  color: rgba(59, 130, 246, 0.8);
}

/* Alert Boxes */
.missing-alert, .success-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  position: absolute;
  bottom: 10px;
  left: 14px;
  right: 14px;
  animation: fadeInUp 0.4s ease forwards, pulseAlert 2s infinite 0.4s;
}

.missing-alert {
  background: rgba(254, 226, 226, 0.98);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.success-alert {
  background: rgba(209, 250, 229, 0.98);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.alert-icon {
  width: 32px;
  height: 32px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.alert-icon svg {
  width: 18px;
  height: 18px;
}

.missing-alert .alert-icon svg {
  color: #ef4444;
}

.success-alert .alert-icon svg {
  color: #10b981;
}

.alert-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.alert-title {
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.missing-alert .alert-title {
  color: #b91c1c;
}

.success-alert .alert-title {
  color: #047857;
}

.success-alert .alert-title svg {
  width: 20px;
  height: 20px;
  color: #10b981;
}

.alert-desc {
  font-size: 0.75rem;
}

.missing-alert .alert-desc {
  color: rgba(185, 28, 28, 0.8);
}

.success-alert .alert-desc {
  color: rgba(4, 120, 87, 0.8);
}

@keyframes pulseAlert {
  0%, 100% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); }
  50% { box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15); }
}

/* Step 2: Solution Preview */
.solution-preview {
  position: relative;
  width: 100%;
  max-width: 800px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  border: 4px solid rgba(255, 255, 255, 0.5);
}

.dashboard-image {
  width: 100%;
  height: auto;
  display: block;
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  pointer-events: none;
}

/* Step 3: Integration */
.step3-combined-view {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  width: 100%;
  min-height: 320px;
  position: relative;
}

.step3-combined-view.side-by-side {
  justify-content: center;
}

.step3-combined-view.side-by-side .install-view {
  flex: 0 0 auto;
}

.step3-combined-view.side-by-side .data-flow-view {
  flex: 1;
  max-width: 500px;
}

.install-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.install-view.centered {
  flex: 1;
  justify-content: center;
}

.install-view.moved-left {
  flex: 0 0 auto;
}

.install-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 28px 32px;
  text-align: center;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  max-width: 380px;
  width: 100%;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.install-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
  pointer-events: none;
}

.install-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: white;
  border-radius: 50%;
  padding: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.install-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.install-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.install-desc {
  color: var(--text-muted);
  margin: 0 0 20px;
  font-size: 0.9rem;
}

.install-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(99, 102, 241, 0.9) 100%);
  color: white;
  border: 1px solid rgba(59, 130, 246, 0.5);
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 8px 24px rgba(59, 130, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.install-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
  border-radius: 16px 16px 0 0;
  pointer-events: none;
}

.install-btn:hover {
  background: linear-gradient(135deg, rgba(79, 150, 255, 0.95) 0%, rgba(119, 122, 255, 0.95) 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 12px 32px rgba(59, 130, 246, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

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

.install-btn svg {
  width: 24px;
  height: 24px;
}

.install-btn.hidden {
  display: none;
}

.install-progress {
  margin-top: 32px;
}

.progress-bar {
  height: 12px;
  background: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.progress-fill {
  height: 100%;
  background: #1e293b;
  border-radius: 6px;
  width: 0%;
  transition: width 2.5s ease-in-out;
}

.progress-fill.animating {
  width: 100%;
}

/* PagerankAI Logo Container (replaces install button) */
.pagerank-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 14px;
  animation: logoFadeIn 0.5s ease-out;
}

.pagerank-logo-container.hidden {
  display: none;
}

.pagerank-logo-img {
  width: 40px;
  height: 40px;
  animation: logoPulse 2s ease-in-out infinite;
}

.pagerank-logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #3b82f6 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes logoFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Install Card Animation */
.install-card.installing {
  animation: installPulse 1.5s ease-in-out;
}

@keyframes installPulse {
  0% {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  }
  50% {
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
  }
  100% {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  }
}

/* Data Flow appearing animation */
.data-flow-view.appearing {
  animation: dataFlowAppear 0.6s ease-out forwards;
}

@keyframes dataFlowAppear {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.website-preview {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  width: 240px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: perspective(1000px) rotateX(5deg);
}

.window-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.window-dots span:nth-child(1) { background: #f87171; }
.window-dots span:nth-child(2) { background: #fbbf24; }
.window-dots span:nth-child(3) { background: #34d399; }

.window-content {
  height: 120px;
  background: #f8fafc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border: 1px solid #e2e8f0;
}

/* Data Flow View */
.data-flow-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.data-flow-view.hidden {
  display: none;
}

.flow-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  padding: 16px;
}

.flow-node {
  flex: 1;
  max-width: 170px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 18px;
  text-align: center;
  backdrop-filter: blur(20px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
  position: relative;
  animation: nodeGlow 3s ease-in-out infinite;
}

.flow-node.website-node {
  --glow-color: rgba(59, 130, 246, 0.15);
}

.flow-node.server-node {
  --glow-color: rgba(168, 85, 247, 0.15);
}

@keyframes nodeGlow {
  0%, 100% { box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06), 0 0 20px var(--glow-color); }
  50% { box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08), 0 0 40px var(--glow-color); }
}

.node-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.server-node .node-icon {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.2);
}

.node-icon svg {
  width: 24px;
  height: 24px;
  color: #3b82f6;
}

.server-node .node-icon svg {
  color: #a855f7;
}

.node-title {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.node-status {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.node-status.processing {
  color: #a855f7;
}

.node-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  background: rgba(168, 85, 247, 0.1);
  color: #7c3aed;
  font-size: 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.rotating-sparkle {
  position: absolute;
  top: -8px;
  right: -8px;
  animation: rotateSparkle 4s linear infinite;
}

.rotating-sparkle svg {
  width: 24px;
  height: 24px;
  color: #fbbf24;
  filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.5));
}

@keyframes rotateSparkle {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Flow Connection */
.flow-connection {
  flex: 1.5;
  position: relative;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.connection-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
}

.connection-line::after {
  content: '';
  position: absolute;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
  animation: flowLine 2s linear infinite;
}

@keyframes flowLine {
  from { left: -50%; }
  to { left: 100%; }
}

.flow-particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  background: #3b82f6;
  border: 1px solid #2563eb;
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  opacity: 0;
}

.particle svg {
  width: 100%;
  height: 100%;
  color: white;
}

.particle.to-server {
  animation: particleToServer 2.5s ease-in-out infinite;
}

.particle.from-server {
  background: #fbbf24;
  border-color: #f59e0b;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
  animation: particleFromServer 2.5s ease-in-out infinite;
}

.particle.delay-1 { animation-delay: 0.8s; }
.particle.delay-2 { animation-delay: 1.6s; }

.particle.from-server.delay-1 { animation-delay: 1.25s; }
.particle.from-server.delay-2 { animation-delay: 2.05s; }

.particle .sparkle {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 12px;
  height: 12px;
  color: #fef3c7;
}

@keyframes particleToServer {
  0% { transform: translateX(-100px); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(100px); opacity: 0; }
}

@keyframes particleFromServer {
  0% { transform: translateX(100px) translateY(20px); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(-100px) translateY(20px); opacity: 0; }
}

.data-flow-view.paused .particle {
  animation-play-state: paused;
}

.data-flow-view.paused .connection-line::after {
  animation-play-state: paused;
}

.data-flow-view.paused .rotating-sparkle {
  animation-play-state: paused;
}

/* Flow Control Button - Liquid Glass */
.flow-control-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(248, 113, 113, 0.15) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #dc2626;
  border-radius: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 6px 24px rgba(239, 68, 68, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.flow-control-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
  border-radius: 16px 16px 0 0;
  pointer-events: none;
}

.flow-control-btn:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(248, 113, 113, 0.25) 100%);
  transform: translateY(-2px);
  box-shadow:
    0 10px 32px rgba(239, 68, 68, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.flow-control-btn.resumed {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(52, 211, 153, 0.15) 100%);
  border-color: rgba(16, 185, 129, 0.3);
  color: #059669;
  box-shadow:
    0 6px 24px rgba(16, 185, 129, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.flow-control-btn.resumed:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(52, 211, 153, 0.25) 100%);
  box-shadow:
    0 10px 32px rgba(16, 185, 129, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.flow-control-btn svg {
  width: 24px;
  height: 24px;
}

.flow-notice {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 12px;
  padding: 12px 24px;
  max-width: 360px;
}

.flow-notice p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: #92400e;
}

/* Step 4: Review & Deploy */
.step4-combined-view {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 320px;
  position: relative;
}

.review-view {
  position: relative;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-view.centered {
  justify-content: center;
}

.review-view.hidden {
  display: none;
}

.report-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  transition: all 0.6s ease;
  width: 100%;
}

.report-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.05) 0%, rgba(251, 191, 36, 0.05) 100%);
  pointer-events: none;
}

.report-card.rejecting {
  transform: translate(-200px, 400px) rotate(-45deg) scale(0.3);
  opacity: 0;
}

.report-card.approved {
  background: linear-gradient(135deg, rgba(209, 250, 229, 0.8), rgba(187, 247, 208, 0.9));
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 20px 60px rgba(16, 185, 129, 0.2);
}

.report-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
}

.report-icon {
  width: 40px;
  height: 40px;
  background: rgba(251, 146, 60, 0.1);
  border: 1px solid rgba(251, 146, 60, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.report-icon svg {
  width: 20px;
  height: 20px;
  color: #f97316;
}

.report-info h4 {
  margin: 0 0 2px;
  font-size: 1.05rem;
  color: var(--text-primary);
}

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

.report-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  position: relative;
}

.report-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.report-item:hover {
  background: rgba(255, 255, 255, 0.6);
}

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

.item-status {
  grid-row: 1;
  grid-column: 2;
  padding: 2px 10px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.item-desc {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.report-actions {
  display: flex;
  gap: 12px;
  position: relative;
}

.approve-btn, .reject-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.approve-btn::before, .reject-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
  border-radius: 14px 14px 0 0;
  pointer-events: none;
}

.approve-btn {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.85) 0%, rgba(52, 211, 153, 0.85) 100%);
  border-color: rgba(16, 185, 129, 0.4);
  color: white;
  box-shadow:
    0 8px 24px rgba(16, 185, 129, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.approve-btn:hover {
  background: linear-gradient(135deg, rgba(36, 205, 149, 0.95) 0%, rgba(72, 231, 173, 0.95) 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 12px 32px rgba(16, 185, 129, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.approve-btn svg {
  width: 20px;
  height: 20px;
}

.reject-btn {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(248, 113, 113, 0.15) 100%);
  border-color: rgba(239, 68, 68, 0.3);
  color: #dc2626;
  box-shadow:
    0 6px 20px rgba(239, 68, 68, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.reject-btn:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(248, 113, 113, 0.25) 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 10px 28px rgba(239, 68, 68, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.reject-btn svg {
  width: 20px;
  height: 20px;
}

.trash-bin {
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 80px;
  height: 80px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  animation: trashAppear 0.3s ease forwards;
}

.trash-bin svg {
  width: 40px;
  height: 40px;
  color: #94a3b8;
}

@keyframes trashAppear {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Live Status - Shown after Approve */
.live-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px;
  animation: fadeInUp 0.5s ease-out;
}

.live-status.hidden {
  display: none;
}

.rocket-animation {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rocket-icon-animated {
  width: 56px;
  height: 56px;
  color: #10b981;
  animation: rocketLaunch 2s ease-in-out infinite;
}

@keyframes rocketLaunch {
  0%, 100% {
    transform: translateY(0) rotate(-45deg);
  }
  25% {
    transform: translateY(-8px) rotate(-45deg);
  }
  50% {
    transform: translateY(-4px) rotate(-45deg);
  }
  75% {
    transform: translateY(-10px) rotate(-45deg);
  }
}

.rocket-particles {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
}

.rocket-particles span {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  border-radius: 50%;
  animation: particleBurst 0.6s ease-out infinite;
}

.rocket-particles span:nth-child(1) { animation-delay: 0s; }
.rocket-particles span:nth-child(2) { animation-delay: 0.2s; }
.rocket-particles span:nth-child(3) { animation-delay: 0.4s; }

@keyframes particleBurst {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(20px) scale(0.3);
  }
}

.live-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: #059669;
  text-align: center;
  animation: pulseText 2s ease-in-out infinite;
}

@keyframes pulseText {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

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

/* Trash Bin Container - For Reject Animation */
.trash-bin-container {
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.trash-bin-container.hidden {
  display: none;
}

.trash-bin-animation {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, rgba(254, 226, 226, 0.9), rgba(254, 202, 202, 0.9));
  border: 2px solid rgba(239, 68, 68, 0.3);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 15px 40px rgba(239, 68, 68, 0.2);
  animation: binAppear 0.4s ease-out forwards;
}

.trash-bin-icon {
  width: 48px;
  height: 48px;
  color: #dc2626;
  animation: binShake 0.5s ease-in-out 0.4s;
}

@keyframes binAppear {
  from {
    opacity: 0;
    transform: scale(0.5) translateY(50px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes binShake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  50% { transform: rotate(10deg); }
  75% { transform: rotate(-5deg); }
}

/* Report Actions Hidden State */
.report-actions.hidden {
  display: none;
}

/* Rejected View */
.rejected-view {
  width: 100%;
  max-width: 420px;
}

.rejected-view.hidden {
  display: none;
}

.rejected-card {
  text-align: center;
  padding: 32px 24px;
  background: linear-gradient(135deg, rgba(254, 226, 226, 0.8), rgba(254, 202, 202, 0.9));
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: 0 20px 60px rgba(239, 68, 68, 0.15);
  animation: fadeInUp 0.5s ease-out;
}

.rejected-icon-container {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rejectPulse 2s ease-in-out infinite;
}

.rejected-icon {
  width: 48px;
  height: 48px;
  color: #dc2626;
}

@keyframes rejectPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(239, 68, 68, 0);
  }
}

.rejected-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #b91c1c;
  margin: 0 0 8px;
}

.rejected-card p {
  color: #991b1b;
  margin: 0 0 16px;
  font-size: 0.95rem;
}

.regenerating {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 999px;
  color: #b91c1c;
  font-size: 0.85rem;
  font-weight: 500;
  animation: regeneratePulse 1.5s ease-in-out infinite;
}

@keyframes regeneratePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Success Cards */
.approved-view, .deployed-view, .rejected-view {
  width: 100%;
  max-width: 420px;
}

.success-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: 20px;
  backdrop-filter: blur(20px);
  border: 1px solid;
}

.success-card.approved {
  background: rgba(209, 250, 229, 0.8);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 20px 60px rgba(16, 185, 129, 0.15);
}

.success-card.deployed {
  background: rgba(219, 234, 254, 0.8);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.15);
}

.success-card.rejected {
  background: rgba(254, 226, 226, 0.8);
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: 0 20px 60px rgba(239, 68, 68, 0.15);
}

.success-card svg {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
}

.success-card.approved svg {
  color: #10b981;
}

.success-card.deployed .rocket-icon {
  color: #3b82f6;
  animation: rocketFloat 2s ease-in-out infinite;
}

.success-card.rejected svg {
  color: #ef4444;
}

@keyframes rocketFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.success-card h4 {
  font-size: 1.4rem;
  margin: 0 0 8px;
}

.success-card.approved h4 { color: #065f46; }
.success-card.deployed h4 { color: #1e3a8a; }
.success-card.rejected h4 { color: #991b1b; }

.success-card p {
  font-size: 0.95rem;
  margin: 0 0 16px;
}

.success-card.approved p { color: #047857; }
.success-card.deployed p { color: #1e40af; }
.success-card.rejected p { color: #b91c1c; }

.regenerating {
  display: block;
  font-size: 0.9rem;
  color: #ef4444;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.deploy-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(99, 102, 241, 0.9) 100%);
  color: white;
  border: 1px solid rgba(59, 130, 246, 0.5);
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 10px 22px rgba(31, 38, 135, 0.18),
    0 6px 12px rgba(31, 38, 135, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.deploy-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 14px 14px 0 0;
  pointer-events: none;
}

.deploy-btn:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 1) 0%, rgba(99, 102, 241, 1) 100%);
  transform: translateY(-2px);
  box-shadow:
    0 14px 26px rgba(31, 38, 135, 0.22),
    0 8px 14px rgba(31, 38, 135, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.deploy-btn svg {
  width: 24px;
  height: 24px;
}

/* Mobile Navigation */
.comic-mobile-nav {
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  margin-top: 24px;
}

.mobile-nav-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow:
    0 4px 16px rgba(31, 38, 135, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.mobile-nav-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.15) 100%);
  transform: scale(1.05);
  box-shadow:
    0 6px 20px rgba(31, 38, 135, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.mobile-nav-btn svg {
  width: 24px;
  height: 24px;
  color: var(--text-secondary);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (min-width: 768px) {
  .comic-nav-btn {
    display: flex;
  }

  .comic-mobile-nav {
    display: none;
  }

  .website-preview {
    display: block;
  }
}

@media (max-width: 767px) {
  .how-it-works-section {
    padding: 72px 0 56px;
  }

  .comic-main-title {
    font-size: 1.8rem;
    margin-bottom: 32px;
  }

  .comic-nav-dots {
    gap: 12px;
    flex-wrap: wrap;
  }

  .dot-number {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }

  .dot-label {
    font-size: 0.75rem;
  }

  .comic-main-panel {
    min-height: 550px;
  }

  .comic-step {
    padding: 24px 16px;
  }

  .step-title {
    font-size: 1.4rem;
  }

  .step-subtitle {
    font-size: 0.95rem;
  }

  .chat-messages {
    min-height: 280px;
    padding: 16px;
  }

  .user-message, .ai-message {
    max-width: 95%;
  }

  .flow-container {
    flex-direction: column;
    gap: 48px;
  }

  .flow-node {
    max-width: 280px;
  }

  .flow-connection {
    width: 100%;
    height: 60px;
    transform: rotate(90deg);
  }

  .step3-combined-view {
    flex-direction: column;
    gap: 24px;
  }

  .step3-combined-view.side-by-side {
    flex-direction: column;
  }

  .step3-combined-view.side-by-side .data-flow-view {
    max-width: 100%;
  }

  .install-view {
    gap: 32px;
  }

  .install-card {
    padding: 24px;
  }

  .pagerank-logo-container {
    padding: 12px 20px;
  }

  .pagerank-logo-img {
    width: 32px;
    height: 32px;
  }

  .pagerank-logo-text {
    font-size: 1rem;
  }
}

/* Results Section */
.results-section {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.print-report-header {
  display: none;
  margin-bottom: 22px;
}

.print-report-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.print-report-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.print-report-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.print-report-brand-text strong {
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  color: var(--text-primary);
}

.print-report-brand-text span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.print-report-banner {
  background: linear-gradient(112deg, #fef2bf 0%, #f7d068 48%, #edba46 100%);
  border: 1px solid rgba(118, 82, 6, 0.25);
  color: #2d1f06;
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 26px rgba(152, 109, 20, 0.14);
}

.report-toolbar {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 20px;
  padding: 12px 16px;
  border: 1px solid rgba(33, 42, 56, 0.12);
  border-radius: 14px;
  background: linear-gradient(134deg, rgba(255, 255, 255, 0.92), rgba(245, 247, 250, 0.72));
  box-shadow: 0 8px 24px rgba(22, 26, 35, 0.08);
  backdrop-filter: blur(10px);
}

.report-toolbar::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 6px;
  background: linear-gradient(180deg, #f5ca58 0%, #d79f2f 100%);
}

.report-toolbar-note {
  margin: 0;
  padding-left: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-secondary);
}

.print-report-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 11px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, #111a26 0%, #202f44 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(16, 31, 52, 0.3);
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.print-report-btn svg {
  width: 14px;
  height: 14px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.print-report-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(16, 31, 52, 0.36);
}

.report-error-state {
  display: none;
  margin: 0 0 24px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(120, 36, 16, 0.2);
  background:
    radial-gradient(560px 180px at -4% -30%, rgba(248, 210, 184, 0.6), transparent 72%),
    radial-gradient(440px 180px at 104% 120%, rgba(250, 234, 198, 0.48), transparent 72%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(252, 248, 241, 0.94));
  box-shadow: 0 14px 36px rgba(50, 22, 12, 0.12);
}

.report-error-state::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 6px;
  background: linear-gradient(180deg, #f5a44a 0%, #c4682d 100%);
}

.report-error-state-inner {
  position: relative;
  z-index: 1;
  padding: 20px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.report-error-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #955325;
}

.report-error-state h3 {
  margin: 0;
  font-size: clamp(1.08rem, 1.6vw, 1.34rem);
  line-height: 1.2;
  color: #1d2633;
}

.report-error-state p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #4d5b70;
  max-width: 78ch;
}

.report-error-btn {
  margin-top: 4px;
  align-self: flex-start;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  min-height: 40px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(120deg, #182535 0%, #2f445f 100%);
  box-shadow: 0 10px 20px rgba(23, 41, 64, 0.26);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.report-error-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(23, 41, 64, 0.32);
}

.report-error-btn:focus-visible {
  outline: 2px solid #2f445f;
  outline-offset: 2px;
}

.report-error-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.results-section.report-render-error .report-toolbar,
.results-section.report-render-error .page-preview-section,
.results-section.report-render-error .gated-report-shell {
  display: none !important;
}

.results-section.report-render-error .report-error-state {
  display: block;
}

.gated-report-shell {
  position: relative;
  isolation: isolate;
}

.gated-report-shell .tabs,
.gated-report-shell .tab-content {
  transition: filter 0.32s ease, transform 0.32s ease, opacity 0.32s ease;
}

.report-paywall-mask {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3.6vw, 34px);
  border-radius: 18px;
  background:
    radial-gradient(820px 340px at 16% -8%, rgba(244, 204, 93, 0.24), transparent 74%),
    radial-gradient(780px 280px at 106% 108%, rgba(20, 33, 57, 0.16), transparent 72%),
    linear-gradient(
      180deg,
      rgba(253, 252, 248, 0.4) 0%,
      rgba(250, 249, 246, 0.52) 16%,
      rgba(246, 245, 241, 0.72) 38%,
      rgba(238, 236, 229, 0.9) 100%
    );
  border: 1px solid rgba(30, 39, 51, 0.08);
  backdrop-filter: blur(2px);
  animation: reportPaywallFadeIn 0.34s ease;
}

.report-paywall-mask::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.32;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 2%, transparent 2%, transparent 50%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0.7) 52%, transparent 52%, transparent);
  background-size: 22px 22px;
}

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

@media (prefers-reduced-motion: reduce) {
  .report-paywall-mask {
    animation: none;
  }

  .print-report-btn,
  .report-unlock-row button,
  .report-otp-row button,
  .report-link-btn,
  .gated-report-shell .tabs,
  .gated-report-shell .tab-content {
    transition: none;
  }
}

.report-paywall-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: clamp(28px, 5vw, 48px) clamp(24px, 4vw, 40px);
  border: none;
  border-radius: 28px;
  background: #fafaf9;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.report-paywall-headline h3 {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  line-height: 1.15;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.report-paywall-kicker {
  display: none;
}

.report-paywall-copy {
  margin: 6px 0 0;
  color: #888;
  font-size: 0.85rem;
  line-height: 1.4;
  font-weight: 400;
}

.report-unlock-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  width: 100%;
}

.report-otp-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  width: 100%;
}

.report-unlock-form[hidden],
.report-otp-form[hidden] {
  display: none;
}

.report-unlock-form label,
.report-otp-form label {
  display: none;
}

.report-otp-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.report-unlock-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
  width: 100%;
}

.report-otp-row {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
  width: 100%;
}

.report-unlock-row input {
  flex: 1;
  min-width: 0;
  border: none;
  border-radius: 999px;
  padding: 18px 24px;
  font-size: 1.05rem;
  font-weight: 400;
  color: #1a1a1a;
  background: #eeeeec;
  box-shadow: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.report-unlock-row input::placeholder {
  color: #999;
  font-weight: 400;
}

.report-unlock-row input:focus {
  outline: none;
  background: #e8e8e5;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.report-unlock-row input.error {
  box-shadow: 0 0 0 2px rgba(185, 31, 31, 0.4);
  background: #fdf2f2;
}

.report-otp-code-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  cursor: text;
}

.report-otp-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.report-otp-slot {
  aspect-ratio: 1;
  min-height: 0;
  width: 100%;
  max-width: 68px;
  margin-inline: auto;
  border-radius: 14px;
  border: 1.5px solid #e0dfdc;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  position: relative;
}

.report-otp-slot.filled {
  background: #fff;
  border-color: #ccc;
}

.report-otp-slot.active {
  border-color: #1a1a1a;
}

.report-otp-slot.active::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 50%;
  background: #1a1a1a;
  border-radius: 1px;
  animation: otpCursorBlink 1s step-end infinite;
}

@keyframes otpCursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.report-otp-slot.filled.active::after {
  display: none;
}

.report-otp-code-wrap:focus-within .report-otp-slot {
  background: #fff;
}

.report-otp-code-wrap.error .report-otp-slot {
  border-color: rgba(185, 31, 31, 0.5);
  background: #fdf8f8;
}

.report-otp-hidden-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  outline: none;
  opacity: 0;
}

.report-unlock-row button,
.report-otp-row button {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 0 24px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  background: #1a1a1a;
  min-height: 56px;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.report-unlock-row button:hover,
.report-otp-row button:hover {
  background: #333;
  transform: none;
  box-shadow: none;
}

.report-unlock-row button:active,
.report-otp-row button:active {
  transform: scale(0.98);
}

.report-unlock-row button:disabled,
.report-otp-row button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

#verifyOtpBtn {
  background: linear-gradient(180deg, #2f3137 0%, #11141a 52%, #020202 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 24px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

#verifyOtpBtn:hover {
  background: linear-gradient(180deg, #3a3c42 0%, #1a1d24 52%, #0a0a0a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 14px 28px rgba(0, 0, 0, 0.32);
}

.report-otp-sent {
  margin: 0;
  color: #999;
  font-size: 0.88rem;
  text-align: center;
  font-weight: 400;
}

.report-otp-actions {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.report-otp-meta {
  margin: 0;
  font-size: 0.82rem;
  color: #999;
}

.report-link-btn {
  border: none;
  padding: 0;
  background: transparent;
  color: #888;
  font-size: 0.79rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
}

.report-link-btn:hover {
  color: #555;
}

.report-link-btn:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.report-link-btn-secondary {
  font-size: 0.76rem;
}

.report-otp-separator {
  color: #ccc;
  margin: 0 2px;
  user-select: none;
}

.report-unlock-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #aaa;
  font-size: 0.75rem;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  width: 100%;
}

.report-unlock-divider::before,
.report-unlock-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0e0de;
}

.google-unlock-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  width: 100%;
}

.google-unlock-label {
  display: none;
}

.google-unlock-btn-slot {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.google-unlock-btn-slot.is-loading {
  opacity: 0.62;
  pointer-events: none;
}

.google-unlock-fallback {
  margin: 0;
  color: #aaa;
  font-size: 0.73rem;
  max-width: 360px;
}

.report-unlock-note {
  margin: 0;
  font-size: 0.73rem;
  color: #aaa;
  text-align: center;
}

.report-unlock-note.error {
  color: #b91c1c;
}

.report-unlock-note.success {
  color: #166534;
}

.gated-report-shell.locked .tabs {
  pointer-events: none;
  user-select: none;
  filter: none;
  transform: none;
  opacity: 1;
}

.gated-report-shell.locked .tab-content {
  pointer-events: none;
  user-select: none;
  filter: blur(6px) saturate(0.8) brightness(0.94);
  transform: scale(0.997);
  opacity: 0.98;
}

.gated-report-shell:not(.locked) .report-paywall-mask {
  display: none;
}

.preview-gate-fade {
  display: none;
}

#results.report-locked .page-preview-section .preview-stage {
  max-height: 320px;
  overflow: hidden;
  border-radius: 14px;
}

#results.report-locked .score-cards {
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
}

.report-paywall-card[data-step="otp"] .report-unlock-divider,
.report-paywall-card[data-step="otp"] .google-unlock-panel,
.report-paywall-card[data-step="otp"] .report-unlock-note {
  display: none;
}

#results.report-locked .preview-gate-fade {
  display: block;
  margin-top: -118px;
  height: 118px;
  pointer-events: none;
  position: relative;
  z-index: 5;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, rgba(243, 245, 248, 0) 0%, rgba(243, 245, 248, 0.7) 34%, rgba(246, 243, 232, 0.94) 100%);
}

.report-locked-placeholder {
  margin: 0;
  padding: 14px 16px;
  border: 1px dashed rgba(33, 41, 54, 0.22);
  border-radius: 10px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #516077;
  background: rgba(255, 255, 255, 0.8);
}

/* Score Cards */
.score-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.score-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.score-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 169, 110, 0.2);
}

.score-card.overall {
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.08) 0%, var(--bg-card) 100%);
  border-color: rgba(201, 169, 110, 0.2);
}

.score-ring {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
}

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

.score-bg {
  fill: none;
  stroke: var(--bg-tertiary);
  stroke-width: 8;
}

.score-progress {
  fill: none;
  stroke: var(--gold);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 339.292;
  transition: stroke-dashoffset 1s ease-out;
}

.score-card.seo .score-progress {
  stroke: var(--info);
}

.score-card.geo .score-progress {
  stroke: var(--secondary);
}

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

.score-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1;
}

.score-grade {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.score-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.score-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.score-max {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

.score-band {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(127, 168, 127, 0.15);
  color: var(--secondary-dark);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 8px;
  background: var(--bg-card);
  padding: 8px;
  border-radius: var(--border-radius);
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-family);
}

.tab:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.tab.active {
  background: var(--gold);
  color: white;
  box-shadow: 0 2px 8px rgba(201, 169, 110, 0.3);
}

/* Tab Content */
.tab-content {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.tab-pane {
  display: none;
}

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

/* Issues */
.issues-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.issues-column h4 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.issue-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.8rem;
}

.issue-icon.seo-icon {
  background: rgba(122, 158, 184, 0.15);
  color: var(--info);
}

.issue-icon.geo-icon {
  background: rgba(127, 168, 127, 0.15);
  color: var(--secondary);
}

.issues-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.issue-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 8px;
  border-left: 3px solid transparent;
}

.issue-item.critical {
  border-left-color: var(--danger);
  background: rgba(201, 124, 107, 0.08);
}

.issue-item.warning {
  border-left-color: var(--warning);
  background: rgba(212, 160, 86, 0.08);
}

.issue-item.info {
  border-left-color: var(--info);
  background: rgba(122, 158, 184, 0.08);
}

.issue-badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  flex-shrink: 0;
}

.issue-badge.critical {
  background: var(--danger);
  color: white;
}

.issue-badge.warning {
  background: var(--warning);
  color: white;
}

.issue-badge.info {
  background: var(--info);
  color: white;
}

.issue-message {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.issue-category {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Checks Grid */
.checks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.check-card {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 20px;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.check-card:hover {
  border-color: rgba(201, 169, 110, 0.2);
  box-shadow: var(--shadow-sm);
}

.check-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.check-name {
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-primary);
}

.check-score {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.check-score.good {
  background: rgba(127, 168, 127, 0.15);
  color: var(--secondary-dark);
}

.check-score.warning {
  background: rgba(212, 160, 86, 0.15);
  color: var(--warning);
}

.check-score.poor {
  background: rgba(201, 124, 107, 0.15);
  color: var(--danger);
}

.check-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.status-icon {
  font-size: 1.1rem;
}

.status-icon.pass {
  color: var(--secondary);
}

.status-icon.fail {
  color: var(--danger);
}

/* Check Details */
.check-details {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  position: relative;
  cursor: default;
}

.check-detail-item.detail-pass {
  background: rgba(127, 168, 127, 0.1);
}

.check-detail-item.detail-fail {
  background: rgba(201, 124, 107, 0.1);
}

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

.detail-pass .detail-icon {
  color: var(--secondary);
}

.detail-fail .detail-icon {
  color: var(--danger);
}

.detail-name {
  flex: 1;
  color: var(--text-secondary);
}

.detail-value {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: right;
  max-width: 50%;
}

/* Tooltip for GEO examples */
.has-tooltip {
  cursor: help;
}

.tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-muted);
  color: var(--bg-primary);
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.has-tooltip:hover .tooltip-icon {
  opacity: 1;
}

.has-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  line-height: 1.5;
  white-space: pre-wrap;
  max-width: 350px;
  min-width: 250px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 100;
  pointer-events: none;
}

.has-tooltip::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--text-primary);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 101;
}

.has-tooltip:hover::after,
.has-tooltip:hover::before {
  opacity: 1;
  visibility: visible;
}

.detail-pass.has-tooltip::after {
  border-left: 3px solid var(--secondary);
}

.detail-fail.has-tooltip::after {
  border-left: 3px solid var(--danger);
}

/* Recommendations */
.recommendations-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.recommendation-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.rec-priority {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  height: fit-content;
}

.rec-priority.high {
  background: rgba(201, 124, 107, 0.15);
  color: var(--danger);
}

.rec-priority.medium {
  background: rgba(212, 160, 86, 0.15);
  color: var(--warning);
}

.rec-priority.low {
  background: rgba(127, 168, 127, 0.15);
  color: var(--secondary-dark);
}

.rec-content {
  flex: 1;
}

.rec-text {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.rec-category {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* History Section */
.history-section {
  padding: 60px 0;
}

.history-section h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 32px;
  color: var(--text-primary);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.history-item:hover {
  border-color: var(--gold);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.history-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.history-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.history-scores {
  display: flex;
  gap: 16px;
}

.history-score {
  text-align: center;
}

.history-score-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

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

.history-empty {
  text-align: center;
  padding: 60px;
  color: var(--text-muted);
}

/* Loading Overlay - Calming Water Ripple */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  overflow: hidden;
}

.loading-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
  filter: saturate(1.1) brightness(0.95);
}

.loading-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(58, 90, 124, 0.35) 0%,
    rgba(74, 106, 140, 0.25) 25%,
    rgba(106, 138, 168, 0.2) 50%,
    rgba(212, 196, 168, 0.15) 75%,
    rgba(232, 220, 196, 0.1) 100%
  );
  z-index: 1;
}

.loading-video-watermark {
  position: absolute;
  bottom: 20px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 4;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 20px;
}

.watermark-logo {
  width: 24px;
  height: 24px;
}

.watermark-text {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em;
}

.ripple-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.loading-content {
  position: relative;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  pointer-events: none;
}

/* Boat SVG Animation */
.ripple-boat {
  width: 120px;
  height: 60px;
  margin-bottom: 40px;
  animation: boatFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}

.boat-svg {
  width: 100%;
  height: 100%;
}

@keyframes boatFloat {
  0%, 100% {
    transform: translateY(0) rotate(-1deg);
  }
  25% {
    transform: translateY(-4px) rotate(0.5deg);
  }
  50% {
    transform: translateY(2px) rotate(1deg);
  }
  75% {
    transform: translateY(-2px) rotate(-0.5deg);
  }
}

/* Status Text */
.ripple-status {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.02em;
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  animation: statusFade 1.5s ease-in-out infinite;
}

@keyframes statusFade {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

/* Remove old spinner styles - no longer needed */
.loading-spinner {
  display: none;
}

.loading-content h3 {
  display: none;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 16px 24px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
  animation: slideIn 0.3s ease-out;
  box-shadow: var(--shadow-lg);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.error {
  background: var(--danger);
  color: white;
}

.toast-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.8;
}

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

/* ═══════════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════════ */

.site-footer {
  position: relative;
  padding: 48px 24px 32px;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.4) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

/* Social Links */
.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link:hover {
  color: var(--gold);
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Legal Links */
.footer-legal {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 16px;
  transition: all 0.2s ease;
}

.legal-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.6);
}

.legal-divider {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.5;
}

/* Copyright */
.footer-copyright {
  padding-top: 16px;
  border-top: 1px solid rgba(26, 58, 82, 0.08);
  width: 100%;
  text-align: center;
}

.footer-copyright p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   LEGAL PAGES (PRIVACY / TERMS)
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Legal pages - header is already fixed, just adjust background for lighter pages */
.legal-page .header {
  background: rgba(255, 255, 255, 0.85);
}

.legal-main {
  padding: 40px 0 80px;
}

.legal-hero {
  padding: 56px 0 24px;
}

.legal-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  margin: 0;
}

.legal-subtitle {
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.legal-content {
  padding: 12px 0 0;
}

.legal-card {
  max-width: 900px;
  margin: 0 auto;
}

.legal-card:hover {
  transform: none;
  box-shadow:
    var(--glass-shadow),
    inset 0 1px 0 var(--glass-border-highlight),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.legal-card h2 {
  margin: 24px 0 10px;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.legal-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 12px;
}

.legal-card ul {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-card li {
  margin: 8px 0;
}

.legal-inline-link {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Responsive */
@media (max-width: 768px) {
  /* Header responsive - mobile */
  .header {
    padding: 12px 20px;
  }

  .header .nav {
    gap: 16px;
  }

  .header .nav-link:not(.nav-link-cta) {
    display: none;
  }

  .header .nav-link-cta {
    padding: 6px 14px;
    font-size: 12px;
  }

  .header .logo {
    font-size: 16px;
    gap: 8px;
  }

  .header .logo .logo-icon {
    width: 32px;
    height: 32px;
  }

  .hero {
    min-height: auto;
    padding: 80px 16px 40px;
    justify-content: flex-start;
    padding-top: 100px;
  }

  .hero h1 {
    font-size: 2.75rem;
    margin-top: 0;
    margin-bottom: 12px;
  }

  .hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 28px;
  }

  .hero-content {
    max-width: 100%;
    padding: 0 8px;
  }

  .site-footer {
    padding: 32px 16px 24px;
  }

  .footer-social {
    gap: 12px;
  }

  .social-link {
    width: 36px;
    height: 36px;
  }

  .social-link svg {
    width: 16px;
    height: 16px;
  }

  .legal-link {
    font-size: 0.8rem;
    padding: 4px 8px;
  }
}

@media (max-width: 540px) {
  /* Header - extra small screens */
  .header {
    padding: 10px 16px;
  }

  .header .nav {
    gap: 12px;
  }

  .header .nav-link:not(.nav-link-cta) {
    display: none;
  }

  .header .nav-link-cta {
    display: none;
  }

  .header .history-icon-btn {
    display: none;
  }

  .hero-mobile-nav {
    display: grid;
  }

  .header .logo {
    font-size: 15px;
    gap: 6px;
  }

  .header .logo .logo-icon {
    width: 28px;
    height: 28px;
  }

  .hero {
    min-height: auto;
    padding: 70px 12px 30px;
    padding-top: 90px;
  }

  .hero h1 {
    font-size: 2.25rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }

  .legal-divider {
    display: none;
  }

  .footer-copyright p {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 10px 40px;
    padding-top: 80px;
    min-height: auto;
    margin-top: 300px;
  }

  .hero h1 {
    font-size: 1.85rem;
    line-height: 1.25;
    margin-bottom: 10px;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .hero-content {
    padding: 0 4px;
  }

  .input-group {
    border-radius: 16px;
  }

  .input-group-wrapper {
    width: 100%;
  }

  .url-input {
    font-size: 0.85rem;
    padding: 14px 16px 10px 16px;
    min-height: 44px;
  }

  .url-input::placeholder {
    font-size: 0.8rem;
    white-space: normal;
    text-overflow: ellipsis;
  }

  .input-toolbar {
    padding: 6px 10px 10px 10px;
  }

  .mic-btn {
    width: 32px;
    height: 32px;
  }

  .uncover-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
    border-radius: 10px;
  }

  .mode-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .toolbar-btn svg {
    width: 14px;
    height: 14px;
  }

  .hero-mobile-nav {
    margin-top: 12px;
    gap: 8px;
  }

  .hero-mobile-link {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .book-demo-btn {
    padding: 8px 16px;
    min-height: 40px;
    font-size: 0.85rem;
    border-radius: 12px;
  }

  .score-cards {
    grid-template-columns: 1fr;
  }

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

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

  .tabs {
    flex-wrap: wrap;
  }

  .tab {
    flex: 1 1 45%;
  }

  .history-item {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

/* Very small phones (360px and below) */
@media (max-width: 360px) {
  .hero {
    padding: 50px 8px 30px;
    padding-top: 70px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 16px;
  }

  .header {
    padding: 8px 12px;
  }

  .header .logo {
    font-size: 14px;
    gap: 4px;
  }

  .header .logo .logo-icon {
    width: 24px;
    height: 24px;
  }

  .hero-mobile-nav {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .hero-mobile-link {
    padding: 5px 8px;
    font-size: 0.75rem;
  }

  .book-demo-btn {
    padding: 6px 12px;
    min-height: 36px;
    font-size: 0.8rem;
  }
}

/* Elegant link styles */
a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold-dark);
}

/* Selection styles */
::selection {
  background: rgba(201, 169, 110, 0.2);
  color: var(--text-primary);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

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

/* ═══════════════════════════════════════════════════════════════════════════════
   GEO VISUALIZATIONS - WOW FACTOR COMPONENTS
   ═══════════════════════════════════════════════════════════════════════════════ */

/* AI Visibility Radar */
.ai-radar-container {
  background: transparent;
  border-radius: var(--border-radius-lg);
  padding: 12px 8px 8px;
  box-shadow: none;
}

.ai-radar-svg {
  display: block;
  margin: 0 auto;
}

.radar-polygon {
  animation: radarPulse 3s ease-in-out infinite alternate;
}

@keyframes radarPulse {
  from { opacity: 0.8; }
  to { opacity: 1; }
}

.radar-legend {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(138, 116, 172, 0.2);
  width: 100%;
  max-width: 480px;
}

.legend-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.legend-title {
  font-size: 0.95rem;
  color: var(--liquid-text-muted, var(--text-muted));
  font-weight: 500;
}

.legend-avg-score {
  font-size: 1.4rem;
  font-family: var(--font-family);
  font-weight: 700;
  color: var(--liquid-purple-1, #8a74ac);
}

.legend-items {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(138, 116, 172, 0.15);
  border-radius: var(--border-radius);
  font-size: 0.85rem;
  backdrop-filter: blur(8px);
}

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

.legend-icon-svg,
.legend-icon-img {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.legend-name {
  flex: 1;
  color: var(--liquid-text, var(--text-secondary));
  font-weight: 500;
}

.legend-score {
  font-weight: 700;
  font-family: var(--font-family);
  font-size: 1rem;
}

/* What AI Sees View */
.what-ai-sees {
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.ai-sees-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.ai-sees-header h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0;
}

.ai-sees-help {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 144, 194, 0.12);
  border: 1px solid rgba(74, 144, 194, 0.2);
  border-radius: 50%;
  font-size: 0.75rem;
  color: var(--primary-dark);
  cursor: help;
}

.ai-sees-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius);
  border: 1px solid rgba(74, 144, 194, 0.12);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  text-align: center;
}

.metric-value {
  font-size: 1.75rem;
  font-family: var(--font-family);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.metric-status {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  display: inline-block;
}

.metric-status.good {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}

.metric-status.fair {
  background: rgba(234, 179, 8, 0.15);
  color: #ca8a04;
}

.metric-status.poor {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}

/* Quotable Sentences */
.quotable-section {
  margin-bottom: 20px;
}

.quotable-section h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.section-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 12px 0;
}

.quotable-section.empty {
  text-align: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--border-radius);
  border: 1px dashed rgba(74, 144, 194, 0.2);
}

.quotable-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quotable-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: rgba(74, 144, 194, 0.08);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.quote-icon {
  font-size: 1.25rem;
  color: var(--primary);
  line-height: 1;
}

.quote-content {
  flex: 1;
}

.quote-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
  display: block;
  margin-bottom: 6px;
}

.quote-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quote-reason {
  font-size: 0.7rem;
  padding: 2px 8px;
  background: rgba(74, 144, 194, 0.15);
  color: var(--primary-dark);
  border-radius: 10px;
}

/* Quotable expand/collapse */
.quotable-hidden {
  display: none;
}

.quotable-hidden.quotable-visible {
  display: flex;
}

.quotable-expand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 12px auto 0;
  padding: 0;
  background: rgba(74, 144, 194, 0.1);
  border: 1px solid rgba(74, 144, 194, 0.25);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quotable-expand-btn:hover {
  background: rgba(74, 144, 194, 0.2);
  border-color: rgba(74, 144, 194, 0.4);
  transform: translateY(-1px);
}

.quotable-expand-btn svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.quotable-expand-btn.expanded svg {
  transform: rotate(180deg);
}

/* Uncitable Content */
.uncitable-section h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.uncitable-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.uncitable-tag {
  font-size: 0.8rem;
  padding: 4px 10px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  color: #b91c1c;
}

/* E-E-A-T Dashboard */
.eeat-dashboard {
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.eeat-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-primary);
  margin: 0 0 16px 0;
}

.eeat-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 768px) {
  .eeat-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

.eeat-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--border-radius);
  border: 1px solid rgba(74, 144, 194, 0.12);
  box-shadow: var(--shadow-sm);
  padding: 16px;
}

.eeat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.eeat-card-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.eeat-card-score {
  font-size: 1rem;
  font-family: var(--font-family);
  font-weight: 700;
}

.eeat-bar {
  height: 6px;
  background: rgba(74, 144, 194, 0.12);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}

.eeat-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s ease-out;
}

.eeat-signals {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.eeat-signal {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
}

.eeat-signal.pass {
  color: #16a34a;
}

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

.signal-icon {
  font-size: 0.8rem;
}

/* Freshness Timeline */
.freshness-timeline {
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.freshness-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text-primary);
  margin: 0 0 16px 0;
}

.timeline-container {
  position: relative;
  margin-bottom: 20px;
}

.timeline-track {
  display: flex;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(74, 144, 194, 0.12);
}

.timeline-zone {
  height: 100%;
}

.timeline-zone.fresh {
  background: linear-gradient(90deg, #22c55e, #84cc16);
}

.timeline-zone.recent {
  background: linear-gradient(90deg, #84cc16, #eab308);
}

.timeline-zone.stale {
  background: linear-gradient(90deg, #eab308, #ef4444);
}

.timeline-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.timeline-marker {
  position: absolute;
  top: -6px;
  transform: translateX(-50%);
}

.marker-dot {
  width: 24px;
  height: 24px;
  background: var(--bg-card);
  border: 3px solid var(--primary-dark);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.marker-label {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(74, 144, 194, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

.freshness-insight {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: var(--border-radius);
  margin-bottom: 12px;
  border: 1px solid rgba(74, 144, 194, 0.12);
}

.freshness-insight.fresh {
  background: rgba(34, 197, 94, 0.1);
  border-left: 3px solid #22c55e;
}

.freshness-insight.recent {
  background: rgba(234, 179, 8, 0.1);
  border-left: 3px solid #eab308;
}

.freshness-insight.aging,
.freshness-insight.stale,
.freshness-insight.unknown {
  background: rgba(239, 68, 68, 0.1);
  border-left: 3px solid #ef4444;
}

.insight-icon {
  font-size: 1.25rem;
}

.insight-content strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.insight-content p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
}

.freshness-tip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(74, 144, 194, 0.1);
  border-radius: var(--border-radius);
  border: 1px solid rgba(74, 144, 194, 0.18);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.tip-icon {
  font-size: 1.1rem;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   AI INSIGHTS TAB - LIQUID GLASS MOSAIC LAYOUT
   ═══════════════════════════════════════════════════════════════════════════════ */

.ai-insights-stage {
  position: relative;
  padding: 32px;
  border-radius: 36px;
  background: var(--liquid-gradient);
  backdrop-filter: var(--glass-blur-strong);
  -webkit-backdrop-filter: var(--glass-blur-strong);
  border: 1px solid var(--glass-border);
  box-shadow:
    var(--glass-shadow-strong),
    inset 0 1px 0 var(--glass-border-highlight),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
}

/* Third floating blob for more depth */
.ai-insights-stage .liquid-blob-3 {
  position: absolute;
  top: 40%;
  left: 50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--liquid-accent-3), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: url(#softGlow);
  animation: liquidFloat 18s ease-in-out infinite;
  animation-delay: -5s;
}

.ai-insights-stage::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--liquid-accent-1), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: url(#softGlow);
  animation: liquidFloat 20s ease-in-out infinite;
}

.ai-insights-stage::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--liquid-accent-2), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: url(#softGlow);
  animation: liquidFloat 25s ease-in-out infinite reverse;
}

.ai-insights-stage > * {
  position: relative;
  z-index: 1;
  animation: glassReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ai-insights-stage > *:nth-child(1) { animation-delay: 0.05s; }
.ai-insights-stage > *:nth-child(2) { animation-delay: 0.1s; }
.ai-insights-stage > *:nth-child(3) { animation-delay: 0.15s; }
.ai-insights-stage > *:nth-child(4) { animation-delay: 0.2s; }
.ai-insights-stage > *:nth-child(5) { animation-delay: 0.25s; }

/* Liquid Mosaic Grid - Asymmetric Bento Layout */
.insights-liquid-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 20px;
}

/* Glass Card Base - Authentic Liquid Glass Effect */
.glass-card {
  position: relative;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 28px;
  border: 1px solid var(--glass-border);
  box-shadow:
    var(--glass-shadow),
    inset 0 1px 0 var(--glass-border-highlight),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  padding: 24px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.glass-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    var(--glass-shadow-strong),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12);
}

/* Glass reflection highlight */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
  border-radius: 24px 24px 0 0;
  pointer-events: none;
}

/* Asymmetric Panel Sizes */
.glass-card--hero {
  grid-column: span 5;
  grid-row: span 1;
  min-height: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.glass-card--stats-row {
  grid-column: span 7;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px;
}

.glass-card--radar {
  grid-column: span 6;
  min-height: 480px;
  padding: 28px;
}

/* What AI Sees Card in top row - next to Radar */
.glass-card--what-ai-sees {
  grid-column: span 6;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-top: 3px solid var(--liquid-purple-1);
  background: linear-gradient(135deg, var(--glass-bg-strong), rgba(138, 116, 172, 0.08));
}

.glass-card--what-ai-sees .glass-card-header {
  margin-bottom: 12px;
}

.what-ai-sees-container {
  flex: 1;
  overflow-y: auto;
}

/* FACT Card - Now removed from top row, placed in mosaic */
.glass-card--fact {
  grid-column: span 5;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.glass-card--fact .glass-card-header {
  margin-bottom: 12px;
}

/* Vertical FACT Layout */
.fact-vertical {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fact-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fact-card:hover {
  transform: translateX(4px);
  box-shadow: var(--glass-shadow);
}

.fact-card-letter {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.fact-card-letter.f { background: linear-gradient(135deg, #22c55e, #16a34a); }
.fact-card-letter.a { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.fact-card-letter.c { background: linear-gradient(135deg, #f59e0b, #d97706); }
.fact-card-letter.t { background: linear-gradient(135deg, #3b82f6, #2563eb); }

.fact-card-info {
  flex: 1;
  min-width: 0;
}

.fact-card-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--liquid-text-muted);
  line-height: 1.2;
}

.fact-card-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  margin-top: 4px;
  overflow: hidden;
}

.fact-card-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fact-card-bar-fill.f { background: linear-gradient(90deg, #22c55e, #4ade80); }
.fact-card-bar-fill.a { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.fact-card-bar-fill.c { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.fact-card-bar-fill.t { background: linear-gradient(90deg, #3b82f6, #60a5fa); }

.fact-card-score {
  font-size: 1rem;
  font-weight: 800;
  min-width: 36px;
  text-align: right;
  background: linear-gradient(135deg, var(--liquid-purple-1), var(--liquid-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* GEO Credit Score Panel - Fairfax Style */
.geo-score-panel {
  grid-column: 6 / span 7;
  border-top: 3px solid var(--liquid-teal);
  background: linear-gradient(135deg, var(--glass-bg-strong), rgba(100, 190, 180, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
}

.credit-score-visual {
  width: 100%;
  max-width: 280px;
  text-align: center;
}

.credit-score-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 4px;
}

.credit-score-number {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--liquid-purple-1), var(--liquid-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.credit-score-max {
  font-size: 1rem;
  font-weight: 600;
  color: var(--liquid-text-muted);
}

.credit-score-band {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 14px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.3);
  color: var(--liquid-text);
}

.credit-score-band.excellent {
  background: rgba(34, 197, 94, 0.25);
  color: #16a34a;
}

.credit-score-band.good {
  background: rgba(132, 204, 22, 0.25);
  color: #65a30d;
}

.credit-score-band.moderate {
  background: rgba(234, 179, 8, 0.25);
  color: #ca8a04;
}

.credit-score-band.low {
  background: rgba(249, 115, 22, 0.25);
  color: #ea580c;
}

.credit-score-band.critical {
  background: rgba(239, 68, 68, 0.25);
  color: #dc2626;
}

/* Credit Meter - Horizontal Bar */
.credit-meter {
  position: relative;
  width: 100%;
  padding-top: 8px;
}

.credit-meter-segments {
  display: flex;
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.credit-segment {
  flex: 1;
  position: relative;
  transition: opacity 0.3s ease;
}

.credit-segment.critical {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.credit-segment.low {
  background: linear-gradient(90deg, #f97316, #fb923c);
}

.credit-segment.moderate {
  background: linear-gradient(90deg, #eab308, #facc15);
}

.credit-segment.good {
  background: linear-gradient(90deg, #84cc16, #a3e635);
}

.credit-segment.excellent {
  background: linear-gradient(90deg, #22c55e, #4ade80);
}

/* Pointer/Indicator */
.credit-meter-pointer {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  transform: translateX(-50%);
  transition: left 1s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.pointer-arrow {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid var(--liquid-text);
  margin-left: -6px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.pointer-arrow::after {
  content: '';
  position: absolute;
  top: 10px;
  left: -2px;
  width: 4px;
  height: 18px;
  background: var(--liquid-text);
  border-radius: 0 0 2px 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Labels under meter */
.credit-meter-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--liquid-text-muted);
}

.credit-meter-labels span {
  width: 24px;
  text-align: center;
}

.credit-meter-labels span:first-child {
  text-align: left;
}

.credit-meter-labels span:last-child {
  text-align: right;
}

.glass-card--wide {
  grid-column: span 8;
}

.glass-card--medium {
  grid-column: span 5;
}

.glass-card--tall {
  grid-row: span 2;
  min-height: 320px;
}

.glass-card--full {
  grid-column: span 12;
}

/* Stat Mini Cards inside Stats Row - Liquid Glass Style */
.glass-stat-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  padding: 22px 18px;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Glass highlight effect */
.glass-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
  border-radius: 20px 20px 0 0;
  pointer-events: none;
}

.glass-stat-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--glass-shadow);
}

.glass-stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--liquid-purple-1), var(--liquid-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.glass-stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--liquid-text-muted);
  position: relative;
  z-index: 1;
}

.glass-stat-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(4px);
}

.glass-stat-change.positive {
  background: rgba(34, 197, 94, 0.25);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.glass-stat-change.negative {
  background: rgba(239, 68, 68, 0.25);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Glass Card Header */
.glass-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.glass-card-kicker {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--liquid-text-muted);
  font-weight: 600;
  margin-bottom: 6px;
}

.glass-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--liquid-text);
  margin: 0;
  line-height: 1.3;
}

.glass-badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(34, 197, 94, 0.25);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.glass-badge.ai {
  background: linear-gradient(135deg, rgba(147, 112, 219, 0.25), rgba(100, 149, 237, 0.25));
  color: #4c1d95;
  border: 1px solid rgba(147, 112, 219, 0.3);
}

/* Legacy Support - Map old classes to new glass design */
.insights-hero {
  display: contents;
}

.insights-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.insights-kicker {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--liquid-text-muted);
  font-weight: 700;
}

.insights-hero-copy h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.25;
  color: var(--liquid-text);
  margin: 0;
}

.insights-lead {
  font-size: 0.95rem;
  color: var(--liquid-text-muted);
  max-width: 36ch;
  line-height: 1.6;
}

.insights-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.insights-chip {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--liquid-text-muted);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
}

.insights-hero-radar {
  display: flex;
  align-items: stretch;
}

.insights-card {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  padding: 20px;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.insights-card > * {
  position: relative;
  z-index: 1;
}

.insights-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
  pointer-events: none;
}

.insights-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.insights-card-kicker {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--liquid-text-muted);
  font-weight: 600;
}

.insights-card-header h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--liquid-text);
  margin: 4px 0 0;
}

.insight-badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(34, 197, 94, 0.2);
  color: #166534;
}

.insight-badge.beta {
  background: rgba(100, 149, 237, 0.2);
  color: #1e40af;
}

.insight-badge.ai {
  background: linear-gradient(135deg, rgba(147, 112, 219, 0.2), rgba(100, 149, 237, 0.2));
  color: #4c1d95;
}

/* Insights Mosaic - Asymmetric Grid */
.insights-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.insight-panel {
  position: relative;
  padding: 20px;
  padding-top: 48px;
  border-radius: 20px;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.insight-panel:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 48px rgba(31, 38, 135, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.insight-panel::before {
  content: attr(data-kicker);
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--liquid-text-muted);
  font-weight: 700;
  pointer-events: none;
}

.insight-panel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
  pointer-events: none;
  border-radius: 20px 20px 0 0;
}

.vision-panel {
  grid-column: 1 / span 7;
  border-top: 3px solid var(--liquid-purple-1);
  background: linear-gradient(135deg, var(--glass-bg-strong), rgba(138, 116, 172, 0.08));
}

/* FACT Panel in mosaic row */
.fact-panel {
  grid-column: 1 / span 5;
  border-top: 3px solid var(--liquid-teal);
  background: linear-gradient(135deg, var(--glass-bg-strong), rgba(100, 180, 160, 0.08));
}

/* Note: trust-panel replaced by gauge-panel in mosaic row */

.time-panel {
  grid-column: 1 / span 12;
  border-top: 3px solid var(--liquid-blue);
  background: linear-gradient(135deg, var(--glass-bg-strong), rgba(140, 170, 220, 0.1));
}

.panel-kicker {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--liquid-text-muted);
  font-weight: 700;
}

/* Sandbox Section - Glass Style */
.insights-sandbox {
  border-radius: 24px;
  padding: 24px;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}

.insights-sandbox::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, transparent 100%);
  pointer-events: none;
  border-radius: 24px 24px 0 0;
}

.insights-sandbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.insights-sandbox-header h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 6px 0 0;
  color: var(--liquid-text);
}

.insights-sandbox-desc {
  font-size: 0.9rem;
  color: var(--liquid-text-muted);
  margin-top: 6px;
  max-width: 52ch;
}

.sandbox-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sandbox-chip {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--liquid-text-muted);
}

.query-sim-container {
  padding: 0;
  position: relative;
  z-index: 1;
}

.query-sim-input-group {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
  flex-wrap: wrap;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 16px rgba(31, 38, 135, 0.1);
}

.query-sim-input-group:focus-within {
  border-color: rgba(147, 112, 219, 0.5);
  box-shadow: 0 4px 20px rgba(147, 112, 219, 0.15);
}

.query-sim-input {
  flex: 1 1 260px;
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  font-size: 0.95rem;
  font-family: var(--font-family);
  background: transparent;
  color: var(--liquid-text);
  transition: all 0.2s ease;
}

.query-sim-input:focus {
  outline: none;
}

.query-sim-input::placeholder {
  color: var(--liquid-text-muted);
}

.query-sim-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--liquid-purple-1), var(--liquid-blue));
  color: var(--liquid-text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(138, 116, 172, 0.4);
  backdrop-filter: blur(4px);
}

.query-sim-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(138, 116, 172, 0.5);
}

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

.query-sim-btn svg {
  width: 16px;
  height: 16px;
}

/* Query Simulation Results */
.query-sim-results {
  animation: glassReveal 0.4s ease-out;
}

.query-sim-result {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 16px rgba(31, 38, 135, 0.08);
}

.sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.sim-badge {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.sim-badge.cited {
  background: rgba(34, 197, 94, 0.25);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.sim-badge.not-cited {
  background: rgba(239, 68, 68, 0.2);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.sim-confidence {
  font-size: 0.85rem;
  color: var(--liquid-text-muted);
}

.sim-response,
.sim-reasoning,
.sim-improvements {
  margin-bottom: 16px;
}

.sim-response h5,
.sim-reasoning h5,
.sim-improvements h5 {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--liquid-text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 10px 0;
}

.sim-text {
  font-size: 0.95rem;
  color: var(--liquid-text);
  line-height: 1.65;
  padding: 14px 16px;
  background: rgba(147, 112, 219, 0.1);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  border-left: 3px solid rgba(147, 112, 219, 0.6);
}

.sim-reasoning p {
  font-size: 0.9rem;
  color: var(--liquid-text-muted);
  margin: 0;
}

.sim-improvements ul {
  margin: 0;
  padding-left: 20px;
}

.sim-improvements li {
  font-size: 0.9rem;
  color: var(--liquid-text-muted);
  margin-bottom: 8px;
}

/* Deep Analysis Lab - Glass Style */
.insights-lab {
  display: block;
}

.insights-lab-card {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.insights-lab-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
  pointer-events: none;
  border-radius: 24px 24px 0 0;
}

.insights-lab-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.insights-lab-header h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 6px 0 0;
  color: var(--liquid-text);
}

.insights-lab-desc {
  font-size: 0.9rem;
  color: var(--liquid-text-muted);
  margin-top: 6px;
  max-width: 52ch;
}

.llm-analyze-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  background: linear-gradient(135deg, var(--liquid-purple-1), var(--liquid-blue));
  color: var(--liquid-text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  align-self: flex-start;
  box-shadow: 0 8px 28px rgba(138, 116, 172, 0.45);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(4px);
}

.llm-analyze-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 36px rgba(138, 116, 172, 0.55);
}

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

.llm-analyze-btn svg {
  width: 18px;
  height: 18px;
}

/* LLM Insights Display - Glass Cards */
.llm-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  animation: glassReveal 0.4s ease-out;
  position: relative;
  z-index: 1;
}

.llm-section {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 12px rgba(31, 38, 135, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.llm-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(31, 38, 135, 0.1);
}

.llm-section.summary {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(147, 112, 219, 0.15), rgba(255, 255, 255, 0.6));
}

.llm-section h5 {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--liquid-text-muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 12px 0;
}

.llm-section p {
  font-size: 0.9rem;
  color: var(--liquid-text);
  line-height: 1.65;
  margin: 0;
}

.llm-section ul,
.llm-section ol {
  margin: 0;
  padding-left: 20px;
}

.llm-section li {
  font-size: 0.9rem;
  color: var(--liquid-text);
  margin-bottom: 8px;
  line-height: 1.55;
}

.llm-section.strengths {
  border-top: 3px solid rgba(34, 197, 94, 0.7);
}

.llm-section.weaknesses {
  border-top: 3px solid rgba(239, 68, 68, 0.7);
}

.llm-section.actions {
  border-top: 3px solid rgba(147, 112, 219, 0.7);
}

.llm-section.competitor {
  border-top: 3px solid rgba(100, 149, 237, 0.7);
}

/* Gauge Ring Styles */
.gauge-ring {
  position: relative;
  width: 120px;
  height: 120px;
}

.gauge-ring svg {
  width: 100%;
  height: 100%;
}

.gauge-ring circle {
  transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.gauge-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--liquid-text);
  line-height: 1;
}

.gauge-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--liquid-text-muted);
  margin-top: 4px;
}

/* AI Radar Container */
.ai-radar-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  position: relative;
  z-index: 1;
  padding: 20px 0;
}

.ai-radar-svg {
  width: 100%;
  max-width: 520px;
  height: auto;
}

/* Liquid Glass Animations */
@keyframes glassReveal {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes liquidFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(20px) scale(1.05);
  }
}

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

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

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@media (max-width: 1024px) {
  .insights-hero {
    grid-template-columns: 1fr;
  }

  .insights-liquid-mosaic {
    grid-template-columns: repeat(6, 1fr);
  }

  .glass-card--hero {
    grid-column: span 6;
    grid-row: span 1;
  }

  .glass-card--stats-row {
    grid-column: span 6;
  }

  .glass-card--radar {
    grid-column: span 3;
  }

  .glass-card--what-ai-sees {
    grid-column: span 3;
  }

  .glass-card--fact {
    grid-column: span 2;
  }

  .insights-mosaic {
    grid-template-columns: repeat(2, 1fr);
  }

  .vision-panel,
  .fact-panel,
  .geo-score-panel {
    grid-column: auto;
  }

  .time-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .ai-insights-stage {
    padding: 20px;
    border-radius: 24px;
  }

  .insights-liquid-mosaic {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .glass-card--hero,
  .glass-card--stats-row,
  .glass-card--radar,
  .glass-card--what-ai-sees,
  .glass-card--fact {
    grid-column: span 1;
    grid-row: span 1;
  }

  .geo-score-panel,
  .fact-panel {
    grid-column: 1 / -1;
  }

  .glass-card--stats-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .glass-card {
    padding: 20px;
    border-radius: 20px;
  }

  .insights-hero-copy h3 {
    font-size: 1.5rem;
  }

  .insights-mosaic {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .insight-panel {
    padding: 44px 18px 18px;
    border-radius: 16px;
  }

  .ai-sees-metrics {
    grid-template-columns: 1fr;
  }

  .query-sim-input-group {
    border-radius: 16px;
    padding: 6px;
  }

  .query-sim-input {
    border-radius: 12px;
    width: 100%;
  }

  .query-sim-btn {
    width: 100%;
    justify-content: center;
    border-radius: 12px;
  }

  .llm-insights {
    grid-template-columns: 1fr;
  }

  .insights-sandbox,
  .insights-lab-card {
    border-radius: 20px;
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-insights-stage::before,
  .ai-insights-stage::after,
  .ai-insights-stage > *,
  .glass-card,
  .insight-panel {
    animation: none;
  }

  .glass-card:hover,
  .insight-panel:hover {
    transform: none;
  }
}

/* Progress Bar in cards */
.check-progress-bar {
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
  margin: 8px 0;
}

.check-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease-out;
}

.check-progress-fill.good {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.check-progress-fill.warning {
  background: linear-gradient(90deg, #eab308, #ca8a04);
}

.check-progress-fill.poor {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* No issues message */
.no-issues {
  text-align: center;
  padding: 24px;
  color: var(--secondary);
  font-size: 0.95rem;
  background: rgba(127, 168, 127, 0.1);
  border-radius: var(--border-radius);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   LIQUID GLASS STAGE - UNIVERSAL GLASS CONTAINER FOR ALL TABS
   ═══════════════════════════════════════════════════════════════════════════════ */

.liquid-glass-stage {
  position: relative;
  padding: 32px;
  border-radius: 36px;
  background: var(--liquid-gradient);
  backdrop-filter: var(--glass-blur-strong);
  -webkit-backdrop-filter: var(--glass-blur-strong);
  border: 2px solid rgba(60, 130, 190, 0.4);
  border-top: 2px solid rgba(80, 150, 210, 0.55);
  border-left: 2px solid rgba(80, 150, 210, 0.5);
  box-shadow:
    0 8px 32px rgba(50, 100, 150, 0.2),
    0 16px 48px rgba(50, 100, 150, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(40, 80, 120, 0.1);
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
}

/* Floating background blob */
.liquid-blob-bg {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--liquid-accent-1), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: url(#softGlow);
  animation: liquidFloat 20s ease-in-out infinite;
}

.liquid-glass-stage::before {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--liquid-accent-2), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: url(#softGlow);
  animation: liquidFloat 25s ease-in-out infinite reverse;
}

.liquid-glass-stage > * {
  position: relative;
  z-index: 1;
}

/* GEO-specific stage accent color */
.liquid-glass-stage.geo-stage .liquid-blob-bg {
  background: radial-gradient(circle, var(--liquid-accent-3), transparent 65%);
}

.liquid-glass-stage.geo-stage::before {
  background: radial-gradient(circle, var(--liquid-teal), transparent 65%);
}

/* Stage Header */
.stage-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 8px;
}

.stage-header-text {
  flex: 1;
}

.stage-kicker {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--liquid-text-muted);
  font-weight: 700;
  margin-bottom: 8px;
}

.stage-header h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--liquid-text);
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.stage-desc {
  font-size: 0.95rem;
  color: var(--liquid-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Stage Score Ring (mini version for headers) */
.stage-score-ring {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.stage-score-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 6;
}

.score-ring-progress {
  fill: none;
  stroke: url(#seoGradient);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 214;
  stroke-dashoffset: 214;
  transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.stage-score-ring.geo .score-ring-progress {
  stroke: var(--liquid-teal);
}

.score-ring-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.score-ring-value span:first-child {
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--liquid-purple-1), var(--liquid-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stage-score-ring.geo .score-ring-value span:first-child {
  background: linear-gradient(135deg, var(--liquid-teal), var(--liquid-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.score-ring-max {
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--liquid-text-muted);
  margin-top: 2px;
}

/* Stage Chips (for Recommendations header) */
.stage-chips {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.stage-chip {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stage-chip.high {
  background: rgba(239, 68, 68, 0.2);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.stage-chip.medium {
  background: rgba(234, 179, 8, 0.2);
  color: #ca8a04;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.stage-chip.low {
  background: rgba(34, 197, 94, 0.2);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ISSUES TAB - GLASS DESIGN
   ═══════════════════════════════════════════════════════════════════════════════ */

.issues-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.glass-card--issues-column {
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.glass-card--issues-column .glass-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.glass-badge.seo {
  background: linear-gradient(135deg, rgba(74, 144, 194, 0.25), rgba(45, 106, 159, 0.25));
  color: #2d6a9f;
  border: 1px solid rgba(74, 144, 194, 0.3);
}

.glass-badge.geo {
  background: linear-gradient(135deg, rgba(100, 190, 180, 0.25), rgba(80, 160, 150, 0.25));
  color: #3d8a7f;
  border: 1px solid rgba(100, 190, 180, 0.3);
}

.glass-issues-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: 400px;
  padding-right: 8px;
}

.glass-issues-list::-webkit-scrollbar {
  width: 6px;
}

.glass-issues-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.glass-issues-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.glass-issue-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.32) 0%, rgba(240, 248, 255, 0.18) 100%);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 14px;
  border: 2px solid rgba(60, 130, 190, 0.35);
  border-top: 2px solid rgba(80, 160, 210, 0.5);
  border-left: 2px solid rgba(80, 160, 210, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow:
    0 3px 12px rgba(50, 100, 150, 0.18),
    0 6px 24px rgba(50, 100, 150, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.glass-issue-item:hover {
  transform: translateX(4px) translateY(-2px);
  border-color: rgba(70, 140, 200, 0.45);
  box-shadow:
    0 6px 18px rgba(50, 100, 150, 0.22),
    0 12px 36px rgba(50, 100, 150, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.glass-issue-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.glass-issue-badge.critical {
  background: rgba(239, 68, 68, 0.25);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.glass-issue-badge.high {
  background: rgba(249, 115, 22, 0.25);
  color: #ea580c;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.glass-issue-badge.medium {
  background: rgba(234, 179, 8, 0.25);
  color: #ca8a04;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.glass-issue-badge.low {
  background: rgba(34, 197, 94, 0.25);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.glass-issue-content {
  flex: 1;
  min-width: 0;
}

.glass-issue-message {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--liquid-text);
  line-height: 1.4;
  margin-bottom: 4px;
}

.glass-issue-category {
  font-size: 0.7rem;
  color: var(--liquid-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SEO/GEO CHECKS GRID - GLASS DESIGN
   ═══════════════════════════════════════════════════════════════════════════════ */

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

.glass-check-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.38) 0%, rgba(240, 248, 255, 0.22) 100%);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 24px;
  border: 2px solid rgba(60, 130, 190, 0.45);
  border-top: 2px solid rgba(80, 160, 210, 0.6);
  border-left: 2px solid rgba(80, 160, 210, 0.55);
  padding: 24px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 16px rgba(50, 100, 150, 0.22),
    0 8px 32px rgba(50, 100, 150, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(40, 80, 120, 0.1);
}

.glass-check-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, transparent 100%);
  border-radius: 24px 24px 0 0;
  pointer-events: none;
}

.glass-check-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(70, 140, 200, 0.55);
  box-shadow:
    0 12px 40px rgba(50, 100, 150, 0.28),
    0 20px 60px rgba(50, 100, 150, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(40, 80, 120, 0.1);
}

.glass-check-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.glass-check-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--liquid-text);
}

.glass-check-score {
  font-size: 1.1rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

.glass-check-score.good {
  background: rgba(34, 197, 94, 0.2);
  color: #16a34a;
}

.glass-check-score.warning {
  background: rgba(234, 179, 8, 0.2);
  color: #ca8a04;
}

.glass-check-score.poor {
  background: rgba(239, 68, 68, 0.2);
  color: #dc2626;
}

.glass-progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin: 12px 0;
  position: relative;
  z-index: 1;
}

.glass-progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-progress-fill.good {
  background: linear-gradient(90deg, #22c55e, #4ade80);
}

.glass-progress-fill.warning {
  background: linear-gradient(90deg, #eab308, #facc15);
}

.glass-progress-fill.poor {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.glass-check-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.glass-status-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.glass-status-icon.pass {
  background: rgba(34, 197, 94, 0.25);
  color: #16a34a;
}

.glass-status-icon.fail {
  background: rgba(239, 68, 68, 0.25);
  color: #dc2626;
}

.glass-check-status span:last-child {
  font-size: 0.85rem;
  color: var(--liquid-text-muted);
}

.glass-check-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.glass-detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.35) 0%, rgba(240, 248, 255, 0.18) 100%);
  border-radius: 14px;
  border: 2px solid rgba(60, 130, 190, 0.4);
  border-top: 3px solid rgba(80, 160, 210, 0.6);
  border-left: 3px solid rgba(80, 160, 210, 0.55);
  border-bottom: 2px solid rgba(180, 110, 140, 0.3);
  border-right: 2px solid rgba(180, 110, 140, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow:
    0 3px 12px rgba(50, 100, 150, 0.2),
    0 6px 24px rgba(50, 100, 150, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(40, 80, 120, 0.08);
}

.glass-detail-item:hover {
  transform: translateX(4px) translateY(-2px);
  border-color: rgba(70, 140, 200, 0.5);
  box-shadow:
    0 6px 18px rgba(50, 100, 150, 0.25),
    0 12px 36px rgba(50, 100, 150, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -1px 0 rgba(40, 80, 120, 0.08);
}

.glass-detail-item .detail-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.glass-detail-item.detail-pass .detail-icon {
  background: rgba(34, 197, 94, 0.25);
  color: #16a34a;
}

.glass-detail-item.detail-fail .detail-icon {
  background: rgba(239, 68, 68, 0.25);
  color: #dc2626;
}

.glass-detail-item .detail-name {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--liquid-text);
}

.glass-detail-item .detail-value {
  font-size: 0.75rem;
  color: var(--liquid-text-muted);
  background: var(--glass-bg);
  padding: 4px 10px;
  border-radius: 12px;
}

.glass-detail-item .tooltip-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--glass-bg);
  color: var(--liquid-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: help;
  flex-shrink: 0;
}

/* GEO Pillar styling */
.glass-checks-grid.geo-pillars .glass-check-card {
  border-left: 3px solid var(--liquid-teal);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RECOMMENDATIONS TAB - GLASS DESIGN
   ═══════════════════════════════════════════════════════════════════════════════ */

.glass-recommendations-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.glass-rec-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.35) 0%, rgba(240, 248, 255, 0.2) 100%);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 20px;
  border: 2px solid rgba(60, 130, 190, 0.4);
  border-top: 2px solid rgba(80, 160, 210, 0.55);
  border-left: 2px solid rgba(80, 160, 210, 0.5);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 16px rgba(50, 100, 150, 0.2),
    0 8px 32px rgba(50, 100, 150, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(40, 80, 120, 0.08);
}

.glass-rec-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, transparent 100%);
  pointer-events: none;
}

.glass-rec-item:hover {
  transform: translateX(8px) translateY(-3px);
  border-color: rgba(70, 140, 200, 0.5);
  box-shadow:
    0 8px 24px rgba(50, 100, 150, 0.26),
    0 16px 48px rgba(50, 100, 150, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);
}

.glass-rec-priority {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.glass-rec-priority.high {
  background: rgba(239, 68, 68, 0.25);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.glass-rec-priority.medium {
  background: rgba(234, 179, 8, 0.25);
  color: #ca8a04;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.glass-rec-priority.low {
  background: rgba(34, 197, 94, 0.25);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.glass-rec-content {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.glass-rec-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--liquid-text);
  line-height: 1.5;
  margin-bottom: 8px;
}

.glass-rec-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--liquid-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.glass-rec-type {
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 700;
}

.glass-rec-type.seo {
  background: rgba(74, 144, 194, 0.2);
  color: #2d6a9f;
}

.glass-rec-type.geo {
  background: rgba(100, 190, 180, 0.2);
  color: #3d8a7f;
}

/* Empty state for glass containers */
.glass-no-issues {
  text-align: center;
  padding: 40px 24px;
  color: var(--liquid-text-muted);
  font-size: 0.95rem;
}

.glass-no-issues::before {
  content: '✓';
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: rgba(34, 197, 94, 0.2);
  color: #16a34a;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 48px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .liquid-glass-stage {
    padding: 20px;
    border-radius: 24px;
  }

  .stage-header {
    flex-direction: column;
    gap: 16px;
  }

  .stage-score-ring {
    align-self: flex-start;
  }

  .issues-mosaic {
    grid-template-columns: 1fr;
  }

  .glass-checks-grid {
    grid-template-columns: 1fr;
  }

  .glass-check-card {
    padding: 20px;
    border-radius: 20px;
  }

  .glass-rec-item {
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   HUMAN VS AI VIEW TOGGLE - PAGE PREVIEW SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */

.page-preview-section {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  margin-bottom: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.preview-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
}

/* View Toggle Buttons - Similar to Parallel.ai style */
.view-toggle {
  display: flex;
  background: var(--bg-card);
  border-radius: 25px;
  padding: 4px;
  border: 1px solid var(--border-color);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.view-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  background: transparent;
  border-radius: 22px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-family);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-toggle-btn svg {
  width: 18px;
  height: 18px;
  transition: all 0.3s ease;
}

.view-toggle-btn:hover {
  color: var(--text-primary);
}

/* Human View Button - Blue Liquid Glass */
.view-toggle-btn[data-view="human"].active {
  background: linear-gradient(145deg,
    rgba(96, 165, 250, 0.95) 0%,
    rgba(59, 130, 246, 0.9) 25%,
    rgba(37, 99, 235, 0.9) 50%,
    rgba(29, 78, 216, 0.9) 75%,
    rgba(30, 64, 175, 0.95) 100%
  );
  color: white;
  box-shadow:
    0 4px 15px rgba(59, 130, 246, 0.4),
    0 2px 6px rgba(37, 99, 235, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(147, 197, 253, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.view-toggle-btn[data-view="human"].active svg {
  stroke: white;
}

.view-toggle-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: white;
  box-shadow: 0 2px 8px rgba(74, 144, 194, 0.3);
}

.view-toggle-btn.active svg {
  stroke: white;
}

/* AI View Button - Neutral Liquid Glass */
.view-toggle-btn[data-view="ai"].active {
  background: linear-gradient(145deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(240, 240, 240, 0.9) 25%,
    rgba(220, 220, 220, 0.85) 50%,
    rgba(200, 200, 200, 0.9) 75%,
    rgba(180, 180, 180, 0.95) 100%
  );
  color: #1a1a1a;
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.15),
    0 2px 6px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.view-toggle-btn[data-view="ai"].active svg {
  stroke: #1a1a1a;
}

/* Preview Stage & Containers */
.preview-stage {
  position: relative;
  height: 600px;
  min-height: 500px;
  max-height: 700px;
  overflow: hidden;
}

.preview-container {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  overflow-x: hidden;
  transition: opacity 0.3s ease;
}

.preview-container.view-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.preview-container.view-exit {
  opacity: 0;
  z-index: 1;
}

.preview-container.human-view.view-enter .page-screenshot {
  animation: humanZoomIn 0.45s ease;
  transform-origin: center center;
}

.preview-container.ai-view.view-enter {
  animation: aiZoomOut 0.45s ease;
  transform-origin: center center;
}

@keyframes humanZoomIn {
  0% {
    transform: scale(0.98);
  }
  60% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes aiZoomOut {
  0% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

/* Screenshot Wrapper for Human View */
.screenshot-wrapper {
  position: relative;
  width: 100%;
  height: 600px;
  background: var(--bg-secondary);
  overflow: hidden;
}

.page-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.screenshot-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity 0.3s ease;
}

.screenshot-overlay.loaded {
  opacity: 0;
  pointer-events: none;
}

.screenshot-loading {
  text-align: center;
}

.screenshot-loading .loading-spinner.small {
  width: 32px;
  height: 32px;
  margin: 0 auto 16px;
}

.screenshot-loading p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Open in new tab button */
.open-page-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  z-index: 20;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.open-page-btn svg {
  width: 16px;
  height: 16px;
}

.open-page-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  color: white;
  transform: translateY(-2px);
}

/* AI View Container */
.ai-view {
  padding: 0;
  background: #0d1117;
  overflow-y: auto;
}

.ai-view-header {
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(200, 200, 200, 0.05));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.ai-view-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(145deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(240, 240, 240, 0.9) 25%,
    rgba(220, 220, 220, 0.85) 50%,
    rgba(200, 200, 200, 0.9) 75%,
    rgba(180, 180, 180, 0.95) 100%
  );
  border-radius: 25px;
  color: #1a1a1a;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.15),
    0 2px 6px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.ai-view-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.15) 100%
  );
  border-radius: 25px 25px 50% 50%;
  pointer-events: none;
}

.ai-view-badge:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.2),
    0 3px 8px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.ai-view-badge svg {
  width: 16px;
  height: 16px;
  stroke: #1a1a1a;
  position: relative;
  z-index: 1;
}

.ai-view-badge span {
  position: relative;
  z-index: 1;
}

.ai-view-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
}

/* AI Content Wrapper - Markdown Style */
.ai-content-wrapper {
  padding: 24px;
  font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
  font-size: 14px;
  line-height: 1.7;
  color: #c9d1d9;
  overflow-y: auto;
  max-height: 550px;
}

/* Markdown Elements in AI View */
.ai-content-wrapper .ai-section {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-content-wrapper .ai-section:last-child {
  border-bottom: none;
}

.ai-content-wrapper .ai-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.ai-content-wrapper .ai-section-title svg {
  width: 14px;
  height: 14px;
  stroke: #9ca3af;
}

/* Title and Meta */
.ai-content-wrapper .ai-meta-block {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid #9ca3af;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 16px;
}

.ai-content-wrapper .ai-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f0f6fc;
  margin-bottom: 8px;
  font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
}

.ai-content-wrapper .ai-url {
  font-size: 0.85rem;
  color: #58a6ff;
  word-break: break-all;
}

/* Headings in AI View */
.ai-content-wrapper h1,
.ai-content-wrapper h2,
.ai-content-wrapper h3,
.ai-content-wrapper h4,
.ai-content-wrapper h5,
.ai-content-wrapper h6 {
  color: #f0f6fc;
  font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
  margin: 16px 0 8px 0;
}

.ai-content-wrapper h1 { font-size: 1.4rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 8px; }
.ai-content-wrapper h2 { font-size: 1.2rem; color: #d1d5db; }
.ai-content-wrapper h3 { font-size: 1.1rem; color: #9ca3af; }
.ai-content-wrapper h4 { font-size: 1rem; color: #6b7280; }

/* Paragraphs */
.ai-content-wrapper p {
  margin: 8px 0;
  color: #c9d1d9;
}

/* Lists */
.ai-content-wrapper ul,
.ai-content-wrapper ol {
  margin: 8px 0 8px 20px;
  padding: 0;
}

.ai-content-wrapper li {
  margin: 4px 0;
  color: #c9d1d9;
}

.ai-content-wrapper li::marker {
  color: #9ca3af;
}

/* Links */
.ai-content-wrapper a {
  color: #58a6ff;
  text-decoration: none;
}

.ai-content-wrapper a:hover {
  text-decoration: underline;
}

/* Code blocks */
.ai-content-wrapper code {
  background: rgba(110, 118, 129, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.ai-content-wrapper pre {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  margin: 12px 0;
}

.ai-content-wrapper pre code {
  background: none;
  padding: 0;
}

/* Schema/Structured Data Section */
.ai-content-wrapper .ai-schema-block {
  background: rgba(34, 197, 94, 0.1);
  border-left: 3px solid #22c55e;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 12px 0;
}

.ai-content-wrapper .ai-schema-type {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(34, 197, 94, 0.2);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #22c55e;
  margin-bottom: 8px;
}

.ai-content-wrapper .ai-schema-item {
  display: flex;
  gap: 8px;
  font-size: 0.9rem;
  margin: 6px 0;
}

.ai-content-wrapper .ai-schema-key {
  color: #9ca3af;
  min-width: 120px;
}

.ai-content-wrapper .ai-schema-value {
  color: #c9d1d9;
}

/* Images Section */
.ai-content-wrapper .ai-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.ai-content-wrapper .ai-image-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
}

.ai-content-wrapper .ai-image-item img {
  max-width: 100%;
  height: 80px;
  object-fit: contain;
  border-radius: 4px;
  margin-bottom: 6px;
}

.ai-content-wrapper .ai-image-item.missing-alt img {
  border: 2px solid #ef4444;
}

.ai-content-wrapper .ai-image-alt {
  font-size: 0.75rem;
  color: #8b949e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Robots/Crawl Access Section */
.ai-content-wrapper .ai-crawl-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 500;
  margin: 4px;
}

.ai-content-wrapper .ai-crawl-status.allowed {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.ai-content-wrapper .ai-crawl-status.blocked {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* Empty State */
.ai-content-wrapper .ai-empty {
  text-align: center;
  padding: 40px;
  color: #8b949e;
}

.ai-content-wrapper .ai-empty svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  stroke: #9ca3af;
  opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
  .preview-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .view-toggle {
    width: 100%;
  }

  .view-toggle-btn {
    flex: 1;
    justify-content: center;
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .view-toggle-btn span {
    display: none;
  }

  .view-toggle-btn svg {
    width: 20px;
    height: 20px;
  }

  .preview-stage {
    height: 450px;
    min-height: 400px;
    max-height: 500px;
  }

  .screenshot-wrapper {
    height: 450px;
  }

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

  .ai-content-wrapper {
    padding: 16px;
    font-size: 13px;
    max-height: 450px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   COMPETITOR ANALYSIS SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */

.competitor-analysis-section {
  margin-top: 32px;
  padding: 32px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.35) 0%, rgba(240, 248, 255, 0.2) 100%);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 28px;
  border: 2px solid rgba(60, 130, 190, 0.4);
  border-top: 2px solid rgba(80, 160, 210, 0.55);
  border-left: 2px solid rgba(80, 160, 210, 0.5);
  box-shadow:
    0 8px 32px rgba(50, 100, 150, 0.18),
    0 16px 48px rgba(50, 100, 150, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.competitor-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(60, 130, 190, 0.25);
}

.competitor-header-text h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--liquid-text);
  margin: 8px 0;
}

.competitor-desc {
  font-size: 0.9rem;
  color: var(--liquid-text-muted);
  margin: 0;
}

.discover-competitors-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(60, 130, 200, 0.9), rgba(80, 160, 210, 0.9));
  border: none;
  border-radius: 24px;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(60, 130, 200, 0.35);
}

.discover-competitors-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(60, 130, 200, 0.45);
}

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

.discover-competitors-btn svg {
  width: 18px;
  height: 18px;
}

/* Competitor Discovery Results */
.competitor-discovery {
  margin-bottom: 24px;
}

.competitors-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.competitor-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.3) 0%, rgba(240, 248, 255, 0.15) 100%);
  border-radius: 18px;
  border: 2px solid rgba(60, 130, 190, 0.3);
  border-top: 2px solid rgba(80, 160, 210, 0.45);
  border-left: 2px solid rgba(80, 160, 210, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow:
    0 3px 12px rgba(50, 100, 150, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.competitor-card:hover {
  transform: translateY(-4px);
  border-color: rgba(80, 160, 210, 0.5);
  box-shadow:
    0 8px 24px rgba(50, 100, 150, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.competitor-card.selected {
  border-color: rgba(34, 197, 94, 0.6);
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.15) 0%, rgba(240, 248, 255, 0.15) 100%);
}

.competitor-card.primary {
  border-color: rgba(234, 179, 8, 0.5);
  background: linear-gradient(145deg, rgba(234, 179, 8, 0.1) 0%, rgba(255, 255, 255, 0.2) 100%);
}

.competitor-card.primary::before {
  content: 'Top Pick';
  position: absolute;
  top: -10px;
  right: 16px;
  padding: 4px 12px;
  background: linear-gradient(135deg, #eab308, #ca8a04);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 12px;
}

.competitor-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.competitor-brand-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--liquid-text);
  margin: 0;
}

.competitor-domain {
  font-size: 0.75rem;
  color: var(--liquid-text-muted);
  margin-top: 4px;
}

.competitor-type-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.competitor-type-badge.direct {
  background: rgba(239, 68, 68, 0.2);
  color: #dc2626;
}

.competitor-type-badge.indirect {
  background: rgba(234, 179, 8, 0.2);
  color: #ca8a04;
}

.competitor-type-badge.market_leader {
  background: rgba(34, 197, 94, 0.2);
  color: #16a34a;
}

.competitor-reason {
  font-size: 0.85rem;
  color: var(--liquid-text-muted);
  line-height: 1.5;
}

.analyze-competitor-btn {
  margin-top: auto;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(60, 130, 200, 0.85), rgba(80, 160, 210, 0.85));
  border: none;
  border-radius: 14px;
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all 0.3s ease;
}

.analyze-competitor-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(60, 130, 200, 0.3);
}

/* Score Comparison Grid */
.competitor-scores {
  margin-bottom: 24px;
}

.competitor-scores-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.competitor-scores-header h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--liquid-text);
  margin: 0;
}

.competitor-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.competitor-name {
  font-weight: 600;
  color: var(--liquid-text);
}

.vs-badge {
  padding: 4px 12px;
  background: rgba(60, 130, 190, 0.2);
  color: rgba(60, 130, 190, 0.9);
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.your-brand {
  font-weight: 600;
  color: var(--liquid-text);
}

.score-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.score-comparison-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.28) 0%, rgba(240, 248, 255, 0.15) 100%);
  border-radius: 18px;
  border: 2px solid rgba(60, 130, 190, 0.3);
}

.score-comparison-column.yours {
  border-color: rgba(34, 197, 94, 0.4);
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.1) 0%, rgba(255, 255, 255, 0.2) 100%);
}

.score-comparison-column.competitor {
  border-color: rgba(200, 120, 150, 0.4);
  background: linear-gradient(145deg, rgba(200, 120, 150, 0.1) 0%, rgba(255, 255, 255, 0.2) 100%);
}

.column-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--liquid-text-muted);
  margin-bottom: 8px;
}

.mini-score-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 12px;
}

.mini-score-card .score-label {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--liquid-text-muted);
}

.mini-score-card .score-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--liquid-text);
}

.mini-score-card .score-max {
  font-size: 0.7rem;
  color: var(--liquid-text-muted);
}

.show-comparison-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  margin-top: 20px;
  background: linear-gradient(135deg, rgba(100, 80, 160, 0.9), rgba(130, 100, 180, 0.9));
  border: none;
  border-radius: 18px;
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(100, 80, 160, 0.35);
}

.show-comparison-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(100, 80, 160, 0.45);
}

.show-comparison-btn svg {
  width: 20px;
  height: 20px;
}

/* Detailed Comparison */
.detailed-comparison {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(60, 130, 190, 0.25);
}

.comparison-section {
  margin-bottom: 28px;
}

.comparison-section h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--liquid-text);
  margin: 0 0 16px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(60, 130, 190, 0.15);
}

.strengths-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.strength-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 20px;
  color: #16a34a;
  font-size: 0.85rem;
  font-weight: 500;
}

.strength-chip svg {
  width: 16px;
  height: 16px;
}

.strengths-list.competitor .strength-chip {
  background: rgba(200, 120, 150, 0.15);
  border-color: rgba(200, 120, 150, 0.3);
  color: rgba(180, 90, 120, 0.9);
}

/* Signal Comparison Bars */
.signal-comparison {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.signal-comparison-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.signal-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--liquid-text-muted);
}

.signal-bars {
  display: flex;
  gap: 8px;
  height: 24px;
}

.signal-bar {
  flex: 1;
  height: 100%;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  background: rgba(200, 200, 200, 0.3);
}

.signal-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.6s ease;
}

.signal-bar.yours .signal-bar-fill {
  background: linear-gradient(90deg, #22c55e, #4ade80);
}

.signal-bar.competitor .signal-bar-fill {
  background: linear-gradient(90deg, rgba(200, 120, 150, 0.8), rgba(220, 140, 170, 0.8));
}

.signal-bar-value {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Competitor Recommendations */
.competitor-recommendations {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.competitor-rec-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.3) 0%, rgba(240, 248, 255, 0.15) 100%);
  border-radius: 16px;
  border: 2px solid rgba(60, 130, 190, 0.3);
  border-left: 4px solid;
}

.competitor-rec-item.high {
  border-left-color: #dc2626;
}

.competitor-rec-item.medium {
  border-left-color: #ca8a04;
}

.competitor-rec-item.low {
  border-left-color: #16a34a;
}

.competitor-rec-priority {
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
}

.competitor-rec-priority.high {
  background: rgba(239, 68, 68, 0.2);
  color: #dc2626;
}

.competitor-rec-priority.medium {
  background: rgba(234, 179, 8, 0.2);
  color: #ca8a04;
}

.competitor-rec-priority.low {
  background: rgba(34, 197, 94, 0.2);
  color: #16a34a;
}

.competitor-rec-text {
  flex: 1;
  font-size: 0.9rem;
  color: var(--liquid-text);
  line-height: 1.5;
}

/* Loading state for competitor section */
.competitor-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  gap: 16px;
}

.competitor-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(60, 130, 190, 0.2);
  border-top-color: rgba(60, 130, 190, 0.8);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.competitor-loading-text {
  font-size: 0.9rem;
  color: var(--liquid-text-muted);
}

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

/* Benchmark Results Styles */
.benchmark-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 20px;
  text-align: center;
}

.benchmark-loading p {
  margin: 0;
  color: var(--liquid-text);
  font-size: 1rem;
}

.benchmark-loading-sub {
  font-size: 0.85rem !important;
  color: var(--liquid-text-muted) !important;
}

.benchmark-error {
  padding: 24px;
  text-align: center;
  color: #dc2626;
}

.benchmark-error .error-detail {
  font-size: 0.85rem;
  color: var(--liquid-text-muted);
  margin-top: 8px;
}

.benchmark-results {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 8px 0;
}

.benchmark-competitor-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.benchmark-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.benchmark-cache-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cache-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(100, 160, 200, 0.15);
  border: 1px solid rgba(100, 160, 200, 0.3);
  border-radius: 12px;
  font-size: 0.72rem;
  color: rgba(60, 130, 190, 0.9);
  font-weight: 500;
}

.cache-badge svg {
  opacity: 0.8;
}

.refresh-benchmark-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: linear-gradient(135deg, rgba(60, 130, 190, 0.1), rgba(100, 160, 210, 0.15));
  border: 1px solid rgba(60, 130, 190, 0.3);
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(60, 130, 190, 0.9);
  cursor: pointer;
  transition: all 0.2s ease;
}

.refresh-benchmark-btn:hover {
  background: linear-gradient(135deg, rgba(60, 130, 190, 0.2), rgba(100, 160, 210, 0.25));
  border-color: rgba(60, 130, 190, 0.5);
  transform: translateY(-1px);
}

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

.refresh-benchmark-btn svg {
  transition: transform 0.3s ease;
}

.refresh-benchmark-btn:hover svg {
  transform: rotate(180deg);
}

.benchmark-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--liquid-text-muted);
}

.benchmark-competitor-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--liquid-text);
}

.benchmark-competitor-url {
  font-size: 0.8rem;
  color: rgba(60, 130, 190, 0.9);
  text-decoration: none;
  word-break: break-all;
}

.benchmark-competitor-url:hover {
  text-decoration: underline;
}

.benchmark-scores {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.benchmark-score-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 32px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.35) 0%, rgba(240, 248, 255, 0.2) 100%);
  border-radius: 16px;
  border: 2px solid rgba(60, 130, 190, 0.25);
  min-width: 140px;
  transition: all 0.3s ease;
}

.benchmark-score-card.winning {
  border-color: rgba(34, 197, 94, 0.5);
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.1) 0%, rgba(240, 255, 245, 0.2) 100%);
}

.benchmark-score-label {
  font-size: 0.8rem;
  color: var(--liquid-text-muted);
  text-align: center;
}

.benchmark-score-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--liquid-text);
  line-height: 1;
}

.benchmark-score-grade {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(60, 130, 190, 0.9);
}

.benchmark-vs {
  font-size: 1rem;
  font-weight: 600;
  color: var(--liquid-text-muted);
  text-transform: uppercase;
}

.benchmark-breakdown {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.benchmark-breakdown-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.breakdown-label {
  width: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--liquid-text);
}

.breakdown-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.breakdown-bar {
  height: 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 12px;
  min-width: 40px;
  transition: width 0.5s ease;
}

.breakdown-bar.yours {
  background: linear-gradient(90deg, rgba(60, 130, 190, 0.6), rgba(60, 130, 190, 0.9));
}

.breakdown-bar.competitor {
  background: linear-gradient(90deg, rgba(200, 110, 140, 0.5), rgba(200, 110, 140, 0.8));
}

.breakdown-bar span {
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
}

.benchmark-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 600;
}

.benchmark-summary.winning {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}

.benchmark-summary.losing {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}

.benchmark-summary.tie {
  background: rgba(234, 179, 8, 0.15);
  color: #ca8a04;
}

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

/* Comparison Report Styles */
.comparison-report {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.comparison-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.comparison-column {
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.3) 0%, rgba(240, 248, 255, 0.15) 100%);
  border: 2px solid rgba(60, 130, 190, 0.2);
}

.comparison-column.yours {
  border-color: rgba(34, 197, 94, 0.3);
}

.comparison-column.competitor {
  border-color: rgba(200, 110, 140, 0.3);
}

.comparison-column h4 {
  margin: 0 0 16px 0;
  font-size: 1rem;
  color: var(--liquid-text);
}

.comparison-column .strengths-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comparison-column .strengths-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--liquid-text);
}

.strength-icon {
  font-size: 0.9rem;
}

.comparison-column.yours .strength-icon {
  color: #16a34a;
}

.comparison-column.competitor .strength-icon {
  color: #ca8a04;
}

.no-items {
  font-size: 0.85rem;
  color: var(--liquid-text-muted);
  font-style: italic;
}

.comparison-recommendations {
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.25) 0%, rgba(240, 248, 255, 0.1) 100%);
  border: 2px solid rgba(60, 130, 190, 0.2);
}

.comparison-recommendations h4 {
  margin: 0 0 16px 0;
  font-size: 1rem;
  color: var(--liquid-text);
}

.recommendations-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recommendations-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  border-left: 4px solid;
}

.recommendations-list li.priority-high {
  border-left-color: #dc2626;
}

.recommendations-list li.priority-medium {
  border-left-color: #ca8a04;
}

.recommendations-list li.priority-low {
  border-left-color: #16a34a;
}

.rec-priority {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 8px;
  flex-shrink: 0;
}

.priority-high .rec-priority {
  background: rgba(239, 68, 68, 0.2);
  color: #dc2626;
}

.priority-medium .rec-priority {
  background: rgba(234, 179, 8, 0.2);
  color: #ca8a04;
}

.priority-low .rec-priority {
  background: rgba(34, 197, 94, 0.2);
  color: #16a34a;
}

.rec-message {
  font-size: 0.9rem;
  color: var(--liquid-text);
}

.comparison-signals {
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.25) 0%, rgba(240, 248, 255, 0.1) 100%);
}

.comparison-signals h4 {
  margin: 0 0 12px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--liquid-text);
}

.comparison-signals-legend {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  font-size: 0.75rem;
  color: var(--liquid-text-muted);
}

.comparison-signals-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.comparison-signals-legend .legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.comparison-signals-legend .legend-dot.yours {
  background: rgba(60, 130, 190, 0.85);
}

.comparison-signals-legend .legend-dot.competitor {
  background: rgba(200, 110, 140, 0.75);
}

.signal-bars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.signal-row {
  display: grid;
  grid-template-columns: minmax(140px, 180px) 1fr 60px;
  align-items: center;
  gap: 16px;
}

.signal-name {
  font-size: 0.82rem;
  color: var(--liquid-text);
  word-break: break-word;
  line-height: 1.3;
}

.signal-bar-container {
  height: 24px;
  background: rgba(200, 200, 200, 0.25);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.signal-bar {
  position: absolute;
  left: 0;
  height: 11px;
  border-radius: 6px 6px 0 0;
  transition: width 0.5s ease;
}

.signal-bar.yours {
  top: 1px;
  background: linear-gradient(90deg, rgba(60, 130, 190, 0.85), rgba(80, 150, 210, 0.75));
}

.signal-bar.competitor {
  top: 12px;
  height: 11px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, rgba(200, 110, 140, 0.75), rgba(220, 130, 160, 0.65));
}

.signal-diff {
  text-align: right;
  font-size: 0.85rem;
  font-weight: 700;
}

.signal-diff.positive {
  color: #16a34a;
}

.signal-diff.negative {
  color: #dc2626;
}

/* Competitor Benchmark Button */
.competitor-benchmark-btn {
  background: linear-gradient(135deg, rgba(60, 130, 190, 0.8), rgba(100, 160, 210, 0.9));
}

.competitor-compare-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.4) 0%, rgba(240, 248, 255, 0.25) 100%);
  border: 2px solid rgba(60, 130, 190, 0.3);
  border-radius: 12px;
  color: var(--liquid-text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.competitor-compare-toggle:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.5) 0%, rgba(240, 248, 255, 0.35) 100%);
  border-color: rgba(60, 130, 190, 0.5);
}

.competitor-compare-toggle svg {
  width: 16px;
  height: 16px;
}

.competitor-benchmark-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* Responsive adjustments for competitor section */
@media (max-width: 768px) {
  .competitor-header {
    flex-direction: column;
    gap: 16px;
  }

  .score-comparison-grid {
    grid-template-columns: 1fr;
  }

  .competitors-list {
    grid-template-columns: 1fr;
  }

  .competitor-info {
    flex-wrap: wrap;
  }

  .signal-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .signal-name {
    font-size: 0.8rem;
    font-weight: 500;
  }

  .signal-bar-container {
    height: 20px;
  }

  .signal-bar {
    height: 9px;
  }

  .signal-bar.competitor {
    top: 10px;
    height: 9px;
  }

  .signal-diff {
    text-align: left;
    font-size: 0.8rem;
  }

  .comparison-signals-legend {
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* ========================================
   BROWSER WINDOW SHOWCASE SECTION
   PageRank-style browser mockup
   ======================================== */

.browser-showcase-section {
  position: relative;
  padding: 0 24px 96px;
  max-width: 1200px;
  margin: -60px auto 0;
  z-index: 10;
}

.browser-window {
  background: #fff;
  border-radius: 12px;
  box-shadow:
    0 50px 100px -20px rgba(50, 50, 93, 0.25),
    0 30px 60px -30px rgba(0, 0, 0, 0.3),
    0 -2px 6px 0 rgba(0, 0, 0, 0.02);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Browser Toolbar */
.browser-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Traffic Lights */
.browser-traffic-lights {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 12px;
}

.traffic-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transition: opacity 0.2s ease;
}

.traffic-light.red {
  background: #ff5f57;
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.1);
}

.traffic-light.yellow {
  background: #ffbd2e;
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.1);
}

.traffic-light.green {
  background: #28c840;
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.1);
}

.browser-window:hover .traffic-light.red {
  background: #ff5f57;
}

.browser-window:hover .traffic-light.yellow {
  background: #ffbd2e;
}

.browser-window:hover .traffic-light.green {
  background: #28c840;
}

/* Browser Navigation */
.browser-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.browser-menu-icon {
  width: 20px;
  height: 20px;
  color: #666;
  cursor: pointer;
}

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

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

.browser-brand-logo {
  width: 24px;
  height: 24px;
}

.browser-brand-text {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

.browser-brand-text .brand-ai {
  font-weight: 400;
  color: #666;
  font-size: 11px;
  vertical-align: super;
  margin-left: 1px;
}

/* Browser Search Box */
.browser-search {
  flex: 1;
  max-width: 480px;
  margin: 0 auto;
}

.browser-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.browser-search-box:hover {
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.browser-search-box .search-icon {
  width: 16px;
  height: 16px;
  color: #999;
}

.browser-search-box .search-placeholder {
  flex: 1;
  color: #999;
  font-size: 13px;
}

.browser-search-box .search-shortcut {
  padding: 2px 8px;
  background: #f0f0f0;
  border-radius: 4px;
  font-size: 12px;
  color: #666;
  font-family: ui-monospace, monospace;
}

/* Browser Toolbar Actions */
.browser-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toolbar-action-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
}

.toolbar-action-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #333;
}

.toolbar-action-btn svg {
  width: 18px;
  height: 18px;
}

.toolbar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(0, 0, 0, 0.08);
}

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

/* Browser Content */
.browser-content {
  background: #f8f9fa;
  line-height: 0;
}

.browser-screenshot {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .browser-showcase-section {
    padding: 0 16px 64px;
    margin-top: -40px;
  }
}

@media (max-width: 768px) {
  .browser-showcase-section {
    padding: 0 12px 48px;
    margin-top: 110px;
  }

  .browser-toolbar {
    padding: 10px 12px;
    gap: 10px;
  }

  .browser-search {
    display: none;
  }

  .browser-brand-text {
    font-size: 13px;
  }

  .browser-brand-logo {
    width: 20px;
    height: 20px;
  }

  .traffic-light {
    width: 10px;
    height: 10px;
  }

  .browser-traffic-lights {
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .browser-toolbar-actions {
    display: none;
  }

  .browser-nav {
    gap: 8px;
  }

  .browser-menu-icon {
    width: 18px;
    height: 18px;
  }
}

/* ========================================
   LARGE SCREEN ENHANCEMENTS
   Scale up elements for better presence on large displays
   ======================================== */

/* Large desktop screens (1440px and above) */
@media (min-width: 1440px) {
  /* Increase container width */
  .container {
    max-width: 1400px;
  }

  /* Scale hero typography */
  .hero h1 {
    font-size: 5.5rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 54px;
  }

  .hero-content {
    max-width: 850px;
  }

  /* Scale input group */
  .input-group-wrapper {
    transform: scale(1.08);
    transform-origin: center top;
  }

  /* Browser showcase */
  .browser-showcase-section {
    max-width: 1400px;
    margin-top: -80px;
  }

  .browser-toolbar {
    padding: 14px 20px;
  }

  .traffic-light {
    width: 14px;
    height: 14px;
  }

  /* Navigation */
  .nav-link {
    font-size: 1rem;
    padding: 10px 20px;
  }

  /* How it works section */
  .comic-main-title {
    font-size: 2.75rem;
  }

  .comic-main-panel {
    min-height: 520px;
  }

  .step-title {
    font-size: 1.75rem;
  }

  .step-subtitle {
    font-size: 1.1rem;
  }

  /* Footer */
  .site-footer {
    padding: 48px 24px;
  }

  .social-link {
    width: 44px;
    height: 44px;
  }
}

/* Extra large screens (1600px and above) */
@media (min-width: 1600px) {
  /* Even larger container */
  .container {
    max-width: 1540px;
  }

  /* Hero scaling */
  .hero h1 {
    font-size: 6rem;
  }

  .hero-subtitle {
    font-size: 1.65rem;
    margin-bottom: 60px;
  }

  .hero-content {
    max-width: 920px;
  }

  .hero {
    padding: 100px 32px;
  }

  /* Input group */
  .input-group-wrapper {
    transform: scale(1.12);
  }

  /* Browser showcase */
  .browser-showcase-section {
    max-width: 1500px;
    margin-top: -100px;
    padding: 0 32px 120px;
  }

  .browser-toolbar {
    padding: 16px 24px;
    gap: 20px;
  }

  .traffic-light {
    width: 15px;
    height: 15px;
  }

  .browser-brand-text {
    font-size: 17px;
  }

  .browser-brand-logo {
    width: 28px;
    height: 28px;
  }

  /* Header navigation - large screens */
  .header .nav {
    gap: 32px;
  }

  .header .nav-link {
    font-size: 14px;
  }

  .header .nav-link-cta {
    padding: 10px 22px;
  }

  /* Header logo */
  .header .logo {
    font-size: 20px;
    gap: 12px;
  }

  .header .logo .logo-icon {
    width: 44px;
    height: 44px;
  }

  /* How it works section */
  .how-it-works-section {
    padding: 120px 0 100px;
  }

  .comic-main-title {
    font-size: 3rem;
    margin-bottom: 56px;
  }

  .comic-main-panel {
    min-height: 580px;
    padding: 48px;
  }

  .step-title {
    font-size: 1.9rem;
  }

  .step-subtitle {
    font-size: 1.15rem;
  }

  .comic-nav-dots {
    gap: 20px;
  }

  .dot-number {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .dot-label {
    font-size: 0.85rem;
  }

  /* Chat windows in steps */
  .chat-window {
    max-width: 520px;
  }

  .chat-message p {
    font-size: 1rem;
  }
}

/* Ultra-wide screens (1920px and above) */
@media (min-width: 1920px) {
  .container {
    max-width: 1700px;
  }

  .hero h1 {
    font-size: 6.5rem;
  }

  .hero-subtitle {
    font-size: 1.75rem;
    margin-bottom: 64px;
  }

  .hero-content {
    max-width: 1000px;
  }

  .input-group-wrapper {
    transform: scale(1.18);
  }

  .browser-showcase-section {
    max-width: 1650px;
    margin-top: -120px;
  }

  .how-it-works-section {
    padding: 140px 0 120px;
  }

  .comic-main-title {
    font-size: 3.25rem;
  }

  .comic-main-panel {
    min-height: 640px;
    padding: 56px;
  }

  /* Scale clouds, islands, and badges for large screens */
  .pagerank-cloud-1 {
    width: 380px;
    top: 8rem;
    right: -4rem;
  }

  .pagerank-cloud-2 {
    width: 660px;
    top: 34rem;
    left: -6rem;
  }

  .island-1 {
    width: 120px;
  }

  .island-2 {
    width: 80px;
  }

  .island-3 {
    width: 220px;
  }

  .ai-float-badge {
    width: 90px;
    height: 90px;
  }

  .ai-float-badge img {
    width: 40px;
    height: 40px;
  }

  .ai-float-badge-copilot img {
    width: 44px;
    height: 44px;
  }
}

/* 4K and larger screens (2560px and above) */
@media (min-width: 2560px) {
  .container {
    max-width: 2000px;
  }

  .hero h1 {
    font-size: 7.5rem;
  }

  .hero-subtitle {
    font-size: 2rem;
  }

  .hero-content {
    max-width: 1150px;
  }

  .input-group-wrapper {
    transform: scale(1.25);
  }

  .browser-showcase-section {
    max-width: 1900px;
    margin-top: -140px;
  }

  .comic-main-panel {
    min-height: 720px;
  }
}

@media (max-width: 900px) {
  .report-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 12px 12px 14px;
  }

  .report-toolbar-note {
    padding-left: 8px;
  }

  .print-report-btn {
    width: 100%;
    justify-content: center;
  }

  .report-error-state-inner {
    padding: 16px 16px 18px;
  }

  .report-error-btn {
    width: 100%;
    justify-content: center;
  }

  .report-unlock-row,
  .report-otp-row {
    flex-direction: column;
  }

  .report-unlock-row button,
  .report-otp-row button {
    width: 100%;
  }

  .report-otp-code-wrap {
    max-width: none;
  }

  #results.report-locked .page-preview-section .preview-stage {
    max-height: 260px;
  }
}

@media (max-width: 560px) {
  .report-paywall-card {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .report-paywall-headline h3 {
    font-size: 1.5rem;
  }

  .report-unlock-form,
  .report-otp-form {
    padding: 0;
  }

  .report-unlock-row input {
    padding: 16px 20px;
    font-size: 1rem;
  }

  .report-unlock-row button,
  .report-otp-row button {
    min-height: 50px;
    font-size: 0.95rem;
  }

  .report-otp-slot {
    max-width: 58px;
    border-radius: 12px;
    font-size: 1.4rem;
  }

  .report-otp-slots {
    gap: 6px;
  }
}

@media print {
  body {
    background: #fff !important;
  }

  body * {
    visibility: hidden !important;
  }

  #results,
  #results * {
    visibility: visible !important;
  }

  #results {
    display: block !important;
    position: static !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
  }

  #results .container {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
  }

  #results .print-report-header {
    display: block !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  #results .report-toolbar,
  #results .report-error-state,
  #results .report-paywall-mask,
  #results .tabs,
  #results .view-toggle,
  #results .preview-gate-fade,
  #results .open-page-btn,
  #results .query-sim-input-group,
  #results #querySimBtn,
  #results #runLLMAnalysisBtn,
  #results #discoverCompetitorsBtn,
  #results #runCompetitorBenchmarkBtn,
  #results #toggleCompetitorComparisonBtn,
  #results .show-comparison-btn,
  #results .refresh-benchmark-btn {
    display: none !important;
  }

  #results .score-cards,
  #results .page-preview-section,
  #results .tab-pane {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  #results .gated-report-shell {
    margin-top: 12px;
  }

  #results .tab-content {
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  #results .tab-pane {
    display: block !important;
    margin-bottom: 28px !important;
  }

  #results .preview-stage {
    max-height: none !important;
  }
}
