/* ============================================================
   STEWARD — MASTER STYLESHEET  v2.0
   Design System: Roboto (headers) + Lato (body)
   Sections:
     1.  Fonts & CSS Variables
     2.  Base Reset
     3.  Typography
     4.  Public Nav (landing + generic pages)
     5.  Landing Page — Hero
     6.  Landing Page — Proof Bar
     7.  Landing Page — Sections & Layout
     8.  Landing Page — Components
     9.  Landing Page — Demo Form
     10. Public Footer
     11. Generic Page Layout  ← page-* classes
     12. Sidebar Navigation   (app)
     13. App Main Layout      (app)
     14. Buttons
     15. Stats Grid           (app)
     16. Document Cards       (app)
     17. Status Badges        (app)
     18. Modals               (app)
     19. Forms & Inputs       (app)
     20. Tables               (app)
     21. Upload Components    (app)
     22. Document Detail      (app)
     23. Loading & Empty      (app)
     24. Search Components    (app)
     25. Utility Classes
     26. Animations
     27. Responsive
     28. Demo
   ============================================================ */


/* ============================================================
   1. FONTS & CSS VARIABLES
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700;900&family=Lato:wght@300;400;600;700&display=swap');

:root {
    /* ── Background & Surface ─────────────────────────────── */
    --color-bg: #F7F8FA;
    --color-surface: #FFFFFF;
    --color-border: #E5E7EB;

    /* ── Text ─────────────────────────────────────────────── */
    --color-text-primary: #1F2937;
    --color-text-secondary: #6B7280;
    --color-text-tertiary: #9CA3AF;

    /* ── Brand ────────────────────────────────────────────── */
    --color-primary: #0A3EC5;
    --color-primary-dark: #082FA0;
    --color-primary-light: #818CF8;
    --color-accent: #10B981;
    --color-accent-dark: #059669;
    --color-warning: #F59E0B;
    --color-danger: #EF4444;
    --color-info: #3B82F6;
    --color-success: #10B981;

    /* ── Sidebar ──────────────────────────────────────────── */
    --sidebar-width: 260px;
    --sidebar-bg: #ffffff;
    --sidebar-text: #0e0e0e;
    --sidebar-text-static: #706d6d;
    --sidebar-text-active: #2567E2;
    --sidebar-hover: #ededed;
    --sidebar-active: #ededed;

    /* ── Status ───────────────────────────────────────────── */
    --color-high-risk: #FEE2E2;
    --color-high-risk-text: #991B1B;
    --color-medium-risk: #FEF3C7;
    --color-medium-risk-text: #92400E;
    --color-low-risk: #D1FAE5;
    --color-low-risk-text: #065F46;
    --color-high-confidence: #D1FAE5;
    --color-high-confidence-text: #065F46;

    /* ── Shadows ──────────────────────────────────────────── */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-sb: 0px 0 3px 1px #e5e5e5;

    /* ── Border Radius ────────────────────────────────────── */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* ── Nav height (used by page layouts) ───────────────── */
    --nav-height: 68px;

    /* ── Generic page layout widths ──────────────────────── */
    --page-max-width: 1100px;
    --page-content-width: 760px;
    --page-padding-x: 7%;
    --page-padding-y: 80px;
}


/* ============================================================
   2. BASE RESET
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

html .page-public {
    font-size: clamp(16px, 1vw + 0.35rem, 18px);
}

/* App body (dashboard pages) */
body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
}

/* Public body (landing + generic pages) — overrides flex layout */
body.page-public {
    display: block;
    overflow-x: hidden;
    line-height: 1.6;
}


/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */

h1,
h2,
h3,
h4,
h5,
h6,
.header-title h1,
.section-title,
.modal-title,
.card-title,
.stat-value {
    font-family: 'Roboto', sans-serif;
}


/* ============================================================
   4. PUBLIC NAV
   (shared by landing page and all generic/public pages)
   ============================================================ */


/* Burger button — hidden on desktop */
.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: background 0.15s;
}

.nav-burger:hover {
    background: var(--color-bg);
}

.nav-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: all 0.25s ease;
    transform-origin: center;
}

.nav-burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-burger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer */
.nav-mobile {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: 1.25rem var(--page-padding-x) 1.5rem;
    z-index: 99;
    box-shadow: var(--shadow-md);
    flex-direction: column;
    gap: 0.25rem;
}

.nav-mobile.open {
    display: flex;
}

.nav-mobile a {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-decoration: none;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-md);
    transition: color 0.2s, background 0.2s;
}

.nav-mobile a:hover {
    color: var(--color-primary);
    background: var(--color-bg);
}

.nav-mobile .nav-cta {
    background: var(--color-primary);
    color: #fff !important;
    text-align: center;
    margin-top: 0.5rem;
    padding: 0.75rem;
}

.nav-mobile .nav-cta:hover {
    background: var(--color-primary-dark);
}

.nav-mobile .nav-login {
    border: 1.5px solid var(--color-primary);
    color: var(--color-primary) !important;
    text-align: center;
    padding: 0.65rem;
}

.nav-mobile .nav-login:hover {
    background: var(--color-primary);
    color: #fff !important;
}

.public-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    height: var(--nav-height);
    padding: 0 var(--page-padding-x);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s;
}

.public-nav.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 48px;
    text-decoration: none;
}

.nav-logo img,
.nav-logo svg {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-family: 'Lato', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--color-primary);
}


/* Show burger, hide desktop links on mobile */
@media (max-width: 767px) {
    .nav-burger {
        display: flex;
    }

    .nav-links {
        display: none;
    }
}

/* Primary nav CTA — "Book a Demo" */
.nav-cta {
    background: var(--color-primary) !important;
    color: #fff !important;
    padding: 9px 22px;
    border-radius: var(--radius-md);
    transition: background 0.2s !important;
}

.nav-cta:hover {
    background: var(--color-primary-dark) !important;
}

/* Secondary nav button — "Login" */
.nav-login {
    background: transparent !important;
    color: var(--color-primary) !important;
    padding: 9px 18px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--color-primary) !important;
    font-weight: 600 !important;
    transition: background 0.2s, color 0.2s !important;
}

.nav-login:hover {
    background: var(--color-primary) !important;
    color: #fff !important;
}


/* ============================================================
   5. LANDING PAGE — HERO
   ============================================================ */

.hero {
    min-height: 100vh;
    padding-top: var(--nav-height);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
    padding-left: var(--page-padding-x);
    padding-right: 5%;
    background:
        radial-gradient(ellipse 55% 55% at 75% 45%, rgba(10, 62, 197, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 40% 50% at 5% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 60%),
        var(--color-bg);
}

.hero-content {
    padding: 80px 0 60px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 62, 197, 0.08);
    border: 1px solid rgba(10, 62, 197, 0.2);
    color: var(--color-primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 1.4rem;
    animation: fadeUp 0.5s ease both;
}

.hero-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-accent);
    flex-shrink: 0;
}

.hero h1 {
    font-size: clamp(2.1rem, 3.8vw, 3.1rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 1.2rem;
    animation: fadeUp 0.5s 0.08s ease both;
}

.hero h1 span {
    color: var(--color-primary);
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.75;
    max-width: 550px;
    margin-bottom: 2rem;
    animation: fadeUp 0.5s 0.16s ease both;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    animation: fadeUp 0.5s 0.24s ease both;
}

/* Landing primary button */
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-primary);
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 13px 26px;
    border-radius: var(--radius-md);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(10, 62, 197, 0.3);
}

.btn-hero-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(10, 62, 197, 0.35);
}

/* Landing ghost/outline button */
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-surface);
    color: var(--color-text-primary);
    font-family: 'Lato', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 13px 22px;
    border-radius: var(--radius-md);
    text-decoration: none;
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.btn-hero-secondary:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.hero-trust {
    margin-top: 2.2rem;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeUp 0.5s 0.32s ease both;
}

.trust-avs {
    display: flex;
}

.trust-avs span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.63rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -7px;
}

.trust-avs span:first-child {
    margin-left: 0;
}

.trust-txt {
    font-size: 0.79rem;
    color: var(--color-text-secondary);
}

.trust-txt strong {
    color: var(--color-text-primary);
}

/* Dashboard mockup inside hero */
.hero-visual {
    padding: 80px 0 60px;
    animation: fadeUp 0.7s 0.2s ease both;
}

.dash-mock {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.dash-topbar {
    background: var(--color-primary);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dash-dots {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dash-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dash-title-txt {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Lato', sans-serif;
    margin-left: 6px;
}

.dash-live {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    letter-spacing: 0.04em;
}

.dash-body {
    padding: 14px;
}

.dash-search {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    font-size: 0.75rem;
    color: var(--color-text-tertiary);
    font-family: 'Lato', sans-serif;
}

.dash-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin-bottom: 12px;
}

.dash-stat {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 9px;
}

.ds-label {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-tertiary);
    margin-bottom: 2px;
}

.ds-val {
    font-family: 'Roboto', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.ds-sub {
    font-size: 0.6rem;
    color: var(--color-accent);
    margin-top: 1px;
}

.dash-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dash-item {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 8px 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.di-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.di-icon {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.di-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.di-sub {
    font-size: 0.6rem;
    color: var(--color-text-tertiary);
    margin-top: 1px;
}

/* Dashboard status pills */
.dpill {
    font-size: 0.58rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 100px;
}

.dpill-green {
    background: #D1FAE5;
    color: #065F46;
}

.dpill-yellow {
    background: #FEF3C7;
    color: #92400E;
}

.dpill-blue {
    background: #DBEAFE;
    color: #1E40AF;
}

/* Backward-compat short names (used in index.html) */
.pg {
    background: #D1FAE5;
    color: #065F46;
}

.py {
    background: #FEF3C7;
    color: #92400E;
}

.pb {
    background: #DBEAFE;
    color: #1E40AF;
}

.ai-row {
    margin-top: 9px;
    background: linear-gradient(135deg, rgba(10, 62, 197, 0.05), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(10, 62, 197, 0.14);
    border-radius: var(--radius-md);
    padding: 9px 11px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.ai-tag {
    background: var(--color-primary);
    color: #fff;
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 1px;
}

.ai-txt {
    font-size: 0.68rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
}

.ai-txt strong {
    color: var(--color-primary);
}


/* ============================================================
   6. LANDING PAGE — PROOF BAR
   ============================================================ */

.proof-bar {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 13px var(--page-padding-x);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.proof-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.proof-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-accent);
    flex-shrink: 0;
}


/* ============================================================
   7. LANDING PAGE — SECTIONS & LAYOUT
   ============================================================ */

.lp-section {
    padding: 88px var(--page-padding-x);
}

.lp-section--dark {
    background: var(--color-primary);
}

.lp-section--surface {
    background: var(--color-surface);
}

.lp-narrow {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.lp-center {
    text-align: center;
}

/* Section label tag above headings */
.lp-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.lp-section--dark .lp-label {
    color: #6EE7B7;
}

/* Landing section headings */
.lp-section h2 {
    font-size: clamp(1.7rem, 2.8vw, 2.4rem);
    font-weight: 900;
    line-height: 1.15;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 0.9rem;
}

.lp-section h2 span {
    color: var(--color-primary);
}

.lp-section--dark h2 {
    color: #fff;
}

.lp-section--dark h2 span {
    color: #6EE7B7;
}

.lp-lead {
    font-size: 1.02rem;
    color: var(--color-text-secondary);
    line-height: 1.75;
}

.lp-section--dark .lp-lead {
    color: rgba(255, 255, 255, 0.52);
}


/* Scroll-reveal */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}



/* ── Ebook Download Block ── */
.ebook-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.ebook-card {
    background: white;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.ebook-cover-wrap {
    text-align: center;
    margin-bottom: 1.5rem;
}

.ebook-cover {
    display: inline-block;
    background: linear-gradient(135deg, #193871 0%, #2d5bc4 100%);
    border-radius: 8px;
    padding: 1.5rem 1.75rem;
    box-shadow: 4px 4px 16px rgba(25, 56, 113, 0.25);
    margin-bottom: 0.75rem;
}

.ebook-cover-eyebrow {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.ebook-cover-title {
    color: white;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.3;
    max-width: 240px;
    margin: 0 auto;
}

.ebook-cover-rule {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.ebook-cover-sub {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    margin-top: 0.5rem;
}

.ebook-cover-label {
    font-size: 0.8rem;
    color: var(--color-text-secondary, #6b7280);
}

.ebook-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.ebook-form-grp {
    margin-bottom: 0.75rem;
}

.ebook-form-grp label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--color-text-primary, #111);
}

.ebook-form-grp input,
.ebook-form-grp select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 8px;
    font-size: 0.875rem;
    box-sizing: border-box;
    font-family: inherit;
    background: white;
}

.ebook-error {
    display: none;
    color: #ef4444;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.ebook-submit {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, #193871 0%, #2d5bc4 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.15s;
}

.ebook-submit:hover {
    opacity: 0.9;
}

.ebook-disc {
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-text-secondary, #6b7280);
    margin-top: 0.6rem;
    margin-bottom: 0;
}

.ebook-success {
    display: none;
    text-align: center;
    padding: 1rem 0;
}

.ebook-success-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.ebook-success h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary, #111);
}

.ebook-success p {
    font-size: 0.875rem;
    color: var(--color-text-secondary, #6b7280);
    margin-bottom: 1.25rem;
}

.ebook-dl-btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, #193871 0%, #2d5bc4 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .ebook-wrap {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .ebook-form-row {
        grid-template-columns: 1fr;
    }
}



/* ============================================================
   8. LANDING PAGE — COMPONENTS
   ============================================================ */

/* Problem cards */
.prob-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
    margin-top: 2.8rem;
}

.prob-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.7rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
}

.prob-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.prob-icon {
    width: 42px;
    height: 42px;
    background: rgba(10, 62, 197, 0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto 10px;
}

.prob-icon img {
    width: 20px;
}

.prob-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.prob-card p {
    font-size: 0.855rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

/* Feature cards */
.feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-top: 2.8rem;
    max-width: var(--page-max-width);
    margin-left: auto;
    margin-right: auto;
}

.feat-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: var(--radius-lg);
    padding: 1.7rem;
    transition: background 0.2s, transform 0.2s;
}

.feat-card:hover {
    background: rgba(255, 255, 255, 0.11);
    transform: translateY(-2px);
}

.feat-icon {
    width: 42px;
    height: 42px;
    background: rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.feat-icon img {
    filter: invert(100%) sepia(89%) saturate(65%) hue-rotate(142deg) brightness(112%);
    max-width: 25px;
}

.feat-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.55rem;
}

.feat-card p {
    font-size: 0.835rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.65;
}

.feat-pill {
    display: inline-block;
    margin-top: 0.85rem;
    background: rgba(16, 185, 129, 0.18);
    color: #6EE7B7;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: 100px;
}

/* How it works steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
    margin-top: 2.8rem;
    position: relative;
}

.step {
    text-align: center;
    position: relative;
}

/*.step::after {
    content: '';
    position: absolute;
    top: 26px;
    left: calc(50% + 30px);
    width: calc(100% - 60px);
    height: 1px;
    background: var(--color-border);
}
*/

.step:last-child::after {
    display: none;
}

.step-num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 14px rgba(10, 62, 197, 0.25);
}

.step h3 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.4rem;
}

.step p {
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Audience cards */
.aud-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
    margin-top: 2.2rem;
}

.aud-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.aud-card:hover {
    box-shadow: var(--shadow-md);
}

.aud-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.aud-card.hoa::before {
    background: var(--color-primary);
}

.aud-card.pm::before {
    background: var(--color-accent);
}

.aud-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.65rem;
}

.aud-card.hoa .aud-label {
    color: var(--color-primary);
}

.aud-card.pm .aud-label {
    color: var(--color-accent);
}

.aud-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.65rem;
}

.aud-card>p {
    font-size: 0.855rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 1.3rem;
}

.aud-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.aud-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.845rem;
    color: var(--color-text-secondary);
}

.aud-chk {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    margin-top: 1px;
}

.aud-card.hoa .aud-chk {
    background: rgba(10, 62, 197, 0.1);
    color: var(--color-primary);
}

.aud-card.pm .aud-chk {
    background: rgba(16, 185, 129, 0.12);
    color: var(--color-accent-dark);
}

/* Testimonials */
.test-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
    margin-top: 2.4rem;
}

.testimonial {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.7rem;
    box-shadow: var(--shadow-sm);
}

.stars {
    color: var(--color-warning);
    font-size: 0.82rem;
    letter-spacing: 2px;
    margin-bottom: 0.85rem;
}

.testimonial blockquote {
    font-size: 0.855rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial cite {
    font-style: normal;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.t-role {
    font-size: 0.7rem;
    color: var(--color-text-tertiary);
    margin-top: 2px;
}


/* ============================================================
   9. LANDING PAGE — DEMO FORM
   ============================================================ */

.lp-form-wrap {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.lp-form-wrap .lp-lead {
    margin-bottom: 2rem;
}

.lead-form {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

.form-grp {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 0.85rem;
}

.form-grp label {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.58);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.form-grp input,
.form-grp select,
.form-grp textarea {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);
    padding: 10px 13px;
    font-family: 'Lato', sans-serif;
    font-size: 0.86rem;
    color: #fff;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    width: 100%;
}

.form-grp input::placeholder,
.form-grp textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.form-grp select option {
    background: var(--color-primary);
}

.form-grp input:focus,
.form-grp select:focus,
.form-grp textarea:focus {
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.11);
}

.form-grp textarea {
    resize: vertical;
    min-height: 76px;
}

.form-submit {
    width: 100%;
    background: var(--color-accent);
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    padding: 13px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    margin-top: 0.35rem;
    transition: background 0.2s, transform 0.15s;
}

.form-submit:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
}

.form-disc {
    text-align: center;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.26);
    margin-top: 0.85rem;
}

.form-success {
    display: none;
    text-align: center;
    padding: 2rem;
}

.form-success-icon {
    font-size: 2.8rem;
    margin-bottom: 0.7rem;
}

.form-success h3 {
    font-size: 1.35rem;
    color: #fff;
    margin-bottom: 0.4rem;
}

.form-success p {
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.86rem;
}

.int-mock img {
    max-width: 30px;
}

/* ============================================================
   10. PUBLIC FOOTER
   (shared by landing page and generic pages)
   ============================================================ */

.public-footer {
    background: #0C1A30;
    padding: 52px var(--page-padding-x) 32px;
    color: rgba(255, 255, 255, 0.32);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2.2rem;
}

.footer-logo-svg {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.82;
}

.footer-tagline {
    font-size: 0.78rem;
    margin-top: 0.45rem;
}

.footer-links {
    display: flex;
    gap: 2.8rem;
}

.footer-col h4 {
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 0.7rem;
}

.footer-col a {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    margin-bottom: 0.4rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 1.3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.74rem;
    flex-wrap: wrap;
    gap: 0.45rem;
}


/* ============================================================
   11. GENERIC PAGE LAYOUT
   Use <body class="page-public"> on any public page.
   Wrap content in <main class="page-main"> inside a
   <div class="page-wrapper"> for consistent nav offset.

   Available page variants:
     .page-article   — text-heavy content (About, Blog post)
     .page-wide      — wider layout (Use Cases, Features)
     .page-centered  — centered, minimal (404, Thank You, etc.)
     .page-split     — two-column (Contact, landing sub-page)

   Hero variants for generic pages:
     .page-hero              — full mini-hero band
     .page-hero--compact     — shorter version
     .page-hero--primary     — blue background
     .page-hero--light       — light grey background
   ============================================================ */

/* Outer wrapper — accounts for fixed nav */
.page-wrapper {
    padding-top: var(--nav-height);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main content grows to fill space above footer */
.page-main {
    flex: 1;
}

/* ── Page hero band ───────────────────────────────────────── */
.page-hero {
    padding: 72px var(--page-padding-x) 64px;
    text-align: center;
}

.page-hero--compact {
    padding: 48px var(--page-padding-x) 44px;
}

.page-hero--primary {
    background: var(--color-primary);
    color: #fff;
}

.page-hero--primary h1,
.page-hero--primary p {
    color: #fff;
}

.page-hero--primary .page-hero-label {
    color: #6EE7B7;
}

.page-hero--light {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.page-hero-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.page-hero h1 {
    font-size: clamp(1.9rem, 3.5vw, 2.9rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-hero h1 span {
    color: var(--color-primary);
}

.page-hero--primary h1 span {
    color: #6EE7B7;
}

.page-hero p {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.75;
    max-width: 560px;
    margin: 0 auto 1.8rem;
}

.page-hero--primary p {
    color: rgba(255, 255, 255, 0.65);
}

.page-hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Article layout ───────────────────────────────────────── */
/* Best for: About, Blog post, Privacy, Terms */
.page-article {
    max-width: var(--page-content-width);
    margin: 0 auto;
    padding: var(--page-padding-y) var(--page-padding-x);
}

.page-article h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 2.5rem 0 0.75rem;
}

.page-article h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 1.8rem 0 0.5rem;
}

.page-article p {
    font-size: 0.975rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 1.1rem;
}

.page-article ul,
.page-article ol {
    padding-left: 1.4rem;
    margin-bottom: 1.1rem;
}

.page-article li {
    font-size: 0.975rem;
    color: var(--color-text-secondary);
    line-height: 1.75;
    margin-bottom: 0.4rem;
}

.page-article a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.page-article a:hover {
    color: var(--color-primary-dark);
}

.page-article blockquote {
    border-left: 3px solid var(--color-primary);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    background: rgba(10, 62, 197, 0.04);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.page-article blockquote p {
    font-style: italic;
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

/* ── Wide layout ──────────────────────────────────────────── */
/* Best for: Use Cases, Features overview, Pricing */
.page-wide {
    max-width: var(--page-max-width);
    margin: 0 auto;
    padding: var(--page-padding-y) var(--page-padding-x);
}

.div-wide {
    max-width: var(--page-max-width);
    margin: 0 auto;
}

/* ── Centered layout ──────────────────────────────────────── */
/* Best for: 404, Thank You, Success states */
.page-centered {
    max-width: 560px;
    margin: 0 auto;
    padding: var(--page-padding-y) var(--page-padding-x);
    text-align: center;
}

.page-centered h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 900;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.page-centered p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.page-centered-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

/* ── Split layout ─────────────────────────────────────────── */
/* Best for: Contact page, two-column content */
.page-split {
    max-width: var(--page-max-width);
    margin: 0 auto;
    padding: var(--page-padding-y) var(--page-padding-x);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.page-split-text h2 {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.page-split-text p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.75;
    margin-bottom: 1rem;
}

/* ── Reusable page card ───────────────────────────────────── */
.page-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
}

.page-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.page-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(10, 62, 197, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1.1rem;
}

.page-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.page-card p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

/* ── Reusable grid for page cards ─────────────────────────── */
.page-card-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.page-card-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

/* ── Page section divider / spacer ───────────────────────── */
.page-divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 3rem 0;
}

/* ── Inline CTA band (sits inside a page) ─────────────────── */
.page-cta-band {
    background: var(--color-primary);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    text-align: center;
    margin: 3rem 0;
}

.page-cta-band h2 {
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.7rem;
}

.page-cta-band p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
}

/* ── Public buttons (for generic pages) ───────────────────── */
.btn-public-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-primary);
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 4px 14px rgba(10, 62, 197, 0.25);
}

.btn-public-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.btn-public-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-surface);
    color: var(--color-primary);
    font-family: 'Lato', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 11px 22px;
    border-radius: var(--radius-md);
    text-decoration: none;
    border: 1.5px solid var(--color-primary);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-public-secondary:hover {
    background: var(--color-primary);
    color: #fff;
}

.btn-public-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--color-text-secondary);
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 11px 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.btn-public-ghost:hover {
    border-color: var(--color-text-secondary);
    color: var(--color-text-primary);
}

/* White button — for use on dark backgrounds */
.btn-public-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--color-primary);
    font-family: 'Lato', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-public-white:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-text-tertiary);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.page-breadcrumb a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.page-breadcrumb a:hover {
    color: var(--color-primary);
}

.page-breadcrumb-sep {
    color: var(--color-border);
}

/* ── Contact form (public) ────────────────────────────────── */
.page-form {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.page-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 1rem;
}

.page-form-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: 0.02em;
}

.page-form-group input,
.page-form-group select,
.page-form-group textarea {
    padding: 10px 13px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: 'Lato', sans-serif;
    font-size: 0.88rem;
    color: var(--color-text-primary);
    background: var(--color-bg);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.page-form-group input:focus,
.page-form-group select:focus,
.page-form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(10, 62, 197, 0.08);
    background: #fff;
}

.page-form-group textarea {
    resize: vertical;
    min-height: 100px;
}


/* ============================================================
   12. SIDEBAR NAVIGATION  (app pages)
   ============================================================ */

.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sb);
}

.sidebar-header {
    padding: 0.5rem 1.25rem 1.5rem;
}

.sidebar-logo {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    background-image: url(/images/steward-logo.svg);
    background-repeat: no-repeat;
    background-size: contain;
    width: 185px;
    height: 68px;
}

.sidebar-subtitle {
    font-size: 0.75rem;
    color: var(--sidebar-text-static);
    margin-top: 5.25rem;
    font-weight: 400;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 0;
}

.sidebar-section-title {
    padding: 0.5rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--sidebar-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin: 0.25rem 0.75rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    color: var(--sidebar-text-static);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.sidebar-menu a:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-active);
}

.sidebar-menu a.active {
    background: var(--sidebar-active);
    color: #2567E2;
}

.sidebar-menu a.active .sidebar-menu-icon,
.sidebar-menu a:hover .sidebar-menu-icon {
    filter: invert(34%) sepia(84%) saturate(1066%) hue-rotate(192deg) brightness(94%) contrast(98%);
}

.sidebar-menu-icon {
    font-size: 1.25rem;
    width: 16px;
    height: 16px;
    filter: invert(44%) sepia(6%) saturate(12%) hue-rotate(7deg) brightness(98%) contrast(87%);
    background-repeat: no-repeat;
    background-size: contain;
}

.sidebar-menu-icon.dashboard {
    background-image: url(/images/dashboard-off-icon.svg);
}

.sidebar-menu-icon.properties {
    background-image: url(/images/property-off-icon.svg);
}

.sidebar-menu-icon.assets {
    background-image: url(/images/assets-off-icon.svg);
}

.sidebar-menu-icon.steward {
    background-image: url(/images/ask-steward-off-icon.svg);
}

.sidebar-menu-icon.memory {
    background-image: url(/images/board-memory-off-icon.svg);
}

.sidebar-menu-icon.upload {
    background-image: url(/images/upload-off-icon.svg);
}

.sidebar-menu-icon.minutes {
    background-image: url(/images/minutes-off-icon.svg);
}

.sidebar-menu-icon.reserve {
    background-image: url(/images/reserves-off-icon.svg);
}

.sidebar-menu-icon.content {
    background-image: url(/images/text-generator-off-icon.svg);
}

.sidebar-menu-icon.users {
    background-image: url(/images/user-off-icon.svg);
}

.sidebar-menu-icon.orgs {
    background-image: url(/images/org.svg);
}

.sidebar-menu-icon.vendors {
    background-image: url(/images/worker-icon.svg);
}

.sidebar-footer {
    padding: 1rem 1.25rem;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-user:hover {
    background: var(--sidebar-hover);
}

.sidebar-user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
}

.sidebar-user-info {
    flex: 1;
}

.sidebar-user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #706d6d;
}

.sidebar-user-email {
    font-size: 0.75rem;
    color: #343434;
}


/* ============================================================
   13. APP MAIN LAYOUT
   ============================================================ */

.main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    flex: 1;
}

.header-title h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.25rem;
}

.header-subtitle {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    font-weight: 400;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.container {
    flex: 1;
    max-width: 100%;
    padding: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
}


/* ============================================================
   14. BUTTONS  (app)
   ============================================================ */

.btn-upload {
    padding: 0.625rem 1.25rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.btn-upload:hover {
    background: #4338CA;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary,
.btn-secondary,
.btn-danger {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: #4338CA;
}

.btn-secondary {
    background: #F3F4F6;
    color: var(--color-text-secondary);
}

.btn-secondary:hover {
    background: #E5E7EB;
}

.btn-danger {
    background: #f9f1f5;
    color: #ef4444;
    border: 1px solid #e9c1c1;
    flex: 1;
    padding: 0.5rem;
}

.modal-footer .btn-danger {
    flex: 0;
}

.btn-submit {
    width: 100%;
    padding: 0.75rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-submit:hover {
    background: #4338CA;
}

.btn-submit:disabled {
    background: #D1D5DB;
    cursor: not-allowed;
}

.btn-save {
    background: var(--color-success);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.btn-edit {
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    background: #f1f3fc;
    color: #3670c0;
    border: 1px solid #c6d1f2;
    flex: 1;
    padding: 0.5rem;
}

.btn-duplicate {
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    background: #effff1;
    color: #576e67;
    border: 1px solid #c6f2df;
    flex: 1;
    padding: 0.5rem;
}

.btn-remove {
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    background: #f1f3fc;
    color: #ef4444;
    border: 1px solid #e9c1c1;
    flex: 0;
    padding: 0.5rem;
}

.btn-view-file {
    flex: 1;
    padding: 0.75rem;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-edit-details {
    flex: 1;
    padding: 0.75rem;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-search {
    padding: 0.75rem 1.5rem;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

.btn-filters {
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
}

.btn-apply {
    padding: 0.75rem 1.5rem;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}

.btn-reset {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}

.btn-transparent {
    background: transparent;
    border: 1px solid var(--color-border);
}


/* ============================================================
   15. STATS GRID  (app)
   ============================================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card[onclick] {
    cursor: pointer;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1;
}

.stat-icon {
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
    margin-top: 0.5rem;
}


/* ============================================================
   16. DOCUMENT CARDS  (app)
   ============================================================ */

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
}

.documents-grid.table-mode {
    display: block;
    grid-template-columns: none;
}

.doc-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 4px solid transparent;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.doc-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.doc-card.high-risk {
    border-left-color: var(--color-danger);
}

.doc-card.medium-risk {
    border-left-color: var(--color-warning);
}

.doc-card.low-risk {
    border-left-color: var(--color-accent);
}

.card-content {
    padding: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.card-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-type.photo {
    background: var(--color-info);
    color: white;
}

.card-type.document {
    background: var(--color-text-secondary);
    color: white;
}

.card-type-custom {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid;
}

.card-date {
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
    font-weight: 500;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-text-primary);
    line-height: 1.4;
}

.card-description {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.card-meta {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--color-text-secondary);
}

.card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: #F3F4F6;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.card-btn-flex {
    flex: 1;
    padding: 0.75rem;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}


/* ============================================================
   17. STATUS BADGES  (app)
   ============================================================ */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.status-badge.high-risk {
    background: var(--color-high-risk);
    color: var(--color-high-risk-text);
}

.status-badge.medium-risk {
    background: var(--color-medium-risk);
    color: var(--color-medium-risk-text);
}

.status-badge.low-risk {
    background: var(--color-low-risk);
    color: var(--color-low-risk-text);
}

.status-badge.high-confidence {
    background: var(--color-high-confidence);
    color: var(--color-high-confidence-text);
}

.severity-badge {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    font-weight: 700;
    font-size: 0.85rem;
}

.filter-chip,
.filter-chip-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.filter-clear-btn {
    padding: 0.4rem 0.75rem;
    background: transparent;
    border: none;
    color: #dc2626;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    text-decoration: underline;
}


/* ============================================================
   18. MODALS  (app)
   ============================================================ */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-tertiary);
    padding: 0.5rem;
}

.close-modal:hover {
    color: var(--color-text-primary);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.modal label {
    font-weight: 700;
    margin-bottom: 5px;
    display: flex;
}

/* File viewer modal */
.file-viewer-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.file-viewer-modal.active {
    display: flex;
}

.file-viewer-content {
    width: 90vw;
    height: 90vh;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.file-viewer-header {
    background: var(--color-surface);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-viewer-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1F2937;
}

.file-viewer-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

.file-viewer-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.file-viewer-close {
    background: #ef4444;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.file-viewer-download-container {
    text-align: center;
    color: white;
    padding: 2rem;
}

.file-viewer-download-container h3 {
    margin-bottom: 1rem;
}

.file-viewer-download-container p {
    margin-bottom: 2rem;
}

.file-viewer-download-link {
    padding: 1rem 2rem;
    background: var(--color-accent);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

.file-viewer-text {
    width: 100%;
    height: 100%;
    overflow: auto;
    padding: 2rem;
    background: white;
}

.text-file-viewer {
    width: 100%;
    height: 100%;
    overflow: auto;
    padding: 2rem;
    background: white;
}

.text-file-viewer pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', monospace;
    color: #2a2622;
}

.loading-text {
    color: white;
    padding: 2rem;
    text-align: center;
}


/* ============================================================
   19. FORMS & INPUTS  (app)
   ============================================================ */

.search-container {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

input[type="text"],
input[type="date"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-family: 'Lato', sans-serif;
    transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.lead-form input[type="text"],
.lead-form input[type="date"],
.lead-form input[type="number"],
.lead-form input[type="email"],
.lead-form input[type="password"],
.lead-form input[type="tel"],
.lead-form select,
.lead-form textarea {
    width: 100%;
    padding: 0.625rem 1rem;
    border-color: var(--color-primary);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-family: 'Lato', sans-serif;
    transition: all 0.2s ease;
}

.lead-form input[type="text"]:focus,
.lead-form input[type="date"]:focus,
.lead-form input[type="number"]:focus,
.lead-form input[type="email"]:focus,
.lead-form input[type="password"]:focus,
.lead-form input[type="tel"]:focus,
.lead-form select:focus,
.lead-form textarea:focus {
    outline: none;
    border: 1px solid rgb(255 255 255 / 44%);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.upload-area {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-bottom: 2rem;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--color-primary);
    background: #F5F3FF;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.upload-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.upload-hint {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.file-input {
    display: none;
}

.upload-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.upload-type-btn {
    flex: 1;
    padding: 1rem;
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-weight: 600;
}

.upload-type-btn:hover {
    border-color: var(--color-primary);
    background: #F5F3FF;
}

.upload-type-btn.active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: white;
}

.selected-file {
    display: none;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f3f4f6;
    border-radius: 8px;
}

.property-asset-box {
    background: #F0F9FF;
    border: 1px solid #BAE6FD;
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
}

.property-asset-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-asset-item+.property-asset-item {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #E0F2FE;
}

.property-asset-label {
    font-size: 0.75rem;
    color: #0369A1;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.property-asset-value {
    font-weight: 700;
    color: #0C4A6E;
    font-size: 0.875rem;
}


/* ============================================================
   20. TABLES  (app)
   ============================================================ */

.view-toggle {
    display: flex;
    gap: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.25rem;
}

.view-toggle button {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.view-toggle button.active {
    background: var(--color-primary);
    color: white;
}

.view-toggle button:not(.active):hover {
    background: #F9FAFB;
}

.view-toggle-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.table-view {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.table-view table {
    width: 100%;
    border-collapse: collapse;
}

.table-view th {
    background: #F9FAFB;
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--color-border);
}

.table-view td {
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
    font-size: 0.875rem;
}

.table-view tr:last-child td {
    border-bottom: none;
}

.table-view tr:hover {
    background: #F9FAFB;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.table-actions button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.875rem;
    white-space: nowrap;
}


/* ============================================================
   21. UPLOAD COMPONENTS  (app)
   ============================================================ */

.property-select-wrapper {
    margin-bottom: 1.5rem;
}

.property-select-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text-primary);
}

.property-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.property-select-hint {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-top: 0.25rem;
}

.property-select-lg {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.asset-selector-group {
    display: none;
    margin-bottom: 1.5rem;
}

.delete-confirm-text {
    text-align: center;
    padding: 1rem 0;
}

.delete-confirm-text p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.delete-doc-details {
    background: #fee2e2;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-weight: 600;
}

.delete-warning {
    color: var(--color-danger);
    font-weight: 700;
    margin-top: 1rem;
}


/* ============================================================
   22. DOCUMENT DETAIL  (app)
   ============================================================ */

.doc-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.doc-detail-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.doc-detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.doc-detail-value {
    font-size: 0.875rem;
    color: var(--color-text-primary);
    padding: 0.75rem;
    background: #ebebeb;
    border-radius: var(--radius-md);
    min-height: 2.5rem;
    display: flex;
    align-items: center;
}

.doc-detail-value.empty {
    color: var(--color-text-tertiary);
    font-style: italic;
}

.doc-detail-full {
    grid-column: span 2;
}

.doc-tags-display {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.doc-tag {
    padding: 0.25rem 0.75rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

.doc-edit-input,
.doc-edit-textarea,
.doc-edit-select {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-family: 'Lato', sans-serif;
}

.doc-edit-textarea {
    min-height: 100px;
    resize: vertical;
}

.doc-edit-input:focus,
.doc-edit-textarea:focus,
.doc-edit-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.doc-download-link {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.doc-download-link a,
.download-link-lg {
    padding: 0.75rem 1.5rem;
    background: var(--color-accent);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
}


/* ============================================================
   23. LOADING & EMPTY STATES  (app)
   ============================================================ */

.loading {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--color-text-secondary);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--color-text-tertiary);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--color-border);
    border-top: 4px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}


/* ============================================================
   24. SEARCH COMPONENTS  (app)
   ============================================================ */

.search-wrapper,
.search-container-wrapper {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.search-bar {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-input-wrapper span {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}

.search-icon-wrapper {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}

.search-input,
.input-search {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
}

.active-filters {
    display: none;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.advanced-filters {
    display: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.filter-field label,
.filter-label,
.filter-label-lg,
.date-range-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-label-lg {
    margin-bottom: 0.75rem;
}

.filter-select,
.select-standard,
.input-standard {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

.filter-checkboxes,
.checkbox-row {
    display: flex;
    gap: 1rem;
    padding-top: 0.5rem;
}

.filter-checkbox-label,
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 14px;
}

.filter-checkbox,
.checkbox-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.filter-full-width {
    grid-column: span 2;
}

.date-quick-buttons,
.quick-btn-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.date-quick-btn {
    padding: 0.6rem 1rem;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}

.date-inputs,
.date-input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.date-input-label,
.label-sm {
    display: block;
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-bottom: 0.25rem;
}

.date-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.search-results {
    display: none;
    text-align: center;
    margin-top: 1rem;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.search-results strong {
    color: var(--color-text-primary);
}

.modal-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text-primary);
}

.hint-text {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-top: 0.25rem;
}

.property-asset-gradient {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 1px solid #3b82f6;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.property-asset-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.property-asset-row:last-child {
    margin-bottom: 0;
}

.property-asset-icon {
    font-size: 1.2rem;
}

.property-asset-info-label {
    font-size: 0.7rem;
    color: #1e40af;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.property-asset-info-value {
    font-weight: 700;
    color: #1e40af;
    font-size: 0.95rem;
}

.property-label {
    font-size: 0.7rem;
    color: #1e40af;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.property-value {
    font-weight: 700;
    color: #1e40af;
    font-size: 0.95rem;
}

.property-value-lg {
    font-weight: 700;
    color: #1e40af;
}

.worker-icon {
    width: 18px;
}

.folder-icon {
    width: 49px;
}



/* ============================================================
   25. UTILITY CLASSES
   ============================================================ */

/* Display */
.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.d-grid {
    display: grid;
}

/* Flex */
.flex-1 {
    flex: 1;
}

.flex-wrap {
    flex-wrap: wrap;
}

.align-center {
    align-items: center;
}

.justify-end {
    justify-content: flex-end;
}

.gap-sm {
    gap: 0.5rem;
}

.gap-md {
    gap: 0.75rem;
}

.gap-lg {
    gap: 1rem;
}

.gap-xl {
    gap: 1.25rem;
}

/* Grid */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.grid-col-span-2 {
    grid-column: span 2;
}

/* Spacing */
.mb-0 {
    margin-bottom: 0;
}

.mb-05 {
    margin-bottom: 0.5rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-15 {
    margin-bottom: 1.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.my-1 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.pt-2 {
    padding-top: 1rem;
}

.pt-3 {
    padding-top: 1.5rem;
}

.pb-2 {
    padding-bottom: 1rem;
}

.p-1 {
    padding: 1rem;
}

.p-2 {
    padding: 2rem;
}

.py-1 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.px-2 {
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Position */
.pos-relative {
    position: relative;
}

.pos-absolute {
    position: absolute;
}

/* Sizing */
.w-full {
    width: 100%;
}

.w-18 {
    width: 18px;
}

.w-18px {
    width: 18px;
}

.w-49px {
    width: 49px;
}

.h-18 {
    height: 18px;
}

.max-w-500 {
    max-width: 500px;
}

.max-w-800 {
    max-width: 800px;
}

/* Text */
.text-center {
    text-align: center;
}

.text-uppercase {
    text-transform: uppercase;
}

.text-primary {
    color: var(--color-text-primary);
}

.text-secondary {
    color: var(--color-text-secondary);
}

.text-danger {
    color: var(--color-danger);
}

.text-white {
    color: white;
}

.font-size-sm {
    font-size: 0.85rem;
}

.font-size-md {
    font-size: 0.9rem;
}

.font-size-base {
    font-size: 1rem;
}

.font-size-lg {
    font-size: 1.1rem;
}

.font-size-xl {
    font-size: 1.2rem;
}

.font-weight-600 {
    font-weight: 600;
}

.font-weight-700 {
    font-weight: 700;
}

.font-mono {
    font-family: 'Courier New', monospace;
}

.letter-spacing {
    letter-spacing: 0.05em;
}

.pre-wrap {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.text-decoration-none {
    text-decoration: none;
}

.text-decoration-underline {
    text-decoration: underline;
}

/* Color */
.color-blue-dark {
    color: #1e40af;
}

.color-blue-darker {
    color: #2a2622;
}

/* Backgrounds */
.bg-white {
    background: white;
}

.bg-light {
    background: #f3f4f6;
}

.bg-danger-light {
    background: #fee2e2;
}

.bg-accent {
    background: var(--color-accent);
}

.bg-success {
    background: var(--color-success);
}

.bg-danger {
    background: #ef4444;
}

.bg-indigo {
    background: #6366f1;
}

.bg-gradient-blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 1px solid #3b82f6;
    border-radius: 8px;
    padding: 1rem;
}

/* Borders */
.border-top {
    border-top: 1px solid var(--color-border);
}

.border-radius-8 {
    border-radius: 8px;
}

.border-radius-6 {
    border-radius: 6px;
}

/* Misc */
.cursor-pointer {
    cursor: pointer;
}

.overflow-auto {
    overflow: auto;
}


/* ============================================================
   26. ANIMATIONS
   ============================================================ */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* ============================================================
   27. RESPONSIVE
   ============================================================ */

/* Landing page */
@media (max-width: 1024px) {
    .feat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .documents-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }

    .page-card-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 68px 6% 0;
    }

    .hero-visual {
        display: none;
    }

    .prob-grid,
    .test-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .step::after {
        display: none;
    }

    .aud-grid {
        grid-template-columns: 1fr;
    }

    .page-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {

    /* App sidebar hidden on mobile */
    .sidebar {
        transform: translateX(-100%);
    }

    .main-wrapper {
        margin-left: 0;
    }

    .doc-detail-grid {
        grid-template-columns: 1fr;
    }

    /* Generic page hero */
    .page-hero {
        padding: 48px 5% 44px;
    }

    .page-article,
    .page-wide,
    .page-centered,
    .page-split {
        padding-left: 5%;
        padding-right: 5%;
    }
}

@media (max-width: 600px) {

    .prob-grid,
    .feat-grid,
    .test-grid,
    .steps-grid,
    .page-card-grid-2,
    .page-card-grid-3 {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .proof-bar {
        gap: 1.2rem;
    }

    .footer-links {
        gap: 1.4rem;
    }

    .page-hero h1 {
        font-size: 1.7rem;
    }
}

/* ============================================================
   28. DEMO
   ============================================================ */

.ask-demo-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.ask-demo-qs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ask-demo-q {
    text-align: left;
    padding: 10px 14px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-family: 'Lato', sans-serif;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1.45;
}

.ask-demo-q:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.ask-demo-q.active {
    border: 1.5px solid var(--color-primary);
    background: rgba(10, 62, 197, 0.06);
    color: var(--color-primary);
    font-weight: 700;
}

.ask-demo-chat {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 300px;
    box-shadow: var(--shadow-md);
}

.ask-demo-topbar {
    background: var(--color-primary);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ask-demo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.ask-demo-topbar-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.78rem;
    font-weight: 600;
    font-family: 'Lato', sans-serif;
}

.ask-demo-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ask-msg {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.ask-msg.user {
    flex-direction: row-reverse;
}

.ask-av {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.ask-av.bot {
    background: var(--color-primary);
    color: #fff;
}

.ask-av.user {
    background: var(--color-accent);
    color: #fff;
}

.ask-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.875rem;
    line-height: 1.65;
    max-width: 85%;
    font-family: 'Lato', sans-serif;
}

.ask-bubble.user {
    background: var(--color-accent);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.ask-bubble.bot {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-bottom-left-radius: 4px;
    color: var(--color-text-primary);
}

.ask-sources {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
}

.ask-sources-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
}

.ask-source-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 6px;
    background: #dbeafe;
    border: 1px solid #93c5fd;
    font-size: 0.72rem;
    color: #1e40af;
    font-weight: 600;
    margin: 0 5px 4px 0;
}

.ask-cursor {
    display: inline-block;
    width: 2px;
    height: 14px;
    background: var(--color-text-primary);
    margin-left: 1px;
    vertical-align: middle;
    animation: askBlink 0.8s step-end infinite;
}

@keyframes askBlink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0
    }
}

.ask-typing {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 4px 0;
}

.ask-typing-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-text-secondary);
    animation: askBounce 1.2s infinite;
}

.ask-typing-dot:nth-child(2) {
    animation-delay: .2s
}

.ask-typing-dot:nth-child(3) {
    animation-delay: .4s
}

@keyframes askBounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: .4
    }

    30% {
        transform: translateY(-5px);
        opacity: 1
    }
}

@media (max-width: 768px) {
    .ask-demo-layout {
        grid-template-columns: 1fr;
    }

    .ask-demo-qs {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .ask-demo-q {
        flex: 1;
        min-width: 140px;
        font-size: 0.75rem;
    }
}