/* =========================================================
   NARWHAL DATA PARTNERS - INNER PAGES & SKU DESIGN SYSTEM
   Supports: Light Mode (Default) & Dark Mode
   Fast LCP, Zero 3D, High Contrast, Responsive to 360px
   ========================================================= */

:root {
  --bg-dark: #070B19;
  --bg-panel: rgba(11, 19, 43, 0.94);
  --bg-card: rgba(13, 22, 48, 0.82);
  --bg-card-hover: rgba(18, 30, 65, 0.94);
  --border-card: rgba(0, 242, 254, 0.16);
  --border-card-hover: rgba(0, 242, 254, 0.45);
  --primary: #00F2FE;
  --primary-dark: #00BCD4;
  --primary-glow: rgba(0, 242, 254, 0.35);
  --secondary: #4FACFE;
  --violet: #8B5CF6;
  --accent-green: #10B981;
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'Space Grotesk', monospace;
  
  --bg-page: #070B19;
  --text-main: #FFFFFF;
  --text: #FFFFFF;
  --text-muted: #94A3B8;
  --card-bg: rgba(13, 22, 48, 0.88);
  --card-border: rgba(0, 242, 254, 0.18);
  --border: rgba(0, 242, 254, 0.18);
}

body.light-mode {
  --bg-page: #F8FAFC;
  --text-main: #0F172A;
  --text: #0F172A;
  --text-muted: #475569;
  --card-bg: #FFFFFF;
  --card-border: #CBD5E1;
  --border: #CBD5E1;
  background-color: var(--bg-page);
  color: var(--text-main);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Staging Placeholder Ribbon */
.staging-placeholder-ribbon {
  background: #F59E0B;
  color: #0F172A;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 0.35rem 1rem;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Header */
header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 0.85rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(7, 11, 25, 0.94);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}
body.light-mode header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.45));
}
.brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-family: var(--font-display);
}
.brand-title .brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}
body.light-mode .brand-title .brand-name {
  color: #0F172A;
}
.brand-title .brand-name span {
  color: var(--primary);
}
body.light-mode .brand-title .brand-name span {
  color: #0090B8;
}
.brand-title .brand-sub {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate-400, #94A3B8);
  margin-top: 1px;
}
body.light-mode .brand-title .brand-sub {
  color: #64748B;
}

/* Nav */
nav.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
@media (max-width: 860px) {
  nav.nav-desktop {
    display: none !important;
  }
  .header-actions .btn-primary {
    display: none;
  }
  header {
    padding: 0.85rem 1.25rem !important;
  }
}
nav.nav-desktop a {
  color: var(--slate-400);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}
body.light-mode nav.nav-desktop a {
  color: #475569;
}
nav.nav-desktop a:hover, nav.nav-desktop a.active {
  color: var(--primary);
}
body.light-mode nav.nav-desktop a:hover, body.light-mode nav.nav-desktop a.active {
  color: #0090B8;
}

/* Header CTAs & Toggle */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Modern Pill Toggle Switch */
.theme-switch-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  outline: none;
  border-radius: 999px;
  user-select: none;
}
.switch-track {
  position: relative;
  width: 58px;
  height: 28px;
  background: rgba(11, 19, 43, 0.95);
  border: 1.5px solid rgba(0, 242, 254, 0.35);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
body.light-mode .switch-track {
  background: #E2E8F0;
  border-color: #CBD5E1;
}
.switch-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.switch-sun {
  color: #F59E0B;
  opacity: 0.35;
  transform: scale(0.85);
}
.switch-moon {
  color: #38BDF8;
  opacity: 1;
  transform: scale(1);
}
body.light-mode .switch-sun {
  opacity: 1;
  transform: scale(1);
}
body.light-mode .switch-moon {
  color: #94A3B8;
  opacity: 0.35;
  transform: scale(0.85);
}
.switch-thumb {
  position: absolute;
  top: 2px;
  left: 31px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #00F2FE;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3;
}
body.light-mode .switch-thumb {
  left: 3px;
  background: #FFFFFF;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #070B19;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 0.6rem 1.3rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.88rem;
  box-shadow: 0 4px 18px var(--primary-glow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-glow);
}
body.light-mode .btn-primary {
  background: #0090B8;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 144, 184, 0.28);
}
body.light-mode .btn-primary:hover {
  background: #007799;
  box-shadow: 0 8px 20px rgba(0, 144, 184, 0.38);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0.6rem 1.3rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.88rem;
  transition: all 0.2s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
body.light-mode .btn-secondary {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #0F172A;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
body.light-mode .btn-secondary:hover {
  border-color: #0090B8;
  color: #0090B8;
}

/* Breadcrumbs */
.breadcrumb-wrap {
  padding: 1.25rem 2.5rem 0.5rem;
  max-width: 1240px;
  margin: 0 auto;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--primary);
}
body.light-mode .breadcrumb a:hover {
  color: #0090B8;
}
.breadcrumb-sep {
  opacity: 0.5;
}
.breadcrumb-current {
  color: var(--primary);
  font-weight: 600;
}
body.light-mode .breadcrumb-current {
  color: #007094;
}

/* Page Container */
.page-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.5rem 2.5rem 5rem;
}
@media (max-width: 640px) {
  .page-container {
    padding: 1rem 1.25rem 4rem;
  }
}

/* Hero */
.inner-hero {
  padding: 2rem 0 2.5rem;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(0, 242, 254, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
body.light-mode .hero-tag {
  color: #007799;
  background: rgba(0, 144, 184, 0.1);
}
.inner-hero h1 {
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}
.answer-sentence {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 860px;
  margin-bottom: 1.5rem;
}
.freshness-line {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 2rem;
}
.freshness-line a {
  color: var(--primary);
  text-decoration: none;
}
body.light-mode .freshness-line a {
  color: #007799;
}

/* Stat Cards Grid */
.stat-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 900px) {
  .stat-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .stat-cards-grid {
    grid-template-columns: 1fr;
  }
}
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  transition: all 0.25s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}
body.light-mode .stat-card {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
body.light-mode .stat-card:hover {
  border-color: #0090B8;
  box-shadow: 0 8px 24px rgba(0, 144, 184, 0.12);
}
.stat-card-lbl {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}
.stat-card-val {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}
.stat-card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Sticky Jump Bar */
.jump-nav-bar {
  position: sticky;
  top: 68px;
  z-index: 80;
  background: rgba(7, 11, 25, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.65rem 2.5rem;
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  white-space: nowrap;
}
body.light-mode .jump-nav-bar {
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}
.jump-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.2s;
}
.jump-link:hover, .jump-link.active {
  color: var(--primary);
}
body.light-mode .jump-link:hover, body.light-mode .jump-link.active {
  color: #007094;
}

/* Layout: Two Column Main + Sticky Rail */
.content-rail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 1040px) {
  .content-rail-grid {
    grid-template-columns: 1fr;
  }
}

/* Sticky Right Rail Card */
.sticky-rail-card {
  position: sticky;
  top: 130px;
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 14px;
  padding: 1.8rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
body.light-mode .sticky-rail-card {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}
.rail-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(0, 242, 254, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.8rem;
}
body.light-mode .rail-badge {
  color: #007799;
  background: rgba(0, 144, 184, 0.1);
}
.rail-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.rail-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}
.rail-stats-summary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-bottom: 1.25rem;
}
body.light-mode .rail-stats-summary {
  background: #F8FAFC;
  border-color: #E2E8F0;
}
.rail-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  padding: 4px 0;
}
.rail-stat-row span {
  color: var(--text-muted);
}
.rail-stat-row strong {
  color: var(--text-main);
  font-family: var(--font-mono);
}

/* Sections */
.doc-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
body.light-mode .doc-section {
  border-bottom-color: #E2E8F0;
}
.doc-section:last-child {
  border-bottom: none;
}
.section-heading {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: -0.015em;
}
.section-subtext {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* 4-Step Process Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}
@media (max-width: 860px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}
.step-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
}
body.light-mode .step-card {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.6rem;
}
body.light-mode .step-num {
  color: #0090B8;
}
.step-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.step-html {
  overflow-x: hidden;
}

body {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Input Output Fields Box */
.io-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (max-width: 640px) {
  .io-grid {
    grid-template-columns: 1fr;
  }
}
.io-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
}
body.light-mode .io-box {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.io-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.io-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}
.io-in .io-tag { background: rgba(59, 130, 246, 0.15); color: #60A5FA; }
.io-out .io-tag { background: rgba(16, 185, 129, 0.15); color: #34D399; }
body.light-mode .io-in .io-tag { background: #E0F2FE; color: #0284C7; }
body.light-mode .io-out .io-tag { background: #ECFDF5; color: #059669; }
.io-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.io-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.io-list li::before {
  content: "→";
  color: var(--primary);
  font-weight: 700;
}
body.light-mode .io-list li::before {
  color: #0090B8;
}

/* Data Table & Benchmarks */
.data-table-wrap {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 1.25rem;
}
body.light-mode .data-table-wrap {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
table.styled-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}
table.styled-table th {
  background: rgba(11, 19, 43, 0.9);
  color: #FFFFFF;
  padding: 0.85rem 1.1rem;
  font-weight: 700;
  border-bottom: 1px solid var(--card-border);
}
body.light-mode table.styled-table th {
  background: #F1F5F9;
  color: #0F172A;
  border-bottom: 2px solid #CBD5E1;
}
table.styled-table td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}
body.light-mode table.styled-table td {
  border-bottom: 1px solid #E2E8F0;
  color: #334155;
}
table.styled-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
body.light-mode table.styled-table tr:hover td {
  background: #F8FAFC;
}

/* Insight Callout */
.insight-callout {
  background: rgba(0, 242, 254, 0.05);
  border-left: 3px solid var(--primary);
  padding: 0.95rem 1.25rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 1rem;
  line-height: 1.55;
}
body.light-mode .insight-callout {
  background: #F0FDFE;
  border-left-color: #0090B8;
  color: #334155;
}
.insight-callout strong {
  color: var(--text-main);
}

/* Checklist Cards */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}
@media (max-width: 860px) {
  .checklist-grid {
    grid-template-columns: 1fr;
  }
}
.check-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.4rem;
}
body.light-mode .check-card {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.check-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}
.check-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.check-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* FAQ Accordion */
.faq-wrap {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  overflow: hidden;
}
body.light-mode .faq-item {
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}
.faq-q {
  padding: 1rem 1.4rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-q::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--primary);
  transition: transform 0.2s;
}
body.light-mode .faq-q::after {
  color: #0090B8;
}
.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}
.faq-a {
  padding: 0 1.4rem 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: none;
}
.faq-item.open .faq-a {
  display: block;
}

/* Lead Form Section */
.form-panel-card {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 16px;
  padding: 2.25rem;
  margin-top: 2rem;
}
body.light-mode .form-panel-card {
  box-shadow: 0 15px 45px rgba(15, 23, 42, 0.06);
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 640px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s;
}
body.light-mode .form-input, body.light-mode .form-select, body.light-mode .form-textarea {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #0F172A;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}
body.light-mode .form-input:focus, body.light-mode .form-select:focus, body.light-mode .form-textarea:focus {
  border-color: #0090B8;
  box-shadow: 0 0 10px rgba(0, 144, 184, 0.2);
}

/* File Upload Dropzone */
.file-dropzone {
  border: 2px dashed var(--card-border);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s;
  margin-bottom: 1.25rem;
}
body.light-mode .file-dropzone {
  background: #F8FAFC;
  border-color: #CBD5E1;
}
.file-dropzone:hover {
  border-color: var(--primary);
  background: rgba(0, 242, 254, 0.04);
}
body.light-mode .file-dropzone:hover {
  border-color: #0090B8;
  background: #F0FDFE;
}
.dropzone-icon {
  width: 38px;
  height: 38px;
  margin: 0 auto 0.75rem;
  color: var(--primary);
}
body.light-mode .dropzone-icon {
  color: #0090B8;
}

/* Mobile Sticky Bottom CTA */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(7, 11, 25, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1.25rem;
  z-index: 150;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
body.light-mode .mobile-sticky-bar {
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #E2E8F0;
  box-shadow: 0 -4px 15px rgba(15, 23, 42, 0.06);
}
@media (max-width: 860px) {
  .mobile-sticky-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

/* Related Links Grid */
.related-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.related-link-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}
body.light-mode .related-link-card {
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}
.related-link-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
body.light-mode .related-link-card:hover {
  border-color: #0090B8;
  box-shadow: 0 4px 14px rgba(0, 144, 184, 0.12);
}
.related-link-title {
  font-weight: 600;
  font-size: 0.9rem;
}
.related-link-arrow {
  color: var(--primary);
  font-weight: 700;
}
body.light-mode .related-link-arrow {
  color: #0090B8;
}

/* Footer: Modern 2026 Aligned Design */
footer {
  position: relative;
  z-index: 50;
  background: #060913 !important;
  background-image: radial-gradient(60% 60% at 50% 0%, rgba(0, 242, 254, 0.05) 0%, transparent 100%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 5rem 2rem 2.5rem !important;
  color: #94A3B8 !important;
  font-size: 0.9rem !important;
}
body.light-mode footer {
  background: #060913 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #94A3B8 !important;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1.1fr 1.4fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
  margin-bottom: 3.5rem;
}
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}
@media (max-width: 640px) {
  footer {
    padding: 4rem 1.25rem 5.5rem !important;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
.footer-col {
  display: flex;
  flex-direction: column;
}
.footer-brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-bottom: 1.25rem;
}
.footer-brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 242, 254, 0.3));
}
footer .brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
footer .brand-title .brand-name {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF !important; /* STRICT: Pure white for Narwhal */
  letter-spacing: -0.02em;
}
footer .brand-title .brand-name span {
  background: linear-gradient(135deg, #00F2FE 0%, #4FACFE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
footer .brand-title .brand-sub {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #94A3B8 !important;
  text-transform: uppercase;
  margin-top: 2px;
}
footer .brand-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #94A3B8 !important;
  max-width: 340px;
  margin-bottom: 1.25rem;
}
.footer-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 0.76rem;
  color: #CBD5E1;
  margin-bottom: 1.25rem;
  width: fit-content;
}
.footer-trust-pill .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
}
footer .disclaimer {
  font-size: 0.76rem;
  line-height: 1.5;
  color: #64748B !important;
  max-width: 340px;
}
.footer-col h4 {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFFFFF !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.35rem;
  position: relative;
  padding-bottom: 0.65rem;
}
body.light-mode .footer-col h4 {
  color: #FFFFFF !important;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 22px;
  height: 2px;
  background: #00F2FE;
  border-radius: 2px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-col a {
  color: #94A3B8 !important;
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.4;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
body.light-mode .footer-col a {
  color: #94A3B8 !important;
}
.footer-col a:hover, body.light-mode .footer-col a:hover {
  color: #00F2FE !important;
  transform: translateX(3px);
}
.footer-badge-tag {
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  background: rgba(0, 242, 254, 0.12);
  color: #00F2FE;
  border-radius: 4px;
  font-weight: 600;
  margin-left: 0.35rem;
}
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.82rem;
  color: #64748B !important;
}
body.light-mode .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
  color: #64748B !important;
}
.footer-bottom a {
  color: #64748B !important;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom a:hover {
  color: #94A3B8 !important;
}
.footer-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #94A3B8;
}
.footer-status-indicator .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
}

/* =========================================================================
   HUB SUBCATEGORIES & DIRECTORY CARDS
   ========================================================================= */
.hub-pills-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.5rem 0 2.5rem;
  padding: 1.1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.hub-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(0, 119, 153, 0.08);
  border: 1px solid rgba(0, 119, 153, 0.18);
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
body.light-mode .hub-pill-btn {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #1E293B;
}
.hub-pill-btn:hover {
  background: #007799;
  color: #FFFFFF !important;
  border-color: #007799;
  transform: translateY(-2px);
}
.hub-pill-count {
  font-size: 0.72rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.12);
  font-weight: 700;
}
body.light-mode .hub-pill-count {
  background: #E2E8F0;
  color: #0F172A;
}

.hub-subcat-section {
  margin-bottom: 3.5rem;
  padding-top: 1rem;
}
.hub-subcat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.85rem;
  margin-bottom: 1.25rem;
}
.hub-subcat-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hub-subcat-icon {
  font-size: 1.6rem;
  line-height: 1;
}
.hub-subcat-title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.hub-subcat-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.hub-subcat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: rgba(0, 242, 254, 0.1);
  color: #007799;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
body.light-mode .hub-subcat-badge {
  background: #E0F2FE;
  color: #0369A1;
}
.hub-subcat-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: -0.25rem 0 1.5rem;
  max-width: 820px;
}

.hub-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.5rem;
}

.hub-item-card {
  border: 1px solid var(--border);
  border-top: 3px solid #00F2FE;
  border-radius: 12px;
  padding: 1.5rem;
  background: var(--card-bg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

body.light-mode .hub-item-card {
  border: 1px solid #CBD5E1;
  border-top: 3px solid #0284C7;
  background: #FFFFFF;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.hub-item-card:hover {
  border-color: #00F2FE;
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 242, 254, 0.2);
}

body.light-mode .hub-item-card:hover {
  border-color: #0284C7;
  border-top-color: #0369A1;
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.16);
}

.hub-card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #00F2FE;
  margin-bottom: 0.5rem;
}

body.light-mode .hub-card-kicker {
  color: #0284C7;
}

.hub-item-top {
  margin-bottom: 1.15rem;
}

.hub-item-title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.85rem;
  line-height: 1.35;
}

.hub-item-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hub-item-title a:hover {
  color: #00F2FE;
}

body.light-mode .hub-item-title a:hover {
  color: #0284C7;
}

.hub-item-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 242, 254, 0.06);
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 242, 254, 0.15);
  border-left: 3px solid #00F2FE;
}

body.light-mode .hub-item-stat-row {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-left: 3px solid #0284C7;
}

.hub-item-stat-lbl {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hub-item-stat-val {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  color: #00F2FE;
}

body.light-mode .hub-item-stat-val {
  color: #0369A1;
}

.hub-item-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.hub-item-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #CBD5E1;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

body.light-mode .hub-item-tag {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #334155;
}

.hub-item-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  font-size: 0.86rem;
  font-weight: 700;
  border-radius: 8px;
  background: rgba(0, 242, 254, 0.1);
  border: 1.5px solid rgba(0, 242, 254, 0.35);
  color: #00F2FE !important;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 242, 254, 0.1);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hub-item-btn:hover {
  background: #00F2FE;
  border-color: #00F2FE;
  color: #070B19 !important;
  box-shadow: 0 4px 16px rgba(0, 242, 254, 0.35);
  transform: translateY(-2px);
}

body.light-mode .hub-item-btn {
  background: #F0F9FF;
  border: 1.5px solid #0284C7;
  color: #0284C7 !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.1);
}

body.light-mode .hub-item-btn:hover {
  background: #0284C7;
  border-color: #0284C7;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
  transform: translateY(-2px);
}

.hub-item-btn-arrow {
  transition: transform 0.2s ease;
}

.hub-item-btn:hover .hub-item-btn-arrow {
  transform: translateX(4px);
}

/* =========================================================================
   ABOUT US PAGE STYLES
   ========================================================================= */
.about-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin: 2.5rem 0;
}
@media (max-width: 860px) {
  .about-grid-2 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
.about-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  background: var(--card-bg);
}
.about-pillar-step {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card-bg);
  margin-bottom: 1rem;
  transition: transform 0.2s ease;
}
.about-pillar-step:hover {
  transform: translateX(4px);
  border-color: #007799;
}
.about-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 119, 153, 0.12);
  color: #007799;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* =========================================================================
   AEO (ANSWER ENGINE OPTIMIZATION) DIRECT ANSWER BLOCK
   ========================================================================= */
.aeo-direct-answer {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 4px solid #00F2FE;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
body.light-mode .aeo-direct-answer {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-left: 4px solid #0284C7;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}
.aeo-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #00F2FE;
  margin-bottom: 0.65rem;
}
body.light-mode .aeo-kicker {
  color: #0284C7;
}
.aeo-answer-sentence {
  font-size: 1.08rem;
  line-height: 1.6;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}
body.light-mode .aeo-answer-sentence {
  color: #1E293B;
}
.aeo-key-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
body.light-mode .aeo-key-facts {
  border-top-color: #E2E8F0;
}
.aeo-fact-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
body.light-mode .aeo-fact-item {
  background: #F8FAFC;
  border-color: #E2E8F0;
}
.aeo-fact-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.aeo-fact-val {
  font-size: 1.12rem;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  color: #00F2FE;
}
body.light-mode .aeo-fact-val {
  color: #0284C7;
}

/* =========================================================================
   PURE SERVER-RENDERED SVG CHARTS (§8)
   ========================================================================= */
.data-block {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.85rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
body.light-mode .data-block {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}
.data-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
body.light-mode .data-block-header {
  border-bottom-color: #E2E8F0;
}
.data-block-title {
  font-family: var(--font-display, sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}
body.light-mode .data-block-title {
  color: #0F172A;
}
.toggle-table-btn {
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: #00F2FE;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
body.light-mode .toggle-table-btn {
  background: #F0F9FF;
  border-color: #BAE6FD;
  color: #0284C7;
}
.toggle-table-btn:hover {
  background: #00F2FE;
  color: #070B19;
}
body.light-mode .toggle-table-btn:hover {
  background: #0284C7;
  color: #FFFFFF;
}
.chart-figure {
  margin: 0 0 1rem 0;
  width: 100%;
}
.svg-chart-container {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}
.chart-bar-bg {
  fill: rgba(255, 255, 255, 0.08);
}
body.light-mode .chart-bar-bg {
  fill: #E2E8F0;
}
.chart-bar-fill {
  fill: #00F2FE;
  transition: fill 0.2s ease;
}
body.light-mode .chart-bar-fill {
  fill: #0284C7;
}
.chart-bar-fill:hover {
  fill: #4FACFE;
}
body.light-mode .chart-bar-fill:hover {
  fill: #0369A1;
}
.chart-text-label {
  font-family: var(--font-body, sans-serif);
  font-size: 12px;
  font-weight: 600;
  fill: #CBD5E1;
}
body.light-mode .chart-text-label {
  fill: #334155;
}
.chart-text-value {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  fill: #00F2FE;
}
body.light-mode .chart-text-value {
  fill: #0369A1;
}
.chart-caption {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.65rem;
  text-align: right;
}
.data-block-insight {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0.85rem 0 1rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid #00F2FE;
  border-radius: 4px;
}
body.light-mode .data-block-insight {
  background: #F8FAFC;
  border-left-color: #0284C7;
  color: #475569;
}
.data-block-table {
  display: none;
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.85rem;
}
.data-block-table.show {
  display: table;
}
.data-block-table th {
  text-align: left;
  padding: 0.6rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
  font-weight: 600;
}
body.light-mode .data-block-table th {
  background: #F1F5F9;
  border-bottom-color: #CBD5E1;
  color: #1E293B;
}
.data-block-table td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
body.light-mode .data-block-table td {
  border-bottom-color: #E2E8F0;
  color: #334155;
}


/* ==========================================================================
   Pie & Donut Chart Component
   ========================================================================== */
.pie-chart-card {
  background: var(--card-bg, #FFFFFF);
  border: 1px solid var(--border, #E2E8F0);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.pie-chart-grid {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 2rem;
  flex-wrap: wrap;
}
.pie-svg-wrapper {
  flex: 0 0 220px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.svg-pie-donut {
  display: block;
  overflow: visible;
  max-width: 100%;
  height: auto;
}
.pie-slice {
  transition: stroke-width 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}
.pie-slice:hover {
  stroke-width: 32;
  opacity: 0.9;
}
.pie-hole-bg {
  fill: #FFFFFF;
}
.pie-center-val {
  font-family: inherit;
  font-size: 19px;
  font-weight: 800;
  fill: #0F172A;
}
.pie-center-lbl {
  font-family: inherit;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  fill: #64748B;
}
.pie-legend-container {
  flex: 1 1 260px;
  min-width: 240px;
}
.pie-legend-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748B;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #E2E8F0;
  margin-bottom: 0.6rem;
}
.pie-legend-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.pie-legend-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  transition: background 0.15s ease;
}
.pie-legend-row:hover {
  background: rgba(0, 242, 254, 0.08);
}
.pie-legend-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pie-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pie-legend-label {
  font-weight: 600;
  color: #1E293B;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 170px;
}
.pie-legend-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
}
.pie-legend-val {
  color: #64748B;
}
.pie-legend-pct {
  font-weight: 700;
  color: #0F172A;
  min-width: 44px;
  text-align: right;
}

/* Dark Mode Overrides for Pie Chart */
body.dark-mode .pie-chart-card,
[data-theme="dark"] .pie-chart-card {
  background: #0d1b2a;
  border-color: rgba(0, 242, 254, 0.18);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
body.dark-mode .pie-hole-bg,
[data-theme="dark"] .pie-hole-bg {
  fill: #0d1b2a;
}
body.dark-mode .pie-center-val,
[data-theme="dark"] .pie-center-val {
  fill: #FFFFFF;
}
body.dark-mode .pie-center-lbl,
[data-theme="dark"] .pie-center-lbl {
  fill: #94A3B8;
}
body.dark-mode .pie-legend-header,
[data-theme="dark"] .pie-legend-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: #94A3B8;
}
body.dark-mode .pie-legend-label,
[data-theme="dark"] .pie-legend-label {
  color: #E2E8F0;
}
body.dark-mode .pie-legend-val,
[data-theme="dark"] .pie-legend-val {
  color: #94A3B8;
}
body.dark-mode .pie-legend-pct,
[data-theme="dark"] .pie-legend-pct {
  color: #00F2FE;
}
body.dark-mode .pie-legend-row:hover,
[data-theme="dark"] .pie-legend-row:hover {
  background: rgba(0, 242, 254, 0.12);
}


/* ==========================================================================
   Hero Interactive Database Configurator & Lead Form Component
   ========================================================================== */
.hero-builder-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 1.75rem;
  margin: 2rem 0 2.5rem;
  align-items: stretch;
}
@media (max-width: 1024px) {
  .hero-builder-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
.configurator-panel, .hero-lead-panel {
  background: var(--card-bg, #FFFFFF);
  border: 1.5px solid var(--border, #E2E8F0);
  border-radius: 16px;
  padding: 1.85rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
body.dark-mode .configurator-panel,
[data-theme="dark"] .configurator-panel,
body.dark-mode .hero-lead-panel,
[data-theme="dark"] .hero-lead-panel {
  background: #0b1329;
  border-color: rgba(0, 242, 254, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  margin-bottom: 0.6rem;
  width: fit-content;
}
.kicker-cyan {
  background: rgba(0, 144, 184, 0.12);
  color: #007799;
}
body.dark-mode .kicker-cyan,
[data-theme="dark"] .kicker-cyan {
  background: rgba(0, 242, 254, 0.15);
  color: #00F2FE;
}
.kicker-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}
body.dark-mode .kicker-emerald,
[data-theme="dark"] .kicker-emerald {
  background: rgba(16, 185, 129, 0.18);
  color: #10B981;
}
.panel-title {
  font-family: var(--font-display, inherit);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-heading, #0F172A);
  margin-bottom: 0.35rem;
  letter-spacing: -0.015em;
}
body.dark-mode .panel-title,
[data-theme="dark"] .panel-title {
  color: #FFFFFF;
}
.panel-sub {
  font-size: 0.86rem;
  color: var(--text-muted, #64748B);
  line-height: 1.45;
  margin-bottom: 1.25rem;
}
/* Preset Chips */
.cfg-presets-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.cfg-preset-btn {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border, #CBD5E1);
  background: rgba(0, 0, 0, 0.02);
  color: var(--text, #334155);
  cursor: pointer;
  transition: all 0.2s ease;
}
.cfg-preset-btn:hover, .cfg-preset-btn.active {
  background: #007799;
  border-color: #007799;
  color: #FFFFFF;
}
body.dark-mode .cfg-preset-btn,
[data-theme="dark"] .cfg-preset-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
}
body.dark-mode .cfg-preset-btn:hover,
[data-theme="dark"] .cfg-preset-btn:hover,
body.dark-mode .cfg-preset-btn.active,
[data-theme="dark"] .cfg-preset-btn.active {
  background: rgba(0, 242, 254, 0.2);
  border-color: #00F2FE;
  color: #00F2FE;
}
/* Controls Grid */
.cfg-controls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 600px) {
  .cfg-controls-grid {
    grid-template-columns: 1fr;
  }
}
.cfg-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.cfg-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted, #475569);
}
body.dark-mode .cfg-label,
[data-theme="dark"] .cfg-label {
  color: #94A3B8;
}
.cfg-select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border, #CBD5E1);
  background: var(--card-bg, #FFFFFF);
  color: var(--text, #1E293B);
  font-size: 0.86rem;
  font-weight: 500;
  outline: none;
  transition: all 0.2s;
  cursor: pointer;
}
body.dark-mode .cfg-select,
[data-theme="dark"] .cfg-select {
  background: #0f172a;
  border-color: rgba(0, 242, 254, 0.2);
  color: #F1F5F9;
}
.cfg-select:focus {
  border-color: #007799;
  box-shadow: 0 0 0 3px rgba(0, 119, 153, 0.15);
}
body.dark-mode .cfg-select:focus,
[data-theme="dark"] .cfg-select:focus {
  border-color: #00F2FE;
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.25);
}
/* Result Box */
.cfg-result-box {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 1.15rem 1.35rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
body.dark-mode .cfg-result-box,
[data-theme="dark"] .cfg-result-box {
  background: rgba(0, 242, 254, 0.05);
  border-color: rgba(0, 242, 254, 0.25);
}
.cfg-counter-val {
  font-family: var(--font-mono, monospace);
  font-size: 1.85rem;
  font-weight: 800;
  color: #007799;
  line-height: 1;
}
body.dark-mode .cfg-counter-val,
[data-theme="dark"] .cfg-counter-val {
  color: #00F2FE;
  text-shadow: 0 0 16px rgba(0, 242, 254, 0.4);
}
.cfg-counter-val-sec {
  font-family: var(--font-mono, monospace);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-heading, #0F172A);
  line-height: 1;
}
body.dark-mode .cfg-counter-val-sec,
[data-theme="dark"] .cfg-counter-val-sec {
  color: #F8FAFC;
}
.cfg-counter-lbl {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #64748B);
  margin-top: 0.35rem;
}
/* Summary Pill */
.cfg-summary-pill {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted, #475569);
  padding: 0.6rem 0.85rem;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 6px;
  border-left: 3px solid #007799;
}
body.dark-mode .cfg-summary-pill,
[data-theme="dark"] .cfg-summary-pill {
  background: rgba(255, 255, 255, 0.03);
  color: #94A3B8;
  border-left-color: #00F2FE;
}
/* Lead Form Styling */
.lead-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(0, 119, 153, 0.08);
  color: #007799;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 1.15rem;
  border: 1px solid rgba(0, 119, 153, 0.15);
  width: fit-content;
}
body.dark-mode .lead-badge-chip,
[data-theme="dark"] .lead-badge-chip {
  background: rgba(0, 242, 254, 0.1);
  color: #00F2FE;
  border-color: rgba(0, 242, 254, 0.2);
}
.hero-lead-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.hero-lead-input {
  width: 100%;
  padding: 0.72rem 0.95rem;
  border-radius: 8px;
  border: 1px solid var(--border, #CBD5E1);
  background: var(--card-bg, #FFFFFF);
  color: var(--text, #1E293B);
  font-size: 0.88rem;
  outline: none;
  transition: all 0.2s;
}
body.dark-mode .hero-lead-input,
[data-theme="dark"] .hero-lead-input {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}
.hero-lead-input:focus {
  border-color: #007799;
  box-shadow: 0 0 0 3px rgba(0, 119, 153, 0.15);
}
body.dark-mode .hero-lead-input:focus,
[data-theme="dark"] .hero-lead-input:focus {
  border-color: #00F2FE;
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.25);
}
.lead-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  background: #007799;
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(0, 119, 153, 0.3);
}
.lead-submit-btn:hover {
  background: #005f7a;
  transform: translateY(-1px);
}
body.dark-mode .lead-submit-btn,
[data-theme="dark"] .lead-submit-btn {
  background: linear-gradient(135deg, #00F2FE 0%, #0284C7 100%);
  color: #070B19;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.35);
}
body.dark-mode .lead-submit-btn:hover,
[data-theme="dark"] .lead-submit-btn:hover {
  box-shadow: 0 6px 25px rgba(0, 242, 254, 0.5);
  transform: translateY(-1px);
}
.lead-guarantees-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  color: var(--text-muted, #64748B);
  margin-top: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.success-heading {
  color: #0F172A;
}
body.dark-mode .success-heading,
[data-theme="dark"] .success-heading {
  color: #FFFFFF !important;
}

@media (max-width: 480px) {
  .cfg-result-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .cfg-result-box > div:last-child {
    text-align: left !important;
  }
  .cfg-counter-val {
    font-size: 1.55rem;
  }
  .cfg-counter-val-sec {
    font-size: 1.25rem;
  }
}

@media (max-width: 500px) {
  .hero-lead-form-grid-2 {
    grid-template-columns: 1fr !important;
  }
}


/* ==========================================================================
   ULTRA-MODERN 2026 DIRECTORY HUB DESIGN SYSTEM
   ========================================================================== */

/* 1. Ambient Hero & Trust Banner */
.hub-ambient-hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 0 2rem;
}
.hub-ambient-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 450px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.12) 0%, rgba(2, 132, 199, 0.05) 50%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}
body.light-mode .hub-ambient-hero::before {
  background: radial-gradient(circle, rgba(2, 132, 199, 0.08) 0%, rgba(0, 119, 153, 0.03) 60%, transparent 80%);
}

.hub-trust-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  margin: 1.25rem 0 2rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-muted, #94A3B8);
}
body.light-mode .hub-trust-banner {
  background: #F8FAFC;
  border-color: #E2E8F0;
  color: #475569;
}
.hub-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
}
.hub-trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
  display: inline-block;
  animation: pulse-dot 2s infinite ease-in-out;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* 2. Interactive Command & Search Toolbar */
.hub-command-bar {
  position: sticky;
  top: 72px;
  z-index: 40;
  margin: 2rem 0 2.5rem;
  padding: 1.15rem 1.35rem;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
body.light-mode .hub-command-bar {
  background: rgba(255, 255, 255, 0.94);
  border-color: #CBD5E1;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}
.hub-search-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.hub-search-box-wrap {
  position: relative;
  flex: 1;
  min-width: 280px;
}
.hub-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748B;
  pointer-events: none;
  display: flex;
  align-items: center;
}
.hub-search-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.85rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: #FFFFFF;
  font-size: 0.92rem;
  font-weight: 500;
  outline: none;
  transition: all 0.2s ease;
}
.hub-search-input:focus {
  border-color: #00F2FE;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.25);
  background: rgba(255, 255, 255, 0.09);
}
body.light-mode .hub-search-input {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #0F172A;
}
body.light-mode .hub-search-input:focus {
  border-color: #0284C7;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.2);
  background: #FFFFFF;
}
.hub-controls-cluster {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hub-sort-select {
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: var(--text, #F8FAFC);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}
body.light-mode .hub-sort-select {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #334155;
}
.hub-match-counter {
  font-size: 0.84rem;
  font-weight: 700;
  color: #00F2FE;
  white-space: nowrap;
}
body.light-mode .hub-match-counter {
  color: #0284C7;
}

/* Category Filter Chips Bar */
.hub-category-chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
}
.hub-category-chips::-webkit-scrollbar {
  height: 4px;
}
.hub-category-chips::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}
.hub-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted, #94A3B8);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  user-select: none;
}
.hub-cat-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}
.hub-cat-chip.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2) 0%, rgba(2, 132, 199, 0.2) 100%);
  border-color: #00F2FE;
  color: #00F2FE;
  font-weight: 700;
}
body.light-mode .hub-cat-chip {
  background: #F1F5F9;
  border-color: #E2E8F0;
  color: #475569;
}
body.light-mode .hub-cat-chip:hover {
  background: #E2E8F0;
  color: #0F172A;
}
body.light-mode .hub-cat-chip.active {
  background: #E0F2FE;
  border-color: #0284C7;
  color: #0284C7;
}
.hub-cat-chip-count {
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
}
body.light-mode .hub-cat-chip-count {
  background: rgba(15, 23, 42, 0.08);
}

/* 3. Upgraded Enterprise Data Asset Cards */
.hub-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.5rem;
}
@media (max-width: 680px) {
  .hub-items-grid {
    grid-template-columns: 1fr;
  }
}

.hub-asset-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(23, 32, 54, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.hub-asset-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00F2FE 0%, #0284C7 100%);
  opacity: 0.6;
  transition: opacity 0.28s ease;
}
.hub-asset-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 20px 40px rgba(0, 242, 254, 0.15);
}
.hub-asset-card:hover::before {
  opacity: 1;
  height: 4px;
}

body.light-mode .hub-asset-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}
body.light-mode .hub-asset-card::before {
  background: linear-gradient(90deg, #0284C7 0%, #007799 100%);
}
body.light-mode .hub-asset-card:hover {
  border-color: #0284C7;
  box-shadow: 0 18px 36px rgba(2, 132, 199, 0.14);
}

/* Card Header Cluster */
.hub-asset-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}
.hub-asset-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
}
body.light-mode .hub-asset-icon-box {
  background: #E0F2FE;
  border-color: #BAE6FD;
}
.hub-asset-kicker-group {
  flex: 1;
}
.hub-asset-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #00F2FE;
  display: block;
}
body.light-mode .hub-asset-kicker {
  color: #0284C7;
}
.hub-asset-subtext {
  font-size: 0.74rem;
  color: var(--text-muted, #94A3B8);
}
.hub-asset-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
body.light-mode .hub-asset-status-pill {
  background: #ECFDF5;
  color: #059669;
  border-color: #A7F3D0;
}

/* Card Title */
.hub-asset-title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 1.16rem;
  font-weight: 700;
  color: var(--text-main, #F8FAFC);
  margin: 0 0 1rem;
  line-height: 1.35;
}
.hub-asset-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.hub-asset-title a:hover {
  color: #00F2FE;
}
body.light-mode .hub-asset-title a:hover {
  color: #0284C7;
}

/* Dual Metric Matrix */
.hub-asset-matrix {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 0.65rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}
body.light-mode .hub-asset-matrix {
  background: #F8FAFC;
  border-color: #E2E8F0;
}
.hub-matrix-col-1, .hub-matrix-col-2 {
  display: flex;
  flex-direction: column;
}
.hub-matrix-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted, #94A3B8);
  margin-bottom: 0.2rem;
}
.hub-matrix-val-primary {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  color: #00F2FE;
  line-height: 1.1;
}
body.light-mode .hub-matrix-val-primary {
  color: #0284C7;
}
.hub-matrix-val-secondary {
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  color: var(--text-main, #F8FAFC);
  line-height: 1.1;
}
body.light-mode .hub-matrix-val-secondary {
  color: #1E293B;
}

/* Quality Meter Progress Bar */
.hub-asset-quality-wrap {
  margin-bottom: 1rem;
}
.hub-quality-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-muted, #94A3B8);
  margin-bottom: 0.35rem;
}
.hub-quality-bar {
  display: flex;
  height: 5px;
  gap: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
body.light-mode .hub-quality-bar {
  background: #E2E8F0;
}
.hub-quality-seg {
  height: 100%;
  border-radius: 999px;
}
.seg-fill-cyan { background: #00F2FE; }
.seg-fill-emerald { background: #10B981; }
.seg-fill-blue { background: #0284C7; }
.seg-fill-purple { background: #A855F7; }

/* Enrichment Badges */
.hub-asset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.hub-asset-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #CBD5E1;
}
body.light-mode .hub-asset-chip {
  background: #F1F5F9;
  border-color: #E2E8F0;
  color: #475569;
}

/* CTA Button */
.hub-asset-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1.15rem;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  background: rgba(0, 242, 254, 0.08);
  border: 1.5px solid rgba(0, 242, 254, 0.3);
  color: #00F2FE !important;
  transition: all 0.22s ease;
}
.hub-asset-cta:hover {
  background: #00F2FE;
  border-color: #00F2FE;
  color: #070B19 !important;
  box-shadow: 0 4px 18px rgba(0, 242, 254, 0.4);
  transform: translateY(-2px);
}
.hub-asset-cta-arrow {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}
.hub-asset-cta:hover .hub-asset-cta-arrow {
  transform: translateX(4px);
}
body.light-mode .hub-asset-cta {
  background: #F0F9FF;
  border-color: #BAE6FD;
  color: #0284C7 !important;
}
body.light-mode .hub-asset-cta:hover {
  background: #0284C7;
  border-color: #0284C7;
  color: #FFFFFF !important;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
}

/* Empty State */
.hub-empty-state {
  display: none;
  text-align: center;
  padding: 4rem 1rem;
  background: var(--card-bg, #0F172A);
  border: 1px dashed var(--border, #334155);
  border-radius: 16px;
  margin: 2rem 0;
}
.hub-empty-state h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.hub-empty-state p {
  color: var(--text-muted, #94A3B8);
  font-size: 0.92rem;
  max-width: 420px;
  margin: 0 auto 1.5rem;
}


/* ==========================================================================
   RANKED PLATFORMS LEADERBOARD TABLE (TECHNOLOGY SUB-HUBS)
   ========================================================================== */
.ranked-table-card {
  background: var(--card-bg, #0F172A);
  border: 1.5px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  margin-top: 1.25rem;
}
body.light-mode .ranked-table-card {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}
.ranked-table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}
body.light-mode .ranked-table-toolbar {
  background: #F8FAFC;
  border-bottom-color: #E2E8F0;
}
.ranked-search-input {
  flex: 1;
  min-width: 220px;
  max-width: 360px;
  padding: 0.6rem 0.95rem;
  border-radius: 9px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main, #F8FAFC);
  font-size: 0.86rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ranked-search-input:focus {
  border-color: #00F2FE;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}
body.light-mode .ranked-search-input {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #0F172A;
}
body.light-mode .ranked-search-input:focus {
  border-color: #0284C7;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.16);
}
.ranked-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.ranked-table thead th {
  padding: 0.85rem 1.1rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted, #94A3B8);
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  text-align: left;
  white-space: nowrap;
}
body.light-mode .ranked-table thead th {
  background: #F1F5F9;
  color: #475569;
  border-bottom-color: #CBD5E1;
}
.ranked-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.18s ease;
}
body.light-mode .ranked-table tbody tr {
  border-bottom-color: #E2E8F0;
}
.ranked-table tbody tr:last-child {
  border-bottom: none;
}
.ranked-table tbody tr:hover {
  background: rgba(0, 242, 254, 0.05);
}
body.light-mode .ranked-table tbody tr:hover {
  background: #F0F9FF;
}
.ranked-table tbody td {
  padding: 0.9rem 1.1rem;
  vertical-align: middle;
}
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 28px;
  padding: 0 0.45rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-muted, #94A3B8);
}
body.light-mode .rank-badge {
  background: #F1F5F9;
  color: #475569;
}
.rank-badge.rank-1 {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.22), rgba(234, 179, 8, 0.1));
  color: #FACC15;
  border: 1px solid rgba(250, 204, 21, 0.45);
}
body.light-mode .rank-badge.rank-1 {
  background: #FEF9C3;
  color: #A16207;
  border-color: #FDE047;
}
.rank-badge.rank-2 {
  background: rgba(148, 163, 184, 0.2);
  color: #E2E8F0;
  border: 1px solid rgba(148, 163, 184, 0.4);
}
body.light-mode .rank-badge.rank-2 {
  background: #E2E8F0;
  color: #334155;
  border-color: #CBD5E1;
}
.rank-badge.rank-3 {
  background: rgba(217, 119, 6, 0.18);
  color: #FB923C;
  border: 1px solid rgba(217, 119, 6, 0.4);
}
body.light-mode .rank-badge.rank-3 {
  background: #FFEDD5;
  color: #C2410C;
  border-color: #FDBA74;
}
.platform-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.platform-avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.16), rgba(2, 132, 199, 0.16));
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: #00F2FE;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
body.light-mode .platform-avatar {
  background: #E0F2FE;
  border-color: #BAE6FD;
  color: #0284C7;
}
.platform-name-link {
  font-weight: 700;
  color: var(--text-main, #F8FAFC);
  text-decoration: none;
  font-size: 0.94rem;
  display: block;
  line-height: 1.25;
}
.platform-name-link:hover {
  color: #00F2FE;
}
body.light-mode .platform-name-link {
  color: #0F172A;
}
body.light-mode .platform-name-link:hover {
  color: #0284C7;
}
.platform-sub-tag {
  font-size: 0.7rem;
  color: var(--text-muted, #94A3B8);
}
.ranked-num-primary {
  font-family: var(--font-mono, monospace);
  font-weight: 800;
  color: #00F2FE;
  text-align: right;
  white-space: nowrap;
}
body.light-mode .ranked-num-primary {
  color: #0284C7;
}
.ranked-num-secondary {
  font-family: var(--font-mono, monospace);
  font-weight: 600;
  color: var(--text-main, #CBD5E1);
  text-align: right;
  white-space: nowrap;
}
body.light-mode .ranked-num-secondary {
  color: #334155;
}
.ranked-bar-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.ranked-bar-track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  min-width: 70px;
}
body.light-mode .ranked-bar-track {
  background: #E2E8F0;
}
.ranked-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #00F2FE 0%, #0284C7 100%);
}
.ranked-pct-lbl {
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  font-weight: 700;
  min-width: 44px;
  text-align: right;
  color: var(--text-muted, #94A3B8);
}
.ranked-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.85rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: #00F2FE !important;
  transition: all 0.2s ease;
}
.ranked-cta-btn:hover {
  background: #00F2FE;
  color: #070B19 !important;
  transform: translateY(-1px);
}
body.light-mode .ranked-cta-btn {
  background: #F0F9FF;
  border-color: #BAE6FD;
  color: #0284C7 !important;
}
body.light-mode .ranked-cta-btn:hover {
  background: #0284C7;
  border-color: #0284C7;
  color: #FFFFFF !important;
}


/* ==========================================================================
   MOBILE HAMBURGER MENU & FULLSCREEN DRAWER (INNER PAGES)
   ========================================================================== */
.inner-hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  cursor: pointer;
  flex-shrink: 0;
}
body.light-mode .inner-hamburger-btn {
  border-color: #CBD5E1;
  background: #F8FAFC;
  color: #0F172A;
}
@media (max-width: 960px) {
  header nav.nav-desktop {
    display: none !important;
  }
  .inner-hamburger-btn {
    display: inline-flex !important;
  }
  header {
    padding: 0.75rem 1rem !important;
  }
  header .header-actions .btn-primary {
    display: none !important;
  }
}
.inner-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(7, 11, 25, 0.98);
  backdrop-filter: blur(20px);
  display: none;
  flex-direction: column;
  padding: 1.25rem 1.5rem 2rem;
  overflow-y: auto;
}
body.light-mode .inner-mobile-drawer {
  background: rgba(255, 255, 255, 0.98);
}
.inner-mobile-drawer.open {
  display: flex;
}
.inner-mobile-drawer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.25rem;
}
body.light-mode .inner-mobile-drawer-top {
  border-bottom-color: #E2E8F0;
}
.inner-mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.inner-mobile-nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #F8FAFC;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
body.light-mode .inner-mobile-nav-list a {
  color: #0F172A;
  background: #F8FAFC;
  border-color: #E2E8F0;
}
.inner-mobile-nav-list a.drawer-cta {
  margin-top: 0.75rem;
  justify-content: center;
  background: linear-gradient(135deg, #00F2FE 0%, #0284C7 100%);
  color: #070B19 !important;
  border: none;
}


/* ==========================================================================
   MOBILE SKU ALIGNMENT & HIGH-CONTRAST HAMBURGER POLISH
   ========================================================================== */
.inner-hamburger-btn {
  background: rgba(0, 242, 254, 0.14) !important;
  border: 1.5px solid rgba(0, 242, 254, 0.5) !important;
  color: #00F2FE !important;
}
body.light-mode .inner-hamburger-btn {
  background: #F1F5F9 !important;
  border: 1.5px solid #94A3B8 !important;
  color: #0F172A !important;
}
@media (max-width: 768px) {
  .page-container {
    padding: 1.25rem 1rem 3rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .breadcrumb-wrap {
    padding: 0.75rem 1rem !important;
  }
  .inner-hero {
    padding: 1.5rem 0 1.25rem !important;
    text-align: left !important;
  }
  .inner-hero h1 {
    font-size: 1.65rem !important;
    line-height: 1.22 !important;
    word-break: break-word;
  }
  .content-rail-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    margin-top: 1.5rem !important;
  }
  .main-doc-flow, .sticky-side-rail, .side-rail-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    position: static !important;
  }
  .stat-cards-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
  }
  .stat-card {
    padding: 1rem !important;
  }
  .stat-card-val {
    font-size: 1.3rem !important;
  }
  .form-panel-card {
    padding: 1.25rem 1rem !important;
  }
  .doc-section {
    max-width: 100% !important;
    overflow-x: hidden;
  }
  .jump-nav-bar {
    padding: 0.65rem 0.75rem !important;
    gap: 0.5rem !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
  }
  .jump-link {
    white-space: nowrap !important;
    flex-shrink: 0;
  }
}


/* ==========================================================================
   MOBILE CHART & LOWER-SECTION ALIGNMENT FIX (SKU PAGES <= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  .doc-section,
  .chart-card,
  .chart-block,
  .aeo-box,
  .aeo-grid,
  .pie-chart-wrap,
  .pie-layout,
  .state-compact-grid,
  .related-links-grid,
  .checklist-grid,
  .about-grid-2,
  .form-grid-2 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .chart-card,
  .chart-block,
  .aeo-box {
    padding: 1rem !important;
    overflow-x: hidden !important;
  }
  .chart-card svg,
  .chart-block svg,
  .pie-chart-wrap svg,
  .doc-section svg {
    max-width: 100% !important;
    height: auto !important;
  }
  .pie-layout,
  .pie-chart-wrap,
  .state-compact-grid,
  .related-links-grid,
  .aeo-grid,
  .checklist-grid,
  .about-grid-2,
  .form-grid-2 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }
  .bar-row,
  .chart-bar-row,
  .hbar-row {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 0.35rem 0.5rem !important;
    align-items: center !important;
  }
  .bar-track,
  .chart-bar-track,
  .hbar-track {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  table.styled-table,
  table.data-table,
  table.ranked-table {
    font-size: 0.8rem !important;
  }
  .footer-top,
  .footer-bottom {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1.25rem !important;
  }
}
