/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Modern Minimalist Color Palette - Clean & Creative */
    --primary-color: #374151; /* Soft Charcoal */
    --primary-dark: #1F2937;
    --primary-light: #4B5563;
    --secondary-color: #374151;
    --accent-color: #5FB9B0; /* Soft Teal - Modern & Calming */
    --accent-primary: #5FB9B0; /* Soft Teal - alias for consistency */
    --accent-dark: #4A9D94;
    --accent-secondary: #FF9A8B; /* Soft Coral - Creative & Warm */
    --accent-light: #7FD4CC;
    --accent-dark-variant: #4A9D94;
    --text-primary: #374151; /* Soft Charcoal */
    --text-secondary: #6B7280; /* Medium Gray */
    --text-light: #9CA3AF; /* Light Gray */
    --bg-white: #FFFFFF;
    
    --bg-light: #FAFAFA; /* Very Light Warm Gray */
    
    --bg-lighter: #F5F5F5; /* Light Gray */
    --border-color: #E5E7EB; /* Soft Border */
    --success-color: #10B981;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --font-serif: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing */
    --container-max-width: 1280px;
    --section-padding: 100px 20px;
}

html {
    width: 100%;
    overflow-x: hidden;
    height: auto;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-regular);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.container {
    max-width: var(--container-max-width);
    margin: 90px auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Navigation Bar - iPhone/Bubble Style */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border: none;
    z-index: 1000;
    box-shadow: none;
    display: block;
    padding: 12px 20px;
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.navbar-hidden {
    transform: translateY(-100%);
}

.nav-container {
    max-width: calc(var(--container-max-width) - 40px);
    margin: 20px auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    position: relative;
    background: rgb(255, 255, 255);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1),
                0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(95, 185, 176, 0.1);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    max-width: 200px;
}

.logo-image {
    height: 60px;
    max-height: 60px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.logo-symbol {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: var(--accent-color);
    flex-shrink: 0;
    display: inline-block;
    line-height: 1;
}

.logo-text {
    font-family: var(--font-serif);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.5px;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
    margin-left: 40px;
    flex: 1;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: var(--font-weight-medium);
    padding: 12px 28px;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color);
    background: transparent;
    transform: translateY(-1px);
}

.nav-link.active {
    background: var(--primary-color);
    color: white;
    font-weight: var(--font-weight-semibold);
}

/* Products link arrow icon */
.nav-arrow-icon {
    font-size: 10px;
    margin-left: 4px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

/* Products and Resources link hover - remove background blob, change color to green, rotate arrow */
.nav-link-products:hover,
.nav-link-resources:hover {
    background: transparent !important;
    color: var(--accent-color);
}

.nav-link-products:hover .nav-arrow-icon,
.nav-link-resources:hover .nav-arrow-icon {
    transform: rotate(180deg);
}

.dropdown-arrow {
    font-size: 10px;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

    @media (min-width: 769px) {
        .nav-item:hover .dropdown-arrow {
            transform: translateY(1px);
        }
    }

/* Dropdown Menu */
.dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 24px;
    min-width: 400px;
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1001;
    pointer-events: none;
}

/* Products Dropdown - Single Column Layout */
.dropdown-products {
    grid-template-columns: 1fr !important;
    min-width: auto !important;
    width: max-content !important;
    max-width: 380px !important;
    padding: 24px !important;
    gap: 0 !important;
}

/* Resources Dropdown - Match Products size */
.dropdown-resources {
    grid-template-columns: 1fr !important;
    min-width: auto !important;
    width: max-content !important;
    max-width: 380px !important;
    padding: 24px !important;
    gap: 0 !important;
}

/* Solutions Dropdown - Three Column Layout */
.dropdown-solutions {
    grid-template-columns: repeat(3, 1fr) !important;
    min-width: 900px !important;
    padding: 40px 32px !important;
    gap: 40px !important;
}

.dropdown-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Products and Resources dropdown column - adjust gap */
.dropdown-products .dropdown-column,
.dropdown-resources .dropdown-column {
    gap: 20px;
    width: 100%;
}

.dropdown-column-title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0;
    transition: color 0.2s ease;
}

.dropdown-item strong {
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.dropdown-item strong i {
    font-size: 16px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.dropdown-item-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: block;
}

.dropdown-item:hover {
    color: var(--accent-color);
}

.dropdown-item:hover strong {
    color: var(--accent-color);
}

.dropdown-item:hover strong i {
    color: var(--accent-color);
}

.dropdown-feature {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 24px;
    margin-top: 8px;
    position: relative;
}

.dropdown-feature-content h4 {
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0 0 8px 0;
    font-family: var(--font-serif);
}

.dropdown-feature-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.dropdown-feature-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 20px;
}

.dropdown-feature-link:hover {
    background: var(--accent-light);
    transform: translateX(4px);
}

.nav-item:hover .dropdown,
.dropdown:hover {
    display: grid;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Create invisible bridge to prevent dropdown from closing */
.nav-item::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 8px;
    background: transparent;
    z-index: 1000;
    display: none;
}

.nav-item:hover::before {
    display: block;
}

.dropdown-section h4 {
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.dropdown-section a {
    display: block;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.dropdown-section a:hover {
    color: var(--accent-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.btn-sign-in {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    padding: 10px 18px;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.btn-sign-in:hover {
    color: var(--accent-color);
    background: rgba(95, 185, 176, 0.12);
    transform: translateY(-1px);
}

.btn-check-rate {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--accent-color);
    border: none;
}

.btn-check-rate:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(95, 185, 176, 0.3);
}

.btn-new-loan {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--text-primary);
    border: none;
}

.btn-new-loan:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(55, 65, 81, 0.3);
}

.user-icon {
    font-size: 20px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    line-height: 1;
    display: inline-block;
}

.btn-cta-nav {
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-cta-nav:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(95, 185, 176, 0.3);
}

/* Hero Section - Notion Style */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: #ffffff;
    overflow: hidden;
    padding: 120px 20px 80px;
}

.hero::before {
    display: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
    text-align: left;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-icon {
    width: 16px;
    height: 16px;
    color: white;
    flex-shrink: 0;
    display: inline-block;
}

.hero-badge-text {
    font-size: 11px;
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(55, 65, 81, 0.5);
    margin-bottom: 16px;
    opacity: 0.7;
}

.hero-welcome-message {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(95, 185, 176, 0.1) 0%, rgba(95, 185, 176, 0.05) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: var(--font-weight-medium);
    margin-bottom: 24px;
    border: 1px solid rgba(95, 185, 176, 0.2);
    box-shadow: 0 2px 12px rgba(95, 185, 176, 0.1);
    animation: welcomeFadeIn 0.6s ease-out;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-welcome-message:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(95, 185, 176, 0.15);
    border-color: rgba(95, 185, 176, 0.3);
}

.hero-welcome-message i {
    color: var(--accent-color);
    font-size: 20px;
    animation: wave 2s ease-in-out infinite;
}

.hero-welcome-message strong {
    color: var(--accent-color);
    font-weight: var(--font-weight-semibold);
}

@keyframes welcomeFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wave {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(20deg);
    }
    75% {
        transform: rotate(-20deg);
    }
}

@media (max-width: 768px) {
    .hero-welcome-message {
        font-size: 16px;
        padding: 12px 20px;
        margin-bottom: 20px;
    }
    
    .hero-welcome-message i {
        font-size: 18px;
    }
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 56px;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    max-width: 900px;
}

.typewriter-text {
    display: inline;
}

.typewriter-cursor {
    display: inline;
    color: var(--accent-color);
    font-weight: 300;
    animation: blink 1s infinite;
    margin-left: 2px;
    vertical-align: baseline;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 800px;
    font-weight: var(--font-weight-regular);
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 32px;
    }
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.hero-helper-text {
    font-size: 13px;
    color: rgba(55, 65, 81, 0.6);
    margin-top: 8px;
    font-weight: var(--font-weight-regular);
    line-height: 1.5;
}

/* Hero Section Buttons */
.btn-hero-check-rate {
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    padding: 16px 40px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 2px 8px rgba(95, 185, 176, 0.2);
    letter-spacing: 0.01em;
}

.btn-hero-check-rate:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(95, 185, 176, 0.3);
}

.btn-hero-check-rate:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(95, 185, 176, 0.25);
}

.btn-hero-apply-now {
    background: var(--primary-dark);
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    padding: 16px 40px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.01em;
}

.btn-hero-apply-now:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-hero-apply-now:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-features {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 16px;
}

.hero-feature-item i {
    color: var(--accent-color);
    font-size: 18px;
}

.btn-primary {
    background: var(--text-primary);
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    padding: 16px 40px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.01em;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(95, 185, 176, 0.25);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    padding: 14px 32px;
    border-radius: 8px;
    border: 1.5px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    letter-spacing: 0.01em;
}

.btn-secondary:hover {
    background: white;
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

/* Section Styles */
section {
    padding: 20px 20px;
    position: relative;
}

@media (max-width: 768px) {
    section {
        padding: 60px 20px;
    }
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.products .section-header {
    margin-bottom: 32px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 36px;
        margin-bottom: 16px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
}

/* Track Record Section */
.track-record {
    background: var(--bg-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 60px;
}

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

.stat-card {
    text-align: center;
    padding: 32px;
    border-radius: 12px;
    background: var(--bg-light);
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-number {
    font-size: 42px;
    font-weight: var(--font-weight-bold);
    color: var(--accent-color);
    margin-bottom: 8px;
    display: block;
}

.stat-label {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Welcome Section */
.welcome-section {
    background: #f8f9fa;
    padding: 100px 20px;
}

.welcome-content {
    max-width: 900px;
    margin: 0 auto;
}

.welcome-text {
    text-align: center;
}

.welcome-title {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .welcome-title {
        font-size: 32px;
    }
}

.welcome-intro {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.welcome-explanation {
    background: var(--bg-white);
    padding: 48px;
    border-radius: 12px;
    margin-bottom: 48px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.welcome-subtitle {
    font-size: 28px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: left;
}

.welcome-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: left;
}

.welcome-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.welcome-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 32px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.welcome-benefit-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.welcome-benefit-item i {
    font-size: 40px;
    color: var(--accent-color);
    flex-shrink: 0;
    margin-top: 4px;
}

/* Ensure all checkmarks use accent color, not green */
i[class*="ri-check"],
i[class*="checkbox"] {
    color: var(--accent-color) !important;
}

.welcome-benefit-item h4 {
    font-size: 20px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: 8px;
}

.welcome-benefit-item p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 968px) {
    .welcome-benefits {
        grid-template-columns: 1fr;
    }
    
    .welcome-title {
        font-size: 36px;
    }
    
    .welcome-intro {
        font-size: 18px;
    }
    
    .welcome-explanation {
        padding: 32px 24px;
    }
    
    .welcome-subtitle {
        font-size: 24px;
    }
    
    .welcome-description {
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    .welcome-title {
        font-size: 32px;
    }
    
    .welcome-intro {
        font-size: 16px;
        margin-bottom: 32px;
    }
    
    .welcome-explanation {
        padding: 24px 20px;
        margin-bottom: 32px;
    }
    
    .welcome-benefit-item {
        padding: 24px;
        flex-direction: column;
        text-align: center;
    }
    
    .welcome-benefit-item i {
        margin-top: 0;
    }
}

/* Products Section */
.products {
    background: #ffffff;
    padding: 100px 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 769px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        max-width: 1400px;
    }
    
    .product-card {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 18px;
        min-height: auto;
    }
    
    .product-icon-wrapper {
        flex-shrink: 0;
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(95, 185, 176, 0.1);
        border-radius: 10px;
        margin-bottom: 12px;
    }
    
    .product-icon {
        font-size: 24px;
        margin-bottom: 0;
    }
    
    .product-card-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 6px;
        width: 100%;
    }
    
    .product-title {
        font-size: 16px;
        margin-bottom: 6px;
        line-height: 1.3;
    }
    
    .product-description {
        font-size: 12px;
        margin-bottom: 10px;
        line-height: 1.4;
    }
    
    .product-benefits-list {
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 6px;
        flex: 1;
    }
    
    .product-benefit-item {
        font-size: 11px;
        gap: 5px;
        line-height: 1.4;
    }
    
    .product-benefit-item i {
        font-size: 10px;
        flex-shrink: 0;
    }
    
    .product-link {
        margin-top: 8px;
        font-size: 13px;
    }
}

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

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 12px;
    }
    
    .product-card {
        padding: 18px 20px;
    }
    
    .product-icon-wrapper {
        width: 48px;
        height: 48px;
        background: rgba(95, 185, 176, 0.1);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 12px;
    }
    
    .product-icon {
        font-size: 24px;
        margin-bottom: 0;
    }
    
    .product-title {
        font-size: 17px;
        margin-bottom: 6px;
    }
    
    .product-description {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .product-highlight {
        font-size: 16px;
        margin: 10px 0;
    }
    
    .product-benefits-list {
        margin: 8px 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .product-benefit-item {
        font-size: 12px;
    }
}

.product-card {
    background: var(--bg-white);
    padding: 20px 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
    border-radius: 12px 12px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

@media (min-width: 769px) {
    .product-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }
}

.product-icon {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: var(--accent-color);
    margin-bottom: 16px;
    flex-shrink: 0;
    line-height: 1;
    display: inline-block;
}

@media (min-width: 769px) {
    .product-icon {
        font-size: 28px;
        width: auto;
        height: auto;
        margin-bottom: 0;
    }
}

.product-title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 10px;
    color: var(--text-primary);
}

@media (min-width: 769px) {
    .product-title {
        font-size: 18px;
        margin-bottom: 6px;
    }
}

.product-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

@media (min-width: 769px) {
    .product-description {
        font-size: 14px;
        margin-bottom: 12px;
        line-height: 1.4;
    }
}

.product-benefits-list {
    margin: 16px 0;
    padding: 0;
    list-style: none;
}

.product-benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.product-benefit-item:last-child {
    margin-bottom: 0;
}

.product-benefit-item i {
    color: var(--accent-color);
    font-size: 18px;
    flex-shrink: 0;
}

.product-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 8px;
}

@media (min-width: 769px) {
    .product-link {
        margin-top: 8px;
        padding-top: 0;
        font-size: 14px;
    }
}

.product-link:hover {
    gap: 10px;
    color: var(--accent-dark);
}

.product-link:hover {
    gap: 8px;
}

.cta-center {
    text-align: center;
    margin-top: 48px;
}

/* Why Choose Section */
.why-choose {
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

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

.feature-card {
    padding: 32px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: var(--accent-color);
    margin-bottom: 20px;
    flex-shrink: 0;
    line-height: 1;
    display: inline-block;
}

.feature-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Estimator Section - Your Simple, All-in-One Platform */
.estimator {
    background: #ffffff;
    color: var(--text-primary);
    position: relative;
    padding: 100px 20px;
}

.estimator-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.estimator .section-title {
    color: var(--text-primary);
    margin-bottom: 16px;
}

.estimator .section-subtitle {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.estimator-features {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.estimator-list {
    list-style: none;
    margin-bottom: 32px;
}

.estimator-list li {
    padding: 8px 0;
    font-size: 16px;
    color: var(--text-secondary);
    position: relative;
    padding-left: 24px;
}

.estimator-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 18px;
}

.estimator-card {
    background: var(--bg-lighter);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.portal-mockup-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.portal-mockup-image:hover {
    transform: scale(1.02);
}

.estimator-result {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.result-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-label {
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-value {
    font-size: 32px;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.estimator .btn-primary {
    background: var(--accent-color);
    color: white;
}

.estimator .btn-primary:hover {
    background: var(--accent-dark);
}

/* Solutions Section */
.solutions {
    background: #f8f9fa;
    position: relative;
    padding: 100px 20px;
}

.solutions.dark-section {
    background: #f8f9fa;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

@media (max-width: 1024px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.solution-card {
    background: var(--bg-white);
    padding: 40px 32px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
    border-radius: 12px 12px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.solution-card:hover::before {
    opacity: 1;
}

.solution-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-color);
}

.solution-image {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: var(--accent-color);
    margin-bottom: 24px;
    flex-shrink: 0;
    line-height: 1;
    display: inline-block;
}

.solution-title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 12px;
    color: var(--text-primary);
}

.solution-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.solution-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    font-size: 16px;
}

/* Testimonials Section */
.testimonials {
    background: var(--bg-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.testimonial-card {
    background: var(--bg-light);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.stars {
    color: var(--accent-color);
    font-size: 18px;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial-author strong {
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 14px;
}

/* Final CTA Section - Bridge Style */
.final-cta {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a1f2e 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 100px 20px;
}

/* Light blobs for final-cta */
.final-cta .abstract-shape {
    background: linear-gradient(135deg, rgba(34, 89, 165, 0.08) 0%, rgba(34, 89, 165, 0.03) 100%);
}

.cta-title {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: white;
}

.cta-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .cta-title {
        font-size: 36px;
    }
    
    .cta-subtitle {
        font-size: 16px;
    }
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.final-cta .btn-primary {
    background: var(--accent-color);
    color: white;
}

.final-cta .btn-primary:hover {
    background: var(--accent-dark);
}

.final-cta .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.final-cta .btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.cta-note {
    font-size: 14px;
    color: var(--text-light);
}

/* Footer - Dark with light blobs */
.footer {
    background: #ffffff;
    padding: 80px 20px 40px;
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

/* Light blobs for dark footer */
.footer .section-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.footer .abstract-shape {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.footer .container {
    position: relative;
    z-index: 2;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-family: var(--font-serif);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: 24px;
}

.footer-logo .logo-image {
    filter: none;
    height: 80px;
    max-height: 80px;
    max-width: 280px;
}

.footer-address,
.footer-phone {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.footer-heading {
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 24px;
}

.footer-legal {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-links-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.footer-links-inline span {
    color: var(--text-light);
}

.footer-links-inline a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links-inline a:hover {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }
    
    .section-title {
        font-size: 40px;
    }
    
    .estimator-content {
        grid-template-columns: 1fr;
    }
    
    .estimator-card {
        padding: 20px;
    }
    
    .nav-menu {
        gap: 24px;
    }
    
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
    margin-left: auto;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Desktop: Ensure nav menu is always visible and properly spaced */
@media (min-width: 769px) {
    .navbar {
        position: fixed !important;
        top: 0 !important;
        z-index: 1000;
    }
    
    .nav-menu {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 32px !important;
        max-height: none !important;
        opacity: 1 !important;
        overflow: visible !important;
        width: auto !important;
        order: unset !important;
        border: none !important;
        padding: 0 !important;
        margin-left: 40px !important;
        flex: 1 !important;
    }
    
    .nav-actions {
        display: flex !important;
        order: unset !important;
        margin-left: auto !important;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .mobile-only {
        display: none !important;
    }
    
    .nav-item {
        width: auto !important;
        border-bottom: none !important;
        position: relative !important;
    }
    
    .nav-link {
        padding: 8px 0 !important;
        width: auto !important;
        justify-content: flex-start !important;
    }
    
    .nav-container {
        flex-wrap: nowrap !important;
        height: 70px !important;
        padding: 0 20px !important;
        min-height: 70px !important;
        margin: 20px auto;
    }
    
    .dropdown {
        position: absolute !important;
        display: none !important;
        top: calc(100% + 4px) !important;
        left: 0 !important;
        min-width: 400px !important;
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .dropdown-products,
    .dropdown-resources {
        min-width: auto !important;
        width: max-content !important;
        max-width: 380px !important;
        grid-template-columns: 1fr !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 8px !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
        padding: 24px !important;
        margin-top: 0 !important;
        margin-left: 0 !important;
    }
    
    .dropdown-solutions {
        grid-template-columns: repeat(3, 1fr) !important;
        min-width: 900px !important;
        padding: 40px 32px !important;
        gap: 40px !important;
    }
    
    /* Hide mobile dropdowns on desktop */
    .mobile-dropdown {
        display: none !important;
    }
    
    /* Regular dropdowns (non-products/solutions) - hover works */
    .nav-item:hover .dropdown:not(.desktop-dropdown):not(.mobile-dropdown) {
        display: grid !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }
    
    /* Desktop dropdowns - show on hover AND click */
    .nav-item:hover .desktop-dropdown,
    .nav-item.active .desktop-dropdown {
        display: grid !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }
    
    /* Ensure mobile dropdowns never show on desktop, even on hover or active */
    .nav-item:hover .mobile-dropdown,
    .nav-item.active .mobile-dropdown {
        display: none !important;
    }
    
    .nav-item::before {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .navbar {
        position: fixed !important;
        top: 0 !important;
        width: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 0 !important;
        background: rgb(255, 255, 255) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    }
    
    .nav-container {
        flex-wrap: nowrap;
        height: 64px;
        padding: 0 20px;
        min-height: 64px;
        position: relative;
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    .nav-logo {
        flex: 0 0 auto;
    }
    
    .nav-logo .logo-image {
        height: 60px;
        max-height: 60px;
        max-width: 200px;
    }
    
    .mobile-menu-toggle {
        flex: 0 0 auto;
        margin-left: auto;
        order: 999;
    }
    
    .nav-actions {
        display: none !important;
    }
    
    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        margin: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        background: rgb(255, 255, 255);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        z-index: 1001;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 0;
        border-radius: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        box-sizing: border-box;
        opacity: 0;
        transform: translateY(-10px);
    }
    
    .nav-menu.active {
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-item {
        width: 100%;
        max-width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        text-align: center;
        box-sizing: border-box;
    }
    
    .nav-item:first-child {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
    
    .nav-item:last-child {
        border-bottom: none;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
    
    .nav-item.mobile-only:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        padding: 16px 24px;
        width: 100%;
        max-width: 100%;
        justify-content: center;
        display: flex;
        align-items: center;
        text-align: center;
        gap: 8px;
        box-sizing: border-box;
        border-radius: 0;
    }
    
    .nav-item:first-child .nav-link {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
    
    .nav-item:last-child .nav-link {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
    
    .dropdown-arrow {
        margin-left: 4px;
    }
    
    .mobile-nav-link {
        justify-content: center !important;
        font-weight: var(--font-weight-semibold);
        pointer-events: auto !important;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(95, 185, 176, 0.2);
        touch-action: manipulation;
        min-height: 44px; /* Ensure good touch target size */
        display: flex;
        align-items: center;
    }
    
    .mobile-nav-cta {
        background: var(--accent-color);
        color: var(--primary-color) !important;
        border-radius: 8px;
        margin: 12px 20px;
        padding: 14px 24px !important;
        text-align: center;
        justify-content: center !important;
        width: calc(100% - 40px);
        max-width: calc(100% - 40px);
        box-sizing: border-box;
        font-weight: var(--font-weight-semibold);
        box-shadow: 0 2px 8px rgba(95, 185, 176, 0.3);
    }
    
    .mobile-nav-cta:hover {
        background: var(--accent-light);
    }
    
    /* Hide desktop dropdowns on mobile - completely override any display */
    .desktop-dropdown,
    .dropdown-products.desktop-dropdown,
    .dropdown-solutions.desktop-dropdown {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    /* Prevent desktop dropdowns from showing on hover on mobile */
    .nav-item:hover .desktop-dropdown,
    .nav-item.active .desktop-dropdown,
    .nav-item:hover .dropdown-products.desktop-dropdown,
    .nav-item.active .dropdown-products.desktop-dropdown,
    .nav-item:hover .dropdown-solutions.desktop-dropdown,
    .nav-item.active .dropdown-solutions.desktop-dropdown {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    /* Ensure dropdown-products and dropdown-solutions classes are hidden unless they're mobile */
    .dropdown-products:not(.mobile-dropdown),
    .dropdown-solutions:not(.mobile-dropdown) {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    /* Hide all desktop dropdown content on mobile */
    .desktop-dropdown .dropdown-column,
    .desktop-dropdown .dropdown-item,
    .desktop-dropdown .dropdown-feature,
    .desktop-dropdown .dropdown-column-title {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Reset mobile dropdown to not use grid */
    .mobile-dropdown {
        display: none !important;
        grid-template-columns: none !important;
        grid: none !important;
        position: static !important;
        min-width: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-top: 0 !important;
        margin-left: 0 !important;
        box-shadow: none !important;
        border: none !important;
        border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
        border-radius: 0 !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        background: rgba(249, 250, 251, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        box-sizing: border-box !important;
    }
    
    /* Show mobile dropdown only when active (click) on mobile */
    .nav-item.active .mobile-dropdown {
        display: flex !important;
        flex-direction: column !important;
        pointer-events: auto !important;
    }
    
    /* Prevent mobile dropdowns from showing on hover */
    .nav-item:hover .mobile-dropdown {
        display: none !important;
    }
    
    /* Additional mobile dropdown styling */
    .mobile-dropdown {
        padding: 16px 0 !important;
        pointer-events: auto !important;
    }
    
    .mobile-dropdown-link {
        display: block;
        padding: 14px 24px;
        color: var(--text-primary);
        text-decoration: none;
        font-size: 16px;
        font-weight: var(--font-weight-medium);
        text-align: center;
        width: 100%;
        box-sizing: border-box;
        transition: background-color 0.2s ease, color 0.2s ease;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        pointer-events: auto !important;
        cursor: pointer;
        position: relative;
        z-index: 1002;
    }
    
    .mobile-dropdown-link:last-child {
        border-bottom: none;
    }
    
    .mobile-dropdown-link:hover,
    .mobile-dropdown-link:active {
        background-color: rgba(95, 185, 176, 0.1);
        color: var(--accent-color);
    }
    
    .nav-item::before {
        display: none;
    }
    
    /* Completely disable ALL hover functionality on mobile - only click works */
    .nav-item:hover .dropdown {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    
    .nav-item:hover::before {
        display: none !important;
    }
    
    /* Prevent any hover effects on mobile navigation */
    .nav-link:hover {
        color: inherit !important;
        background: transparent !important;
    }
    
    .nav-item:hover .dropdown-arrow {
        transform: none !important;
    }
    
    /* Ensure dropdowns ONLY show when active class is present (click only) */
    .nav-item.active .dropdown {
        display: grid !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Rotate dropdown arrow when active */
    .nav-item.active .dropdown-arrow {
        transform: rotate(180deg);
        transition: transform 0.3s ease;
    }
    
    /* Add visual feedback for clickable items */
    .nav-link {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }
    
    .dropdown-section {
        margin-bottom: 0;
        padding: 16px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        text-align: left;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .dropdown-section:last-child {
        border-bottom: none;
    }
    
    .dropdown-section h4 {
        font-size: 13px;
        font-weight: var(--font-weight-semibold);
        margin-bottom: 12px;
        color: var(--text-primary);
        text-align: left;
        width: 100%;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .dropdown-section a {
        padding: 10px 0;
        font-size: 15px;
        display: block;
        text-align: left;
        width: 100%;
        box-sizing: border-box;
        color: var(--text-secondary);
        transition: color 0.2s ease;
    }
    
    .dropdown-section a:hover {
        color: var(--accent-color);
    }
    
    .nav-actions {
        display: none !important;
    }
    
    .mobile-only {
        display: list-item !important;
    }
    
    .nav-logo {
        order: 1;
    }
    
    .nav-menu {
        order: 2;
    }
    
    .mobile-menu-toggle {
        order: 3;
    }
    
    .hero {
        background-attachment: scroll;
        min-height: 100vh;
        padding: 100px 20px 60px;
    }
    
    .hero-container {
        text-align: center;
        padding: 0 20px;
        padding-top: 0;
    }
    
    .hero-title {
        font-size: 36px;
        text-align: left;
    }
    
    .hero-subtitle {
        font-size: 18px;
        text-align: left;
    }
    
    .hero-cta {
        justify-content: flex-start;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .hero-cta,
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-hero-check-rate,
    .btn-hero-apply-now {
        width: 100%;
        text-align: center;
    }
    
    .stats-grid,
    .products-grid,
    .features-grid,
    .solutions-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .estimator-card {
        padding: 16px;
    }
    
    .portal-mockup-image {
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px 20px;
    }
    
    .hero {
        min-height: 100vh;
        background-attachment: scroll;
        padding: 100px 20px 60px;
    }
    
    .hero-container {
        padding: 0 20px;
        padding-top: 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 32px;
        text-align: left;
    }
    
    .typewriter-cursor {
        display: inline;
        vertical-align: baseline;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 16px;
    }
    
    .hero-subtitle {
        text-align: left;
    }
    
    .hero-cta {
        justify-content: flex-start;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .product-card,
    .feature-card,
    .solution-card {
        padding: 32px 24px;
    }
}

/* Product Pages Styles */
.product-hero {
    padding: 70px 20px 35px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a1f2e 100%);
    color: white;
    position: relative;
}

.product-hero-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.product-hero-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
    max-width: 800px;
    margin: 0;
}

.product-icon-large {
    font-size: 56px;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.product-hero-title {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    color: white;
    margin: 0;
}

.product-hero-title .product-name-highlight {
    color: var(--accent-color);
}

.product-hero-subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin: 0;
}

.product-hero-cta {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.product-hero-image {
    border-radius: 16px;
    overflow: hidden;
    height: 400px;
    position: relative;
    display: block;
    background: linear-gradient(135deg, rgba(95, 185, 176, 0.05) 0%, rgba(26, 31, 58, 0.05) 100%);
}

.product-hero-image::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 50%, var(--accent-dark) 100%);
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(60px);
    z-index: 0;
    animation: blobAnimation 8s ease-in-out infinite;
}

.product-hero-image::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(95, 185, 176, 0.08) 0%, rgba(26, 31, 58, 0.08) 100%);
    border-radius: 16px;
    z-index: 1;
    pointer-events: none;
}

@keyframes blobAnimation {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(20px, -20px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.product-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    border-radius: 16px;
}

.product-overview {
    padding: 60px 20px;
    background: var(--bg-white);
}

.product-overview-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}

.product-overview-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-text {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.product-overview-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--bg-light);
    padding: 32px;
    border-radius: 12px;
}

.feature-highlight {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: var(--text-primary);
}

.feature-highlight i {
    color: var(--accent-color);
    font-size: 20px;
    flex-shrink: 0;
}

.product-who {
    padding: 60px 20px;
    background: var(--bg-lighter);
}

.product-benefits-grid {
    max-width: var(--container-max-width);
    margin: 24px auto 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.benefit-card {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    display: flex;
    align-items: start;
    gap: 16px;
}

.benefit-card:hover {
    border-color: var(--accent-color);
    background: var(--bg-light);
}

.benefit-icon {
    font-size: 32px;
    color: var(--accent-color);
    flex-shrink: 0;
    margin-top: 4px;
}

.benefit-card-content {
    flex: 1;
}

.benefit-card h3 {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: 6px;
}

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

.product-benefits {
    padding: 60px 20px;
    background: transparent;
}

.benefits-grid-compact {
    max-width: var(--container-max-width);
    margin: 24px auto 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.benefit-card-compact {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
    display: flex;
    align-items: start;
    gap: 16px;
}

.benefit-card-compact:hover {
    border-color: var(--accent-color);
    background: var(--bg-light);
}

.benefit-card-compact i {
    font-size: 32px;
    color: var(--accent-color);
    flex-shrink: 0;
    margin-top: 4px;
}

.benefit-card-compact h3 {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0 0 6px 0;
}

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

.product-process {
    padding: 40px 20px;
    background: var(--bg-lighter);
}

.process-steps {
    max-width: var(--container-max-width);
    margin: 24px auto 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.process-step {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: start;
    gap: 12px;
    transition: all 0.2s ease;
}

.process-step:hover {
    border-color: var(--accent-color);
    background: var(--bg-light);
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: var(--font-weight-bold);
    flex-shrink: 0;
    margin-top: 2px;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

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

.product-example {
    padding: 80px 20px;
    background: var(--bg-white);
}

.example-card {
    max-width: var(--container-max-width);
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 60px;
    border-radius: 20px;
    color: white;
}

.example-card .section-title {
    color: white;
    margin-bottom: 32px;
}

.example-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.example-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.example-text p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    margin: 0;
}

.example-visual {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.example-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.example-item.highlight {
    background: rgba(95, 185, 176, 0.2);
    border-color: var(--accent-color);
}

.example-item i {
    font-size: 32px;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.example-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.example-value {
    font-size: 32px;
    font-weight: var(--font-weight-bold);
    color: white;
}

.product-faq {
    padding: 80px 20px;
    background: var(--bg-lighter);
}

.faq-list {
    max-width: 900px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq-item {
    background: var(--bg-white);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.faq-question {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: 12px;
}

.faq-answer {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.product-cta {
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    color: white;
    text-align: center;
}

.product-cta .cta-title {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: var(--font-weight-bold);
    color: white;
    margin-bottom: 12px;
}

.product-cta .cta-subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .product-hero-container {
        grid-template-columns: 1fr;
    }
    
    .product-hero-image {
        order: -1;
    }
    
    .product-overview-content {
        grid-template-columns: 1fr;
    }
    
    .example-content {
        grid-template-columns: 1fr;
    }
}

.dscr-explanation {
    max-width: var(--container-max-width);
    margin: 40px auto 0;
}

.dscr-formula {
    background: var(--bg-white);
    padding: 48px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.dscr-formula h3 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: 16px;
}

.formula-text {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.formula-box {
    background: var(--bg-light);
    padding: 32px;
    border-radius: 12px;
    margin: 24px 0;
    border: 2px solid var(--accent-color);
}

.formula {
    font-size: 20px;
    color: var(--text-primary);
    line-height: 1.8;
    margin: 0;
}

.formula-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 24px;
}

@media (max-width: 768px) {
    .product-hero {
        padding: 120px 20px 60px;
    }
    
    .product-hero-title {
        font-size: 36px;
    }
    
    .product-hero-subtitle {
        font-size: 18px;
    }
    
    .product-benefits-grid,
    .benefits-grid-compact {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .example-card {
        padding: 40px 24px;
    }
    
    .product-cta .cta-title {
        font-size: 32px;
    }
    
    .dscr-formula {
        padding: 32px 24px;
    }
    
    .formula {
        font-size: 18px;
    }
}

/* Sign In Modal */
.sign-in-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.sign-in-modal.active {
    display: flex;
}

.sign-in-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 31, 58, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.sign-in-modal-content {
    position: relative;
    background: var(--bg-white);
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    padding: 48px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 2001;
    animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.sign-in-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bg-light);
    border: none;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    font-size: 24px;
    z-index: 2002;
    -webkit-tap-highlight-color: rgba(95, 185, 176, 0.2);
    touch-action: manipulation;
}

.sign-in-modal-close:hover {
    background: var(--border-color);
    transform: rotate(90deg);
}

.sign-in-header {
    text-align: center;
    margin-bottom: 32px;
}

.sign-in-logo {
    height: 70px;
    width: auto;
    margin-bottom: 24px;
    max-width: 250px;
}

.sign-in-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: 8px;
}

.sign-in-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

.sign-in-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.form-input {
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    font-family: var(--font-family);
    color: var(--text-primary);
    background: var(--bg-white);
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(95, 185, 176, 0.1);
}

.form-input::placeholder {
    color: var(--text-light);
}

.form-error {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 12px;
    padding: 12px 16px;
    color: #c33;
    font-size: 14px;
    margin-bottom: 16px;
    display: none;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.forgot-password {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: var(--accent-dark-variant);
}

.btn-sign-in-submit {
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-family);
    margin-top: 8px;
}

.btn-sign-in-submit:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(95, 185, 176, 0.3);
}

.sign-in-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 8px 0;
}

.sign-in-divider::before,
.sign-in-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.sign-in-divider span {
    padding: 0 16px;
    color: var(--text-light);
    font-size: 14px;
}

.sign-in-footer {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.sign-up-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: color 0.2s ease;
}

.sign-up-link:hover {
    color: var(--accent-dark-variant);
}

/* Assign User Modal */
.assign-user-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.assign-user-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.assign-user-modal-content {
    position: relative;
    max-width: 600px;
    margin: 80px auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 32px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}

.assign-user-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.assign-user-modal-close:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

.assign-user-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.assign-user-modal-title i {
    font-size: 28px;
    color: var(--accent-color);
}

.assign-user-modal-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 24px 0;
}

.assign-user-search-container {
    margin-bottom: 24px;
}

.assign-user-results {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 12px;
}

.assign-user-loading,
.assign-user-error,
.assign-user-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 14px;
}

.assign-user-loading i {
    font-size: 24px;
}

.assign-user-error {
    color: #ef4444;
}

.assign-user-error i {
    font-size: 32px;
}

.assign-user-empty i {
    font-size: 32px;
}

.assign-user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.assign-user-item:last-child {
    border-bottom: none;
}

.assign-user-item:hover {
    background: var(--bg-light);
}

.assign-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.assign-user-info i {
    font-size: 24px;
    color: var(--text-light);
}

.assign-user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.assign-user-email {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.btn-select-user {
    padding: 8px 16px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-select-user:hover {
    background: var(--accent-dark-variant);
    transform: translateY(-1px);
}

.btn-select-user:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.assign-user-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.btn-danger {
    background: #ef4444;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.btn-danger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 768px) {
    .sign-in-modal-content {
        padding: 32px 20px 40px;
        max-width: 100%;
        border-radius: 0;
        max-height: none;
        min-height: 100vh;
    }
    
    .sign-in-title {
        font-size: 28px;
    }
    
    .sign-in-logo {
        height: 40px;
    }
}

/* Auth Helpers */
.hidden {
    display: none !important;
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.auth-tab {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    font-size: 15px;
    font-weight: var(--font-weight-semibold);
    background: var(--bg-light);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-family);
}

.auth-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(26, 31, 58, 0.2);
}

.auth-message {
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.auth-message.error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.auth-message.success {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #047857;
}

.link-button {
    background: none;
    border: none;
    color: var(--accent-color);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    text-decoration: underline;
}

.link-button:hover {
    color: var(--accent-dark-variant);
}

.form-hint {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 6px;
}

/* User Portal */
.user-portal {
    background: var(--bg-lighter);
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.portal-card {
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 32px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.portal-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(26, 31, 58, 0.08);
    color: var(--primary-color);
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 16px;
}

.portal-chip-user {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.portal-chip-admin {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.portal-chip-muted {
    background: rgba(186, 178, 162, 0.25);
    color: var(--text-secondary);
    margin-right: 8px;
    margin-bottom: 8px;
}

.portal-welcome {
    font-size: 26px;
    font-family: var(--font-serif);
    margin-bottom: 12px;
}

.portal-description {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.portal-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.portal-detail span {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    display: block;
    margin-bottom: 6px;
}

.portal-detail strong {
    font-size: 18px;
    color: var(--text-primary);
}

.portal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.portal-placeholder h3 {
    font-size: 22px;
    margin-bottom: 16px;
    font-family: var(--font-serif);
}

.portal-checklist {
    list-style: none;
    margin-bottom: 20px;
}

.portal-checklist li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.portal-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.portal-note {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.portal-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portal-signout {
    border-radius: 30px;
}

@media (max-width: 992px) {
    .portal-grid {
        grid-template-columns: 1fr;
    }
}

/* Portal Page */
.portal-page {
    background: #fafafa;
    min-height: 100vh;
}

.portal-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
    padding: 12px 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.portal-header-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.portal-header-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.portal-header-logo .logo-image {
    height: 50px;
    width: auto;
}

.portal-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.portal-header-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: var(--font-weight-medium);
    padding: 10px 20px;
    border-radius: 12px;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    cursor: pointer;
}

.portal-header-back:hover {
    background: var(--bg-light);
    color: var(--accent-color);
}

.portal-header-back i {
    font-size: 18px;
}

.portal-header-signout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #dc2626;
    text-decoration: none;
    font-size: 15px;
    font-weight: var(--font-weight-semibold);
    padding: 10px 20px;
    border-radius: 12px;
    transition: all 0.2s ease;
    background: transparent;
    border: 1px solid rgba(220, 38, 38, 0.2);
    cursor: pointer;
    font-family: var(--font-family);
}

.portal-header-signout:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: #dc2626;
}

.portal-header-signout i {
    font-size: 18px;
}

.portal-main {
    padding-top: 82px;
}

.portal-page .user-portal {
    background: transparent;
    padding: 60px 20px;
}

@media (max-width: 768px) {
    .portal-header-logo .logo-image {
        height: 40px;
    }
    
    .portal-header-actions {
        gap: 8px;
    }
    
    .portal-header-back span,
    .portal-header-signout span {
        display: none;
    }
    
    .portal-header-back,
    .portal-header-signout {
        padding: 10px;
        border-radius: 50%;
        min-width: 40px;
        min-height: 40px;
        justify-content: center;
    }
    
    .portal-main {
        padding-top: 70px;
    }
}

/* Admin Dashboard Styles */
.admin-dashboard {
    display: flex;
    min-height: 100vh;
    background: #fafafa;
}

.admin-dashboard.hidden {
    display: none;
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    background: var(--bg-white);
    border-right: 1px solid #e5e7eb;
    padding: 20px 0;
    position: fixed;
    left: 0;
    top: 70px;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
}

.admin-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: var(--font-weight-medium);
    transition: all 0.2s ease;
}

.admin-nav-item i {
    font-size: 20px;
    flex-shrink: 0;
}

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

.admin-nav-item.active {
    background: rgba(95, 185, 176, 0.1);
    color: var(--accent-color);
    font-weight: var(--font-weight-semibold);
}

/* Unread badge in navigation */
.admin-nav-item .unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #ef4444;
    color: white;
    border-radius: 10px;
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    margin-left: auto;
    line-height: 1;
}

/* Main Content */
.admin-main-content {
    flex: 1;
    margin-left: 260px;
    padding: 20px 32px 32px;
    max-width: calc(100% - 260px);
}

/* Admin Sections */
.admin-section {
    display: block;
}

.admin-section.hidden {
    display: none;
}

.admin-section-header {
    margin-bottom: 24px;
}

.admin-section-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.admin-section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

.admin-card-full {
    width: 100%;
}

.admin-card-stats {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    width: 100%;
}

/* Mark all as read button */
.btn-mark-all-read {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-mark-all-read:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-mark-all-read i {
    font-size: 14px;
}

/* Prominent mark all as read button */
.btn-mark-all-read-prominent {
    padding: 10px 18px;
    background: #3b82f6;
    color: white;
    border: 2px solid #3b82f6;
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
    margin-left: auto;
    display: none; /* Hidden by default, shown only when there are unread items */
}

.btn-mark-all-read-prominent:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

.btn-mark-all-read-prominent i {
    font-size: 16px;
}

/* Admin Search Bar */
.admin-search-bar {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-light);
}

.admin-search-bar i {
    font-size: 20px;
    color: var(--text-light);
}

.admin-search-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-family);
    color: var(--text-primary);
    background: var(--bg-white);
    transition: all 0.2s ease;
}

.admin-search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(95, 185, 176, 0.1);
}

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

/* Loading Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Greeting */
.admin-greeting {
    margin-bottom: 32px;
    margin-top: -8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.admin-greeting-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.admin-quick-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-admin-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-admin-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 31, 58, 0.15);
}

.btn-admin-primary i {
    font-size: 16px;
}

.admin-greeting-title {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin: 0;
}

.admin-greeting-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    margin: 0;
}

.admin-greeting-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-light);
    margin-top: 4px;
}

.admin-greeting-meta strong {
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
}

/* KPI Cards */
.admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.admin-kpi-card {
    background: var(--bg-white);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.2s ease;
}

.admin-kpi-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.kpi-icon {
    width: 48px;
    height: 48px;
    background: rgba(26, 31, 58, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kpi-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.kpi-content {
    flex: 1;
}

.kpi-value {
    font-size: 32px;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 6px;
}

.kpi-label {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Content Grid */
.admin-content-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
}

.admin-content-area {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.admin-content-area .dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.admin-content-area .admin-card-tasks {
    width: 100%;
}

.admin-card-subtitle {
    margin-top: 4px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: var(--font-weight-normal);
}

.admin-card-header > div {
    flex: 1;
}

/* Admin Cards */
.admin-card {
    background: var(--bg-white);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.admin-card-header {
    padding: 18px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}

.admin-card-title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0;
}

.admin-card-footer {
    padding: 14px 20px;
    border-top: 1px solid #e5e7eb;
    background: #fafafa;
    text-align: center;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    transition: all 0.2s ease;
}

.view-all-link:hover {
    gap: 12px;
    color: var(--accent-color);
}

.view-all-link i {
    transition: transform 0.2s ease;
}

.view-all-link:hover i {
    transform: translateX(4px);
}

.btn-delete-item {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-delete-item:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.btn-delete-item:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-download-pdf {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
}

.btn-download-pdf:hover {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.btn-download-pdf:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-assign-user {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
}

.btn-assign-user:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.btn-assign-user:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.assigned-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.unassigned-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fde68a;
}

.admin-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    transition: color 0.2s ease;
}

.admin-link:hover {
    color: var(--accent-dark-variant);
}

/* Table */
.admin-table-container {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: #fafafa;
}

.admin-table th {
    padding: 12px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.admin-table td {
    padding: 14px 20px;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
    color: var(--text-primary);
}

.admin-table tbody tr {
    transition: background 0.2s ease;
}

.admin-table tbody tr:hover {
    background: #f9fafb;
}

/* Unread row styling - removed background highlighting, only dot indicator */
.admin-table tbody tr.unread-row {
    /* No background or border - just the dot indicator */
    background: transparent;
}

.admin-table tbody tr.unread-row:hover {
    /* No special hover styling */
    background: var(--bg-light);
}

/* Unread indicator dot */
.unread-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    margin-left: 8px;
    vertical-align: middle;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Pre-Qualifications Styles */
.prequal-row {
    transition: all 0.2s ease;
}

.prequal-row:hover {
    background: var(--bg-light) !important;
}

/* Loan Type Badge */
.loan-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    background: var(--bg-light);
    color: var(--text-primary);
    white-space: nowrap;
    border: 1px solid var(--border-color);
}

.loan-type-badge i {
    font-size: 14px;
    color: var(--primary);
}

/* LTV Badge */
.ltv-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    background: var(--bg-light);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.rate-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #86efac;
}

/* Status Pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    white-space: nowrap;
}

.status-pill.status-pending {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.status-pill.status-approved {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.status-pill.status-review {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.status-pill.status-rejected {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

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

.status-pill.status-closed {
    background: rgba(156, 163, 175, 0.1);
    color: #9ca3af;
}

/* Additional status classes for all status types */
.status-pill.status-borrower_info {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.status-pill.status-property_details {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.status-pill.status-strategy {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.status-pill.status-experience {
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
}

.status-pill.status-submitted {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-pill.status-docs_pending {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
}

.status-pill.status-underwriting {
    background: rgba(251, 146, 60, 0.1);
    color: #fb923c;
}

.status-pill.status-funded {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

/* Admin Status Dropdown */
.status-dropdown-admin {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-family);
    min-width: 180px;
    background: white;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='currentColor' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 32px;
}

.status-dropdown-admin:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(95, 185, 176, 0.1);
}

.status-dropdown-admin:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(95, 185, 176, 0.1);
}

/* Status dropdown background colors based on status class */
.status-dropdown-admin.status-draft {
    background-color: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.status-dropdown-admin.status-borrower_info {
    background-color: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.status-dropdown-admin.status-property_details {
    background-color: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.status-dropdown-admin.status-strategy {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.status-dropdown-admin.status-experience {
    background-color: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
}

.status-dropdown-admin.status-submitted {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-dropdown-admin.status-docs_pending {
    background-color: rgba(234, 179, 8, 0.1);
    color: #eab308;
}

.status-dropdown-admin.status-underwriting {
    background-color: rgba(251, 146, 60, 0.1);
    color: #fb923c;
}

.status-dropdown-admin.status-approved {
    background-color: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.status-dropdown-admin.status-rejected {
    background-color: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.status-dropdown-admin.status-funded {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.status-dropdown-admin.status-closed {
    background-color: rgba(156, 163, 175, 0.1);
    color: #9ca3af;
}

/* Status dropdown option colors */
.status-dropdown-admin option.status-option-draft {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.status-dropdown-admin option.status-option-borrower_info {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.status-dropdown-admin option.status-option-property_details {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.status-dropdown-admin option.status-option-strategy {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.status-dropdown-admin option.status-option-experience {
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
}

.status-dropdown-admin option.status-option-submitted {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-dropdown-admin option.status-option-docs_pending {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
}

.status-dropdown-admin option.status-option-underwriting {
    background: rgba(251, 146, 60, 0.1);
    color: #fb923c;
}

.status-dropdown-admin option.status-option-approved {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.status-dropdown-admin option.status-option-rejected {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.status-dropdown-admin option.status-option-funded {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.status-dropdown-admin option.status-option-closed {
    background: rgba(156, 163, 175, 0.1);
    color: #9ca3af;
}

/* Table Action Button */
.btn-table-action {
    padding: 6px 14px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-family);
    white-space: nowrap;
}

.btn-table-action:hover {
    background: var(--bg-light);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Tasks */
.admin-tasks-add {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
    align-items: center;
}

.task-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-family);
    color: var(--text-primary);
    background: var(--bg-white);
    transition: all 0.2s ease;
}

.task-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(95, 185, 176, 0.1);
}

.task-input::placeholder {
    color: var(--text-light);
}

.btn-add-task {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-add-task:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(95, 185, 176, 0.3);
}

.btn-add-task i {
    font-size: 20px;
}

.admin-tasks-list {
    padding: 8px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 60px;
}

.admin-tasks-list:empty::after {
    content: 'Nenhuma tarefa pendente';
    display: block;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    padding: 20px;
}

.admin-task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    opacity: 1;
    transform: translateX(0);
}

.admin-task-item:hover {
    background: var(--bg-light);
}

.admin-task-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.task-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.admin-task-item input[type="checkbox"]:checked + .task-checkbox {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.admin-task-item input[type="checkbox"]:checked + .task-checkbox::after {
    content: '✓';
    color: var(--primary-color);
    font-size: 14px;
    font-weight: bold;
}

.task-text {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
}

/* User Dashboard Styles */
.user-dashboard {
    display: flex;
    min-height: 100vh;
    background: #fafafa;
}

.user-dashboard.hidden {
    display: none;
}

/* User Sidebar */
.user-sidebar {
    width: 240px;
    background: var(--bg-white);
    border-right: 1px solid #e5e7eb;
    padding: 20px 0;
    position: fixed;
    left: 0;
    top: 70px;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
}

.user-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px;
}

.user-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    transition: all 0.2s ease;
}

.user-nav-item i {
    font-size: 20px;
    flex-shrink: 0;
}

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

.user-nav-item.active {
    background: rgba(95, 185, 176, 0.1);
    color: var(--accent-color);
    font-weight: var(--font-weight-semibold);
}

/* User Main Content */
.user-main-content {
    flex: 1;
    margin-left: 0;
    padding: 24px 32px;
    max-width: 100%;
    
}

/* User Greeting */
.user-greeting {
    margin-bottom: 32px;
    margin-top: -8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.user-greeting-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.user-greeting-title {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin: 0;
}

.user-greeting-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    margin: 0;
    max-width: 600px;
}

.user-profile-info {
    margin-top: 16px;
}

.profile-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
}

.profile-info-row span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.profile-info-row i {
    font-size: 16px;
    color: var(--accent-color);
}

.profile-info-row strong {
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
}

.user-quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-user-primary,
.btn-user-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: var(--font-weight-semibold);
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
}

.btn-user-primary {
    background: var(--accent-color);
    color: var(--primary-color);
}

.btn-user-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(95, 185, 176, 0.3);
}

.btn-user-secondary {
    background: var(--bg-white);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-user-secondary:hover {
    background: var(--bg-light);
    border-color: var(--text-primary);
}

.btn-user-primary i,
.btn-user-secondary i {
    font-size: 18px;
}

/* User KPI Cards - Hidden (replaced by stats bar) */
.user-kpi-grid {
    display: none;
}

/* User Stats Bar */
.user-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.user-stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.user-stat-value {
    font-size: 32px;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    line-height: 1;
}

.user-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
}

/* User Tab Navigation */
.user-tab-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
}

.user-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: -2px;
    font-family: var(--font-family);
}

.user-tab-btn:hover {
    color: var(--text-primary);
    background: var(--bg-light);
}

.user-tab-btn.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
    background: transparent;
}

.user-tab-btn i {
    font-size: 18px;
}

/* User Tab Content */
.user-tab-content {
    display: none;
}

.user-tab-content.active {
    display: block;
}

/* User Search and Filters */
.user-search-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.user-search-container {
    position: relative;
    flex: 1;
    min-width: 250px;
    display: flex;
    align-items: center;
}

.user-search-container i {
    position: absolute;
    left: 12px;
    color: var(--text-secondary);
    font-size: 18px;
    pointer-events: none;
}

.user-search-input {
    width: 100%;
    padding: 10px 40px 10px 40px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-family);
    color: var(--text-primary);
    background: var(--bg-white);
    transition: all 0.2s ease;
}

.user-search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(95, 185, 176, 0.1);
}

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

.user-search-clear {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.user-search-clear:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

.user-search-clear.hidden {
    display: none;
}

.user-filter-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.user-filter-select,
.user-filter-input {
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-family);
    color: var(--text-primary);
    background: var(--bg-white);
    transition: all 0.2s ease;
    min-width: 150px;
}

.user-filter-input {
    width: 180px;
}

.user-filter-select:focus,
.user-filter-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(95, 185, 176, 0.1);
}

.user-filter-select {
    cursor: pointer;
}

/* User Items Grid - Card Layout */
.user-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* User Item Card */
.user-item-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.user-item-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.user-item-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.user-item-card-title {
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.user-item-card-title i {
    font-size: 18px;
    color: var(--accent-color);
}

.user-item-card-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.user-item-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.user-item-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.user-item-card-label {
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
}

.user-item-card-value {
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
    text-align: right;
}

.user-item-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    gap: 8px;
}

.user-item-card-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.user-item-card-actions {
    display: flex;
    gap: 8px;
}

.btn-item-action {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-primary);
    border-radius: 6px;
    font-size: 12px;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-item-action:hover {
    background: var(--bg-light);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-item-action i {
    font-size: 14px;
}

/* User Empty State */
.user-empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
    background: var(--bg-white);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    min-height: 300px;
}

.user-empty-state i {
    font-size: 64px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.user-empty-state i.ri-loader-4-line {
    animation: spin 1s linear infinite;
    color: var(--accent-color);
}

.user-empty-state h3 {
    font-size: 20px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.user-empty-state p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 24px 0;
    max-width: 400px;
    line-height: 1.6;
}

.user-empty-state .btn-user-primary {
    margin-top: 8px;
    padding: 8px 16px;
    font-size: 13px;
}

.user-empty-state .btn-user-primary i {
    font-size: 14px;
}

.user-empty-state.hidden {
    display: none;
}

/* Status badge colors for cards */
.user-item-card-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.user-item-card-badge.status-draft {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.user-item-card-badge.status-borrower-info,
.user-item-card-badge.status-property-details,
.user-item-card-badge.status-strategy,
.user-item-card-badge.status-experience {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.user-item-card-badge.status-submitted {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.user-item-card-badge.status-docs-pending {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
}

.user-item-card-badge.status-underwriting {
    background: rgba(251, 146, 60, 0.1);
    color: #fb923c;
}

.user-item-card-badge.status-approved {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.user-item-card-badge.status-rejected {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.user-item-card-badge.status-funded {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.user-item-card-badge.status-closed {
    background: rgba(156, 163, 175, 0.1);
    color: #9ca3af;
}

/* User Content Area */
.user-content-area {
    display: block;
}

/* User Sections */
.user-section {
    display: none;
}

.user-section.active {
    display: block;
}

.user-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 20px;
}

.user-section-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0;
}

.user-section-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.user-card-full {
    width: 100%;
}

.user-card-stats {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
}

.btn-download-prequal {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-download-prequal:hover {
    background: var(--accent-color);
    transform: translateY(-1px);
}

.user-nav-item-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    transition: color 0.2s ease;
}

.user-nav-item-link:hover {
    color: var(--accent-dark);
}

/* User Cards */
.user-card {
    background: var(--bg-white);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dashboard-grid .user-card {
    min-height: 320px;
    max-height: 480px;
    display: flex;
    flex-direction: column;
}

.dashboard-grid .user-card-prequal,
.dashboard-grid .user-card-loans {
    overflow-y: auto;
}

.dashboard-grid .user-card-header {
    padding: 16px 20px;
    align-items: flex-start;
    gap: 12px;
}

.dashboard-grid .user-card-title {
    font-size: 18px;
}

.user-card-header {
    padding: 18px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}

.user-card-title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0;
}

.user-card-footer {
    padding: 14px 20px;
    border-top: 1px solid #e5e7eb;
    background: #fafafa;
    text-align: center;
}

/* Profile Section */
.profile-content {
    padding: 24px;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.profile-info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-label {
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-value {
    font-size: 16px;
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

.profile-security-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 20px 0;
}

.btn-reset-password {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reset-password:hover:not(:disabled) {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.btn-reset-password:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-reset-password i {
    font-size: 16px;
}

.user-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    transition: color 0.2s ease;
}

.user-link:hover {
    color: var(--accent-dark-variant);
}

/* Empty State */
.user-loans-empty {
    padding: 60px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.empty-icon {
    font-size: 64px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.empty-message {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

.btn-empty-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: var(--font-weight-semibold);
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.btn-empty-action:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(95, 185, 176, 0.3);
}

.btn-empty-action i {
    font-size: 18px;
}

/* User Table */
.user-table-container {
    overflow-x: auto;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-grid .user-table {
    font-size: 13px;
}

.dashboard-grid .user-table th,
.dashboard-grid .user-table td {
    padding: 10px 12px;
}

.user-table thead {
    background: #fafafa;
}

.user-table th {
    padding: 12px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.user-table td {
    padding: 14px 20px;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
    color: var(--text-primary);
}

.user-table tbody tr {
    transition: background 0.2s ease;
}

.user-table tbody tr:hover {
    background: #f9fafb;
}

.user-table tbody tr.loan-row {
    cursor: pointer;
}

.user-table tbody tr.loan-row:hover {
    background: rgba(59, 130, 246, 0.05);
}

/* Loan Progress Modal */
.loan-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.loan-modal.active {
    display: flex;
}

.loan-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.loan-modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    overflow-y: auto;
    padding: 40px;
    z-index: 1;
}

.loan-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
}

.loan-modal-close:hover {
    background: var(--accent-primary);
    color: white;
    transform: rotate(90deg);
}

.loan-progress-header {
    margin-bottom: 16px;
}

.btn-download-pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: var(--accent-color);
    color: white;
    box-shadow: 0 2px 8px rgba(95, 185, 176, 0.3);
    flex-shrink: 0;
}

.btn-download-pdf:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(95, 185, 176, 0.4);
}

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

.btn-download-pdf i {
    font-size: 18px;
}

.loan-progress-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.loan-progress-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

.loan-progress-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 32px 0;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.progress-step.completed {
    border-color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.02);
}

.progress-step.active {
    border-color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.05);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.progress-step.completed .step-circle {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.progress-step.active .step-circle {
    background: white;
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.step-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.step-status {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-secondary);
    opacity: 0;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.progress-step.completed .step-status {
    opacity: 1;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.loan-progress-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.progress-content-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.progress-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.progress-card-header h3 {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0;
}

.progress-card-body {
    padding: 24px;
}

.progress-info-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 24px 0;
}

.progress-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-progress-primary,
.btn-progress-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-progress-primary {
    background: var(--accent-color);
    color: white;
    font-weight: var(--font-weight-semibold);
    padding: 14px 28px;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(95, 185, 176, 0.3);
}

.btn-progress-primary:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(95, 185, 176, 0.4);
}

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

.btn-progress-secondary {
    background: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-progress-secondary:hover {
    background: var(--bg-white);
    border-color: var(--accent-primary);
}

.progress-info-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.info-card-title {
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0 0 16px 0;
}

.info-card-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-card-item:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.info-value {
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

/* Loan Submit Section */
.loan-terms-compact {
    margin-top: 20px;
    text-align: left;
}

.loan-terms-checkbox-label-compact {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    margin-bottom: 12px;
}

.loan-terms-checkbox-compact {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    cursor: pointer;
    accent-color: var(--accent-color);
    flex-shrink: 0;
}

.loan-terms-checkbox-text-compact {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
    font-weight: var(--font-weight-regular);
}

.loan-terms-checkbox-label-compact:hover .loan-terms-checkbox-text-compact {
    color: var(--accent-color);
}

.loan-terms-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: all 0.2s ease;
    margin-top: 8px;
    cursor: pointer;
}

.loan-terms-link:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

.terms-link-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.loan-terms-full {
    margin-top: 20px;
    padding: 24px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.terms-full-title {
    font-size: 20px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0 0 16px 0;
    font-family: var(--font-serif);
}

.terms-intro {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0 0 20px 0;
    line-height: 1.6;
    font-weight: var(--font-weight-medium);
}

.terms-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.term-item {
    padding: 16px;
    background: var(--bg-light);
    border-radius: 10px;
    border-left: 3px solid var(--accent-color);
}

.term-item strong {
    display: block;
    font-size: 15px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: 8px;
}

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

.loan-submit-section {
    margin-top: 32px;
    padding: 32px;
    background: linear-gradient(135deg, rgba(95, 185, 176, 0.05) 0%, rgba(95, 185, 176, 0.02) 100%);
    border: 2px solid var(--accent-color);
    border-radius: 16px;
    text-align: center;
}

.btn-submit-review {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(95, 185, 176, 0.3);
    font-family: var(--font-family);
}

.btn-submit-review:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(95, 185, 176, 0.4);
}

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

.btn-submit-review:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-submit-review[style*="background: var(--success-color)"] {
    background: var(--success-color) !important;
}

.btn-submit-review[style*="background: var(--text-light)"] {
    background: var(--text-light) !important;
}

.btn-submit-review i {
    font-size: 18px;
}

.loan-submit-note {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.loan-submit-status {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 2px solid var(--success-color);
    border-radius: 12px;
    margin-bottom: 12px;
}

.loan-submit-status-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    color: var(--success-color);
    margin: 0 0 12px 0;
}

.loan-submit-status-text i {
    font-size: 24px;
}

.loan-submit-status-text strong {
    color: var(--success-color);
}

@media (max-width: 768px) {
    .loan-terms-compact {
        margin-top: 16px;
    }
    
    .loan-terms-checkbox-text-compact {
        font-size: 13px;
    }
    
    .loan-terms-link {
        font-size: 13px;
    }
    
    .loan-terms-full {
        padding: 20px;
        margin-top: 16px;
    }
    
    .terms-full-title {
        font-size: 18px;
        margin-bottom: 14px;
    }
    
    .terms-intro {
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    .terms-list {
        gap: 14px;
    }
    
    .term-item {
        padding: 14px;
    }
    
    .term-item strong {
        font-size: 14px;
    }
    
    .term-item p {
        font-size: 13px;
    }
    
    .loan-submit-section {
        padding: 24px 20px;
    }
    
    .btn-submit-review {
        width: 100%;
        padding: 14px 24px;
    }
}

/* Terms Modal */
.terms-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.terms-modal.active {
    display: flex;
}

.terms-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 31, 58, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.terms-modal-content {
    position: relative;
    background: var(--bg-white);
    border-radius: 20px;
    width: 100%;
    max-width: 800px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 2001;
    animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.terms-modal-header {
    position: sticky;
    top: 0;
    background: var(--bg-white);
    padding: 32px 40px 24px;
    border-bottom: 2px solid var(--border-color);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terms-modal-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0;
}

.terms-modal-close {
    background: var(--bg-light);
    border: none;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    font-size: 24px;
    -webkit-tap-highlight-color: rgba(95, 185, 176, 0.2);
    touch-action: manipulation;
}

.terms-modal-close:hover {
    background: var(--border-color);
    transform: rotate(90deg);
}

.terms-modal-body {
    padding: 32px 40px 40px;
}

.terms-intro {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0 0 28px 0;
    line-height: 1.6;
    font-weight: var(--font-weight-medium);
}

.terms-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.term-item {
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
}

.term-item strong {
    display: block;
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: 10px;
}

.term-item p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 768px) {
    .terms-modal-content {
        max-width: 100%;
        border-radius: 16px;
    }
    
    .terms-modal-header {
        padding: 24px 20px 20px;
    }
    
    .terms-modal-title {
        font-size: 22px;
    }
    
    .terms-modal-close {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        font-size: 20px;
    }
    
    .terms-modal-body {
        padding: 24px 20px 32px;
    }
    
    .terms-intro {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .terms-list {
        gap: 20px;
    }
    
    .term-item {
        padding: 16px;
    }
    
    .term-item strong {
        font-size: 15px;
    }
    
    .term-item p {
        font-size: 14px;
    }
}

.loan-download-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    margin-top: 24px;
    margin-bottom: 16px;
}

.loan-download-notice i {
    font-size: 18px;
    color: #d97706;
    flex-shrink: 0;
    margin-top: 2px;
}

.loan-download-notice span {
    font-size: 13px;
    color: #92400e;
    line-height: 1.5;
}

/* Loan Review Status Modal */
.loan-review-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.loan-review-modal.active {
    display: flex;
}

.loan-review-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.loan-review-modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    overflow-y: auto;
    z-index: 1;
}

.loan-review-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
}

.loan-review-modal-close:hover {
    background: var(--accent-primary);
    color: white;
    transform: rotate(90deg);
}

.loan-review-modal-body {
    padding: 48px 40px 40px;
}

.loan-review-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0 0 16px 0;
}

.loan-review-intro {
    font-size: 18px;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
    line-height: 1.6;
}

.loan-review-subtitle {
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 24px 0 20px 0;
}

.loan-review-steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 32px;
}

.loan-review-step {
    padding: 24px;
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
}

.loan-review-step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.loan-review-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    flex-shrink: 0;
}

.loan-review-step-title {
    font-size: 20px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0;
    font-family: var(--font-serif);
}

.loan-review-step-description {
    font-size: 16px;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    line-height: 1.6;
}

.loan-review-step-subtitle {
    font-size: 15px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 16px 0 12px 0;
}

.loan-review-step-note {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 12px 0 0 0;
    line-height: 1.6;
    font-style: italic;
}

.loan-review-step-list {
    margin: 12px 0;
    padding-left: 24px;
    list-style-type: disc;
}

.loan-review-step-list li {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.loan-review-step-time {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 16px;
    background: rgba(95, 185, 176, 0.1);
    border-radius: 8px;
    font-size: 14px;
    color: var(--accent-color);
    font-weight: var(--font-weight-medium);
}

.loan-review-step-time i {
    font-size: 16px;
}

.loan-review-documents {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 16px 0;
}

.loan-review-doc-category {
    padding: 16px;
    background: var(--bg-white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.loan-review-doc-category strong {
    display: block;
    font-size: 15px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: 12px;
}

.loan-review-doc-category ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.loan-review-doc-category li {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    line-height: 1.5;
}

.loan-review-footer {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

.loan-review-footer-title {
    font-size: 20px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0 0 12px 0;
    font-family: var(--font-serif);
}

.loan-review-footer-text {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 8px 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .loan-review-modal-content {
        max-width: 100%;
        border-radius: 12px;
    }
    
    .loan-review-modal-body {
        padding: 32px 24px 32px;
    }
    
    .loan-review-title {
        font-size: 26px;
    }
    
    .loan-review-intro {
        font-size: 16px;
    }
    
    .loan-review-subtitle {
        font-size: 15px;
    }
    
    .loan-review-steps {
        gap: 24px;
        margin-top: 24px;
    }
    
    .loan-review-step {
        padding: 20px;
    }
    
    .loan-review-step-number {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .loan-review-step-title {
        font-size: 18px;
    }
    
    .loan-review-step-description {
        font-size: 15px;
    }
    
    .loan-review-documents {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .loan-review-footer {
        margin-top: 32px;
        padding-top: 24px;
    }
}

.info-card-actions {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.info-card-actions .btn-download-pdf {
    flex: 1;
    min-width: 140px;
    justify-content: center;
}

.btn-delete-loan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    min-width: 140px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #dc2626;
    background: white;
    color: #dc2626;
}

.btn-delete-loan:hover:not(:disabled) {
    background: #dc2626;
    color: white;
}

.btn-delete-loan:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-delete-loan i {
    font-size: 16px;
}

/* Loan Form Container and Accordion Styles */
.loan-form-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.loan-accordion-section {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.loan-accordion-section:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.loan-section-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.loan-accordion-header:hover {
    background: var(--bg-light);
}

.loan-section-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.loan-section-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.loan-accordion-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.loan-accordion-toggle:hover {
    color: var(--text-primary);
}

.loan-accordion-toggle i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.loan-accordion-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.loan-section-icon {
    font-size: 20px;
    color: var(--accent-color);
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.loan-section-header:hover .loan-section-icon {
    color: var(--accent-light);
}

.loan-section-header h3 {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0;
}

.loan-section-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.loan-section-progress progress {
    width: 100px;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.loan-section-progress progress::-webkit-progress-bar {
    background: var(--bg-light);
    border-radius: 4px;
}

.loan-section-progress progress::-webkit-progress-value {
    background: var(--accent-color);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.loan-section-progress progress::-moz-progress-bar {
    background: var(--accent-color);
    border-radius: 4px;
}

.loan-section-progress span {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
    white-space: nowrap;
}

.loan-section-body {
    padding: 16px;
    display: none;
    animation: slideDown 0.3s ease;
}

.loan-accordion-body {
    display: block;
}

.loan-accordion-body[style*="display: none"] {
    display: none !important;
}

.loan-accordion-body[style*="display: block"] {
    display: block !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loan-section-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid var(--border-color);
    justify-content: flex-end;
}

.loan-section-actions .btn-progress-primary {
    margin-left: 0;
    min-width: 160px;
}

/* Table Actions */
.table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-table-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #dc2626;
    background: white;
    color: #dc2626;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
}

.btn-table-delete:hover:not(:disabled) {
    background: #dc2626;
    color: white;
}

.btn-table-delete:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

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

/* Responsive User Dashboard */
@media (max-width: 1200px) {
    .user-kpi-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .loan-progress-content {
        gap: 16px;
        margin-top: 20px;
    }
    
    .user-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .user-sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .user-main-content {
        margin-left: 0;
        max-width: 100%;
    }
    
    .user-greeting-title {
        font-size: 28px;
    }
    
    .user-kpi-grid {
        grid-template-columns: 1fr;
    }
    
    .user-greeting {
        flex-direction: column;
        align-items: stretch;
    }
    
    .user-quick-actions {
        width: 100%;
    }
    
    .btn-user-primary,
    .btn-user-secondary {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .user-main-content {
        padding: 20px 16px;
    }
    
    .user-greeting-title {
        font-size: 24px;
    }
    
    .user-table-container {
        overflow-x: scroll;
    }
    
    .user-table {
        min-width: 700px;
    }
    
    .user-quick-actions {
        flex-direction: column;
    }
    
    .btn-user-primary,
    .btn-user-secondary {
        width: 100%;
    }
    
    .profile-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .loan-form-container {
        grid-template-columns: 1fr;
    }
    
    .loan-progress-title {
        font-size: 24px;
    }
    
    .progress-step {
        padding: 16px;
    }
    
    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .step-title {
        font-size: 15px;
    }
    
    .step-description {
        font-size: 13px;
    }
    
    .loan-modal {
        padding: 10px;
    }
    
    .loan-modal-content {
        padding: 24px 20px;
        max-height: 95vh;
    }
    
    .loan-modal-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

/* Responsive Admin Dashboard */
@media (max-width: 1200px) {
    .admin-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-content-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-content-area .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .admin-sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .admin-main-content {
        margin-left: 0;
        max-width: 100%;
    }
    
    .admin-greeting-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .admin-kpi-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-main-content {
        padding: 20px 16px;
    }
    
    .admin-greeting-title {
        font-size: 24px;
    }
    
    .admin-greeting-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    
    .admin-table-container {
        overflow-x: scroll;
    }
    
    .admin-table {
        min-width: 800px;
    }
}

/* Check Your Rate Page Section */
.check-rate-section {
    padding: 120px 20px 80px;
    min-height: calc(100vh - 200px);
    background: var(--bg-light);
}

.check-rate-header {
    text-align: center;
    margin-bottom: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.check-rate-title {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin: 16px 0 16px 0;
    line-height: 1.2;
}

.check-rate-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.check-rate-section .prequal-progress-bar {
    max-width: 800px;
    margin: 0 auto 48px;
}

.check-rate-section .prequal-step-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.check-rate-section .prequal-step-content.active {
    display: flex;
}

@media (max-width: 768px) {
    .check-rate-section {
        padding: 100px 20px 60px;
    }
    
    .check-rate-title {
        font-size: 36px;
    }
    
    .check-rate-subtitle {
        font-size: 16px;
    }
    
    .check-rate-section .prequal-step-content {
        padding: 24px;
    }
}

/* Pre-Qualification Modal */
.prequalification-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.prequalification-modal.active {
    display: flex;
}

.prequalification-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 31, 58, 0.90);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.prequalification-modal-content {
    position: relative;
    background: var(--bg-white);
    border-radius: 24px;
    width: 100%;
    max-width: 1200px;
    padding: 32px 40px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
    z-index: 3001;
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 95vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.prequalification-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--bg-light);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    font-size: 24px;
    z-index: 3002;
}

.prequalification-modal-close:hover {
    background: var(--border-color);
    transform: rotate(90deg);
}

/* Progress Bar */
.prequal-progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 28px;
    position: relative;
    flex-shrink: 0;
}

.prequal-progress-bar::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.prequal-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    flex: 1;
}

.prequal-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.prequal-progress-step.active .prequal-step-number {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: scale(1.1);
}

.prequal-progress-step.completed .prequal-step-number {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.prequal-progress-step.completed .prequal-step-number::after {
    content: '✓';
    font-size: 18px;
}

.prequal-step-label {
    font-size: 11px;
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    text-align: center;
    max-width: 100px;
    line-height: 1.2;
}

.prequal-progress-step.active .prequal-step-label {
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
}

/* Step Content */
.prequal-step-content {
    animation: fadeIn 0.3s ease;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    min-height: 0;
}

.prequal-step-title {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.prequal-step-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 20px 0;
    line-height: 1.4;
}

/* Form Styles */
.prequal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    min-height: 0;
}

/* Two-column layout for Step 1 */
.prequal-form[id="prequalStep1Form"] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 14px;
}

.prequal-form[id="prequalStep1Form"] .prequal-form-group:first-child {
    grid-column: 1 / -1;
}

.prequal-form[id="prequalStep1Form"] .prequal-form-group:nth-child(5) {
    grid-column: 1 / -1;
}

.prequal-form[id="prequalStep1Form"] .prequal-form-actions {
    grid-column: 1 / -1;
    margin-top: 0;
}

.prequal-form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
    margin-bottom: 12px;
}

.loan-section-body .prequal-form-group {
    margin-bottom: 16px;
}

.loan-section-body .prequal-form-group:last-child {
    margin-bottom: 0;
}

/* Compact layout for loan sections - fields stack vertically */

/* Group related address fields together visually */
.loan-form-address-group {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px;
}

@media (max-width: 768px) {
    .loan-form-address-group {
        grid-template-columns: 1fr;
    }
}

.prequal-form-label {
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    line-height: 1.3;
}

.prequal-form-input {
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    font-family: var(--font-family);
    color: var(--text-primary);
    background: var(--bg-white);
    transition: all 0.2s ease;
    line-height: 1.4;
}

.loan-section-body textarea.prequal-form-input {
    padding: 10px 14px;
    font-size: 15px;
    resize: vertical;
}

.prequal-form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(95, 185, 176, 0.1);
}

.prequal-form-input::placeholder {
    color: var(--text-light);
}

.prequal-radio-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.prequal-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 160px;
    font-size: 14px;
}

.prequal-radio-label:hover {
    border-color: var(--accent-color);
    background: rgba(95, 185, 176, 0.05);
}

.prequal-radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.prequal-radio-label input[type="radio"]:checked {
    accent-color: var(--accent-color);
}

.prequal-radio-label:has(input[type="radio"]:checked) {
    border-color: var(--accent-color);
    background: rgba(95, 185, 176, 0.1);
}

/* Loan Type Cards */
.prequal-loan-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.prequal-loan-type-card {
    position: relative;
    cursor: pointer;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.prequal-loan-type-card:hover {
    border-color: var(--accent-color);
    background: rgba(95, 185, 176, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.prequal-loan-type-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.prequal-loan-type-card:has(input[type="radio"]:checked) {
    border-color: var(--accent-color);
    background: rgba(95, 185, 176, 0.1);
    box-shadow: 0 0 0 3px rgba(95, 185, 176, 0.15);
}

.prequal-loan-type-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prequal-loan-type-content i {
    font-size: 32px;
    color: var(--accent-color);
}

.prequal-loan-type-content h3 {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.prequal-loan-type-content p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

/* Buttons */
.prequal-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-shrink: 0;
}

.prequal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    width: 100%;
    flex: 1;
    border-radius: 10px;
    font-size: 15px;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: var(--font-family);
}

.prequal-btn-primary {
    background: var(--accent-color);
    color: var(--primary-color);
    flex: 1;
}

.prequal-btn-primary:hover:not(:disabled) {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(95, 185, 176, 0.3);
}

/* Download button - green/accent color */
.prequal-btn-download {
    background: var(--accent-color);
    color: var(--primary-color);
}

.prequal-btn-download:hover:not(:disabled) {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(95, 185, 176, 0.3);
}

/* Start Loan Application button - dark color */
.prequal-btn-loan {
    background: var(--primary-dark);
    color: var(--bg-white);
}

.prequal-btn-loan:hover:not(:disabled) {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(31, 41, 55, 0.3);
}

.prequal-btn-secondary {
    background: var(--bg-light);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.prequal-btn-secondary:hover:not(:disabled) {
    background: var(--bg-white);
    border-color: var(--accent-color);
}

.prequal-btn-text {
    background: transparent;
    color: var(--text-secondary);
    padding: 10px 20px;
    margin: 12px auto 0;
    display: flex;
    font-size: 14px;
}

.prequal-btn-text:hover {
    color: var(--accent-color);
    background: rgba(95, 185, 176, 0.05);
}

.prequal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Results */
.prequal-results-header {
    text-align: center;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.prequal-success-icon {
    font-size: 48px;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.prequal-results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.prequal-result-card {
    background: var(--bg-light);
    padding: 16px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.prequal-result-label {
    font-size: 11px;
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    line-height: 1.3;
}

.prequal-result-value {
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    line-height: 1.2;
}

.prequal-next-steps {
    background: rgba(95, 185, 176, 0.05);
    border-left: 4px solid var(--accent-color);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.prequal-next-steps h3 {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.prequal-next-steps ul {
    margin: 0;
    padding-left: 20px;
}

.prequal-next-steps li {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 4px;
}

.prequal-disclaimer {
    background: var(--bg-light);
    padding: 14px;
    border-radius: 8px;
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.prequal-disclaimer strong {
    color: var(--text-primary);
}

/* Conditional fields optimization */
.prequal-conditional-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 14px;
}

.prequal-conditional-fields .prequal-form-group {
    margin: 0;
}

/* Step 3 form optimization - make address field full width, conditional fields in grid */
.prequal-form[id="prequalStep3Form"] .prequal-form-group:first-child {
    grid-column: 1 / -1;
}

.prequal-form[id="prequalStep3Form"] .prequal-conditional-fields {
    grid-column: 1 / -1;
}

/* Responsive */
@media (max-width: 768px) {
    .prequalification-modal-content {
        padding: 28px 24px;
        border-radius: 16px;
        max-height: 95vh;
    }
    
    .prequal-progress-bar {
        margin-bottom: 24px;
    }
    
    .prequal-step-label {
        font-size: 11px;
        max-width: 80px;
    }
    
    .prequal-step-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .prequal-step-title {
        font-size: 22px;
    }
    
    .prequal-step-subtitle {
        font-size: 13px;
        margin-bottom: 16px;
    }
    
    .prequal-form[id="prequalStep1Form"] {
        grid-template-columns: 1fr;
    }
    
    .prequal-conditional-fields {
        grid-template-columns: 1fr;
    }
    
    .prequal-loan-types {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .prequal-results-grid {
        grid-template-columns: 1fr;
    }
    
    .prequal-form-actions {
        flex-direction: column;
    }
    
    .prequal-btn-primary,
    .prequal-btn-secondary {
        width: 100%;
    }
    
    .prequal-radio-group {
        flex-direction: column;
    }
    
    .prequal-radio-label {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .prequalification-modal {
        padding: 10px;
    }
    
    .prequalification-modal-content {
        padding: 24px 20px;
        max-height: 98vh;
    }
    
    .prequal-step-label {
        display: none;
    }
    
    .prequal-step-title {
        font-size: 22px;
    }
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 0;
}

@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Pre-Qualification List in Dashboard */
.prequal-list-dashboard {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-card-prequal {
    margin-top: 0;
}

.user-card-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.5;
    font-weight: normal;
}

.user-card-header > div {
    flex: 1;
}

.btn-header-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-family);
}

.btn-header-action:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(95, 185, 176, 0.3);
}

.btn-header-action i {
    font-size: 16px;
}

/* Refresh Button */
.btn-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-refresh:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: rotate(180deg);
}

.btn-refresh:active {
    transform: rotate(360deg);
}

.btn-refresh.refreshing {
    animation: spin 1s linear infinite;
}

.btn-refresh i {
    font-size: 18px;
}

/* User Card Header Actions Container */
.user-card-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Compact Empty States for Dashboard Grid */
.user-loans-empty-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    text-align: center;
}

.empty-icon-small {
    font-size: 48px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.empty-message-small {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0 0 16px 0;
}

.btn-empty-action-compact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-family);
}

.btn-empty-action-compact:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(95, 185, 176, 0.3);
}

.btn-empty-action-compact i {
    font-size: 16px;
}

.prequal-item {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.prequal-list-dashboard .prequal-item {
    padding: 12px 16px;
}

.prequal-list-dashboard .prequal-item-header {
    margin-bottom: 10px;
}

.prequal-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.prequal-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
}

.prequal-item-title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.prequal-list-dashboard .prequal-item-title {
    font-size: 16px;
}

.prequal-list-dashboard .prequal-item-actions {
    padding-top: 10px;
    gap: 8px;
}

.prequal-item-date {
    font-size: 13px;
    color: var(--text-secondary);
}

.prequal-list-dashboard .prequal-item-date {
    font-size: 12px;
}

.prequal-item-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(95, 185, 176, 0.1);
    color: var(--accent-color);
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    white-space: nowrap;
}

.prequal-list-dashboard .prequal-item-badge {
    padding: 4px 10px;
    font-size: 11px;
}

.prequal-item-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.prequal-list-dashboard .prequal-item-details {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.prequal-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.prequal-detail-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prequal-detail-value {
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.prequal-list-dashboard .prequal-detail-label {
    font-size: 11px;
}

.prequal-list-dashboard .prequal-detail-value {
    font-size: 14px;
}

.prequal-item-actions {
    display: flex;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.btn-prequal-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: var(--font-family);
}

.prequal-list-dashboard .btn-prequal-action {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-prequal-download {
    background: var(--accent-color);
    color: var(--primary-color);
}

.btn-prequal-download:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(95, 185, 176, 0.3);
}

.btn-prequal-delete {
    background: transparent;
    color: #dc2626;
    border: 1px solid #dc2626;
}

.btn-prequal-delete:hover {
    background: #dc2626;
    color: white;
}

.prequal-more-indicator {
    padding: 8px 0;
    text-align: center;
    border-top: 1px dashed var(--border-color);
    margin-top: 4px;
}

.prequal-more-indicator p {
    margin: 0;
    font-size: 13px;
    color: var(--text-light);
}

/* Prequal Card Compact */
.prequal-card-compact {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
}

.prequal-card-compact:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.prequal-card-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.prequal-card-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.prequal-id {
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-secondary);
}

.prequal-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.prequal-card-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.prequal-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.prequal-card-details .prequal-detail-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prequal-card-details .prequal-detail-value {
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.prequal-card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.prequal-card-action {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all 0.2s ease;
}

.prequal-card-action:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

.prequal-card-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.prequal-card-delete:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

.prequal-card-delete:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .prequal-item-details {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .prequal-item-actions {
        flex-direction: column;
    }
    
    .btn-prequal-action {
        width: 100%;
        justify-content: center;
    }
}

/* Admin User Selection in Modals */
.prequal-admin-section {
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.05) 0%, rgba(95, 185, 176, 0.05) 100%);
    border: 2px dashed var(--accent-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.prequal-admin-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    font-weight: var(--font-weight-semibold);
    font-size: 14px;
    margin-bottom: 16px;
}

.prequal-admin-header i {
    font-size: 18px;
}

.prequal-help-text {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    font-weight: var(--font-weight-regular);
    margin-top: 4px;
}

.user-search-container {
    position: relative;
}

.user-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 280px;
    overflow-y: auto;
    z-index: 100;
}

.user-search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    color: var(--text-light);
    font-size: 14px;
}

.user-search-loading i {
    font-size: 18px;
    animation: spin 1s linear infinite;
}

.user-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.user-search-item:last-child {
    border-bottom: none;
}

.user-search-item:hover {
    background: var(--bg-light);
}

.user-search-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: var(--font-weight-semibold);
    font-size: 14px;
}

.user-search-item-info {
    flex: 1;
    min-width: 0;
}

.user-search-item-name {
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-search-item-email {
    font-size: 12px;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-search-empty {
    padding: 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

.selected-user-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 12px;
}

.selected-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.selected-user-info i {
    font-size: 20px;
    color: var(--accent-color);
}

.selected-user-name {
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    font-size: 14px;
}

.selected-user-email {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

.btn-remove-user {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-remove-user:hover {
    background: #fee;
    border-color: #ef4444;
    color: #ef4444;
}

@media (max-width: 768px) {
    .admin-quick-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-admin-primary {
        width: 100%;
        justify-content: center;
    }
    
    .admin-greeting {
        flex-direction: column;
    }
}

/* ================================
   ZYONAI STYLES
   ================================ */

/* ZyonAI Nav Link - Eye-catching styling */
.nav-link-zyonai {
    position: relative;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #1a1a1a !important;
    font-weight: 600;
    padding: 10px 20px !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(95, 185, 176, 0.3);
}

.nav-link-zyonai:hover {
    background: linear-gradient(135deg, #f4d03f 0%, #d4af37 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(95, 185, 176, 0.5);
}

.nav-link-zyonai i {
    animation: sparkle 2s infinite;
}

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

.zyonai-badge {
    background: #ef4444;
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-left: 4px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* ZyonAI Homepage Section */
.zyonai-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    position: relative;
    overflow: hidden;
}

.zyonai-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(95, 185, 176, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-50px, 50px); }
}

.zyonai-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.zyonai-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    border-radius: 24px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(95, 185, 176, 0.3);
}

.zyonai-icon {
    font-size: 48px;
    color: #1a1a1a;
    animation: sparkle 2s infinite;
}

.zyonai-section .section-title {
    color: white;
    margin-bottom: 20px;
}

.zyonai-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto 40px;
}

.zyonai-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 50px auto;
    max-width: 900px;
}

.zyonai-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    transition: all 0.3s ease;
}

.zyonai-feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(95, 185, 176, 0.3);
    transform: translateY(-2px);
}

.zyonai-feature-item i {
    font-size: 24px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.btn-zyonai {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

/* ZyonAI Page Layout */
.zyonai-page {
    background: #f8f9fa;
    min-height: 100vh;
    min-height: 100dvh; /* Use dynamic viewport height */
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Back to Home Link */
/* Top Navigation */
.zyonai-top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    padding: 0 24px;
    z-index: 1000;
}

.back-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-link-btn:hover {
    background: #f9fafb;
    border-color: #d4af37;
    color: #d4af37;
}

.back-link-btn i {
    font-size: 18px;
}

.zyonai-container {
    display: flex;
    height: calc(100vh - 60px);
    height: calc(100dvh - 60px); /* Use dynamic viewport height for mobile */
    margin-top: 60px;
    position: relative;
    overflow: hidden;
    touch-action: pan-y;
}

.zyonai-sidebar-header {
    padding: 20px;
    padding-top: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.btn-new-chat {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-new-chat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(95, 185, 176, 0.3);
}

.btn-new-chat i {
    font-size: 18px;
}

.zyonai-sidebar-section {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.zyonai-sidebar-title {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.zyonai-chat-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #f9fafb;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 8px;
}

.chat-list-item:hover {
    background: #f3f4f6;
    border-color: #d4af37;
}

.chat-list-item.active {
    background: rgba(95, 185, 176, 0.1);
    border-color: #d4af37;
}

.chat-list-item-content {
    flex: 1;
    min-width: 0;
}

.chat-list-item-title {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-list-item-preview {
    font-size: 12px;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-list-item-delete {
    opacity: 0;
    padding: 4px;
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.chat-list-item:hover .chat-list-item-delete {
    opacity: 1;
}

.chat-list-item-delete:hover {
    background: rgba(239, 68, 68, 0.1);
}

.zyonai-sidebar-footer {
    display: none;
}

.zyonai-settings-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.zyonai-settings-btn:hover {
    background: #f9fafb;
    border-color: #d4af37;
    color: #d4af37;
}

/* Main Chat Area */
.zyonai-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    position: relative;
    min-height: 0;
    overflow: hidden;
    touch-action: pan-y;
}

/* Welcome Screen */
.zyonai-welcome {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.zyonai-welcome-content {
    text-align: center;
    max-width: 800px;
}

.zyonai-logo-big {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    border-radius: 24px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(95, 185, 176, 0.3);
    overflow: visible;
    padding: 10px;
    box-sizing: border-box;
}

.zyonai-logo-big i {
    font-size: 60px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
    flex-shrink: 0;
}

.zyonai-welcome-title {
    font-size: 42px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
}

.zyonai-welcome-subtitle {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 60px;
}

.zyonai-welcome-suggestions h3 {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 24px;
}

.suggestion-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.suggestion-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion-card:hover {
    background: white;
    border-color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.suggestion-card i {
    font-size: 24px;
    color: #d4af37;
    flex-shrink: 0;
}

.suggestion-card span {
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
}

/* Welcome Input Area */
.zyonai-welcome-input {
    margin-top: 48px;
    max-width: 700px;
    width: 100%;
}

.welcome-input-label {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
    text-align: center;
}

.zyonai-welcome-input .zyonai-input-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

/* Chat Area */
.zyonai-chat-area {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

.zyonai-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: white;
}

.zyonai-chat-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.zyonai-chat-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.zyonai-chat-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #10b981;
    padding: 4px 12px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 12px;
}

.zyonai-chat-status i {
    font-size: 12px;
}

.zyonai-chat-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.zyonai-icon-btn {
    padding: 8px;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zyonai-icon-btn:hover {
    background: #f9fafb;
    border-color: #d4af37;
    color: #d4af37;
}

.zyonai-icon-btn i {
    font-size: 18px;
}

.mobile-sidebar-toggle {
    display: none;
}

/* Messages Container */
.zyonai-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.message {
    display: flex;
    gap: 12px;
    max-width: 80%;
    animation: messageSlideIn 0.3s ease;
}

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

.message.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.message.user-message .message-avatar {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.message.ai-message .message-avatar {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #1a1a1a;
}

.message-content {
    flex: 1;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.6;
    word-wrap: break-word;
}

.message-bubble ul {
    margin: 8px 0;
    padding-left: 20px;
    list-style: none;
}

.message-bubble li {
    margin: 6px 0;
    position: relative;
    padding-left: 8px;
}

.message-bubble li::before {
    content: "•";
    position: absolute;
    left: -12px;
    font-weight: bold;
    color: #d4af37;
}

.message-bubble strong {
    font-weight: 600;
    color: #1f2937;
}

.message-bubble em {
    font-style: italic;
}

.message.user-message .message-bubble {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.message.user-message .message-bubble strong {
    color: white;
}

.message.user-message .message-bubble li::before {
    color: rgba(255, 255, 255, 0.8);
}

.message.ai-message .message-bubble {
    background: #f3f4f6;
    color: #1f2937;
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
    padding: 0 4px;
}

.message.user-message .message-time {
    text-align: right;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #9ca3af;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite;
}

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

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

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
}

/* Input Area */
.zyonai-input-area {
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
    background: white;
}

.zyonai-input-form {
    width: 100%;
}

.zyonai-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.zyonai-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px; /* Minimum 16px to prevent iOS auto-zoom */
    font-family: inherit;
    resize: none;
    min-height: 48px;
    max-height: 150px;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
}

.zyonai-input:focus {
    outline: none;
    border-color: #d4af37;
}

.zyonai-send-btn {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #1a1a1a;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.zyonai-send-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(95, 185, 176, 0.3);
}

.zyonai-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.zyonai-send-btn i {
    font-size: 20px;
}

.zyonai-input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding: 0 4px;
}

.zyonai-char-count {
    font-size: 12px;
    color: #9ca3af;
}

.zyonai-disclaimer {
    font-size: 11px;
    color: #9ca3af;
}

/* Mobile Sidebar Button */
.mobile-sidebar-btn {
    display: none;
}

/* Settings Modal */
.zyonai-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.zyonai-modal.active {
    display: block;
}

.zyonai-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.zyonai-modal-content {
    position: relative;
    max-width: 600px;
    margin: 50px auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
}

.zyonai-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.zyonai-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.zyonai-modal-title i {
    color: #d4af37;
}

.zyonai-modal-close {
    padding: 8px;
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.zyonai-modal-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.zyonai-modal-close i {
    font-size: 24px;
}

.zyonai-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.zyonai-settings-section {
    margin-bottom: 32px;
}

.zyonai-settings-section:last-child {
    margin-bottom: 0;
}

.zyonai-settings-heading {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.zyonai-form-group {
    margin-bottom: 20px;
}

.zyonai-form-group:last-child {
    margin-bottom: 0;
}

.zyonai-form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.zyonai-form-hint {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

.zyonai-form-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.zyonai-form-input:focus {
    outline: none;
    border-color: #d4af37;
}

.zyonai-input-with-icon {
    position: relative;
}

.zyonai-input-with-icon .zyonai-form-input {
    padding-right: 48px;
}

.zyonai-input-icon-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px;
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.zyonai-input-icon-btn:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.zyonai-form-help {
    font-size: 13px;
    color: #6b7280;
    margin-top: 8px;
}

.zyonai-form-help a {
    color: #d4af37;
    text-decoration: none;
}

.zyonai-form-help a:hover {
    text-decoration: underline;
}

.btn-danger-outline,
.btn-secondary-outline {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
}

.btn-danger-outline {
    border-color: #ef4444;
    color: #ef4444;
}

.btn-danger-outline:hover {
    background: #ef4444;
    color: white;
}

.btn-secondary-outline {
    border-color: #e5e7eb;
    color: #6b7280;
}

.btn-secondary-outline:hover {
    background: #f3f4f6;
    border-color: #d4af37;
    color: #d4af37;
}

.zyonai-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
}

.btn-secondary-sm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-secondary-sm:hover {
    background: #f9fafb;
    border-color: #d4af37;
    color: #d4af37;
}

/* Responsive Design */

/* Desktop - Large screens (1440px and above) */
@media (min-width: 1440px) {
    .zyonai-welcome-content {
        max-width: 900px;
    }
    
    .zyonai-welcome-title {
        font-size: 48px;
    }
    
    .zyonai-welcome-subtitle {
        font-size: 20px;
        margin-bottom: 70px;
    }
    
    .zyonai-logo-big {
        width: 140px;
        height: 140px;
        margin-bottom: 40px;
        padding: 10px;
    }
    
    .zyonai-logo-big i {
        font-size: 70px;
    }
    
    .suggestion-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .suggestion-card {
        padding: 24px;
    }
    
    .suggestion-card i {
        font-size: 26px;
    }
    
    .suggestion-card span {
        font-size: 15px;
    }
    
    .zyonai-welcome-input {
        max-width: 800px;
        margin-top: 60px;
    }
    
    .zyonai-messages {
        padding: 32px;
        max-width: 1200px;
        margin: 0 auto;
        width: 100%;
    }
    
    .message {
        max-width: 70%;
    }
    
    .message-bubble {
        font-size: 16px;
        padding: 14px 18px;
    }
    
    .zyonai-input-area {
        padding: 24px 32px;
        max-width: 1200px;
        margin: 0 auto;
        width: 100%;
    }
    
    .zyonai-chat-header {
        padding: 24px 32px;
        max-width: 1200px;
        margin: 0 auto;
        width: 100%;
    }
    
    .zyonai-input {
        font-size: 16px;
        padding: 14px 18px;
    }
    
    .zyonai-send-btn {
        width: 52px;
        height: 52px;
    }
}

/* Desktop - Medium-large screens (1200px to 1439px) */
@media (min-width: 1200px) and (max-width: 1439px) {
    .zyonai-welcome-content {
        max-width: 850px;
    }
    
    .zyonai-welcome-title {
        font-size: 44px;
    }
    
    .zyonai-welcome-subtitle {
        font-size: 19px;
        margin-bottom: 65px;
    }
    
    .zyonai-logo-big {
        width: 130px;
        height: 130px;
        padding: 8px;
    }
    
    .zyonai-logo-big i {
        font-size: 66px;
    }
    
    .zyonai-messages {
        padding: 28px;
        max-width: 1100px;
        margin: 0 auto;
        width: 100%;
    }
    
    .message {
        max-width: 75%;
    }
    
    .message-bubble {
        font-size: 15px;
        padding: 13px 17px;
    }
    
    .zyonai-input-area {
        padding: 20px 28px;
        max-width: 1100px;
        margin: 0 auto;
        width: 100%;
    }
    
    .zyonai-chat-header {
        padding: 20px 28px;
        max-width: 1100px;
        margin: 0 auto;
        width: 100%;
    }
    
    .zyonai-input {
        font-size: 16px;
    }
}

/* Desktop - Standard screens (1024px to 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
    .zyonai-welcome-content {
        max-width: 800px;
    }
    
    .zyonai-welcome-title {
        font-size: 40px;
    }
    
    .zyonai-welcome-subtitle {
        font-size: 18px;
        margin-bottom: 60px;
    }
    
    .zyonai-messages {
        padding: 24px;
        max-width: 1000px;
        margin: 0 auto;
        width: 100%;
    }
    
    .message {
        max-width: 75%;
    }
    
    .message-bubble {
        font-size: 15px;
    }
    
    .zyonai-input-area {
        padding: 20px 24px;
        max-width: 1000px;
        margin: 0 auto;
        width: 100%;
    }
    
    .zyonai-chat-header {
        padding: 20px 24px;
        max-width: 1000px;
        margin: 0 auto;
        width: 100%;
    }
}

/* Ultra-wide screens (1920px and above) */
@media (min-width: 1920px) {
    .zyonai-welcome-content {
        max-width: 1000px;
    }
    
    .zyonai-welcome-title {
        font-size: 52px;
    }
    
    .zyonai-welcome-subtitle {
        font-size: 22px;
    }
    
    .zyonai-logo-big {
        width: 160px;
        height: 160px;
        padding: 12px;
    }
    
    .zyonai-logo-big i {
        font-size: 78px;
    }
    
    .zyonai-messages {
        max-width: 1400px;
    }
    
    .zyonai-input-area {
        max-width: 1400px;
    }
    
    .zyonai-chat-header {
        max-width: 1400px;
    }
    
    .message {
        max-width: 65%;
    }
}

/* Desktop hover improvements */
@media (min-width: 1024px) {
    .suggestion-card {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .suggestion-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(95, 185, 176, 0.15);
    }
    
    .zyonai-send-btn {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .zyonai-send-btn:hover:not(:disabled) {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 6px 20px rgba(95, 185, 176, 0.4);
    }
    
    .zyonai-icon-btn {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .zyonai-icon-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .message-bubble {
        transition: box-shadow 0.2s ease;
    }
    
    .message.user-message .message-bubble:hover {
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    }
    
    .message.ai-message .message-bubble:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
}

/* Tablet and below */
@media (max-width: 1024px) {
    .suggestion-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .back-link-btn span {
        display: none;
    }
    
    .back-link-btn i {
        font-size: 20px;
    }
    
    .zyonai-page {
        overflow: hidden;
    }
    
    .zyonai-container {
        height: calc(100vh - 60px);
        height: calc(100dvh - 60px); /* Use dynamic viewport height for mobile */
        max-height: -webkit-fill-available;
    }
    
    .zyonai-main {
        min-height: 0;
        overflow: hidden;
    }
    
    .mobile-sidebar-toggle {
        display: flex;
    }
    
    .mobile-sidebar-btn {
        display: flex;
        position: fixed;
        bottom: 24px;
        left: 24px;
        width: 56px;
        height: 56px;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
        color: #1a1a1a;
        border: none;
        border-radius: 50%;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        cursor: pointer;
        z-index: 999;
        transition: all 0.3s ease;
    }
    
    .mobile-sidebar-btn:hover {
        transform: scale(1.1);
    }
    
    .mobile-sidebar-btn i {
        font-size: 24px;
    }
    
    .zyonai-welcome {
        padding: 20px 16px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .zyonai-welcome-content {
        max-width: 100%;
        width: 100%;
    }
    
    .zyonai-welcome-title {
        font-size: 32px;
        line-height: 1.2;
        margin-bottom: 12px;
    }
    
    .zyonai-welcome-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
        line-height: 1.5;
    }
    
    .zyonai-welcome-suggestions {
        margin-bottom: 24px;
    }
    
    .zyonai-welcome-suggestions h3 {
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    .suggestion-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .suggestion-card {
        padding: 16px;
        gap: 10px;
    }
    
    .suggestion-card i {
        font-size: 20px;
    }
    
    .suggestion-card span {
        font-size: 13px;
    }
    
    .zyonai-welcome-input {
        margin-top: 32px;
        max-width: 100%;
    }
    
    .welcome-input-label {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .message {
        max-width: 85%;
    }
    
    .zyonai-messages {
        padding: 16px 12px;
        gap: 16px;
    }
    
    .message-bubble {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .message-avatar {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .zyonai-input-area {
        padding: 12px 16px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }
    
    .zyonai-input-wrapper {
        gap: 8px;
    }
    
    .zyonai-input {
        padding: 10px 14px;
        font-size: 14px;
        min-height: 44px;
        max-height: 120px;
    }
    
    .zyonai-send-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
    
    .zyonai-send-btn i {
        font-size: 18px;
    }
    
    .zyonai-input-footer {
        margin-top: 6px;
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .zyonai-char-count {
        font-size: 11px;
    }
    
    .zyonai-disclaimer {
        font-size: 10px;
        line-height: 1.4;
    }
    
    .zyonai-chat-header {
        padding: 16px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .zyonai-chat-info {
        flex: 1;
        min-width: 0;
    }
    
    .zyonai-chat-title {
        font-size: 16px;
    }
    
    .zyonai-chat-status {
        font-size: 11px;
        padding: 3px 10px;
    }
    
    .zyonai-modal-content {
        margin: 20px;
        max-height: calc(100vh - 40px);
        max-height: calc(100dvh - 40px);
    }
    
    .zyonai-features {
        grid-template-columns: 1fr;
    }
    
    .nav-link-zyonai {
        padding: 16px 24px !important;
        width: 100%;
        justify-content: center;
    }
    
    .zyonai-logo-big {
        width: 100px;
        height: 100px;
        margin-bottom: 24px;
        padding: 6px;
    }
    
    .zyonai-logo-big i {
        font-size: 54px;
    }
}

@media (max-width: 480px) {
    .zyonai-container {
        height: calc(100vh - 60px);
        height: calc(100dvh - 60px);
    }
    
    .zyonai-top-nav {
        height: 56px;
        padding: 0 16px;
    }
    
    .zyonai-container {
        margin-top: 56px;
        height: calc(100vh - 56px);
        height: calc(100dvh - 56px);
    }
    
    .zyonai-welcome {
        padding: 16px 12px;
    }
    
    .zyonai-welcome-title {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .zyonai-welcome-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }
    
    .zyonai-logo-big {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
        padding: 5px;
    }
    
    .zyonai-logo-big i {
        font-size: 46px;
    }
    
    .zyonai-welcome-suggestions h3 {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .suggestion-card {
        padding: 14px;
    }
    
    .suggestion-card i {
        font-size: 18px;
    }
    
    .suggestion-card span {
        font-size: 12px;
    }
    
    .zyonai-welcome-input {
        margin-top: 24px;
    }
    
    .welcome-input-label {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .zyonai-chat-header {
        padding: 12px;
    }
    
    .zyonai-chat-title {
        font-size: 15px;
    }
    
    .zyonai-chat-status {
        font-size: 10px;
        padding: 2px 8px;
    }
    
    .zyonai-chat-status i {
        font-size: 10px;
    }
    
    .zyonai-icon-btn {
        padding: 6px;
        width: 36px;
        height: 36px;
    }
    
    .zyonai-icon-btn i {
        font-size: 16px;
    }
    
    .message {
        max-width: 90%;
        gap: 8px;
    }
    
    .message-avatar {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .message-bubble {
        padding: 10px 12px;
        font-size: 13px;
        line-height: 1.5;
    }
    
    .message-time {
        font-size: 10px;
    }
    
    .zyonai-messages {
        padding: 12px 8px;
        gap: 12px;
    }
    
    .zyonai-input-area {
        padding: 10px 12px;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }
    
    .zyonai-input {
        padding: 10px 12px;
        font-size: 14px;
        min-height: 44px;
        border-radius: 10px;
    }
    
    .zyonai-send-btn {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }
    
    .zyonai-input-footer {
        margin-top: 4px;
        padding: 0 2px;
    }
    
    .zyonai-char-count {
        font-size: 10px;
    }
    
    .zyonai-disclaimer {
        display: none;
    }
    
    .mobile-sidebar-btn {
        width: 52px;
        height: 52px;
        bottom: 20px;
        left: 20px;
    }
    
    .mobile-sidebar-btn i {
        font-size: 22px;
    }
    
    .zyonai-modal-content {
        margin: 12px;
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        border-radius: 12px;
    }
    
    .zyonai-modal-header {
        padding: 16px;
    }
    
    .zyonai-modal-title {
        font-size: 18px;
    }
    
    .zyonai-modal-body {
        padding: 16px;
    }
}

/* Extra small devices (landscape phones, less than 400px) */
@media (max-width: 400px) {
    .zyonai-welcome-title {
        font-size: 22px;
    }
    
    .zyonai-welcome-subtitle {
        font-size: 13px;
    }
    
    .zyonai-logo-big {
        width: 70px;
        height: 70px;
        padding: 4px;
    }
    
    .zyonai-logo-big i {
        font-size: 40px;
    }
    
    .suggestion-card {
        padding: 12px;
    }
    
    .message {
        max-width: 92%;
    }
    
    .message-bubble {
        font-size: 12px;
        padding: 8px 10px;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .zyonai-welcome {
        padding: 16px;
    }
    
    .zyonai-logo-big {
        width: 70px;
        height: 70px;
        margin-bottom: 16px;
        padding: 4px;
    }
    
    .zyonai-logo-big i {
        font-size: 38px;
    }
    
    .zyonai-welcome-title {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .zyonai-welcome-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .zyonai-welcome-suggestions {
        margin-bottom: 16px;
    }
    
    .zyonai-welcome-input {
        margin-top: 20px;
    }
}

/* Highlight Blue Text */
.highlight-blue {
    color: var(--accent-color);
    font-weight: 600;
}

/* Scroll Effects for Desktop Only */
@media (min-width: 768px) {
    .scroll-fade-in {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .scroll-fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    .scroll-slide-left {
        opacity: 0;
        transform: translateX(-50px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    
    .scroll-slide-left.visible {
        opacity: 1;
        transform: translateX(0);
    }
    
    .scroll-slide-right {
        opacity: 0;
        transform: translateX(50px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    
    .scroll-slide-right.visible {
        opacity: 1;
        transform: translateX(0);
    }
    
    .scroll-scale {
        opacity: 0;
        transform: scale(0.9);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .scroll-scale.visible {
        opacity: 1;
        transform: scale(1);
    }
    
    /* Advanced Apple-style Scroll Effects */
    
    /* Parallax Background Elements */
    .parallax-slow {
        transition: transform 0.1s ease-out;
        will-change: transform;
    }
    
    .parallax-medium {
        transition: transform 0.1s ease-out;
        will-change: transform;
    }
    
    .parallax-fast {
        transition: transform 0.1s ease-out;
        will-change: transform;
    }
    
    /* Reveal Animations */
    .reveal-up {
        opacity: 0;
        transform: translateY(60px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .reveal-up.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-fade {
        opacity: 0;
        transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .reveal-fade.visible {
        opacity: 1;
    }
    
    .reveal-scale {
        opacity: 0;
        transform: scale(0.8);
        transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .reveal-scale.visible {
        opacity: 1;
        transform: scale(1);
    }
    
    .reveal-rotate {
        opacity: 0;
        transform: translateY(40px) rotate(5deg);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .reveal-rotate.visible {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
    
    /* Staggered Children Animation */
    .stagger-children > * {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .stagger-children.visible > *:nth-child(1) {
        transition-delay: 0.1s;
    }
    
    .stagger-children.visible > *:nth-child(2) {
        transition-delay: 0.2s;
    }
    
    .stagger-children.visible > *:nth-child(3) {
        transition-delay: 0.3s;
    }
    
    .stagger-children.visible > *:nth-child(4) {
        transition-delay: 0.4s;
    }
    
    .stagger-children.visible > *:nth-child(5) {
        transition-delay: 0.5s;
    }
    
    .stagger-children.visible > *:nth-child(6) {
        transition-delay: 0.6s;
    }
    
    .stagger-children.visible > * {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Text Reveal Effect */
    .text-reveal {
        overflow: hidden;
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .text-reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Alternative text reveal for inline elements */
    .text-reveal-inline {
        display: inline-block;
        overflow: hidden;
    }
    
    .text-reveal-inline > * {
        display: inline-block;
        opacity: 0;
        transform: translateY(100%);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .text-reveal-inline.visible > * {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Image Reveal with Scale */
    .image-reveal {
        opacity: 0;
        transform: scale(1.1);
        transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .image-reveal.visible {
        opacity: 1;
        transform: scale(1);
    }
    
    /* Sticky Section */
    .sticky-section {
        position: relative;
    }
    
    .sticky-element {
        position: sticky;
        top: 100px;
        z-index: 10;
    }
    
    /* Scroll Progress Indicator */
    .scroll-progress {
        position: fixed;
        top: 0;
        left: 0;
        width: 0%;
        height: 3px;
        background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
        z-index: 9999;
        transition: width 0.1s ease-out;
    }
    
    /* Smooth Scroll Container */
    .smooth-scroll-container {
        will-change: transform;
    }
    
    /* Section Fade In on Scroll */
    .section-fade-in {
        opacity: 0;
        transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .section-fade-in.visible {
        opacity: 1;
    }
    
    /* Card Hover Effect on Scroll */
    .card-hover-reveal {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .card-hover-reveal.visible {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    
    /* Blur Reveal Effect */
    .blur-reveal {
        opacity: 0;
        filter: blur(10px);
        transform: translateY(20px);
        transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                    filter 1s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .blur-reveal.visible {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
    
    /* Split Text Reveal */
    .split-reveal {
        overflow: hidden;
    }
    
    .split-reveal-left {
        opacity: 0;
        transform: translateX(-100%);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .split-reveal-right {
        opacity: 0;
        transform: translateX(100%);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .split-reveal.visible .split-reveal-left,
    .split-reveal.visible .split-reveal-right {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loan Timeline Section */
.loan-timeline {
    padding: 60px 20px;
    background: var(--bg-light);
    position: relative;
}

.loan-timeline.dark-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a1f2e 100%);
}

.loan-timeline .section-header {
    position: relative;
    z-index: 10;
    margin-bottom: 40px;
}

.loan-timeline .section-title {
    color: white;
}

.loan-timeline .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* Horizontal Timeline Container */
.timeline-container-horizontal {
    position: relative;
    max-width: 1200px;
    margin: 32px auto;
    padding: 24px 0;
}

/* Progress Bar for Horizontal Timeline (Desktop) */
.timeline-progress-bar-horizontal {
    position: absolute;
    top: 35px; /* Align with center of icons (70px icon / 2 = 35px) */
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
    transform: none;
    margin: 0 35px; /* Account for icon width (half of 70px icon) */
}

.timeline-progress-fill-horizontal {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--accent-color);
    transition: width 1.5s ease-out, height 1.5s ease-out;
    z-index: 2;
}

.timeline-steps-horizontal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 3; /* Above the progress bar */
}

/* Horizontal Timeline Step */
.timeline-step-horizontal {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    opacity: 0.4;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.timeline-step-horizontal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.timeline-step-horizontal.animated {
    animation: stepPulse 0.6s ease-out;
}

@keyframes stepPulse {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.05);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

.timeline-step-icon-horizontal {
    position: relative;
    width: 70px;
    height: 70px;
    min-width: 70px;
    background: var(--bg-white);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3; /* Above the progress bar */
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.timeline-step-horizontal.visible .timeline-step-icon-horizontal {
    border-color: var(--accent-color);
    animation: pulse 1s ease-out;
}

.timeline-step-icon-horizontal i {
    font-size: 24px;
    color: var(--accent-color);
    z-index: 2;
}

.timeline-step-number-horizontal {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: var(--font-weight-bold);
    color: white;
    z-index: 4; /* Above the progress bar and icon */
    transition: all 0.3s ease;
}

.timeline-step-horizontal.visible .timeline-step-number-horizontal {
    background: var(--accent-color);
    box-shadow: 0 2px 8px rgba(95, 185, 176, 0.4);
}

.timeline-step-content-horizontal {
    flex: 1;
    padding: 18px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    width: 100%;
}

.timeline-step-horizontal.visible .timeline-step-content-horizontal {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(95, 185, 176, 0.15);
}

.timeline-step-content-horizontal h3 {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
    line-height: 1.3;
}

.timeline-step-content-horizontal p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    margin-bottom: 10px;
}

.timeline-step-duration-horizontal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--accent-color);
    font-weight: 500;
    font-size: 13px;
}

.timeline-step-duration-horizontal i {
    font-size: 14px;
}

/* Connecting Line Between Steps (Desktop) - Removed, using progress bar instead */

.timeline-cta {
    text-align: center;
    margin-top: 60px;
}

.timeline-note {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .timeline-container-horizontal {
        margin: 24px auto;
        padding: 16px 0;
    }
    
    /* Vertical progress bar for mobile */
    .timeline-progress-bar-horizontal {
        position: absolute;
        top: 30px; /* Align with center of first icon (60px icon / 2 = 30px) */
        left: 28px; /* Center of 60px icon minus half of 4px bar = 30 - 2 = 28px */
        right: auto;
        width: 4px;
        height: calc(100% - 60px); /* Account for top and bottom padding */
        background: rgba(255, 255, 255, 0.2);
        transform: none;
        margin: 0;
    }
    
    .timeline-progress-fill-horizontal {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 0%;
        background: var(--accent-color);
        transition: width 1.5s ease-out, height 1.5s ease-out;
    }
    
    .timeline-steps-horizontal {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-left: 60px; /* Make room for vertical progress bar */
        position: relative;
    }
    
    /* Ensure progress bar connects through icons on mobile */
    .timeline-step-horizontal {
        position: relative;
    }
    
    .timeline-step-icon-horizontal {
        width: 60px;
        height: 60px;
        min-width: 60px;
        margin-bottom: 12px;
    }
    
    .timeline-step-icon-horizontal i {
        font-size: 20px;
    }
    
    .timeline-step-number-horizontal {
        width: 26px;
        height: 26px;
        font-size: 12px;
        bottom: -6px;
        right: -6px;
    }
    
    .timeline-step-content-horizontal {
        padding: 16px;
    }
    
    .timeline-step-content-horizontal h3 {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .timeline-step-content-horizontal p {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .timeline-step-duration-horizontal {
        font-size: 12px;
    }
    
    .timeline-cta {
        margin-top: 24px;
    }
    
    .timeline-note {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .loan-timeline .section-header {
        margin-bottom: 32px;
    }
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 60px auto;
    padding: 40px 0;
}

/* Desktop: Progress bar runs through icons on left side */
@media (min-width: 768px) {
    .timeline-progress-bar {
        position: absolute;
        top: 80px;
        left: 40px;
        transform: none;
        width: 4px;
        height: calc(100% - 160px);
        background: rgba(255, 255, 255, 0.2);
        z-index: 1;
    }
    
    .timeline-progress-fill {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 0%;
        background: var(--accent-color);
        transition: height 1s ease-out;
        z-index: 2;
    }
    
    .timeline-steps {
        position: relative;
        z-index: 3;
        padding-left: 0;
    }
    
    .timeline-step {
        display: flex;
        align-items: flex-start;
        margin-bottom: 50px;
        position: relative;
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
        flex-direction: row;
    }
    
    .timeline-step.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* All icons stay on the left for desktop */
    .timeline-step:nth-child(even) {
        flex-direction: row;
    }
    
    .timeline-step:nth-child(even) .timeline-step-content {
        text-align: left;
        margin-left: 30px;
        margin-right: 0;
    }
    
    .timeline-step-icon {
        position: relative;
        width: 80px;
        height: 80px;
        min-width: 80px;
        background: var(--bg-white);
        border: 4px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 4;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transition: all 0.4s ease;
    }
    
    /* Green border when step is visible */
    .timeline-step.visible .timeline-step-icon {
        border-color: var(--accent-color);
        animation: pulse 1s ease-out;
    }
    
    .timeline-step-icon i {
        font-size: 28px;
        color: var(--accent-color);
        z-index: 2;
    }
    
    .timeline-step-number {
        position: absolute;
        bottom: -8px;
        right: -8px;
        width: 32px;
        height: 32px;
        background: rgba(255, 255, 255, 0.2);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: 14px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.4s ease;
    }
    
    /* Green number badge when visible */
    .timeline-step.visible .timeline-step-number {
        background: var(--accent-color);
        box-shadow: 0 2px 8px rgba(95, 185, 176, 0.4);
    }
    
    .timeline-step-content {
        flex: 1;
        margin-left: 30px;
        padding: 24px 28px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        border: 2px solid rgba(255, 255, 255, 0.1);
        transition: all 0.4s ease;
    }
    
    /* Green border on content when step is visible */
    .timeline-step.visible .timeline-step-content {
        border-color: var(--accent-color);
        background: rgba(255, 255, 255, 0.08);
        box-shadow: 0 0 20px rgba(95, 185, 176, 0.15);
    }
    
    .timeline-step-content h3 {
        font-size: 20px;
        font-weight: 600;
        color: white;
        margin-bottom: 10px;
    }
    
    .timeline-step-content p {
        font-size: 15px;
        color: rgba(255, 255, 255, 0.75);
        line-height: 1.6;
        margin-bottom: 14px;
    }
    
    .timeline-step-duration {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--accent-color);
        font-weight: 500;
        font-size: 14px;
    }
    
    .timeline-step-duration i {
        font-size: 16px;
    }
}

.timeline-cta {
    text-align: center;
    margin-top: 60px;
}

.timeline-note {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

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

/* Mobile styles - keep progress bar through center */
@media (max-width: 767px) {
    .timeline-progress-bar {
        position: absolute;
        top: 40px;
        left: 40px;
        transform: none;
        width: 4px;
        height: calc(100% - 80px);
        background: rgba(255, 255, 255, 0.2);
        z-index: 1;
    }
    
    .timeline-progress-fill {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 0%;
        background: var(--accent-color);
        transition: height 1s ease-out;
        z-index: 2;
    }
    
    .timeline-steps {
        position: relative;
        z-index: 3;
    }
    
    .timeline-step {
        display: flex;
        align-items: flex-start;
        margin-bottom: 40px;
        position: relative;
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
        flex-direction: row !important;
        margin-left: 0;
    }
    
    .timeline-step.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    .timeline-step-icon {
        position: relative;
        width: 60px;
        height: 60px;
        min-width: 60px;
        background: var(--bg-white);
        border: 3px solid var(--accent-color);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 4;
        box-shadow: 0 4px 12px rgba(95, 185, 176, 0.2);
    }
    
    .timeline-step-icon i {
        font-size: 22px;
        color: var(--accent-color);
    }
    
    .timeline-step-number {
        position: absolute;
        bottom: -6px;
        right: -6px;
        width: 26px;
        height: 26px;
        background: var(--accent-color);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: 12px;
    }
    
    .timeline-step-content {
        flex: 1;
        margin-left: 20px;
        margin-right: 0 !important;
        text-align: left !important;
        padding: 20px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
        border: 2px solid rgba(255, 255, 255, 0.1);
    }
    
    .timeline-step.visible .timeline-step-content {
        border-color: var(--accent-color);
    }
    
    .timeline-step-content h3 {
        font-size: 18px;
        color: white;
        margin-bottom: 8px;
    }
    
    .timeline-step-content p {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.7);
        margin-bottom: 12px;
    }
    
    .timeline-step-duration {
        font-size: 13px;
    }
}

/* Product Rates Section */
.product-rates {
    padding: var(--section-padding);
    background: var(--bg-white);
}

.rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.rate-card {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.rate-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(95, 185, 176, 0.15);
}

.rate-header {
    margin-bottom: 16px;
}

.rate-header h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rate-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.rate-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.rates-note {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
    margin-top: 32px;
    font-style: italic;
}

/* Example Loan Section */
/* Redesigned Example Loan Section */
.example-loan-redesign {
    max-width: 1000px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(95, 185, 176, 0.1);
}

.example-loan-redesign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.example-loan-stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.example-loan-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.example-loan-stat-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(95, 185, 176, 0.15);
}

.example-loan-stat-card:hover::before {
    transform: scaleY(1);
}

.example-loan-stat-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.example-loan-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 4px;
}

.example-loan-stat-note {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.8;
}

.example-loan-highlight {
    background: linear-gradient(135deg, var(--accent-color) 0%, #5fb9b0 100%);
    color: white;
    border: none;
}

.example-loan-highlight .example-loan-stat-label,
.example-loan-highlight .example-loan-stat-value,
.example-loan-highlight .example-loan-stat-note {
    color: white;
}

.example-loan-breakdown {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.example-loan-breakdown-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.example-loan-breakdown-title i {
    color: var(--accent-color);
}

.example-loan-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.example-loan-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(95, 185, 176, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
}

.example-loan-breakdown-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.example-loan-breakdown-value {
    font-size: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    .example-loan-redesign {
        padding: 24px;
    }
    
    .example-loan-redesign-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .example-loan-breakdown-grid {
        grid-template-columns: 1fr;
    }
}

/* Abstract Background Shapes */
.hero-background,
.section-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.abstract-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    filter: blur(80px);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Shape 1 - Warm orange/yellow blob top right */
.shape-1 {
    width: 700px;
    height: 700px;
    background: linear-gradient(135deg, #FF8A65 0%, #FFB74D 50%, #FFD54F 100%);
    top: -300px;
    right: -300px;
    animation-delay: 0s;
}

/* Shape 2 - Cool blue/purple blob bottom left */
.shape-2 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #64B5F6 0%, #7986CB 50%, #BA68C8 100%);
    bottom: -250px;
    left: -250px;
    animation-delay: 5s;
}

/* Shape 3 - Small blob center */
.shape-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

/* Shape 4 - Products section top - Warm orange */
.shape-4 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #FF8A65 0%, #FFB74D 50%, #FFD54F 100%);
    top: -250px;
    right: 10%;
    animation-delay: 2s;
    opacity: 0.35;
}

/* Shape 5 - Products section bottom - Cool blue */
.shape-5 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #64B5F6 0%, #7986CB 50%, #BA68C8 100%);
    bottom: -150px;
    left: 5%;
    animation-delay: 8s;
    opacity: 0.35;
}

/* Shape 6 - Solutions dark section - Purple/Blue */
.shape-6 {
    width: 700px;
    height: 700px;
    background: linear-gradient(135deg, #7986CB 0%, #BA68C8 50%, #64B5F6 100%);
    top: -300px;
    left: -300px;
    animation-delay: 0s;
    opacity: 0.3;
}

.shape-7 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #FF8A65 0%, #FFB74D 50%, #FFD54F 100%);
    bottom: -200px;
    right: -200px;
    animation-delay: 7s;
    opacity: 0.3;
}

.shape-8 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #64B5F6 0%, #7986CB 50%, #BA68C8 100%);
    top: 50%;
    right: 10%;
    animation-delay: 14s;
    opacity: 0.3;
}

/* Shape 9-11 - Final CTA section */
.shape-9 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #FFB74D 0%, #FF8A65 50%, #FFD54F 100%);
    top: -250px;
    left: -250px;
    animation-delay: 0s;
    opacity: 0.35;
}

.shape-10 {
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, #64B5F6 0%, #7986CB 50%, #BA68C8 100%);
    bottom: -200px;
    right: -200px;
    animation-delay: 6s;
    opacity: 0.35;
}

.shape-11 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #FFD54F 0%, #FFB74D 50%, #FF8A65 100%);
    top: 50%;
    right: 20%;
    animation-delay: 12s;
    opacity: 0.3;
}

/* Shape 12-13 - Timeline section */
.shape-12 {
    width: 550px;
    height: 550px;
    background: linear-gradient(135deg, #7986CB 0%, #BA68C8 50%, #64B5F6 100%);
    top: -200px;
    left: -200px;
    animation-delay: 3s;
    opacity: 0.3;
}

.shape-13 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #FF8A65 0%, #FFB74D 50%, #FFD54F 100%);
    bottom: -150px;
    right: -150px;
    animation-delay: 9s;
    opacity: 0.3;
}

/* Shape 14-15 - Portal section */
.shape-14 {
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, #FFB74D 0%, #FF8A65 50%, #FFD54F 100%);
    top: -200px;
    right: -200px;
    opacity: 0.35;
    animation-delay: 4s;
}

.shape-15 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #64B5F6 0%, #7986CB 50%, #BA68C8 100%);
    bottom: -150px;
    left: -150px;
    opacity: 0.35;
    animation-delay: 11s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* ============================================================================
   FINANCE-THEMED DECORATIVE ICONS - Modern Abstract Elements
   ============================================================================ */

.decor-icon {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: 0.2;
    animation: floatIcon 20s ease-in-out infinite;
    color: var(--text-primary);
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.decor-icon i {
    font-size: inherit;
}

/* Dollar sign icons */
.icon-dollar.icon-1 {
    top: 10%;
    right: 15%;
    font-size: 56px;
    color: #FF8A65;
    animation-delay: 0s;
    transform: rotate(-15deg);
}

.icon-dollar.icon-2 {
    bottom: 20%;
    right: 25%;
    font-size: 42px;
    color: #64B5F6;
    animation-delay: 4s;
    transform: rotate(20deg);
}

.icon-dollar.icon-8 {
    top: 15%;
    left: 20%;
    font-size: 48px;
    color: #FFB74D;
    animation-delay: 2s;
    transform: rotate(-10deg);
}

.icon-dollar.icon-11 {
    top: 20%;
    right: 25%;
    font-size: 44px;
    color: rgba(255, 255, 255, 0.3);
    animation-delay: 1s;
    transform: rotate(15deg);
}

.icon-dollar.icon-16 {
    bottom: 25%;
    left: 15%;
    font-size: 50px;
    color: #BA68C8;
    animation-delay: 3s;
    transform: rotate(-20deg);
}

/* House icons */
.icon-house.icon-2 {
    top: 25%;
    left: 15%;
    font-size: 48px;
    color: rgba(255, 255, 255, 0.3);
    animation-delay: 2s;
    transform: rotate(10deg);
}

.icon-house.icon-3 {
    top: 25%;
    left: 12%;
    font-size: 52px;
    color: #FFB74D;
    animation-delay: 2s;
    transform: rotate(10deg);
}

.icon-house.icon-4 {
    bottom: 15%;
    left: 20%;
    font-size: 38px;
    color: #7986CB;
    animation-delay: 6s;
    transform: rotate(-25deg);
}

.icon-house.icon-9 {
    top: 20%;
    right: 20%;
    font-size: 46px;
    color: #BA68C8;
    animation-delay: 3s;
    transform: rotate(12deg);
}

.icon-house.icon-14 {
    bottom: 20%;
    right: 15%;
    font-size: 40px;
    color: #64B5F6;
    animation-delay: 4s;
    transform: rotate(-18deg);
}

/* Chart icons */
.icon-chart.icon-3 {
    top: 35%;
    right: 25%;
    font-size: 44px;
    color: rgba(255, 255, 255, 0.3);
    animation-delay: 1.5s;
    transform: rotate(-10deg);
}

.icon-chart.icon-5 {
    top: 35%;
    right: 30%;
    font-size: 44px;
    color: #BA68C8;
    animation-delay: 3s;
    transform: rotate(-10deg);
}

.icon-chart.icon-10 {
    bottom: 15%;
    right: 25%;
    font-size: 42px;
    color: #FF8A65;
    animation-delay: 1.5s;
    transform: rotate(15deg);
}

.icon-chart.icon-15 {
    top: 25%;
    left: 25%;
    font-size: 48px;
    color: #7986CB;
    animation-delay: 2.5s;
    transform: rotate(-12deg);
}

.icon-chart.icon-19 {
    top: 30%;
    right: 20%;
    font-size: 45px;
    color: rgba(255, 255, 255, 0.25);
    animation-delay: 3s;
    transform: rotate(20deg);
}

/* Additional icons for new sections */
.icon-dollar.icon-20 {
    top: 20%;
    right: 20%;
    font-size: 46px;
    color: #FF8A65;
    animation-delay: 1s;
    transform: rotate(-12deg);
}

.icon-chart.icon-21 {
    bottom: 25%;
    left: 15%;
    font-size: 42px;
    color: #64B5F6;
    animation-delay: 3s;
    transform: rotate(18deg);
}

.icon-building.icon-22 {
    top: 15%;
    right: 25%;
    font-size: 48px;
    color: rgba(255, 255, 255, 0.3);
    animation-delay: 2s;
    transform: rotate(-20deg);
}

.icon-key.icon-23 {
    bottom: 20%;
    left: 20%;
    font-size: 44px;
    color: rgba(255, 255, 255, 0.3);
    animation-delay: 4s;
    transform: rotate(15deg);
}

.icon-house.icon-24 {
    top: 30%;
    left: 15%;
    font-size: 40px;
    color: rgba(255, 255, 255, 0.3);
    animation-delay: 1.5s;
    transform: rotate(-15deg);
}

.icon-dollar.icon-25 {
    top: 25%;
    right: 18%;
    font-size: 47px;
    color: #BA68C8;
    animation-delay: 2.5s;
    transform: rotate(10deg);
}

.icon-chart.icon-26 {
    bottom: 20%;
    left: 22%;
    font-size: 43px;
    color: #7986CB;
    animation-delay: 4.5s;
    transform: rotate(-18deg);
}

/* Key icons */
.icon-key.icon-4 {
    bottom: 25%;
    right: 15%;
    font-size: 40px;
    color: rgba(255, 255, 255, 0.3);
    animation-delay: 4s;
    transform: rotate(15deg);
}

.icon-key.icon-6 {
    bottom: 30%;
    right: 12%;
    font-size: 40px;
    color: #FFD54F;
    animation-delay: 5s;
    transform: rotate(15deg);
}

.icon-key.icon-13 {
    bottom: 15%;
    left: 20%;
    font-size: 38px;
    color: rgba(255, 255, 255, 0.3);
    animation-delay: 4s;
    transform: rotate(-15deg);
}

.icon-key.icon-18 {
    top: 20%;
    left: 15%;
    font-size: 43px;
    color: rgba(255, 255, 255, 0.25);
    animation-delay: 2s;
    transform: rotate(18deg);
}

/* Building icons */
.icon-building.icon-5 {
    top: 18%;
    right: 20%;
    font-size: 46px;
    color: rgba(255, 255, 255, 0.3);
    animation-delay: 3s;
    transform: rotate(-20deg);
}

.icon-building.icon-7 {
    top: 18%;
    left: 25%;
    font-size: 46px;
    color: #64B5F6;
    animation-delay: 1s;
    transform: rotate(-20deg);
}

.icon-building.icon-12 {
    top: 15%;
    left: 15%;
    font-size: 44px;
    color: rgba(255, 255, 255, 0.3);
    animation-delay: 2.5s;
    transform: rotate(22deg);
}

.icon-building.icon-17 {
    bottom: 20%;
    right: 25%;
    font-size: 47px;
    color: rgba(255, 255, 255, 0.25);
    animation-delay: 1.5s;
    transform: rotate(-25deg);
}

/* Animation for icons */
@keyframes floatIcon {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(25px, -25px) rotate(5deg);
    }
    50% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
    75% {
        transform: translate(15px, 15px) rotate(3deg);
    }
}

/* Individual icon animations with rotation */
.icon-dollar.icon-1 {
    animation: floatIconDollar1 20s ease-in-out infinite;
}

@keyframes floatIconDollar1 {
    0%, 100% {
        transform: translate(0, 0) rotate(-15deg);
    }
    25% {
        transform: translate(25px, -25px) rotate(-10deg);
    }
    50% {
        transform: translate(-20px, 20px) rotate(-20deg);
    }
    75% {
        transform: translate(15px, 15px) rotate(-12deg);
    }
}

.icon-dollar.icon-2 {
    animation: floatIconDollar2 20s ease-in-out infinite;
}

@keyframes floatIconDollar2 {
    0%, 100% {
        transform: translate(0, 0) rotate(20deg);
    }
    25% {
        transform: translate(25px, -25px) rotate(25deg);
    }
    50% {
        transform: translate(-20px, 20px) rotate(15deg);
    }
    75% {
        transform: translate(15px, 15px) rotate(22deg);
    }
}

/* Dark section adjustments for icons */
.dark-section .decor-icon {
    opacity: 0.15;
    color: rgba(255, 255, 255, 0.3);
}

.final-cta .decor-icon {
    opacity: 0.12;
    color: rgba(255, 255, 255, 0.25);
}

/* ============================================================================
   NEW SECTIONS - Rate Explanation, Brokerage, FAQ, etc.
   ============================================================================ */

/* Rate Explanation Section */
.rate-explanation {
    padding: 80px 20px;
    background: #fafafa;
    position: relative;
    overflow: hidden;
}

.rate-explanation .section-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.rate-statements {
    max-width: 600px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.rate-statement {
    font-size: 16px;
    color: var(--text-primary);
    text-align: center;
    margin: 0;
    font-weight: var(--font-weight-medium);
}

/* Brokerage Explanation Section */
.brokerage-explanation {
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.brokerage-explanation .section-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.brokerage-blocks {
    max-width: 900px;
    margin: 50px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.brokerage-block {
    text-align: left;
}

.brokerage-block h3 {
    font-size: 20px;
    font-weight: var(--font-weight-semibold);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    line-height: 1.3;
}

.brokerage-block p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

/* Product Source Note */
.product-highlight {
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    color: var(--accent-color);
    margin: 12px 0;
    line-height: 1.3;
}

.product-source-note {
    font-size: 12px;
    color: rgba(55, 65, 81, 0.5);
    margin-top: 12px;
    font-style: italic;
}

/* What Happens Next Section */
.what-happens-next {
    padding: 80px 20px;
    background: #fafafa;
    position: relative;
    overflow: hidden;
}

.what-happens-next .section-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.rate-explanation .container,
.brokerage-explanation .container,
.what-happens-next .container {
    position: relative;
    z-index: 1;
}

.reassurance-text {
    font-size: 14px;
    color: rgba(55, 65, 81, 0.6);
    text-align: center;
    margin-top: 24px;
    font-weight: var(--font-weight-medium);
}


/* Portal Tagline */
.portal-tagline {
    font-size: 14px;
    color: rgba(55, 65, 81, 0.6);
    margin: 16px 0 32px;
    font-style: italic;
}

/* Responsive styles for new sections */
@media (max-width: 768px) {
    .brokerage-blocks {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .rate-statements {
        gap: 20px;
    }
    
    .rate-statement {
        font-size: 15px;
    }
    
    .brokerage-block h3 {
        font-size: 18px;
    }
    
    .brokerage-block p {
        font-size: 14px;
    }
    
    .hero-badge-text {
        font-size: 10px;
    }
    
    .hero-helper-text {
        font-size: 12px;
    }
}

/* Dark Section Styling */
.dark-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a1f2e 100%);
    color: white;
    position: relative;
}

.dark-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(95, 185, 176, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 154, 139, 0.08) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.dark-section .container {
    position: relative;
    z-index: 1;
}

.dark-section .section-title {
    color: white;
}

.dark-section .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

.dark-section .solution-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.dark-section .solution-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
}

.dark-section .solution-title {
    color: white;
}

.dark-section .solution-description {
    color: rgba(255, 255, 255, 0.8);
}

.dark-section .solution-image {
    color: var(--accent-color);
}

.dark-section .timeline-step-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-section .timeline-step-content h3 {
    color: white;
}

.dark-section .timeline-step-content p {
    color: rgba(255, 255, 255, 0.85);
}

.dark-section .timeline-progress-bar {
    background: rgba(255, 255, 255, 0.1);
}

/* Update hero to work with background shapes */
.hero {
    position: relative;
}

.hero .hero-background {
    z-index: 0;
}

.hero .hero-background .abstract-shape {
    opacity: 0.2;
    filter: blur(80px);
}

.hero .section-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.hero .section-background .abstract-shape {
    opacity: 0.15;
    filter: blur(60px);
    z-index: 0;
}

/* Products section background */
.products {
    position: relative;
    background: var(--bg-light);
    padding: 60px 20px;
}

@media (min-width: 769px) {
    .products {
        padding: 70px 20px;
    }
}

.products .section-background .abstract-shape {
    opacity: 0.12;
    filter: blur(70px);
}

/* Estimator/Portal section */
.estimator {
    position: relative;
    background: var(--bg-white);
}

.estimator .section-background {
    z-index: 0;
}

.estimator .container {
    position: relative;
    z-index: 1;
}

/* Additional geometric shapes for variety */
.abstract-shape.shape-geometric-1 {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    width: 400px;
    height: 400px;
}

.abstract-shape.shape-geometric-2 {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    width: 350px;
    height: 350px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .abstract-shape {
        filter: blur(40px);
        opacity: 0.1;
    }
    
    .shape-1, .shape-6, .shape-9 {
        width: 300px;
        height: 300px;
    }
    
    .shape-2, .shape-5, .shape-7, .shape-10, .shape-12 {
        width: 250px;
        height: 250px;
    }
    
    .shape-3, .shape-8, .shape-11, .shape-13, .shape-14, .shape-15 {
        width: 200px;
        height: 200px;
    }
}

/* Ensure sections with backgrounds have proper z-index */
.hero-container,
.products .container,
.solutions .container,
.final-cta .container,
.loan-timeline .container,
.estimator .container {
    position: relative;
    z-index: 2;
}

/* Additional visual enhancements for dark sections */
.dark-section .cta-title,
.dark-section .section-title {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.dark-section .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.dark-section .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Enhanced gradient overlays for depth */
.dark-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 0;
    pointer-events: none;
}

/* Product cards enhancement with background shapes */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(95, 185, 176, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card > * {
    position: relative;
    z-index: 1;
}

/* ============================================================================
   DEAL READINESS TOOL STYLES
   ============================================================================ */

.deal-readiness-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.deal-readiness-results {
    max-width: 900px;
    margin: 0 auto;
}

.deal-results-header {
    text-align: center;
    margin-bottom: 32px;
}

.deal-results-title {
    font-size: 32px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: 12px;
}

/* Assessment Badge */
.deal-assessment-badge {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 32px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
}

.deal-assessment-likely-financeable {
    border-color: var(--success-color);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.02) 100%);
}

.deal-assessment-may-need-restructuring {
    border-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(245, 158, 11, 0.02) 100%);
}

.deal-assessment-capital-stack-discussion {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(95, 185, 176, 0.05) 0%, rgba(95, 185, 176, 0.02) 100%);
}

.deal-badge-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.deal-assessment-likely-financeable .deal-badge-icon {
    color: var(--success-color);
}

.deal-assessment-may-need-restructuring .deal-badge-icon {
    color: #f59e0b;
}

.deal-assessment-capital-stack-discussion .deal-badge-icon {
    color: var(--accent-color);
}

.deal-badge-title {
    font-size: 28px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: 12px;
}

.deal-badge-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Products Section */
.deal-products-section {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.deal-section-title {
    font-size: 20px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: 24px;
}

.deal-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.deal-product-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.deal-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.deal-product-icon {
    font-size: 32px;
    color: var(--accent-color);
    margin-bottom: 16px;
}

.deal-product-name {
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: 12px;
}

.deal-product-reasons {
    list-style: none;
    padding: 0;
    margin: 0;
}

.deal-product-reasons li {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.deal-product-reasons li i {
    color: var(--success-color);
    margin-top: 4px;
    flex-shrink: 0;
}

/* Strengths Section */
.deal-strengths-section {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.02) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
}

.deal-strengths-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.deal-strengths-list li {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
}

.deal-strengths-list li i {
    color: var(--success-color);
    margin-top: 2px;
    flex-shrink: 0;
}

/* Issues Section */
.deal-issues-section {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(245, 158, 11, 0.02) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
}

.deal-issues-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.deal-issues-list li {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
}

.deal-issues-list li i {
    color: #f59e0b;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Next Steps Section */
.deal-next-steps {
    background: var(--bg-white);
    border: 2px solid var(--accent-color);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 2px 12px rgba(95, 185, 176, 0.1);
}

.deal-next-steps-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Results Actions */
.deal-results-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

.deal-results-actions .prequal-btn {
    min-width: 200px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .deal-readiness-form-container {
        padding: 24px 20px;
    }
    
    .deal-assessment-badge {
        padding: 32px 24px;
    }
    
    .deal-badge-icon {
        font-size: 48px;
    }
    
    .deal-badge-title {
        font-size: 24px;
    }
    
    .deal-products-section,
    .deal-strengths-section,
    .deal-issues-section,
    .deal-next-steps {
        padding: 24px 20px;
    }
    
    .deal-products-grid {
        grid-template-columns: 1fr;
    }
    
    .deal-results-actions {
        flex-direction: column;
    }
    
    .deal-results-actions .prequal-btn {
        width: 100%;
    }
}

/* =========================================================================
   MESSAGE ICON / CHAT WIDGET
   ========================================================================= */

/* Floating Message Icon */
.message-icon-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.message-icon-container:hover {
    transform: scale(1.1);
}

.message-icon-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(95, 185, 176, 0.4);
    border: none;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s ease;
}

.message-icon-button:hover {
    box-shadow: 0 6px 20px rgba(95, 185, 176, 0.6);
    background: var(--accent-dark);
}

.message-icon-button i {
    font-size: 24px;
}

/* Message Modal */
.message-modal {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 360px;
    max-width: calc(100vw - 48px);
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    overflow: hidden;
}

.message-modal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.message-modal-header {
    background: var(--accent-color);
    color: var(--bg-white);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.message-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.message-modal-close {
    background: none;
    border: none;
    color: var(--bg-white);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.message-modal-close:hover {
    opacity: 0.7;
}

.message-modal-body {
    padding: 20px;
}

.message-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.message-option:last-child {
    margin-bottom: 0;
}

.message-option:hover {
    border-color: var(--accent-color);
    background: rgba(95, 185, 176, 0.05);
    transform: translateX(4px);
}

.message-option-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(95, 185, 176, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 20px;
    flex-shrink: 0;
}

.message-option-content {
    flex: 1;
}

.message-option-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.message-option-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* AI Chat Interface (for future Gemini integration) */
.ai-chat-container {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 400px;
    max-width: calc(100vw - 48px);
    height: 600px;
    max-height: calc(100vh - 120px);
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    flex-direction: column;
    overflow: hidden;
}

.ai-chat-container.active {
    display: flex;
}

.ai-chat-header {
    background: var(--accent-color);
    color: var(--bg-white);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ai-chat-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.ai-chat-close {
    background: none;
    border: none;
    color: var(--bg-white);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: var(--bg-light);
}

.ai-chat-input-container {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-white);
}

.ai-chat-input-form {
    display: flex;
    gap: 12px;
}

.ai-chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    font-family: var(--font-family);
    outline: none;
    transition: border-color 0.3s ease;
}

.ai-chat-input:focus {
    border-color: var(--accent-color);
}

.ai-chat-send {
    padding: 12px 24px;
    background: var(--accent-color);
    color: var(--bg-white);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.ai-chat-send:hover {
    background: var(--accent-dark);
}

.ai-chat-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.ai-chat-placeholder i {
    font-size: 48px;
    color: var(--accent-color);
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Modal Overlay */
.message-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.message-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Responsive Design */
@media (max-width: 768px) {
    .message-icon-container {
        bottom: 20px;
        right: 20px;
    }
    
    .message-icon-button {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }
    
    .message-modal {
        bottom: 90px;
        right: 20px;
        left: 20px;
        width: auto;
    }
    
    .ai-chat-container {
        bottom: 90px;
        right: 20px;
        left: 20px;
        width: auto;
        height: calc(100vh - 110px);
    }
}

/* ============================================================================
   PRODUCT PAGES STYLES
   ============================================================================ */

/* Product Hero Icon */
.product-hero-icon {
    margin-bottom: 24px;
}

.product-hero-icon i {
    font-size: 64px;
    color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 768px) {
    .product-hero-icon i {
        font-size: 48px;
    }
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    padding: 16px 40px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Product Section */
.product-section {
    padding: 40px 20px;
    position: relative;
}

.product-section .section-header {
    margin-bottom: 28px;
}

.product-section.dark-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a1f2e 100%);
    color: white;
    position: relative;
}

.product-section.dark-section .container {
    position: relative;
    z-index: 1;
}

.product-section.dark-section .section-title {
    color: white;
}

.product-section.dark-section .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

.product-section.dark-section .property-types-list li {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.product-section.dark-section .property-types-list li:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
    color: white;
}

/* Product What Is Section */
.product-what-is {
    max-width: 900px;
    margin: 0 auto;
}

.product-what-is p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.product-what-is p:last-child {
    margin-bottom: 0;
}

/* Product Offerings Grid */
.product-offerings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-offering-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-offering-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.product-offering-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(95, 185, 176, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.product-offering-icon i {
    font-size: 28px;
    color: var(--accent-color);
}

.product-offering-title {
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: 10px;
}

.product-offering-value {
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    color: var(--accent-color);
    margin-bottom: 8px;
}

.product-offering-note {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Product Benefits */
.product-benefits {
    max-width: 1000px;
    margin: 0 auto;
}

.product-benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.product-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
    position: relative;
}

.product-benefit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.product-benefit-item:hover {
    background: transparent;
    transform: translateX(8px);
}

.product-benefit-item:hover::before {
    transform: scaleY(1);
}

.product-benefit-item i {
    color: var(--accent-color);
    font-size: 22px;
    margin-top: 2px;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(95, 185, 176, 0.15);
    border-radius: 8px;
}

.product-benefit-item span {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    font-weight: 500;
}

/* Property Types List */
.property-types-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
}

.property-types-list li {
    padding: 16px 24px;
    background: var(--bg-white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 16px;
    color: var(--text-primary);
    text-align: center;
    transition: all 0.2s ease;
}

.property-types-list li:hover {
    border-color: var(--accent-color);
    background: var(--bg-light);
}

/* Processing Time */
.product-processing-time {
    max-width: 900px;
    margin: 0 auto;
}

.processing-time-display {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(95, 185, 176, 0.1);
    border-radius: 16px;
    border: 2px solid rgba(95, 185, 176, 0.2);
}

.processing-time-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.processing-time-item {
    padding: 24px;
    background: var(--bg-white);
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.processing-time-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), #5fb9b0);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.processing-time-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(95, 185, 176, 0.15);
}

.processing-time-item:hover::before {
    transform: scaleX(1);
}

.processing-time-item strong {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    font-weight: 600;
}

.processing-time-item {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 600;
}

/* Disclaimers List */
.disclaimers-list {
    list-style: none;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
}

.disclaimers-list li {
    padding: 16px 24px;
    margin-bottom: 12px;
    background: var(--bg-white);
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

/* Product CTA Section */
.product-cta-section {
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a1f2e 100%);
    position: relative;
    color: white;
}

.product-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(95, 185, 176, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 154, 139, 0.08) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.product-cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 0;
    pointer-events: none;
}

.product-cta-section .container {
    position: relative;
    z-index: 1;
}

.product-cta-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.product-cta-title {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: var(--font-weight-bold);
    color: white;
    margin-bottom: 12px;
}

.product-cta-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 28px;
    line-height: 1.6;
}

.product-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary {
    background: white;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    padding: 16px 40px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid white;
}

.btn-cta-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    padding: 16px 40px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

/* Use Cases Grid (for Bridge Loan) */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.use-case-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.use-case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.use-case-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: rgba(95, 185, 176, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.use-case-icon i {
    font-size: 28px;
    color: var(--accent-color);
}

.use-case-card h3 {
    font-size: 20px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: 12px;
}

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

/* Draw Schedule (for Ground-Up Construction) */
.draw-schedule-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.draw-schedule-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: var(--bg-white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.draw-schedule-item:hover {
    border-color: var(--accent-color);
    background: var(--bg-light);
}

.draw-stage-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(95, 185, 176, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.draw-stage-icon i {
    font-size: 24px;
    color: var(--accent-color);
}

.draw-stage-content {
    flex: 1;
}

.draw-stage-content h3 {
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: 4px;
}

.draw-stage-content p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .product-hero {
        padding: 100px 20px 40px;
    }

    .product-hero-title {
        font-size: 32px;
    }

    .product-hero-subtitle {
        font-size: 16px;
    }

    .product-hero-cta {
        flex-direction: column;
    }

    .product-hero-cta a {
        width: 100%;
    }

    .product-offerings-grid {
        grid-template-columns: 1fr;
    }

    .product-what-is p {
        font-size: 16px;
    }

    .product-cta-title {
        font-size: 32px;
    }

    .product-cta-subtitle {
        font-size: 16px;
    }

    .product-cta-buttons {
        flex-direction: column;
    }

    .product-cta-buttons a {
        width: 100%;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .draw-schedule-item {
        flex-direction: column;
        text-align: center;
    }

    .property-types-list {
        grid-template-columns: 1fr;
    }

    .processing-time-details {
        grid-template-columns: 1fr !important;
    }
}

