/* ==========================================================================
   ExaInfra.in - National Real Estate, Commercial Yield & Asset Terminal
   Aesthetic: Sovereign-grade Indian Institutional Enterprise Design
   High-Contrast Typography, Fluid Spacing, Precise Alignment & Accessibility
   ========================================================================== */

:root {
  /* Crisp Sovereign Light Theme Tokens */
  --bg-body: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-subtle: #F1F5F9;
  --bg-subtle-hover: #E2E8F0;
  --bg-elevated: #FFFFFF;

  /* Sovereign Authority Palette */
  --navy-authority: #0B192C;
  --navy-dark: #07111E;
  --navy-surface: #1E3A5F;
  --navy-border: #E2E8F0;

  /* Sovereign Indian Saffron & Gold */
  --saffron-500: #F59E0B;
  --saffron-600: #D97706;
  --saffron-700: #B45309;
  --saffron-gradient: linear-gradient(135deg, #D97706 0%, #EA580C 50%, #C2410C 100%);
  --saffron-light: #FFFBEB;
  --saffron-border: #FDE68A;

  /* Verified Emerald */
  --emerald-500: #10B981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-light: #ECFDF5;
  --emerald-border: #A7F3D0;

  /* Statutory Alert Crimson */
  --crimson-500: #EF4444;
  --crimson-600: #DC2626;
  --crimson-700: #B91C1C;
  --crimson-light: #FEF2F2;
  --crimson-border: #FECACA;

  /* Regulatory Sky Blue */
  --blue-sky: #0284C7;
  --blue-light: #F0F9FF;
  --blue-border: #BAE6FD;

  /* Accessible Text Hierarchy (WCAG AAA Compliant) */
  --text-main: #0F172A;        /* Slate-900 (High-contrast primary) */
  --text-secondary: #334155;   /* Slate-700 (Readable body copy) */
  --text-muted: #64748B;       /* Slate-500 (Clean metadata & labels) */
  --text-light: #94A3B8;       /* Slate-400 (De-emphasized footer items) */

  /* Borders & Shadows */
  --border-card: #E2E8F0;
  --border-input: #CBD5E1;
  --border-hover: #D97706;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 4px 12px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 14px 28px -4px rgba(15, 23, 42, 0.1), 0 4px 10px -2px rgba(15, 23, 42, 0.05);
  --shadow-modal: 0 25px 50px -12px rgba(15, 23, 42, 0.25);

  /* User-Friendly Typography */
  --font-main: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

/* ==========================================================================
   Global Reset & Base Rules
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: var(--font-main);
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  position: relative;
  letter-spacing: 0;
}

/* Global Heading & Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  color: var(--navy-authority);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0;
  text-rendering: optimizeLegibility;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.2;
  letter-spacing: -0.018em;
}

h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.3;
  letter-spacing: -0.012em;
}

h4 {
  font-size: 1.15rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

h5 {
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: 0;
}

h6 {
  font-size: 0.88rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

p {
  margin: 0;
  line-height: 1.6;
  letter-spacing: 0;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

/* Media, SVG & Iframe Fluid Containment */
img, svg, video, canvas, audio {
  max-width: 100%;
  height: auto;
}

iframe, embed, object {
  max-width: 100%;
  border: 0;
}

/* Responsive Iframe & Embedded Media Container Architecture */
.iframe-container,
.responsive-iframe-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  background: #0B192C;
  box-shadow: var(--shadow-card);
}

.iframe-container.ratio-16-9,
.responsive-iframe-wrap.ratio-16-9 {
  padding-top: 56.25%;
}

.iframe-container.ratio-4-3,
.responsive-iframe-wrap.ratio-4-3 {
  padding-top: 75%;
}

.iframe-container.ratio-1-1,
.responsive-iframe-wrap.ratio-1-1 {
  padding-top: 100%;
}

.iframe-container.ratio-auto,
.responsive-iframe-wrap.ratio-auto {
  aspect-ratio: 16 / 9;
  padding-top: 0;
}

.iframe-container iframe,
.responsive-iframe-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

button, input, select, textarea, a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--saffron-border);
  color: var(--navy-authority);
}

/* Tabular Numbers for all metrics and currencies across terminal */
.metric-val,
.dial-score,
.sim-slider-hdr strong,
.sim-result-hero strong,
.sim-stat-box strong,
.boq-table td,
.boq-total-col strong,
.step-pct,
.step-amt,
.cce-metric-val,
.cce-sum-range-val,
.cce-subcol strong,
.cce-q-rate,
.cce-tr-val,
.cce-lq-val,
.p-price-block .amt,
.pager-pill-num,
.cost-per-sqft-val,
.total-cost-val,
.badge-mix {
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Top National Statutory Ticker Bar
   ========================================================================== */
.national-ticker-bar {
  background: var(--navy-authority);
  border-bottom: 1px solid #1E293B;
  color: #E2E8F0;
  font-size: 0.8rem;
  padding: 0.55rem 0;
  font-family: var(--font-main);
  letter-spacing: 0.01em;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.ticker-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.compliance-status-pill {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 600;
  color: #F8FAFC;
  flex-shrink: 0;
  line-height: 1.2;
}

.compliance-status-pill strong {
  color: var(--emerald-500);
  font-weight: 800;
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--emerald-500);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--emerald-500);
  animation: pulseGreen 1.8s infinite;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}

@keyframes pulseGreen {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.ticker-text {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8rem;
  color: #CBD5E1;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.ticker-text span {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticker-text strong {
  color: #FFFFFF;
  font-weight: 700;
}

.ticker-node {
  color: var(--saffron-500);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
}

/* ==========================================================================
   Main Navigation Header
   ========================================================================== */
.navbar-terminal {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-card);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.8rem 0;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-width: 0;
  max-width: 1280px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-emblem {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--navy-authority), #1E3E62);
  border: 1.5px solid var(--saffron-600);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--saffron-500);
  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.22);
  flex-shrink: 0;
}

.brand-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-title {
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--navy-authority);
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.brand-title span {
  color: var(--saffron-600);
}

.brand-sub {
  font-size: 0.65rem;
  font-family: var(--font-main);
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 0.15rem;
  line-height: 1.2;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  justify-content: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all 0.18s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

.nav-link:hover {
  color: var(--navy-authority);
  background: var(--bg-subtle);
}

.nav-link.active {
  color: var(--saffron-700);
  background: var(--saffron-light);
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Mobile Hamburger Toggle Button */
.mobile-toggle-btn {
  display: none;
  background: #FFFFFF;
  border: 1.5px solid var(--border-card);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.15s ease;
  touch-action: manipulation;
}

.mobile-toggle-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-authority);
  border-radius: 2px;
}

.mobile-toggle-btn:hover, .mobile-toggle-btn:active {
  background: var(--bg-subtle);
  border-color: var(--saffron-600);
}

/* Mobile Navigation Backdrop & Drawer */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 25, 44, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 86vw;
  max-width: 340px;
  background: #FFFFFF;
  z-index: 2500;
  display: none;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s ease;
  padding: 1.5rem;
  overflow-y: auto;
  box-shadow: -8px 0 32px rgba(11, 25, 44, 0.22);
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-drawer.active {
  display: flex;
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-card);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.mobile-close-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  font-size: 1.6rem;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  touch-action: manipulation;
  transition: all 0.15s ease;
}

.mobile-close-btn:hover, .mobile-close-btn:active {
  background: var(--border-input);
  color: var(--navy-authority);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-authority);
  text-decoration: none;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  touch-action: manipulation;
  transition: all 0.15s ease;
}

.mobile-link:hover, .mobile-link:active {
  background: var(--saffron-light);
  color: var(--saffron-700);
}

.mobile-table-hint {
  display: none;
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  text-align: right;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Buttons & User-Friendly Interactive Elements
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0 1.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  font-family: var(--font-main);
  height: 46px;
  min-height: 46px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--saffron-gradient);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.38);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #FFFFFF;
  border: 1.5px solid var(--border-input);
  color: var(--navy-authority);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--saffron-600);
  color: var(--saffron-700);
  transform: translateY(-1px);
}

.btn-emerald {
  background: var(--emerald-600);
  color: #FFFFFF;
}

.btn-emerald:hover {
  background: var(--emerald-700);
}

.btn-sm {
  height: 38px;
  min-height: 38px;
  padding: 0 1rem;
  font-size: 0.84rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  height: 52px;
  min-height: 52px;
  padding: 0 2rem;
  font-size: 1rem;
  font-weight: 700;
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-terminal {
  padding: 4.5rem 0 3.75rem 0;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 60%, #F1F5F9 100%);
  border-bottom: 1px solid var(--border-card);
  text-align: center;
}

.hero-seal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: var(--saffron-light);
  border: 1px solid var(--saffron-border);
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--saffron-700);
  letter-spacing: 0.04em;
  box-shadow: 0 1px 3px rgba(217, 119, 6, 0.08);
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  line-height: 1.35;
}

.hero-seal-badge svg {
  flex-shrink: 0;
  display: block;
}

.hero-headline {
  font-size: clamp(1.85rem, 4.4vw, 3.4rem);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.018em;
  color: var(--navy-authority);
  max-width: 980px;
  margin: 0 auto 1.35rem auto;
  overflow-wrap: break-word;
  word-break: normal;
  text-wrap: balance;
}

.highlight-saffron {
  background: var(--saffron-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
  overflow-wrap: break-word;
}

.hero-description {
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 820px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.7;
  letter-spacing: 0;
}

/* 4 Pillars Interactive Tab Switcher in Hero */
.hero-pillars-nav {
  display: inline-flex;
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  padding: 0.4rem;
  border-radius: var(--radius-full);
  margin-bottom: 2.75rem;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
  box-shadow: var(--shadow-card);
}

.pillar-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.65rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-main);
  min-height: 42px;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

.pillar-tab-btn:hover {
  color: var(--navy-authority);
  background: var(--bg-subtle);
}

.pillar-tab-btn.active {
  background: var(--navy-authority);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(11, 25, 44, 0.25);
}

/* Hero Live Metric Bar */
.hero-metric-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-card);
  max-width: 1080px;
  margin: 0 auto;
}

.metric-cell {
  text-align: center;
  position: relative;
}

.metric-cell:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -0.75rem;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border-card);
}

.metric-val {
  font-size: 2.1rem;
  font-weight: 800;
  font-family: var(--font-main);
  color: var(--navy-authority);
  letter-spacing: -0.015em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums lining-nums;
}

.metric-lbl {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.35rem;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

/* ==========================================================================
   Section Headers (Authoritative Institutional Light)
   ========================================================================== */
.section-header-block {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3rem auto;
}

.section-tag {
  display: inline-block;
  padding: 0.38rem 1rem;
  background: var(--blue-light);
  border: 1px solid var(--blue-border);
  color: var(--blue-sky);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  font-family: var(--font-main);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 800;
  color: var(--navy-authority);
  letter-spacing: -0.018em;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  letter-spacing: 0;
}

/* ==========================================================================
   Pillar 1: Property Due Diligence & Scam Risk Radar
   ========================================================================== */
.radar-section {
  padding: 5rem 0;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-card);
}

.radar-terminal-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
}

.radar-search-box {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 2fr auto;
  gap: 1.25rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.75rem;
  align-items: flex-end;
}

.form-field-radar label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
  font-family: var(--font-main);
}

.form-control-terminal {
  width: 100%;
  background: #FFFFFF;
  border: 1.5px solid var(--border-input);
  color: var(--navy-authority);
  padding: 0 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: var(--font-main);
  outline: none;
  height: 46px;
  min-height: 46px;
  transition: all 0.15s ease;
}

.form-control-terminal:focus {
  border-color: var(--saffron-600);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.18);
}

.sample-queries-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
}

.sample-query-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-weight: 600;
}

.sample-query-chip {
  background: #FFFFFF;
  border: 1.5px solid var(--border-input);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 36px;
  line-height: 1.4;
}

.sample-query-chip:hover {
  background: var(--bg-subtle);
  color: var(--saffron-700);
  border-color: var(--saffron-600);
  transform: translateY(-1px);
}

/* Radar Audit Results Display */
.radar-results-grid {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 1.75rem;
}

.gauge-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.risk-dial {
  width: 144px;
  height: 144px;
  border-radius: 50%;
  border: 10px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.risk-dial.safe {
  border-color: var(--emerald-500);
  box-shadow: 0 0 24px var(--emerald-light);
}

.risk-dial.danger {
  border-color: var(--crimson-500);
  box-shadow: 0 0 24px var(--crimson-light);
}

.risk-dial.warning {
  border-color: var(--saffron-500);
  box-shadow: 0 0 24px var(--saffron-light);
}

.dial-score {
  font-size: 2.8rem;
  font-weight: 800;
  font-family: var(--font-main);
  line-height: 1;
  color: var(--navy-authority);
}

.dial-lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.risk-verdict-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

/* Checklist 5-Point Matrix */
.matrix-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.matrix-row {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.15s ease;
}

.matrix-row:hover {
  border-color: #CBD5E1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.matrix-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-authority);
  margin-bottom: 0.25rem;
}

.matrix-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-main);
  white-space: nowrap;
}

.status-badge.pass {
  background: var(--emerald-light);
  color: var(--emerald-700);
  border: 1px solid var(--emerald-border);
}

.status-badge.fail {
  background: var(--crimson-light);
  color: var(--crimson-700);
  border: 1px solid var(--crimson-border);
}

.status-badge.warn {
  background: var(--saffron-light);
  color: var(--saffron-700);
  border: 1px solid var(--saffron-border);
}

/* ==========================================================================
   TERMINAL WEB PAGINATION CONTROLLER & FLAGSHIP ARCHITECTURE
   ========================================================================== */

/* Terminal Sticky Pager Navigation Bar */
.terminal-pager-bar {
  position: sticky;
  top: 64px; /* below sovereign header */
  z-index: 95;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid #E2E8F0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.07);
  padding: 0.75rem 0;
  transition: all 0.2s ease;
}

.pager-container {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pager-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.pager-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--navy-authority);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  animation: livePulse 2s infinite ease-in-out;
}

@keyframes livePulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.pager-view-mode-toggle {
  display: inline-flex;
  align-items: center;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-full);
  padding: 0.2rem;
  gap: 0.25rem;
}

.view-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  background: transparent;
  color: #64748B;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-mode-btn:hover {
  color: var(--navy-authority);
}

.view-mode-btn.active {
  background: #FFFFFF;
  color: var(--navy-authority);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

.pager-nav-pills-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: space-between;
}

.pager-nav-arrow {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: var(--navy-authority);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  text-decoration: none;
}

.pager-nav-arrow:hover:not(:disabled) {
  background: var(--navy-authority);
  color: #FFFFFF;
  border-color: var(--navy-authority);
  transform: translateY(-1px);
}

.pager-pills-list {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 0.2rem 0;
  -webkit-overflow-scrolling: touch;
}

.pager-pills-list::-webkit-scrollbar {
  height: 4px;
}
.pager-pills-list::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

.pager-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  text-decoration: none;
}

.pager-pill:hover {
  border-color: var(--navy-authority);
  color: var(--navy-authority);
  transform: translateY(-1px);
}

.pager-pill.active {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.pager-pill-flagship {
  position: absolute;
  top: -8px;
  right: 8px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: #F59E0B;
  color: #0F172A;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  box-shadow: 0 2px 5px rgba(245, 158, 11, 0.4);
  line-height: 1.2;
}

.pager-pill-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #E2E8F0;
  color: #0F172A;
  font-size: 0.72rem;
  font-weight: 800;
  transition: all 0.2s;
}

.pager-pill.active .pager-pill-num {
  background: #F59E0B;
  color: #0F172A;
}

.pager-pill-title {
  font-weight: 700;
}

/* Page Deck Visibility & Transitions */
.terminal-page {
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.terminal-page.active-page {
  animation: pageFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.terminal-page.hidden-page {
  display: none !important;
}

/* Bottom Module Transition Card */
.bottom-pager-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 1.25rem 1.75rem;
  margin-top: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.bottom-pager-info {
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.02em;
}

.bottom-pager-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: var(--navy-authority);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  text-decoration: none;
}

.bottom-pager-btn:hover {
  background: #F1F5F9;
  border-color: var(--navy-authority);
  transform: translateY(-2px);
}

.bottom-pager-btn.primary {
  background: var(--navy-authority);
  color: #FFFFFF;
  border-color: var(--navy-authority);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.bottom-pager-btn.primary:hover {
  background: #1E293B;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.28);
}

/* Flagship Ribbons and Badges */
.flagship-hero-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.06));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 0.45rem 1rem;
  margin-bottom: 1rem;
}

.flagship-ribbon-badge {
  background: #F59E0B;
  color: #0F172A;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  text-transform: uppercase;
}

.flagship-ribbon-sub {
  font-size: 0.8rem;
  font-weight: 700;
  color: #92400E;
}

.pillar-flagship-pill {
  background: #F59E0B;
  color: #0F172A;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  line-height: 1.2;
}

.flagship-badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #92400E;
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

/* BoQ Trade Filter Pills in Card 7 */
.cce-table-filter-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #E2E8F0;
}

.boq-filter-pill {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #475569;
  padding: 0.38rem 0.88rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  line-height: 1.2;
}

.boq-filter-pill:hover {
  background: #E2E8F0;
  color: var(--navy-authority);
}

.boq-filter-pill.active {
  background: var(--navy-authority);
  color: #FFFFFF;
  border-color: var(--navy-authority);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

/* Common Range Sliders across all Tools */
.custom-range {
  width: 100%;
  height: 6px;
  background: #CBD5E1;
  border-radius: var(--radius-full);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--saffron-600);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(217, 119, 6, 0.4);
  transition: transform 0.15s ease;
}

.custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* ==========================================================================
   Pillar 3: Interactive Construction Cost Estimator & Material BoQ Engine
   ========================================================================== */
.boq-section {
  padding: 5rem 0;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-card);
}

.cce-workbench {
  background: #FFFFFF;
}

.cce-print-header {
  display: none;
}

.cce-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  min-width: 0;
  max-width: 100%;
}

.cce-controls-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.cce-results-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.cce-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.cce-card:hover {
  box-shadow: var(--shadow-card);
  border-color: #CBD5E1;
}

.cce-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.35rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-card);
}

.cce-step-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy-authority);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0;
  line-height: 1;
}

.cce-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy-authority);
  margin: 0 0 0.15rem 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.cce-card-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
  letter-spacing: 0;
}

.cce-field-group {
  margin-bottom: 1.15rem;
}

.cce-field-group:last-child {
  margin-bottom: 0;
}

.cce-field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.cce-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--navy-authority);
  margin-bottom: 0.4rem;
  letter-spacing: 0;
  line-height: 1.3;
}

.cce-hint-pill {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.cce-input-unit-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.cce-input-unit-wrap .form-control-terminal {
  padding-right: 4rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-authority);
  letter-spacing: 0.01em;
}

.cce-input-unit {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  pointer-events: none;
  line-height: 1;
}

.cce-input-warn {
  margin-top: 0.4rem;
  font-size: 0.76rem;
  color: #B91C1C;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  animation: fadeIn 0.2s ease-in-out;
}

.cce-tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: help;
}

.cce-tooltip-icon {
  font-size: 0.8rem;
  opacity: 0.75;
  transition: opacity 0.15s ease, transform 0.15s ease;
  line-height: 1;
}

.cce-tooltip-wrap:hover .cce-tooltip-icon {
  opacity: 1;
  transform: scale(1.15);
}

.cce-tooltip-bubble {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #0F172A;
  color: #F8FAFC;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  font-size: 0.75rem;
  line-height: 1.45;
  width: 250px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 400;
  text-align: left;
}

.cce-tooltip-bubble strong {
  color: #FBBF24;
  font-weight: 700;
  display: block;
  margin-bottom: 0.2rem;
}

.cce-tooltip-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #0F172A transparent transparent transparent;
}

.cce-tooltip-wrap:hover .cce-tooltip-bubble {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.cce-quick-pills {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.cce-pill-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  padding: 0.28rem 0.68rem;
  border-radius: 16px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
}

.cce-pill-btn:hover {
  background: #E2E8F0;
  color: var(--navy-authority);
}

.cce-pill-btn.active {
  background: var(--saffron-light);
  border-color: var(--saffron-500);
  color: var(--saffron-700);
}

.cce-field-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cce-floors-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
}

.cce-floor-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  padding: 0.55rem 0.35rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy-authority);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all var(--transition-fast);
  white-space: nowrap;
  line-height: 1.2;
}

.cce-floor-btn:hover {
  background: #E2E8F0;
  border-color: #94A3B8;
}

.cce-floor-btn.active {
  background: var(--navy-authority);
  border-color: var(--navy-authority);
  color: #FFFFFF;
}

.cce-area-banner {
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 0.85rem 1.15rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cce-area-metric {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.cce-metric-tag {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  line-height: 1.25;
  min-height: 1.6em;
  display: flex;
  align-items: flex-end;
}

.cce-metric-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy-authority);
  font-family: var(--font-main);
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.cce-metric-val.text-saffron {
  color: var(--saffron-700);
}

.cce-area-divider {
  font-weight: 800;
  color: #94A3B8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  align-self: center;
  padding-top: 0.85rem;
}

.cce-quality-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.cce-quality-card {
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  background: #FFFFFF;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}

.cce-quality-card:hover {
  border-color: var(--saffron-500);
  background: #FFFDF8;
}

.cce-quality-card.active {
  border: 2px solid var(--saffron-600);
  background: #FFFBEB;
  box-shadow: 0 0 0 1px rgba(217, 119, 6, 0.2);
}

.cce-q-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
  gap: 0.5rem;
}

.cce-q-header strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy-authority);
  letter-spacing: -0.01em;
  line-height: 1.25;
  display: inline-flex;
  align-items: center;
}

.cce-q-rate {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--saffron-700);
  background: #FEF3C7;
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
  letter-spacing: 0;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cce-q-specs {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
  letter-spacing: 0;
  margin: 0;
}

.cce-q-badge-pop {
  position: absolute;
  top: -10px;
  right: 14px;
  background: var(--saffron-600);
  color: #FFFFFF;
  font-size: 0.64rem;
  font-weight: 800;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cce-city-banner {
  background: var(--emerald-light);
  border: 1px solid var(--emerald-border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cce-city-pill {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--emerald-700);
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.3;
}

.cce-city-tier {
  font-size: 0.75rem;
  font-weight: 600;
  color: #047857;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  line-height: 1.3;
}

.cce-overrides-body {
  transition: all var(--transition-normal);
}

.cce-overrides-body.collapsed {
  display: none;
}

.cce-toggle-indicator {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--saffron-700);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1;
}

.cce-overrides-note {
  background: var(--bg-subtle);
  border-left: 3px solid var(--saffron-500);
  padding: 0.65rem 0.85rem;
  border-radius: 0 6px 6px 0;
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.cce-overrides-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

/* Results Column Styles */
.cce-summary-card {
  background: linear-gradient(135deg, var(--navy-authority) 0%, #172E4C 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  box-shadow: 0 8px 24px rgba(11, 25, 44, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cce-sum-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.cce-sum-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #94A3B8;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
}

.cce-sum-badge {
  font-size: 0.68rem;
  font-weight: 800;
  background: rgba(217, 119, 6, 0.25);
  color: var(--saffron-500);
  border: 1px solid rgba(217, 119, 6, 0.4);
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.cce-sum-range-row {
  margin-bottom: 1.25rem;
}

.cce-sum-range-val {
  font-size: clamp(1.85rem, 2.5vw, 2.25rem);
  font-weight: 800;
  color: #FFFFFF;
  font-family: var(--font-main);
  letter-spacing: -0.012em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums lining-nums;
}

.cce-sum-subrow {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 1.25rem;
  align-items: end;
}

.cce-subcol {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.cce-subcol span {
  font-size: 0.68rem;
  font-weight: 700;
  color: #94A3B8;
  display: flex;
  align-items: flex-end;
  min-height: 2.3em;
  margin-bottom: 0.35rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.25;
}

.cce-subcol strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.cce-meta-chips {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.cce-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.22rem 0.6rem;
  border-radius: 12px;
  font-size: 0.72rem;
  color: #E2E8F0;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cce-chip strong {
  color: #FFFFFF;
}

/* Actions Bar */
.cce-actions-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.65rem;
}

.cce-actions-bar .btn {
  padding: 0.65rem 0.75rem;
  font-size: 0.82rem;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  white-space: normal;
  line-height: 1.3;
  letter-spacing: -0.005em;
  min-height: 48px;
}

/* Chart Card */
.cce-chart-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.cce-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cce-chart-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy-authority);
  margin: 0 0 0.15rem 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.cce-chart-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
  letter-spacing: 0;
}

.cce-chart-split-badge {
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  padding: 0.25rem 0.65rem;
  border-radius: 14px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--navy-authority);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.cce-donut-wrap {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  min-width: 0;
  max-width: 100%;
}

.cce-svg-container {
  flex-shrink: 0;
  position: relative;
}

.cce-donut-label-title {
  font-size: 10px;
  font-weight: 800;
  fill: #64748B;
  letter-spacing: 0.06em;
  font-family: var(--font-main);
  text-anchor: middle;
}

.cce-donut-label-val {
  font-size: 16px;
  font-weight: 800;
  fill: var(--navy-authority);
  font-family: var(--font-main);
  text-anchor: middle;
  font-variant-numeric: tabular-nums lining-nums;
}

.cce-chart-legend {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
  min-width: 0;
}

.cce-legend-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.80rem;
  padding: 0.32rem 0.5rem;
  border-radius: 4px;
  transition: background var(--transition-fast);
  min-width: 0;
}

.cce-legend-item:hover {
  background: var(--bg-subtle);
}

.cce-legend-name-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  overflow: hidden;
}

.cce-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cce-legend-name {
  color: var(--text-secondary);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0;
}

.cce-legend-stat {
  font-weight: 700;
  color: var(--navy-authority);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: 0;
}

.cce-legend-stat span:first-child {
  min-width: 86px;
  text-align: right;
  display: inline-block;
  font-variant-numeric: tabular-nums lining-nums;
}

.cce-legend-pct {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums lining-nums;
  min-width: 44px;
  text-align: right;
  display: inline-block;
}

/* Table Card */
.cce-table-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.cce-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.boq-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 #F1F5F9;
}

.boq-table-wrap::-webkit-scrollbar {
  height: 6px;
}
.boq-table-wrap::-webkit-scrollbar-track {
  background: #F1F5F9;
  border-radius: 4px;
}
.boq-table-wrap::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
.boq-table-wrap::-webkit-scrollbar-thumb:hover {
  background: var(--saffron-600);
}

.boq-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.81rem;
  min-width: 0;
  table-layout: fixed;
}

.boq-table th {
  background: #F8FAFC;
  padding: 0.7rem 0.6rem;
  color: var(--navy-authority);
  font-family: var(--font-main);
  font-size: 0.70rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 2px solid #E2E8F0;
  white-space: normal;
  line-height: 1.3;
  vertical-align: middle;
}

.boq-table th:nth-child(1), .boq-table td:nth-child(1) { width: 21%; font-weight: 700; color: var(--navy-authority); word-break: break-word; text-align: left; }
.boq-table th:nth-child(2), .boq-table td:nth-child(2) { width: 21%; font-size: 0.76rem; color: #475569; word-break: break-word; text-align: left; }
.boq-table th:nth-child(3), .boq-table td:nth-child(3) { width: 16%; font-weight: 600; font-size: 0.78rem; text-align: left; }
.boq-table th:nth-child(4), .boq-table td:nth-child(4) { width: 16%; text-align: right; font-family: var(--font-main); font-size: 0.78rem; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.boq-table th:nth-child(5), .boq-table td:nth-child(5) { width: 16%; text-align: right; font-family: var(--font-main); font-weight: 800; color: var(--navy-authority); font-size: 0.80rem; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.boq-table th:nth-child(6), .boq-table td:nth-child(6) { width: 10%; text-align: right; font-weight: 700; color: var(--text-muted); font-size: 0.76rem; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; padding-right: 0.75rem; }

.boq-table td {
  padding: 0.65rem 0.6rem;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
  line-height: 1.4;
  letter-spacing: 0;
}

.boq-table tr:hover td {
  background: #F8FAFC;
}

.cce-tfoot-row td {
  background: #F8FAFC;
  font-weight: 800;
  color: var(--navy-authority);
  border-top: 2px solid var(--navy-authority);
  font-size: 0.86rem;
  padding: 0.75rem 0.6rem;
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}

.cce-tfoot-row td:last-child {
  padding-right: 0.75rem;
  text-align: right;
}

/* Thumb Rules Box */
.cce-thumb-rules-card {
  background: #F8FAFC;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.cce-thumb-rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0.75rem 1.75rem;
  min-width: 0;
  max-width: 100%;
}

.cce-tr-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.81rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed #E2E8F0;
  line-height: 1.4;
  min-width: 0;
  gap: 0.75rem;
}

.cce-tr-key {
  color: #475569;
  font-weight: 600;
  min-width: 0;
  white-space: nowrap;
}

.cce-tr-val {
  color: var(--navy-authority);
  font-weight: 800;
  text-align: right;
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1.3;
}

/* Milestone Escrow Steps Grid */
.escrow-flow-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.escrow-banner-badge {
  font-size: 0.72rem;
  color: var(--emerald-700);
  font-weight: 800;
  font-family: var(--font-main);
  background: var(--emerald-light);
  border: 1px solid var(--emerald-border);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.25;
}

.escrow-steps-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 1.25rem;
  min-width: 0;
  max-width: 100%;
}

.escrow-step-item {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  padding: 0.9rem 0.75rem;
  border-radius: var(--radius-sm);
  text-align: left;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  box-sizing: border-box;
  height: 100%;
}

.step-pct {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--saffron-600);
  font-family: var(--font-main);
  margin-bottom: 0.2rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.01em;
}

.step-amt {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--navy-authority);
  margin-bottom: 0.45rem;
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.step-phase {
  font-size: 0.74rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.35rem;
  min-height: 2.4em;
  display: flex;
  align-items: flex-start;
  line-height: 1.3;
}

.step-trigger {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: auto;
}

/* ====================================================================
   LEFT COLUMN ENHANCEMENT: Engineering, QA & VE Cards
   ==================================================================== */

/* Live Site Material Quantities Grid (Card 5) */
.cce-live-qty-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.cce-lq-item {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.cce-lq-item:hover {
  border-color: #CBD5E1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

.cce-lq-item.span-2 {
  grid-column: span 2;
}

.cce-lq-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cce-lq-content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.cce-lq-lbl {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748B;
  line-height: 1.3;
}

.cce-lq-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy-authority);
  font-family: var(--font-main);
  line-height: 1.25;
  margin: 0.05rem 0;
}

.cce-lq-sub {
  font-size: 0.73rem;
  color: #64748B;
  line-height: 1.35;
}

/* IS 456 Structural Standards Table (Card 6) */
.cce-standards-table-wrap {
  overflow-x: auto;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  margin-bottom: 0.85rem;
}

.cce-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  text-align: left;
}

.cce-spec-table th {
  background: #F1F5F9;
  padding: 0.75rem 0.95rem;
  font-weight: 800;
  color: var(--navy-authority);
  border-bottom: 1px solid #E2E8F0;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  vertical-align: middle;
}

.cce-spec-table th:nth-child(2), .cce-spec-table td:nth-child(2) {
  text-align: center;
}

.cce-spec-table th:nth-child(3), .cce-spec-table td:nth-child(3) {
  text-align: center;
}

.cce-spec-table td {
  padding: 0.75rem 0.95rem;
  border-bottom: 1px solid #F1F5F9;
  color: #334155;
  vertical-align: middle;
  line-height: 1.45;
}

.cce-spec-table tr:last-child td {
  border-bottom: none;
}

.cce-spec-table tr:hover td {
  background: #F8FAFC;
}

.badge-mix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.75rem;
  font-family: var(--font-main);
  line-height: 1.1;
}

.badge-mix.m25 {
  background: #EEF2FF;
  color: #3730A3;
  border: 1px solid #C7D2FE;
}

.badge-mix.m20 {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.badge-mix.m10 {
  background: #F8FAFC;
  color: #475569;
  border: 1px solid #E2E8F0;
}

.cce-standards-callout {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 8px;
  padding: 0.95rem 1.15rem;
  margin-top: 0.75rem;
}

.callout-pill {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #92400E;
  margin-bottom: 0.45rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cce-bullet-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.81rem;
  color: #78350F;
  line-height: 1.6;
}

.cce-bullet-list li {
  margin-bottom: 0.4rem;
}

.cce-bullet-list li:last-child {
  margin-bottom: 0;
}

/* Site QA/QC Checklist (Card 7) */
.cce-qa-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cce-qa-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 0.95rem 1.15rem;
  transition: border-color var(--transition-fast);
}

.cce-qa-item:hover {
  border-color: #CBD5E1;
}

.cce-qa-status {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
  line-height: 1;
}

.cce-qa-status.ok {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #86EFAC;
}

.cce-qa-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.cce-qa-title {
  font-size: 0.90rem;
  font-weight: 800;
  color: var(--navy-authority);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.cce-qa-desc {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.55;
  letter-spacing: 0;
}

@media (max-width: 768px) {
  .cce-live-qty-grid,
  .cce-sanctions-grid {
    grid-template-columns: 1fr;
  }
  .cce-lq-item.span-2 {
    grid-column: span 1;
  }
  .cce-card {
    min-width: 0;
    max-width: 100%;
  }
  .cce-standards-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .cce-grid {
    grid-template-columns: 1fr;
  }
  .cce-results-col {
    position: static;
  }
}

@media (max-width: 768px) {
  .cce-actions-bar {
    grid-template-columns: 1fr;
  }
  .cce-donut-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
  .cce-thumb-rules-grid {
    grid-template-columns: 1fr;
  }
  .escrow-steps-grid {
    grid-template-columns: 1fr;
  }
  .cce-overrides-grid {
    grid-template-columns: 1fr;
  }
  .cce-floors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .cce-sum-subrow {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* Print Styles */
@media print {
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
  }
  .top-statutory-bar,
  .main-header,
  .mobile-nav-drawer,
  .pillar-quick-nav,
  .hero-section,
  #title-radar,
  .terminal-pager-bar,
  #statutory-tools,
  .regulatory-section,
  .pricing-section,
  .contact-section,
  .site-footer,
  .floating-ai-cta,
  .toast-container,
  .modal-backdrop,
  .cce-actions-bar,
  .cce-quick-pills,
  .cce-step-badge,
  #cceOverridesToggleIcon,
  .mobile-table-hint,
  .cce-controls-col {
    display: none !important;
  }
  .boq-section {
    padding: 0 !important;
    border: none !important;
  }
  .cce-workbench {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .cce-grid {
    display: block !important;
  }
  .cce-results-col {
    position: static !important;
    width: 100% !important;
  }
  .cce-print-header {
    display: block !important;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #0B192C;
  }
  .cce-summary-card {
    background: #0B192C !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    color: #FFFFFF !important;
    margin-bottom: 1.5rem !important;
  }
  .cce-chart-card,
  .cce-table-card,
  .escrow-flow-card,
  .cce-thumb-rules-card {
    box-shadow: none !important;
    border: 1px solid #CBD5E1 !important;
    page-break-inside: avoid;
    margin-bottom: 1.5rem !important;
  }
  .boq-table th {
    background: #F1F5F9 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ==========================================================================
   Regulatory Framework Section
   ========================================================================== */
.compliance-section {
  padding: 5rem 0;
  background: var(--bg-body);
  border-bottom: 1px solid var(--border-card);
}

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.comp-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.comp-card:hover {
  transform: translateY(-2px);
  border-color: #CBD5E1;
  box-shadow: var(--shadow-card);
}

.comp-act-badge {
  font-size: 0.75rem;
  font-family: var(--font-main);
  color: var(--saffron-700);
  font-weight: 700;
  letter-spacing: 0.05em;
  display: block;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.comp-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-authority);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.comp-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-terminal {
  background: var(--navy-authority);
  padding: 4.5rem 0 2.5rem 0;
  border-top: 1px solid #1E293B;
  color: #94A3B8;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.65rem;
}

.footer-col a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--saffron-500);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.75rem;
  font-size: 0.84rem;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* ==========================================================================
   Modals (Official Certificates & Dossiers)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 25, 44, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1.5rem;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-modal);
  padding: 2.25rem;
  color: var(--text-main);
}

.modal-box.modal-lg {
  max-width: 860px;
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  transition: all 0.15s ease;
}

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

/* Official Document Style (Section 65B Certificate) */
.cert-paper {
  background: #FFFFFF;
  color: #0F172A;
  border-radius: 8px;
  padding: 2rem;
  border: 1px solid var(--border-card);
}

.cert-header {
  border-bottom: 2px solid var(--navy-authority);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cert-emblem-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: #1E3E62;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cert-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy-authority);
  margin-top: 0.25rem;
}

.cert-meta-row {
  font-size: 0.8rem;
  color: #475569;
}

.cert-body-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  background: #F8FAFC;
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
}

.cert-field span {
  font-size: 0.75rem;
  color: #64748B;
  display: block;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.cert-field strong {
  font-size: 1rem;
  color: var(--navy-authority);
  font-weight: 700;
}

.cert-verdict-box {
  padding: 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.75rem;
  font-size: 0.92rem;
  line-height: 1.6;
}

.cert-verdict-box.safe {
  background: var(--emerald-light);
  border: 1px solid var(--emerald-border);
  color: #065F46;
}

.cert-verdict-box.risk {
  background: var(--crimson-light);
  border: 1px solid var(--crimson-border);
  color: #991B1B;
}

.cert-sign-strip {
  border-top: 1px dashed #CBD5E1;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 0.82rem;
  color: #64748B;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* ==========================================================================
   Toast Notification System
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 4.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 3000;
  pointer-events: none;
  max-width: calc(100vw - 3rem);
}

.toast-item {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  color: var(--navy-authority);
  padding: 0.95rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-modal);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  pointer-events: auto;
  animation: slideInToast 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  min-width: 290px;
}

.toast-emerald {
  border-left: 4px solid var(--emerald-600);
}

.toast-saffron {
  border-left: 4px solid var(--saffron-600);
}

.toast-crimson {
  border-left: 4px solid var(--crimson-600);
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  margin-left: auto;
  font-size: 1.25rem;
  line-height: 1;
}

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1200px) {
  .nav-menu { gap: 0.4rem; }
  .nav-link { padding: 0.5rem 0.65rem; font-size: 0.85rem; }
  .radar-search-box { grid-template-columns: 1fr 1fr; }
  .radar-search-box .form-field-radar:nth-child(3),
  .radar-search-box .form-field-radar:nth-child(4) {
    grid-column: span 2;
  }
}

/* ====================================================================
   CONTACT US & INSTITUTIONAL ADVISORY DESK
   ==================================================================== */
.contact-grid-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 2.25rem;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}

.contact-info-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}

.contact-badge-strip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy-authority);
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
  align-self: flex-start;
  max-width: 100%;
  flex-wrap: wrap;
  line-height: 1.4;
}

.contact-card-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy-authority);
  margin: 0 0 0.5rem 0;
}

.contact-card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.contact-methods-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.contact-method-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(224, 86, 36, 0.08);
  border: 1px solid rgba(224, 86, 36, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--saffron-600);
  flex-shrink: 0;
}

.contact-method-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.contact-method-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-authority);
  text-decoration: none;
  line-height: 1.4;
}

a.contact-method-value:hover {
  color: var(--saffron-600);
  text-decoration: underline;
}

.contact-statutory-pill {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #166534;
  max-width: 100%;
  flex-wrap: wrap;
  line-height: 1.4;
}

.contact-form-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  max-width: 100%;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-authority);
}

.form-label .req {
  color: var(--crimson-500);
}

.contact-form .form-input {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-main);
  background: #FFFFFF;
  transition: all 0.15s ease;
}

.contact-form .form-input:focus {
  outline: none;
  border-color: var(--saffron-500);
  box-shadow: 0 0 0 3px rgba(224, 86, 36, 0.12);
}

.contact-form .form-select {
  appearance: auto;
  cursor: pointer;
}

.contact-form-notice {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
  margin-top: 0.4rem;
}

.nav-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-contact-btn.active {
  box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px var(--saffron-500);
}


/* ====================================================================
   PILLAR 5: INSTITUTIONAL REAL ESTATE & ASSET TOOLS (SOVEREIGN THEME)
   ==================================================================== */
.tools-section {
  padding: 5rem 0;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-card);
}

.tools-terminal-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
}

/* Suite Category Filter Navigation Bar */
.workbench-category-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.4rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.workbench-category-nav::-webkit-scrollbar {
  display: none;
}

.cat-pill-btn {
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.45rem 1.15rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: var(--font-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  touch-action: manipulation;
}

.cat-pill-btn:hover {
  color: var(--navy-authority);
  background: rgba(255, 255, 255, 0.7);
}

.cat-pill-btn.active {
  background: var(--navy-authority);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(11, 25, 44, 0.2);
}

.tools-tab-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border-card);
  padding-bottom: 1.25rem;
}

@media (max-width: 1250px) {
  .tools-tab-nav {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tool-tab-btn {
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 0.95rem 0.85rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.35rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  touch-action: manipulation;
  font-family: var(--font-main);
  position: relative;
  overflow: hidden;
}

.tool-tab-btn:hover {
  border-color: var(--saffron-500);
  background: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.tool-tab-btn.active {
  border-color: var(--saffron-600);
  background: #FFFFFF;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.14);
}

.tool-tab-btn.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: var(--saffron-gradient);
}

.tool-tab-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.tool-tab-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--navy-authority);
  line-height: 1.25;
}

.tool-tab-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.2;
}

.tool-tab-cat-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.12rem 0.42rem;
  border-radius: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
}

.tool-tab-btn.active .tool-tab-cat-badge {
  background: var(--saffron-light);
  border-color: var(--saffron-border);
  color: var(--saffron-700);
}

.tool-tab-btn.active .tool-tab-title {
  color: var(--saffron-700);
}

.tool-panel {
  display: none;
  animation: fadeIn 0.25s ease forwards;
}

.tool-panel.active {
  display: block;
}

.tool-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 2rem;
  align-items: start;
}

.tool-input-col {
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.tool-card-header {
  border-bottom: 1px solid var(--border-card);
  padding-bottom: 0.85rem;
  margin-bottom: 1.25rem;
}

.tool-card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--saffron-700);
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.tool-card-heading {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-authority);
  margin: 0 0 0.35rem 0;
  font-family: var(--font-main);
}

.tool-card-sub {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.tool-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.15rem;
}

.tool-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.tool-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-authority);
  font-family: var(--font-main);
}

.tool-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tool-live-badge {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--saffron-700);
  font-variant-numeric: tabular-nums;
  background: var(--saffron-light);
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--saffron-border);
  font-family: var(--font-mono);
}

/* Institutional Form Controls */
.tool-select, .tool-number-input, .tool-text-input, .tool-date-input {
  width: 100%;
  height: 46px;
  min-height: 46px;
  padding: 0 1rem;
  border: 1.5px solid var(--border-input);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: var(--font-main);
  font-weight: 600;
  color: var(--navy-authority);
  background: #FFFFFF;
  outline: none;
  transition: all 0.15s ease;
}

.tool-select:focus, .tool-number-input:focus, .tool-text-input:focus, .tool-date-input:focus {
  border-color: var(--navy-authority);
  box-shadow: 0 0 0 3px rgba(11, 25, 44, 0.08);
}

.tool-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border-input);
  outline: none;
  accent-color: var(--saffron-600);
  cursor: pointer;
  margin-top: 0.35rem;
}

/* Results & KPI Styling */
.tool-results-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tool-kpi-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
}

.tool-kpi-card.highlight {
  border-left: 4.5px solid var(--saffron-600);
}

.tool-kpi-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.tool-kpi-val {
  font-size: 2.2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  font-family: var(--font-main);
}

.tool-kpi-val.primary {
  color: var(--saffron-700);
}

.tool-kpi-val.emerald {
  color: var(--emerald-600);
}

.tool-kpi-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  line-height: 1.45;
  font-weight: 500;
}

.tool-breakdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.tool-breakdown-cell {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-sm);
}

.tool-cell-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.tool-cell-val {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-authority);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-main);
}

.tool-cell-sub {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  font-weight: 500;
}

/* Alert Boxes */
.tool-alert-box {
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.86rem;
  line-height: 1.55;
}

.tool-alert-box.safe {
  background: var(--emerald-light);
  border: 1px solid var(--emerald-border);
  color: var(--emerald-700);
}

.tool-alert-box.risk {
  background: var(--crimson-light);
  border: 1px solid var(--crimson-border);
  color: var(--crimson-700);
}

.tool-alert-box.warn {
  background: var(--saffron-light);
  border: 1px solid var(--saffron-border);
  color: var(--saffron-700);
}

.tool-alert-box.highlight {
  background: var(--blue-light);
  border: 1px solid var(--blue-border);
  color: #0369A1;
}

/* Regime Comparison Card */
.tool-regime-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.regime-col {
  flex: 1;
  text-align: center;
}

.regime-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--bg-subtle);
  color: var(--navy-authority);
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.regime-rate {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-authority);
  font-family: var(--font-main);
}

.regime-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 500;
}

.regime-amt {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--saffron-700);
  font-variant-numeric: tabular-nums;
  margin-top: 0.3rem;
  font-family: var(--font-main);
}

.regime-divider {
  font-weight: 800;
  color: var(--text-muted);
  font-size: 0.82rem;
  background: var(--bg-subtle);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Comparison Tables */
.tool-comparison-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.tool-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.tool-comparison-table th {
  background: #F8FAFC;
  padding: 0.85rem 1rem;
  color: var(--text-secondary);
  font-weight: 700;
  text-align: left;
  border-bottom: 1px solid var(--border-card);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tool-comparison-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-card);
  color: var(--text-dark);
  vertical-align: middle;
}

.tool-comparison-table tr:last-child td {
  border-bottom: none;
}

.tool-comparison-table tr:hover td {
  background: rgba(248, 250, 252, 0.7);
}

@media (min-width: 1121px) {
  .mobile-nav-drawer,
  .mobile-nav-backdrop,
  .mobile-toggle-btn {
    display: none !important;
  }
}

@media (min-width: 1121px) and (max-width: 1240px) {
  .nav-container { gap: 0.75rem; }
  .nav-menu { gap: 0.35rem; }
  .nav-link { font-size: 0.84rem; padding: 0.42rem 0.55rem; }
  .brand-title { font-size: 1.2rem; }
  .brand-sub { font-size: 0.58rem; }
}

@media (max-width: 1220px) {
  .cce-thumb-rules-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1120px) {
  .ticker-node { display: none; }
  .nav-menu { display: none; }
  .mobile-toggle-btn { display: flex; }
  .nav-actions .nav-contact-btn { padding: 0.45rem 0.75rem; font-size: 0.82rem; }
}

@media (max-width: 1024px) {
  .national-ticker-bar { display: none; }
  .terminal-pager-bar { top: 58px; }
  .pricing-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .compliance-grid { grid-template-columns: repeat(2, 1fr); }
  .radar-results-grid { grid-template-columns: 1fr; }
  .hero-metric-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .cce-grid { grid-template-columns: 1fr; }
  .radar-search-box {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .radar-search-box .form-field-radar:nth-child(3),
  .radar-search-box .form-field-radar:nth-child(4) {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .container { padding: 0 1rem; }
  
  /* Header & Brand */
  .brand-emblem { width: 36px; height: 36px; }
  .brand-title { font-size: 1.15rem; }
  .brand-sub { font-size: 0.58rem; letter-spacing: 0.02em; }
  .nav-contact-btn { padding: 0.45rem 0.75rem; font-size: 0.8rem; }

  /* Hero Section */
  .hero-terminal { padding: 2.75rem 0 2rem 0; }
  .hero-seal-badge {
    font-size: 0.7rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-md);
    flex-wrap: wrap;
    line-height: 1.35;
    max-width: 100%;
  }
  .hero-headline { font-size: clamp(1.65rem, 5vw, 2.15rem); margin-bottom: 1rem; }
  .hero-description { font-size: 0.95rem; margin-bottom: 1.5rem; line-height: 1.55; }

  .hero-pillars-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.35rem;
    gap: 0.4rem;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    border-radius: var(--radius-full);
  }
  .hero-pillars-nav::-webkit-scrollbar { display: none; }
  .pillar-tab-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.82rem;
    padding: 0.5rem 0.85rem;
    min-height: 38px;
  }

  .hero-metric-bar {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    padding: 1rem;
  }
  .metric-cell:not(:last-child)::after { display: none; }
  .metric-val { font-size: 1.5rem; }
  .metric-lbl { font-size: 0.75rem; }

  /* Pillar 1: Radar */
  .radar-search-box {
    grid-template-columns: 1fr;
    padding: 1.15rem;
    gap: 0.85rem;
  }
  .radar-search-box .form-field-radar:nth-child(3),
  .radar-search-box .form-field-radar:nth-child(4) {
    grid-column: span 1;
  }
  .radar-terminal-card { padding: 1.15rem; }
  .matrix-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem;
  }
  .status-badge {
    white-space: normal;
    word-break: break-word;
    max-width: 100%;
    font-size: 0.76rem;
    padding: 0.3rem 0.75rem;
  }
  .sample-query-chip {
    white-space: normal;
    word-break: break-word;
    font-size: 0.78rem;
    padding: 0.4rem 0.85rem;
  }
  .cert-body-grid { grid-template-columns: 1fr; }

  /* Construction Cost Estimator */
  .cce-card { padding: 1.25rem 1rem; }
  .cce-field-row-2col { grid-template-columns: 1fr; gap: 0.75rem; }
  .cce-floors-grid { grid-template-columns: repeat(3, 1fr); gap: 0.45rem; }
  .cce-floor-btn { padding: 0.5rem 0.35rem; font-size: 0.75rem; min-height: 40px; }
  .cce-live-qty-grid,
  .cce-sanctions-grid {
    grid-template-columns: 1fr;
  }
  .cce-actions-bar { grid-template-columns: 1fr; gap: 0.65rem; }
  .cce-thumb-rules-grid { grid-template-columns: 1fr; }
  .cce-overrides-grid { grid-template-columns: 1fr; }
  .boq-total-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
  }

  /* Tables & Pagers */
  .boq-workbench { padding: 1rem; }
  .mobile-table-hint { display: flex; align-items: center; gap: 0.35rem; }
  .escrow-steps-grid { grid-template-columns: 1fr; }
  .bottom-pager-card { flex-direction: column; align-items: stretch; text-align: center; gap: 0.75rem; }
  .bottom-pager-btn { justify-content: center; }

  /* Statutory Tools Workbench */
  .tools-terminal-card { padding: 1.15rem; }
  .tools-tab-nav { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .tool-tab-cat-badge { display: none; }
  .tool-grid-layout { grid-template-columns: 1fr; gap: 1.25rem; }
  .tool-form-row { grid-template-columns: 1fr; }
  .tool-input-col { padding: 1.15rem; }
  .tool-breakdown-grid { grid-template-columns: 1fr; }

  /* Pricing, Compliance, Contact, Footer */
  .contact-grid-container { grid-template-columns: 1fr; gap: 1.25rem; }
  .form-row-2col { grid-template-columns: 1fr; gap: 0.75rem; }
  .contact-info-card, .contact-form-card { padding: 1.25rem 1rem; }
  .pricing-cards-grid { grid-template-columns: 1fr; }
  .compliance-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.75rem; }

  /* Modals */
  .modal-backdrop { padding: 0.5rem; }
  .modal-box {
    padding: 1.25rem 1rem;
    max-width: 96vw;
    width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-md);
  }
}

@media (max-width: 480px) {
  .container { padding: 0 0.75rem; }
  .brand-sub { display: none; }
  .nav-contact-btn span { display: none; }
  .nav-contact-btn {
    padding: 0.45rem 0.55rem;
    min-width: 36px;
    height: 36px;
    justify-content: center;
  }
  .mobile-toggle-btn { width: 36px; height: 36px; }
  
  .hero-headline { font-size: 1.75rem; }
  .hero-metric-bar { grid-template-columns: 1fr; }
  .cce-floors-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-tab-nav { grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }
  .tool-tab-btn { padding: 0.75rem 0.65rem; }
  .tool-tab-title { font-size: 0.8rem; }
  .tool-tab-sub { font-size: 0.68rem; }
  .sim-grid-stats { grid-template-columns: 1fr; }
  .boq-total-col strong { font-size: 1.6rem; }
  .metric-val { font-size: 1.45rem; }
}

@media (max-width: 360px) {
  .container { padding: 0 0.5rem; }
  .cce-floors-grid { grid-template-columns: 1fr; }
  .tools-tab-nav { grid-template-columns: 1fr; }
  .hero-headline { font-size: 1.55rem; }
}

/* ==========================================================================
   Interactive Device Frame Switcher (PC & Mobile Frame Containers)
   Keeps website within realistic PC monitor and Mobile phone frames
   ========================================================================== */
.device-frame-launcher-btn {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 1999;
  background: var(--navy-authority);
  color: #FFFFFF;
  border: 1.5px solid var(--saffron-500);
  border-radius: var(--radius-full);
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(11, 25, 44, 0.35);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
}

.device-frame-launcher-btn:hover {
  background: #1E3A5F;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.3);
  color: var(--saffron-border);
}

/* Device Frame Modal Overlay */
.device-frame-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 25, 44, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.device-frame-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

/* Top Control Bar inside Frame Preview */
.device-frame-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: rgba(7, 17, 30, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  flex-shrink: 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.device-frame-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: #FFFFFF;
}

.device-frame-title span {
  color: var(--saffron-500);
}

.device-mode-selector {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: 0.25rem;
  gap: 0.25rem;
}

.device-mode-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.device-mode-btn:hover {
  color: #FFFFFF;
}

.device-mode-btn.active {
  background: var(--saffron-gradient);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.4);
}

.device-frame-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.device-frame-close-btn:hover {
  background: var(--crimson-600);
  border-color: var(--crimson-500);
}

/* Workspace Canvas */
.device-frame-canvas {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* PC / Desktop Frame */
.device-shell.pc-mode {
  width: 100%;
  max-width: 1140px;
  height: 85vh;
  max-height: 820px;
  background: #1E293B;
  border-radius: 12px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pc-chrome-header {
  height: 38px;
  background: #0F172A;
  border-bottom: 1px solid #334155;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 0.85rem;
  flex-shrink: 0;
}

.pc-traffic-lights {
  display: flex;
  gap: 6px;
}

.pc-traffic-lights span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.pc-traffic-lights span.red { background: #EF4444; }
.pc-traffic-lights span.yellow { background: #F59E0B; }
.pc-traffic-lights span.green { background: #10B981; }

.pc-url-bar {
  flex: 1;
  max-width: 500px;
  background: #1E293B;
  border-radius: 6px;
  height: 24px;
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  font-size: 0.72rem;
  color: #94A3B8;
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Mobile Frame (Smartphone) */
.device-shell.mobile-mode {
  width: 380px;
  max-width: 95vw;
  height: 780px;
  max-height: 88vh;
  background: #0F172A;
  border: 11px solid #1E293B;
  border-radius: 46px;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8), 0 0 0 2px rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dynamic Island / Speaker Notch */
.mobile-notch {
  width: 110px;
  height: 24px;
  background: #000000;
  border-radius: 16px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.device-shell.pc-mode .mobile-notch,
.device-shell.tablet-mode .mobile-notch {
  display: none !important;
}

.device-shell.pc-mode .pc-chrome-header {
  display: flex !important;
}

.device-shell.mobile-mode .pc-chrome-header,
.device-shell.tablet-mode .pc-chrome-header {
  display: none !important;
}

.mobile-notch-dot {
  width: 8px;
  height: 8px;
  background: #1E3A5F;
  border-radius: 50%;
  margin-left: 20px;
}

/* Tablet Frame */
.device-shell.tablet-mode {
  width: 768px;
  max-width: 96vw;
  height: 82vh;
  max-height: 850px;
  background: #0F172A;
  border: 12px solid #1E293B;
  border-radius: 30px;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Contained Iframe inside the Frame Device Shell */
.device-frame-iframe-wrap {
  flex: 1;
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.device-frame-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
