/* ================================
   NUCLEAR PREMIUM DESIGN SYSTEM
   ================================ */

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

:root {
    /* Premium Color Palette */
    --primary: #667eea;
    --primary-dark: #764ba2;
    --accent: #f093fb;
    --accent-dark: #f5576c;
    --premium: #4facfe;
    --premium-dark: #00f2fe;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-premium: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-rainbow: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    
    /* Background */
    --bg-primary: #0a0a0f;
    --bg-secondary: #10101a;
    --bg-tertiary: #1a1a2e;
    
    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(20px);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-tertiary: rgba(255, 255, 255, 0.6);
    
    /* Shadows */
    --shadow-small: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-medium: 0 10px 40px rgba(0, 0, 0, 0.2);
    --shadow-large: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.3);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 4rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

/* ================================
   GLOBAL STYLES & RESET
   ================================ */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* ================================
   BACKGROUND EFFECTS
   ================================ */

.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 15%;
    background: var(--gradient-accent);
    animation-delay: -5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 30%;
    right: 30%;
    background: var(--gradient-premium);
    animation-delay: -10s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: -15s;
}

.shape-5 {
    width: 80px;
    height: 80px;
    top: 80%;
    left: 60%;
    background: var(--gradient-accent);
    animation-delay: -7s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(20px, 40px) scale(1.05); }
}

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.3;
}

/* ================================
   PREMIUM NAVIGATION
   ================================ */

.premium-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-xl);
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-brand i {
    color: var(--premium);
    font-size: 1.75rem;
    animation: pulse 2s ease-in-out infinite;
}

.nav-status {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: var(--space-xs) var(--space-sm);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff88;
    animation: blink 2s ease-in-out infinite;
}

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

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

/* ================================
   MAIN CONTAINER
   ================================ */

.main-container {
    padding-top: 100px;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
}

/* ================================
   HERO SECTION
   ================================ */

.hero-section {
    text-align: center;
    padding: var(--space-xxl) 0;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.hero-badge i {
    color: var(--accent);
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-rainbow);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-xxl);
    font-weight: 400;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

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

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

/* ================================
   FEATURES SECTION
   ================================ */

.features-section {
    padding: var(--space-xxl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xxl);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 400;
}

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

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

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

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large), var(--shadow-glow);
    border-color: rgba(102, 126, 234, 0.3);
}

.feature-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: var(--space-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    position: relative;
    z-index: 2;
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
    filter: blur(20px);
    animation: iconGlow 3s ease-in-out infinite;
}

@keyframes iconGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.5; }
}

.feature-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.feature-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.feature-tech-stack {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.tech-badge {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: var(--primary);
    padding: 4px var(--space-xs);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ================================
   UPLOAD SECTION
   ================================ */

.upload-section {
    padding: var(--space-xxl) 0;
}

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

.upload-header {
    text-align: center;
    margin-bottom: var(--space-xxl);
}

.upload-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.upload-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.upload-area {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 2px dashed var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xxl);
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.05);
}

.upload-area.drag-over {
    border-color: var(--accent);
    background: rgba(240, 147, 251, 0.1);
    transform: scale(1.02);
}

.upload-visual {
    position: relative;
    margin-bottom: var(--space-lg);
}

.upload-icon-large {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.upload-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%);
    animation: pulseRing 2s ease-out infinite;
}

.pulse-ring-2 {
    animation-delay: 0.5s;
}

.pulse-ring-3 {
    animation-delay: 1s;
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(0.1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

.upload-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.upload-content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    font-size: 1.125rem;
}

.upload-specs {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.upload-specs span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.upload-specs i {
    color: var(--accent);
}

.premium-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    position: relative;
    overflow: hidden;
}

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

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

.premium-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* ================================
   CUSTOM QUESTIONS
   ================================ */

.custom-questions {
    margin-top: var(--space-xl);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
}

.questions-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.questions-title i {
    color: var(--premium);
}

.questions-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.questions-input:focus {
    outline: none;
    border-color: var(--primary);
}

.questions-input::placeholder {
    color: var(--text-tertiary);
}

/* ================================
   ANALYSIS BUTTON
   ================================ */

.analysis-section {
    text-align: center;
    margin-top: var(--space-xxl);
}

.premium-btn-large {
    background: var(--gradient-accent);
    color: white;
    border: none;
    padding: var(--space-lg) var(--space-xxl);
    border-radius: var(--radius-lg);
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 300px;
}

.premium-btn-large:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    position: relative;
    z-index: 2;
}

.btn-price {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 800;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(20px);
}

.premium-btn-large:hover:not(:disabled) {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-large);
}

.premium-btn-large:hover:not(:disabled) .btn-glow {
    opacity: 0.6;
}

.analysis-note {
    margin-top: var(--space-md);
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* ================================
   LOADING OVERLAY
   ================================ */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-content {
    text-align: center;
    max-width: 400px;
}

.ai-brain {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-lg);
}

.brain-core {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: brainPulse 2s ease-in-out infinite;
}

.neural-network {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.neuron {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    animation: neuronPulse 1.5s ease-in-out infinite;
}

.neuron-1 { top: 10px; left: 30px; animation-delay: 0s; }
.neuron-2 { top: 30px; right: 20px; animation-delay: 0.3s; }
.neuron-3 { bottom: 20px; left: 15px; animation-delay: 0.6s; }
.neuron-4 { bottom: 30px; right: 30px; animation-delay: 0.9s; }

.connection {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, var(--premium), transparent);
    animation: connectionFlow 2s ease-in-out infinite;
}

.connection-1 {
    top: 40px;
    left: 40px;
    width: 40px;
    transform: rotate(45deg);
}

.connection-2 {
    top: 60px;
    right: 35px;
    width: 30px;
    transform: rotate(-30deg);
    animation-delay: 0.5s;
}

.connection-3 {
    bottom: 40px;
    left: 25px;
    width: 50px;
    transform: rotate(15deg);
    animation-delay: 1s;
}

@keyframes brainPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

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

@keyframes connectionFlow {
    0% { opacity: 0; transform: scaleX(0); }
    50% { opacity: 1; transform: scaleX(1); }
    100% { opacity: 0; transform: scaleX(0); }
}

.loading-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.loading-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: var(--space-lg);
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    animation: progressFlow 2s ease-in-out infinite;
}

@keyframes progressFlow {
    0% { width: 0%; }
    50% { width: 100%; }
    100% { width: 0%; }
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 768px) {
    .main-container {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }
    
    .premium-nav {
        padding: var(--space-md);
    }
    
    .hero-stats {
        gap: var(--space-md);
    }
    
    .stat-divider {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .upload-specs {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .preview-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: var(--space-sm);
        padding: var(--space-md);
    }
    
    .results-header {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .results-header h2 {
        font-size: 1.5rem;
    }
    
    .payment-section {
        margin-left: var(--space-md);
        margin-right: var(--space-md);
        padding: var(--space-lg);
    }
    
    .problem-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .problem-description {
        padding-left: 0;
        margin-top: var(--space-sm);
    }
    
    .purchase-link,
    .video-link {
        min-width: 120px;
        margin: var(--space-xs);
    }
    
    .warranty-card,
    .age-card {
        flex-direction: column;
        text-align: center;
    }
    
    .links-container {
        justify-content: center;
    }
    
    .analysis-section-title {
        font-size: 1.5rem;
    }
    
    .analysis-section-title::after {
        display: none;
    }
}

/* ================================
   PREMIUM CARD COMPONENT
   ================================ */

.premium-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-rainbow);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.premium-card:hover::before {
    opacity: 0.03;
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
    border-color: rgba(102, 126, 234, 0.3);
} 

/* ================================
   IMAGE PREVIEW GRID
   ================================ */

.preview-grid {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
}

.image-preview-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.image-preview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(102, 126, 234, 0.3);
}

.preview-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-preview-card:hover .preview-image img {
    transform: scale(1.05);
}

.remove-btn {
    position: absolute;
    top: var(--space-xs);
    right: var(--space-xs);
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff4757;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.remove-btn:hover {
    background: #ff4757;
    color: white;
    transform: scale(1.1);
    opacity: 1;
}

.preview-info {
    padding: var(--space-sm);
    text-align: center;
}

.file-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ================================
   ANALYZE BUTTON STATES
   ================================ */

.premium-btn-large.enabled {
    opacity: 1;
    cursor: pointer;
}

.premium-btn-large.enabled:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-large);
}

.premium-btn-large.enabled .btn-glow {
    opacity: 0.6;
}

/* ================================
   RESULTS SECTION
   ================================ */

.results-section {
    padding: var(--space-xxl) 0;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    margin-top: var(--space-xxl);
}

.results-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--glass-border);
}

.results-header h2 {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.results-header i {
    color: var(--accent);
}

.new-analysis-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.new-analysis-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.analysis-results {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.analysis-results h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin: var(--space-lg) 0 var(--space-sm) 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.analysis-results h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: var(--space-md) 0 var(--space-sm) 0;
}

.analysis-results strong {
    color: var(--text-primary);
    font-weight: 700;
}

.analysis-results p {
    margin-bottom: var(--space-md);
}

.analysis-results ul,
.analysis-results ol {
    padding-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.analysis-results li {
    margin-bottom: var(--space-xs);
}

.analysis-results a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.analysis-results a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* ================================
   PAYMENT SECTION UPDATES
   ================================ */

.payment-section {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xxl);
    margin-top: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.payment-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.payment-header p {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.payment-element {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
}

.payment-btn {
    background: var(--gradient-accent);
    color: white;
    border: none;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    width: 100%;
}

.payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* ================================
   ENHANCED ANALYSIS RESULTS STYLING
   ================================ */

.analysis-section-title {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: var(--space-xxl) 0 var(--space-lg) 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    position: relative;
}

.analysis-section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 1px;
    opacity: 0.3;
}

.analysis-subsection-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: var(--space-lg) 0 var(--space-md) 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(245, 87, 108, 0.2));
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    color: var(--text-primary);
}



.problem-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
    flex-wrap: wrap;
}

.problem-number {
    background: var(--gradient-accent);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
}

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

.problem-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    padding-left: calc(32px + var(--space-md));
}

/* ================================
   PURCHASE LINKS
   ================================ */

.purchase-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    margin: var(--space-sm);
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    min-width: 140px;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    color: white;
}

.purchase-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.purchase-link:hover::before {
    left: 100%;
}

.amazon-link {
    background: linear-gradient(135deg, #ff9500 0%, #ff6b35 100%);
    color: white;
}

.amazon-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 149, 0, 0.5);
}

.repairclinic-link {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: white;
}

.repairclinic-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.5);
}

.purchase-link i,
.video-link i {
    font-size: 1.2rem;
}

.purchase-link span,
.video-link span {
    font-weight: 600;
}

/* Remove the small text styling since we're not using it anymore */
.purchase-link small,
.video-link small {
    display: none;
}

/* ================================
   VIDEO LINKS
   ================================ */

.video-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    margin: var(--space-sm);
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    min-width: 120px;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: white;
}

.video-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.video-link:hover::before {
    left: 100%;
}

.youtube-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.5);
}









/* ================================
   WARRANTY CARDS
   ================================ */

.warranty-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin: var(--space-md) 0;
    position: relative;
    transition: all 0.3s ease;
}

.warranty-active {
    border-left: 4px solid #2ed573;
    background: linear-gradient(135deg, rgba(46, 213, 115, 0.1), rgba(46, 213, 115, 0.05));
}

.warranty-expired {
    border-left: 4px solid #ff4757;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.1), rgba(255, 71, 87, 0.05));
}

.warranty-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.warranty-active .warranty-icon {
    background: linear-gradient(135deg, #2ed573, #17a2b8);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 213, 115, 0.3);
}

.warranty-expired .warranty-icon {
    background: linear-gradient(135deg, #ff4757, #ff3838);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.warranty-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-xs) 0;
}

.warranty-content p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

/* ================================
   AGE CARDS
   ================================ */

.age-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(79, 172, 254, 0.1));
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin: var(--space-md) 0;
    position: relative;
}

.age-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
}

.age-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.age-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-xs) 0;
}

.age-value {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 500;
}

/* ================================
   PRICE AND PART NUMBER STYLING
   ================================ */

.price-range {
    background: linear-gradient(135deg, #2ed573, #17a2b8);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.875rem;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(46, 213, 115, 0.3);
}

.price {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
}

.part-number {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

/* ================================
   STYLED LISTS
   ================================ */

.styled-list {
    list-style: none;
    padding: 0;
    margin: var(--space-md) 0;
}

.styled-bullet {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

.styled-bullet::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 900;
    font-size: 1.2em;
}

.styled-bullet:hover {
    color: var(--text-primary);
}

/* ================================
   LINK CONTAINER STYLING
   ================================ */

.links-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin: var(--space-lg) 0;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ================================
   REPLACEMENT PARTS ENHANCEMENTS
   ================================ */

.problem-card.replacement-part {
    border-left: 4px solid #4facfe;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1), rgba(79, 172, 254, 0.05));
}

.problem-card.replacement-part:hover {
    border-color: rgba(79, 172, 254, 0.5);
    box-shadow: var(--shadow-medium), 0 0 20px rgba(79, 172, 254, 0.2);
}

.part-badge {
    background: var(--gradient-premium);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: auto;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(79, 172, 254, 0.3);
}



/* ================================
   MOBILE RESPONSIVE UPDATES
   ================================ */

/* ================================
   ACTION BUTTONS CONTAINER
   ================================ */

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.action-buttons .purchase-link,
.action-buttons .video-link {
    margin: 0;
    flex: 1;
    min-width: 140px;
    text-align: center;
    justify-content: center;
}

/* Enhanced problem cards for nuclear consumer appeal */
.problem-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin: var(--space-lg) 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.25);
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transition: left 0.6s ease;
}

.problem-card:hover::before {
    left: 100%;
}

.problem-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.problem-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.problem-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.problem-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 var(--space-md) 0;
    font-size: 1rem;
}

/* Analysis content structure */
.analysis-content {
    max-width: none;
}

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

.analysis-section-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--space-xl) 0;
    padding: var(--space-lg) 0 var(--space-md) 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.analysis-section-title i {
    color: var(--accent-blue);
    font-size: 1.6rem;
}

.analysis-subsection-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: var(--space-xl) 0 var(--space-md) 0;
    padding-left: var(--space-md);
    border-left: 3px solid var(--accent-blue);
}

/* Enhanced text styling */
.analysis-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
    font-size: 1rem;
}

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

/* Price and part number highlighting */
.price-range, .price {
    display: inline-block;
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0 2px;
}

.part-number {
    display: inline-block;
    background: linear-gradient(135deg, #6c5ce7 0%, #5a4fcf 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
    margin: 0 2px;
    letter-spacing: 0.5px;
} 

/* ================================
   BUSINESS LINKS SECTION
   ================================ */

.business-links {
    margin-top: var(--space-xl-2);
    padding: var(--space-xl);
    background: linear-gradient(145deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(102, 126, 234, 0.2);
    backdrop-filter: blur(15px);
    text-align: center;
}

.business-links-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--space-xl) 0;
    text-align: center;
}

.business-links-title i {
    color: var(--accent-blue);
    font-size: 1.4rem;
}

.business-buttons {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.business-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    min-width: 200px;
    justify-content: center;
    text-align: center;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.business-link::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.6s ease;
}

.business-link:hover::before {
    left: 100%;
}

.pickup-link {
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    color: white;
}

.pickup-link:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 40px rgba(0, 212, 170, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.estimate-link {
    background: linear-gradient(135deg, #6c5ce7 0%, #5a4fcf 100%);
    color: white;
}

.estimate-link:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 40px rgba(108, 92, 231, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.business-link i {
    font-size: 1.3rem;
}

.business-link span {
    font-weight: 600;
}

/* Make business links responsive */
@media (max-width: 768px) {
    .business-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .business-link {
        min-width: 250px;
        width: 100%;
        max-width: 300px;
    }
} 
