/* ==========================================================================
   Underwriting Analyst - Design System
   Font: Plus Jakarta Sans | Aesthetic: Refined Financial
   ========================================================================== */

/* --- Base --- */
html, body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    background-color: #FFFFFF;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #1A1D23;
    margin: 0;
    padding: 0;
}

/* --- Blazor Validation --- */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #DC2626;
    font-size: 0.75rem;
    margin-top: 4px;
    font-weight: 500;
}

/* --- Blazor Error Boundary --- */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

/* ==========================================================================
   Public Layout (landing, login, register, verify-code, error, not-found)
   ========================================================================== */
.public-layout {
    min-height: 100vh;
    background: #FFFFFF;
}

/* ==========================================================================
   App Layout (authenticated pages: sidebar + content)
   ========================================================================== */
.app-layout {
    display: flex;
    min-height: 100vh;
    background: #F5F5F5;
}

.app-main-content {
    flex: 1;
    margin-left: 56px;
    padding: 2rem 2.5rem;
    min-height: 100vh;
    min-width: 0;
    overflow-y: auto;
}

/* ==========================================================================
   Icon Sidebar (56px fixed left)
   ========================================================================== */
.icon-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 56px;
    height: 100vh;
    background: #FAFAFA;
    border-right: 1px solid #E5E7EB;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
    z-index: 1100;
    overflow: hidden;
    transition: width 0.2s ease;
}

.icon-sidebar:hover {
    width: 200px;
    box-shadow: 2px 0 12px rgba(0,0,0,0.08);
}

.icon-sidebar:hover .icon-sidebar-label {
    opacity: 1;
    width: auto;
}

.icon-sidebar-top {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    flex: 1;
    padding: 0 8px;
}

.icon-sidebar-bottom {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 0 8px 8px;
}

.icon-sidebar-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #1032da;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    margin-bottom: 12px;
}

.icon-sidebar-btn {
    min-width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #6B7280;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    white-space: nowrap;
}

.icon-sidebar:hover .icon-sidebar-btn {
    justify-content: flex-start;
    padding: 0 10px;
}

.icon-sidebar-label {
    font-size: 0.8125rem;
    font-weight: 500;
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: opacity 0.2s ease;
}

.icon-sidebar-btn:hover {
    background: #F3F4F6;
    color: #374151;
}

.icon-sidebar-btn.active {
    background: #F3F4F6;
    color: #1A1D23;
}

.icon-sidebar-btn-cta {
    background: #1032da !important;
    color: #FFFFFF !important;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    margin: 8px 0;
}

.icon-sidebar-btn-cta:hover {
    background: #0c28b0 !important;
    color: #FFFFFF !important;
}

.icon-sidebar-divider {
    width: 24px;
    height: 1px;
    background: #E5E7EB;
    margin: 6px 0;
}

.icon-sidebar-label {
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9CA3AF;
    margin-top: 6px;
    margin-bottom: 2px;
    user-select: none;
}

/* ==========================================================================
   CTA Button (orange)
   ========================================================================== */
.cta-btn-orange {
    background: #1032da;
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: background 0.15s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-btn-orange:hover {
    background: #0c28b0;
}

/* ==========================================================================
   Search Bar
   ========================================================================== */
.search-bar {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 1.5px solid #E5E7EB;
    border-radius: 12px;
    padding: 0 4px 0 16px;
    height: 52px;
    width: 100%;
    max-width: 640px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-bar:focus-within {
    border-color: #1032da;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9375rem;
    color: #1A1D23;
    background: transparent;
}

.search-bar input::placeholder {
    color: #9CA3AF;
}

.search-bar-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #1032da;
    color: #FFFFFF;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease;
}

.search-bar-btn:hover {
    background: #0c28b0;
}

.upload-zone {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border: 2px dashed #D1D5DB;
    border-radius: 12px;
    background: #FAFBFC;
    transition: all 0.2s ease;
    text-align: center;
}

.upload-zone:hover {
    border-color: #93C5FD;
    background: #EFF6FF;
}

.upload-zone.drag-over {
    border-color: #2563EB;
    background: #DBEAFE;
}

/* ==========================================================================
   Auth Form Fields (SSR-compatible)
   ========================================================================== */
.auth-form-group {
    margin-bottom: 1.25rem;
}

.auth-form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

.auth-form-group input[type="text"],
.auth-form-group input[type="email"],
.auth-form-group input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #D1D5DB;
    border-radius: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 400;
    color: #1A1D23;
    background: #FFFFFF;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    outline: none;
}

.auth-form-group input:focus {
    border-color: #1032da;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.auth-form-group input::placeholder {
    color: #9CA3AF;
    font-weight: 400;
}

.auth-form-group .field-helper {
    font-size: 0.75rem;
    color: #9CA3AF;
    margin-top: 0.375rem;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    cursor: pointer;
}

.auth-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #1032da;
    cursor: pointer;
}

.auth-checkbox label {
    font-size: 0.875rem;
    color: #4B5563;
    cursor: pointer;
    user-select: none;
}

/* ==========================================================================
   Auth Card
   ========================================================================== */
.auth-card {
    background: #FFFFFF;
    border: 1px solid #E2E5EA;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 32px rgba(0, 0, 0, 0.04);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.auth-brand-icon {
    width: 36px;
    height: 36px;
    background: #1032da;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
}

.auth-divider {
    width: 32px;
    height: 3px;
    background: linear-gradient(90deg, #1032da, #0c28b0);
    border-radius: 2px;
}

.auth-or-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
}

.auth-or-divider::before,
.auth-or-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #E5E7EB;
}

.auth-or-divider span {
    font-size: 0.75rem;
    color: #9CA3AF;
    font-weight: 600;
    text-transform: uppercase;
}

.auth-social-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    background: #FFFFFF;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    text-decoration: none;
    margin-bottom: 0.75rem;
}

.auth-social-btn:hover {
    background: #F9FAFB;
    border-color: #D1D5DB;
}

/* ==========================================================================
   Landing Page — v2
   ========================================================================== */

/* ── Navigation ── */
.ln-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
}

.ln-nav-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
}

.ln-logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #2563EB;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 0.8125rem;
}

.ln-logo-text {
    font-weight: 700;
    font-size: 1.125rem;
    color: #111827;
    letter-spacing: -0.02em;
}

.ln-nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.ln-nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: #4B5563;
    text-decoration: none;
    transition: color 0.15s;
}

.ln-nav-links a:hover {
    color: #111827;
}

/* ── Buttons ── */
.ln-btn-primary {
    background: #111827;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, transform 0.1s;
}

.ln-btn-primary:hover {
    background: #1F2937;
    transform: translateY(-1px);
}

.ln-btn-outline {
    background: transparent;
    color: #374151;
    border: 1.5px solid #D1D5DB;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, background 0.15s;
}

.ln-btn-outline:hover {
    border-color: #9CA3AF;
    background: #F9FAFB;
}

.ln-btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
}

.ln-btn-lg {
    padding: 0.75rem 2rem;
    font-size: 0.9375rem;
}

/* ── Hero ── */
.ln-hero {
    text-align: center;
    padding: 5rem 2rem 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.ln-hero h1 {
    font-size: 3.5rem;
    font-weight: 300;
    color: #111827;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 1.5rem;
}

.ln-hero-accent {
    font-weight: 600;
    background: linear-gradient(135deg, #2563EB 0%, #7C3AED 50%, #F97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ln-hero-sub {
    font-size: 1.25rem;
    color: #6B7280;
    margin: 0 0 2rem;
}

.ln-hero-highlight {
    font-weight: 700;
    color: #111827;
}

.ln-hero-strike {
    text-decoration: line-through;
    color: #9CA3AF;
}

.ln-hero-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ln-hero-note {
    font-size: 0.8125rem;
    color: #9CA3AF;
    margin-top: 1rem;
}

/* ── Sections ── */
.ln-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.ln-section-gray {
    background: linear-gradient(180deg, #F9FAFB 0%, #fff 100%);
    max-width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
}

.ln-section-gray > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.ln-section-heading {
    font-size: 2.25rem;
    font-weight: 300;
    color: #111827;
    text-align: center;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
}

.ln-section-sub {
    font-size: 1.0625rem;
    color: #6B7280;
    text-align: center;
    margin: 0 0 2.5rem;
}

.ln-section-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #F97316;
    margin-bottom: 0.75rem;
}

/* ── Asset Cards Scroll ── */
.ln-card-scroll {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.ln-card-scroll::-webkit-scrollbar {
    height: 6px;
}

.ln-card-scroll::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 3px;
}

.ln-asset-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    transition: box-shadow 0.2s, transform 0.2s;
}

.ln-asset-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.ln-asset-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.ln-asset-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem;
}

.ln-asset-card p {
    font-size: 0.8125rem;
    color: #6B7280;
    line-height: 1.5;
    margin: 0;
}

/* ── Feature Rows ── */
.ln-feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.ln-feature-row-reverse {
    direction: rtl;
}

.ln-feature-row-reverse > * {
    direction: ltr;
}

@media (max-width: 768px) {
    .ln-feature-row,
    .ln-feature-row-reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
        direction: ltr;
    }
}

.ln-feature-heading {
    font-size: 2rem;
    font-weight: 300;
    color: #111827;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    line-height: 1.2;
}

.ln-feature-desc {
    font-size: 0.9375rem;
    color: #6B7280;
    line-height: 1.65;
    margin: 0 0 1.5rem;
}

.ln-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ln-feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

/* ── Action Pills ── */
.ln-action-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ln-pill {
    padding: 0.375rem 0.875rem;
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #374151;
    font-weight: 500;
}

/* ── Export Formats ── */
.ln-export-formats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.ln-format-badge {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
}

/* ── Mock Cards (Feature Visuals) ── */
.ln-feature-visual {
    display: flex;
    justify-content: center;
}

.ln-mock-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.ln-mock-header {
    background: #111827;
    color: #fff;
    padding: 0.75rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.ln-mock-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
    color: #374151;
    border-bottom: 1px solid #F3F4F6;
}

.ln-mock-row-bold {
    font-weight: 700;
    background: #F9FAFB;
}

.ln-mock-red { color: #DC2626; }
.ln-mock-green { color: #16A34A; font-weight: 600; }

.ln-mock-divider {
    height: 1px;
    background: #E5E7EB;
    margin: 0.25rem 0;
}

.ln-mock-table-head {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 0.5rem 1.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9CA3AF;
    border-bottom: 1px solid #E5E7EB;
}

.ln-mock-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
    color: #374151;
    border-bottom: 1px solid #F3F4F6;
}

/* ── Mock Chat ── */
.ln-mock-chat {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 1.25rem;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ln-chat-msg {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.ln-chat-user {
    background: #111827;
    color: #fff;
    align-self: flex-end;
    max-width: 85%;
    border-bottom-right-radius: 4px;
}

.ln-chat-ai {
    background: #fff;
    color: #374151;
    border: 1px solid #E5E7EB;
    align-self: flex-start;
    max-width: 90%;
    border-bottom-left-radius: 4px;
}

.ln-chat-ai-label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #F97316;
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Stats Bar ── */
.ln-stats-bar {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
}

@media (max-width: 768px) {
    .ln-stats-bar {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
}

.ln-stat {
    text-align: center;
}

.ln-stat-value {
    font-size: 2.5rem;
    font-weight: 300;
    color: #111827;
    letter-spacing: -0.03em;
}

.ln-stat-label {
    font-size: 0.8125rem;
    color: #9CA3AF;
    font-weight: 500;
    margin-top: 0.25rem;
}

/* ── CTA Section ── */
.ln-cta-section {
    text-align: center;
    padding: 5rem 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.ln-cta-section h2 {
    font-size: 2.25rem;
    font-weight: 300;
    color: #111827;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.ln-cta-section p {
    font-size: 1rem;
    color: #6B7280;
    margin: 0 0 2rem;
    line-height: 1.6;
}

/* ── Footer ── */
.ln-footer {
    background: #111827;
    padding: 3rem 2rem;
}

.ln-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.ln-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.ln-footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.ln-footer-links a {
    font-size: 0.8125rem;
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.15s;
}

.ln-footer-links a:hover {
    color: #fff;
}

.ln-footer-copy {
    font-size: 0.75rem;
    color: #6B7280;
}

/* ── Scroll Reveal Animations ── */
.ln-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.ln-reveal.ln-visible {
    opacity: 1;
    transform: translateY(0);
}

.ln-reveal-delay-1 { transition-delay: 0.1s; }
.ln-reveal-delay-2 { transition-delay: 0.2s; }
.ln-reveal-delay-3 { transition-delay: 0.3s; }

/* ── Hero Entrance ── */
.ln-hero h1 {
    animation: ln-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ln-hero-sub {
    animation: ln-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.ln-hero-actions {
    animation: ln-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.ln-hero-note {
    animation: ln-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

@keyframes ln-fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Enhanced Hover Effects ── */
.ln-btn-primary {
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.15);
}

.ln-btn-primary:hover {
    box-shadow: 0 4px 16px rgba(17, 24, 39, 0.25);
}

.ln-mock-card {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s ease;
}

.ln-mock-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.ln-mock-chat {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s ease;
}

.ln-mock-chat:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.ln-pill {
    transition: background 0.15s, transform 0.15s;
}

.ln-pill:hover {
    background: #E5E7EB;
    transform: translateY(-1px);
}

.ln-format-badge {
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.ln-format-badge:hover {
    background: #F3F4F6;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ── Typing Animation (AI Chat) ── */
.ln-typing {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    margin-left: 4px;
}

.ln-typing-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #9CA3AF;
    animation: ln-blink 1.4s infinite both;
}

.ln-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.ln-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes ln-blink {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1); }
}

/* ── Stat Counter Pulse ── */
.ln-stat-value {
    transition: color 0.3s;
}

.ln-stat:hover .ln-stat-value {
    color: #2563EB;
}

/* ── Asset Card Staggered Entrance ── */
.ln-card-scroll .ln-asset-card:nth-child(1) { transition-delay: 0s; }
.ln-card-scroll .ln-asset-card:nth-child(2) { transition-delay: 0.05s; }
.ln-card-scroll .ln-asset-card:nth-child(3) { transition-delay: 0.1s; }
.ln-card-scroll .ln-asset-card:nth-child(4) { transition-delay: 0.15s; }
.ln-card-scroll .ln-asset-card:nth-child(5) { transition-delay: 0.2s; }
.ln-card-scroll .ln-asset-card:nth-child(6) { transition-delay: 0.25s; }
.ln-card-scroll .ln-asset-card:nth-child(7) { transition-delay: 0.3s; }
.ln-card-scroll .ln-asset-card:nth-child(8) { transition-delay: 0.35s; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .ln-hero h1 {
        font-size: 2.25rem;
    }

    .ln-section-heading {
        font-size: 1.75rem;
    }

    .ln-feature-heading {
        font-size: 1.5rem;
    }

    .ln-nav-links {
        gap: 1rem;
    }

    .ln-nav-links a:not(.ln-btn-primary) {
        display: none;
    }
}

/* ── Legacy compat (used by other pages) ── */
.cta-btn-outline {
    background: transparent;
    color: #1032da;
    border: 1.5px solid #1032da;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: background 0.15s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.cta-btn-outline:hover {
    background: rgba(16, 50, 218, 0.06);
}

/* ==========================================================================
   Card Styles
   ========================================================================== */
.card-elevated {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card-elevated:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.card-interactive:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Recommended Cards
   ========================================================================== */
.rec-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 1.25rem;
    transition: box-shadow 0.2s ease;
    cursor: pointer;
}

.rec-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   Analysis Category Cards
   ========================================================================== */
.category-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 1.5rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card:hover {
    border-color: #1032da;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.1);
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Staggered Fade-in Animation
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.45s ease-out both;
}

.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.1s; }
.delay-3 { animation-delay: 0.15s; }
.delay-4 { animation-delay: 0.2s; }
.delay-5 { animation-delay: 0.25s; }

/* ==========================================================================
   KPI Card Icon Circles
   ========================================================================== */
.kpi-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kpi-icon-circle.primary {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.12), rgba(30, 58, 95, 0.06));
    color: #1E3A5F;
}

.kpi-icon-circle.info {
    background: linear-gradient(135deg, rgba(74, 144, 217, 0.12), rgba(74, 144, 217, 0.06));
    color: #4A90D9;
}

.kpi-icon-circle.success {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.12), rgba(22, 163, 74, 0.06));
    color: #16A34A;
}

.kpi-icon-circle.warning {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.12), rgba(234, 88, 12, 0.06));
    color: #0c28b0;
}

/* ==========================================================================
   Deal Tabs Page
   ========================================================================== */
.deal-tabs-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.deal-tabs-container {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
}

    /* Active tab indicator — brand orange */
    .deal-tabs-container .mud-tab-active {
        color: #1032da !important;
    }

    .deal-tabs-container .mud-tabs-toolbar .mud-tab-slider {
        background: #1032da !important;
    }

    .deal-tabs-container .mud-tabs-toolbar {
        border-bottom: 1px solid #E5E7EB;
    }

    .deal-tabs-container .mud-tab {
        text-transform: none;
        font-weight: 500;
        font-size: 0.875rem;
        letter-spacing: 0;
        min-width: 100px;
        color: #6B7280;
    }

        .deal-tabs-container .mud-tab:hover:not(.mud-tab-active) {
            color: #374151;
            background: #F9FAFB;
        }

.deal-tab-panel {
    padding: 1.5rem;
}

.deal-tab-content {
    max-width: 1200px;
}

/* Chat side panel layout */
.deal-layout {
    display: flex;
    gap: 1rem;
}

    .deal-layout > .deal-tabs-container {
        flex: 1;
        min-width: 0;
    }

.deal-chat-panel {
    width: 420px;
    min-width: 340px;
    max-width: 85vw;
    flex-shrink: 0;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    height: fit-content;
    max-height: calc(100vh - 200px);
    overflow: hidden;
    position: relative;
}

.chat-resize-handle {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    cursor: col-resize;
    z-index: 10;
    background: transparent;
    transition: background 0.15s;
}

.chat-resize-handle:hover,
.chat-resize-handle:active {
    background: #1032da;
    border-radius: 12px 0 0 12px;
}

.deal-chat-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #E5E7EB;
}

.chat-toggle-btn {
    transition: color 0.2s ease;
}

/* Smooth panel open/close animation */
.deal-chat-panel {
    animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Checklist reassignment menu */
.deal-tab-content .mud-menu .mud-icon-button {
    padding: 4px;
}

/* Responsive: stack vertically on smaller screens */
@media (max-width: 960px) {
    .deal-layout {
        flex-direction: column;
    }

    .deal-chat-panel {
        width: 100%;
        min-width: unset;
        max-height: 50vh;
    }

    .deal-tabs-header {
        flex-wrap: wrap;
    }
}

/* ── Accounting Hub ── */
.accounting-hub {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 2rem 3rem;
}
.accounting-hub-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.75rem;
}
.accounting-hub-section {
    margin-bottom: 2rem;
}
.accounting-hub-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.accounting-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.75rem;
}
.accounting-hub-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.accounting-hub-card:hover {
    border-color: #1032da;
    box-shadow: 0 2px 8px rgba(16, 50, 218, 0.08);
}
.accounting-hub-card div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.accounting-hub-card strong {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}
.accounting-hub-card span {
    font-size: 0.75rem;
    color: #6B7280;
    line-height: 1.3;
}

/* ── AI Fund Setup ── */
.ai-fund-setup {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 2rem 3rem;
}
.ai-fund-setup-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 2rem;
}
.ai-fund-setup-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}
.ai-fund-step {
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    background: #fff;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.ai-fund-step.active {
    opacity: 1;
    border-color: #1032da;
    border-left: 3px solid #1032da;
}
.ai-fund-step-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.ai-fund-step-header h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}
.ai-fund-step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1032da;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}
.ai-fund-upload-area {
    padding: 1.5rem;
    border: 2px dashed #D1D5DB;
    border-radius: 8px;
    text-align: center;
}
.ai-fund-terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}
.ai-fund-term label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6B7280;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.ai-fund-notes {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #FEF3C7;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #92400E;
}
.ai-fund-investor-form {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    flex-wrap: wrap;
}
.ai-fund-investor-form > * {
    flex: 1;
    min-width: 160px;
}
.ai-fund-investor-form > button {
    flex: 0 0 auto;
    min-width: auto;
}

/* ── Global AI Chat Panel (inline, compresses content) ── */
.global-chat-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1032da;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(16, 50, 218, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.global-chat-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(16, 50, 218, 0.45);
}
.global-chat-fab-hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

.global-chat-panel {
    width: 420px;
    min-width: 340px;
    max-width: 50vw;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    border-left: 1px solid #E5E7EB;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    animation: globalChatSlideIn 0.2s ease-out;
    z-index: 10;
}
@keyframes globalChatSlideIn {
    from { opacity: 0; transform: translateX(16px); }
    to   { opacity: 1; transform: translateX(0); }
}

.global-chat-panel .chat-resize-handle {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    cursor: col-resize;
    z-index: 10;
    background: transparent;
    transition: background 0.15s;
}
.global-chat-panel .chat-resize-handle:hover,
.global-chat-panel .chat-resize-handle:active {
    background: #1032da;
}

.global-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #E5E7EB;
    flex-shrink: 0;
}
.global-chat-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #111827;
}

.global-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.global-chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
    height: 100%;
}

.global-chat-suggestions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.25rem;
    width: 100%;
    max-width: 320px;
}
.global-chat-suggestion {
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    font-size: 0.8rem;
    color: #374151;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, border-color 0.15s;
}
.global-chat-suggestion:hover {
    background: #EEF0FF;
    border-color: #1032da;
    color: #1032da;
}

.global-chat-input-area {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid #E5E7EB;
    flex-shrink: 0;
    background: #fff;
}
.global-chat-input {
    flex: 1;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    font-size: 0.875rem;
    resize: none;
    outline: none;
    font-family: inherit;
    max-height: 120px;
    line-height: 1.4;
}
.global-chat-input:focus {
    border-color: #1032da;
    box-shadow: 0 0 0 2px rgba(16, 50, 218, 0.1);
}

.global-chat-tool-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin-top: 0.5rem;
    border-radius: 6px;
    background: #ECFDF5;
    font-size: 0.8rem;
    color: #065F46;
}
.global-chat-tool-card.tool-error {
    background: #FEF2F2;
    color: #991B1B;
}

@media (max-width: 768px) {
    .global-chat-panel {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        max-width: 100vw;
        min-width: unset;
        z-index: 1300;
    }
    .global-chat-fab {
        bottom: 1rem;
        right: 1rem;
    }
}
