/* ==========================================================================
   Z Lend - Investor Portal Styles
   Brand: Strategic Financial Solutions
   ========================================================================== */

/* ==========================================================================
   CSS Variables & Theme Configuration
   ========================================================================== */
:root {
    /* Brand Colors - Z Lend Burgundy */
    --color-primary: #912F40;
    --color-primary-dark: #080705;
    --color-primary-light: #702632;
    --color-text: #080705;
    --color-text-secondary: #40434E;
    --color-text-muted: #6B7280;
    --color-secondary: #702632;
    --color-accent: #912F40;
    --color-background: #f8fafc;
    --color-surface: #ffffff;
    --color-border: #E5E7EB;
    --color-border-light: #f3f4f6;
    
    /* Semantic Colors */
    --color-positive: #10b981;
    --color-positive-light: #d1fae5;
    --color-negative: #ef4444;
    --color-negative-light: #fee2e2;
    --color-warning: #f59e0b;
    --color-warning-light: #fef3c7;
    --color-success: #912F40;
    --color-info: #3b82f6;
    --color-info-light: #dbeafe;
    
    /* Typography */
    --font-primary: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    
    /* Layout */
    --sidebar-width: 280px;
    --header-height: 72px;
    
    /* Shadows - Enhanced for depth */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 32px;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

h2 {
    font-size: 22px;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

p {
    margin-bottom: var(--space-md);
    color: var(--color-text-secondary);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

/* ==========================================================================
   Navigation Sidebar
   ========================================================================== */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--color-surface);
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.sidebar-header {
    padding: var(--space-xl);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
}

.logo-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-normal);
}

.logo-container:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.logo-mark {
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.02em;
    color: white;
}

.brand-subtitle {
    font-size: 10px;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    font-weight: 500;
}

.nav-menu {
    list-style: none;
    padding: var(--space-md);
    flex: 1;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-xs);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--color-text-secondary);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--color-primary);
    border-radius: 0 4px 4px 0;
    transition: height var(--transition-normal);
}

.nav-item:hover {
    background-color: var(--color-border-light);
    color: var(--color-text);
}

.nav-item:hover::before {
    height: 24px;
}

.nav-item.active {
    background-color: rgba(145, 47, 64, 0.1);
    color: var(--color-primary);
}

.nav-item.active::before {
    height: 32px;
}

.nav-item svg {
    flex-shrink: 0;
    color: currentColor;
}

.nav-item span {
    font-size: 14px;
    font-weight: 500;
}

.sidebar-footer {
    padding: var(--space-lg);
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.back-to-site-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.back-to-site-link:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.back-to-site-link svg {
    transition: transform var(--transition-fast);
}

.back-to-site-link:hover svg {
    transform: translateX(-3px);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 12px;
    color: var(--color-positive);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-positive-light);
    border-radius: var(--radius-md);
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-positive);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 3px var(--color-positive-light);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: var(--space-xl);
    min-height: 100vh;
    background-color: var(--color-background);
}

.content-section {
    display: none;
    animation: fadeInUp var(--transition-slow);
}

.content-section.active,
html.no-js .content-section {
    display: block;
}

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

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.header-content .tagline {
    font-family: var(--font-secondary);
    font-size: 14px;
    color: var(--color-primary);
    margin: 0;
    letter-spacing: 0.02em;
    font-weight: 500;
}

.header-meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.header-meta span {
    font-size: 12px;
    color: var(--color-text-muted);
    padding: var(--space-xs) var(--space-sm);
    background: var(--color-border-light);
    border-radius: var(--radius-sm);
    font-weight: 500;
}

/* ==========================================================================
   Dashboard Cards & Grids - Enhanced for Investors
   ========================================================================== */
.dashboard-grid {
    display: grid;
    gap: var(--space-lg);
}

.dashboard-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.dashboard-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--color-primary-light);
}

.dashboard-card.full-width {
    grid-column: 1 / -1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--color-border-light);
    background-color: var(--color-surface);
}

.card-header h3 {
    margin: 0;
    font-size: 16px;
    color: var(--color-text);
    position: relative;
    padding-left: var(--space-md);
}

.card-header h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--color-primary);
    border-radius: 2px;
}

.card-actions {
    display: flex;
    gap: var(--space-sm);
}

.card-body {
    padding: var(--space-lg) var(--space-xl);
}

/* ==========================================================================
   Data Tables - Professional Investor Grade
   ========================================================================== */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th {
    text-align: left;
    padding: var(--space-md) var(--space-lg);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    font-weight: 600;
    background-color: var(--color-background);
    border-bottom: 2px solid var(--color-border);
}

.data-table td {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--color-border-light);
    font-size: 14px;
    color: var(--color-text);
    font-weight: 500;
    transition: background-color var(--transition-fast);
}

.data-table tbody tr {
    transition: all var(--transition-fast);
}

.data-table tbody tr:hover {
    background-color: rgba(145, 47, 64, 0.03);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table .total-row {
    background-color: var(--color-border-light);
    font-weight: 600;
}

.data-table .total-row td {
    padding: var(--space-lg);
    border-bottom: none;
    color: var(--color-text);
}

.data-table .total-row.highlight {
    background-color: var(--color-primary);
}

.data-table .total-row.highlight td {
    color: white;
    font-size: 16px;
}

/* ==========================================================================
   Hero Sections
   ========================================================================== */
.leadgen-hero,
.phase-hero,
.phase0-hero,
.swot-hero,
.risk-hero,
.linear-timeline-hero,
.timeline-hero {
    background-color: var(--color-primary);
    background: var(--color-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    margin-bottom: var(--space-xl);
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.leadgen-hero::before,
.phase-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.leadgen-hero h2,
.phase-hero h2 {
    color: white;
    font-size: 28px;
    margin-bottom: var(--space-sm);
    position: relative;
}

.leadgen-hero p,
.phase-hero p {
    color: white;
    font-size: 15px;
    margin: 0;
    max-width: 600px;
    position: relative;
    line-height: 1.7;
}

.phase-hero-content {
    position: relative;
    z-index: 1;
}

.phase-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.phase-meta {
    display: flex;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 13px;
    color: white;
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.meta-item svg {
    opacity: 0.9;
}

/* ==========================================================================
   Miro Embed Container
   ========================================================================== */
.miro-embed-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.miro-embed-container iframe {
    width: 100%;
    height: 600px;
    display: block;
    border: none;
}

@media (max-width: 992px) {
    .miro-embed-container iframe {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .miro-embed-container iframe {
        height: 400px;
        min-height: 350px;
    }
}

/* ==========================================================================
   Stats Row - KPI Display
   ========================================================================== */
.leadgen-stats-row,
.metrics-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.leadgen-stat-card,
.metric-tile {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.leadgen-stat-card:hover,
.metric-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary-light);
}

.leadgen-stat-card .stat-icon,
.metric-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    color: white;
    box-shadow: var(--shadow-md);
}

.stat-icon.green,
.metric-icon.green {
    background: linear-gradient(135deg, var(--color-positive) 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.stat-icon.blue,
.metric-icon.blue {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    box-shadow: 0 4px 12px rgba(145, 47, 64, 0.3);
}

.stat-icon.orange,
.metric-icon.orange {
    background: linear-gradient(135deg, var(--color-warning) 0%, #d97706 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.stat-icon.red,
.metric-icon.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.leadgen-stat-value,
.metric-value {
    font-family: var(--font-secondary);
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
    letter-spacing: -0.02em;
}

.leadgen-stat-label,
.metric-label {
    font-size: 12px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.metric-tile.featured {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.metric-tile.featured .metric-tile-header,
.metric-tile.featured .metric-tile-body {
    color: white;
}

.metric-tile.featured .metric-label {
    color: rgba(255, 255, 255, 0.8);
}

.metric-tile.featured .metric-unit {
    color: rgba(255, 255, 255, 0.9);
}

.metric-unit {
    font-size: 14px;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: var(--radius-md);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(145, 47, 64, 0.05);
}

/* ==========================================================================
   Advantages Grid
   ========================================================================== */
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.advantage-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.advantage-card:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.advantage-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(145, 47, 64, 0.1) 0%, rgba(145, 47, 64, 0.2) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: var(--color-primary);
}

.advantage-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.advantage-card p {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* ==========================================================================
   Timeline
   ========================================================================== */
.timeline {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    padding: var(--space-lg);
}

.timeline-item {
    display: flex;
    gap: var(--space-lg);
    position: relative;
    padding-left: var(--space-xl);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 32px;
    bottom: -24px;
    width: 2px;
    background-color: var(--color-border);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 4px;
    width: 24px;
    height: 24px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(145, 47, 64, 0.3);
    z-index: 1;
}

.timeline-content {
    flex: 1;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-fast);
}

.timeline-content:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-md);
}

.timeline-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.timeline-content p {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* ==========================================================================
   Info Grid
   ========================================================================== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.info-item {
    display: flex;
    flex-direction: column;
    padding: var(--space-md);
    background: var(--color-background);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-fast);
}

.info-item:hover {
    border-color: var(--color-primary-light);
    background: rgba(145, 47, 64, 0.02);
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-item.highlight {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.info-item.highlight .info-label,
.info-item.highlight .info-value {
    color: white;
}

.info-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
    font-weight: 600;
}

.info-value {
    font-family: var(--font-secondary);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
}

/* ==========================================================================
   Password Protection Overlay
   ========================================================================== */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #912F40;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.4s ease;
}

.password-overlay .password-modal {
    background: rgba(255, 255, 255, 0.98);
    padding: 48px 36px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.password-logo {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.password-logo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #912F40;
    box-shadow: 0 4px 16px rgba(145, 47, 64, 0.3);
}

.password-modal h2 {
    font-family: var(--font-secondary);
    font-size: 26px;
    font-weight: 700;
    color: #080705;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.password-subtitle {
    font-size: 15px;
    color: #4a5568;
    margin-bottom: 32px;
    font-weight: 400;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.password-form input[type="email"] {
    margin-bottom: 0;
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
    border: 2px solid #d4e0ed;
    border-radius: 12px;
    outline: none;
    text-align: center;
    font-family: var(--font-primary);
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-weight: 500;
    background: #f8fafc;
    color: #080705;
}

.password-form input[type="email"]:focus {
    border-color: #912F40;
    box-shadow: 0 0 0 4px rgba(145, 47, 64, 0.15);
    background: #fff;
}

.password-form input[type="email"]::placeholder {
    color: #94a3b8;
    text-align: center;
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    width: 100%;
    padding: 16px 20px;
    padding-right: 48px;
    font-size: 15px;
    border: 2px solid #d4e0ed;
    border-radius: 12px;
    outline: none;
    text-align: center;
    font-family: var(--font-primary);
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-weight: 500;
    background: #f8fafc;
    color: #080705;
}

.password-input-wrapper input:focus {
    border-color: #912F40;
    box-shadow: 0 0 0 4px rgba(145, 47, 64, 0.15);
    background: #fff;
}

.password-input-wrapper input::placeholder {
    color: #94a3b8;
    text-align: center;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.toggle-password:hover {
    background-color: rgba(19, 64, 116, 0.08);
}

.toggle-password:focus {
    outline: none;
}

.eye-icon {
    width: 22px;
    height: 22px;
    color: #6b7280;
    transition: color var(--transition-fast);
}

.toggle-password:hover .eye-icon {
    color: #912F40;
}

.password-form input {
    width: 100%;
    padding: 14px 18px;
    font-size: 14px;
    border: 2px solid #d4e0ed;
    border-radius: 12px;
    outline: none;
    text-align: center;
    font-family: var(--font-primary);
    transition: all var(--transition-fast);
    box-sizing: border-box;
    font-weight: 500;
    background: #f8fafc;
    color: #080705;
}

.password-form input:focus {
    border-color: #912F40;
    box-shadow: 0 0 0 4px rgba(145, 47, 64, 0.15);
}

.password-form input::placeholder {
    color: #94a3b8;
    text-align: center;
}

.password-form input[type="email"]::placeholder {
    text-align: center;
}

.password-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-primary);
    background: #912F40;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(145, 47, 64, 0.35);
    margin-top: 8px;
    letter-spacing: 0.02em;
}

.password-btn:hover {
    background: #702632;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(145, 47, 64, 0.45);
}

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

.password-error {
    color: #ef4444;
    font-size: 14px;
    margin-top: 16px;
    min-height: 20px;
    opacity: 0;
    transition: opacity 0.2s ease;
    font-weight: 500;
}

.password-error.show {
    opacity: 1;
}

.password-hint {
    color: #6b7280;
    font-size: 13px;
    margin-top: 24px;
    margin-bottom: 0;
    font-weight: 400;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==========================================================================
   Mobile Toggle
   ========================================================================== */
.mobile-toggle {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background-color: var(--color-primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 101;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.mobile-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1400px) {
    .metrics-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .leadgen-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    .advantage-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-item.full-width {
        grid-column: 1;
    }
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .phase-meta {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .timeline-item {
        flex-direction: column;
        padding-left: var(--space-xl);
    }
    
    .timeline-item::before {
        left: 11px;
        top: 28px;
        bottom: -20px;
    }
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .header-meta {
        text-align: left;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .metrics-showcase {
        grid-template-columns: 1fr;
    }
    
    .leadgen-stats-row {
        grid-template-columns: 1fr;
    }
    
    .card-header {
        flex-direction: column;
        gap: var(--space-md);
        align-items: flex-start;
    }
    
    .card-body {
        padding: var(--space-md);
    }
    
    .data-table th,
    .data-table td {
        padding: var(--space-sm) var(--space-md);
        font-size: 12px;
    }
    
    .leadgen-hero,
    .phase-hero {
        padding: var(--space-xl);
    }
    
    .leadgen-hero h2,
    .phase-hero h2 {
        font-size: 22px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .sidebar,
    .mobile-toggle,
    .password-overlay {
        display: none !important;
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
    }

    .content-section {
        display: block !important;
        page-break-after: always;
    }

    .dashboard-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* ==========================================================================
   Mobile Hamburger Menu & Overlay
   ========================================================================== */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background-color: var(--color-surface);
    z-index: 100;
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    flex-direction: column;
    box-shadow: var(--shadow-xl);
}

.mobile-sidebar.active {
    display: flex;
    transform: translateX(0);
}

.mobile-sidebar-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-primary);
}

.mobile-sidebar-header .logo-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.mobile-sidebar-header .logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.close-sidebar {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.close-sidebar:hover {
    background: rgba(255, 255, 255, 0.3);
}

.mobile-nav-menu {
    list-style: none;
    padding: var(--space-md);
    flex: 1;
    overflow-y: auto;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-xs);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 14px;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    background-color: rgba(145, 47, 64, 0.1);
    color: var(--color-primary);
}

.mobile-nav-item svg {
    flex-shrink: 0;
    color: currentColor;
}

.mobile-sidebar-footer {
    padding: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.mobile-back-to-site-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.mobile-back-to-site-link:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* Enhanced Mobile Toggle Button */
.mobile-toggle {
    display: none;
    position: fixed;
    top: 24px;
    left: 24px;
    width: 48px;
    height: 48px;
    background-color: var(--color-primary);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 101;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.mobile-toggle:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.mobile-toggle svg {
    width: 24px;
    height: 24px;
}

/* ==========================================================================
   Enhanced Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: var(--space-lg);
        padding-top: 90px;
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-sidebar {
        display: flex;
    }

    .phase-meta {
        flex-direction: column;
        gap: var(--space-md);
    }

    .timeline-item {
        flex-direction: column;
        padding-left: var(--space-xl);
    }

    .timeline-item::before {
        left: 11px;
        top: 28px;
        bottom: -20px;
    }

    .section-header {
        flex-direction: column;
        gap: var(--space-md);
    }

    .header-meta {
        text-align: left;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .card-header {
        flex-direction: column;
        gap: var(--space-md);
        align-items: flex-start;
    }

    .card-body {
        padding: var(--space-md);
    }

    .data-table th,
    .data-table td {
        padding: var(--space-sm) var(--space-md);
        font-size: 12px;
    }

    .leadgen-hero,
    .phase-hero,
    .phase0-hero,
    .swot-hero,
    .risk-hero,
    .linear-timeline-hero,
    .timeline-hero {
        padding: var(--space-xl);
    }

    .leadgen-hero h2,
    .phase-hero h2,
    .phase0-hero h2,
    .swot-hero h2,
    .risk-hero h2,
    .linear-timeline-hero h2,
    .timeline-hero h2 {
        font-size: 22px;
    }

    .leadgen-hero p,
    .phase-hero p,
    .phase0-hero p,
    .swot-hero p,
    .risk-hero p,
    .linear-timeline-hero p,
    .timeline-hero p {
        font-size: 14px;
    }

    .advantage-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-item.full-width {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 16px;
    }

    .main-content {
        padding: var(--space-md);
        padding-top: 80px;
    }

    .mobile-toggle {
        width: 44px;
        height: 44px;
        left: 16px;
        top: 16px;
    }

    .mobile-sidebar {
        width: 100%;
        max-width: 320px;
    }

    .metrics-showcase {
        grid-template-columns: 1fr;
    }

    .leadgen-stats-row {
        grid-template-columns: 1fr;
    }

    .milestone-grid {
        grid-template-columns: 1fr;
    }

    .timeline-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .progress-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .linear-timeline {
        padding-left: 40px;
    }

    .linear-timeline::before {
        left: 16px;
    }

    .linear-step {
        flex-direction: column;
        gap: var(--space-md);
    }

    .linear-step-marker {
        position: static;
        transform: none;
        width: 36px;
        height: 36px;
    }

    .linear-step-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .linear-timeline-hero h2 {
        font-size: 22px;
    }

    .linear-timeline-hero p {
        font-size: 14px;
    }

    .risk-grid {
        grid-template-columns: 1fr;
    }

    .swot-grid {
        grid-template-columns: 1fr;
    }

    .risk-dashboard {
        grid-template-columns: 1fr;
    }

    .timeline-phase-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .timeline-item {
        flex-direction: column;
        gap: var(--space-md);
    }

    .timeline-marker {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .mobile-toggle {
        left: 12px;
        top: 12px;
        width: 40px;
        height: 40px;
    }

    .main-content {
        padding: var(--space-sm);
        padding-top: 70px;
    }

    .leadgen-hero,
    .phase-hero,
    .phase0-hero,
    .swot-hero,
    .risk-hero,
    .linear-timeline-hero,
    .timeline-hero {
        padding: var(--space-lg);
        border-radius: var(--radius-lg);
    }

    .leadgen-hero h2,
    .phase-hero h2,
    .phase0-hero h2,
    .swot-hero h2,
    .risk-hero h2,
    .linear-timeline-hero h2,
    .timeline-hero h2 {
        font-size: 18px;
    }

    .leadgen-hero p,
    .phase-hero p,
    .phase0-hero p,
    .swot-hero p,
    .risk-hero p,
    .linear-timeline-hero p,
    .timeline-hero p {
        font-size: 13px;
    }

    .leadgen-stats-row,
    .metrics-showcase,
    .timeline-stats-row {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .leadgen-stat-card,
    .metric-tile,
    .timeline-stat-card {
        padding: var(--space-md);
    }

    .leadgen-stat-value,
    .metric-value,
    .timeline-stat-value {
        font-size: 24px;
    }

    .data-table {
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: var(--space-sm);
    }

    .timeline-stats-row {
        grid-template-columns: 1fr;
    }

    .progress-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .progress-stat {
        padding: var(--space-md);
    }

    .progress-stat-number {
        font-size: 28px;
    }
}

/* ==========================================================================
   Phase 0 Section Styles
   ========================================================================== */
.phase0-hero {
    background-color: var(--color-primary);
    background: var(--color-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    margin-bottom: var(--space-xl);
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.phase0-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.phase0-hero h2 {
    color: white;
    font-size: 28px;
    margin-bottom: var(--space-sm);
    position: relative;
}

.phase0-hero p {
    color: white;
    font-size: 15px;
    margin: 0;
    max-width: 600px;
    position: relative;
    line-height: 1.7;
}

.phase0-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
    position: relative;
}

.phase0-section {
    margin-bottom: var(--space-xl);
}

.phase0-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}

.phase0-subtitle {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

/* Partner Grid */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.partner-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all var(--transition-fast);
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.partner-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.partner-logo img {
    max-height: 70px;
    max-width: 100%;
    object-fit: contain;
}

.partner-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.partner-role {
    font-size: 13px;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.partner-card.preferred {
    border: 2px solid var(--color-primary) !important;
}

.partner-card {
    position: relative;
}

.partner-desc {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Servicer Grid */
.servicer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.servicer-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all var(--transition-fast);
}

.servicer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.servicer-logo {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.servicer-logo img {
    max-height: 60px;
    max-width: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.servicer-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.servicer-tag {
    display: inline-block;
    background: rgba(145, 47, 64, 0.1);
    color: var(--color-primary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.servicer-card.preferred {
    border: 2px solid var(--color-primary) !important;
}

.servicer-card {
    position: relative;
}

.servicer-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.servicer-features li {
    font-size: 13px;
    color: var(--color-text-muted);
    padding: var(--space-xs) 0;
    padding-left: var(--space-md);
    position: relative;
}

.servicer-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

/* CRM Grid */
.crm-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.crm-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    transition: all var(--transition-fast);
}

.crm-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.crm-card.preferred {
    border: 2px solid var(--color-primary) !important;
}

.crm-card {
    position: relative;
}

.crm-logo {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crm-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.crm-info h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.crm-alias {
    font-size: 13px;
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: var(--space-sm);
}

.crm-desc {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Infrastructure Grid */
.infrastructure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

.infra-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all var(--transition-fast);
}

.infra-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.infra-icon {
    width: 60px;
    height: 60px;
    background: rgba(145, 47, 64, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    color: var(--color-primary);
}

.infra-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.infra-status {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: var(--space-sm);
}

.infra-status:contains("In Progress") {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.infra-status:contains("Setup Required") {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.infra-desc {
    font-size: 12px;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Progress Grid */
.progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-lg);
}

.progress-item {
    background: var(--color-background);
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

.progress-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.progress-bar {
    height: 8px;
    background: var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: var(--space-xs);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), #702632);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-fill.pending {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.progress-value {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Phase 0 Section Styles
   ========================================================================== */
.phase0-hero {
    background-color: var(--color-primary);
    background: var(--color-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    margin-bottom: var(--space-xl);
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.phase0-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.phase0-hero h2 {
    color: white;
    font-size: 28px;
    margin-bottom: var(--space-sm);
    position: relative;
}

.phase0-hero p {
    color: white;
    font-size: 15px;
    margin: 0;
    max-width: 600px;
    position: relative;
    line-height: 1.7;
}

.phase0-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
    position: relative;
}

.phase0-section {
    margin-bottom: var(--space-xl);
}

.phase0-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}

.phase0-subtitle {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

/* Partner Grid */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.partner-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all var(--transition-fast);
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.partner-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.partner-logo img {
    max-height: 70px;
    max-width: 100%;
    object-fit: contain;
}

.partner-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.partner-role {
    font-size: 13px;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.partner-card.preferred {
    border: 2px solid var(--color-primary) !important;
}

.partner-card {
    position: relative;
}

.partner-desc {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Servicer Grid */
.servicer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.servicer-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all var(--transition-fast);
}

.servicer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.servicer-logo {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.servicer-logo img {
    max-height: 60px;
    max-width: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.servicer-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.servicer-tag {
    display: inline-block;
    background: rgba(145, 47, 64, 0.1);
    color: var(--color-primary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.servicer-card.preferred {
    border: 2px solid var(--color-primary) !important;
}

.servicer-card {
    position: relative;
}

.servicer-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.servicer-features li {
    font-size: 13px;
    color: var(--color-text-muted);
    padding: var(--space-xs) 0;
    padding-left: var(--space-md);
    position: relative;
}

.servicer-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

/* CRM Grid */
.crm-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.crm-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    transition: all var(--transition-fast);
}

.crm-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.crm-card.preferred {
    border: 2px solid var(--color-primary) !important;
}

.crm-card {
    position: relative;
}

.crm-logo {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crm-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.crm-info h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.crm-alias {
    font-size: 13px;
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: var(--space-sm);
}

.crm-desc {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Infrastructure Grid */
.infrastructure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

.infra-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all var(--transition-fast);
}

.infra-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.infra-icon {
    width: 60px;
    height: 60px;
    background: rgba(145, 47, 64, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    color: var(--color-primary);
}

.infra-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.infra-status {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: var(--space-sm);
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.infra-status.setup-required {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.infra-desc {
    font-size: 12px;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Progress Grid */
.progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-lg);
}

.progress-item {
    background: var(--color-background);
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

.progress-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.progress-bar {
    height: 8px;
    background: var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: var(--space-xs);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), #702632);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-fill.pending {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.progress-value {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* Dialer Comparison Section */
.dialer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.dialer-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all var(--transition-fast);
}

.dialer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.dialer-card.preferred {
    border: 2px solid var(--color-primary) !important;
}

.dialer-card {
    position: relative;
}

.dialer-logo {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.dialer-logo img {
    max-height: 60px;
    max-width: 100%;
    object-fit: contain;
}

.dialer-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.dialer-tag {
    display: inline-block;
    background: rgba(145, 47, 64, 0.1);
    color: var(--color-primary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.dialer-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.dialer-features li {
    font-size: 13px;
    color: var(--color-text-muted);
    padding: var(--space-xs) 0;
    padding-left: var(--space-md);
    position: relative;
}

.dialer-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

/* Branding Guideline Section */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.brand-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.brand-color {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-color.primary-color {
    background: linear-gradient(135deg, #912F40 0%, #080705 100%);
    color: white;
}

.brand-color.secondary-color {
    background: linear-gradient(135deg, #080705 0%, #082438 100%);
    color: white;
}

.brand-color.accent-color {
    background: linear-gradient(135deg, #702632 0%, #6b8ab0 100%);
    color: white;
}

.color-label {
    font-size: 13px;
    font-weight: 500;
}

.color-hex {
    font-size: 12px;
    font-family: monospace;
    opacity: 0.8;
}

.brand-typography {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border);
}

.brand-typography:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.brand-typography h4 {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.font-sample {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.font-usage {
    font-size: 13px;
    color: var(--color-text-muted);
    margin: 0;
}

/* Brand Voice Section */
.voice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-md);
}

.voice-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-primary);
    transition: all var(--transition-fast);
}

.voice-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.voice-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.voice-card p {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   Cash Flow Section Styles
   ========================================================================== */
.cashflow-hero {
    background-color: var(--color-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    margin-bottom: var(--space-xl);
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.cashflow-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cashflow-hero h2 {
    color: white;
    font-size: 28px;
    margin-bottom: var(--space-sm);
    position: relative;
}

.cashflow-hero p {
    color: white;
    font-size: 15px;
    margin: 0;
    max-width: 600px;
    position: relative;
    line-height: 1.7;
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.cashflow-table {
    min-width: 100%;
}

.cashflow-table th,
.cashflow-table td {
    white-space: nowrap;
    padding: var(--space-md) var(--space-lg);
    text-align: right;
    font-size: 13px;
}

.cashflow-table td:first-child,
.cashflow-table th:first-child {
    text-align: left;
    position: sticky;
    left: 0;
    background: var(--color-surface);
    z-index: 1;
    font-weight: 600;
    border-right: 2px solid var(--color-border-light);
    min-width: 100px;
}

.cashflow-table th:first-child {
    background: var(--color-background);
}

.scenario-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.scenario-badge.worst {
    background: var(--color-negative-light);
    color: var(--color-negative);
}

.scenario-badge.middle {
    background: var(--color-warning-light);
    color: #b45309;
}

.scenario-badge.best {
    background: var(--color-positive-light);
    color: var(--color-positive);
}

@media (max-width: 992px) {
    .cashflow-hero h2 {
        font-size: 24px;
    }
    
    .cashflow-hero p {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .cashflow-hero {
        padding: var(--space-xl);
    }
    
    .cashflow-hero h2 {
        font-size: 22px;
    }
    
    .cashflow-table th,
    .cashflow-table td {
        padding: var(--space-sm) var(--space-md);
        font-size: 12px;
    }
}

/* ==========================================================================
   Documents Section Styles
   ========================================================================== */
.documents-hero {
    background-color: var(--color-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    margin-bottom: var(--space-xl);
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.documents-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.documents-hero h2 {
    color: white;
    font-size: 28px;
    margin-bottom: var(--space-sm);
    position: relative;
}

.documents-hero p {
    color: white;
    font-size: 15px;
    margin: 0;
    max-width: 600px;
    position: relative;
    line-height: 1.7;
}

.document-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.document-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--color-background);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-fast);
}

.document-item:hover {
    border-color: var(--color-primary-light);
    background: rgba(145, 47, 64, 0.03);
}

.document-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    flex-shrink: 0;
}

.document-info {
    flex: 1;
}

.document-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.document-info p {
    font-size: 13px;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.4;
}

.document-item .btn-secondary {
    flex-shrink: 0;
}

/* Search Bar Styles */
.search-bar-container {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    padding: var(--space-md) var(--space-lg);
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.search-input-wrapper:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(145, 47, 64, 0.1);
}

.search-input-wrapper svg {
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-primary);
    font-size: 14px;
    color: var(--color-text);
    outline: none;
}

.search-input::placeholder {
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .search-bar-container {
        flex-direction: column;
    }
    
    .search-input-wrapper {
        width: 100%;
    }
}

/* ==========================================================================
   SWOT Analysis Section Styles
   ========================================================================== */
.swot-hero {
    background-color: var(--color-primary);
    background: var(--color-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    margin-bottom: var(--space-xl);
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.swot-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.swot-hero h2 {
    color: white;
    font-size: 28px;
    margin-bottom: var(--space-sm);
    position: relative;
}

.swot-hero p {
    color: white;
    font-size: 15px;
    margin: 0;
    max-width: 600px;
    position: relative;
    line-height: 1.7;
}

.swot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.swot-quadrant {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all var(--transition-normal);
}

.swot-quadrant:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.swot-header {
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.swot-header.strengths {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.15) 100%);
    border-bottom: 3px solid var(--color-positive);
}

.swot-header.weaknesses {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.15) 100%);
    border-bottom: 3px solid var(--color-negative);
}

.swot-header.opportunities {
    background: linear-gradient(135deg, rgba(145, 47, 64, 0.1) 0%, rgba(15, 122, 118, 0.15) 100%);
    border-bottom: 3px solid var(--color-primary);
}

.swot-header.threats {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.15) 100%);
    border-bottom: 3px solid var(--color-warning);
}

.swot-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.swot-header.strengths .swot-icon {
    background: linear-gradient(135deg, var(--color-positive) 0%, #059669 100%);
    color: white;
}

.swot-header.weaknesses .swot-icon {
    background: linear-gradient(135deg, var(--color-negative) 0%, #dc2626 100%);
    color: white;
}

.swot-header.opportunities .swot-icon {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
}

.swot-header.threats .swot-icon {
    background: linear-gradient(135deg, var(--color-warning) 0%, #d97706 100%);
    color: white;
}

.swot-title {
    flex: 1;
}

.swot-title h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--color-text);
}

.swot-title span {
    font-size: 13px;
    color: var(--color-text-muted);
}

.swot-content {
    padding: var(--space-lg);
}

.swot-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border-light);
}

.swot-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.swot-item:first-child {
    padding-top: 0;
}

.swot-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.swot-header.strengths .swot-bullet {
    background: var(--color-positive);
}

.swot-header.weaknesses .swot-bullet {
    background: var(--color-negative);
}

.swot-header.opportunities .swot-bullet {
    background: var(--color-primary);
}

.swot-header.threats .swot-bullet {
    background: var(--color-warning);
}

.swot-text {
    flex: 1;
}

.swot-text h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.swot-text p {
    font-size: 13px;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   Risk Analysis Section Styles
   ========================================================================== */
.risk-hero {
    background-color: var(--color-primary);
    background: var(--color-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    margin-bottom: var(--space-xl);
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.risk-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.risk-hero h2 {
    color: white;
    font-size: 28px;
    margin-bottom: var(--space-sm);
    position: relative;
}

.risk-hero p {
    color: white;
    font-size: 15px;
    margin: 0;
    max-width: 600px;
    position: relative;
    line-height: 1.7;
}

.risk-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.risk-matrix-container {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.risk-matrix-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.risk-matrix-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--color-negative);
    border-radius: 2px;
}

.risk-matrix {
    display: grid;
    grid-template-columns: auto repeat(5, 1fr);
    grid-template-rows: repeat(5, auto) auto;
    gap: 3px;
}

.matrix-cell {
    padding: var(--space-md);
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.matrix-cell:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
    z-index: 1;
}

.matrix-cell.empty {
    background: transparent;
}

.matrix-cell.low {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-positive);
}

.matrix-cell.medium {
    background: rgba(245, 158, 11, 0.15);
    color: var(--color-warning);
}

.matrix-cell.high {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-negative);
}

.matrix-cell.critical {
    background: rgba(185, 28, 28, 0.2);
    color: #991b1b;
    font-weight: 600;
}

.matrix-label {
    font-size: 10px;
    color: var(--color-text-muted);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    padding: var(--space-sm);
    font-weight: 500;
}

.matrix-label.horizontal {
    writing-mode: horizontal-tb;
    transform: none;
    text-align: center;
}

.matrix-header {
    background: var(--color-background);
    color: var(--color-text-muted);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.risk-legend {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 12px;
    color: var(--color-text-muted);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: var(--radius-sm);
}

.legend-color.low {
    background: rgba(16, 185, 129, 0.3);
}

.legend-color.medium {
    background: rgba(245, 158, 11, 0.3);
}

.legend-color.high {
    background: rgba(239, 68, 68, 0.3);
}

.legend-color.critical {
    background: rgba(185, 28, 28, 0.4);
}

/* Risk Register */
.risk-register {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.risk-register-header {
    padding: var(--space-lg);
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.risk-register-header h3 {
    margin: 0;
    font-size: 16px;
    color: var(--color-text);
    position: relative;
    padding-left: var(--space-md);
}

.risk-register-header h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--color-negative);
    border-radius: 2px;
}

.risk-count {
    display: flex;
    gap: var(--space-md);
}

.risk-count-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 500;
}

.risk-count-item.critical {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-negative);
}

.risk-count-item.high {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
}

.risk-count-item.medium {
    background: rgba(145, 47, 64, 0.1);
    color: var(--color-primary);
}

.risk-count-item.low {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-positive);
}

.risk-accordion {
    border-bottom: 1px solid var(--color-border-light);
}

.risk-accordion:last-child {
    border-bottom: none;
}

.accordion-header {
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--color-surface);
}

.accordion-header:hover {
    background: rgba(145, 47, 64, 0.02);
}

.accordion-risk-level {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.accordion-risk-level.critical {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-negative);
}

.accordion-risk-level.high {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
}

.accordion-risk-level.medium {
    background: rgba(145, 47, 64, 0.1);
    color: var(--color-primary);
}

.accordion-risk-level.low {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-positive);
}

.accordion-content-main {
    flex: 1;
}

.accordion-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.accordion-meta {
    display: flex;
    gap: var(--space-lg);
    font-size: 12px;
    color: var(--color-text-muted);
}

.accordion-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.accordion-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.accordion-toggle:hover {
    background: var(--color-border-light);
}

.accordion-toggle svg {
    transition: transform var(--transition-fast);
}

.risk-accordion.active .accordion-toggle svg {
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
    background: var(--color-background);
}

.risk-accordion.active .accordion-body {
    max-height: 500px;
}

.accordion-details {
    padding: var(--space-lg);
    padding-left: calc(var(--space-lg) + 48px + var(--space-lg));
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border-light);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    font-weight: 600;
}

.detail-value {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.5;
}

.detail-value.description {
    color: var(--color-text-secondary);
}

.mitigation-section {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border-light);
}

.mitigation-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.mitigation-label svg {
    flex-shrink: 0;
}

.mitigation-text {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    padding-left: calc(20px + var(--space-sm));
}

/* Responsive for SWOT and Risk sections */
@media (max-width: 1200px) {
    .swot-grid {
        grid-template-columns: 1fr;
    }
    
    .risk-dashboard {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .swot-hero h2,
    .risk-hero h2 {
        font-size: 22px;
    }
    
    .swot-hero p,
    .risk-hero p {
        font-size: 14px;
    }
    
    .risk-accordion-header {
        flex-wrap: wrap;
    }
    
    .accordion-meta {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

/* Enhanced Risk Register Styles */
.risk-register-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--color-border);
}

.risk-register-title {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.risk-register-title h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.risk-register-actions {
    display: flex;
    gap: var(--space-md);
}

.risk-filter-btn {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-border);
    background: transparent;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.risk-filter-btn:hover,
.risk-filter-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.risk-filter-btn.active {
    background: var(--color-primary);
}

.risk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-lg);
    padding: var(--space-xl);
}

.risk-card {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.risk-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.risk-card.high-priority {
    border-left: 4px solid var(--color-negative);
}

.risk-card.medium-priority {
    border-left: 4px solid var(--color-warning);
}

.risk-card.low-priority {
    border-left: 4px solid var(--color-positive);
}

.risk-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: var(--space-lg);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.risk-card-header:hover {
    background: rgba(145, 47, 64, 0.02);
}

.risk-card-title {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.risk-icon-indicator {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.risk-icon-indicator.high {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-negative);
}

.risk-icon-indicator.medium {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
}

.risk-icon-indicator.low {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-positive);
}

.risk-card-title h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 var(--space-xs) 0;
    color: var(--color-text);
}

.risk-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.risk-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.risk-tag.compliance {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.risk-tag.operational {
    background: rgba(145, 47, 64, 0.1);
    color: var(--color-primary);
}

.risk-tag.market {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.risk-tag.human-resources {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

.risk-tag.financial {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-positive);
}

.risk-toggle-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-background-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.risk-card.expanded .risk-toggle-icon {
    transform: rotate(180deg);
    background: var(--color-primary);
    color: white;
}

.risk-card-body {
    padding: 0 var(--space-lg) var(--space-lg);
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.risk-card.expanded .risk-card-body {
    max-height: 500px;
    padding-bottom: var(--space-lg);
}

.risk-detail-section {
    margin-bottom: var(--space-lg);
}

.risk-detail-section:last-child {
    margin-bottom: 0;
}

.risk-detail-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.risk-detail-text {
    font-size: 13px;
    color: var(--color-text);
    line-height: 1.7;
    margin: 0;
}

.risk-score-display {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-md);
    background: var(--color-background-secondary);
    border-radius: var(--radius-md);
    margin-top: var(--space-md);
}

.risk-score-item {
    flex: 1;
    text-align: center;
}

.risk-score-value {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 2px;
}

.risk-score-value.high {
    color: var(--color-negative);
}

.risk-score-value.medium {
    color: var(--color-warning);
}

.risk-score-value.low {
    color: var(--color-positive);
}

.risk-score-label {
    font-size: 10px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.risk-mitigation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.risk-mitigation-list li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-sm);
    font-size: 13px;
    color: var(--color-text);
    line-height: 1.6;
}

.risk-mitigation-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
}

.risk-matrix-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: var(--space-md);
    background: var(--color-background-secondary);
    border-radius: var(--radius-md);
    margin-top: var(--space-md);
}

.risk-matrix-mini-cell {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
}

.risk-matrix-mini-cell.low {
    background: rgba(16, 185, 129, 0.2);
    color: var(--color-positive);
}

.risk-matrix-mini-cell.medium {
    background: rgba(245, 158, 11, 0.2);
    color: var(--color-warning);
}

.risk-matrix-mini-cell.high {
    background: rgba(239, 68, 68, 0.2);
    color: var(--color-negative);
}

.risk-matrix-mini-cell.current {
    border: 2px solid var(--color-primary);
}

.risk-summary-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    padding: var(--space-lg);
    background: linear-gradient(135deg, rgba(145, 47, 64, 0.03) 0%, rgba(145, 47, 64, 0.08) 100%);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
}

.risk-stat-item {
    text-align: center;
    padding: var(--space-md);
}

.risk-stat-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.risk-stat-value.red {
    color: var(--color-negative);
}

.risk-stat-value.orange {
    color: var(--color-warning);
}

.risk-stat-value.green {
    color: var(--color-positive);
}

.risk-stat-label {
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 500;
}

@media (max-width: 768px) {
    .risk-grid {
        grid-template-columns: 1fr;
    }
    
    .risk-register-header {
        flex-direction: column;
        gap: var(--space-md);
        align-items: flex-start;
    }
    
    .risk-summary-stats {
        grid-template-columns: 1fr;
    }
}

/* Timeline Section Styles */
.timeline-hero {
    background-color: var(--color-primary);
    background: var(--color-primary);
    color: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
}

.timeline-hero h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 var(--space-md) 0;
}

.timeline-hero p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.timeline-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.timeline-stat-card {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    transition: all var(--transition-normal);
}

.timeline-stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.timeline-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(145, 47, 64, 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.timeline-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.timeline-stat-label {
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.timeline-container {
    position: relative;
}

.timeline-phase {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--color-border);
}

.timeline-phase:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.timeline-phase-header {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border);
}

.timeline-phase-badge {
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--color-text-muted);
    color: white;
}

.timeline-phase-badge.phase-1 {
    background: var(--color-primary);
}

.timeline-phase-badge.phase-2 {
    background: #6366f1;
}

.timeline-phase-badge.phase-3 {
    background: #8b5cf6;
}

.timeline-phase-badge.phase-long {
    background: #f59e0b;
}

.timeline-phase-info h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 var(--space-xs) 0;
    color: var(--color-text);
}

.timeline-phase-duration {
    font-size: 13px;
    color: var(--color-text-muted);
}

.timeline-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.timeline-item {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.timeline-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--color-primary);
}

.timeline-item.completed {
    border-left: 3px solid var(--color-positive);
}

.timeline-item.active {
    border-left: 3px solid var(--color-primary);
    background: rgba(145, 47, 64, 0.02);
}

.timeline-item.pending {
    opacity: 0.8;
}

.timeline-item.future {
    opacity: 0.6;
}

.timeline-marker {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-background-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.timeline-marker.completed {
    background: var(--color-positive);
    color: white;
}

.timeline-marker.active {
    background: var(--color-primary);
    color: white;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-text-muted);
}

.timeline-marker.active .timeline-dot {
    background: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.timeline-marker.future {
    background: rgba(245, 158, 11, 0.2);
    color: var(--color-warning);
}

.timeline-content {
    flex: 1;
}

.timeline-date {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.timeline-content h5 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 var(--space-sm) 0;
    color: var(--color-text);
}

.timeline-content p {
    font-size: 13px;
    color: var(--color-text-muted);
    margin: 0 0 var(--space-md) 0;
    line-height: 1.6;
}

.timeline-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.timeline-status {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline-status.completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-positive);
}

.timeline-status.in-progress {
    background: rgba(145, 47, 64, 0.1);
    color: var(--color-primary);
}

.timeline-status.pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
}

.timeline-status.future {
    background: rgba(107, 114, 128, 0.1);
    color: var(--color-text-muted);
}

.timeline-team,
.timeline-target {
    font-size: 11px;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Milestone Cards */
.milestone-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.milestone-card {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.milestone-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.milestone-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.milestone-icon.completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-positive);
}

.milestone-icon.active {
    background: rgba(145, 47, 64, 0.1);
    color: var(--color-primary);
}

.milestone-icon.pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
}

.milestone-icon.future {
    background: rgba(107, 114, 128, 0.1);
    color: var(--color-text-muted);
}

.milestone-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 var(--space-sm) 0;
    color: var(--color-text);
}

.milestone-info p {
    font-size: 12px;
    color: var(--color-text-muted);
    margin: 0 0 var(--space-md) 0;
    line-height: 1.6;
}

.milestone-date {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 1200px) {
    .timeline-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .milestone-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .timeline-stats-row {
        grid-template-columns: 1fr;
    }
    
    .milestone-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-phase-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }
    
    .timeline-item {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .timeline-marker {
        width: 28px;
        height: 28px;
    }
}

/* Linear Timeline Styles */
.linear-timeline-hero {
    background-color: var(--color-primary);
    background: var(--color-primary);
    color: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.linear-timeline-hero h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 var(--space-md) 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    padding-left: 0;
}

.linear-timeline-hero h2::before {
    display: none;
}

.linear-timeline-hero p {
    font-size: 15px;
    opacity: 0.95;
    margin: 0;
    font-weight: 400;
    max-width: 100%;
    color: white;
    line-height: 1.7;
}

.linear-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 60px;
}

.linear-timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 20px;
    bottom: 20px;
    width: 4px;
    background: linear-gradient(180deg, 
        #10B981 0%, 
        #10B981 6%, 
        #912F40 6%, 
        #912F40 13%, 
        #6366f1 13%, 
        #9CA3AF 13%, 
        #9CA3AF 100%);
    border-radius: 3px;
    z-index: 0;
}

.linear-step {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-lg);
    position: relative;
    transition: all var(--transition-normal);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-sm);
    background: transparent;
}

.linear-step:last-child {
    padding-bottom: 0;
}

.linear-step:hover {
    background: rgba(145, 47, 64, 0.03);
}

.linear-step.completed {
    background: rgba(16, 185, 129, 0.05);
}

.linear-step.active {
    background: rgba(145, 47, 64, 0.08);
    box-shadow: 0 2px 12px rgba(145, 47, 64, 0.12);
}

.linear-step.pending {
    opacity: 1;
    background: transparent;
}

.linear-step-marker {
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 4px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.linear-step.completed .linear-step-marker {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-color: #10B981;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.linear-step.active .linear-step-marker {
    background: linear-gradient(135deg, #912F40 0%, #080705 100%);
    border-color: #912F40;
    color: white;
    box-shadow: 0 4px 16px rgba(145, 47, 64, 0.5);
    animation: marker-glow 2s infinite;
}

@keyframes marker-glow {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(145, 47, 64, 0.5);
    }
    50% {
        box-shadow: 0 4px 24px rgba(145, 47, 64, 0.8);
    }
}

.linear-step.pending .linear-step-marker {
    background: linear-gradient(135deg, #F9FAFB 0%, #E5E7EB 100%);
    border-color: #D1D5DB;
    color: var(--color-text-muted);
}

.step-number {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-muted);
}

.pulse-ring {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.85);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.6;
    }
    100% {
        transform: scale(0.85);
        opacity: 1;
    }
}

.linear-step-content {
    flex: 1;
    padding: var(--space-sm) 0;
}

.linear-step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.linear-step-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--color-text);
}

.linear-step.completed .linear-step-content h4 {
    color: #059669;
}

.linear-step.active .linear-step-content h4 {
    color: #080705;
    font-weight: 700;
}

.linear-step-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.linear-step-status.done {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.linear-step-status.in-progress {
    background: linear-gradient(135deg, #912F40 0%, #080705 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(145, 47, 64, 0.3);
}

.linear-step-status.pending {
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
    color: var(--color-text-muted);
    border: 1px solid #D1D5DB;
}

.linear-step-content p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.6;
}

.progress-count {
    font-size: 14px;
    color: #912F40;
    font-weight: 600;
    background: rgba(145, 47, 64, 0.1);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
}

.progress-bar-container {
    margin-bottom: var(--space-xl);
}

.progress-bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-md);
    font-size: 15px;
    font-weight: 600;
}

.progress-bar-label span:first-child {
    color: var(--color-text);
}

.progress-bar-label span:last-child {
    color: #912F40;
    font-weight: 700;
    font-size: 18px;
}

.progress-bar {
    height: 12px;
    background: linear-gradient(90deg, #E5E7EB 0%, #F3F4F6 100%);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #912F40 0%, #10B981 50%, #6366f1 100%);
    border-radius: 6px;
    transition: width 0.8s ease;
    box-shadow: 0 2px 8px rgba(145, 47, 64, 0.4);
}

.progress-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.progress-stat {
    text-align: center;
    padding: var(--space-lg);
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: all var(--transition-normal);
}

.progress-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.progress-stat-number {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: var(--space-sm);
}

.progress-stat-number.done {
    color: #10B981;
    text-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.progress-stat-number.progress {
    color: #912F40;
    text-shadow: 0 2px 8px rgba(145, 47, 64, 0.3);
}

.progress-stat-number.pending {
    color: var(--color-text-muted);
}

.progress-stat-number.total {
    color: var(--color-text);
    font-weight: 700;
}

.progress-stat-label {
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .linear-timeline {
        padding-left: 50px;
    }
    
    .linear-timeline::before {
        left: 22px;
    }
    
    .linear-step {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .linear-step-marker {
        position: static;
        transform: none;
        width: 40px;
        height: 40px;
    }
    
    .linear-step-marker {
        width: 36px;
        height: 36px;
    }
    
    .progress-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .linear-step-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .linear-timeline-hero h2 {
        font-size: 24px;
    }
    
    .linear-timeline-hero p {
        font-size: 14px;
    }
}
