:root {
  /* File & ServeXpress + Maryland Judiciary Executive Palette */
  --fsx-obsidian: #070b16;
  --fsx-navy-dark: #0b1124;
  --fsx-navy-mid: #111a36;
  --fsx-blue-primary: #3b66f5;
  --fsx-blue-bright: #5294ff;
  --fsx-blue-glow: rgba(59, 102, 245, 0.32);
  --abc-gold: #f5b82e;
  --abc-gold-hover: #e0a41b;
  --md-red: #9e1b32;

  /* Light Surface Palette */
  --bg-light: #f6f7fb;
  --bg-lavender-tint: #f4f5fa;
  --bg-white: #ffffff;
  --border-subtle: #e5e7f0;
  --border-strong: #cbd2e1;
  --text-dark: #0b1124;
  --text-body: #3b4256;
  --text-muted: #687086;

  /* Status Colors */
  --status-ok: #10b981;
  --status-warn: #f59e0b;
  --status-err: #ef4444;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 20px rgba(11, 17, 36, 0.05);
  --shadow-hover: 0 12px 32px rgba(11, 17, 36, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================================================
   1. TOP UTILITY BAR (File & ServeXpress Style)
   ============================================================================ */
.top-utility-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.45rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-dark);
}

.utility-left, .utility-right {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.utility-link {
  color: var(--text-dark);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.utility-link:hover {
  color: var(--fsx-blue-primary);
}
.utility-link.uppercase {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.71rem;
}

.utility-divider {
  width: 1px;
  height: 13px;
  background: var(--border-strong);
}

/* ============================================================================
   2. MAIN EXECUTIVE NAVIGATION HEADER
   ============================================================================ */
.main-navbar {
  background: var(--fsx-obsidian);
  color: #ffffff;
  padding: 0.95rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  color: #ffffff;
}

.brand-logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--fsx-blue-primary), #1d4ed8);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(59, 102, 245, 0.45);
}
.brand-logo-mark svg {
  width: 21px;
  height: 21px;
  color: #ffffff;
}

.brand-logo-text {
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}
.brand-logo-text span.light {
  font-weight: 400;
  color: #93c5fd;
}
.brand-sub-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  background: rgba(82, 148, 255, 0.16);
  border: 1px solid rgba(82, 148, 255, 0.4);
  color: #93c5fd;
  margin-left: 0.5rem;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 1.85rem;
  list-style: none;
}

.navbar-links a {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s ease;
}
.navbar-links a:hover, .navbar-links a.active {
  color: var(--fsx-blue-bright);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mode-switcher {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.22rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mode-btn {
  background: transparent;
  color: #cbd5e1;
  border: none;
  padding: 0.42rem 0.85rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.mode-btn.active {
  background: var(--fsx-blue-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(59, 102, 245, 0.4);
}

.btn-white-cta {
  background: #ffffff;
  color: var(--fsx-obsidian);
  border: none;
  padding: 0.58rem 1.15rem;
  border-radius: 6px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-white-cta:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

.btn-gold-cta {
  background: var(--abc-gold);
  color: #0b1124;
  border: none;
  padding: 0.58rem 1.15rem;
  border-radius: 6px;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-gold-cta:hover {
  background: var(--abc-gold-hover);
}

/* ============================================================================
   3. EXECUTIVE LANDING VIEW (File & ServeXpress + ABC Legal + InfoTrack)
   ============================================================================ */
#landing-experience {
  display: block;
}
#landing-experience.hidden {
  display: none;
}

/* Hero Section */
.fsx-hero {
  background:
    radial-gradient(circle at 78% 28%, rgba(59, 102, 245, 0.28) 0%, rgba(17, 26, 54, 0) 52%),
    radial-gradient(circle at 20% 80%, rgba(82, 148, 255, 0.12) 0%, rgba(7, 11, 22, 0) 45%),
    linear-gradient(180deg, #070b16 0%, #0b1228 100%);
  color: #ffffff;
  padding: 5rem 3rem 4.5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fsx-hero-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #cbd5e1;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.hero-headline {
  font-size: clamp(2.5rem, 4.6vw, 4.1rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 980px;
  margin-bottom: 2.5rem;
}

.hero-headline .accent-blue {
  color: var(--fsx-blue-bright);
  display: block;
}

.hero-metrics-row {
  display: flex;
  align-items: flex-start;
  gap: 3.5rem;
  margin-bottom: 2.75rem;
  flex-wrap: wrap;
}

.hero-metric-item .metric-num {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}
.hero-metric-item .metric-num span {
  color: var(--fsx-blue-bright);
}
.hero-metric-item .metric-caption {
  font-size: 0.76rem;
  color: #94a3b8;
  margin-top: 0.15rem;
}

.hero-bottom-split {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 3rem;
  align-items: flex-end;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-desc-block h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: #ffffff;
}

.hero-desc-block p {
  font-size: 0.94rem;
  color: #cbd5e1;
  max-width: 600px;
  line-height: 1.65;
}

.hero-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 340px;
  margin-left: auto;
  width: 100%;
}

.btn-hero-blue {
  background: var(--fsx-blue-primary);
  color: #ffffff;
  border: 1px solid var(--fsx-blue-bright);
  padding: 0.9rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  box-shadow: 0 4px 20px rgba(59, 102, 245, 0.4);
}
.btn-hero-blue:hover {
  background: #2952e3;
  transform: translateY(-1px);
}

.btn-hero-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 0.85rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}
.btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

/* Judicial Seals Showcase Strip */
.seals-showcase {
  background: var(--bg-lavender-tint);
  padding: 2.75rem 3rem;
  border-bottom: 1px solid var(--border-subtle);
}

.seals-row {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
}

.judicial-seal-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
  width: 155px;
}

.seal-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border: 3px double currentColor;
  box-shadow: 0 6px 18px rgba(11, 17, 36, 0.08);
  background: #ffffff;
  position: relative;
  transition: transform 0.2s ease;
}
.seal-circle:hover {
  transform: scale(1.05);
}

.seal-circle.navy { color: #162a4a; background: #f8fafc; }
.seal-circle.gold { color: #854d0e; background: #fef9c3; border-color: #ca8a04; }
.seal-circle.crimson { color: #881337; background: #fff1f2; border-color: #be123c; }
.seal-circle.slate { color: #1e293b; background: #f1f5f9; border-color: #475569; }
.seal-circle.royal { color: #1e3a8a; background: #eff6ff; border-color: #2563eb; }

.seal-circle svg {
  width: 34px;
  height: 34px;
  margin-bottom: 0.15rem;
}

.seal-ring-text {
  font-size: 0.54rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.seal-caption {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* 4-Pillar Partnership Section */
.partnership-section {
  background: #ffffff;
  padding: 4.5rem 3rem;
  border-bottom: 1px solid var(--border-subtle);
}

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

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fsx-blue-primary);
  margin-bottom: 0.65rem;
}

.section-heading {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 0.85rem;
}

.section-lead {
  font-size: 0.98rem;
  color: var(--text-body);
  max-width: 780px;
  margin-bottom: 2.75rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.pillar-card {
  background: var(--bg-lavender-tint);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.pillar-card:hover {
  border-color: var(--border-strong);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.pillar-num {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--fsx-blue-primary);
  margin-bottom: 1rem;
}

.pillar-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.65rem;
}

.pillar-card p {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* Who We Serve Dark Section (File & ServeXpress Style) */
.who-we-serve-section {
  background:
    radial-gradient(circle at 75% 45%, rgba(59, 102, 245, 0.35) 0%, rgba(11, 17, 36, 0) 55%),
    linear-gradient(135deg, #060b18 0%, #0d1836 100%);
  color: #ffffff;
  padding: 4.75rem 3rem;
}

.audience-pills {
  display: flex;
  gap: 0.65rem;
  margin: 1.5rem 0 2.25rem;
  flex-wrap: wrap;
}

.audience-pill {
  padding: 0.48rem 1.15rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.15s ease;
}
.audience-pill.active {
  background: var(--fsx-blue-primary);
  color: #ffffff;
  border-color: var(--fsx-blue-bright);
  box-shadow: 0 0 15px rgba(59, 102, 245, 0.5);
}

.audience-content-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.audience-content-box p {
  font-size: 0.92rem;
  color: #cbd5e1;
  max-width: 880px;
  margin-bottom: 1rem;
}

.audience-bullets {
  margin: 1.25rem 0 1.75rem 1.25rem;
  color: #e2e8f0;
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.quote-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.quote-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.quote-author {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--fsx-blue-bright);
  margin-bottom: 0.65rem;
}

.quote-text {
  font-size: 0.88rem;
  color: #e2e8f0;
  line-height: 1.6;
}

/* What We Offer 6-Card Solutions Grid (File & ServeXpress Exact Layout) */
.solutions-offer-section {
  background: var(--bg-lavender-tint);
  padding: 4.75rem 3rem;
  border-bottom: 1px solid var(--border-subtle);
}

.solutions-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.solution-white-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem 1.85rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}
.solution-white-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #bfd3ff;
}

.solution-white-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.solution-white-card p {
  font-size: 0.88rem;
  color: var(--text-body);
  margin-bottom: 1.65rem;
  line-height: 1.6;
}

.explore-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--fsx-blue-primary);
  font-size: 0.84rem;
  font-weight: 600;
  background: none;
  border: none;
  border-bottom: 1.5px solid var(--fsx-blue-primary);
  padding-bottom: 0.25rem;
  cursor: pointer;
  width: fit-content;
  transition: all 0.15s ease;
}
.explore-link-btn:hover {
  color: #1d4ed8;
  gap: 0.65rem;
}

/* ============================================================================
   4. LIVE OPERATIONAL WORKSPACE (Interactive Portal Modules)
   ============================================================================ */
.app-shell {
  display: grid;
  grid-template-columns: 270px 1fr;
  flex: 1;
  min-height: calc(100vh - 110px);
}

.sidebar {
  background: var(--fsx-obsidian);
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0.85rem;
}

.nav-group-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  font-weight: 700;
  padding: 0.5rem 0.75rem 0.35rem;
  margin-top: 0.5rem;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-btn {
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  color: #cbd5e1;
  padding: 0.68rem 0.85rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}
.nav-btn svg {
  width: 18px;
  height: 18px;
  color: #94a3b8;
  flex-shrink: 0;
}
.nav-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}
.nav-btn.active {
  background: rgba(59, 102, 245, 0.18);
  border-color: rgba(82, 148, 255, 0.4);
  border-left: 3px solid var(--fsx-blue-bright);
  color: #ffffff;
  font-weight: 600;
}
.nav-btn.active svg {
  color: var(--fsx-blue-bright);
}

.nav-badge {
  margin-left: auto;
  font-size: 0.66rem;
  padding: 0.1rem 0.42rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-family: 'JetBrains Mono', monospace;
}

.sidebar-footer {
  margin-top: 1.5rem;
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.74rem;
  color: #94a3b8;
}

.main-stage {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--bg-light);
}

.content-container {
  padding: 1.75rem 2.25rem;
  flex: 1;
  max-width: 1460px;
  width: 100%;
  margin: 0 auto;
}

.module-pane {
  display: none;
  animation: fadeIn 0.18s ease-out;
}
.module-pane.active {
  display: block;
}

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

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  gap: 1rem;
  flex-wrap: wrap;
}

.page-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

.page-header p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 0.2rem;
}

.header-btn-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.56rem 1.05rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn svg {
  width: 16px;
  height: 16px;
}
.btn-primary {
  background: var(--fsx-blue-primary);
  color: #ffffff;
  border-color: var(--fsx-blue-primary);
}
.btn-primary:hover {
  background: #2952e3;
}
.btn-gold {
  background: var(--abc-gold);
  color: #0b1124;
  border-color: #d99b16;
}
.btn-gold:hover {
  background: var(--abc-gold-hover);
}
.btn-crimson {
  background: var(--md-red);
  color: #ffffff;
}
.btn-outline {
  background: #ffffff;
  color: var(--text-body);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  background: #f8fafc;
  color: var(--text-dark);
}
.btn-sm {
  padding: 0.36rem 0.72rem;
  font-size: 0.76rem;
}

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}

.kpi-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--fsx-blue-primary);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.35rem;
  box-shadow: var(--shadow-card);
}
.kpi-card.gold-accent { border-top-color: var(--abc-gold); }
.kpi-card.crimson-accent { border-top-color: var(--md-red); }
.kpi-card.teal-accent { border-top-color: var(--status-ok); }

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.kpi-label {
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.kpi-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
}
.kpi-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.grid-sidebar-right {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 1100px) {
  .pillars-grid, .solutions-grid-6, .grid-2, .grid-sidebar-right, .hero-bottom-split, .quote-cards-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.card-header {
  padding: 0.95rem 1.35rem;
  background: #fafbfe;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.card-header h3 {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-dark);
}
.card-body {
  padding: 1.35rem;
}

/* Badges & Status Dots */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-ok);
  display: inline-block;
  box-shadow: 0 0 8px var(--status-ok);
}
.status-dot.warn { background: var(--status-warn); box-shadow: 0 0 8px var(--status-warn); }
.status-dot.err { background: var(--status-err); box-shadow: 0 0 8px var(--status-err); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.58rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warn { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-mono {
  font-family: 'JetBrains Mono', monospace;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid var(--border-subtle);
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}
.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-body);
}
.form-group label .req {
  color: var(--md-red);
}
.form-control {
  padding: 0.56rem 0.78rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--text-dark);
  background: #ffffff;
}
.form-control:focus {
  outline: none;
  border-color: var(--fsx-blue-primary);
  box-shadow: 0 0 0 3px rgba(59, 102, 245, 0.15);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin: 0.5rem 0 1rem;
}
.checkbox-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-body);
  cursor: pointer;
}

.subtabs {
  display: flex;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.subtab-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}
.subtab-btn.active {
  background: var(--fsx-blue-primary);
  color: #ffffff;
}
.subtab-panel { display: none; }
.subtab-panel.active { display: block; }

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}
.data-table th {
  background: #f8fafc;
  color: var(--text-body);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  padding: 0.72rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}
.data-table td {
  padding: 0.72rem 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-dark);
}
.data-table tbody tr:hover {
  background: #f8fafc;
}

.code-viewer {
  background: #070b16;
  color: #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.77rem;
  line-height: 1.55;
  overflow-x: auto;
  max-height: 440px;
  overflow-y: auto;
  border: 1px solid #1e293b;
  white-space: pre-wrap;
  word-break: break-word;
}

.pdf-dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  background: #fafbfe;
  margin-bottom: 1rem;
}
.pdf-dropzone.loaded {
  border-color: var(--status-ok);
  background: #f0fdf4;
}

.audit-console {
  background: var(--fsx-obsidian);
  color: #e2e8f0;
  border-top: 2px solid var(--fsx-blue-primary);
  padding: 0.85rem 1.75rem;
}
.audit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}
.audit-title {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fsx-blue-bright);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.audit-log-entries {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 160px;
  overflow-y: auto;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.74rem;
}
.audit-entry {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}
.method-tag {
  font-weight: 700;
  padding: 0.08rem 0.4rem;
  border-radius: 3px;
  font-size: 0.68rem;
}
.method-GET { background: rgba(59, 130, 246, 0.25); color: #93c5fd; }
.method-POST { background: rgba(16, 185, 129, 0.25); color: #6ee7b7; }
.method-PUT { background: rgba(245, 158, 11, 0.25); color: #fcd34d; }
.method-DELETE { background: rgba(239, 68, 68, 0.25); color: #fca5a5; }

.toast-container {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  background: var(--fsx-obsidian);
  color: #ffffff;
  border-left: 4px solid var(--fsx-blue-bright);
  padding: 0.78rem 1.15rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  font-size: 0.82rem;
  max-width: 390px;
}
.toast.error { border-left-color: var(--status-err); }
.toast.success { border-left-color: var(--status-ok); }
/* Add-on Bespoke LexMaryland Sovereign Architectural Styles */
.md-sovereign-ribbon {
  height: 4px;
  background: linear-gradient(90deg, #eaaa00 0%, #eaaa00 28%, #0b1124 28%, #0b1124 50%, #9e1b32 50%, #9e1b32 78%, #ffffff 78%, #ffffff 100%);
}

.hero-split-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.hero-intake-console {
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 184, 46, 0.35);
  border-radius: 16px;
  padding: 1.85rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  position: relative;
}

.hero-intake-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-intake-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-intake-field {
  margin-bottom: 1rem;
}

.hero-intake-field label {
  display: block;
  font-size: 0.73rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 0.4rem;
}

.hero-intake-select, .hero-intake-input {
  width: 100%;
  background: rgba(7, 11, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f8fafc;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  font-size: 0.86rem;
  font-family: inherit;
}
.hero-intake-select:focus, .hero-intake-input:focus {
  outline: none;
  border-color: var(--abc-gold);
}

/* Interactive 5-Stage Pipeline */
.pipeline-strip {
  background: #0b1224;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.65rem 3rem;
  color: #ffffff;
}

.pipeline-steps {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
}

.pipeline-step-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.95rem 1rem;
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
}
.pipeline-step-card:hover {
  background: rgba(59, 102, 245, 0.16);
  border-color: var(--abc-gold);
  transform: translateY(-2px);
}

.pipeline-step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--abc-gold);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.pipeline-step-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.pipeline-step-desc {
  font-size: 0.72rem;
  color: #94a3b8;
}

/* Bento Grid Feature Cards */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.35rem;
}

.bento-span-7 { grid-column: span 7; }
.bento-span-5 { grid-column: span 5; }
.bento-span-4 { grid-column: span 4; }
.bento-span-8 { grid-column: span 8; }

.bento-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}
.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
}

.bento-card.dark-featured {
  background: linear-gradient(135deg, #0b132b 0%, #1c2541 100%);
  color: #ffffff;
  border-color: rgba(245, 184, 46, 0.35);
}
.bento-card.dark-featured h3 { color: #ffffff; }
.bento-card.dark-featured p { color: #cbd5e1; }

.bento-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.22rem 0.65rem;
  border-radius: 99px;
  background: rgba(59, 102, 245, 0.1);
  color: var(--fsx-blue-primary);
  width: fit-content;
  margin-bottom: 0.9rem;
}
.bento-card.dark-featured .bento-tag {
  background: rgba(245, 184, 46, 0.18);
  color: var(--abc-gold);
}

@media (max-width: 1100px) {
  .hero-split-grid, .pipeline-steps {
    grid-template-columns: 1fr;
  }
  .bento-span-7, .bento-span-5, .bento-span-4, .bento-span-8 {
    grid-column: span 12;
  }
}
