/* CSS Variables */
:root {
    /* Primary Colors */
    --primary-purple: #7c3aed;
    --primary-purple-dark: #6d28d9;
    --primary-purple-light: #a855f7;
    --primary-blue: #3b82f6;
    --primary-blue-dark: #2563eb;
    
    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb; 
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #374151;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Status Colors */
    --success: #10b981;
    --success-dark: #059669;
    --warning: #f59e0b;
    --warning-dark: #d97706;
    --danger: #ef4444;
    --danger-dark: #dc2626;
    --info: #3b82f6;
    --info-dark: #2563eb;
    --accent: #fbbf24;
    
    /* Background Colors */
    --bg-primary: var(--white);
    --bg-secondary: var(--gray-50);
    --bg-muted: var(--gray-100);
    --bg-hero: linear-gradient(135deg, #fafbff 0%, #f0f4ff 100%);
    
    /* Text Colors */
    --text-primary: var(--gray-800);
    --text-secondary: var(--gray-500);
    --text-muted: var(--gray-400);
    
    /* Border Colors */
    --border-light: var(--gray-200);
    --border-medium: var(--gray-300);
    
    /* Box Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-purple: 0 4px 16px rgba(124, 58, 237, 0.2);
    --shadow-purple-lg: 0 8px 32px rgba(124, 58, 237, 0.3);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
}

/* Header Styles */
.main-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i {
    color: var(--primary-purple);
    width: 28px;
    height: 28px;
}

.logo h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 30px;
    margin-right: 30px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-purple);
}

.auth-buttons {
    display: flex;
    gap: 12px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.mobile-menu-toggle:hover {
    background-color: rgba(79, 70, 229, 0.1);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Mobile Navigation Menu */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-nav.show {
    right: 0;
}

.mobile-nav-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-primary);
}

.mobile-nav-header .logo h1 {
    font-size: 1.25rem;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    color: var(--text-primary);
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.mobile-nav-close:hover {
    background-color: rgba(79, 70, 229, 0.1);
}

.mobile-nav-content {
    padding: 0;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-links li {
    border-bottom: 1px solid var(--border-light);
}

.mobile-nav-links .nav-link {
    display: block;
    padding: 18px 24px;
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    min-height: 56px;
    display: flex;
    align-items: center;
}

.mobile-nav-links .nav-link:hover,
.mobile-nav-links .nav-link.active {
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary-purple);
}

.mobile-auth-section {
    padding: 24px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-light);
}

.mobile-auth-section .user-info {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
}

.mobile-auth-section .token-display {
    padding: 18px 24px;
    background: rgba(79, 70, 229, 0.05);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 12px;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-purple);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-auth-section .token-display i {
    font-size: 1.2rem;
}

.mobile-auth-section .user-avatar-container {
    width: 100%;
}

.mobile-auth-section .user-avatar-button {
    width: 100%;
    justify-content: flex-start;
    padding: 18px 24px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    min-height: 60px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-auth-section .user-avatar-button:hover {
    background: rgba(79, 70, 229, 0.02);
}

.mobile-nav-signin {
    padding: 24px;
}

.mobile-nav-signin .auth-button {
    width: 100%;
    justify-content: center;
    padding: 18px 24px;
    font-weight: 600;
    font-size: 1.1rem;
    min-height: 56px;
    border-radius: 12px;
    background: var(--primary-purple);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-nav-signin .auth-button:hover {
    background: var(--primary-blue);
    transform: translateY(-1px);
}

/* Main Content */
.main-content {
    /* min-height: calc(100vh - 64px); */
}

/* Hero Section */
.hero-section {
    min-height: calc(100vh - 16vh);
    padding: 80px 24px 120px;
    text-align: center;
    background: var(--bg-hero);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%237c3aed' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content {
    margin-bottom: 60px;
    text-align: left;
}

.hero-content-main {
    margin-bottom: 60px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: var(--shadow-purple);
}

.hero-badge i {
    width: 16px;
    height: 16px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-benefits {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 25px;
    color: #1f2937;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.benefit-item:hover {
    background: rgba(124, 58, 237, 0.15);
    transform: translateY(-2px);
}

.benefit-item i {
    color: #7c3aed;
    width: 20px;
    height: 20px;
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed #c7d2fe;
    border-radius: 20px;
    padding: 48px 24px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 520px;
    margin: 0 auto 48px;
    position: relative;
    overflow: hidden;
}

.upload-zone::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.1), transparent);
    transition: left 0.5s ease;
}

.upload-zone:hover {
    border-color: #7c3aed;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.1);
    transform: translateY(-2px);
}

.upload-zone:hover::before {
    left: 100%;
}

.upload-zone.drag-over {
    border-color: #7c3aed;
    background: #f3f0ff;
    border-style: solid;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.2);
}

.upload-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.upload-icon-container {
    margin-bottom: 16px;
}

.upload-icon {
    color: #7c3aed;
    width: 48px;
    height: 48px;
}

.upload-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.upload-content p {
    color: #6b7280;
    margin-bottom: 24px;
}

.choose-file-btn {
    background: none;
    border: none;
    color: #7c3aed;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    font-size: inherit;
    transition: color 0.2s ease;
}

.choose-file-btn:hover {
    color: #5b21b6;
}

.file-info {
    margin-top: 16px;
}

.supported-formats {
    font-size: 0.875rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.supported-formats i {
    width: 16px;
    height: 16px;
}

.format-indicator {
    margin-top: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 16px;
    display: inline-block;
}

.format-indicator.pdf { 
    background: #fee2e2; 
    color: #dc2626; 
}
.format-indicator.docx { 
    background: #dbeafe; 
    color: #2563eb; 
}
.format-indicator.txt, .format-indicator.md { 
    background: #d1fae5; 
    color: #059669; 
}

.unsupported-notice {
    display: none;
    background: #fef3cd;
    color: #92400e;
    padding: 12px 16px;
    border-radius: 12px;
    margin-top: 16px;
    font-size: 0.875rem;
    align-items: center;
    gap: 8px;
}

.unsupported-notice.show {
    display: flex;
}

.warning-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* Document Type Selection */
.document-type-selection {
    margin: 24px 0;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.document-type-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    font-size: 0.875rem;
}

.document-type-options {
    display: flex;
    gap: 12px;
    justify-content: center;
    max-width: 520px;
    margin: 0 auto 16px;
}

.document-type-option {
    display: flex;
    cursor: pointer;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    transition: all 0.2s ease;
    min-width: 120px;
    justify-content: center;
    width: 100%;
}

.document-type-option:hover {
    border-color: #7c3aed;
    background: #faf5ff;
}

.document-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.document-type-option input[type="radio"]:checked + .option-text {
    color: #7c3aed;
}

.document-type-option:has(input[type="radio"]:checked) {
    border-color: #7c3aed;
    background: #faf5ff;
    box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.1);
}

.option-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #6b7280;
    transition: color 0.2s ease;
    font-size: 0.875rem;
}

.option-text i {
    width: 16px;
    height: 16px;
}

/* Mobile responsiveness for document type selection */
@media (max-width: 640px) {
    .document-type-options {
        flex-direction: column;
        gap: 8px;
    }
    
    .document-type-option {
        min-width: auto;
        width: 100%;
    }
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

.trust-item i {
    color: #7c3aed;
    width: 20px;
    height: 20px;
}

/* Container for sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Section Styles */
.section {
    padding: 80px 0;
    display: block;
}

.hidden {
    display: none !important;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
}

.back-button {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s ease;
    font-weight: 500;
}

.back-button:hover {
    color: #7c3aed;
}

.back-button i {
    width: 20px;
    height: 20px;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
    letter-spacing: -0.025em;
}

.section-header p {
    font-size: 1.125rem;
    color: #6b7280;
}

/* Strategy Options */
.strategy-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.strategy-option {
    cursor: pointer;
}

.strategy-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.strategy-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.strategy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #7c3aed, #3b82f6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.strategy-card:hover {
    border-color: #7c3aed;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.1);
    transform: translateY(-4px);
}

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

.strategy-option input[type="radio"]:checked + .strategy-card {
    border-color: #7c3aed;
    background: linear-gradient(135deg, #fafbff, #f0f4ff);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.15);
}

.strategy-option input[type="radio"]:checked + .strategy-card::before {
    transform: scaleX(1);
}

.strategy-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.strategy-icon {
    color: #7c3aed;
    margin-right: 12px;
    width: 24px;
    height: 24px;
}

.strategy-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.strategy-card p {
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.6;
}

.strategy-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #9ca3af;
    border-top: 1px solid #f3f4f6;
    padding-top: 16px;
}

.strategy-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.strategy-meta i {
    width: 14px;
    height: 14px;
}

/* Action Button */
.action-button {
    text-align: center;
}

.start-analysis-btn {
    background: linear-gradient(135deg, #7c3aed, #3b82f6);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.2);
}

.start-analysis-btn:hover {
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.3);
    transform: translateY(-2px);
}

.start-analysis-btn i {
    width: 20px;
    height: 20px;
}

.start-analysis-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Full-screen Progress Section */
.progress-fullscreen {
    /* position: fixed; */
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #fafbff 0%, #f0f4ff 100%);
    /* z-index: 999; */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.progress-container {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.progress-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.progress-header p {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 48px;
}

/* Circular Progress */
.progress-circle-container {
    margin-bottom: 48px;
}

.progress-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #7c3aed 0%, #3b82f6 100%);
    padding: 6px;
    margin: 0 auto;
    position: relative;
}

.progress-circle-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.progress-percentage {
    font-size: 1.5rem;
    font-weight: 700;
    color: #7c3aed;
    line-height: 1;
}

.progress-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    margin-top: 4px;
}

/* Processing Steps */
.processing-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 48px;
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.step.active {
    background: rgba(124, 58, 237, 0.1);
    border-color: #7c3aed;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.1);
    animation: activeStepPulse 2s ease-in-out infinite;
}

.step.complete {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

.step.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

.step-icon {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon i:first-child {
    width: 20px;
    height: 20px;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.step-check {
    position: absolute;
    width: 20px;
    height: 20px;
    color: #10b981;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.step.active .step-icon i:first-child {
    color: #7c3aed;
    animation: iconSpin 3s linear infinite;
}

.step.complete .step-check {
    opacity: 1;
    transform: scale(1);
}

.step.complete .step-icon i:first-child {
    opacity: 0;
    transform: scale(0);
}

.step.error .step-icon i:first-child {
    color: #ef4444;
}

.step-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    text-align: left;
}

.processing-details {
    margin-bottom: 32px;
}

#processing-status {
    font-size: 1.125rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

/* Estimated time styles removed - feature removed due to inaccuracy */

.cancel-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5e7eb;
    color: #6b7280;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #9ca3af;
}

.cancel-btn i {
    width: 16px;
    height: 16px;
}

/* Full-screen Results Section */
.results-fullscreen {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 999;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 40px 24px;
}

.results-container {
    max-width: 800px;
    margin: 0 auto;
}

.results-header {
    text-align: center;
    margin-bottom: 48px;
}

.results-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.results-header p {
    font-size: 1.125rem;
    color: #6b7280;
}


.risk-score-display {
    text-align: center;  
    margin-bottom: 48px;
    padding: 40px;
    background: linear-gradient(135deg, #fafbff, #f0f4ff);
    border-radius: 20px;
    border: 1px solid #e0e7ff;
}

.risk-score {
    margin-bottom: 24px;
}

.score-circle {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 16px;
}

.score-number {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
}

.score-max {
    font-size: 2rem;
    color: #6b7280;
    font-weight: 500;
}

.risk-level-badge {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.risk-score.low .score-number {
    color: #059669;
}

.risk-score.low .risk-level-badge {
    background: #d1fae5;
    color: #059669;
}

.risk-score.medium .score-number {
    color: #d97706;
}

.risk-score.medium .risk-level-badge {
    background: #fed7aa;
    color: #d97706;
}

.risk-score.high .score-number {
    color: #dc2626;
}

.risk-score.high .risk-level-badge {
    background: #fecaca;
    color: #dc2626;
}

.humorous-summary {
    background: linear-gradient(135deg, #f0f4ff, #e0e7ff);
    border: 1px solid #c7d2fe;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: fit-content;
    overflow: visible;
}

.humorous-summary i {
    color: #7c3aed;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.humorous-summary p {
    font-size: 1.125rem;
    color: #5b21b6;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.primary-concerns {
    margin-bottom: 32px;
}

.primary-concerns h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.primary-concerns h3 i {
    color: #f59e0b;
    width: 20px;
    height: 20px;
}

#concerns-list {
    list-style: none;
    padding: 0;
}

#concerns-list li {
    padding: 16px;
    border-left: 4px solid #f59e0b;
    background: #fef3c7;
    color: #92400e;
    margin-bottom: 8px;
    border-radius: 0 8px 8px 0;
    font-weight: 500;
}

#concerns-list li:last-child {
    margin-bottom: 0;
}

.detailed-breakdown {
    margin-bottom: 32px;
}

.detailed-breakdown h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
}

.detailed-breakdown h3 > .title-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detailed-breakdown h3 i {
    color: #6366f1;
    width: 20px;
    height: 20px;
}

.toggle-btn {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #d1d5db;
    color: #6b7280;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #9ca3af;
}

.toggle-btn i {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.breakdown-content.show + .toggle-btn i {
    transform: rotate(180deg);
}

.breakdown-content {
    display: none;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #f3f4f6;
}

.breakdown-content.show {
    display: block;
}

.factor-item {
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.factor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.factor-name {
    font-weight: 600;
    color: #111827;
}

.factor-score {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.factor-score.low {
    background: #d1fae5;
    color: #059669;
}

.factor-score.medium {
    background: #fed7aa;
    color: #d97706;
}

.factor-score.high {
    background: #fecaca;
    color: #dc2626;
}

.factor-explanation {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.6;
}

.consensus-info {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.consensus-info i {
    color: #0369a1;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.confidence-level {
    color: #0369a1;
    font-size: 0.875rem;
    font-weight: 500;
}

.confidence-explanation {
    color: #64748b;
    font-size: 0.8rem;
    margin-top: 8px;
    line-height: 1.4;
    font-style: italic;
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    padding: 20px;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1f2937;
}

.cookie-text p {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.cookie-btn.primary {
    background: #7c3aed;
    color: white;
    border: none;
}

.cookie-btn.primary:hover {
    background: #6d28d9;
}

.cookie-btn.secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.cookie-btn.secondary:hover {
    background: #e5e7eb;
}

.cookie-btn.text {
    background: transparent;
    color: #7c3aed;
    border: none;
    text-decoration: underline;
}

.cookie-btn.text:hover {
    color: #6d28d9;
}

/* Cookie Settings Modal */
.cookie-category {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cookie-category h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #7c3aed;
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

input:disabled + .toggle-slider {
    background-color: #9ca3af;
    cursor: not-allowed;
}

/* Footer Styles */
.main-footer {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 20px;
}

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

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.footer-section p {
    color: #6b7280;
    font-size: 0.9rem;
}

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

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: #7c3aed;
}

.footer-link-button {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    text-align: left;
    transition: color 0.2s;
}

.footer-link-button:hover {
    color: #7c3aed;
}

.footer-bottom {
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 0.875rem;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 16px;
    }
    
    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.cta-container {
    text-align: center;
}

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

.primary-btn,
.secondary-btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.primary-btn {
    background: linear-gradient(135deg, #7c3aed, #3b82f6);
    color: white;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.2);
}

.primary-btn:hover {
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.3);
    transform: translateY(-2px);
}

.primary-btn i {
    width: 16px;
    height: 16px;
}

.secondary-btn {
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
}

.secondary-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.secondary-btn i {
    width: 16px;
    height: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header Mobile Optimizations */
    .header-container {
        padding: 0 16px;
        height: 60px;
    }
    
    .logo h1 {
        font-size: 1.375rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
        flex-shrink: 0;
    }
    
    .mobile-nav {
        display: block;
    }
    
    /* Hide desktop auth elements on mobile, but keep mobile menu toggle */
    .auth-buttons {
        display: flex;
        gap: 0;
    }
    
    .auth-buttons .auth-section {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
    }
    
    /* Content Optimizations */
    .hero-section {
        padding: 80px 16px 100px;
    }
    
    .hero-container {
        padding: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
        margin-bottom: 24px;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        line-height: 1.4;
        margin-bottom: 32px;
    }
    
    .upload-zone {
        padding: 40px 20px;
        margin: 32px 0 40px;
    }
    
    .upload-content h3 {
        font-size: 1.375rem;
        margin-bottom: 16px;
    }
    
    .upload-content p {
        margin-bottom: 20px;
    }
    
    .strategy-options {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 8px;
    }
    
    .strategy-card {
        padding: 24px 20px;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .section-header {
        padding: 0 16px;
        margin-bottom: 40px;
    }
    
    .section-header h2 {
        margin-bottom: 16px;
    }
    
    .processing-steps {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 16px;
    }
    
    .step {
        padding: 20px;
    }
    
    .score-number {
        font-size: 3rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 0 16px;
    }
    
    .primary-btn,
    .secondary-btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        min-height: 52px;
        font-size: 1rem;
    }
    
    .trust-indicators {
        gap: 24px;
        flex-direction: column;
        align-items: center;
        padding: 0 16px;
        margin: 40px 0;
    }
    
    .trust-item {
        padding: 16px 20px;
    }
    
    .back-button {
        position: relative;
        margin: 16px 16px 24px;
        padding: 12px 20px;
    }
    
    .progress-fullscreen,
    .results-fullscreen {
        padding: 32px 16px;
    }
    
    .progress-container {
        padding: 0;
    }
    
    .progress-header {
        margin-bottom: 40px;
    }
    
    .progress-header h2 {
        margin-bottom: 12px;
    }
    
    .progress-circle-container {
        margin: 40px 0;
    }
    
    .processing-details {
        margin: 32px 0;
    }

    .humorous-summary {
        padding: 24px 20px;
        margin: 32px 16px;
        font-size: 1rem;
    }

    .humorous-summary p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .results-container {
        max-width: 100%;
        padding: 0;
    }
    
    .results-header {
        padding: 0 16px;
        margin-bottom: 40px;
    }
    
    .risk-score-display {
        margin: 40px 16px;
    }
    
    .primary-concerns {
        margin: 32px 16px;
        padding: 24px 20px;
    }
    
    .primary-concerns h3 {
        margin-bottom: 20px;
    }
    
    #concerns-list {
        padding-left: 0;
    }
    
    #concerns-list li {
        padding: 16px 0;
        margin-bottom: 12px;
    }
    
    .detailed-breakdown {
        margin: 32px 16px;
    }
    
    .breakdown-content {
        padding: 20px;
    }
    
    .factor-item {
        padding: 20px 0;
    }
    
    .consensus-info {
        margin: 32px 16px;
        padding: 20px;
    }
    
    .cta-container {
        padding: 40px 16px;
    }
    
    /* Modal Optimizations */
    .modal-content {
        margin: 16px;
        max-height: calc(100vh - 32px);
        overflow-y: auto;
    }
    
    .topup-options {
        grid-template-columns: 1fr;
    }
    
    /* General container adjustments */
    .container {
        padding: 0 16px;
    }
    
    /* Cancel button improvements */
    .cancel-btn {
        padding: 12px 24px;
        margin-top: 32px;
    }
}

@media (max-width: 480px) {
    /* Header ultra-mobile */
    .header-container {
        padding: 0 12px;
        height: 56px;
    }
    
    .logo h1 {
        font-size: 1.25rem;
    }
    
    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
    }
    
    /* Content ultra-mobile */
    .hero-section {
        padding: 60px 12px 80px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 28px;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-header {
        padding: 0 12px;
        margin-bottom: 32px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .upload-zone {
        padding: 32px 16px;
        margin: 24px 0 32px;
    }
    
    .upload-content h3 {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }
    
    .upload-content p {
        margin-bottom: 16px;
    }
    
    .strategy-options {
        padding: 0 4px;
        gap: 16px;
    }
    
    .strategy-card {
        padding: 20px 16px;
    }
    
    .progress-fullscreen,
    .results-fullscreen {
        padding: 24px 12px;
    }
    
    .progress-circle {
        width: 120px;
        height: 120px;
    }
    
    .progress-percentage {
        font-size: 1.5rem;
    }
    
    .progress-header {
        margin-bottom: 32px;
    }
    
    .hero-benefits {
        gap: 16px;
        flex-direction: column;
        align-items: center;
        padding: 0 12px;
    }
    
    .benefit-item {
        font-size: 0.9rem;
        padding: 14px 18px;
    }
    
    .trust-indicators {
        gap: 20px;
        padding: 0 12px;
        margin: 32px 0;
    }
    
    .trust-item {
        font-size: 0.875rem;
        padding: 12px 16px;
    }
    
    .primary-btn,
    .secondary-btn {
        min-height: 48px;
        font-size: 0.95rem;
        max-width: 280px;
    }
    
    .cta-buttons {
        padding: 0 12px;
        gap: 12px;
    }
    
    .humorous-summary {
        margin: 24px 12px;
        padding: 20px 16px;
    }
    
    .risk-score-display {
        margin: 32px 12px;
    }
    
    .primary-concerns {
        margin: 24px 12px;
        padding: 20px 16px;
    }
    
    .detailed-breakdown {
        margin: 24px 12px;
    }
    
    .consensus-info {
        margin: 24px 12px;
        padding: 16px;
    }
    
    .cta-container {
        padding: 32px 12px;
    }
    
    .modal-content {
        margin: 12px;
        border-radius: 12px;
    }
    
    .mobile-nav {
        width: 100%;
        right: -100%;
    }
    
    .mobile-auth-section {
        padding: 20px;
    }
    
    .mobile-auth-section .user-info {
        gap: 16px;
    }
    
    .mobile-auth-section .token-display {
        padding: 16px 20px;
        font-size: 1rem;
    }
    
    .mobile-auth-section .user-avatar-button {
        padding: 16px 20px;
        font-size: 1rem;
        min-height: 56px;
    }
    
    .mobile-nav-signin .auth-button {
        padding: 16px 20px;
        font-size: 1rem;
        min-height: 52px;
    }
    
    .back-button {
        margin: 12px 12px 20px;
        padding: 10px 16px;
    }
    
    .processing-steps {
        padding: 0 12px;
    }
    
    .step {
        padding: 16px;
    }
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
.choose-file-btn:focus,
.start-analysis-btn:focus,
.primary-btn:focus,
.secondary-btn:focus,
.toggle-btn:focus,
.cancel-btn:focus,
.back-button:focus {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
}

.upload-zone:focus-within {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
}

/* Authentication Styles */
.auth-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.auth-button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-button:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.auth-button.logout-button {
    background: #dc2626;
}

.auth-button.logout-button:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.user-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.token-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f3f0ff, #ede9fe);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    color: #7c3aed;
    font-size: 0.875rem;
    border: 1px solid #c7d2fe;
    cursor: pointer;
    transition: all 0.2s ease;
}

.token-display:hover {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    border-color: #a855f7;
    transform: translateY(-1px);
}

.token-display i {
    width: 16px;
    height: 16px;
    color: #fbbf24;
}

/* User Avatar Styles */
.user-avatar-container {
    position: relative;
}

.user-avatar-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    overflow: hidden;
}

.user-avatar-button:hover {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.user-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-default {
    width: 20px;
    height: 20px;
    color: #6b7280;
}

/* User Dropdown Styles */
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
}

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

.dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dropdown-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dropdown-avatar-default {
    width: 20px;
    height: 20px;
    color: #6b7280;
}

.dropdown-user-details {
    flex: 1;
    min-width: 0;
}

.dropdown-name {
    display: block;
    font-weight: 600;
    color: #1f2937;
    font-size: 0.875rem;
    line-height: 1.2;
}

.dropdown-email {
    display: block;
    color: #6b7280;
    font-size: 0.75rem;
    line-height: 1.2;
    margin-top: 2px;
    word-break: break-all;
}

.dropdown-menu {
    padding: 8px;
}

.dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    background: none;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.dropdown-item:hover {
    background: #f9fafb;
    color: #7c3aed;
}

.dropdown-item i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Strategy Pricing */
.strategy-price {
    background: linear-gradient(135deg, #7c3aed, #3b82f6);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-left: auto;
}

.strategy-price.free {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.15s ease;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: scale(1);
    transition: transform 0.15s ease;
    will-change: transform;
}

.modal.hidden .modal-content {
    transform: scale(0.98);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    color: #6b7280;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.modal-close i {
    width: 20px;
    height: 20px;
}

.modal-body {
    padding: 32px;
}

/* Sign Up Modal */
.signup-incentive {
    text-align: center;
    margin-bottom: 32px;
}

.incentive-icon {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.incentive-icon i {
    width: 32px;
    height: 32px;
    color: white;
}

.signup-incentive p {
    margin-bottom: 8px;
    color: #374151;
}

.signup-incentive p:first-of-type {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

/* Top Up Modal */
.topup-info {
    text-align: center;
    margin-bottom: 32px;
}

.current-balance {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f3f0ff;
    padding: 12px 20px;
    border-radius: 12px;
    margin-top: 16px;
    color: #7c3aed;
    font-weight: 600;
}

.current-balance i {
    width: 20px;
    height: 20px;
    color: #fbbf24;
}

.topup-options {
    display: grid;
    gap: 16px;
    margin-bottom: 32px;
}

.topup-option {
    display: block;
    cursor: pointer;
}

.topup-option input[type="radio"] {
    display: none;
}

.topup-card {
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: border-color 0.15s ease, transform 0.15s ease;
    position: relative;
    background: white;
    will-change: transform;
}

.topup-card:hover {
    border-color: #7c3aed;
    transform: translateY(-1px);
}

.topup-option input[type="radio"]:checked + .topup-card {
    border-color: #7c3aed;
    background: linear-gradient(135deg, #fafbff, #f3f0ff);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.15);
}

.topup-card.popular {
    position: relative;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #7c3aed, #3b82f6);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.topup-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}

.topup-tokens {
    font-size: 1.125rem;
    font-weight: 600;
    color: #7c3aed;
    margin-bottom: 12px;
}

.topup-analyses {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.4;
}

.modal-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #7c3aed, #3b82f6);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

/* Responsive adjustments for modals */
@media (max-width: 768px) {
    .modal-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .modal-header, .modal-body {
        padding: 24px;
    }
    
    .topup-options {
        grid-template-columns: 1fr;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   MARKETING PAGES STYLES
   ======================================== */

/* Marketing Content Base */
.marketing-content {
    line-height: 1.6;
}

/* Marketing Hero Sections */
.marketing-content .hero-section {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 64px 0;
}

.marketing-content .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.marketing-content .hero-content.centered {
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

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

.hero-favicon {
    margin-bottom: 30px;
}

.main-favicon {
    width: 48px;
    height: 48px;
    opacity: 0.9;
}

.marketing-content .hero-text h1,
.hero-text-center h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    font-weight: 800;
}

.marketing-content .hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 50px;
    color: var(--text-secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.marketing-content .hero-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
}

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

.stat-card {
    background: var(--bg-primary);
    padding: 25px 15px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    min-width: 180px;
    flex: 1;
    max-width: 250px;
    transition: all 0.3s ease;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 10px;
    color: var(--primary-purple);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.marketing-content .hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    max-height: 24vh;
}

.marketing-content .hero-image-side {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Section Introduction */
.section-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

/* Stakes Section */
.stakes-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.stakes-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

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

.stake-item {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-light);
}

.stake-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
}

.stake-icon.danger {
    background: linear-gradient(135deg, var(--danger), var(--danger-dark));
}

.stake-icon.warning {
    background: linear-gradient(135deg, var(--warning), var(--warning-dark));
}

.stake-icon.info {
    background: linear-gradient(135deg, var(--info), var(--info-dark));
}

.stake-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.stake-item p {
    color: var(--text-secondary);
}

/* Use Cases Section */
.use-cases-section {
    padding: 100px 0;
}

.use-cases-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 80px;
    color: var(--text-primary);
}

/* Tab Styles */
.use-case-tabs {
    max-width: 1200px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-muted);
    padding: 4px;
}

.tab-button {
    background: transparent;
    border: none;
    padding: 16px 24px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 8px;
    flex: 1;
    justify-content: center;
    font-size: 1.2rem;
}

.tab-button:hover {
    color: var(--text-primary);
}

.tab-button.active {
    background: var(--bg-primary);
    color: var(--primary-purple);
    box-shadow: var(--shadow-sm);
}

.tab-button svg {
    margin-right: 8px;
}

.tab-content {
    position: relative;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.tab-panel.active {
    display: block;
}

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

@keyframes activeStepPulse {
    0% {
        box-shadow: 0 4px 16px rgba(124, 58, 237, 0.1);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 24px rgba(124, 58, 237, 0.25);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 4px 16px rgba(124, 58, 237, 0.1);
        transform: scale(1);
    }
}

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

.use-case-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
    background: var(--bg-primary);
    padding: 50px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.use-case-text h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--text-primary);
    font-weight: 700;
}

.use-case-text h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 600;
}

.use-case-text p {
    margin-bottom: 25px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.use-case-text ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.use-case-text li {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.use-case-image {
    background: var(--bg-secondary);
    border: 2px dashed var(--border-medium);
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    height: fit-content;
}

.cta-button {
    background: var(--primary-purple);
    color: var(--bg-primary);
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.cta-button:hover {
    background: var(--primary-purple-dark);
    transform: translateY(-2px);
}

/* Solution Section */
.solution-section {
    background: var(--bg-secondary);
    padding: 80px 0;
}

.solution-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--text-primary);
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.solution-item {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-light);
}

.solution-icon {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-light));
    color: var(--bg-primary);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.solution-item h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.solution-item p {
    color: var(--text-secondary);
}

/* Process Overview (How It Works) */
.process-overview {
    padding: 80px 0;
}

.process-overview h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.process-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.process-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-light));
    color: var(--bg-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.process-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.process-image img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
}

/* Analysis Levels */
.analysis-levels {
    background: var(--bg-secondary);
    padding: 80px 0;
}

.analysis-levels h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

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

.level-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 30px;
    border: 2px solid var(--border-light);
    position: relative;
    transition: all 0.3s;
}

.level-card:hover {
    border-color: var(--border-medium);
}

.level-card.popular {
    border-color: var(--primary-purple);
}

.level-card.premium {
    border-color: var(--success);
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-purple);
    color: var(--bg-primary);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.level-header {
    text-align: center;
    margin-bottom: 20px;
}

.level-icon {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-light));
    color: var(--bg-primary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.level-card.premium .level-icon {
    background: linear-gradient(135deg, var(--success), var(--success));
}

.level-header h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.level-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-purple);
}

.level-card.premium .level-price {
    color: var(--success);
}

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

.level-features {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.level-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--gray-600);
}

.level-features i {
    color: var(--success);
    width: 16px;
    height: 16px;
}

.level-accuracy {
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accuracy-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.accuracy-value {
    color: var(--success);
    font-weight: 600;
}

/* FAQ Section */
.faq-section {
    background: var(--bg-secondary);
    padding: 80px 0;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--text-primary);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-primary);
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.faq-question {
    padding: 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: var(--bg-secondary);
}

.faq-question h3 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
}

.faq-icon {
    color: var(--text-secondary);
    transition: transform 0.3s;
    width: 20px;
    height: 20px;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 24px 24px;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Final CTA Section */
.final-cta {
    background: linear-gradient(135deg, var(--text-primary), var(--gray-600));
    color: var(--bg-primary);
    padding: 100px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 25px;
    font-weight: 800;
}

.cta-content > p {
    font-size: 1.2rem;
    margin-bottom: 50px;
    opacity: 0.95;
}

.cta-offer {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.offer-badge {
    background: var(--accent);
    color: var(--text-primary);
    padding: 8px 20px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-weight: 600;
}

.cta-offer h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.cta-offer p {
    opacity: 0.9;
}

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

.btn-primary, .btn-secondary {
    padding: 18px 36px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.btn-primary {
    background: var(--primary-purple);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--primary-purple-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--bg-primary);
    border: 2px solid var(--bg-primary);
}

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

.cta-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    opacity: 0.9;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-item i {
    color: var(--success);
}

/* Navigation Link Updates */
.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-purple);
}

/* Marketing Page Desktop Design */
@media (min-width: 1024px) {
    .marketing-content .hero-stats {
        gap: 30px;
    }

    .stat-card {
        min-width: 200px;
        max-width: 280px;
    }
}

/* Marketing Page Responsive Design */
@media (max-width: 768px) {
    .marketing-content .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .marketing-content .hero-content.centered {
        max-width: 100%;
        padding: 0 20px;
    }

    .marketing-content .hero-text {
        text-align: center;
    }

    .marketing-content .hero-text h1,
    .hero-text-center h1 {
        font-size: 2.5rem;
    }

    .main-favicon {
        width: 40px;
        height: 40px;
    }

    .marketing-content .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        flex-wrap: wrap;
    }

    .stat-card {
        min-width: 280px;
        max-width: 320px;
        flex: none;
    }

    .use-case-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .tab-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .tab-button {
        padding: 12px 16px;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-features {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .process-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .process-step {
        flex-direction: row;
        text-align: left;
        gap: 15px;
    }

    .process-image {
        order: -1;
        padding: 0;
    }

    .process-image img {
        max-height: 250px;
    }

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

    .level-card.popular {
        transform: none;
    }
    
    /* FAQ mobile optimizations */
    .faq-question {
        padding: 16px;
        min-height: 56px;
    }
    
    .faq-answer {
        padding: 0 16px 16px;
    }
    
    /* Solution grid mobile */
    .solution-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    /* Stakes grid mobile */
    .stakes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Button improvements for touch */
    .btn-primary, .btn-secondary, .cta-button {
        min-height: 48px;
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 12px 24px;
    }
    
    /* Form elements */
    input, button, select, textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
} 