/* FinancialAI - Professional Financial Application Stylesheet */

:root {
    /* Financial Dashboard Design Tokens */
    --primary-navy: #0f172a;        /* Deep financial navy */
    --secondary-navy: #1e293b;      /* Header navy */
    --accent-blue: #60a5fa;         /* Interactive blue */
    --success-green: #34d399;       /* Profit/growth green */
    --warning-amber: #fbbf24;       /* Alert amber */
    --error-red: #f87171;           /* Loss/error red */
    --premium-purple: #a855f7;      /* Premium purple */
    --electric-cyan: #22d3ee;       /* Electric cyan */
    --neutral-50: #0f172a;          /* Dark Background */
    --neutral-100: #1e293b;         /* Cards */
    --neutral-200: #334155;         /* Borders */
    --neutral-600: #94a3b8;         /* Secondary text */
    --neutral-900: #f1f5f9;         /* Primary text */
    --white: #ffffff;
    
    /* Fix missing tokens used throughout the stylesheet */
    --primary-blue: #60a5fa;        /* Used by nav-title, buttons */
    --secondary-blue: #3b82f6;      /* Used by various components */
    --border-light: #334155;        /* Used by cards, inputs */
    --light-text: #94a3b8;          /* Used by secondary text */
    --dark-text: #f1f5f9;           /* Used by primary text */
    --neutral-gray: #1e293b;        /* Used by backgrounds */
    --shadow: rgba(0, 0, 0, 0.08);  /* Used by cards */
    
    --grid-opacity: 0.01;           /* Reduced for subtlety */
    --elevation-1: 0 1px 3px rgba(0, 0, 0, 0.05);
    --elevation-2: 0 4px 6px rgba(0, 0, 0, 0.05);
    --elevation-3: 0 10px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /* Ultra Premium Dark Financial Background */
    background: 
        /* Dynamic aurora effect */
        radial-gradient(ellipse at 20% 20%, rgba(96, 165, 250, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(16, 185, 129, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 60%, rgba(245, 158, 11, 0.08) 0%, transparent 40%),
        /* Premium gradient overlay */
        linear-gradient(135deg, var(--neutral-50) 0%, rgba(30, 41, 59, 0.95) 50%, var(--neutral-50) 100%),
        /* Advanced grid pattern */
        linear-gradient(90deg, rgba(100, 116, 139, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(100, 116, 139, 0.08) 1px, transparent 1px),
        /* Base gradient */
        linear-gradient(145deg, var(--neutral-50) 0%, rgba(15, 23, 42, 0.98) 100%);
    background-size: 800px 600px, 600px 800px, 400px 400px, 100% 100%, 60px 60px, 60px 60px, cover;
    background-attachment: fixed;
    color: var(--dark-text);
    min-height: 100vh;
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    animation: backgroundShift 20s ease-in-out infinite;
}

/* Professional Financial Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    height: 80px;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(59, 130, 246, 0.1);
    animation: slideDown 0.6s ease-out;
}

.nav-title {
    color: var(--primary-blue);
    font-weight: 700;
    margin: 0;
    font-size: 1.8rem;
    position: relative;
    animation: neonPulse 3s ease-in-out infinite;
    text-shadow: 
        0 0 10px rgba(96, 165, 250, 0.5),
        0 0 20px rgba(96, 165, 250, 0.3),
        0 0 30px rgba(96, 165, 250, 0.2);
}"

.nav-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-blue), var(--success-green));
    border-radius: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--light-text);
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid transparent;
}

.nav-link:hover {
    background: var(--neutral-100);
    border-color: var(--border-light);
    color: var(--primary-blue);
}

/* Logout button styling for navigation */
.logout-btn {
    background: none;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
}

.logout-btn.nav-link {
    color: var(--light-text);
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.logout-btn.nav-link:hover {
    background: var(--neutral-100);
    border-color: var(--border-light);
    color: var(--primary-blue);
}

/* Logout button styling for profile page */
.logout-btn.btn {
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, #94a3b8, #64748b);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 14px rgba(100, 116, 139, 0.3),
        0 0 8px rgba(148, 163, 184, 0.2);
    position: relative;
    overflow: hidden;
}

.logout-btn.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 12px 35px rgba(100, 116, 139, 0.4),
        0 0 20px rgba(148, 163, 184, 0.6),
        0 0 40px rgba(148, 163, 184, 0.3);
    background: linear-gradient(135deg, #64748b, #475569);
}

.logout-btn.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.logout-btn.btn:hover::before {
    left: 100%;
}

/* Main Container - Financial Dashboard Style */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 2rem 2rem;
    min-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Financial KPI Dashboard */
.kpi-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 2rem 0;
}

.kpi-tile {
    background: var(--neutral-100);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--elevation-1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.kpi-tile:hover {
    box-shadow: 
        var(--elevation-3),
        0 0 30px rgba(96, 165, 250, 0.4),
        0 0 60px rgba(96, 165, 250, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-6px) scale(1.03) rotateX(5deg);
    border-color: rgba(96, 165, 250, 0.6);
    background: linear-gradient(135deg, var(--neutral-100) 0%, rgba(96, 165, 250, 0.05) 100%);
}

.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.kpi-label {
    color: var(--neutral-600);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-icon {
    font-size: 1.5rem;
    opacity: 0.7;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
}

.kpi-change {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.kpi-change.positive {
    color: var(--success-green);
}

.kpi-change.negative {
    color: var(--error-red);
}

.kpi-sparkline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    opacity: 0.3;
}

/* Market Trend Card */
.trend-card {
    background: var(--neutral-100);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--elevation-2);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.trend-card:hover {
    box-shadow: 
        var(--elevation-3),
        0 0 40px rgba(52, 211, 153, 0.3),
        0 0 80px rgba(52, 211, 153, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(52, 211, 153, 0.4);
    background: linear-gradient(135deg, var(--neutral-100) 0%, rgba(52, 211, 153, 0.03) 100%);
}

.trend-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--success-green));
}

.trend-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--neutral-200);
}

.trend-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-navy);
}

.trend-timeframe {
    color: var(--neutral-600);
    font-size: 0.875rem;
    font-weight: 500;
}

.trend-chart {
    height: 200px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    padding: 1rem 0;
    background: linear-gradient(to top, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    border-radius: 8px;
    position: relative;
}

.trend-bar {
    background: linear-gradient(to top, var(--accent-blue), rgba(59, 130, 246, 0.6));
    border-radius: 2px 2px 0 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.trend-bar:hover {
    background: linear-gradient(to top, var(--success-green), rgba(16, 185, 129, 0.6));
}

/* Professional Header */
.header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--electric-cyan) 50%, var(--premium-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    animation: neonPulse 4s ease-in-out infinite, floatingElements 6s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(96, 165, 250, 0.3);
}"

.title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -60px;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--success-green));
    transform: translateY(-50%);
}

.title::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -60px;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--success-green), transparent);
    transform: translateY(-50%);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--light-text);
    font-weight: 400;
    margin-bottom: 2rem;
}

/* Clean Financial Welcome Section */
.welcome-section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--neutral-100);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: var(--elevation-1);
}

.welcome-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
    font-weight: 700;
}

.welcome-text p {
    color: var(--light-text);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Quick Start Onboarding Section */
.quick-start-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(37, 99, 235, 0.05));
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.quick-start-title {
    color: var(--primary-blue);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.example-prompts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.example-prompt {
    background: var(--neutral-100);
    border: 2px solid var(--border-light);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    color: var(--dark-text);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    box-shadow: var(--elevation-1);
    position: relative;
    overflow: hidden;
}

.example-prompt:hover {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(37, 99, 235, 0.05));
    transform: translateY(-2px);
    box-shadow: var(--elevation-3);
}

.example-prompt:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.example-prompt:active {
    transform: translateY(0);
}

.start-hint {
    text-align: center;
    color: var(--light-text);
    font-size: 1rem;
    margin-top: 1rem;
    font-style: italic;
}

.start-hint strong {
    color: var(--primary-blue);
}

/* Mobile responsiveness for quick start */
@media (max-width: 768px) {
    .example-prompts {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    
    .example-prompt {
        padding: 0.9rem 1rem;
        font-size: 0.9rem;
    }
    
    .quick-start-title {
        font-size: 1.1rem;
    }
}

/* Clean Professional Avatar */
.avatar {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border: 2px solid var(--white);
    box-shadow: var(--elevation-2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.avatar::before {
    content: 'AI';
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}

/* Professional Input Section */
.input-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--neutral-100);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

input[type="text"] {
    flex: 1;
    padding: 1.25rem 1.5rem;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--neutral-50);
    color: var(--dark-text);
    transition: all 0.3s ease;
    font-family: inherit;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 
        0 0 0 3px rgba(59, 130, 246, 0.3),
        0 0 20px rgba(59, 130, 246, 0.2),
        inset 0 1px 3px rgba(0, 0, 0, 0.1);
    background: rgba(59, 130, 246, 0.05);
    transform: scale(1.02);
}

input[type="text"]::placeholder {
    color: var(--light-text);
    font-weight: 400;
}

.btn {
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px rgba(30, 58, 138, 0.3),
        0 0 0 0 rgba(59, 130, 246, 0);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 12px 35px rgba(30, 58, 138, 0.4),
        0 0 20px rgba(59, 130, 246, 0.6),
        0 0 40px rgba(59, 130, 246, 0.3);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* Enhanced Question Input Section */
.question-input-section {
    margin: 3rem 0;
    position: relative;
}

.input-wrapper {
    position: relative;
    flex: 1;
}

.input-help {
    position: absolute;
    top: -30px;
    left: 0;
    color: var(--light-text);
    font-size: 0.875rem;
    opacity: 0.8;
    animation: fadeInDown 0.6s ease-out 0.5s both;
}

/* Voice Container */
.voice-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Professional Voice Button with Enhanced Styling */
.voice-button {
    padding: 1rem;
    border: 2px solid var(--border-light);
    border-radius: 50%;
    background: var(--neutral-100);
    color: var(--secondary-blue);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
}

.voice-button:hover {
    border-color: var(--secondary-blue);
    background: var(--secondary-blue);
    color: var(--white);
    transform: translateY(-2px) scale(1.1);
    box-shadow: 
        0 8px 25px rgba(59, 130, 246, 0.4),
        0 0 20px rgba(59, 130, 246, 0.6),
        0 0 40px rgba(59, 130, 246, 0.3);
}

.voice-button.listening {
    background: var(--secondary-blue);
    color: var(--white);
    border-color: var(--secondary-blue);
    animation: financial-pulse 1.5s infinite;
}

@keyframes financial-pulse {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* Voice Pulse Animation */
.voice-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.voice-button.listening .voice-pulse {
    opacity: 1;
    animation: voice-pulse-expand 2s ease-in-out infinite;
}

@keyframes voice-pulse-expand {
    0% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        box-shadow: 0 0 0 15px rgba(59, 130, 246, 0);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* Voice Hint Tooltip */
.voice-hint-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--neutral-100);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--elevation-3);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 280px;
    max-width: 320px;
}

.voice-hint-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: var(--neutral-100);
}

.voice-container:hover .voice-hint-tooltip,
.voice-button:focus + .voice-hint-tooltip {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(-5px);
}

.tooltip-content {
    text-align: center;
    color: var(--dark-text);
}

.tooltip-content strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
    font-size: 1rem;
}

.tooltip-content p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.tooltip-content kbd {
    background: var(--border-light);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.8rem;
    font-family: monospace;
    color: var(--primary-blue);
}

.tooltip-content small {
    display: block;
    margin-top: 0.5rem;
    color: var(--light-text);
    font-size: 0.8rem;
}

/* Voice Status Display */
.voice-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-top: 1rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    color: var(--dark-text);
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideInUp 0.3s ease-out;
}

.voice-status.high-confidence {
    border-color: rgba(52, 211, 153, 0.4);
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.1), rgba(16, 185, 129, 0.05));
}

.voice-status.low-confidence {
    border-color: rgba(251, 191, 36, 0.4);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.05));
}

.voice-status.processing {
    border-color: rgba(168, 85, 247, 0.4);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(147, 51, 234, 0.05));
}

/* Voice Wave Animation */
.voice-wave {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 20px;
}

.wave-bar {
    width: 3px;
    height: 6px;
    background: var(--primary-blue);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.voice-wave.active .wave-bar {
    animation: wave-bounce 1.4s ease-in-out infinite;
}

.voice-wave.active .wave-bar:nth-child(1) { animation-delay: 0s; }
.voice-wave.active .wave-bar:nth-child(2) { animation-delay: 0.1s; }
.voice-wave.active .wave-bar:nth-child(3) { animation-delay: 0.2s; }
.voice-wave.active .wave-bar:nth-child(4) { animation-delay: 0.3s; }

@keyframes wave-bounce {
    0%, 60%, 100% {
        transform: scaleY(1);
        background: var(--primary-blue);
    }
    30% {
        transform: scaleY(2);
        background: var(--success-green);
    }
}

/* Submit Help Text */
.submit-help {
    text-align: center;
    margin-top: 1rem;
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Demo Mode Section */
.demo-mode-section {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.1), 
        rgba(147, 51, 234, 0.1), 
        rgba(59, 130, 246, 0.05)
    );
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.demo-mode-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue), var(--primary-blue));
    background-size: 200% 100%;
    animation: gradient-slide 3s ease-in-out infinite;
}

.demo-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.demo-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.demo-subtitle {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.demo-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.demo-feature {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.demo-feature:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.demo-feature h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.demo-feature p {
    color: var(--light-text);
    font-size: 0.9rem;
    line-height: 1.4;
}

.demo-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.demo-btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.demo-btn.primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.demo-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.demo-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--dark-text);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.demo-btn.secondary:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary-blue);
}

.demo-examples {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
    animation: slideInUp 0.3s ease-out;
}

.demo-examples h4 {
    color: var(--dark-text);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.example-questions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.example-question {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    padding: 1rem;
    color: var(--dark-text);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.4;
}

.example-question:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.demo-note {
    text-align: center;
    color: var(--light-text);
    font-style: italic;
}

/* Demo Tooltip */
.demo-tooltip {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    text-align: center;
    white-space: nowrap;
    z-index: 1000;
    animation: fadeInUp 0.3s ease-out;
}

.tooltip-arrow {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

/* Demo Animations */
@keyframes demo-pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(96, 165, 250, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 12px 35px rgba(96, 165, 250, 0.6);
    }
}

@keyframes gradient-slide {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 0%; }
    100% { background-position: 0% 0%; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Enhanced Chat Message for Demo */
.chat-message.demo-welcome {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.demo-welcome ul {
    margin: 1rem 0;
    text-align: left;
}

.demo-welcome li {
    margin: 0.5rem 0;
    color: var(--light-text);
}

/* Additional Animation for Smooth Entry */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Demo Section */
@media (max-width: 768px) {
    .demo-mode-section {
        margin: 2rem 0;
        padding: 1.5rem;
    }
    
    .demo-header h3 {
        font-size: 1.5rem;
    }
    
    .demo-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .demo-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .demo-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .example-questions {
        grid-template-columns: 1fr;
    }
}

/* Financial Response Cards */
.user-question {
    background: var(--neutral-100);
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--secondary-blue);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.user-question strong {
    color: var(--secondary-blue);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.speech-bubble {
    background: var(--neutral-100);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    overflow: hidden;
    margin-bottom: 2rem;
}

.speech-bubble:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.response-text {
    padding: 2.5rem;
    line-height: 1.7;
    font-size: 16px;
    color: var(--dark-text);
    font-weight: 400;
}

/* Financial Analysis Sections */
.expert-analysis-section, .next-steps-section, .market-data-section {
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
    position: relative;
}

.expert-analysis-section {
    border-left: 4px solid var(--primary-blue);
}

.expert-analysis-section::before {
    content: '📊';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    opacity: 0.3;
}

.next-steps-section {
    border-left: 4px solid var(--success-green);
}

.next-steps-section::before {
    content: '🎯';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    opacity: 0.3;
}

.market-data-section {
    border-left: 4px solid #f59e0b;
}

.market-data-section::before {
    content: '📈';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    opacity: 0.3;
}

.expert-analysis-section h3, .next-steps-section h3, .market-data-section h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.expert-analysis-section h3 { color: var(--primary-blue); }
.next-steps-section h3 { color: var(--success-green); }
.market-data-section h3 { color: #f59e0b; }

/* Professional Lists */
.response-text ul, .response-text ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.response-text li {
    margin: 0.75rem 0;
    line-height: 1.7;
    position: relative;
}

.response-text li::marker {
    color: var(--secondary-blue);
    font-weight: 600;
}

/* Professional Typography */
.response-text h1, .response-text h2, .response-text h3, .response-text h4 {
    color: var(--primary-blue);
    font-weight: 700;
    margin: 2rem 0 1rem 0;
    line-height: 1.3;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
}

/* Advanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes backgroundShift {
    0%, 100% {
        background-position: 0% 50%, 100% 50%, 50% 0%, 0 0, 0 0, 0 0, center;
    }
    25% {
        background-position: 25% 25%, 75% 75%, 75% 25%, 0 0, 0 0, 0 0, center;
    }
    50% {
        background-position: 50% 0%, 50% 100%, 100% 50%, 0 0, 0 0, 0 0, center;
    }
    75% {
        background-position: 75% 75%, 25% 25%, 25% 75%, 0 0, 0 0, 0 0, center;
    }
}

@keyframes neonPulse {
    0%, 100% {
        text-shadow: 
            0 0 5px rgba(96, 165, 250, 0.5),
            0 0 10px rgba(96, 165, 250, 0.3),
            0 0 15px rgba(96, 165, 250, 0.2);
    }
    50% {
        text-shadow: 
            0 0 10px rgba(96, 165, 250, 0.8),
            0 0 20px rgba(96, 165, 250, 0.6),
            0 0 30px rgba(96, 165, 250, 0.4),
            0 0 40px rgba(96, 165, 250, 0.2);
    }
}

/* Market Overview Section */
.market-overview-section {
    background: linear-gradient(135deg, 
        var(--card-bg) 0%, 
        rgba(15, 23, 42, 0.95) 50%, 
        var(--card-bg) 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 
        0 0 40px rgba(96, 165, 250, 0.1),
        0 0 80px rgba(96, 165, 250, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.market-overview-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(96, 165, 250, 0.1),
        transparent
    );
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    color: var(--primary-blue);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 
        0 0 20px rgba(96, 165, 250, 0.5),
        0 0 40px rgba(96, 165, 250, 0.3);
    animation: neonPulse 2s ease-in-out infinite;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    opacity: 0.9;
    display: block;
    margin-top: 0.5rem;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.market-card {
    background: linear-gradient(135deg, 
        rgba(30, 41, 59, 0.8) 0%, 
        rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(96, 165, 250, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.market-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--primary-blue),
        transparent
    );
    opacity: 0.5;
}

.market-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(96, 165, 250, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: var(--primary-blue);
}

.market-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.market-card-title {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.market-update-time {
    color: var(--success-color);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    animation: pulse 2s ease-in-out infinite;
}

/* Market Indices */
.market-indices {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.index-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.index-item:hover {
    background: rgba(30, 41, 59, 0.5);
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.1);
}

.index-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.index-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.index-symbol {
    color: var(--text-secondary);
    font-size: 0.85rem;
    opacity: 0.8;
}

.index-values {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: right;
}

.index-price {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.index-change.positive {
    color: var(--success-color);
    font-weight: 600;
}

.index-change.negative {
    color: var(--error-color);
    font-weight: 600;
}

/* Stocks List */
.stocks-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stock-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.stock-item:hover {
    background: rgba(30, 41, 59, 0.5);
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.1);
}

.stock-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stock-symbol {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1rem;
}

.stock-name {
    color: var(--text-secondary);
    font-size: 0.85rem;
    opacity: 0.8;
}

.stock-values {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: right;
}

.stock-price {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.stock-change.positive {
    color: var(--success-color);
    font-weight: 600;
}

.stock-change.negative {
    color: var(--error-color);
    font-weight: 600;
}

/* News Section */
.news-card {
    grid-column: 1 / -1;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-item {
    padding: 1.5rem;
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.news-item:hover {
    background: rgba(30, 41, 59, 0.5);
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.1);
}

.news-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.news-summary {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 0.75rem 0;
    opacity: 0.9;
}

.news-time {
    color: var(--text-tertiary);
    font-size: 0.8rem;
    font-weight: 500;
}

@keyframes shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: -100%; }
}

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

/* Floating Chat Button */
.floating-chat-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.floating-chat-button {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), #3b82f6);
    border: 2px solid var(--primary-blue);
    color: white;
    cursor: pointer;
    box-shadow: 
        0 8px 25px rgba(96, 165, 250, 0.4),
        0 0 20px rgba(96, 165, 250, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.floating-chat-button:hover {
    transform: scale(1.1);
    box-shadow: 
        0 12px 35px rgba(96, 165, 250, 0.5),
        0 0 30px rgba(96, 165, 250, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.chat-pulse {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: var(--success-color);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    border: 2px solid white;
}

.usage-counter {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Floating Chat Panel */
.floating-chat-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    max-height: 500px;
    background: linear-gradient(135deg, var(--card-bg), rgba(15, 23, 42, 0.95));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(96, 165, 250, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    overflow: hidden;
    animation: slideUpFade 0.3s ease-out;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border-bottom: 1px solid var(--border-color);
}

.chat-header h3 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.usage-limit {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.close-chat {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.close-chat:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

.chat-content {
    height: 300px;
    overflow-y: auto;
    padding: 1rem;
}

.welcome-message {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ai-avatar-small {
    flex-shrink: 0;
}

.avatar.small {
    width: 40px;
    height: 40px;
}

.welcome-text p {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0 0 0.5rem 0;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-form {
    border-top: 1px solid var(--border-color);
    padding: 1rem;
    background: rgba(30, 41, 59, 0.3);
}

.chat-input-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.chat-input-container input {
    flex: 1;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.chat-input-container input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.chat-send-button {
    background: var(--primary-blue);
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-send-button:hover {
    background: #3b82f6;
    transform: scale(1.05);
}

.upgrade-prompt {
    text-align: center;
}

.upgrade-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.upgrade-link:hover {
    text-decoration: underline;
}

/* Enhanced Footer */
.footer {
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.9) 0%, 
        rgba(30, 41, 59, 0.8) 100%);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

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

.footer-section a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

.footer-bottom p {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chat Messages */
.chat-message {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.3s ease-out;
}

.user-message {
    justify-content: flex-end;
}

.user-message .message-content {
    background: var(--primary-blue);
    color: white;
    border-radius: 16px 16px 4px 16px;
    padding: 0.75rem 1rem;
    max-width: 80%;
}

.ai-message .message-content {
    background: rgba(30, 41, 59, 0.5);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px 16px 16px 4px;
    padding: 0.75rem 1rem;
    max-width: 80%;
}

.message-content p {
    margin: 0;
    line-height: 1.4;
    font-size: 0.9rem;
}

.loading {
    opacity: 0.7;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatingElements {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(1deg);
    }
    66% {
        transform: translateY(5px) rotate(-1deg);
    }
}"

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

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 
            0 0 5px rgba(59, 130, 246, 0.2),
            0 0 10px rgba(59, 130, 246, 0.1);
    }
    50% {
        box-shadow: 
            0 0 15px rgba(59, 130, 246, 0.4),
            0 0 30px rgba(59, 130, 246, 0.2);
    }
}

@keyframes sparklineGlow {
    0%, 100% {
        filter: drop-shadow(0 0 2px rgba(16, 185, 129, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.8));
    }
}

/* Enhanced KPI Animations */
.kpi-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.2);
}

.kpi-tile:hover .kpi-value {
    text-shadow: 0 0 15px rgba(96, 165, 250, 0.4);
    transform: scale(1.05);
}

/* Sparkline Glow Effect */
.kpi-sparkline svg path {
    animation: sparklineGlow 2s ease-in-out infinite;
    filter: drop-shadow(0 0 3px rgba(16, 185, 129, 0.4));
}

/* Trend Bar Hover Effects */
.trend-bar:hover {
    background: linear-gradient(to top, var(--success-green), rgba(16, 185, 129, 0.8));
    box-shadow: 
        0 0 10px rgba(16, 185, 129, 0.6),
        0 0 20px rgba(16, 185, 129, 0.3);
    transform: scaleY(1.1);
}

/* Loading States with Glow */
.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--border-light);
    border-top-color: var(--secondary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite, glowPulse 2s ease-in-out infinite;
}

/* Enhanced Speech Bubble */
.speech-bubble:hover {
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

/* Premium Focus States */
*:focus-visible {
    outline: 2px solid var(--secondary-blue);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

/* Smooth Page Transitions */
.container {
    animation: fadeInUp 0.8s ease-out;
}

/* Enhanced Welcome Section */
.welcome-section {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.welcome-section:hover {
    box-shadow: 
        var(--elevation-2),
        0 0 25px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.response-text p {
    margin: 1.25rem 0;
    line-height: 1.7;
}

.response-text strong {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Mobile Responsive - Professional */
@media (max-width: 768px) {
    .container {
        padding: 80px 1rem 1rem;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .title::before,
    .title::after {
        display: none;
    }
    
    .welcome-section {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
        gap: 2rem;
    }
    
    .input-container {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .navbar {
        height: 70px;
        padding: 1rem;
    }
    
    .nav-title {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
}

/* Professional Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--border-light);
    border-top-color: var(--secondary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Professional Focus States */
*:focus {
    outline: 2px solid var(--secondary-blue);
    outline-offset: 2px;
}

/* Financial Data Tables (if needed) */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.data-table th {
    background: var(--neutral-gray);
    font-weight: 600;
    color: var(--primary-blue);
}

/* Business Automation CTAs */
.automation-cta {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 6px;
    font-size: 0.875rem;
}

.cta-label {
    font-weight: 500;
    color: var(--text-secondary);
    margin-right: 0.5rem;
}

.cta-link {
    color: var(--secondary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: rgba(59, 130, 246, 0.1);
}

.cta-link:hover {
    color: var(--primary-blue);
    background: rgba(59, 130, 246, 0.2);
    text-decoration: none;
    transform: translateX(2px);
}

/* Positioning Disclaimer */
.positioning-disclaimer {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(251, 191, 36, 0.1);
    border-left: 3px solid var(--accent-gold);
    border-radius: 4px;
}

.positioning-disclaimer small {
    color: var(--text-secondary);
    font-weight: 500;
}