/* AI Trade King - Premium Modern Design */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    /* Modern Color Palette */
    --primary-color: #0066ff;
    --primary-dark: #0052cc;
    --primary-light: #3380ff;
    --secondary-color: #6c5ce7;
    --accent-color: #fd79a8;
    --success-color: #00b894;
    --warning-color: #fdcb6e;
    --danger-color: #e17055;
    --info-color: #74b9ff;
    
    /* Neutral Colors - High Contrast Light Theme */
    --text-primary: #1a202c;
    --text-secondary: #2d3748;
    --text-muted: #4a5568;
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-tertiary: #edf2f7;
    --border-color: #e2e8f0;
    
    /* Touch-friendly sizing */
    --touch-target-min: 44px;
    --touch-spacing: 8px;
    
    /* Gradient Colors */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warning: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-gold: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    --gradient-dark: linear-gradient(135deg, #434343 0%, #000000 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.15);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #1a202c;
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
    overflow-x: hidden;
    position: static;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Ensure completely white background with high contrast */
html {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

/* High contrast text for better visibility */
h1, h2, h3, h4, h5, h6 {
    color: #1a202c !important;
    font-weight: 600;
    line-height: 1.25;
}

p, span, div {
    color: #2d3748;
}

/* Touch-friendly interactive elements */
.btn, button, .form-control, .form-select, a.nav-link {
    min-height: var(--touch-target-min);
    min-width: var(--touch-target-min);
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 500;
    transition: all var(--transition-normal);
    cursor: pointer;
}

/* Enhanced button visibility */
.btn-primary {
    background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
    border: 2px solid #0066ff;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0052cc 0%, #003d99 100%);
    border-color: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
}

/* Enhanced form controls */
.form-control {
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-size: 16px;
    padding: 12px 16px;
    transition: all var(--transition-normal);
}

.form-control:focus {
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
    outline: none;
}

/* Touch-friendly navigation */
.nav-link {
    padding: 12px 20px;
    margin: 0 4px;
    border-radius: var(--radius-md);
    font-weight: 500;
    color: #2d3748;
    text-decoration: none;
}

.nav-link:hover {
    background-color: #f7fafc;
    color: #0066ff;
    transform: translateY(-1px);
}

/* Enhanced card design */
.card {
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    overflow: hidden;
}

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

/* Better contrast for text elements */
.text-muted {
    color: #4a5568 !important;
}

.text-primary {
    color: #0066ff !important;
    font-weight: 600;
}

.text-secondary {
    color: #2d3748 !important;
}

/* Enhanced logo visibility */
.logo-hero {
    height: 60px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform var(--transition-normal);
}

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

/* Better mobile responsiveness */
@media (max-width: 768px) {
    .btn, button, .form-control {
        min-height: 48px;
        font-size: 16px;
        padding: 14px 20px;
    }
    
    .card {
        margin: 10px;
        border-radius: var(--radius-lg);
    }
    
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.3rem; }
    h5 { font-size: 1.1rem; }
    h6 { font-size: 1rem; }
    
    /* Mobile-specific optimizations */
    .navbar-brand img {
        height: 32px;
    }
    
    .logo-hero {
        height: 48px;
    }
    
    .hero-background {
        opacity: 0.3 !important;
    }
    
    .feature-card-mini {
        padding: 1.5rem !important;
        margin-bottom: 1rem;
    }
    
    .input-group-text {
        min-width: 48px;
        min-height: 48px;
    }
    
    .modal-dialog {
        margin: 1rem;
    }
    
    .step-connector {
        display: none !important;
    }
    
    .step-number {
        width: 70px !important;
        height: 70px !important;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover, .card:hover, .nav-link:hover, .feature-card-mini:hover {
        transform: none;
        box-shadow: none;
    }
    
    .btn:active, .card:active, .nav-link:active, .feature-card-mini:active {
        transform: scale(0.98);
        opacity: 0.8;
    }
}

/* Improved text readability */
@media (max-width: 576px) {
    .lead {
        font-size: 1.1rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Feature card enhancements */
.feature-card-mini {
    border: 2px solid transparent !important;
    transition: all 0.3s ease !important;
    cursor: pointer;
}

.feature-card-mini:hover {
    border-color: #0066ff !important;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 102, 255, 0.15);
    background: white !important;
}

.feature-card-mini .icon-bg {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card-mini:hover .icon-bg {
    transform: scale(1.1);
}

.feature-card-mini .icon-bg::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    border-radius: 50%;
    animation: shimmer 2s infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card-mini:hover .icon-bg::before {
    opacity: 1;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* Enhanced step indicators */
.step-container {
    position: relative;
}

.step-number {
    position: relative;
    z-index: 2;
}

.step-number::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

/* Better hover effects for buttons */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-outline-warning:hover {
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
    border-color: #fdcb6e;
    color: white;
}

/* Enhanced form focus states */
.form-control:focus, .input-group:focus-within {
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.15);
    border-color: #0066ff;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #0052cc;
        border-color: #003d99;
    }
    
    .text-muted {
        color: #2d3748 !important;
    }
    
    .card {
        border: 2px solid #2d3748;
    }
}

/* Fix input field visibility on white background */
.form-control {
    background-color: #ffffff !important;
    border: 2px solid #dee2e6 !important;
    color: #212529 !important;
    font-size: 16px !important;
    padding: 0.75rem 1rem !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.form-control:focus {
    background-color: #ffffff !important;
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25) !important;
    color: #212529 !important;
}

.form-control::placeholder {
    color: #6c757d !important;
    opacity: 1 !important;
}

/* Input group styling */
.input-group .form-control {
    border-right: 1px solid #dee2e6 !important;
}

.input-group-text {
    background-color: #f8f9fa !important;
    border: 2px solid #dee2e6 !important;
    color: #495057 !important;
}

/* Textarea styling */
textarea.form-control {
    background-color: #ffffff !important;
    border: 2px solid #dee2e6 !important;
    color: #212529 !important;
    min-height: 120px !important;
}

textarea.form-control:focus {
    background-color: #ffffff !important;
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25) !important;
}

/* Select dropdown styling */
select.form-control, .form-select {
    background-color: #ffffff !important;
    border: 2px solid #dee2e6 !important;
    color: #212529 !important;
    font-size: 16px !important;
    padding: 0.75rem 1rem !important;
    border-radius: 8px !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
}

select.form-control:focus, .form-select:focus {
    background-color: #ffffff !important;
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25) !important;
    color: #212529 !important;
}

/* File input styling */
input[type="file"].form-control {
    background-color: #ffffff !important;
    border: 2px solid #dee2e6 !important;
    color: #212529 !important;
    padding: 0.75rem 1rem !important;
    border-radius: 8px !important;
}

input[type="file"].form-control:focus {
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25) !important;
}

/* Checkbox and radio styling */
.form-check-input {
    background-color: #ffffff !important;
    border: 2px solid #dee2e6 !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
}

.form-check-input:checked {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}

.form-check-input:focus {
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25) !important;
}

.form-check-label {
    color: #212529 !important;
    font-weight: 500 !important;
}

/* Form labels */
.form-label {
    color: #212529 !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
}

/* Form text and help text */
.form-text {
    color: #6c757d !important;
    font-size: 0.875rem !important;
}

/* Button styling for forms */
.btn {
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.btn-primary {
    background-color: #0d6efd !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: #0b5ed7 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3) !important;
}

.btn-secondary {
    background-color: #6c757d !important;
    color: #ffffff !important;
}

.btn-secondary:hover {
    background-color: #5a6268 !important;
    transform: translateY(-2px) !important;
}

.btn-success {
    background-color: #198754 !important;
    color: #ffffff !important;
}

.btn-success:hover {
    background-color: #157347 !important;
    transform: translateY(-2px) !important;
}

.btn-danger {
    background-color: #dc3545 !important;
    color: #ffffff !important;
}

.btn-danger:hover {
    background-color: #bb2d3b !important;
    transform: translateY(-2px) !important;
}

/* Card styling for forms */
.card {
    background-color: #ffffff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.card-header {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6 !important;
    color: #212529 !important;
    font-weight: 600 !important;
}

.card-body {
    background-color: #ffffff !important;
    color: #212529 !important;
}

/* Table styling */
.table {
    background-color: #ffffff !important;
    color: #212529 !important;
}

.table th {
    background-color: #f8f9fa !important;
    color: #212529 !important;
    font-weight: 600 !important;
    border-bottom: 2px solid #dee2e6 !important;
}

.table td {
    border-bottom: 1px solid #dee2e6 !important;
    color: #212529 !important;
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: #f8f9fa !important;
}

/* Modal styling */
.modal-content {
    background-color: #ffffff !important;
    border: 1px solid #dee2e6 !important;
    color: #212529 !important;
}

.modal-header {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6 !important;
    color: #212529 !important;
}

.modal-body {
    background-color: #ffffff !important;
    color: #212529 !important;
}

.modal-footer {
    background-color: #f8f9fa !important;
    border-top: 1px solid #dee2e6 !important;
}

/* Alert styling */
.alert {
    border-radius: 8px !important;
    border: 1px solid !important;
    font-weight: 500 !important;
}

.alert-success {
    background-color: #d1e7dd !important;
    border-color: #badbcc !important;
    color: #0f5132 !important;
}

.alert-danger {
    background-color: #f8d7da !important;
    border-color: #f5c2c7 !important;
    color: #842029 !important;
}

.alert-warning {
    background-color: #fff3cd !important;
    border-color: #ffecb5 !important;
    color: #664d03 !important;
}

.alert-info {
    background-color: #d1ecf1 !important;
    border-color: #bee5eb !important;
    color: #055160 !important;
}

/* Clean White Background - No patterns */
body::before {
    display: none;
}

body::after {
    display: none;
}

/* All background elements removed for clean white interface */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Navigation Bar */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(6, 102, 255, 0.2);
    box-shadow: 0 2px 20px rgba(6, 102, 255, 0.1);
    transition: all var(--transition-normal);
    padding: 1rem 0;
    z-index: 1000;
    position: fixed;
    top: 0;
    width: 100%;
}

.navbar-brand, .navbar-nav .nav-link {
    color: #2d3748 !important;
    transition: color var(--transition-fast);
}

.navbar-nav .nav-link:hover {
    color: #0066ff !important;
    text-shadow: 0 0 10px rgba(6, 102, 255, 0.3);
}

/* Main Content */
.main-content {
    padding-top: 0;
    min-height: calc(100vh - 90px);
    position: relative;
    margin-top: 90px;
    margin-bottom: 50px;
    color: #2d3748;
    padding-bottom: 50px;
}

/* Global Text Improvements */
.main-content h1, .main-content h2, .main-content h3, .main-content h4, .main-content h5, .main-content h6 {
    color: #2d3748;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.main-content p, .main-content span, .main-content div {
    color: #2d3748;
}

.main-content .text-muted {
    color: #718096 !important;
}

/* Card and Container Improvements */
.card {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(6, 102, 255, 0.2) !important;
    color: #2d3748;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.card-body {
    color: #2d3748;
}

.card-header {
    background: rgba(6, 102, 255, 0.05) !important;
    border-bottom: 1px solid rgba(6, 102, 255, 0.2) !important;
    color: #2d3748;
}

.card-title {
    color: #2d3748 !important;
}

.card-text {
    color: #4a5568 !important;
}

/* Alert Improvements */
.alert {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(6, 102, 255, 0.2) !important;
    color: #2d3748 !important;
}

.alert-info {
    background: rgba(6, 102, 255, 0.05) !important;
    border-color: rgba(6, 102, 255, 0.3) !important;
}

.alert-success {
    background: rgba(0, 184, 148, 0.05) !important;
    border-color: rgba(0, 184, 148, 0.3) !important;
}

.alert-warning {
    background: rgba(253, 203, 110, 0.05) !important;
    border-color: rgba(253, 203, 110, 0.3) !important;
}

.alert-danger {
    background: rgba(225, 112, 85, 0.05) !important;
    border-color: rgba(225, 112, 85, 0.3) !important;
}

/* Domain Banner */
.domain-banner {
    background: linear-gradient(135deg, rgba(6, 102, 255, 0.9) 0%, rgba(108, 92, 231, 0.9) 100%);
    margin-bottom: 2rem;
    box-shadow: 0 2px 20px rgba(6, 102, 255, 0.3);
    width: 100%;
    position: relative;
    color: #ffffff;
}

/* Button Improvements */
.btn {
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.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%;
}

.btn-primary {
    background: linear-gradient(135deg, #0066ff 0%, #4d79ff 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(6, 102, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0052cc 0%, #3d66cc 100%);
    box-shadow: 0 6px 20px rgba(6, 102, 255, 0.4);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #00b894 0%, #00d4aa 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #009975 0%, #00b894 100%);
    box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
    transform: translateY(-2px);
}

.btn-warning {
    background: linear-gradient(135deg, #fdcb6e 0%, #f39c12 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(253, 203, 110, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e17055 0%, #fdcb6e 100%);
    box-shadow: 0 6px 20px rgba(253, 203, 110, 0.4);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(225, 112, 85, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #d63031 0%, #e17055 100%);
    box-shadow: 0 6px 20px rgba(225, 112, 85, 0.4);
    transform: translateY(-2px);
}

/* Form Improvements */
.form-control {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(6, 102, 255, 0.2);
    color: #2d3748;
    border-radius: 8px;
}

.form-control:focus {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(6, 102, 255, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(6, 102, 255, 0.15);
    color: #2d3748;
}

.form-control::placeholder {
    color: #718096;
}

.form-label {
    color: #2d3748;
    font-weight: 500;
}

/* Footer Improvements */
footer {
    background: rgba(0, 0, 0, 0.98) !important;
    border-top: 1px solid rgba(6, 102, 255, 0.3);
    color: #ffffff !important;
    position: relative;
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

footer h5 {
    color: #ffffff !important;
}

footer p {
    color: #ffffff !important;
}

footer .text-warning {
    color: #fdcb6e !important;
}

footer .text-muted {
    color: #a0aec0 !important;
}

footer strong {
    color: #ffffff !important;
}

/* Ensure bottom elements don't interfere with footer */
.container {
    position: relative;
    z-index: 50;
}

/* Bottom spacing to prevent overlap */
body {
    padding-bottom: 20px;
    background: #ffffff !important;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

/* Feature Cards */
.feature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    border: 1px solid rgba(6, 102, 255, 0.2);
    height: 100%;
    color: #2d3748;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(6, 102, 255, 0.05) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(6, 102, 255, 0.15);
    background: rgba(255, 255, 255, 1);
    border-color: rgba(6, 102, 255, 0.4);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 50%;
    font-size: 1.5rem;
}

.feature-showcase {
    padding: 2rem;
}

.showcase-item {
    color: white;
    text-align: center;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.fade-in {
    animation: fadeIn 0.8s ease-in;
}

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

.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Market Trends Visualization */
.market-trends-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    margin: 2rem 0;
}

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

.trend-title {
    margin: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.trend-controls {
    display: flex;
    gap: 0.5rem;
}

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

.trend-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.trend-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.trend-card.bullish {
    border-left: 4px solid #10b981;
}

.trend-card.bearish {
    border-left: 4px solid #ef4444;
}

.trend-card.neutral {
    border-left: 4px solid #6b7280;
}

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

.symbol-info {
    display: flex;
    flex-direction: column;
}

.symbol {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.sector {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.trend-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    animation: pulse 2s infinite;
}

.trend-icon.bullish {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.trend-icon.bearish {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.trend-icon.neutral {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

.trend-body {
    margin-bottom: 1rem;
}

.price-info {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.75rem;
}

.price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

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

.change.positive {
    color: #10b981;
}

.change.negative {
    color: #ef4444;
}

.volume-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.volume {
    font-weight: 600;
}

.trend-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.pulse-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

.pulse-indicator.bullish {
    background: #10b981;
}

.pulse-indicator.bearish {
    background: #ef4444;
}

.pulse-indicator.neutral {
    background: #6b7280;
}

.mini-chart {
    width: 100px;
    height: 40px;
    position: relative;
}

.mini-chart-svg {
    width: 100%;
    height: 100%;
}

.chart-line {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: draw-line 2s ease-in-out forwards;
}

/* Animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fade-in-up 0.6s ease-out forwards;
}

@keyframes pulse-dot {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes draw-line {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .trends-grid {
        grid-template-columns: 1fr;
    }
    
    .trend-card {
        padding: 1rem;
    }
    
    .symbol {
        font-size: 1.25rem;
    }
    
    .price {
        font-size: 1.5rem;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    z-index: 1;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.logo-hero {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.logo-nav {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.logo-nav:hover {
    transform: scale(1.1);
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary) !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-brand:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    transition: all var(--transition-fast);
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
    margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(0, 102, 255, 0.1);
    transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* Logo Styling */
.logo-nav, .logo-hero {
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.logo-nav:hover {
    transform: scale(1.05) rotate(2deg);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}

.logo-hero:hover {
    transform: scale(1.02) rotate(1deg);
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.2));
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

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

.display-4 {
    font-weight: 800;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    background: var(--bg-primary);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-gradient {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 1px solid var(--border-color);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--text-secondary);
    line-height: 1.6;
}
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.15) !important;
}

/* Logo-inspired gradient cards */
.card-gradient {
    background: linear-gradient(135deg, var(--logo-gradient-1) 0%, var(--logo-gradient-2) 50%, var(--logo-gradient-3) 100%);
    color: white;
}

.card-gradient .card-header {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.card-gradient .card-body {
    background: rgba(255, 255, 255, 0.05);
}

.card-gradient .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #333;
}

.card-gradient .form-control:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.card-gradient .form-text {
    color: rgba(255, 255, 255, 0.8);
}

.card-gradient .form-label {
    color: white;
    font-weight: 600;
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
}

/* Strategy Items */
.strategy-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.strategy-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.strategy-item h5 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.strategy-item .badge {
    font-size: 0.8rem;
    font-weight: 600;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Logo-inspired gradient buttons */
.btn-gradient {
    background: linear-gradient(135deg, var(--logo-gradient-1), var(--logo-gradient-2));
    border: none;
    color: white;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, var(--logo-gradient-2), var(--logo-gradient-3));
    color: white;
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, var(--logo-primary), var(--logo-secondary));
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--logo-secondary), var(--logo-gradient-1));
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

/* Form Controls */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.25);
}

.form-control-lg {
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading .btn {
    position: relative;
}

.loading .btn::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Feature Icons */
.feature-icon {
    margin-bottom: 1rem;
}

.feature-icon i {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.feature-icon:hover i {
    opacity: 1;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.alert-danger {
    background-color: rgba(231, 76, 60, 0.1);
    border-left: 4px solid var(--danger-color);
    color: var(--danger-color);
}

.alert-success {
    background-color: rgba(39, 174, 96, 0.1);
    border-left: 4px solid var(--success-color);
    color: var(--success-color);
}

/* Footer */
footer {
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    .strategy-item {
        padding: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .strategy-item {
        background: #2c3e50;
        color: white;
    }
    
    .form-control {
        background-color: #34495e;
        border-color: #4a5568;
        color: white;
    }
    
    .form-control:focus {
        background-color: #2c3e50;
        border-color: var(--primary-color);
    }
}

/* File Upload Styling */
input[type="file"] {
    cursor: pointer;
}

input[type="file"]::-webkit-file-upload-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 1rem;
    transition: background-color 0.3s ease;
}

input[type="file"]::-webkit-file-upload-button:hover {
    background: #1a252f;
}

/* Pulse animation for important elements */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Upload area styling */
.upload-area {
    border: 2px dashed #007bff;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.02) 0%, rgba(0, 123, 255, 0.05) 100%);
}

.upload-area:hover {
    border-color: #0056b3;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05) 0%, rgba(0, 123, 255, 0.08) 100%);
    transform: translateY(-2px);
}

.upload-area.dragover {
    border-color: #28a745;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, rgba(40, 167, 69, 0.08) 100%);
    transform: scale(1.02);
}

.upload-area.border-success {
    border-color: #28a745;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.02) 0%, rgba(40, 167, 69, 0.05) 100%);
}

.upload-icon {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.upload-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.upload-subtext {
    font-size: 0.9rem;
    color: #666;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Insights page specific styles */
.insights-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.insight-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin-bottom: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.metric-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    margin-bottom: 16px;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
}

.metric-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 4px;
}

.price-display {
    font-size: 2.5rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 8px;
}

.price-change {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

.price-change.positive {
    background: #d4edda;
    color: #155724;
}

.price-change.negative {
    background: #f8d7da;
    color: #721c24;
}

.ai-analysis-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-left: 4px solid #007bff;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.recommendation-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.recommendation-card:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.confidence-badge {
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.sector-card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    border-left: 4px solid #ffc107;
    transition: all 0.3s ease;
}

.sector-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.trending-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .feature-card {
        margin-bottom: 24px;
    }
    
    .upload-area {
        padding: 30px 15px;
    }
    
    .price-display {
        font-size: 2rem;
    }
}
