﻿@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  
  --navy:          #001824;
  --navy-deep:     #000f16;
  --navy-mid:      #012233;
  --trusted-blue:  #1E4A7A;
  --trusted-light: #2563a8;
  --slate:         #192a41;
  --charcoal:      #0b0f14;
  --teal:          #0d7a73;
  --teal-light:    #10a89f;
  --teal-pale:     #e6f7f6;

--gray-900:  #0d1117;
  --gray-800:  #1b2431;
  --gray-700:  #1b2431;
  --gray-600:  #1b2431;
  --gray-500:  #070a0e;
  --gray-400:  #101316;
  --gray-300:  #1f2225;
  --gray-200:  #dde6ef;
  --gray-100:  #eef3f8;
  --gray-50:   #f5f8fb;
  --off-white: #F8FAFC;
  --white:     #ffffff;

--success:       #0d7a50;
  --success-light: #e6f7f0;
  --warning:       #b45309;
  --warning-light: #fef3cd;
  --danger:        #b91c1c;
  --danger-light:  #fef2f2;
  --info:          var(--trusted-blue);
  --info-light:    #eef4fb;

--font-family:   'Inter', open-san, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs:  0.95rem;
  --font-size-sm:  0.975rem;
  --font-size-base:1rem;
  --font-size-lg:  1.125rem;
  --font-size-xl:  1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;

--space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-7:  1.75rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

--shadow-sm:  0 1px 3px rgba(0,24,36,.08), 0 1px 2px rgba(0,24,36,.06);
  --shadow-md:  0 4px 16px rgba(0,24,36,.10), 0 2px 6px rgba(0,24,36,.06);
  --shadow-lg:  0 10px 40px rgba(0,24,36,.12), 0 4px 12px rgba(0,24,36,.08);
  --shadow-xl:  0 20px 60px rgba(0,24,36,.16), 0 8px 24px rgba(0,24,36,.10);
  --shadow-card:0 2px 12px rgba(0,24,36,.08);

--border-radius-sm:  4px;
  --border-radius:     8px;
  --border-radius-md:  10px;
  --border-radius-lg:  14px;
  --border-radius-xl:  20px;
  --border-radius-2xl: 28px;
  --border-radius-pill:9999px;
  --border-color:      var(--gray-200);
  --border-color-focus:var(--trusted-blue);

--transition-fast:   150ms cubic-bezier(0.4,0,0.2,1);
  --transition-normal: 250ms cubic-bezier(0.4,0,0.2,1);
  --transition-slow:   400ms cubic-bezier(0.4,0,0.2,1);

--z-base:   1;
  --z-sticky: 100;
  --z-drawer: 400;
  --z-modal:  500;
  --z-toast:  600;
  --z-tooltip:700;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--gray-800);
  background-color: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--trusted-blue); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--trusted-light); }
button { cursor: pointer; font-family: var(--font-family); }

h1,.h1 { font-size: clamp(1.875rem, 4vw, 3.25rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em;}
h2,.h2 { font-size: clamp(1.5rem, 3vw, 2.25rem);   font-weight: 700; line-height: 1.2;  letter-spacing: -0.025em; }
h3,.h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem);font-weight: 700; line-height: 1.25; letter-spacing: -0.02em;}
h4,.h4 { font-size: clamp(1.1rem, 2vw, 1.375rem);  font-weight: 600; line-height: 1.3; }
h5,.h5 { font-size: 1.125rem; font-weight: 600; line-height: 1.4; }
h6,.h6 { font-size: 1rem;     font-weight: 600; line-height: 1.4; }

.display-1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.04em; }
.display-2 { font-size: clamp(2rem,  5vw, 3.75rem); font-weight: 800; line-height: 1.1;  letter-spacing: -0.035em; }

.text-lead  { font-size: var(--font-size-xl); font-weight: 400; color: var(--gray-600); line-height: 1.7; }
.text-body  { font-size: var(--font-size-base); color: var(--gray-700); line-height: 1.75; }
.text-small { font-size: var(--font-size-sm); }
.text-xs    { font-size: var(--font-size-xs);}

.text-navy        { color: var(--navy) !important; }
.text-blue        { color: var(--trusted-blue) !important; }
.text-teal        { color: var(--teal) !important; }
.text-muted-navy  { color: #282c30 !important; }
.text-white       { color: var(--white) !important; }
.text-success-ldh { color: var(--success) !important; }
.text-danger-ldh  { color: var(--danger) !important; }

.fw-300 { font-weight: 300; }
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.fw-900 { font-weight: 900; }

.container-narrow { max-width: 760px;  margin: 0 auto; padding: 0 1rem; }
.container-wide   { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }

.section-sm  { padding: var(--space-12) 0; }
.section-md  { padding: var(--space-16) 0; }
.section-lg  { padding: var(--space-20) 0; }
.section-xl  { padding: var(--space-24) 0; }
.section-padded { padding: var(--space-16) 0; }
.section-alt { background-color: var(--white); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }

.section-label {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: var(--space-3);
}
.section-title { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; color: var(--navy); margin-bottom: var(--space-3); }
.section-subtitle { font-size: var(--font-size-lg); color: var(--gray-600); }

.bg-navy       { background-color: var(--navy) !important; }
.bg-navy-mid   { background-color: var(--navy-mid) !important; }
.bg-navy-deep  { background-color: var(--navy-deep) !important; }
.bg-slate      { background-color: var(--slate) !important; }
.bg-blue       { background-color: var(--trusted-blue) !important; }
.bg-teal       { background-color: var(--teal) !important; }
.bg-teal-pale  { background-color: var(--teal-pale) !important; }
.bg-off-white  { background-color: var(--off-white) !important; }
.bg-gray-50    { background-color: var(--gray-50) !important; }
.bg-gray-100   { background-color: var(--gray-100) !important; }
.bg-white      { background-color: var(--white) !important; }

.card-ldh {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-normal), transform var(--transition-normal), border-color var(--transition-normal);
  overflow: hidden;
}
.card-ldh:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--gray-300);
}
.card-ldh-flat {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: none;
}
.card-ldh-navy {
  background: var(--navy);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--border-radius-lg);
  color: var(--white);
}
.card-ldh-blue {
  background: var(--trusted-blue);
  border-radius: var(--border-radius-lg);
  color: var(--white);
}
.card-ldh-teal {
  background: var(--teal-pale);
  border: 1px solid rgba(13,122,115,.15);
  border-radius: var(--border-radius-lg);
}
.card-body-p { padding: var(--space-6); }
@media (min-width: 768px) { .card-body-p { padding: var(--space-8); } }

.doc-type-card {
  position: relative;
  display: flex !important;            
  flex-direction: column;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--space-6);
  cursor: pointer;
  
  box-shadow: 0 1px 3px rgba(0,24,36,.06), 0 4px 16px rgba(0,24,36,.07);
  transition: transform 200ms cubic-bezier(0.2,0,0,1),
              box-shadow 200ms cubic-bezier(0.2,0,0,1),
              border-color 200ms ease,
              background-color 200ms ease;
  text-decoration: none;
  color: inherit;
  min-height: 240px;
  overflow: visible; 
  outline: none;    
}
@media (min-width: 992px) {
  .doc-type-card { padding: var(--space-7); min-height: 280px; }
}
.doc-type-card:hover {
  border-color: var(--trusted-blue);
  
  background-color: #f5f9ff;
  
  box-shadow: inset 3px 0 0 var(--trusted-blue), 0 1px 4px rgba(0,24,36,.06), 0 14px 36px rgba(30,74,122,.18);
  transform: translateY(-3px);
  text-decoration: none;
  color: inherit;
}

.doc-type-card:focus-visible {
  border-color: var(--trusted-blue);
  box-shadow: 0 0 0 3px rgba(30,74,122,.22), inset 3px 0 0 var(--trusted-blue);
  outline: none;
}
.doc-type-card-icon {
  width: 52px; height: 52px;
  border-radius: var(--border-radius-md);
  background: var(--info-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
  flex-shrink: 0;
  transition: transform var(--transition-fast), background-color 180ms ease;
}
.doc-type-card:hover .doc-type-card-icon {
  transform: scale(1.06) rotate(2deg);
  background: var(--trusted-blue);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(30,74,122,.28);
}
.doc-type-card:hover .doc-type-card-icon svg,
.doc-type-card:hover .doc-type-card-icon i[data-feather] { color: var(--white); }
.doc-type-card-icon svg { color: var(--trusted-blue); width: 24px; height: 24px; }

.doc-type-card-icon i[data-feather] { display: block; width: 24px; height: 24px; color: var(--trusted-blue); }
.doc-type-card-title {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  letter-spacing: -0.005em;
  margin: 0 0 var(--space-2) 0;
}

.doc-type-card-title::after {
  content: ' \2192'; 
  font-weight: 400;
  font-size: 0.85em;
  color: var(--trusted-blue);
  opacity: 0;
  display: inline-block;
  transform: translateX(-5px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.doc-type-card:hover .doc-type-card-title::after {
  opacity: 1;
  transform: translateX(0);
}
.doc-type-card-desc {
  font-size: var(--font-size-sm);
  color: #526070;
  line-height: 1.6;
  margin: 0 0 var(--space-4) 0;
  
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.doc-type-card-footer {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid #dde6ef;
  display: flex;
  align-items: center;
  font-size: var(--font-size-sm);
}
.doc-type-card-cat {
  display: inline-block;
  background: var(--teal-pale);
  color: var(--teal);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;  
}
.doc-type-card-featured {
  
  position: absolute; top: 14px; right: 14px;
  background: var(--teal); color: var(--white);
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 10px; border-radius: var(--border-radius-pill);
  box-shadow: 0 2px 8px rgba(13,122,115,.30);
  pointer-events: none; 
}

.how-step-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--space-8) var(--space-6) var(--space-6);
  transition: all var(--transition-normal);
}
.how-step-card:hover {
  border-color: var(--trusted-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.how-step-num {
  position: absolute;
  top: -20px; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 40px;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  font-size: var(--font-size-lg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,24,36,.15);
}
.how-step-icon {
  width: 64px; height: 64px;
  margin: 0 auto;
  background: var(--info-light);
  border-radius: var(--border-radius-md);
  display: flex; align-items: center; justify-content: center;
}
.how-step-title { font-size: var(--font-size-lg); font-weight: 700; color: var(--navy); margin-bottom: var(--space-3); }
.how-step-desc { font-size: var(--font-size-sm); color: var(--gray-600); line-height: 1.6; margin-bottom: 0; }

.kpi-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--space-5) var(--space-6);
  position: relative;
}
.kpi-card .kpi-value {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.03em;
}
.kpi-card .kpi-label {
  font-size: var(--font-size-sm);
  color: var(--gray-500);
  margin-top: var(--space-1);
  font-weight: 500;
}
.kpi-card .kpi-delta {
  font-size: var(--font-size-xs);
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--border-radius-pill);
  display: inline-flex; align-items: center; gap: 2px;
}
.kpi-card .kpi-delta.up   { background: var(--success-light); color: var(--success); }
.kpi-card .kpi-delta.down { background: var(--danger-light);  color: var(--danger);  }
.kpi-card .kpi-delta.flat { background: var(--gray-100);      color: var(--gray-600); }
.kpi-card .kpi-icon {
  position: absolute; top: var(--space-5); right: var(--space-6);
  width: 40px; height: 40px;
  border-radius: var(--border-radius-md);
  display: flex; align-items: center; justify-content: center;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-family);
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--border-radius-md);
  padding: 0.625rem 1.375rem;
  font-size: var(--font-size-base);
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  user-select: none;
}
.btn:focus-visible {
  outline: 3px solid var(--trusted-blue);
  outline-offset: 2px;
}
.btn:disabled, .btn.disabled {
  opacity: 0.5; cursor: not-allowed; pointer-events: none;
}
.btn-loading { position: relative; pointer-events: none; }
.btn-loading::after {
  content: '';
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: rgba(255,255,255,.9);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.btn-primary-ldh {
  background: var(--trusted-blue);
  color: var(--white);
  border-color: var(--trusted-blue);
  box-shadow: 0 2px 8px rgba(30,74,122,.25);
}
.btn-primary-ldh:hover {
  background: var(--trusted-light);
  border-color: var(--trusted-light);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(30,74,122,.35);
  transform: translateY(-1px);
}
.btn-primary-ldh:active { transform: translateY(0); box-shadow: none; }

.btn-outline-ldh {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-family); font-weight: 600; text-align: center;
  padding: 0.65rem 1.5rem;
  font-size: var(--font-size-sm);
  line-height: 1.5;
  color: var(--trusted-blue);
  background: transparent;
  border: 1.5px solid var(--trusted-blue);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
}
.btn-outline-ldh:hover { background: var(--info-light); color: var(--trusted-blue); text-decoration: none; }
.btn-outline-ldh:focus-visible { box-shadow: 0 0 0 3px rgba(30,74,122,.3); }

.btn-ghost-ldh {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-family); font-weight: 600; text-align: center;
  padding: 0.65rem 1.5rem;
  font-size: var(--font-size-sm);
  line-height: 1.5;
  color: var(--gray-600);
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
}
.btn-ghost-ldh:hover { background: var(--gray-100); color: var(--navy); text-decoration: none; }
.btn-ghost-ldh:focus-visible { box-shadow: 0 0 0 3px rgba(30,74,122,.3); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: 0 2px 8px rgba(0,24,36,.3);
}
.btn-navy:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0,24,36,.4);
  transform: translateY(-1px);
}

.btn-teal {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-teal:hover {
  background: var(--teal-light);
  border-color: var(--teal-light);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

.btn-outline-blue {
  background: transparent;
  color: var(--trusted-blue);
  border-color: var(--trusted-blue);
}
.btn-outline-blue:hover { background: var(--trusted-blue); color: var(--white); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--gray-700);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--gray-100); color: var(--navy); }

.btn-sm { padding: 0.375rem 0.875rem; font-size: var(--font-size-sm); border-radius: var(--border-radius); }
.btn-lg { padding: 0.875rem 2rem;     font-size: var(--font-size-lg); border-radius: var(--border-radius-lg); }
.btn-xl { padding: 1.1rem 2.5rem;     font-size: var(--font-size-xl); border-radius: var(--border-radius-lg); font-weight: 700; }

.form-label-ldh {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: var(--space-2);
}
.form-label-ldh .required-mark { color: var(--danger); margin-left: 2px; }

.form-control-ldh {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--gray-900);
  background: var(--white);
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  line-height: 1.5;
  -webkit-appearance: none;
  appearance: none;
}
.form-control-ldh:focus {
  border-color: var(--border-color-focus);
  box-shadow: 0 0 0 3px rgba(30,74,122,.12);
}
.form-control-ldh:hover:not(:focus) { border-color: var(--gray-300); }
.form-control-ldh.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(185,28,28,.1); }
.form-control-ldh.is-valid   { border-color: var(--success); }
.form-control-ldh::placeholder { color: var(--gray-400); }

.input-icon-wrap { position: relative; display: flex; align-items: center; }
.input-icon { position: absolute; left: 14px; color: var(--gray-400); width: 18px; height: 18px; pointer-events: none; }
.ps-input-icon { padding-left: 42px !important; }
.pe-icon-btn { padding-right: 42px !important; }

.form-select-ldh {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='https://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%236b7f96' d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 14px;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-hint {
  font-size: var(--font-size-xs);
  color: var(--gray-500);
  margin-top: var(--space-1);
  line-height: 1.5;
}
.form-error {
  font-size: var(--font-size-xs);
  color: var(--danger);
  margin-top: var(--space-1);
  display: flex; align-items: center; gap: 4px;
  font-weight: 500;
}
.form-error svg { flex-shrink: 0; }

.form-group { margin-bottom: var(--space-5); }

.form-check-ldh { display: flex; align-items: flex-start; gap: var(--space-3); cursor: pointer; }
.form-check-ldh input[type="checkbox"],
.form-check-ldh input[type="radio"] {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px;
  accent-color: var(--trusted-blue); cursor: pointer;
}
.form-check-ldh .check-label {
  font-size: var(--font-size-sm);
  color: var(--gray-700);
  line-height: 1.5;
}

.toggle-switch { position: relative; display: inline-flex; align-items: center; gap: var(--space-3); cursor: pointer; }
.toggle-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-track {
  width: 44px; height: 24px;
  background: var(--gray-300);
  border-radius: 12px;
  position: relative;
  transition: background var(--transition-fast);
  flex-shrink: 0;
}
.toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  transition: transform var(--transition-fast);
}
.toggle-switch input:checked + .toggle-track { background: var(--trusted-blue); }
.toggle-switch input:checked + .toggle-track .toggle-thumb { transform: translateX(20px); }
.toggle-switch input:focus-visible + .toggle-track { outline: 3px solid var(--trusted-blue); outline-offset: 2px; }
.toggle-label { font-size: var(--font-size-sm); color: var(--gray-700); font-weight: 500; }

.badge-ldh {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--border-radius-pill);
  line-height: 1.4;
  white-space: nowrap;
}
.badge-navy    { background: var(--navy);         color: var(--white); }
.badge-blue    { background: var(--info-light);   color: var(--trusted-blue); }
.badge-teal    { background: var(--teal-pale);    color: var(--teal); }
.badge-success { background: var(--success-light);color: var(--success); }
.badge-warning { background: var(--warning-light);color: var(--warning); }
.badge-danger  { background: var(--danger-light); color: var(--danger); }
.badge-gray    { background: var(--gray-100);     color: var(--gray-600); }
.badge-outline-blue { background: transparent; color: var(--trusted-blue); border: 1px solid var(--trusted-blue); }
.badge-outline-blue:hover { background: var(--info-light); }

.ldh-navbar {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.ldh-navbar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, rgba(16,168,159,0) 0%, rgba(16,168,159,.55) 50%, rgba(16,168,159,0) 100%);
}
.ldh-navbar .container {
  min-height: 76px;
}
.ldh-navbar.is-scrolled {
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
}
.ldh-navbar .navbar-brand img { height: 68px; width: auto; }
.ldh-nav-primary {
  gap: 0.35rem;
}
.ldh-navbar .nav-link {
  color: rgba(255,255,255,.75) !important;
  font-size: var(--font-size-sm);
  font-weight: 600;
  padding: 0.58rem 0.8rem !important;
  border-radius: var(--border-radius);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}
.ldh-navbar .nav-link:hover,
.ldh-navbar .nav-link.active {
  color: var(--white) !important;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
}
.ldh-nav-actions .btn.btn-primary-ldh {
  box-shadow: 0 8px 18px rgba(16,168,159,.26);
}
.ldh-nav-actions .btn.btn-primary-ldh:hover {
  transform: translateY(-1px);
}
.ldh-navbar .navbar-toggler {
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: var(--border-radius);
  padding: 0.3rem 0.5rem;
  color: var(--white);
}
.ldh-navbar .navbar-toggler-icon { filter: invert(1); }
.ldh-navbar .dropdown-menu {
  background: var(--slate);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  margin-top: 8px;
  min-width: 220px;
}
.ldh-navbar .dropdown-item {
  color: rgba(255,255,255,.8);
  font-size: var(--font-size-sm);
  border-radius: var(--border-radius);
  padding: 0.5rem 0.75rem;
  display: flex; align-items: center; gap: 8px;
  transition: all var(--transition-fast);
}
.ldh-navbar .dropdown-item:hover { background: rgba(255,255,255,.08); color: var(--white); }
.ldh-navbar .dropdown-divider { border-color: rgba(255,255,255,.1); }

.ldh-nav-user-dropdown {
  background: var(--white);
  border-color: var(--border-color);
  min-width: 244px;
}
.ldh-nav-user-dropdown .dropdown-item {
  color: var(--gray-700);
}
.ldh-nav-user-dropdown .dropdown-item:hover {
  background: var(--gray-50);
  color: var(--navy);
}

.ldh-nav-main-dropdown .dropdown-item {
  color: rgba(255,255,255,.86);
}

.hero-section {
  background: var(--navy);
  padding: var(--space-20) 0 var(--space-16);
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(30,74,122,.4) 0%, transparent 70%);
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
  background: var(--off-white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(13,122,115,.2);
  border: 1px solid rgba(13,122,115,.35);
  border-radius: var(--border-radius-pill);
  padding: 6px 14px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--teal-light);
  margin-bottom: var(--space-5);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.hero-eyebrow { color: var(--teal-light); font-size: var(--font-size-sm); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: var(--space-3); }
.hero-headline, .hero-title { color: var(--white); margin-bottom: var(--space-5); }
.hero-title-accent { color: var(--teal-light); }
.hero-subhead, .hero-subtitle { color: rgba(255,255,255,.65); font-size: var(--font-size-lg); line-height: 1.7; max-width: 580px; margin-bottom: var(--space-8); }

.ldh-typewriter {
  display: inline-block;
  position: relative;
  min-height: 1.3em;
  white-space: nowrap;
  padding-right: 0.2em;
}
.ldh-typewriter::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0.08em;
  width: 2px;
  height: 1.05em;
  background: var(--teal-light);
  animation: caretBlink 1s steps(1, end) infinite;
}
.ldh-typewriter.is-static::after { display: none; }

.campaign-bridge {
  background: linear-gradient(130deg, var(--navy-mid) 0%, var(--slate) 52%, #053c4f 100%);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.84);
  padding: var(--space-10) 0;
}
.campaign-bridge-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
.campaign-bridge-copy p {
  max-width: 58ch;
  color: rgba(255,255,255,.7);
}
.campaign-bridge-panel {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--border-radius-xl);
  padding: var(--space-5);
  backdrop-filter: blur(2px);
}
.campaign-theme-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: var(--font-size-sm);
}
.campaign-theme-row:last-child { border-bottom: none; }
.campaign-theme-row span { color: rgba(255,255,255,.7); font-weight: 500; }
.campaign-theme-row strong { color: var(--white); font-size: var(--font-size-sm); }

.campaign-page {
  background: var(--off-white);
}
.campaign-hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-16) 0 var(--space-12);
  background: radial-gradient(circle at 16% 12%, rgba(16,168,159,.28) 0%, rgba(16,168,159,0) 36%),
              linear-gradient(146deg, var(--navy) 0%, var(--slate) 62%, #043047 100%);
  color: var(--white);
}
.campaign-hero::after {
  content: '';
  position: absolute;
  left: -15%;
  bottom: -64px;
  width: 130%;
  height: 140px;
  background: var(--off-white);
  transform: rotate(-3deg);
}
.campaign-hero-inner {
  position: relative;
  z-index: 1;
}
.campaign-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: var(--space-4);
}
.campaign-hero-subtitle {
  font-size: var(--font-size-lg);
  color: rgba(255,255,255,.78);
  max-width: 62ch;
}
.campaign-proof-strip {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.campaign-proof-chip {
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  padding: 6px 12px;
  border-radius: var(--border-radius-pill);
  font-size: var(--font-size-xs);
  color: var(--white);
  font-weight: 600;
}

.messy-meter-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius-xl);
  padding: var(--space-6);
}
.messy-meter-options {
  display: grid;
  gap: 10px;
}
.messy-meter-option {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}
.messy-meter-option:hover {
  border-color: var(--trusted-blue);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,24,36,.08);
}
.messy-meter-option input {
  width: 18px;
  height: 18px;
}

.famous-last-words {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--space-4);
}
.famous-last-words p {
  font-size: var(--font-size-sm);
  color: var(--gray-700);
  margin: 0;
}
.famous-last-words strong {
  color: var(--danger);
}

.page-hero-sm {
  background: var(--navy);
  padding: var(--space-12) 0 var(--space-8);
  position: relative;
  overflow: hidden;
}
.page-hero-sm::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 30px;
  background: var(--off-white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero-title {
  color: var(--white);
  margin-bottom: var(--space-3);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.breadcrumb-ldh {
  margin: 0; padding: 0;
  font-size: var(--font-size-sm); font-weight: 500;
}
.breadcrumb-ldh .breadcrumb-item a { color: rgba(255,255,255,.7); text-decoration: none; }
.breadcrumb-ldh .breadcrumb-item a:hover { color: var(--white); }
.breadcrumb-ldh .breadcrumb-item.active { color: var(--white); opacity: 0.9; }
.breadcrumb-ldh .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

.catalog-sidebar {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--space-4);
  position: sticky; top: 80px;
}
.sidebar-heading {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--gray-100);
}

.sidebar-filter-list { list-style: none; padding: 0; margin: 0; }
.sidebar-filter-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  font-size: var(--font-size-sm); font-weight: 500; color: var(--gray-700);
  border-radius: var(--border-radius); text-decoration: none;
  transition: all var(--transition-fast);
}
.sidebar-filter-item:hover { background: var(--gray-50); color: var(--trusted-blue); }
.sidebar-filter-item.active { background: var(--info-light); color: var(--trusted-blue); font-weight: 600; }
.sidebar-filter-count { font-size: 11px; background: var(--gray-100); padding: 2px 8px; border-radius: 20px; color: var(--gray-500); }
.sidebar-filter-item.active .sidebar-filter-count { background: var(--white); color: var(--trusted-blue); }

.sidebar-promo-box {
  background: var(--gray-50); border: 1px solid var(--border-color);
  border-radius: var(--border-radius); padding: var(--space-4);
  text-align: center;
}

.empty-state {
  background: var(--white);
  border: 2px dashed var(--gray-300);
  border-radius: var(--border-radius-lg);
  padding: var(--space-10) var(--space-6);
  color: var(--gray-500);
}

.pagination-ldh { gap: 8px; }
.pagination-ldh .page-item .page-link {
  border: 1px solid var(--border-color); border-radius: var(--border-radius);
  color: var(--gray-700); font-weight: 500; font-size: var(--font-size-sm);
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; padding: 0;
}
.pagination-ldh .page-item:not(.active) .page-link:hover { background: var(--gray-50); color: var(--trusted-blue); }
.pagination-ldh .page-item.active .page-link { background: var(--trusted-blue); color: var(--white); border-color: var(--trusted-blue); }

.page-hero-subtitle {
  color: rgba(255,255,255,.65);
  font-size: var(--font-size-base);
  max-width: 600px;
}

.hero-trust-row {
  display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6); align-items: center;
  margin-top: var(--space-8);
}
.hero-trust-item {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.6);
  font-size: var(--font-size-sm);
  font-weight: 500;
}
.hero-trust-item svg { color: var(--teal-light); flex-shrink: 0; }

.hero-search-wrap {
  background: var(--white);
  border-radius: var(--border-radius-xl);
  padding: 8px 8px 8px 20px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-xl);
  max-width: 600px;
}
.hero-search-wrap input {
  flex: 1; border: none; outline: none;
  font-size: var(--font-size-base); color: var(--gray-900);
  font-family: var(--font-family);
  background: transparent;
}
.hero-search-wrap input::placeholder { color: var(--gray-400); }
.hero-search-wrap button { flex-shrink: 0; border-radius: var(--border-radius-lg) !important; }
.search-suggestions {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-tooltip);
  overflow: hidden;
  max-height: 320px; overflow-y: auto;
}
.search-suggestion-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; cursor: pointer;
  transition: background var(--transition-fast);
  border-bottom: 1px solid var(--gray-100);
}
.search-suggestion-item:last-child { border-bottom: none; }
.search-suggestion-item:hover { background: var(--gray-50); }
.search-suggestion-item .sug-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--info-light);
  border-radius: var(--border-radius);
  display: flex; align-items: center; justify-content: center;
}
.search-suggestion-item .sug-name { font-weight: 600; font-size: var(--font-size-sm); color: var(--navy); }
.search-suggestion-item .sug-cat  { font-size: var(--font-size-xs); color: var(--gray-500); }

.step-indicator {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: var(--space-8);
  overflow-x: auto; padding: 0 var(--space-4);
}
.step-item {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--space-2); position: relative; flex: 1; min-width: 60px;
}
.step-item:not(:last-child)::after {
  content: ''; position: absolute;
  top: 18px; left: calc(50% + 18px);
  width: calc(100% - 36px); height: 2px;
  background: var(--gray-200);
  z-index: 0;
}
.step-item.completed:not(:last-child)::after { background: var(--trusted-blue); }
.step-num {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--font-size-sm); font-weight: 700;
  border: 2px solid var(--gray-200); background: var(--white); color: var(--gray-400);
  position: relative; z-index: 1; transition: all var(--transition-normal);
}
.step-item.active  .step-num { border-color: var(--trusted-blue); background: var(--trusted-blue); color: var(--white); box-shadow: 0 0 0 4px rgba(30,74,122,.15); }
.step-item.completed .step-num { border-color: var(--success); background: var(--success); color: var(--white); }
.step-label {
  font-size: 0.7rem; font-weight: 600; text-align: center;
  color: var(--gray-400); letter-spacing: 0.02em;
}
.step-item.active .step-label    { color: var(--trusted-blue); }
.step-item.completed .step-label { color: var(--success); }

.ldh-progress {
  height: 6px; background: var(--gray-200); border-radius: 3px; overflow: hidden;
}
.ldh-progress-bar {
  height: 100%; background: var(--trusted-blue); border-radius: 3px;
  transition: width var(--transition-slow);
}
.ldh-progress-bar.teal  { background: var(--teal); }
.ldh-progress-bar.green { background: var(--success); }

.score-ring { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring .score-text {
  position: absolute; text-align: center;
  font-weight: 800; color: var(--navy);
}

.alert { border-radius: var(--border-radius-md); border-width: 1.5px; font-size: var(--font-size-sm); }
.alert-success { background: var(--success-light); border-color: rgba(13,122,80,.2); color: var(--success); }
.alert-danger  { background: var(--danger-light);  border-color: rgba(185,28,28,.2); color: var(--danger); }
.alert-warning { background: var(--warning-light); border-color: rgba(180,83,9,.2);  color: var(--warning); }
.alert-info    { background: var(--info-light);    border-color: rgba(30,74,122,.2); color: var(--trusted-blue); }

.toast-container-ldh {
  position: fixed; bottom: 24px; right: 24px;
  z-index: var(--z-toast);
  display: flex; flex-direction: column; gap: 10px;
  max-width: 380px; width: 100%;
}
.ldh-toast {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  border-left: 4px solid var(--trusted-blue);
  padding: var(--space-4) var(--space-5);
  display: flex; align-items: flex-start; gap: var(--space-3);
  animation: toastIn .3s ease;
}
.ldh-toast.success { border-left-color: var(--success); }
.ldh-toast.error   { border-left-color: var(--danger); }
.ldh-toast.warning { border-left-color: var(--warning); }
.ldh-toast .toast-title { font-weight: 700; font-size: var(--font-size-sm); color: var(--navy); }
.ldh-toast .toast-body  { font-size: var(--font-size-xs); color: var(--gray-600); margin-top: 2px; }
.ldh-toast .toast-close { margin-left: auto; flex-shrink: 0; background: none; border: none; color: var(--gray-400); cursor: pointer; padding: 2px; line-height: 1; }

.ldh-overlay {
  position: fixed; inset: 0; background: rgba(0,24,36,.55);
  z-index: var(--z-drawer); opacity: 0; visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}
.ldh-overlay.open { opacity: 1; visibility: visible; }
.ldh-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(480px, 95vw);
  background: var(--white);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-drawer);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.ldh-drawer.open { transform: translateX(0); }
.ldh-drawer-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center; gap: var(--space-3);
  flex-shrink: 0;
}
.ldh-drawer-body { flex: 1; overflow-y: auto; padding: var(--space-6); }
.ldh-drawer-footer {
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}

.table-ldh {
  width: 100%; border-collapse: collapse;
  font-size: var(--font-size-sm);
}
.table-ldh thead th {
  background: var(--gray-50);
  color: var(--gray-600);
  font-weight: 600; font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 12px 16px; border-bottom: 2px solid var(--border-color);
  white-space: nowrap; position: sticky; top: 0; z-index: 2;
}
.table-ldh thead th.sortable { cursor: pointer; }
.table-ldh thead th.sortable:hover { background: var(--gray-100); }
.table-ldh tbody tr { border-bottom: 1px solid var(--gray-100); transition: background var(--transition-fast); }
.table-ldh tbody tr:last-child { border-bottom: none; }
.table-ldh tbody tr:hover { background: var(--gray-50); }
.table-ldh tbody td { padding: 14px 16px; color: var(--gray-700); vertical-align: middle; }
.table-ldh tbody td.td-primary { font-weight: 600; color: var(--navy); }
.table-ldh .row-actions { display: flex; align-items: center; gap: 6px; }
.table-ldh .action-btn {
  width: 30px; height: 30px;
  border: 1px solid var(--border-color); border-radius: var(--border-radius);
  background: var(--white); color: var(--gray-500);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--transition-fast);
}
.table-ldh .action-btn:hover { border-color: var(--trusted-blue); color: var(--trusted-blue); background: var(--info-light); }
.table-ldh .action-btn.danger:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-light); }

.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  border-radius: var(--border-radius);
  animation: shimmer 1.5s infinite;
}
.skeleton-text { height: 14px; border-radius: 4px; margin-bottom: 8px; }
.skeleton-text.sm { height: 10px; width: 60%; }
.skeleton-card { height: 120px; border-radius: var(--border-radius-lg); }
.skeleton-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }

.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px; flex-shrink: 0;
  background: var(--navy);
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column;
  z-index: var(--z-sticky);
  transition: width var(--transition-normal);
}
.admin-sidebar.collapsed { width: 72px; }
.admin-sidebar-header {
  padding: var(--space-5) var(--space-5);
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.admin-sidebar-logo { height: 32px; width: auto; }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  padding: 0 var(--space-6);
  height: 60px;
  display: flex; align-items: center; gap: var(--space-4);
  position: sticky; top: 0; z-index: var(--z-sticky);
}
.admin-content { flex: 1; padding: var(--space-6); background: var(--gray-50); }

.admin-nav-section { padding: var(--space-4) var(--space-4) var(--space-2); }
.admin-nav-section-label {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgba(255,255,255,.3);
  padding: 0 var(--space-3);
}
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--border-radius-md);
  color: rgba(255,255,255,.65);
  font-size: var(--font-size-sm); font-weight: 500;
  text-decoration: none; cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap; overflow: hidden;
  margin-bottom: 2px;
}
.admin-nav-item:hover { background: rgba(255,255,255,.07); color: var(--white); }
.admin-nav-item.active {
  background: rgba(30,74,122,.5);
  color: var(--white);
  border-left: 3px solid var(--trusted-light);
}
.admin-nav-item .nav-icon { flex-shrink: 0; width: 18px; height: 18px; }
.admin-nav-item .nav-badge {
  margin-left: auto; flex-shrink: 0;
  background: var(--danger);
  color: var(--white); font-size: 0.65rem;
  font-weight: 700; border-radius: 9999px;
  min-width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
}

.dashboard-layout { display: flex; min-height: 100vh; background: var(--gray-50); }
.dashboard-sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--border-color);
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto; display: flex; flex-direction: column;
}
.dashboard-sidebar-header {
  padding: var(--space-5);
  border-bottom: 1px solid var(--border-color);
}
.dashboard-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dashboard-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  padding: 0 var(--space-6);
  height: 64px;
  display: flex; align-items: center; gap: var(--space-4);
  position: sticky; top: 0; z-index: var(--z-sticky);
}
.dashboard-content { flex: 1; padding: var(--space-6); }

.status-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.status-dot.active, .status-dot.paid, .status-dot.completed, .status-dot.ready { background: var(--success); }
.status-dot.pending, .status-dot.draft { background: var(--gray-400); }
.status-dot.generating, .status-dot.processing { background: var(--trusted-blue); animation: pulse 1.5s infinite; }
.status-dot.failed, .status-dot.expired, .status-dot.error { background: var(--danger); }
.status-dot.warning { background: var(--warning); }

.status-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: var(--font-size-xs); font-weight: 600;
  padding: 3px 10px; border-radius: var(--border-radius-pill);
}
.status-chip.draft       { background: var(--gray-100); color: var(--gray-600); }
.status-chip.generating  { background: var(--info-light); color: var(--trusted-blue); }
.status-chip.generated, .status-chip.preview_viewed { background: var(--info-light); color: var(--trusted-blue); }
.status-chip.paid,
.status-chip.download_ready,
.status-chip.downloaded  { background: var(--success-light); color: var(--success); }
.status-chip.failed,
.status-chip.expired     { background: var(--danger-light); color: var(--danger); }
.status-chip.payment_pending { background: var(--warning-light); color: var(--warning); }

.doc-canvas-wrap {
  background: var(--white);
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.doc-canvas-topbar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--border-color);
  padding: var(--space-4) var(--space-5);
  display: flex; align-items: center; gap: var(--space-3);
  flex-wrap: wrap;
}
.doc-canvas-body {
  padding: var(--space-8) var(--space-10);
  max-height: 70vh; overflow-y: auto;
  font-family: 'Georgia', serif;
  font-size: 14px; line-height: 2; color: var(--gray-800);
}
.doc-clause {
  margin-bottom: var(--space-6); padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer; border-radius: var(--border-radius-md);
  padding: var(--space-4); transition: background var(--transition-fast);
}
.doc-clause:hover { background: var(--gray-50); }
.doc-clause.highlighted { background: var(--info-light); border-left: 3px solid var(--trusted-blue); }
.doc-clause-num { font-weight: 700; color: var(--navy); font-family: var(--font-family); font-size: var(--font-size-sm); }
.doc-clause-explain {
  background: var(--teal-pale);
  border-left: 3px solid var(--teal);
  padding: var(--space-3) var(--space-4);
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
  font-family: var(--font-family); font-size: var(--font-size-sm);
  color: var(--gray-700); margin-top: var(--space-3);
}
.doc-locked-overlay {
  position: relative;
}
.doc-locked-overlay::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 200px;
  background: linear-gradient(to bottom, transparent, var(--white));
  pointer-events: none;
}
.doc-unlock-cta {
  position: sticky; bottom: 0;
  background: var(--white);
  border-top: 1px solid var(--border-color);
  padding: var(--space-4) var(--space-5);
  text-align: center;
}

.health-score-card {
  background: var(--white);
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--space-5);
}
.health-item {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: var(--font-size-sm);
}
.health-item:last-child { border-bottom: none; }
.health-item.pass svg { color: var(--success); }
.health-item.fail svg { color: var(--danger); }
.health-item.warn svg { color: var(--warning); }

.intake-card {
  background: var(--white);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  max-width: 680px; margin: 0 auto;
}
.intake-header {
  background: var(--navy);
  padding: var(--space-6) var(--space-8);
  color: var(--white);
}
.intake-body { padding: var(--space-8); }
.intake-footer {
  padding: var(--space-5) var(--space-8);
  border-top: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4);
}
.intake-question {
  font-size: var(--font-size-xl); font-weight: 700;
  color: var(--navy); margin-bottom: var(--space-2);
}
.intake-why {
  background: var(--teal-pale);
  border-radius: var(--border-radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-sm); color: var(--gray-700);
  margin-top: var(--space-3);
  display: flex; align-items: flex-start; gap: 8px;
}
.intake-example {
  font-size: var(--font-size-xs); color: var(--gray-500);
  margin-top: var(--space-2);
  font-style: italic;
}

.processing-card {
  background: var(--white);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-12) var(--space-8);
  text-align: center;
  max-width: 500px; margin: 0 auto;
}
.processing-steps { list-style: none; text-align: left; margin-top: var(--space-8); }
.processing-step {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) 0;
  font-size: var(--font-size-sm); color: var(--gray-500);
  border-bottom: 1px solid var(--gray-100);
}
.processing-step.active { color: var(--trusted-blue); font-weight: 600; }
.processing-step.done   { color: var(--success); font-weight: 500; }
.processing-step .step-spinner {
  width: 18px; height: 18px; flex-shrink: 0;
  border: 2px solid var(--gray-200); border-top-color: var(--trusted-blue);
  border-radius: 50%; animation: spin .7s linear infinite;
}
.processing-step.done .step-spinner { border-color: var(--success); border-top-color: var(--success); animation: none; }
.processing-step.done .step-spinner::after {
  content: '\2713'; display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; font-size: 10px; font-weight: 700;
  color: var(--success); border: none;
}

.trust-strip {
  background: var(--navy);
  padding: var(--space-4) 0;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.65);
  font-size: var(--font-size-sm); font-weight: 500;
  white-space: nowrap;
}
.trust-item svg { color: var(--teal-light); flex-shrink: 0; }

.proof-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--success-light);
  border: 1px solid rgba(13,122,80,.2);
  border-radius: var(--border-radius-pill);
  padding: 4px 12px;
  font-size: var(--font-size-xs);
  font-weight: 600; color: var(--success);
}

.evidence-panel {
  background: var(--gray-50);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--space-5);
}
.evidence-panel .evidence-item {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: var(--font-size-sm);
}
.evidence-panel .evidence-item:last-child { border-bottom: none; }

.testimonial-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--space-6);
  box-shadow: 0 2px 12px rgba(0,24,36,.06);
}
.testimonial-stars { display: flex; gap: 2px; }
.testimonial-text { font-size: var(--font-size-sm); color: var(--gray-700); font-style: italic; margin-bottom: var(--space-4); line-height: 1.6; flex-grow: 1; }
.testimonial-author { margin-top: auto; }

.faq-item {
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-3);
  transition: border-color var(--transition-fast);
}
.faq-item:hover { border-color: var(--trusted-blue); }
.faq-item.open  { border-color: var(--trusted-blue); }
.faq-question {
  padding: var(--space-5) var(--space-6);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  cursor: pointer; font-weight: 600; color: var(--navy);
  font-size: var(--font-size-base);
  transition: background var(--transition-fast);
  user-select: none;
}
.faq-question:hover { background: var(--gray-50); }
.faq-item.open .faq-question { background: var(--info-light); color: var(--trusted-blue); }
.faq-chevron { transition: transform var(--transition-normal); flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  padding: 0 var(--space-6);
  max-height: 0; overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-normal);
  font-size: var(--font-size-sm); color: var(--gray-700); line-height: 1.75;
}
.faq-item.open .faq-answer { max-height: 800px; padding: var(--space-5) var(--space-6); }

.ldh-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,.65);
  padding: var(--space-16) 0 var(--space-8);
}
.ldh-footer .footer-brand img { height: 34px; margin-bottom: var(--space-4); }
.ldh-footer .footer-tagline { font-size: var(--font-size-sm); color: rgba(255,255,255,.45); max-width: 280px; line-height: 1.6; }
.ldh-footer h6 { color: var(--white); font-size: var(--font-size-sm); font-weight: 700; margin-bottom: var(--space-4); letter-spacing: 0.02em; text-transform: uppercase; }
.ldh-footer .footer-link {
  display: block; color: rgba(255,255,255,.55); font-size: var(--font-size-sm);
  padding: 3px 0; transition: color var(--transition-fast); text-decoration: none;
}
.ldh-footer .footer-link:hover { color: var(--white); }
.ldh-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: var(--space-8); padding-top: var(--space-6);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4);
  font-size: var(--font-size-xs); color: rgba(255,255,255,.35);
}
.ldh-footer .disclaimer-box {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--border-radius-md);
  padding: var(--space-4);
  font-size: var(--font-size-xs); color: rgba(255,255,255,.4);
  line-height: 1.6; margin-top: var(--space-8);
}

@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes pulse   { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px) scale(.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeIn  {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideRight {
  from { transform: translateX(40px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes caretBlink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}
.animate-fade-in { animation: fadeIn var(--transition-slow) both; }
.animate-slide-right { animation: slideRight var(--transition-slow) both; }

.border-ldh   { border: 1px solid var(--border-color) !important; }
.border-blue  { border: 1.5px solid var(--trusted-blue) !important; }
.border-teal  { border: 1.5px solid var(--teal) !important; }
.rounded-ldh  { border-radius: var(--border-radius) !important; }
.rounded-lg   { border-radius: var(--border-radius-lg) !important; }
.rounded-xl   { border-radius: var(--border-radius-xl) !important; }
.rounded-pill { border-radius: var(--border-radius-pill) !important; }
.shadow-ldh   { box-shadow: var(--shadow-card) !important; }
.shadow-lg-ldh{ box-shadow: var(--shadow-lg) !important; }
.divider      { height: 1px; background: var(--border-color); }
.divider-navy { height: 1px; background: rgba(255,255,255,.08); }

.hover-lift { transition: transform var(--transition-normal), box-shadow var(--transition-normal); }
.hover-lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.gap-2  { gap: 0.5rem; } .gap-3 { gap: 0.75rem; } .gap-4 { gap: 1rem; }

.kbd {
  display: inline-block;
  background: var(--gray-100); border: 1px solid var(--gray-300);
  border-radius: 4px; padding: 1px 6px;
  font-family: var(--font-family); font-size: 0.7rem; font-weight: 600;
  color: var(--gray-600); box-shadow: 0 1px 0 var(--gray-300);
}

.pricing-card {
  background: var(--white);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-xl);
  padding: var(--space-8);
  text-align: center;
  position: relative;
  transition: all var(--transition-normal);
}
.pricing-card.featured {
  border-color: var(--trusted-blue);
  box-shadow: 0 0 0 4px rgba(30,74,122,.08), var(--shadow-lg);
}
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--trusted-blue); color: var(--white);
  font-size: var(--font-size-xs); font-weight: 700;
  padding: 4px 16px; border-radius: var(--border-radius-pill);
  letter-spacing: 0.05em; text-transform: uppercase;
}
.pricing-price {
  font-size: 3.5rem; font-weight: 900; color: var(--navy);
  letter-spacing: -0.04em; line-height: 1;
}
.pricing-price sup { font-size: 1.5rem; font-weight: 700; vertical-align: top; margin-top: 10px; }
.pricing-per { font-size: var(--font-size-sm); color: var(--gray-500); font-weight: 500; }
.pricing-features { list-style: none; text-align: left; margin: var(--space-6) 0; }
.pricing-features li {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-2) 0; font-size: var(--font-size-sm); color: var(--gray-700);
}
.pricing-features li svg { color: var(--success); flex-shrink: 0; margin-top: 2px; }

@media (max-width: 767px) {
  .hero-section { padding: var(--space-12) 0 var(--space-10); }
  .ldh-typewriter { white-space: normal; }
  .campaign-bridge-grid { grid-template-columns: 1fr; }
  .campaign-hero { padding: var(--space-12) 0 var(--space-10); }
  .hero-search-wrap { flex-direction: column; padding: var(--space-4); gap: var(--space-3); }
  .hero-search-wrap input { width: 100%; }
  .hero-search-wrap button { width: 100%; }
  .admin-sidebar, .dashboard-sidebar { display: none; }
  .admin-sidebar.mobile-open, .dashboard-sidebar.mobile-open {
    display: flex; position: fixed; inset: 0; width: 280px;
    z-index: var(--z-modal);
  }
  .intake-card .intake-body { padding: var(--space-5); }
  .doc-canvas-body { padding: var(--space-5) var(--space-4); }
  .toast-container-ldh { bottom: 12px; right: 12px; left: 12px; max-width: 100%; }
  .step-indicator { gap: 0; }
  .step-label { display: none; }
  .kpi-card .kpi-value { font-size: var(--font-size-2xl); }
}

@media (max-width: 991px) {
  .campaign-bridge-grid { grid-template-columns: 1fr; }
  .ldh-navbar .navbar-collapse {
    border-top: 1px solid rgba(255,255,255,.06);
    padding: var(--space-3) var(--space-4);
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
  }
  .ldh-nav-primary,
  .ldh-nav-actions {
    gap: 0.2rem;
  }
  .ldh-navbar .nav-link {
    padding: 0.7rem 0.75rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ldh-typewriter::after,
  .animate-fade-in,
  .animate-slide-right {
    animation: none !important;
  }
}

@media print {
  .ldh-navbar, .ldh-footer, .btn, .admin-sidebar,
  .dashboard-sidebar, .admin-topbar, .dash-topbar,
  .dash-sidebar, .toast-container-ldh { display: none !important; }
  body { background: white; color: black; }
  .doc-canvas-body { max-height: none; overflow: visible; }
}

.bg-success-light  { background: var(--success-light) !important; }
.bg-success-pale   { background: var(--success-light) !important; }
.bg-warning-light  { background: var(--warning-light) !important; }
.bg-warning-pale   { background: var(--warning-light) !important; }
.warning-pale      { background: var(--warning-light) !important; }
.bg-info-light     { background: var(--info-light) !important; }
.bg-danger-light   { background: var(--danger-light) !important; }
.bg-danger-pale    { background: var(--danger-light) !important; }
.danger-pale       { background: var(--danger-light) !important; }
.bg-slate-pale     { background: #eef3f8 !important; }
.bg-teal-pale      { background: var(--teal-pale) !important; }

.text-success-ldh  { color: var(--success) !important; }
.text-danger-ldh   { color: var(--danger) !important; }
.text-warning-ldh  { color: var(--warning) !important; }
.text-info-ldh     { color: var(--trusted-blue) !important; }
.text-trusted-blue { color: var(--trusted-blue) !important; }
.text-teal-light   { color: var(--teal-light) !important; }
.text-gray-500     { color: var(--gray-500) !important; }
.text-gray-600     { color: var(--gray-600) !important; }
.text-gray-700     { color: var(--gray-700) !important; }

.border-gray-100      { border-color: var(--gray-100) !important; }
.border-gray-300      { border-color: var(--gray-300) !important; }
.border-trusted-blue  { border-color: var(--trusted-blue) !important; }
.tracking-wide        { letter-spacing: 0.05em; }
.opacity-85           { opacity: .85; }

.rounded-md  { border-radius: var(--border-radius-md) !important; }
.rounded-3   { border-radius: var(--border-radius-md) !important; }
.rounded-4   { border-radius: var(--border-radius-lg) !important; }
.rounded-top { border-top-left-radius: var(--border-radius-lg) !important;
               border-top-right-radius: var(--border-radius-lg) !important; }
.text-monospace, .font-monospace {
  font-family: 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
  font-feature-settings: 'tnum' on, 'lnum' on;
}

.alert-success-ldh,
.alert-info-ldh,
.alert-warning-ldh,
.alert-danger-ldh {
  display: flex; align-items: flex-start; gap: var(--space-3);
  border-radius: var(--border-radius-md);
  padding: var(--space-4) var(--space-5);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  line-height: 1.55;
}
.alert-success-ldh { background: var(--success-light); border-color: rgba(13,122,80,.18); color: var(--success); }
.alert-info-ldh    { background: var(--info-light);    border-color: rgba(30,74,122,.18); color: var(--trusted-blue); }
.alert-warning-ldh { background: var(--warning-light); border-color: rgba(180,83,9,.20);  color: var(--warning); }
.alert-danger-ldh  { background: var(--danger-light);  border-color: rgba(185,28,28,.18); color: var(--danger); }
.alert-success-ldh strong, .alert-info-ldh strong,
.alert-warning-ldh strong, .alert-danger-ldh strong { color: inherit; }

.admin-layout {
  display: grid;
  grid-template-columns: 264px 1fr;
  min-height: 100vh;
  background: var(--gray-50);
}
.admin-main {
  min-width: 0;
  display: flex; flex-direction: column;
}

.admin-sidebar {
  position: sticky; top: 0;
  height: 100vh;
  width: 264px;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: rgba(255,255,255,.85);
  border-right: 1px solid rgba(255,255,255,.04);
  display: flex; flex-direction: column;
  overflow: hidden;
  z-index: var(--z-sticky);
  box-shadow: 1px 0 0 rgba(0,0,0,.15);
}
.admin-sidebar-inner {
  display: flex; flex-direction: column;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.15) transparent;
}
.admin-sidebar-inner::-webkit-scrollbar { width: 6px; }
.admin-sidebar-inner::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 3px; }

.admin-brand {
  display: flex; align-items: center; gap: 10px;
  padding: var(--space-5) var(--space-5) var(--space-4);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white) !important;
  text-decoration: none;
  letter-spacing: -0.01em;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}
.admin-brand img {
  width: 32px; height: 32px;
  border-radius: var(--border-radius-sm);
  flex-shrink: 0;
}
.admin-brand:hover { color: var(--white) !important; }

.admin-nav {
  flex: 1;
  padding: var(--space-3) var(--space-3);
  overflow-y: auto;
}
.admin-nav-section { margin-bottom: var(--space-3); }
.admin-nav-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,.35);
  padding: var(--space-3) var(--space-3) var(--space-2);
}
.admin-nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  border-radius: var(--border-radius-md);
  transition: background var(--transition-fast), color var(--transition-fast);
  position: relative;
  white-space: nowrap;
}
.admin-nav-link:hover {
  background: rgba(255,255,255,.06);
  color: var(--white);
  text-decoration: none;
}
.admin-nav-link.active {
  background: rgba(30,74,122,.55);
  color: var(--white);
  font-weight: 600;
}
.admin-nav-link.active::before {
  content: '';
  position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 3px;
  background: var(--teal-light);
  border-radius: 0 3px 3px 0;
}
.admin-nav-link i { flex-shrink: 0; }
.admin-nav-link span {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis;
}
.admin-nav-badge {
  flex-shrink: 0;
  background: var(--danger);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 9999px;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
}

.admin-sidebar-footer {
  padding: var(--space-3) var(--space-4) var(--space-4);
  border-top: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
  background: rgba(0,0,0,.18);
}
.admin-foot-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,.55) !important;
  font-size: 0.75rem;
  text-decoration: none;
  padding: 4px 0;
}
.admin-foot-link:hover { color: var(--white) !important; }

.admin-userblock,
.dash-userblock {
  display: flex; align-items: center; gap: 10px;
  padding: var(--space-2) 0 0;
  min-width: 0;
}
.admin-userblock .text-small,
.admin-userblock .text-xs {
  color: rgba(255,255,255,.85) !important;
}
.admin-userblock,
.admin-userblock a.text-xs {
  color: rgba(255,255,255,.55) !important;
}
.admin-userblock a.text-xs:hover { color: var(--teal-light) !important; }

.dash-userblock .text-small  { color: var(--navy); }
.dash-userblock  { color: var(--gray-500) !important; }
.dash-userblock a.text-xs:hover { color: var(--trusted-blue) !important; }

.dash-avatar {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--trusted-blue), var(--teal));
  color: var(--white);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,24,36,.18);
}

.admin-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  height: 60px;
  padding: 0 var(--space-6);
  display: flex; align-items: center; gap: var(--space-4);
  position: sticky; top: 0;
  z-index: calc(var(--z-sticky) - 1);
  backdrop-filter: saturate(180%) blur(8px);
}
.admin-search {
  flex: 1;
  max-width: 480px;
  display: flex; align-items: center; gap: 8px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-md);
  padding: 7px 12px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.admin-search:focus-within {
  border-color: var(--trusted-blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(30,74,122,.10);
}
.admin-search-input {
  flex: 1; min-width: 0;
  border: none; outline: none;
  background: transparent;
  font-size: 0.875rem;
  color: var(--navy);
  font-family: var(--font-family);
}
.admin-search-input::placeholder { color: var(--gray-500); }
.admin-search-kbd {
  flex-shrink: 0;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 5px;
  padding: 1px 7px;
  font-size: 0.7rem; font-weight: 600;
  color: var(--gray-600);
  font-family: var(--font-family);
  box-shadow: 0 1px 0 var(--gray-300);
}

.admin-topbar-actions {
  margin-left: auto;
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0;
}
.admin-env-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 9px;
  border-radius: var(--border-radius-pill);
  text-transform: uppercase;
}
.admin-env-prod { background: var(--success-light); color: var(--success); }
.admin-env-dev  { background: var(--warning-light); color: var(--warning); }

.admin-content {
  flex: 1;
  padding: var(--space-6);
  background: var(--gray-50);
  min-width: 0;
}
.admin-footer {
  background: var(--white);
  border-top: 1px solid var(--border-color);
  padding: var(--space-4) var(--space-6);
  color: var(--gray-500);
}

.admin-page-head,
.dash-page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-color);
}
.admin-page-head h1,
.dash-page-head h1 {
  letter-spacing: -0.025em;
  margin-bottom: 4px !important;
}

.dash-layout {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
  background: var(--gray-50);
}
.dash-main {
  min-width: 0;
  display: flex; flex-direction: column;
}

.dash-sidebar {
  position: sticky; top: 0;
  height: 100vh;
  width: 248px;
  background: var(--white);
  border-right: 1px solid var(--border-color);
  display: flex; flex-direction: column;
  z-index: var(--z-sticky);
}
.dash-sidebar-inner {
  display: flex; flex-direction: column;
  height: 100%;
  overflow-y: auto;
}
.dash-brand {
  display: flex; align-items: center; gap: 10px;
  padding: var(--space-5);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy) !important;
  text-decoration: none;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}
.dash-brand img { width: 32px; height: 32px; flex-shrink: 0; border-radius: var(--border-radius-sm); }
.dash-brand:hover { color: var(--navy) !important; }

.dash-nav {
  flex: 1;
  padding: var(--space-4) var(--space-3);
  overflow-y: auto;
}
.dash-nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  border-radius: var(--border-radius-md);
  margin-bottom: 2px;
  transition: background var(--transition-fast), color var(--transition-fast);
  position: relative;
}
.dash-nav-link i {
  flex-shrink: 0;
  color: var(--gray-500);
  transition: color var(--transition-fast);
}
.dash-nav-link span { flex: 1; }
.dash-nav-link:hover {
  background: var(--gray-50);
  color: var(--navy);
  text-decoration: none;
}
.dash-nav-link:hover i { color: var(--trusted-blue); }
.dash-nav-link.active {
  background: var(--info-light);
  color: var(--trusted-blue);
  font-weight: 600;
}
.dash-nav-link.active i { color: var(--trusted-blue); }
.dash-nav-link.active::before {
  content: '';
  position: absolute; left: -3px; top: 8px; bottom: 8px;
  width: 3px;
  background: var(--trusted-blue);
  border-radius: 0 3px 3px 0;
}
.dash-nav-badge {
  flex-shrink: 0;
  background: var(--danger);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 9999px;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
}

.dash-sidebar-footer {
  padding: var(--space-4);
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
  background: var(--gray-50);
}

.dash-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  height: 64px;
  padding: 0 var(--space-6);
  display: flex; align-items: center; gap: var(--space-4);
  position: sticky; top: 0;
  z-index: calc(var(--z-sticky) - 1);
  backdrop-filter: saturate(180%) blur(8px);
}
.dash-search {
  flex: 1;
  max-width: 420px;
  display: flex; align-items: center; gap: 8px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-md);
  padding: 8px 12px;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.dash-search:focus-within {
  background: var(--white);
  border-color: var(--trusted-blue);
  box-shadow: 0 0 0 3px rgba(30,74,122,.10);
}
.dash-search-input {
  flex: 1; min-width: 0;
  border: none; outline: none;
  background: transparent;
  font-size: 0.875rem;
  color: var(--navy);
  font-family: var(--font-family);
}
.dash-search-input::placeholder { color: var(--gray-500); }
.dash-topbar-actions {
  margin-left: auto;
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0;
}

.dash-content {
  flex: 1;
  padding: var(--space-6);
  background: var(--gray-50);
  min-width: 0;
}
.dash-footer {
  background: var(--white);
  border-top: 1px solid var(--border-color);
  padding: var(--space-4) var(--space-6);
  color: var(--gray-500);
}
.dash-footer a { color: var(--gray-600); }
.dash-footer a:hover { color: var(--trusted-blue); }

.kpi-tile {
  display: flex; align-items: center; gap: var(--space-4);
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-normal), transform var(--transition-normal),
              border-color var(--transition-normal);
  min-height: 96px;
}
.kpi-tile:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--gray-300);
}
.kpi-tile-pop {
  position: relative;
  overflow: hidden;
}
.kpi-tile-pop::before {
  content: '';
  position: absolute; right: -30px; top: -30px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,74,122,.06) 0%, transparent 70%);
  pointer-events: none;
}
.kpi-tile-icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: var(--border-radius-md);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--info-light);
  color: var(--trusted-blue);
}
.kpi-tile-icon i, .kpi-tile-icon svg { width: 22px; height: 22px; }
.kpi-tile-value {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-feature-settings: 'tnum' on, 'lnum' on;
}
.kpi-tile-label {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 3px;
  font-weight: 500;
}
.kpi-tile-sub {
  font-size: 0.7rem;
  color: var(--gray-500);
  margin-top: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: var(--border-radius-pill);
  white-space: nowrap;
  line-height: 1.5;
}
.status-pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.status-pill.status-paid,
.status-pill.status-active,
.status-pill.status-completed,
.status-pill.status-resolved,
.status-pill.status-auto_resolved,
.status-pill.status-success,
.status-pill.status-downloaded,
.status-pill.status-download_ready { background: var(--success-light); color: var(--success); }

.status-pill.status-pending,
.status-pill.status-draft,
.status-pill.status-archived,
.status-pill.status-dismissed,
.status-pill.status-inactive { background: var(--gray-100); color: var(--gray-600); }

.status-pill.status-generating,
.status-pill.status-processing,
.status-pill.status-running,
.status-pill.status-leased,
.status-pill.status-retrying,
.status-pill.status-in_review,
.status-pill.status-intake_complete,
.status-pill.status-preview_viewed,
.status-pill.status-generated { background: var(--info-light); color: var(--trusted-blue); }

.status-pill.status-failed,
.status-pill.status-error,
.status-pill.status-expired,
.status-pill.status-locked,
.status-pill.status-open,
.status-pill.status-cancelled,
.status-pill.status-refunded { background: var(--danger-light); color: var(--danger); }

.status-pill.status-warning,
.status-pill.status-payment_pending,
.status-pill.status-pending_review { background: var(--warning-light); color: var(--warning); }

.status-pill.status-generating::before,
.status-pill.status-processing::before,
.status-pill.status-running::before { animation: pulse 1.5s infinite; }

.severity-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  vertical-align: middle;
}
.severity-dot.severity-critical { background: var(--danger);  box-shadow: 0 0 0 3px rgba(185,28,28,.15); animation: pulse 1.5s infinite; }
.severity-dot.severity-high     { background: #d97706;        box-shadow: 0 0 0 3px rgba(217,119,6,.15); }
.severity-dot.severity-medium   { background: var(--warning); box-shadow: 0 0 0 3px rgba(180,83,9,.12); }
.severity-dot.severity-low      { background: var(--gray-400);box-shadow: 0 0 0 3px rgba(148,166,184,.18); }

.dash-table {
  width: 100%;
  font-size: 0.875rem;
  margin-bottom: 0;
  color: var(--gray-700);
}
.dash-table thead th {
  background: var(--gray-50);
  color: var(--gray-500);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  border-top: none;
  white-space: nowrap;
  text-align: left;
}
.dash-table tbody tr {
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition-fast);
}
.dash-table tbody tr:last-child { border-bottom: none; }
.dash-table tbody tr:hover { background: var(--gray-50); }
.dash-table tbody td {
  padding: 12px 16px;
  vertical-align: middle;
  color: var(--gray-700);
  border-top: none;
}
.dash-table { color: var(--gray-500) !important; }

.dash-table .row-actions { display: inline-flex; gap: 6px; }

.quick-action {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  transition: all var(--transition-fast);
}
.quick-action i { color: var(--trusted-blue); flex-shrink: 0; }
.quick-action:hover {
  background: var(--info-light);
  border-color: var(--trusted-blue);
  color: var(--trusted-blue);
  transform: translateX(2px);
  text-decoration: none;
}

.notif-row {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--gray-100);
  background: var(--white);
  transition: background var(--transition-fast);
}
.notif-row:last-child { border-bottom: none; }
.notif-row:hover { background: var(--gray-50); }
.notif-row.unread { background: var(--info-light); }
.notif-row.unread:hover { background: #e3edf7; }
.notif-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  background: var(--info-light);
  color: var(--trusted-blue);
  border-radius: var(--border-radius-md);
  display: inline-flex; align-items: center; justify-content: center;
}
.notif-row.unread .notif-icon { background: var(--white); }

.notif-badge {
  position: absolute;
  top: 6px; right: 4px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  background: var(--danger);
  color: var(--white);
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
  border: 2px solid var(--navy);
}

.filter-tabs {
  display: inline-flex;
  background: var(--gray-100);
  border-radius: var(--border-radius-md);
  padding: 3px;
  gap: 2px;
}
.filter-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-600);
  text-decoration: none;
  border-radius: calc(var(--border-radius-md) - 3px);
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.filter-tab:hover { color: var(--navy); background: rgba(255,255,255,.5); }
.filter-tab.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 1px 3px rgba(0,24,36,.10);
}

.progress.progress-thin,
.progress-thin {
  height: 6px;
  border-radius: 3px;
  background: var(--gray-100);
  overflow: hidden;
}
.progress-thin .progress-bar {
  background: var(--trusted-blue);
  border-radius: 3px;
  transition: width var(--transition-slow);
}

.empty-state-icon {
  width: 64px; height: 64px;
  margin: 0 auto;
  background: var(--info-light);
  color: var(--trusted-blue);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}

.input-group-ldh {
  position: relative;
  display: inline-flex; align-items: center;
}
.input-group-ldh .input-group-icon {
  position: absolute;
  left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--gray-500);
  pointer-events: none;
}
.input-group-ldh .form-control-ldh {
  padding-left: 36px !important;
  min-width: 220px;
}

.bar-chart {
  display: flex; align-items: flex-end; gap: 6px;
  height: 120px;
  padding: var(--space-3) 0;
}
.bar-chart-col {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 6px;
}
.bar-chart-bar {
  width: 100%;
  background: linear-gradient(180deg, var(--trusted-blue), var(--trusted-light));
  border-radius: 3px 3px 0 0;
  min-height: 4px;
  transition: filter var(--transition-fast);
}
.bar-chart-col:hover .bar-chart-bar { filter: brightness(1.1); }
.bar-chart-label {
  font-size: 0.65rem;
  color: var(--gray-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.paginator {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border-color);
  background: var(--gray-50);
  font-size: 0.8rem;
  color: var(--gray-600);
}
.paginator a, .paginator .btn-sm {
  font-size: 0.8rem;
}

.auth-section {
  background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
  padding: var(--space-12) 0 var(--space-16);
  min-height: calc(100vh - 80px);
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
}
.auth-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 80% 20%, rgba(30,74,122,.05) 0%, transparent 70%),
              radial-gradient(ellipse 60% 50% at 20% 80%, rgba(13,122,115,.05) 0%, transparent 70%);
  pointer-events: none;
}
.auth-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) { .auth-card { padding: var(--space-10); } }

.ldh-navbar.ldh-navbar-dark { background: var(--navy); }
.ldh-navbar:not(.ldh-navbar-dark) {
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0,24,36,.04);
}
.ldh-navbar:not(.ldh-navbar-dark) .nav-link { color: var(--gray-700) !important; }
.ldh-navbar:not(.ldh-navbar-dark) .nav-link:hover,
.ldh-navbar:not(.ldh-navbar-dark) .nav-link.active {
  color: var(--navy) !important;
  background: var(--gray-50);
}
.ldh-navbar:not(.ldh-navbar-dark) .navbar-toggler {
  border: 1.5px solid var(--gray-300);
  color: var(--navy);
}
.ldh-navbar:not(.ldh-navbar-dark) .navbar-toggler-icon { filter: none; }
.ldh-navbar:not(.ldh-navbar-dark) .dropdown-menu {
  background: var(--white);
  border: 1px solid var(--border-color);
}
.ldh-navbar:not(.ldh-navbar-dark) .dropdown-item { color: var(--gray-700); }
.ldh-navbar:not(.ldh-navbar-dark) .dropdown-item:hover { background: var(--gray-50); color: var(--navy); }

.user-menu-trigger { display: inline-flex !important; align-items: center; gap: 6px; }
.user-avatar-sm {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--trusted-blue), var(--teal));
  color: var(--white);
  font-weight: 700;
  font-size: 0.75rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.nav-icon-btn {
  display: inline-flex !important;
  align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--border-radius);
}

.footer-brand-link {
  display: inline-flex; align-items: center;
  text-decoration: none;
  color: var(--white);
}
.footer-brand-link:hover { color: var(--white); }
.footer-brand-text {
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  letter-spacing: -0.01em;
}
.footer-heading {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}
.footer-links {
  list-style: none;
  padding: 0; margin: 0;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: rgba(255,255,255,.6);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--white); }
.footer-disclaimer {
  font-size: 0.75rem;
  line-height: 1.65;
  color: rgba(255,255,255,.45);
  border-left: 2px solid rgba(255,255,255,.10);
  padding-left: var(--space-3);
}
.footer-badges {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.footer-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.7);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--border-radius-pill);
}
.footer-badge i { color: var(--teal-light); }
.footer-divider {
  border: 0;
  border-top: 1px solid rgba(255,255,255,.08);
  margin: var(--space-3) 0 0;
}
.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,.45);
  margin: 0;
}

.trust-strip-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--space-6);
}
.trust-sep {
  width: 4px; height: 4px;
  background: rgba(255,255,255,.20);
  border-radius: 50%;
}

.document-canvas {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--space-8) var(--space-8);
  box-shadow: var(--shadow-md);
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.85;
  color: var(--gray-800);
  max-width: 880px;
  margin: 0 auto;
  position: relative;
}
@media (min-width: 768px) {
  .document-canvas { padding: var(--space-10) var(--space-12); }
}
.document-title {
  font-family: var(--font-family);
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--navy);
}
.document-watermark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-family: var(--font-family);
  font-weight: 800;
  font-size: clamp(3rem, 10vw, 6rem);
  color: rgba(0,24,36,.04);
  letter-spacing: 0.1em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  white-space: nowrap;
}
.signature-line {
  display: inline-block;
  border-bottom: 1px solid var(--gray-700);
  min-width: 220px;
  height: 1.4em;
}
.success-tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  background: var(--success);
  color: var(--white);
  border-radius: 50%;
  flex-shrink: 0;
}
.success-tick svg { width: 11px; height: 11px; }
.star-filled { color: #f59e0b; fill: #f59e0b; }

.review-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--teal);
  border-radius: var(--border-radius-md);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}
.review-card:hover { box-shadow: var(--shadow-md); transform: translateX(2px); }
.review-card.is_ai_added { border-left-color: var(--teal); background: linear-gradient(90deg, var(--teal-pale) 0%, var(--white) 50%); }
.review-card.missing_information,
.review-card.recommended_improvement { border-left-color: var(--warning); }

.ai-highlight-section {

  color: var(--white);
  padding: var(--space-12) 0;
  position: relative;
  overflow: hidden;
}
.ai-highlight-section::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
}

.section-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  padding: var(--space-16) 0;
  text-align: center;
  position: relative;
}
.cta-title {
  color: var(--white);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-3);
}
.cta-subtitle {
  color: rgba(255,255,255,.75);
  font-size: var(--font-size-lg);
  max-width: 640px;
  margin: 0 auto var(--space-6);
}

@media (max-width: 991px) {
  .catalog-sidebar {
    position: static;
    top: auto;
    margin-bottom: var(--space-8);
    padding: var(--space-4);
  }
  
  .sidebar-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
  }
  
  .sidebar-filter-item {
    flex: 1 1 calc(50% - var(--space-1));
    min-width: 120px;
    white-space: nowrap;
  }
  
  .sidebar-promo-box {
    margin-top: var(--space-4);
  }
}

@media (max-width: 767px) {
  .catalog-sidebar {
    background: var(--off-white);
    border: none;
    border-radius: 0;
    padding: var(--space-4);
    margin-bottom: var(--space-6);
  }
  
  .sidebar-filter-list {
    flex-wrap: wrap;
  }
  
  .sidebar-filter-item {
    flex: 0 1 calc(50% - var(--space-1));
    min-width: 100px;
    padding: 6px 10px;
    font-size: var(--font-size-xs);
  }
  
  .sidebar-filter-count {
    font-size: 10px;
    padding: 1px 6px;
  }
  
  .doc-type-card {
    border-radius: var(--border-radius-md);
    min-height: auto;        
    padding: var(--space-5); 
  }
  
  .doc-type-card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: var(--space-2);
  }
  .doc-type-card-icon svg,
  .doc-type-card-icon i[data-feather] { width: 20px; height: 20px; }
  
  .empty-state {
    padding: var(--space-6) var(--space-4);
  }
  
  .page-hero-subtitle {
    font-size: var(--font-size-sm);
  }
}

@media (max-width: 575px) {
  .doc-type-card {
    min-height: auto;
    padding: var(--space-4) var(--space-5); 
  }
  .doc-type-card-title { font-size: 0.875rem; }
  .doc-type-card-cat   { font-size: 0.68rem; padding: 3px 8px; }
  .doc-type-card-icon  { width: 36px; height: 36px; }
  .doc-type-card-icon svg,
  .doc-type-card-icon i[data-feather] { width: 18px; height: 18px; }
  .doc-type-card-featured    { font-size: 9px; padding: 2px 8px; top: 10px; right: 10px; }
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-8);
}
.section-header .section-label {
  display: inline-block;
  margin-bottom: var(--space-2);
}

.glossary-list {
  display: grid;
  gap: var(--space-3);
  list-style: none;
  padding: 0;
  margin: 0;
}
.glossary-item {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: var(--space-4) var(--space-5);
  transition: border-color var(--transition-fast);
}
.glossary-item:hover { border-color: var(--trusted-blue); }
.glossary-item dt {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.glossary-item dd {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.65;
}

.doc-icon-hero {
  width: 88px; height: 88px;
  background: var(--info-light);
  color: var(--trusted-blue);
  border-radius: var(--border-radius-lg);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-5);
}
.doc-icon-hero svg, .doc-icon-hero i { width: 40px; height: 40px; }
.doc-long-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-700);
}

.pricing-badge-large {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: var(--border-radius-pill);
  margin-bottom: var(--space-4);
  box-shadow: 0 4px 12px rgba(13,122,115,.25);
}

.hero-quick-links {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  margin-top: var(--space-5);
}
.hero-quick-links a {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.85);
  font-size: 0.8rem; font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--border-radius-pill);
  text-decoration: none;
  transition: all var(--transition-fast);
}
.hero-quick-links a:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.20);
  color: var(--white);
}

.brand-logo {
  height: 44px; width: auto;
  border-radius: var(--border-radius-sm);
}

.link-muted { color: var(--gray-500); text-decoration: none; }
.link-muted:hover { color: var(--trusted-blue); }
.link-teal  { color: var(--teal); text-decoration: none; }
.link-teal:hover { color: var(--teal-light); }

.input-btn-right {
  position: absolute;
  right: 6px; top: 50%; transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--gray-500);
  padding: 6px;
  border-radius: var(--border-radius);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.input-btn-right:hover { color: var(--trusted-blue); background: var(--gray-100); }
.btn-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

.form-control-ldh.form-control-sm {
  padding: 0.4rem 0.7rem;
  font-size: var(--font-size-sm);
}

@media (max-width: 991.98px) {
  .admin-layout, .dash-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar, .dash-sidebar {
    position: fixed; left: 0; top: 0;
    width: 280px; height: 100vh;
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    z-index: var(--z-modal);
    box-shadow: var(--shadow-xl);
  }
  body.admin-sidebar-open .admin-sidebar,
  body.dash-sidebar-open .dash-sidebar {
    transform: translateX(0);
  }
  body.admin-sidebar-open::after,
  body.dash-sidebar-open::after {
    content: '';
    position: fixed; inset: 0;
    background: rgba(0,24,36,.55);
    z-index: calc(var(--z-modal) - 1);
  }
  .admin-content, .dash-content { padding: var(--space-4); }
  .admin-topbar, .dash-topbar  { padding: 0 var(--space-4); }
  .admin-search, .dash-search  { display: none !important; }
}

@media (max-width: 575.98px) {
  .admin-page-head, .dash-page-head { flex-direction: column; align-items: flex-start; }
  .kpi-tile { padding: var(--space-4); min-height: 80px; }
  .kpi-tile-value { font-size: 1.35rem; }
}

.eco-reading-progress {
  position: fixed; left: 0; right: 0; top: 0;
  height: 3px; z-index: 1080; pointer-events: none;
  background: transparent;
}
.eco-reading-progress > span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-light) 100%);
  transition: width 80ms linear;
  box-shadow: 0 0 8px rgba(13,148,136,.45);
}

.eco-toc-inline { font-size: var(--font-size-sm); }
.eco-toc-inline > summary { list-style: none; cursor: pointer; outline: none; }
.eco-toc-inline > summary::-webkit-details-marker { display: none; }
.eco-toc-inline > summary::after {
  content: "\25BE";
  color: var(--gray-500); margin-left: 8px;
  transition: transform 200ms ease; display: inline-block;
}
.eco-toc-inline[open] > summary::after { transform: rotate(180deg); }
.eco-toc-list { padding-right: 4px; }
.eco-toc-link {
  display: block; padding: 6px 10px; border-radius: 6px;
  color: var(--gray-700); text-decoration: none;
  border-left: 2px solid transparent;
  transition: background-color 120ms, color 120ms, border-color 120ms;
  font-weight: 500;
}
.eco-toc-link:hover { background: var(--gray-100); color: var(--navy); }
.eco-toc-link.is-active {
  background: var(--teal-pale); color: var(--teal);
  border-left-color: var(--teal); font-weight: 700;
}

.eco-block { scroll-margin-top: 96px; }
.eco-block-heading { letter-spacing: -0.01em; }
.eco-block .rich-text p   { margin-bottom: var(--space-3); line-height: 1.7; color: var(--gray-800); }
.eco-block .rich-text p:last-child { margin-bottom: 0; }
.eco-block .rich-text ul,
.eco-block .rich-text ol  { padding-left: 1.25rem; margin-bottom: var(--space-3); line-height: 1.7; color: var(--gray-800); }
.eco-block .rich-text li  { margin-bottom: 6px; }
.eco-block .rich-text a   { color: var(--teal); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(13,148,136,.25); text-underline-offset: 3px; }
.eco-block .rich-text a:hover { text-decoration-color: var(--teal); }
.eco-block .rich-text strong { color: var(--navy); font-weight: 700; }
.eco-block .rich-text h3,
.eco-block .rich-text h4,
.eco-block .rich-text h5 { color: var(--navy); margin-top: var(--space-5); margin-bottom: var(--space-2); font-weight: 700; }
.eco-block .rich-text blockquote {
  border-left: 3px solid var(--teal);
  padding: var(--space-3) var(--space-4);
  margin: var(--space-4) 0;
  background: var(--gray-50);
  color: var(--gray-700); font-style: italic;
}
.eco-block .rich-text table { width: 100%; border-collapse: collapse; margin: var(--space-3) 0; }
.eco-block .rich-text table th,
.eco-block .rich-text table td { padding: 10px 12px; border-bottom: 1px solid var(--gray-200); text-align: left; font-size: var(--font-size-sm); }
.eco-block .rich-text table th { background: var(--gray-50); color: var(--navy); font-weight: 700; }

.eco-block-answer .eco-answer-card { background: linear-gradient(180deg, #ffffff 0%, var(--teal-pale) 220%); }
.eco-answer-badge { box-shadow: 0 4px 12px rgba(13,148,136,.18); }

.eco-process-list .eco-process-step { transition: transform 120ms, box-shadow 120ms; }
.eco-process-list .eco-process-step:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,24,36,.08); }
.eco-process-num { font-size: var(--font-size-base); }

.comparison-table thead th {
  background: var(--navy); color: var(--white);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  font-size: var(--font-size-xs); padding: 12px 16px;
}
.comparison-table tbody td { padding: 14px 16px; vertical-align: top; }
.comparison-table tbody tr:nth-child(even) { background: var(--gray-50); }
.comparison-table tbody tr:hover { background: var(--teal-pale); }
.comparison-table .ldh-yes::before { content: "\2713"; color: var(--success); font-weight: 800; margin-right: 6px; }
.comparison-table .ldh-no::before  { content: "\2717"; color: var(--danger);  font-weight: 800; margin-right: 6px; }

.cost-breakdown-table thead th { background: var(--gray-50); color: var(--navy); font-weight: 700; }
.cost-breakdown-table tbody td { padding: 12px 16px; vertical-align: middle; }
.cost-breakdown-table .price-cell { font-weight: 700; color: var(--teal); white-space: nowrap; }
.cost-breakdown-table .price-cell.is-bad { color: var(--danger); }

.eco-checklist-card .eco-checklist-item { border: 1px solid transparent; transition: background-color 120ms, border-color 120ms; }
.eco-checklist-card .eco-checklist-item:hover { background: var(--gray-50); border-color: var(--gray-200); }
.eco-checklist-card .eco-checklist-item.is-complete { background: var(--success-light); border-color: rgba(13,122,80,.18); }
.eco-checklist-card .eco-checklist-item.is-complete label { text-decoration: line-through; color: var(--gray-500); }
.eco-checklist-card .form-check-input:checked { background-color: var(--teal); border-color: var(--teal); }
.eco-checklist-card .form-check-input:focus { border-color: var(--teal); box-shadow: 0 0 0 0.2rem rgba(13,148,136,.18); }
.eco-checklist-progress .progress-bar { transition: width 200ms ease; }

.eco-feature-tile { transition: transform 120ms, box-shadow 120ms, border-color 120ms; }
.eco-feature-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,24,36,.08); border-color: var(--teal); }

.eco-mini-faq-item > summary {
  list-style: none; cursor: pointer; outline: none;
  padding-right: 24px; position: relative;
}
.eco-mini-faq-item > summary::-webkit-details-marker { display: none; }
.eco-mini-faq-item > summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.25rem; color: var(--teal); font-weight: 700; transition: transform 120ms;
}
.eco-mini-faq-item[open] > summary::after { content: "\2212"; }

.eco-block-quote figure { border-left: 4px solid var(--teal); }
.eco-block-quote blockquote { color: #f4faff; }

.eco-decision-tree ul { padding-left: 1rem; list-style: none; border-left: 2px dashed var(--gray-200); margin-left: 6px; }
.eco-decision-tree li { position: relative; padding: 6px 0 6px 18px; }
.eco-decision-tree li::before {
  content: ""; position: absolute; left: -8px; top: 14px;
  width: 14px; height: 2px; background: var(--gray-300);
}
.eco-decision-tree li > strong { color: var(--navy); }

.eco-related-card { transition: transform 120ms, box-shadow 120ms, border-color 120ms; border: 1px solid var(--border-color); }
.eco-related-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,24,36,.10); border-color: var(--teal); text-decoration: none; }

.eco-final-cta { box-shadow: 0 20px 40px rgba(0,24,36,.18); }
.eco-final-cta .btn-outline-light:hover { background: rgba(255,255,255,.12); }

.eco-mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 10px 12px;
  box-shadow: 0 -8px 24px rgba(0,24,36,.10);
  transform: translateY(0);
  transition: transform 220ms ease;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}
.eco-mobile-cta.is-hidden { transform: translateY(110%); }

@media (max-width: 991.98px) {
  body.has-eco-mobile-cta, body { padding-bottom: 76px; }
}

.text-white-75 { color: rgba(255,255,255,.78) !important; }

@media print {
  .eco-mobile-cta, .eco-toc, .eco-reading-progress, .eco-final-cta,
  .trust-strip, .ldh-nav, .ldh-footer { display: none !important; }
  .container { max-width: 100% !important; }
  .eco-block { page-break-inside: avoid; }
}

.page-home .section-padded { padding: var(--space-20) 0; }
@media (min-width: 992px) {
  .page-home .section-padded { padding: var(--space-24) 0; }
}
@media (max-width: 575.98px) {
  .page-home .section-padded { padding: var(--space-12) 0; }
}

.page-home .section-header { margin-bottom: var(--space-10) !important; }
@media (max-width: 575.98px) {
  .page-home .section-header { margin-bottom: var(--space-6) !important; }
}

.page-home .row.g-4         { --bs-gutter-x: 2rem; --bs-gutter-y: 2rem; }
@media (min-width: 992px) {
  .page-home .row.g-4       { --bs-gutter-x: 2.5rem; --bs-gutter-y: 2.5rem; }
}

.page-home .doc-type-card,
.page-home .how-step-card,
.page-home .testimonial-card,
.page-home .pricing-card {
  padding: var(--space-6);
}
@media (min-width: 992px) {
  .page-home .doc-type-card,
  .page-home .how-step-card,
  .page-home .testimonial-card { padding: var(--space-7) var(--space-6); }
  .page-home .pricing-card     { padding: var(--space-8); }
}

.page-home .hero-section { padding-top: var(--space-12); padding-bottom: var(--space-16); }
@media (min-width: 992px) {
  .page-home .hero-section { padding-top: var(--space-16); padding-bottom: var(--space-20); }
}

.page-home .kpi-card { padding: var(--space-5) var(--space-4); }
@media (min-width: 992px) {
  .page-home .kpi-card { padding: var(--space-6); }
}

.audience-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--space-6);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  box-shadow: 0 2px 10px rgba(0,24,36,.05);
}
@media (min-width: 768px)  { .audience-card { padding: var(--space-7); } }
@media (min-width: 1200px) { .audience-card { padding: var(--space-8); } }
.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px rgba(0,24,36,.10);
  border-color: var(--teal);
}
.audience-card-head { margin-bottom: var(--space-4); }
.audience-card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--teal-pale);
  color: var(--teal);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(13,148,136,.20);
  margin-bottom: var(--space-3);
}
.audience-card-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}
.audience-card-intent {
  font-size: var(--font-size-sm);
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 0;
}
.audience-card-body  { margin-top: var(--space-2); margin-bottom: var(--space-5); }
.audience-card-pains-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.audience-card-pains li {
  font-size: var(--font-size-sm);
  color: var(--gray-700);
  line-height: 1.7;
  display: flex; align-items: flex-start; gap: 8px;
  padding: 4px 0;
}
.audience-pain-icon {
  color: var(--warning);
  width: 14px; height: 14px;
  flex-shrink: 0; margin-top: 4px;
}
.audience-card-foot { margin-top: auto; padding-top: var(--space-4); border-top: 1px solid var(--gray-100); }
.audience-card-cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  font-weight: 700;
  color: var(--teal);
  text-decoration: none;
  font-size: var(--font-size-sm);
  padding: 8px 0;
  transition: color 120ms ease, gap 200ms ease;
}
.audience-card-cta:hover { color: var(--navy); gap: 14px; text-decoration: none; }
.audience-card-meta { font-size: 0.72rem; color: var(--gray-500); margin-top: 6px; line-height: 1.4; }
.audience-card-meta strong { color: var(--navy); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .audience-card { transition: none; }
  .audience-card:hover { transform: none; }
  .audience-card-cta:hover { gap: 8px; }
}

.hero-search-form { width: 100%; }
.hero-search-form .hero-search-wrap {
  background: var(--white);
  border-radius: var(--border-radius-xl);
  padding: 6px;
  display: flex; align-items: center; gap: 0;
  box-shadow: 0 10px 40px rgba(0,24,36,.18), 0 2px 8px rgba(0,24,36,.06);
  border: 1px solid rgba(255,255,255,.6);
  position: relative;
}
.hero-search-icon {
  width: 20px; height: 20px;
  color: var(--gray-500);
  margin: 0 8px 0 14px;
  flex-shrink: 0;
}
.hero-search-input {
  flex: 1; min-width: 0;
  border: none; outline: none;
  font-size: var(--font-size-base);
  color: var(--gray-900);
  font-family: var(--font-family);
  background: transparent;
  padding: 14px 6px;
  line-height: 1.4;
}
.hero-search-input::placeholder { color: var(--gray-400); }
.hero-search-btn {
  flex-shrink: 0;
  border-radius: calc(var(--border-radius-xl) - 4px) !important;
  padding: 12px 22px !important;
  font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
@media (max-width: 575.98px) {
  .hero-search-form .hero-search-wrap { padding: 4px; }
  .hero-search-icon { margin: 0 4px 0 10px; }
  .hero-search-input { font-size: 0.95rem; padding: 12px 4px; }
  .hero-search-btn { padding: 10px 14px !important; min-width: 48px; }
}

.hero-search-form .search-suggestions {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 20px 50px rgba(0,24,36,.18);
  z-index: 1050;
  overflow: hidden;
  max-height: 360px; overflow-y: auto;
  text-align: left;
}
.hero-search-form .search-suggestions[hidden] { display: none !important; }
.hero-search-form .search-suggestion-item.active { background: var(--gray-50); }

.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
  padding: var(--space-12) 0;
  border-bottom: 1px solid var(--gray-100);
}
.showcase-row:last-child { border-bottom: none; padding-bottom: var(--space-4); }
.showcase-row:first-child { padding-top: 0; }
.showcase-row-img-left  .showcase-row-image { order: -1; }
.showcase-row-img-right .showcase-row-image { order: 1; }

.showcase-eyebrow {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--teal-pale);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: var(--space-3);
}
.showcase-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}
@media (min-width: 992px) {
  .showcase-title { font-size: 2.4rem; }
}
.showcase-body {
  font-size: 1.05rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}
.showcase-perks {
  margin-bottom: var(--space-5);
}
.showcase-perks li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 6px 0;
  font-size: var(--font-size-sm);
  color: var(--gray-700);
  line-height: 1.6;
}
.showcase-perks li svg { color: var(--teal); flex-shrink: 0; margin-top: 3px; width: 16px; height: 16px; }

.showcase-row-image {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,24,36,.15);
}
.showcase-row-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.showcase-row-image::after {
  
  content: '';
  position: absolute; inset: 0;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: inherit;
  pointer-events: none;
}

@media (max-width: 991.98px) {
  .showcase-row {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding: var(--space-10) 0;
  }
  .showcase-row-img-left  .showcase-row-image,
  .showcase-row-img-right .showcase-row-image { order: -1; }
  .showcase-row-image { aspect-ratio: 16 / 10; }
  .showcase-title { font-size: 1.6rem; }
  .showcase-body  { font-size: 1rem; }
}

.diff-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--space-6);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  box-shadow: 0 2px 10px rgba(0,24,36,.05);
  display: flex; flex-direction: column; gap: var(--space-2);
}
@media (min-width: 992px) {
  .diff-card { padding: var(--space-7); }
}
.diff-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(0,24,36,.10);
  border-color: var(--teal);
}
.diff-card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--teal-pale);
  color: var(--teal);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(13,148,136,.22);
  margin-bottom: var(--space-2);
}
.diff-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}
.diff-card-desc {
  font-size: var(--font-size-sm);
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 0;
}

.guide-card {
  display: flex; flex-direction: column;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--space-5);
  text-decoration: none;
  color: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  box-shadow: 0 2px 8px rgba(0,24,36,.04);
  min-height: 200px;
}
.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(0,24,36,.10);
  border-color: var(--teal);
  text-decoration: none;
  color: inherit;
}
.guide-card-meta {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: var(--space-3);
  min-height: 22px;
}
.guide-card-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 3px 8px; border-radius: 999px;
  background: var(--gray-100); color: var(--gray-700);
}
.guide-card-chip-state   { background: var(--info-light); color: var(--trusted-blue); }
.guide-card-chip-quality { background: var(--teal-pale);  color: var(--teal); }
.guide-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  letter-spacing: -0.005em;
  margin: 0 0 var(--space-2) 0;
}
.guide-card-desc {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
  line-height: 1.55;
  flex-grow: 1;
  margin: 0 0 var(--space-3) 0;
}
.guide-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: auto; padding-top: var(--space-3);
  border-top: 1px solid var(--gray-100);
  font-size: 0.72rem; color: var(--gray-500);
}
.guide-card-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  color: var(--gray-500);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 70%;
}
.guide-card-arrow {
  color: var(--teal); transition: transform 180ms ease;
  flex-shrink: 0;
}
.guide-card:hover .guide-card-arrow { transform: translateX(4px); }

.guides-group-head h2 { letter-spacing: -0.01em; }

.page-hero-split {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: #fff;
  padding: var(--space-12) 0;
  position: relative; overflow: hidden;
}
@media (min-width: 992px) {
  .page-hero-split { padding: var(--space-16) 0; }
}
.page-hero-split .hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #A7F3D0;
  background: rgba(13,148,136,.20);
  padding: 5px 12px; border-radius: 999px;
  margin-bottom: var(--space-3);
}
.page-hero-split h1 {
  font-size: 2.2rem; font-weight: 800;
  line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
  color: #fff;
}
@media (min-width: 992px) {
  .page-hero-split h1 { font-size: 3rem; }
}
.page-hero-split .hero-lead {
  font-size: 1.1rem; line-height: 1.6;
  color: rgba(255,255,255,.85);
  max-width: 580px;
  margin-bottom: var(--space-5);
}
.page-hero-split .hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.page-hero-split .hero-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,.30);
}
.page-hero-split .hero-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
@media (max-width: 991.98px) {
  .page-hero-split .hero-image-wrap { aspect-ratio: 16 / 10; margin-top: var(--space-6); }
}

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
@media (max-width: 991.98px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .value-grid { grid-template-columns: 1fr; gap: var(--space-4); } }
.value-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--space-6);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  box-shadow: 0 2px 10px rgba(0,24,36,.05);
  display: flex; flex-direction: column;
}
@media (min-width: 992px) { .value-card { padding: var(--space-7); } }
.value-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(0,24,36,.10);
  border-color: var(--teal);
}
.value-card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--teal-pale); color: var(--teal);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
  box-shadow: 0 4px 10px rgba(13,148,136,.20);
}
.value-card-title {
  font-size: 1.15rem; font-weight: 700;
  color: var(--navy);
  line-height: 1.3; letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}
.value-card-desc {
  font-size: var(--font-size-sm); color: var(--gray-700);
  line-height: 1.7; margin-bottom: 0;
}

.contact-method {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--border-radius-lg);
  background: var(--white);
  border: 1px solid var(--border-color);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.contact-method:hover { border-color: var(--teal); box-shadow: 0 8px 24px rgba(0,24,36,.06); }
.contact-method-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--teal-pale); color: var(--teal);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-method-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-500); margin-bottom: 2px; }
.contact-method-value { font-weight: 600; color: var(--navy); font-size: var(--font-size-sm); text-decoration: none; }
.contact-method-value:hover { color: var(--teal); text-decoration: none; }

.content-prose {
  font-size: 1rem; line-height: 1.75; color: var(--gray-800);
}
.content-prose h2 {
  font-size: 1.5rem; font-weight: 700; color: var(--navy);
  margin: var(--space-8) 0 var(--space-3) 0;
  letter-spacing: -0.01em; scroll-margin-top: 96px;
}
.content-prose h2:first-child { margin-top: 0; }
.content-prose h3 {
  font-size: 1.15rem; font-weight: 700; color: var(--navy);
  margin: var(--space-6) 0 var(--space-2) 0;
}
.content-prose p  { margin-bottom: var(--space-4); }
.content-prose ul, .content-prose ol { padding-left: 1.25rem; margin-bottom: var(--space-4); }
.content-prose li { margin-bottom: 8px; }
.content-prose a { color: var(--teal); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(13,148,136,.30); text-underline-offset: 3px; }
.content-prose a:hover { text-decoration-color: var(--teal); }
.content-prose strong { color: var(--navy); font-weight: 700; }
.content-prose hr { border: 0; border-top: 1px solid var(--gray-200); margin: var(--space-8) 0; }
.content-prose blockquote {
  border-left: 3px solid var(--teal);
  padding: var(--space-3) var(--space-4);
  margin: var(--space-4) 0;
  background: var(--gray-50);
  color: var(--gray-700); font-style: italic;
}

.legal-toc {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-6);
  font-size: var(--font-size-sm);
}
.legal-toc-heading { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-500); margin-bottom: var(--space-2); }
.legal-toc ol { padding-left: 1.25rem; margin: 0; column-count: 1; }
@media (min-width: 768px) { .legal-toc ol { column-count: 2; column-gap: var(--space-6); } }
.legal-toc a { color: var(--navy); text-decoration: none; font-weight: 500; }
.legal-toc a:hover { color: var(--teal); text-decoration: underline; }

.auth-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 80vh; }
@media (max-width: 991.98px) { .auth-split { grid-template-columns: 1fr; min-height: auto; } }
.auth-split-form  { padding: var(--space-12) var(--space-6); display: flex; align-items: center; justify-content: center; background: var(--white); }
.auth-split-image {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: #fff;
  padding: var(--space-12) var(--space-6);
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
@media (max-width: 991.98px) { .auth-split-image { display: none; } }
.auth-split-image-inner { max-width: 480px; margin: 0 auto; position: relative; z-index: 2; }
.auth-split-image-bg {
  position: absolute; inset: 0;
  background-image: var(--auth-bg, none);
  background-size: cover; background-position: center;
  opacity: 0.20;
}
.auth-card { width: 100%; max-width: 440px; }

.page-hero-sm h1.page-hero-title { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
@media (min-width: 992px) { .page-hero-sm h1.page-hero-title { font-size: 2.8rem; } }
.page-hero-sm .page-hero-subtitle { max-width: 720px; font-size: 1.1rem; }

.hp-recent-rail .guide-card { min-height: 180px; padding: var(--space-5); }
.hp-recent-rail .guide-card-meta { min-height: 18px; }

.hp-process-figure {
  max-width: 920px;
  display: block;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,24,36,.12);
  background: linear-gradient(135deg, #e3f6f4 0%, #f8fafc 100%);
  margin: 0 auto;
}
.hp-process-figure img {
  width: 100%; height: auto; display: block;
}

.campaign-hero-image {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,.30);
}
.campaign-hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.campaign-audience-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  box-shadow: 0 2px 10px rgba(0,24,36,.05);
  display: flex; flex-direction: column;
  height: 100%;
}
.campaign-audience-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(0,24,36,.10);
  border-color: var(--teal);
}
.campaign-audience-thumb {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  background: linear-gradient(135deg, var(--teal-pale) 0%, #e3f6f4 100%);
}
.campaign-audience-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 350ms ease; }
.campaign-audience-card:hover .campaign-audience-thumb img { transform: scale(1.05); }
.campaign-audience-body { padding: var(--space-5); display: flex; flex-direction: column; flex-grow: 1; }
@media (min-width: 992px) { .campaign-audience-body { padding: var(--space-6); } }

.messy-gauge-figure {
  max-width: 880px; margin: 0 auto;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0,24,36,.12);
}
.messy-gauge-figure img { width: 100%; height: auto; display: block; }

.glossary-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--space-5);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  box-shadow: 0 2px 8px rgba(0,24,36,.04);
  display: flex; flex-direction: column;
  scroll-margin-top: 100px;
}
.glossary-card:hover { border-color: var(--teal); box-shadow: 0 12px 28px rgba(0,24,36,.08); transform: translateY(-2px); }
.glossary-card-term { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: var(--space-2); letter-spacing: -0.01em; }
.glossary-card-def  { font-size: var(--font-size-sm); color: var(--gray-700); line-height: 1.65; margin-bottom: 0; }
.glossary-alpha-nav {
  display: flex; flex-wrap: wrap; gap: 6px;
  justify-content: center;
  padding: var(--space-3) 0;
  position: sticky; top: 0;
  background: rgba(248,250,252,.95);
  backdrop-filter: blur(6px);
  z-index: 10;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: var(--space-6);
}
.glossary-alpha-nav a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px;
  font-weight: 700; font-size: var(--font-size-sm);
  color: var(--gray-600); text-decoration: none;
  background: var(--white); border: 1px solid var(--border-color);
  transition: all 120ms ease;
}
.glossary-alpha-nav a:hover { background: var(--teal-pale); color: var(--teal); border-color: var(--teal); }
.glossary-alpha-nav a.is-empty { opacity: 0.35; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .campaign-audience-card, .campaign-audience-thumb img, .glossary-card { transition: none; }
  .campaign-audience-card:hover, .glossary-card:hover { transform: none; }
  .campaign-audience-card:hover .campaign-audience-thumb img { transform: none; }
}

/* ================================================================
   INTAKE WIZARD — dynamic multi-step intake page
   Scoped to .page-intake body class + named hook classes
   ================================================================ */

/* ── Sidebar: section step navigation ─────────────────────────── */
#dynamic-intake-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dyn-step + .dyn-step {
  border-top: 1px solid var(--gray-100);
}
.dyn-step-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 8px;
  background: transparent;
  border: none;
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  text-align: left;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.dyn-step-btn:hover {
  background: var(--gray-50);
  color: var(--navy);
}
.dyn-step.active .dyn-step-btn {
  background: var(--info-light);
  color: var(--trusted-blue);
  font-weight: 600;
  border-radius: var(--border-radius);
}
.dyn-step.completed .dyn-step-btn {
  color: var(--success);
}

/* Numbered badge inside the sidebar step button */
.dyn-step-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}
.badge-gray.dyn-step-num {
  background: var(--gray-100);
  color: var(--gray-600);
}
.dyn-step.active .dyn-step-num {
  background: var(--trusted-blue) !important;
  color: var(--white) !important;
}
.dyn-step.completed .dyn-step-num {
  background: var(--success-light) !important;
  color: var(--success) !important;
}
.badge-success.dyn-step-num {
  background: var(--success-light) !important;
  color: var(--success) !important;
}

/* ── Section header accent ──────────────────────────────────────── */
.dyn-section > div:first-child {
  position: relative;
}
.dyn-section > div:first-child::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 52px;
  height: 3px;
  background: var(--trusted-blue);
  border-radius: 2px;
}

/* ── Field-level visual separators ─────────────────────────────── */
.dyn-field {
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--gray-100);
}
.dyn-field:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0 !important;
}

/* Memory prefill indicator */
.dyn-field .text-xs.text-teal {
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Inline form validation error ───────────────────────────────── */
.form-error {
  font-size: var(--font-size-xs);
  color: var(--danger);
  margin-top: 4px;
  font-weight: 500;
}
.form-control-ldh.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(185,28,28,.10);
}

/* ── Section nav footer (Back / saved / Continue row) ─────────── */
.dyn-form > div:last-child {
  background: var(--gray-50);
  border-radius: var(--border-radius-md);
  padding: 14px var(--space-5) !important;
  border: 1px solid var(--gray-200) !important;
  margin-top: var(--space-5) !important;
}

/* Autosave status label */
.dyn-saved {
  font-size: var(--font-size-xs);
  min-width: 80px;
  text-align: center;
}
.dyn-saved.text-success-ldh { color: var(--success) !important; }
.dyn-saved.text-danger-ldh  { color: var(--danger)  !important; }

/* ── Step 1 jurisdiction card: tighter icon radius ─────────────── */
.page-intake .doc-icon-hero {
  border-radius: var(--border-radius-lg);
}

/* ── Step indicator on intake pages: stronger active ring ──────── */
.page-intake .step-indicator {
  margin-bottom: var(--space-6);
}
.page-intake .step-num {
  transition: box-shadow var(--transition-normal), background var(--transition-normal);
}
.page-intake .step-item.active .step-num {
  box-shadow: 0 0 0 5px rgba(30,74,122,.18);
}

/* ── AI generating modal ────────────────────────────────────────── */
#aiGeneratingModal .modal-content {
  background: var(--white);
}
#aiGeneratingModal .spinner-border {
  color: var(--teal) !important;
}

/* ── Mobile: sidebar collapses to compact horizontal strip ──────── */
@media (max-width: 991px) {
  #dynamic-intake-nav {
    display: flex;
    overflow-x: auto;
    gap: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  #dynamic-intake-nav::-webkit-scrollbar { display: none; }
  .dyn-step {
    flex-shrink: 0;
    min-width: 100px;
    max-width: 140px;
  }
  .dyn-step + .dyn-step {
    border-top: none;
    border-left: 1px solid var(--gray-100);
  }
  .dyn-step-btn {
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 0.75rem;
    padding: 8px 6px;
    gap: 5px;
  }
  .dyn-form > div:last-child {
    padding: 12px var(--space-4) !important;
  }
  .dyn-field {
    padding-bottom: var(--space-3);
  }
  .dyn-field:last-of-type { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .dyn-step-btn { transition: none; }
  .page-intake .step-num { transition: none; }
}
