/* ==========================================================================
   Falzio - Enterprise Fraud Prevention & Identity Intelligence Platform
   Professional Mid-Tone Slate SaaS Theme (Balanced, Clean, Anti-Glare & Sleek)
   ========================================================================== */

:root {
  /* Balanced Mid-Tone Slate Palette (Somewhere in the Middle) */
  --bg-main: #f1f5f9;          /* Slate 100 canvas: soft, soothing, zero glare */
  --bg-card: #ffffff;          /* Pure white elevated cards for high clarity */
  --bg-card-hover: #f8fafc;
  --bg-input: #ffffff;         /* Clean white input fields */
  --bg-subtle: #f8fafc;        /* Slate 50 subtle panels */
  --bg-subtle-alt: #e2e8f0;    /* Slate 200 light border/neutral */

  --border-subtle: #e2e8f0;
  --border-card: #cbd5e1;      /* Slate 300 crisp card borders */
  --border-card-hover: #94a3b8;
  --border-focus: #0284c7;

  --text-main: #0f172a;        /* Deep navy slate (Slate 900) */
  --text-muted: #334155;       /* Slate 700 readable secondary text */
  --text-dim: #64748b;         /* Slate 500 metadata / badges */

  --primary: #0284c7;          /* Cobalt Azure Blue */
  --primary-hover: #0369a1;
  --primary-glow: rgba(2, 132, 199, 0.12);
  --primary-dark: #075985;
  --primary-light: #e0f2fe;

  --indigo: #4f46e5;
  --indigo-glow: rgba(79, 70, 229, 0.12);

  --emerald: #059669;          /* Green match */
  --emerald-bg: #ecfdf5;
  --emerald-border: #a7f3d0;

  --rose: #dc2626;             /* Red conflict */
  --rose-bg: #fef2f2;
  --rose-border: #fecaca;

  --amber: #d97706;            /* Amber warning */
  --amber-bg: #fffbeb;
  --amber-border: #fde68a;

  --purple: #7c3aed;
  --cyan: #0284c7;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-card: 0 2px 10px -2px rgba(15, 23, 42, 0.06), 0 1px 3px 0 rgba(15, 23, 42, 0.04);
  --shadow-card-hover: 0 10px 25px -4px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
  --shadow-glow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

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

body {
  background-color: #f8fafc;
  background-image: 
    radial-gradient(ellipse at 15% 0%, rgba(2, 132, 199, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 85% 15%, rgba(79, 70, 229, 0.06) 0%, transparent 55%),
    radial-gradient(rgba(148, 163, 184, 0.22) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 28px 28px;
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Tab Display Isolation (Fix: Each tab renders strictly on its own view)
   ========================================================================== */
.tab-content {
  display: none !important;
}

.tab-content.active-tab {
  display: block !important;
}

/* --------------------------------------------------------------------------
   Navigation & Header
   -------------------------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--border-card);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.brand-group:hover .brand-icon {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.22);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.falzio-wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-main);
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
}

.falzio-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  margin-left: 3px;
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.6);
  transform: translateY(-1px);
}

.badge-tag {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid #bae6fd;
}

.brand-sub {
  font-size: 0.76rem;
  color: var(--text-dim);
  font-weight: 500;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 7px;
}

.nav-btn:hover {
  color: var(--text-main);
  background: #e2e8f0;
}

.nav-btn.active {
  color: var(--primary);
  background: var(--primary-light);
  border-color: #bae6fd;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Hero / Intro Section - Modern Split Layout
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 36px 24px 24px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.hero-section.hero-split {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 32px;
  align-items: center;
}

/* --------------------------------------------------------------------------
   Dedicated Executive Header for Tabs 2, 3, and 4
   -------------------------------------------------------------------------- */
.tab-page-header {
  padding: 34px 24px 24px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tab-header-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 10px;
}

.tab-header-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 820px;
}

.hero-left {
  display: flex;
  flex-direction: column;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(240, 249, 255, 0.95);
  border: 1px solid #bae6fd;
  color: #0369a1;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 14px;
  width: fit-content;
  box-shadow: 0 1px 2px rgba(2, 132, 199, 0.06);
}

.beacon-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: beacon-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes beacon-ping {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 12px;
  color: #0f172a;
}

.hero-title .hero-highlight {
  background: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: 1.02rem;
  color: #334155;
  line-height: 1.55;
  margin-bottom: 18px;
  font-weight: 450;
  max-width: 680px;
}

/* 3 Feature Highlight Micro-Cards */
.hero-micro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 4px;
}

.hero-micro-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 13px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-micro-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 6px 14px -3px rgba(15, 23, 42, 0.08);
}

.micro-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.micro-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.micro-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.micro-desc {
  font-size: 0.74rem;
  color: #64748b;
  line-height: 1.45;
}

/* Right Column: Interactive Live Resolution Showcase Card */
.hero-right {
  display: flex;
  flex-direction: column;
}

.hero-showcase-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.07), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-showcase-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0284c7 0%, #10b981 100%);
}

.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.2);
  color: #0284c7;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 6px;
}

.showcase-latency {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 600;
}

.showcase-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.showcase-entry-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.showcase-entry-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  flex-shrink: 0;
}

.tag-a {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.tag-b {
  background: #ede9fe;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.showcase-entry-text {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.showcase-bridge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 2px 0;
}

.bridge-line {
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.bridge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #047857;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

.showcase-comparison-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
}

.comp-meter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

.meter-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.meter-sub {
  font-size: 0.66rem;
  color: #64748b;
}

.meter-score-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
}

.meter-score-badge.match {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

.meter-score-badge.fail {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.showcase-footer-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
  padding-top: 2px;
}

.showcase-footer-hint svg {
  color: #0284c7;
  animation: bounce-hint 1.8s infinite;
}

@keyframes bounce-hint {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(3px);
  }
  60% {
    transform: translateY(1px);
  }
}

/* --------------------------------------------------------------------------
   Preset Sample Strip
   -------------------------------------------------------------------------- */
.presets-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 18px;
  width: 100%;
}

.preset-header {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preset-chips-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.preset-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.preset-chip:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: var(--border-card-hover);
  transform: translateY(-1px);
}

.preset-chip.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}

.chip-tag {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}
.chip-tag.critical {
  background: var(--rose-bg);
  color: var(--rose);
  border: 1px solid var(--rose-border);
}
.chip-tag.success {
  background: var(--emerald-bg);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
}
.chip-tag.info {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid #bae6fd;
}
.chip-tag.warning {
  background: var(--amber-bg);
  color: var(--amber);
  border: 1px solid var(--amber-border);
}

/* --------------------------------------------------------------------------
   Address Input Workspace
   -------------------------------------------------------------------------- */
.main-workspace {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 60px;
  width: 100%;
}

.input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.address-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: all 0.15s ease;
}

.address-box:focus-within {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

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

.box-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.box-pill {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  background: var(--bg-subtle-alt);
  color: var(--text-muted);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.char-counter {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.address-textarea {
  width: 100%;
  height: 96px;
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-main);
  resize: vertical;
  line-height: 1.5;
  transition: all 0.15s ease;
}

.address-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.address-textarea::placeholder {
  color: #94a3b8;
}

/* Action Bar */
.action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 12px;
}

.action-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.action-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: 1px solid #0284c7;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  box-shadow: 0 5px 14px rgba(2, 132, 199, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: var(--border-card-hover);
}

.btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
}

.btn-ghost:hover {
  color: var(--text-main);
  background: var(--bg-subtle-alt);
}

.shortcut-hint {
  font-size: 0.74rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  background: var(--bg-subtle-alt);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   Results Dashboard
   -------------------------------------------------------------------------- */
.results-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeIn 0.25s ease-out;
}

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

/* Dual Score Comparison Banner */
.score-banner-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
}

.score-card-primary {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-card);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.score-card-primary.conflict-border {
  border-color: #fca5a5;
  background: linear-gradient(180deg, #fff5f5 0%, #ffffff 100%);
}

.score-card-primary.match-border {
  border-color: #86efac;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

.score-card-primary.possible-border {
  border-color: #fde68a;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}

.score-card-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.score-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.score-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-main);
}

.score-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.score-badge.status-strong_match,
.score-badge.status-match {
  background: var(--emerald-bg);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
}

.score-badge.status-likely_different,
.score-badge.status-different {
  background: var(--rose-bg);
  color: var(--rose);
  border: 1px solid var(--rose-border);
}

.score-badge.status-possible_match,
.score-badge.status-warning {
  background: var(--amber-bg);
  color: var(--amber);
  border: 1px solid var(--amber-border);
}

.score-badge.status-weak_match,
.score-badge.status-insufficient_information {
  background: var(--bg-subtle-alt);
  color: var(--text-dim);
  border: 1px solid var(--border-subtle);
}

.score-value-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.big-score {
  font-family: var(--font-display);
  font-size: 3.8rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.big-score.score-green { color: var(--emerald); }
.big-score.score-red { color: var(--rose); }
.big-score.score-amber { color: var(--amber); }
.big-score.score-gray { color: var(--text-dim); }

.score-denom {
  font-size: 1.2rem;
  color: var(--text-dim);
  font-weight: 600;
}

.classification-tag {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.classification-tag.class-strong_match { color: var(--emerald); }
.classification-tag.class-likely_different { color: var(--rose); }
.classification-tag.class-possible_match { color: var(--amber); }
.classification-tag.class-weak_match { color: var(--text-muted); }
.classification-tag.class-insufficient_information { color: var(--text-dim); }

.score-progress-bar {
  height: 8px;
  background: var(--bg-subtle-alt);
  border-radius: 4px;
  overflow: hidden;
  margin: 12px 0 16px;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease-out;
}
.progress-fill.fill-green { background: var(--emerald); }
.progress-fill.fill-red { background: var(--rose); }
.progress-fill.fill-amber { background: var(--amber); }

.score-disclaimer {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Deceptive Contrast Callout */
.contrast-alert {
  background: var(--rose-bg);
  border: 1px solid var(--rose-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: #991b1b;
  font-size: 0.9rem;
  line-height: 1.5;
}

.contrast-alert svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--rose);
}

/* Explanation Panel */
.explanation-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.explanation-header {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
}

.explanation-summary {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.explanation-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 0;
}

.explanation-details-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.explanation-details-list li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
}

/* Component Breakdown Table */
.breakdown-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.breakdown-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* Normalized Address Comparison Strip */
/* Normalized Address Comparison Strip - IDE Terminal Styling */
.normalized-banner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  background: #090d16;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.normalized-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.normalized-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.norm-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
}

.norm-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #64748b;
}

.normalized-text {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: #f1f5f9;
  background: #0d1322;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 10px 12px;
  line-height: 1.55;
  word-break: break-word;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.normalized-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  padding: 4px;
}

@media (max-width: 768px) {
  .normalized-banner {
    grid-template-columns: 1fr;
  }
  .normalized-divider {
    transform: rotate(90deg);
  }
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.component-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.component-table th {
  background: var(--bg-subtle);
  color: var(--text-muted);
  padding: 12px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-card);
}

.component-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  vertical-align: middle;
}

.component-table tr:hover {
  background: var(--bg-subtle);
}

.component-cell {
  font-weight: 600;
  color: var(--text-main);
  text-transform: capitalize;
}

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

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.status-badge.status-match {
  background: var(--emerald-bg);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
}

.status-badge.status-different {
  background: var(--rose-bg);
  color: var(--rose);
  border: 1px solid var(--rose-border);
}

.status-badge.status-missing_one_side {
  background: var(--amber-bg);
  color: var(--amber);
  border: 1px solid var(--amber-border);
}

.status-badge.status-not_detected {
  background: var(--bg-subtle-alt);
  color: var(--text-dim);
  border: 1px solid var(--border-subtle);
}

.explanation-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 0;
  margin-bottom: 18px;
}

.explanation-bullets li {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.bullet-icon {
  color: var(--primary);
  font-weight: bold;
}

.signals-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.signal-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
}

.signal-pill.sig-conflict,
.signal-pill.conflict {
  background: var(--rose-bg);
  border-color: var(--rose-border);
  color: var(--rose);
}

.signal-pill.sig-match,
.signal-pill.match {
  background: var(--emerald-bg);
  border-color: var(--emerald-border);
  color: var(--emerald);
}

.signal-pill.sig-info,
.signal-pill.info {
  background: var(--primary-light);
  border-color: #bae6fd;
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   API Playground Tab
   -------------------------------------------------------------------------- */
.api-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.api-spec-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.api-endpoint-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.api-method-badge {
  background: #10b981;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

.api-path-text {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.api-meta-chips {
  display: flex;
  align-items: center;
  gap: 10px;
}

.api-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.builder-quick-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.quick-chip-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.api-quick-btn {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
}

.api-quick-btn:hover {
  background: var(--primary-light);
  border-color: #bae6fd;
  color: var(--primary);
}

.code-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}

.code-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  padding: 6px 14px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.code-tab-btn:hover {
  color: var(--text-main);
  background: var(--bg-subtle-alt);
}

.code-tab-btn.active {
  background: var(--primary-light);
  color: var(--primary);
  border-color: #bae6fd;
}

.code-block-container {
  background: #090d16;
  border: 1px solid #1e293b;
  border-radius: var(--radius-sm);
  padding: 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #f8fafc;
  line-height: 1.55;
}

/* ==========================================================================
   Developer-Grade JSON & Metadata Highlighting (Obsidian IDE Theme)
   ========================================================================== */
.json-viewer-wrapper {
  background: #090d16;
  border: 1px solid #1e293b;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.json-viewer-header {
  background: #0d1322;
  border-bottom: 1px solid #1e293b;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.terminal-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ef4444; box-shadow: 0 0 6px rgba(239, 68, 68, 0.4); }
.dot-yellow { background: #f59e0b; box-shadow: 0 0 6px rgba(245, 158, 11, 0.4); }
.dot-green { background: #10b981; box-shadow: 0 0 6px rgba(16, 185, 129, 0.4); }

.json-viewer-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #94a3b8;
  text-transform: uppercase;
}

.json-copy-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid #334155;
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.json-copy-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: #64748b;
}

.json-code-block {
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  overflow-x: auto;
  color: #e2e8f0;
  max-height: 380px;
}

/* Syntax Highlighting Tokens */
.json-key {
  color: #38bdf8; /* Cyan Sky */
  font-weight: 600;
}

.json-string {
  color: #34d399; /* Emerald Green */
}

.json-number {
  color: #fbbf24; /* Amber Gold */
  font-weight: 600;
}

.json-boolean {
  color: #c084fc; /* Purple */
  font-weight: 700;
}

.json-null {
  color: #94a3b8; /* Muted Slate */
  font-style: italic;
}

.json-punct {
  color: #64748b;
}

/* Inspector Accordion */
.inspector-card {
  margin-top: 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.inspector-toggle {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  transition: background 0.15s ease;
}

.inspector-toggle:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.inspector-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #0284c7;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  padding: 3px 8px;
  border-radius: 5px;
}

.inspector-content {
  padding: 18px;
  background: #f8fafc;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

/* --------------------------------------------------------------------------
   Batch CSV Deduplication Tab
   -------------------------------------------------------------------------- */
.batch-container {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.csv-format-guide {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.csv-format-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: stretch;
}

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

.format-left-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.format-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #0284c7;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.format-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 8px;
}

.format-sub {
  font-size: 0.86rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 20px;
}

.format-column-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.schema-col-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.schema-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar-blue {
  background: #e0f2fe;
  color: #0284c7;
}

.avatar-green {
  background: #dcfce7;
  color: #10b981;
}

.schema-col-content {
  display: flex;
  flex-direction: column;
}

.schema-col-name {
  font-family: var(--font-mono);
  font-size: 0.96rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.schema-col-role {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 3px;
}

.schema-col-desc {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.45;
}

.schema-badges-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.schema-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 5px 12px;
  border-radius: 6px;
}

.badge-dot-check {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CSV Terminal Window */
.format-right-panel {
  display: flex;
  flex-direction: column;
}

.csv-terminal-wrapper {
  background: #090d16;
  border: 1px solid #1e293b;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.csv-terminal-header {
  background: #0d1322;
  border-bottom: 1px solid #1e293b;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.csv-terminal-title {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.terminal-copy-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #334155;
  border-radius: 6px;
  color: #cbd5e1;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.terminal-copy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #475569;
  color: #ffffff;
}

.csv-terminal-body {
  padding: 18px 20px;
  margin: 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.81rem;
  line-height: 1.85;
  color: #f8fafc;
  background: transparent;
  white-space: pre;
  flex: 1;
}

.csv-line-num {
  color: #475569;
  margin-right: 18px;
  user-select: none;
  display: inline-block;
  width: 14px;
  text-align: right;
  font-size: 0.76rem;
}

.csv-header-token {
  color: #38bdf8;
  font-weight: 700;
}

.csv-id-token {
  color: #c084fc;
  font-weight: 600;
}

.csv-comma-token {
  color: #64748b;
}

.csv-addr-token {
  color: #34d399;
}

.csv-terminal-footer {
  background: #090d16;
  border-top: 1px solid #1e293b;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
}

.terminal-footer-info {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #38bdf8;
  font-size: 0.74rem;
}

.terminal-footer-info svg {
  color: #0284c7;
  flex-shrink: 0;
}

.terminal-footer-count {
  color: #64748b;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.batch-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.batch-upload-zone {
  display: flex;
  align-items: center;
  gap: 14px;
}

.upload-hint {
  font-size: 0.84rem;
  color: var(--text-dim);
}

.batch-btn-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.batch-preview-header {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.batch-records-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  max-height: 300px;
  overflow-y: auto;
}

.batch-row {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  color: var(--text-main);
}

.cluster-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   Automated In-Browser Test Suite Tab
   -------------------------------------------------------------------------- */
.test-suite-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.test-summary-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.test-summary-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.test-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-family: var(--font-mono);
  font-weight: 700;
}

.test-stat-badge.pass {
  background: var(--emerald-bg);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
}

.test-stat-badge.speed {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid #bae6fd;
}

.test-case-row {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 16px;
  align-items: center;
  transition: all 0.15s ease;
}

.test-case-row:hover {
  background: #ffffff;
  border-color: var(--border-card);
  box-shadow: var(--shadow-sm);
}

.test-status-pill {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}

.test-status-pill.pass {
  background: var(--emerald-bg);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
}

.test-status-pill.fail {
  background: var(--rose-bg);
  color: var(--rose);
  border: 1px solid var(--rose-border);
}

/* --------------------------------------------------------------------------
   Knowledge & Architectural Pillars Section
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   Knowledge & Architectural Pillars Section
   -------------------------------------------------------------------------- */
.seo-section {
  max-width: 1280px;
  margin: 48px auto 0;
  padding: 44px 24px;
  border-top: 1px solid var(--border-card);
}

.seo-section-header {
  margin-bottom: 28px;
}

.seo-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.2);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.seo-main-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-bottom: 8px;
}

.seo-main-subtitle {
  color: #475569;
  font-size: 0.98rem;
  max-width: 880px;
  line-height: 1.6;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
  margin-top: 10px;
}

.seo-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}

.seo-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0284c7 0%, #4f46e5 100%);
  opacity: 0.9;
}

.seo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.09), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
  border-color: #cbd5e1;
}

.pillar-tag-row {
  margin-bottom: 14px;
}

.pillar-pill {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}

.pillar-cobalt {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.pillar-emerald {
  background: #d1fae5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.pillar-indigo {
  background: #e0e7ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}

.pillar-cyan {
  background: #ecfeff;
  color: #0e7490;
  border: 1px solid #a5f3fc;
}

.pillar-rose {
  background: #ffe4e6;
  color: #be123c;
  border: 1px solid #fecdd3;
}

.pillar-purple {
  background: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

.seo-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.pillar-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-cobalt { background: #f0f9ff; color: #0284c7; border: 1px solid #bae6fd; }
.icon-emerald { background: #f0fdf4; color: #059669; border: 1px solid #bbf7d0; }
.icon-indigo { background: #eef2ff; color: #4f46e5; border: 1px solid #c7d2fe; }
.icon-cyan { background: #ecfeff; color: #0891b2; border: 1px solid #a5f3fc; }
.icon-rose { background: #fff1f2; color: #e11d48; border: 1px solid #fecdd3; }
.icon-purple { background: #faf5ff; color: #9333ea; border: 1px solid #e9d5ff; }

.seo-card-title {
  font-family: var(--font-sans);
  font-size: 1.12rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.seo-card-desc {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 20px;
}

.seo-card-desc code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 1px 5px;
  border-radius: 4px;
  color: #0f172a;
}

/* Modern Comparison Widget */
.comp-widget {
  margin-top: auto;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comp-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64748b;
  text-transform: uppercase;
}

.comp-inputs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.comp-entry {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #1e293b;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comp-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.comp-resolution {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px dashed #cbd5e1;
}

.comp-resolution-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.comp-resolution-status.match {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.comp-resolution-status.match svg {
  color: #059669;
}

.comp-resolution-status.conflict {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}

.comp-resolution-status.conflict svg {
  color: #e11d48;
}

.comp-resolution-note {
  font-size: 0.72rem;
  color: #64748b;
  text-align: right;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Site Footer
/* --------------------------------------------------------------------------
   Header Navigation Group & Contact Button
   -------------------------------------------------------------------------- */
.header-nav-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-nav-divider {
  width: 1px;
  height: 26px;
  background: var(--border-card);
  margin: 0 2px;
}

.btn-nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: #0f172a;
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid #1e293b;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15);
}

.btn-nav-contact:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28);
}

/* --------------------------------------------------------------------------
   Prefooter Enterprise Contact Call-to-Action Banner
   -------------------------------------------------------------------------- */
.prefooter-banner {
  border-top: 1px solid var(--border-card);
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 44px 24px;
  margin-top: 48px;
}

.prefooter-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.prefooter-content {
  max-width: 760px;
}

.prefooter-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  border: 1px solid #bae6fd;
}

.prefooter-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.prefooter-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.prefooter-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 600;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-item svg {
  color: var(--emerald);
}

.prefooter-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  min-width: 250px;
}

.btn-contact-banner {
  padding: 12px 24px;
  font-size: 0.96rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

.prefooter-email-direct {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}

.prefooter-email-direct strong {
  color: var(--primary);
}

.prefooter-email-direct:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Site Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border-card);
  background: #ffffff;
  padding: 22px 24px;
  margin-top: auto;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  color: var(--text-dim);
}

.footer-left,
.footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand {
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.footer-separator {
  color: #cbd5e1;
}

.footer-contact-link {
  background: none;
  border: none;
  font-size: 0.86rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #cbd5e1;
  transition: all 0.15s;
}

.footer-contact-link:hover {
  color: var(--primary);
  text-decoration-color: var(--primary);
}

.footer-email-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}

.footer-email-link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Contact Modal Dialog
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 620px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-card);
  box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.28), 0 10px 20px -5px rgba(15, 23, 42, 0.1);
  padding: 28px 32px;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 92vh;
  overflow-y: auto;
}

.modal-overlay.open .modal-card {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 18px;
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  border: 1px solid #bae6fd;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 6px;
}

.modal-subtitle {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.modal-close-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dim);
  transition: all 0.15s;
  flex-shrink: 0;
}

.modal-close-btn:hover {
  color: var(--text-main);
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.form-row-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.req-star {
  color: var(--rose);
  font-weight: 800;
}

.modal-input,
.modal-textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-main);
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.modal-textarea {
  resize: vertical;
  min-height: 95px;
}

.modal-input:focus,
.modal-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.quick-subj-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.chips-label {
  font-size: 0.74rem;
  color: var(--text-dim);
  font-weight: 600;
  margin-right: 2px;
}

.subj-chip {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}

.subj-chip:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: #bae6fd;
}

.modal-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.direct-email-note {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.direct-email-note a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-status-alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.5;
}

.contact-status-alert.alert-success {
  background: var(--emerald-bg);
  border: 1px solid var(--emerald-border);
  color: #065f46;
}

.contact-status-alert.alert-error {
  background: var(--rose-bg);
  border: 1px solid var(--rose-border);
  color: #991b1b;
}

/* --------------------------------------------------------------------------
   Post-Submission Confirmation State (Form hidden, message only)
   -------------------------------------------------------------------------- */
.contact-success-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 20px 24px;
}

.success-icon-ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--emerald-bg);
  border: 2px solid var(--emerald-border);
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px rgba(5, 150, 105, 0.18);
  animation: pulseSuccess 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pulseSuccess {
  0% { transform: scale(0.75); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.success-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.success-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 460px;
  margin-bottom: 26px;
}

.success-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .header-nav-group {
    flex-direction: row;
    gap: 8px;
  }
  .header-nav-divider {
    display: none;
  }
  .btn-nav-contact span {
    display: none;
  }
  .btn-nav-contact {
    padding: 8px;
  }
  .hero-section.hero-split {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 16px 16px;
  }
  .tab-page-header {
    padding: 24px 16px 16px;
  }
  .tab-header-title {
    font-size: 1.65rem;
  }
  .hero-micro-grid {
    grid-template-columns: 1fr;
  }
  .score-banner-grid {
    grid-template-columns: 1fr;
  }
  .input-grid {
    grid-template-columns: 1fr;
  }
  .test-case-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .seo-grid {
    grid-template-columns: 1fr;
  }
  .prefooter-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .prefooter-actions {
    align-items: flex-start;
    width: 100%;
  }
  .form-row-dual {
    grid-template-columns: 1fr;
  }
  .footer-container {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
  .modal-card {
    padding: 22px 18px;
  }
  .modal-form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .action-buttons {
    width: 100%;
    justify-content: flex-end;
  }
}

