/* ================================================================
   BLOGVAULT PRO — CSS DESIGN SYSTEM (2026 Edition)
   ================================================================ */

/* ── CSS Custom Properties ── */
:root {
  --bv-bg-void: #050508;
  --bv-bg-surface: #0d0d14;
  --bv-bg-elevated: #13131f;
  --bv-accent-primary: #6c63ff;
  --bv-accent-cyan: #00d4ff;
  --bv-accent-green: #00ff94;
  --bv-accent-amber: #ffb700;
  --bv-accent-red: #ff4757;
  --bv-accent-purple: #a855f7;
  --bv-text-primary: #f0f0ff;
  --bv-text-muted: #6b7280;
  --bv-glass-border: rgba(108, 99, 255, 0.2);
  --bv-glass-bg: rgba(13, 13, 20, 0.7);
  --bv-gradient-hero: linear-gradient(135deg, #6c63ff 0%, #00d4ff 100%);
  --bv-gradient-red: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
  --bv-gradient-amber: linear-gradient(135deg, #ffb700 0%, #ffd166 100%);
  --bv-gradient-cyan: linear-gradient(135deg, #00d4ff 0%, #00e5ff 100%);
  --bv-gradient-green: linear-gradient(135deg, #00ff94 0%, #69f0ae 100%);
  --bv-radius: 16px;
  --bv-radius-sm: 10px;
  --bv-radius-xs: 6px;
  --bv-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --bv-shadow-glow: 0 0 40px rgba(108, 99, 255, 0.15);
  --bv-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --bv-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --bv-font-heading: 'Space Grotesk', 'Inter', sans-serif;
  --bv-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ── Light Mode Override ── */
.bv-light {
  --bv-bg-void: #f5f5fa;
  --bv-bg-surface: #ffffff;
  --bv-bg-elevated: #f0f0f8;
  --bv-text-primary: #1a1a2e;
  --bv-text-muted: #6b7280;
  --bv-glass-bg: rgba(255, 255, 255, 0.85);
  --bv-glass-border: rgba(108, 99, 255, 0.15);
  --bv-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --bv-shadow-glow: 0 0 40px rgba(108, 99, 255, 0.08);
}

/* ── Page Base ── */
.bv-page {
  background: var(--bv-bg-void);
  color: var(--bv-text-primary);
  font-family: var(--bv-font-body);
  line-height: 1.7;
  font-size: 18px;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.bv-page *,
.bv-page *::before,
.bv-page *::after {
  box-sizing: border-box;
}

/* ── Skip to Content (Accessibility) ── */
.bv-skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--bv-accent-primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--bv-radius-xs);
  z-index: 10000;
  font-size: 14px;
  text-decoration: none;
}

.bv-skip-link:focus {
  top: 16px;
}

/* ── 3D Particle Canvas ── */
#bv-particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Floating Nav ── */
.bv-floating-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: var(--bv-glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--bv-glass-border);
  border-radius: 100px;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: var(--bv-shadow);
  transition: var(--bv-transition);
}

.bv-floating-nav a {
  color: var(--bv-text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}

.bv-floating-nav a:hover,
.bv-floating-nav a.active {
  color: var(--bv-accent-primary);
}

.bv-floating-nav .bv-nav-brand {
  font-family: var(--bv-font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--bv-text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.bv-floating-nav .bv-nav-brand span {
  background: var(--bv-gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bv-theme-toggle {
  background: none;
  border: 1px solid var(--bv-glass-border);
  color: var(--bv-text-primary);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: var(--bv-transition);
}

.bv-theme-toggle:hover {
  background: var(--bv-accent-primary);
  color: #fff;
  border-color: var(--bv-accent-primary);
}

/* ── Wrapper ── */
.bv-wrapper {
  position: relative;
  z-index: 1;
}

/* ================================================================
   HERO SECTION
   ================================================================ */
.bv-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  text-align: center;
  position: relative;
}

.bv-hero-content {
  max-width: 800px;
  width: 100%;
}

.bv-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid var(--bv-glass-border);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bv-accent-cyan);
  margin-bottom: 32px;
  letter-spacing: 0.5px;
}

.bv-hero h1 {
  font-family: var(--bv-font-heading);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 24px;
  background: var(--bv-gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bv-hero h1 .bv-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--bv-accent-primary);
  margin-left: 4px;
  animation: bv-blink 1s infinite;
  vertical-align: text-bottom;
  -webkit-text-fill-color: initial;
}

@keyframes bv-blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

.bv-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--bv-text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ── Input Tab Switcher ── */
.bv-input-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
}

.bv-tab-btn {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--bv-font-body);
  border: 1px solid var(--bv-glass-border);
  background: transparent;
  color: var(--bv-text-muted);
  cursor: pointer;
  transition: var(--bv-transition);
}

.bv-tab-btn:first-child {
  border-radius: 100px 0 0 100px;
}

.bv-tab-btn:last-child {
  border-radius: 0 100px 100px 0;
  border-left: none;
}

.bv-tab-btn.active {
  background: var(--bv-accent-primary);
  color: #fff;
  border-color: var(--bv-accent-primary);
}

/* ── Textarea ── */
.bv-textarea-wrap {
  position: relative;
  margin-bottom: 24px;
}

.bv-textarea {
  width: 100%;
  min-height: 200px;
  padding: 24px;
  font-family: var(--bv-font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--bv-text-primary);
  background: var(--bv-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bv-glass-border);
  border-radius: var(--bv-radius);
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

.bv-textarea:focus {
  border-color: var(--bv-accent-primary);
}

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

.bv-char-counter {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-size: 12px;
  font-family: var(--bv-font-mono);
  color: var(--bv-text-muted);
  pointer-events: none;
}

/* ── URL Input ── */
.bv-url-input-wrap {
  display: none;
  margin-bottom: 24px;
}

.bv-url-input-wrap.active {
  display: block;
}

.bv-url-input {
  width: 100%;
  padding: 16px 24px;
  font-family: var(--bv-font-body);
  font-size: 15px;
  color: var(--bv-text-primary);
  background: var(--bv-glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--bv-glass-border);
  border-radius: var(--bv-radius);
  outline: none;
  transition: border-color 0.2s;
}

.bv-url-input:focus {
  border-color: var(--bv-accent-primary);
}

/* ── Input Fields Row ── */
.bv-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.bv-field {
  text-align: left;
}

.bv-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--bv-text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bv-field input,
.bv-field select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--bv-font-body);
  font-size: 14px;
  color: var(--bv-text-primary);
  background: var(--bv-bg-elevated);
  border: 1px solid var(--bv-glass-border);
  border-radius: var(--bv-radius-sm);
  outline: none;
  transition: border-color 0.2s;
}

.bv-field input:focus,
.bv-field select:focus {
  border-color: var(--bv-accent-primary);
}

.bv-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.bv-word-count-display {
  font-family: var(--bv-font-mono);
  font-size: 14px;
  color: var(--bv-accent-cyan);
  padding: 12px 16px;
  background: var(--bv-bg-elevated);
  border: 1px solid var(--bv-glass-border);
  border-radius: var(--bv-radius-sm);
  display: flex;
  align-items: center;
}

/* ── CTA Button ── */
.bv-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 48px;
  font-family: var(--bv-font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: var(--bv-gradient-hero);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 0 30px rgba(108, 99, 255, 0.3);
  animation: bv-pulse-glow 3s infinite;
  min-width: 300px;
}

.bv-cta-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 50px rgba(108, 99, 255, 0.5);
}

.bv-cta-btn:active {
  transform: scale(0.98);
}

.bv-cta-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  animation: none;
}

@keyframes bv-pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 30px rgba(108, 99, 255, 0.3);
  }

  50% {
    box-shadow: 0 0 50px rgba(108, 99, 255, 0.5), 0 0 80px rgba(0, 212, 255, 0.2);
  }
}

/* ── Trust Badges ── */
.bv-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.bv-trust-badge {
  font-size: 13px;
  color: var(--bv-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.bv-trust-badge .bv-check {
  color: var(--bv-accent-green);
}

/* ── Shake Animation (Error) ── */
@keyframes bv-shake {

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

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-6px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(6px);
  }
}

.bv-shake {
  animation: bv-shake 0.5s ease-in-out;
}

/* ================================================================
   LOADING OVERLAY
   ================================================================ */
.bv-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  background: rgba(5, 5, 8, 0.92);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.bv-loading-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.bv-loading-inner {
  text-align: center;
  max-width: 480px;
  padding: 48px;
}

.bv-loading-title {
  font-family: var(--bv-font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--bv-text-primary);
  margin-bottom: 32px;
}

.bv-loading-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  text-align: left;
}

.bv-loading-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: 15px;
  color: var(--bv-text-muted);
  opacity: 0.4;
  transition: opacity 0.3s, color 0.3s;
}

.bv-loading-step.active {
  opacity: 1;
  color: var(--bv-text-primary);
}

.bv-loading-step.done {
  opacity: 1;
  color: var(--bv-accent-green);
}

.bv-loading-step .step-icon {
  width: 24px;
  text-align: center;
  font-size: 16px;
}

.bv-loading-step .step-check {
  display: none;
}

.bv-loading-step.done .step-icon {
  display: none;
}

.bv-loading-step.done .step-check {
  display: inline;
  color: var(--bv-accent-green);
}

.bv-loading-progress {
  width: 100%;
  height: 4px;
  background: var(--bv-bg-elevated);
  border-radius: 100px;
  overflow: hidden;
}

.bv-loading-progress-fill {
  height: 100%;
  background: var(--bv-gradient-hero);
  border-radius: 100px;
  width: 0%;
  transition: width 0.3s ease-out;
}

/* ================================================================
   TOAST NOTIFICATION
   ================================================================ */
.bv-toast {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 3000;
  background: var(--bv-bg-elevated);
  border: 1px solid var(--bv-accent-green);
  border-radius: var(--bv-radius-sm);
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bv-accent-green);
  box-shadow: var(--bv-shadow);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.bv-toast.show {
  transform: translateX(0);
}

/* ================================================================
   ANALYSIS DASHBOARD
   ================================================================ */
.bv-dashboard {
  display: none;
  padding: 80px 24px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.bv-dashboard.active {
  display: block;
}

.bv-dashboard-header {
  text-align: center;
  margin-bottom: 56px;
}

.bv-dashboard-header h2 {
  font-family: var(--bv-font-heading);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  margin: 0;
}

/* ── Master Score Gauge ── */
.bv-master-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 56px;
}

.bv-score-gauge {
  position: relative;
  width: 240px;
  height: 240px;
  margin-bottom: 16px;
}

.bv-score-gauge canvas {
  width: 100% !important;
  height: 100% !important;
}

.bv-score-gauge-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--bv-font-mono);
  font-size: 56px;
  font-weight: 800;
  color: var(--bv-text-primary);
}

.bv-score-gauge-value small {
  font-size: 24px;
  color: var(--bv-text-muted);
  font-weight: 400;
}

.bv-score-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--bv-text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bv-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
}

.bv-score-badge.critical {
  background: rgba(255, 71, 87, 0.15);
  color: var(--bv-accent-red);
}

.bv-score-badge.needs-work {
  background: rgba(255, 183, 0, 0.15);
  color: var(--bv-accent-amber);
}

.bv-score-badge.good {
  background: rgba(0, 212, 255, 0.15);
  color: var(--bv-accent-cyan);
}

.bv-score-badge.excellent {
  background: rgba(0, 255, 148, 0.15);
  color: var(--bv-accent-green);
}

/* ── Sub-Score Cards Grid ── */
.bv-subscore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.bv-subscore-card {
  background: var(--bv-glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--bv-glass-border);
  border-radius: var(--bv-radius);
  padding: 24px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.bv-subscore-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--bv-shadow-glow);
}

.bv-subscore-chart {
  width: 100px;
  height: 100px;
  margin: 0 auto 16px;
  position: relative;
}

.bv-subscore-chart canvas {
  width: 100% !important;
  height: 100% !important;
}

.bv-subscore-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--bv-font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--bv-text-primary);
}

.bv-subscore-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--bv-text-primary);
  margin-bottom: 4px;
}

.bv-subscore-max {
  font-size: 12px;
  color: var(--bv-text-muted);
  font-family: var(--bv-font-mono);
}

/* ================================================================
   MODULE CARDS
   ================================================================ */
.bv-modules {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 56px;
}

.bv-module {
  background: var(--bv-glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--bv-glass-border);
  border-radius: var(--bv-radius);
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.bv-module:hover {
  box-shadow: var(--bv-shadow-glow);
}

.bv-module.bv-ai-module {
  border-color: var(--bv-accent-purple);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.1);
  position: relative;
  overflow: visible;
}

.bv-module.bv-ai-module::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: var(--bv-radius);
  background: linear-gradient(135deg, var(--bv-accent-purple), var(--bv-accent-primary), var(--bv-accent-cyan));
  opacity: 0.15;
  z-index: -1;
  animation: bv-ai-glow 4s ease-in-out infinite;
}

@keyframes bv-ai-glow {

  0%,
  100% {
    opacity: 0.1;
  }

  50% {
    opacity: 0.25;
  }
}

.bv-module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}

.bv-module-header:hover {
  background: rgba(108, 99, 255, 0.05);
}

.bv-module-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bv-module-icon {
  font-size: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(108, 99, 255, 0.1);
  border-radius: var(--bv-radius-sm);
  flex-shrink: 0;
}

.bv-module-title {
  font-family: var(--bv-font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--bv-text-primary);
}

.bv-module-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bv-module-score-badge {
  font-family: var(--bv-font-mono);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(108, 99, 255, 0.1);
  color: var(--bv-accent-primary);
}

.bv-module-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bv-module-status-dot.pass {
  background: var(--bv-accent-green);
}

.bv-module-status-dot.warn {
  background: var(--bv-accent-amber);
}

.bv-module-status-dot.fail {
  background: var(--bv-accent-red);
}

.bv-module-chevron {
  width: 20px;
  height: 20px;
  color: var(--bv-text-muted);
  transition: transform 0.3s;
}

.bv-module.expanded .bv-module-chevron {
  transform: rotate(180deg);
}

/* ── Module Body ── */
.bv-module-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bv-module.expanded .bv-module-body {
  max-height: 5000px;
}

.bv-module-body-inner {
  padding: 0 24px 24px;
  border-top: 1px solid var(--bv-glass-border);
}

/* ── Check Items ── */
.bv-check-item {
  padding: 16px 0;
  border-bottom: 1px solid rgba(108, 99, 255, 0.08);
}

.bv-check-item:last-child {
  border-bottom: none;
}

.bv-check-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.bv-check-status {
  font-size: 16px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.bv-check-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--bv-text-primary);
}

.bv-check-detail {
  font-size: 13px;
  color: var(--bv-text-muted);
  line-height: 1.6;
  padding-left: 34px;
}

.bv-check-fix {
  margin-top: 8px;
  padding: 12px 16px;
  background: rgba(108, 99, 255, 0.06);
  border-radius: var(--bv-radius-xs);
  font-size: 13px;
  color: var(--bv-accent-cyan);
  margin-left: 34px;
  border-left: 3px solid var(--bv-accent-primary);
}

/* ── Preview Boxes ── */
.bv-preview-box {
  margin: 8px 0 0 34px;
  padding: 12px 16px;
  background: var(--bv-bg-elevated);
  border-radius: var(--bv-radius-xs);
  font-family: var(--bv-font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--bv-text-muted);
  max-height: 120px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── Semantic Coverage Grid ── */
.bv-semantic-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0 34px;
}

.bv-semantic-tile {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--bv-font-mono);
}

.bv-semantic-tile.found {
  background: rgba(0, 255, 148, 0.15);
  color: var(--bv-accent-green);
}

.bv-semantic-tile.missing {
  background: rgba(255, 71, 87, 0.15);
  color: var(--bv-accent-red);
}

/* ── Info Gain Meter ── */
.bv-meter {
  margin: 12px 0 0 34px;
  height: 8px;
  background: var(--bv-bg-elevated);
  border-radius: 100px;
  overflow: hidden;
  display: flex;
}

.bv-meter-fill {
  height: 100%;
  transition: width 1s ease-out;
}

.bv-meter-fill.recycled {
  background: var(--bv-accent-red);
}

.bv-meter-fill.value-added {
  background: var(--bv-accent-amber);
}

.bv-meter-fill.original {
  background: var(--bv-accent-green);
}

.bv-meter-labels {
  display: flex;
  justify-content: space-between;
  margin: 4px 0 0 34px;
  font-size: 11px;
  color: var(--bv-text-muted);
}

/* ── Heading Tree ── */
.bv-heading-tree {
  margin: 12px 0 0 34px;
  font-family: var(--bv-font-mono);
  font-size: 12px;
  line-height: 2;
}

.bv-heading-tree-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bv-heading-tree-item .indent {
  display: inline-block;
  width: 16px;
}

.bv-heading-tree-item.pass {
  color: var(--bv-accent-green);
}

.bv-heading-tree-item.fail {
  color: var(--bv-accent-red);
}

/* ── Image Audit Table ── */
.bv-audit-table {
  margin: 12px 0 0 34px;
  width: calc(100% - 34px);
  border-collapse: collapse;
  font-size: 12px;
}

.bv-audit-table th {
  text-align: left;
  padding: 8px 12px;
  font-weight: 600;
  color: var(--bv-text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--bv-glass-border);
}

.bv-audit-table td {
  padding: 8px 12px;
  color: var(--bv-text-primary);
  border-bottom: 1px solid rgba(108, 99, 255, 0.05);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Schema JSON Inspector ── */
.bv-schema-inspector {
  margin: 12px 0 0 34px;
  background: var(--bv-bg-elevated);
  border-radius: var(--bv-radius-sm);
  padding: 16px;
  font-family: var(--bv-font-mono);
  font-size: 12px;
  line-height: 1.8;
}

.bv-schema-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.bv-schema-field .key {
  color: var(--bv-accent-cyan);
}

.bv-schema-field .value {
  color: var(--bv-text-muted);
}

.bv-schema-field .status {
  margin-left: auto;
  font-size: 14px;
}

/* ── Paragraph Heatmap ── */
.bv-heatmap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 12px 0 0 34px;
}

.bv-heatmap-cell {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s;
  position: relative;
}

.bv-heatmap-cell:hover {
  transform: scale(1.3);
  z-index: 2;
}

.bv-heatmap-cell.good {
  background: var(--bv-accent-green);
  opacity: 0.7;
}

.bv-heatmap-cell.warn {
  background: var(--bv-accent-amber);
  opacity: 0.7;
}

.bv-heatmap-cell.bad {
  background: var(--bv-accent-red);
  opacity: 0.7;
}

/* ── Readability Gauge Arc ── */
.bv-gauge-arc {
  width: 200px;
  height: 120px;
  margin: 12px auto 0;
  position: relative;
}

.bv-gauge-arc canvas {
  width: 100% !important;
  height: 100% !important;
}

/* ── Entity Cloud ── */
.bv-entity-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0 34px;
}

.bv-entity-pill {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(108, 99, 255, 0.1);
  color: var(--bv-accent-primary);
  border: 1px solid var(--bv-glass-border);
}

.bv-entity-pill.large {
  font-size: 15px;
  padding: 6px 16px;
}

.bv-entity-pill.medium {
  font-size: 13px;
}

/* ── Star Rating ── */
.bv-star-rating {
  display: flex;
  gap: 4px;
  margin: 8px 0 0 34px;
}

.bv-star {
  font-size: 24px;
  color: var(--bv-bg-elevated);
  transition: color 0.3s;
}

.bv-star.filled {
  color: var(--bv-accent-amber);
}

.bv-star.half {
  background: linear-gradient(90deg, var(--bv-accent-amber) 50%, var(--bv-bg-elevated) 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Why This Matters Section ── */
.bv-why-matters {
  margin-top: 20px;
  padding: 16px;
  background: rgba(168, 85, 247, 0.06);
  border-radius: var(--bv-radius-xs);
  border-left: 3px solid var(--bv-accent-purple);
}

.bv-why-matters h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--bv-accent-purple);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bv-why-matters p {
  font-size: 13px;
  color: var(--bv-text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ── Copy Button ── */
.bv-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--bv-font-body);
  background: var(--bv-bg-elevated);
  border: 1px solid var(--bv-glass-border);
  border-radius: var(--bv-radius-xs);
  color: var(--bv-accent-cyan);
  cursor: pointer;
  margin-top: 8px;
  transition: var(--bv-transition);
}

.bv-copy-btn:hover {
  background: var(--bv-accent-primary);
  color: #fff;
  border-color: var(--bv-accent-primary);
}

/* ── Code Block ── */
.bv-code-block {
  margin: 12px 0 0 34px;
  padding: 16px;
  background: var(--bv-bg-void);
  border: 1px solid var(--bv-glass-border);
  border-radius: var(--bv-radius-xs);
  font-family: var(--bv-font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--bv-accent-cyan);
  overflow-x: auto;
  white-space: pre;
  position: relative;
}

.bv-code-block .bv-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  margin-top: 0;
}

/* ================================================================
   EXPORT & ACTION ZONE
   ================================================================ */
.bv-export-zone {
  background: var(--bv-glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--bv-glass-border);
  border-radius: var(--bv-radius);
  padding: 32px;
  margin-bottom: 40px;
}

.bv-export-zone h3 {
  font-family: var(--bv-font-heading);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 24px;
}

.bv-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.bv-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--bv-font-body);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--bv-glass-border);
  border-radius: var(--bv-radius-sm);
  background: var(--bv-bg-elevated);
  color: var(--bv-text-primary);
  cursor: pointer;
  transition: var(--bv-transition);
}

.bv-export-btn:hover {
  border-color: var(--bv-accent-primary);
  background: rgba(108, 99, 255, 0.1);
}

/* ── Quick Fix Panel ── */
.bv-quick-fixes {
  margin-top: 24px;
}

.bv-quick-fixes h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--bv-accent-red);
}

.bv-quick-fix-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 16px;
  background: rgba(255, 71, 87, 0.06);
  border-radius: var(--bv-radius-xs);
  margin-bottom: 8px;
}

.bv-quick-fix-priority {
  font-family: var(--bv-font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--bv-accent-red);
  padding: 4px 8px;
  background: rgba(255, 71, 87, 0.15);
  border-radius: 4px;
  flex-shrink: 0;
}

.bv-quick-fix-text {
  flex: 1;
}

.bv-quick-fix-text .error {
  font-size: 14px;
  font-weight: 600;
  color: var(--bv-text-primary);
  margin-bottom: 4px;
}

.bv-quick-fix-text .fix {
  font-size: 13px;
  color: var(--bv-text-muted);
}

.bv-quick-fix-time {
  font-size: 12px;
  color: var(--bv-accent-amber);
  font-weight: 600;
  flex-shrink: 0;
}

/* ── Schema Generator Form ── */
.bv-schema-gen {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--bv-glass-border);
}

.bv-schema-gen h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px;
}

.bv-schema-gen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.bv-schema-gen-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--bv-text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.bv-schema-gen-field input {
  width: 100%;
  padding: 10px 12px;
  font-family: var(--bv-font-body);
  font-size: 13px;
  color: var(--bv-text-primary);
  background: var(--bv-bg-void);
  border: 1px solid var(--bv-glass-border);
  border-radius: var(--bv-radius-xs);
  outline: none;
}

.bv-schema-gen-field input:focus {
  border-color: var(--bv-accent-primary);
}

.bv-schema-gen-output {
  background: var(--bv-bg-void);
  border: 1px solid var(--bv-glass-border);
  border-radius: var(--bv-radius-xs);
  padding: 16px;
  font-family: var(--bv-font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--bv-accent-cyan);
  white-space: pre;
  overflow-x: auto;
  max-height: 400px;
  overflow-y: auto;
}

/* ── Robots.txt Builder ── */
.bv-robots-builder {
  margin: 12px 0 0 34px;
  padding: 16px;
  background: var(--bv-bg-elevated);
  border-radius: var(--bv-radius-sm);
}

.bv-robots-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(108, 99, 255, 0.08);
}

.bv-robots-toggle:last-child {
  border-bottom: none;
}

.bv-robots-toggle label {
  font-size: 13px;
  font-weight: 600;
  color: var(--bv-text-primary);
  cursor: pointer;
}

.bv-robots-toggle .bv-toggle-switch {
  position: relative;
  width: 40px;
  height: 22px;
  background: var(--bv-bg-void);
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s;
}

.bv-robots-toggle input {
  display: none;
}

.bv-robots-toggle input:checked+.bv-toggle-switch {
  background: var(--bv-accent-green);
}

.bv-toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.bv-robots-toggle input:checked+.bv-toggle-switch::after {
  transform: translateX(18px);
}

/* ================================================================
   FOOTER BRAND
   ================================================================ */
.bv-footer-brand {
  text-align: center;
  padding: 56px 24px;
  border-top: 1px solid var(--bv-glass-border);
}

.bv-footer-brand .bv-brand-name {
  font-family: var(--bv-font-heading);
  font-size: 24px;
  font-weight: 800;
  background: var(--bv-gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.bv-footer-brand p {
  font-size: 13px;
  color: var(--bv-text-muted);
  margin: 4px 0;
}

.bv-footer-brand a {
  color: var(--bv-accent-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.bv-footer-brand a:hover {
  color: var(--bv-accent-cyan);
}

/* ── Confetti Canvas ── */
#bv-confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
}

/* ── Skeleton Shimmer ── */
.bv-skeleton {
  background: linear-gradient(90deg, var(--bv-bg-elevated) 25%, rgba(108, 99, 255, 0.08) 50%, var(--bv-bg-elevated) 75%);
  background-size: 200% 100%;
  animation: bv-shimmer 1.5s infinite;
  border-radius: var(--bv-radius-xs);
}

@keyframes bv-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .bv-subscore-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bv-floating-nav {
    padding: 8px 16px;
    gap: 16px;
  }

  .bv-floating-nav a.bv-nav-link {
    display: none;
  }

  .bv-schema-gen-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .bv-page {
    font-size: 18px;
  }

  .bv-hero {
    padding: 100px 16px 60px;
  }

  .bv-input-row {
    grid-template-columns: 1fr;
  }

  .bv-subscore-grid {
    grid-template-columns: 1fr;
  }

  .bv-floating-nav {
    padding: 6px 12px;
    gap: 8px;
    width: calc(100% - 32px);
    border-radius: var(--bv-radius);
  }

  .bv-floating-nav a.bv-nav-link {
    display: none;
  }

  .bv-textarea {
    min-height: 160px;
  }

  .bv-cta-btn {
    width: 100%;
    min-width: unset;
    padding: 16px 24px;
    font-size: 16px;
  }

  .bv-module-header {
    padding: 16px;
  }

  .bv-module-body-inner {
    padding: 0 16px 16px;
  }

  .bv-export-zone {
    padding: 20px;
  }

  .bv-export-actions {
    flex-direction: column;
  }

  .bv-score-gauge {
    width: 180px;
    height: 180px;
  }

  .bv-score-gauge-value {
    font-size: 42px;
  }

  .bv-check-detail,
  .bv-check-fix,
  .bv-preview-box,
  .bv-semantic-grid,
  .bv-meter,
  .bv-meter-labels,
  .bv-heading-tree,
  .bv-code-block,
  .bv-entity-cloud,
  .bv-heatmap,
  .bv-star-rating {
    margin-left: 0;
    padding-left: 0;
  }

  .bv-audit-table {
    margin-left: 0;
    width: 100%;
    display: block;
    overflow-x: auto;
  }

  .bv-quick-fix-item {
    flex-direction: column;
    gap: 8px;
  }
}

/* ── Print Styles ── */
@media print {
  .bv-page {
    background: #fff;
    color: #111;
  }

  #bv-particle-canvas,
  .bv-floating-nav,
  .bv-hero,
  .bv-loading-overlay,
  .bv-toast,
  .bv-cta-btn,
  .bv-export-actions,
  .bv-schema-gen,
  .bv-theme-toggle,
  .bv-copy-btn,
  .site-header,
  .site-footer,
  #bv-confetti-canvas,
  .bv-footer-brand {
    display: none !important;
  }

  .bv-dashboard {
    display: block !important;
    padding: 0;
  }

  .bv-module {
    break-inside: avoid;
    border: 1px solid #ddd;
    margin-bottom: 16px;
  }

  .bv-module-body {
    max-height: none !important;
  }

  .bv-subscore-card {
    border: 1px solid #ddd;
  }

  .bv-glass-bg,
  .bv-glass-border {
    background: #fff;
    border-color: #ddd;
  }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Focus States (Accessibility) ── */
.bv-page *:focus-visible {
  outline: 2px solid var(--bv-accent-primary);
  outline-offset: 2px;
}

.bv-page button:focus-visible,
.bv-page a:focus-visible,
.bv-page input:focus-visible,
.bv-page select:focus-visible,
.bv-page textarea:focus-visible {
  outline: 2px solid var(--bv-accent-primary);
  outline-offset: 2px;
}

/* ── AI Pulse Indicator ── */
.bv-ai-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bv-accent-purple);
  margin-left: 8px;
  animation: bv-ai-pulse-anim 2s ease-in-out infinite;
}

@keyframes bv-ai-pulse-anim {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.6);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(168, 85, 247, 0);
  }
}

/* ── Tooltip Overrides for Tippy ── */
.tippy-box[data-theme~='bv'] {
  background: var(--bv-bg-elevated);
  color: var(--bv-text-primary);
  border: 1px solid var(--bv-glass-border);
  border-radius: var(--bv-radius-xs);
  font-size: 13px;
  line-height: 1.5;
  padding: 4px 8px;
  box-shadow: var(--bv-shadow);
}

.tippy-box[data-theme~='bv'] .tippy-arrow {
  color: var(--bv-bg-elevated);
}