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

body {
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    min-height: 100vh;
    color: #e0e0e0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, rgba(0, 255, 65, 0.03) 0px, transparent 1px, transparent 2px, rgba(0, 255, 65, 0.03) 3px),
        repeating-linear-gradient(90deg, rgba(0, 255, 65, 0.03) 0px, transparent 1px, transparent 2px, rgba(0, 255, 65, 0.03) 3px);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    position: relative;
    z-index: 1;
    transform: scale(0.9);
    transform-origin: top center;
}

.header {
    margin-bottom: 15px;
    color: #00ff41;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
    position: relative;
}

.header-content {
    text-align: center;
}

.header h1 {
    font-size: 2rem;
    margin-bottom: 5px;
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.8), 0 0 40px rgba(0, 255, 65, 0.4);
    font-weight: 800;
    letter-spacing: 2px;
    color: #00ff41;
    text-transform: uppercase;
}

.header p {
    font-size: 0.95rem;
    opacity: 0.9;
    color: #7dd3fc;
    text-shadow: 0 0 5px rgba(125, 211, 252, 0.5);
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    position: absolute;
    right: 0;
}

.auth-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    color: #1f2937;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
    backdrop-filter: blur(10px);
    border: 1px solid #e2e8f0;
}

.auth-link:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.auth-link.primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.auth-link.primary:hover {
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

/* User Menu */
.user-menu {
    position: absolute;
    right: 0;
}

.user-avatar {
    height: 45px;
    padding: 0 18px;
    border-radius: 10px;
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 255, 65, 0.4);
    color: #00ff41;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 
        0 0 15px rgba(0, 255, 65, 0.2),
        inset 0 0 10px rgba(0, 255, 65, 0.05);
}

.user-avatar i {
    color: #00ff41;
    filter: drop-shadow(0 0 8px rgba(0, 255, 65, 0.6));
    transition: all 0.3s ease;
}

.user-avatar:hover {
    background: rgba(13, 17, 23, 0.95);
    border-color: #00ff41;
    transform: translateY(-2px);
    box-shadow: 
        0 4px 20px rgba(0, 255, 65, 0.4),
        0 0 25px rgba(0, 255, 65, 0.3),
        inset 0 0 15px rgba(0, 255, 65, 0.1);
    color: #00ff41;
}

.user-avatar:hover i {
    filter: drop-shadow(0 0 12px rgba(0, 255, 65, 0.9));
    transform: scale(1.1);
}

.user-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    min-width: 250px;
    display: none;
    animation: fadeIn 0.3s ease;
    z-index: 1000;
}

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

.user-info {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.user-info strong {
    display: block;
    color: #1e293b;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.user-info small {
    color: #64748b;
    font-size: 0.9rem;
}

.dropdown-divider {
    height: 1px;
    background: #e2e8f0;
}

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

.dropdown-item:first-of-type {
    border-radius: 12px 12px 0 0;
}

.dropdown-item:last-of-type {
    border-radius: 0 0 12px 12px;
}

.dropdown-item:hover {
    background: #f8fafc;
    color: #0891b2;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

/* User Name Badge in Header */
.user-name-badge {
    margin-left: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #00ff41;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.6);
}

/* Profile Side Panel */
.profile-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
}

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

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

.profile-panel-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 90%;
    height: 100%;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    border-left: 1px solid rgba(0, 255, 65, 0.3);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 255, 65, 0.1);
    animation: slideInRight 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #e0e0e0;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.profile-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    background: rgba(10, 14, 39, 0.95);
    border-bottom: 1px solid rgba(0, 255, 65, 0.3);
    color: #00ff41;
}

.profile-panel-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: #00ff41;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.close-panel-btn {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #00ff41;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-panel-btn:hover {
    background: rgba(0, 255, 65, 0.2);
    border-color: #00ff41;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
    transform: rotate(90deg);
}

.profile-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
}

/* Custom scrollbar for profile panel */
.profile-panel-body::-webkit-scrollbar {
    width: 8px;
}

.profile-panel-body::-webkit-scrollbar-track {
    background: rgba(0, 255, 65, 0.05);
    border-radius: 4px;
}

.profile-panel-body::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 65, 0.3);
    border-radius: 4px;
}

.profile-panel-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 65, 0.5);
}

/* Profile Info Card */
.profile-info-card {
    background: rgba(26, 31, 58, 0.8);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 255, 65, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 10px rgba(0, 255, 65, 0.1);
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #00ff41 0%, #00cc33 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.6);
    border: 2px solid rgba(0, 255, 65, 0.3);
}

.profile-avatar-large i {
    font-size: 4rem;
    color: #0a0e27;
}

.profile-info-card h3 {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
    color: #00ff41;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.profile-info-card p {
    margin: 0 0 15px 0;
    color: #94a3b8;
    font-size: 0.95rem;
}

.profile-badge {
    display: inline-block;
    background: linear-gradient(135deg, #00ff41 0%, #00cc33 100%);
    color: #0a0e27;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.4);
}

/* Settings Section */
.settings-section {
    margin-bottom: 25px;
}

.settings-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: rgba(26, 31, 58, 0.6);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.settings-item:hover {
    border-color: #00ff41;
    background: rgba(0, 255, 65, 0.1);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 255, 65, 0.2), 0 0 10px rgba(0, 255, 65, 0.1);
}

.settings-item-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00ff41 0%, #00cc33 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.4);
}

.settings-item-icon i {
    font-size: 1.3rem;
    color: #0a0e27;
}

.settings-item-icon.token {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.settings-item-icon.token i {
    color: white;
}

.settings-item-icon.affiliate {
    background: linear-gradient(135deg, #00ff41 0%, #00cc33 100%);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.4);
}

.settings-item-content {
    flex: 1;
}

.settings-item-content h4 {
    margin: 0 0 4px 0;
    color: #e0e0e0;
    font-size: 1rem;
    font-weight: 700;
}

.settings-item-content p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.85rem;
}

.settings-item > i:last-child {
    color: #00ff41;
    font-size: 1.2rem;
}

/* Quick Actions */
.quick-actions {
    padding-top: 20px;
    border-top: 1px solid rgba(0, 255, 65, 0.2);
}

.logout-btn {
    width: 100%;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 14px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
    border-color: #ef4444;
}

/* Responsive Profile Panel */
@media (max-width: 768px) {
    .profile-panel-content {
        width: 100%;
        max-width: 100%;
    }
}

/* How It Works Section - Merged Inside Main Content */
.how-it-works-merged {
    margin-bottom: 30px;
    padding: 0;
}

.how-it-works-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #764ba2;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 10px;
}

.how-it-works-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 2px;
}

.process-steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 20px;
    align-items: center;
}

.process-step {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 255, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid rgba(8, 145, 178, 0.15);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
    position: relative;
    overflow: hidden;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(8, 145, 178, 0.1), transparent);
    transition: left 0.6s;
}

.process-step:hover::before {
    left: 100%;
}

.process-step:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 30px rgba(8, 145, 178, 0.25);
    border-color: rgba(8, 145, 178, 0.4);
}

.step-icon {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.4s ease;
}

.process-step:nth-child(3) .step-icon {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.4);
}

.process-step:nth-child(5) .step-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.process-step:hover .step-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.step-number {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 30px;
    height: 30px;
    background: white;
    color: #764ba2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(8, 145, 178, 0.3);
}

.step-icon i {
    font-size: 2rem;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.step-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #764ba2;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.step-description {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

/* Section Divider */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(8, 145, 178, 0.3) 20%, rgba(8, 145, 178, 0.5) 50%, rgba(8, 145, 178, 0.3) 80%, transparent 100%);
    margin: 35px 0 30px;
    position: relative;
}

.section-divider::before {
    content: '⬇';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    color: #0891b2;
    font-size: 1.2rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.95), 0 3px 10px rgba(8, 145, 178, 0.3);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0);
    }
    50% {
        transform: translate(-50%, -50%) translateY(5px);
    }
}

.process-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0891b2;
    font-size: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.process-arrow i {
    filter: drop-shadow(0 2px 4px rgba(8, 145, 178, 0.3));
}

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

/* Responsive Design for How It Works */
@media (max-width: 1024px) {
    .process-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .process-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .section-divider::before {
        content: '⬇';
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

@media (max-width: 768px) {
    .how-it-works-merged {
        margin-bottom: 25px;
    }
    
    .how-it-works-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .process-step {
        padding: 20px 15px;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
    }
    
    .step-icon i {
        font-size: 1.6rem;
    }
    
    .step-number {
        width: 26px;
        height: 26px;
        font-size: 0.85rem;
        top: -6px;
        right: -6px;
    }
    
    .step-title {
        font-size: 1rem;
    }
    
    .step-description {
        font-size: 0.8rem;
    }
    
    .section-divider {
        margin: 25px 0 20px;
    }
    
    .section-divider::before {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
}

.main-content {
    background: transparent;
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 20px;
    box-shadow: none;
    border: none;
    margin-top: 0;
    margin-bottom: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 150px);
}

.upload-section {
    margin-bottom: 5px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area {
    border: 2px solid rgba(0, 255, 65, 0.6);
    border-style: solid;
    border-radius: 20px;
    padding: 80px 60px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(13, 17, 23, 0.98);
    box-shadow: 
        0 0 25px rgba(0, 255, 65, 0.4),
        inset 0 0 40px rgba(0, 255, 65, 0.08),
        0 0 0 1px rgba(0, 255, 65, 0.3);
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
    position: relative;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px dashed rgba(0, 255, 65, 0.6);
    border-radius: 22px;
    pointer-events: none;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
    animation: borderPulse 3s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% {
        opacity: 0.6;
        box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
    }
    50% {
        opacity: 0.9;
        box-shadow: 0 0 30px rgba(0, 255, 65, 0.7);
    }
}

.upload-area:hover {
    border-color: #00ff41;
    background: rgba(13, 17, 23, 0.98);
    box-shadow: 
        0 0 40px rgba(0, 255, 65, 0.5),
        inset 0 0 40px rgba(0, 255, 65, 0.1),
        0 0 0 1px rgba(0, 255, 65, 0.4);
}

.upload-area:hover::before {
    border-color: rgba(0, 255, 65, 0.7);
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.6);
}

.upload-area.dragover {
    border-color: #00ff41;
    background: rgba(0, 255, 65, 0.1);
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(0, 255, 65, 0.5);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.upload-content i {
    font-size: 5rem;
    color: #00ff41;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 20px rgba(0, 255, 65, 1));
    display: block;
    animation: iconGlow 2s ease-in-out infinite;
}

@keyframes iconGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(0, 255, 65, 1));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(0, 255, 65, 1.2));
        transform: scale(1.05);
    }
}

.upload-content h3 {
    font-size: 2rem;
    margin-bottom: 18px;
    color: #e0e0e0;
    font-weight: 600;
    text-shadow: 0 0 15px rgba(224, 224, 224, 0.4);
    letter-spacing: 0.5px;
}

.upload-content p {
    color: #b0b0b0;
    margin-bottom: 35px;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.browse-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.browse-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.upload-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.folder-btn.primary {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    font-size: 1.1rem;
    padding: 18px 40px;
    font-weight: 700;
    box-shadow: 
        0 6px 25px rgba(6, 182, 212, 0.5),
        0 0 30px rgba(6, 182, 212, 0.4);
    border: none;
    position: relative;
    overflow: hidden;
}

.folder-btn.primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 35px rgba(6, 182, 212, 0.7),
        0 0 40px rgba(6, 182, 212, 0.6);
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
}

/* OS-Style File Explorer */
.os-file-explorer {
    margin-top: 20px;
    width: 100%;
    transition: all 0.3s ease;
    transform: scale(0.95);
    transform-origin: top center;
}

.os-file-explorer.fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 99999 !important;
    background: #0a0e27;
    transform: scale(1) !important;
    transform-origin: top left !important;
}

.os-file-explorer.fullscreen .explorer-window {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 0;
    border: none;
    font-size: 1rem;
    margin: 0;
    padding: 0;
}

.os-file-explorer.fullscreen .explorer-content-container {
    height: calc(100vh - 60px) !important;
    max-height: calc(100vh - 60px) !important;
    border-radius: 0;
    overflow: hidden;
}

.os-file-explorer.fullscreen .file-tree-panel,
.os-file-explorer.fullscreen .file-viewer-panel {
    border-radius: 0;
}

.os-file-explorer.fullscreen .window-header {
    border-radius: 0;
}

.explorer-window {
    background: #0d1117;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 255, 65, 0.3);
    border: 1px solid rgba(0, 255, 65, 0.4);
    width: 100%;
    font-size: 0.9rem;
}

/* Window Header */
.window-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #475569;
}

.window-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.window-title i {
    color: #facc15;
    font-size: 1.3rem;
}

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

.window-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.analyze-window-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.analyze-window-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.analyze-window-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

.maximize-window-btn {
    background: #f59e0b;
    color: white;
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

.maximize-window-btn:hover {
    background: #d97706;
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.5);
}

.close-window-btn {
    background: #ef4444;
    color: white;
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
}

.close-window-btn:hover {
    background: #dc2626;
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.5);
}

/* Explorer Content Container */
.explorer-content-container {
    display: grid;
    grid-template-columns: 600px 1fr;
    height: 750px;
}

/* File Tree Panel */
.file-tree-panel {
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    height: 100%;
    width: 100%;
    min-width: 0;
}

.file-tree-panel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 10px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, rgba(248, 250, 252, 0.98));
    pointer-events: none;
    z-index: 1;
    opacity: 0.9;
}

.tree-panel-header {
    padding: 16px 20px;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: #334155;
    font-size: 1.05rem;
    flex-shrink: 0;
    z-index: 2;
}

.file-count-badge {
    background: #0891b2;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
}

.files-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    padding: 15px;
    scroll-behavior: smooth;
    min-height: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Custom Scrollbar for File List */
.files-list::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.files-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 5px;
    margin: 5px 0;
}

.files-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    border-radius: 5px;
    border: 2px solid #f1f5f9;
}

.files-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0e7490 0%, #0369a1 100%);
    border: 2px solid #e2e8f0;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.95) 0%, rgba(6, 182, 212, 0.95) 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    pointer-events: none;
    animation: bounce 2s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.4);
}

.scroll-indicator.visible {
    display: flex;
}

.scroll-indicator i {
    font-size: 1rem;
    animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(5px);
    }
}

/* File Viewer Panel */
.file-viewer-panel {
    display: flex;
    flex-direction: column;
    background: white;
}

/* File Tabs Container */
.file-tabs-container {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 0;
}

.file-tabs {
    display: flex;
    overflow-x: auto;
    gap: 2px;
}

.file-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #e2e8f0;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 150px;
    max-width: 220px;
    border-bottom: 2px solid transparent;
}

.file-tab:hover {
    background: #cbd5e1;
}

.file-tab.active {
    background: white;
    border-bottom-color: #0891b2;
}

.file-tab-icon {
    color: #64748b;
    font-size: 0.9rem;
}

.file-tab.active .file-tab-icon {
    color: #0891b2;
}

.file-tab-name {
    flex: 1;
    font-size: 0.85rem;
    color: #475569;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-tab.active .file-tab-name {
    color: #1e293b;
    font-weight: 700;
}

.file-tab-close {
    width: 18px;
    height: 18px;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.file-tab-close:hover {
    background: #ef4444;
    color: white;
}

/* File Content Area */
.file-content-area {
    flex: 1;
    overflow: auto;
    background: #ffffff;
    scroll-behavior: smooth;
}

/* Custom Scrollbar for Content Area */
.file-content-area::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.file-content-area::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 5px;
}

.file-content-area::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}

.file-content-area::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.empty-file-viewer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
    color: #94a3b8;
    padding: 60px 20px;
}

.empty-file-viewer i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.4;
}

.empty-file-viewer h3 {
    margin: 0 0 10px 0;
    color: #64748b;
    font-size: 1.4rem;
}

.empty-file-viewer p {
    margin: 0;
    font-size: 1rem;
}

.file-content-display {
    padding: 15px;
    display: none;
}

.file-content-display.active {
    display: block;
}

.file-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.file-content-header h3 {
    margin: 0;
    color: #1e293b;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-content-header h3 i {
    color: #0891b2;
}

.file-size-badge {
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

.file-code-preview {
    background: #1e293b;
    color: #e2e8f0;
    padding: 15px;
    border-radius: 10px;
    font-family: 'Monaco', 'Menlo', 'Consolas', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-x: auto;
    max-height: 700px;
    overflow-y: auto;
}

.file-code-preview pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Custom Scrollbar for Code Preview */
.file-code-preview::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.file-code-preview::-webkit-scrollbar-track {
    background: #0f172a;
    border-radius: 4px;
}

.file-code-preview::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 4px;
}

.file-code-preview::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

.file-code-preview::-webkit-scrollbar-corner {
    background: #0f172a;
}

/* Responsive Explorer */
@media (max-width: 1400px) {
    .explorer-content-container {
        grid-template-columns: 500px 1fr;
        height: 750px;
    }
}

@media (max-width: 1200px) {
    .explorer-content-container {
        grid-template-columns: 420px 1fr;
        height: 700px;
    }
}

@media (max-width: 1024px) {
    .explorer-content-container {
        grid-template-columns: 380px 1fr;
        height: 650px;
    }
}

@media (max-width: 768px) {
    .explorer-content-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .file-tree-panel {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        max-height: 400px;
    }
    
    .file-tree-panel::after {
        display: none;
    }
}

/* Folder Structure Styles - Clean Modern Design */
.folder-item {
    margin: 2px 0;
    min-width: fit-content;
    width: 100%;
    box-sizing: border-box;
}

.folder-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    min-width: fit-content;
    width: 100%;
    box-sizing: border-box;
}

.folder-header:hover {
    background: rgba(8, 145, 178, 0.08);
}

.folder-toggle {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 145, 178, 0.15);
    border-radius: 5px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.folder-toggle i {
    font-size: 0.8rem;
    color: #0891b2;
    font-weight: 700;
}

.folder-header:hover .folder-toggle {
    background: rgba(8, 145, 178, 0.25);
    transform: scale(1.1);
}

.folder-icon {
    color: #facc15;
    font-size: 1.15rem;
    transition: all 0.2s ease;
    min-width: 18px;
}

.folder-name {
    font-weight: 600;
    color: #555;
    flex: 1;
    font-size: 1.05rem;
}

.folder-count {
    font-size: 0.85rem;
    color: #999;
    font-weight: 500;
}

.folder-content {
    margin-left: 18px;
    border-left: 1px solid rgba(8, 145, 178, 0.1);
    padding-left: 10px;
    margin-top: 2px;
    min-width: fit-content;
    width: 100%;
    box-sizing: border-box;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: transparent;
    border-radius: 6px;
    border: none;
    transition: all 0.2s ease;
    margin: 2px 0;
    gap: 12px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

/* File Analyze Button */
.file-analyze-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    opacity: 1;
    visibility: visible;
    flex-shrink: 0;
    flex-grow: 0;
    min-width: 90px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.file-analyze-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.file-analyze-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

/* View Results Button (after analysis) */
.file-analyze-btn.view-results-btn {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.3);
}

.file-analyze-btn.view-results-btn:hover {
    background: linear-gradient(135deg, #0e7490 0%, #0c5e78 100%);
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.5);
}

.file-analyze-btn.view-results-btn:active {
    box-shadow: 0 2px 6px rgba(8, 145, 178, 0.4);
}

.file-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-item:hover {
    background: rgba(8, 145, 178, 0.05);
}

/* Code file styling - determined by icon and button color */
.code-file .file-details {
    cursor: pointer;
    padding: 8px;
    margin: -8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.code-file .file-details:hover {
    background: rgba(8, 145, 178, 0.1);
}

.code-file .file-details i {
    color: #0891b2;
}

.code-file .file-name {
    color: #333;
    font-weight: 500;
}

.clickable-file {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

/* Non-coding file styling - determined by icon and OK badge */
.non-coding-file .file-details i {
    color: #94a3b8;
}

.non-coding-file .file-name {
    color: #666;
    font-weight: 400;
}

.ok-badge {
    background: #10b981;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ok-badge i {
    font-size: 0.7rem;
}

.file-details {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.file-details i {
    font-size: 1.1rem;
    min-width: 18px;
    flex-shrink: 0;
}

.file-name {
    flex: 1;
    font-size: 1rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    color: #999;
    font-size: 0.85rem;
    font-weight: 500;
    margin-right: 8px;
    flex-shrink: 0;
    white-space: nowrap;
}

.remove-file-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.remove-file-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
}

.analyze-single-btn {
    background: #0891b2;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.analyze-single-btn:hover {
    background: #0e7490;
    transform: translateY(-1px);
}

.analyze-single-btn.viewed {
    background: #06b6d4;
}

.analyze-single-btn.viewed:hover {
    background: #0891b2;
    transform: translateY(-1px);
}

.analyze-single-btn i {
    font-size: 0.85rem;
}

.analyze-single-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.file-details i {
    font-size: 1.5rem;
    color: #4caf50;
}

.file-details span {
    flex: 1;
    font-weight: 600;
    color: #2e7d32;
}

.remove-btn {
    background: #ff5252;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    background: #d32f2f;
    transform: scale(1.1);
}

.api-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    padding: 30px;
    background: rgba(8, 145, 178, 0.05);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    border: 1px solid rgba(8, 145, 178, 0.1);
}

.api-input {
    flex: 1;
}


.api-input-group {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.api-input-group:focus-within {
    border-color: #667eea;
}

.api-input-group input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    outline: none;
    font-size: 1rem;
}

.toggle-btn {
    background: #f0f0f0;
    border: none;
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-btn:hover {
    background: #e0e0e0;
}

.analyze-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 18px 50px;
    border-radius: 30px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    min-width: 240px;
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

.analyze-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.6);
}

.analyze-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.results-section {
    margin-top: 30px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.results-header h2 {
    color: #333;
    font-size: 1.8rem;
}

.loading {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #764ba2;
    font-weight: 600;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(8, 145, 178, 0.2);
    border-top: 3px solid #0891b2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 15px rgba(8, 145, 178, 0.3);
}

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

.summary-section {
    margin-bottom: 25px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.summary-section h3 {
    margin-bottom: 15px;
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Segoe UI', 'Roboto', 'Inter', 'Arial', sans-serif;
    letter-spacing: 0.01em;
}

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

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.2s ease;
    border: 2px solid;
}

.summary-item:hover {
    transform: translateY(-2px);
}

.summary-item.critical {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fca5a5;
}

.summary-item.warning {
    background: #fffbeb;
    color: #d97706;
    border-color: #fcd34d;
}

.summary-item.info {
    background: #f0f9ff;
    color: #0284c7;
    border-color: #7dd3fc;
}

/* Floating Download Button */
.floating-download-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    color: white;
    border: none;
    padding: 18px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(8, 145, 178, 0.5);
    z-index: 1000;
    display: none;
    align-items: center;
    gap: 10px;
    animation: floatPulse 3s ease-in-out infinite;
}

.floating-download-btn.visible {
    display: flex;
}

.floating-download-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 40px rgba(8, 145, 178, 0.7);
    background: linear-gradient(135deg, #0e7490 0%, #0369a1 100%);
}

.floating-download-btn i {
    font-size: 1.2rem;
    animation: downloadBounce 2s ease-in-out infinite;
}

@keyframes floatPulse {
    0%, 100% {
        box-shadow: 0 8px 30px rgba(8, 145, 178, 0.5);
    }
    50% {
        box-shadow: 0 10px 35px rgba(8, 145, 178, 0.7);
    }
}

@keyframes downloadBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.summary-item i {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.summary-item .count {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1;
}

.summary-item .label {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.file-summary-section {
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.file-summary-section h3 {
    margin-bottom: 20px;
    color: #1e293b;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Segoe UI', 'Roboto', 'Inter', 'Arial', sans-serif;
    letter-spacing: 0.01em;
}

.file-summary-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Custom scrollbar for files list */
.file-summary-grid::-webkit-scrollbar {
    width: 10px;
}

.file-summary-grid::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 5px;
}

.file-summary-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(8, 145, 178, 0.3);
}

.file-summary-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0e7490 0%, #0891b2 100%);
    box-shadow: 0 4px 8px rgba(8, 145, 178, 0.5);
}

.file-summary-item {
    background: #f8fafc;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.file-summary-item:hover {
    background: white;
    border-color: #0891b2;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.25);
    transform: translateX(3px);
}

.file-summary-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.file-summary-header i {
    color: #0891b2;
    font-size: 1.1rem;
}

.file-summary-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
    font-family: 'Segoe UI', 'Roboto', 'Inter', 'Arial', sans-serif;
    letter-spacing: 0.01em;
}

.file-summary-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.file-summary-stats .stat {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Segoe UI', 'Roboto', 'Inter', 'Arial', sans-serif;
    border: 1px solid;
    letter-spacing: 0.01em;
}

.file-summary-stats .stat.critical {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fca5a5;
}

.file-summary-stats .stat.warning {
    background: #fffbeb;
    color: #d97706;
    border-color: #fcd34d;
}

.file-summary-stats .stat.info {
    background: #f0f9ff;
    color: #0284c7;
    border-color: #7dd3fc;
}

.issues-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.issues-section h3 {
    margin-bottom: 15px;
    color: #1e293b;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Segoe UI', 'Roboto', 'Inter', 'Arial', sans-serif;
    letter-spacing: 0.01em;
}

.grouping-info {
    background: rgba(8, 145, 178, 0.1);
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 24px;
    color: #764ba2;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 3px solid #0891b2;
    line-height: 1.6;
}

.grouping-info i {
    color: #0891b2;
    font-size: 1rem;
}

.affected-files-badge {
    background: rgba(8, 145, 178, 0.15);
    color: #764ba2;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px;
}

.affected-files-list {
    margin: 16px 0;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.9) 100%);
    border-radius: 8px;
    border-left: 3px solid #0891b2;
}

.affected-files-list h4 {
    margin: 0 0 8px 0;
    color: #764ba2;
    font-size: 0.85rem;
    font-weight: 700;
}

.file-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.file-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: white;
    border: 1px solid rgba(8, 145, 178, 0.2);
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.8rem;
    color: #555;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.file-chip:hover {
    background: rgba(8, 145, 178, 0.1);
    border-color: rgba(8, 145, 178, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(8, 145, 178, 0.15);
}

.file-chip i {
    color: #0891b2;
    font-size: 0.85rem;
}

.bulk-fix-info {
    background: rgba(8, 145, 178, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    color: #764ba2;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 3px solid #0891b2;
}

.bulk-fix-info i {
    color: #facc15;
    font-size: 1rem;
}

.ai-fix-btn.bulk-fix {
    background: #f59e0b;
    padding: 10px 20px;
}

.ai-fix-btn.bulk-fix:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.ai-fix-btn.bulk-fix i {
    font-size: 1rem;
}

.issues-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.issue-item {
    padding: 16px;
    border-radius: 10px;
    border: 2px solid;
    background: white;
    transition: all 0.2s ease;
    position: relative;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.issue-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.issue-file-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(8, 145, 178, 0.3);
    transition: all 0.3s ease;
}

.issue-file-badge i {
    font-size: 1rem;
}

.issue-file-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.5);
}

.issue-item.critical {
    border-color: #ef4444;
    background: #fef2f2;
    box-shadow: 0 3px 12px rgba(239, 68, 68, 0.2);
}

.issue-item.critical:hover {
    border-color: #dc2626;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
}

.issue-item.warning {
    border-color: #f59e0b;
    background: #fffbeb;
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.2);
}

.issue-item.warning:hover {
    border-color: #d97706;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.issue-item.info {
    border-color: #0284c7;
    background: #f0f9ff;
    box-shadow: 0 3px 12px rgba(2, 132, 199, 0.2);
}

.issue-item.info:hover {
    border-color: #0369a1;
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.3);
}

/* Grouped issue items - ensure proper styling */
.issue-item.grouped {
    padding: 20px;
}

.issue-item.grouped .issue-header {
    margin-bottom: 16px;
}

.issue-item.grouped .affected-files-list {
    margin: 16px 0;
}

.issue-item.grouped .issue-description {
    margin-top: 16px;
    margin-bottom: 16px;
}

.issue-item.grouped .issue-suggestion {
    margin-top: 16px;
    margin-bottom: 16px;
}

.issue-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 12px 16px;
    border-radius: 10px;
    margin: 0 0 16px 0;
    border: 2px solid #0891b2;
    box-shadow: 0 2px 8px rgba(8, 145, 178, 0.15);
}

.issue-header i {
    font-size: 1.2rem;
    opacity: 0.9;
}

.issue-header .issue-title {
    font-weight: 700;
    font-size: 1.05rem;
    font-family: 'Segoe UI', 'Roboto', 'Inter', 'Arial', sans-serif;
    color: #0f172a;
    flex: 1;
    line-height: 1.5;
    letter-spacing: 0.01em;
}

.issue-header .issue-severity {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
}

.issue-item.critical .issue-severity {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.issue-item.warning .issue-severity {
    background: #f59e0b;
    color: white;
    border-color: #f59e0b;
}

.issue-item.info .issue-severity {
    background: #0284c7;
    color: white;
    border-color: #0284c7;
}

.issue-description {
    margin-bottom: 16px;
    line-height: 1.7;
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'Segoe UI', 'Roboto', 'Inter', 'Arial', sans-serif;
    background: linear-gradient(135deg, #fef9c3 0%, #fef3c7 100%);
    padding: 14px 16px 14px 70px;
    border-radius: 10px;
    border-left: 4px solid #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
    position: relative;
    letter-spacing: 0.01em;
    min-height: 50px;
}

.issue-description::before {
    content: '⚠️';
    position: absolute;
    left: 18px;
    top: 14px;
    font-size: 1.4rem;
    background: #fef3c7;
    padding: 0;
    border-radius: 50%;
    pointer-events: none;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
}

.issue-suggestion {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    padding: 14px 16px;
    border-radius: 8px;
    border-left: 4px solid #10b981;
    margin-top: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.issue-suggestion h4 {
    color: #059669;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Segoe UI', 'Roboto', 'Inter', 'Arial', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.01em;
}

.issue-suggestion p {
    color: #065f46;
    line-height: 1.5;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Segoe UI', 'Roboto', 'Inter', 'Arial', sans-serif;
    letter-spacing: 0.01em;
}

/* AI Assistance Styles */
.ai-assistance {
    margin-top: 12px;
    padding: 12px;
    background: #faf5ff;
    border-radius: 8px;
    border: 1px solid #e9d5ff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ai-fix-btn {
    background: #0891b2;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    user-select: none;
    width: auto;
    max-width: 100%;
}

.ai-fix-btn:hover {
    background: #0e7490;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
}

.ai-prompt {
    background: white;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #e9d5ff;
    margin-top: 10px;
    width: 100%;
}

.ai-prompt h4 {
    color: #7c3aed;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.prompt-content textarea {
    width: 100%;
    min-height: 200px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', 'Consolas', 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    resize: vertical;
    background: #f8fafc;
    color: #1e293b;
    transition: all 0.2s ease;
}

.prompt-content textarea:focus {
    outline: none;
    border-color: #0891b2;
    background: white;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

.prompt-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.copy-btn, .open-cursor-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-btn {
    background: #10b981;
    color: white;
}

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

.open-cursor-btn {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(6, 182, 212, 0.3);
}

.open-cursor-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.5);
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 8px 30px rgba(8, 145, 178, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    max-width: 400px;
    border: 1px solid rgba(8, 145, 178, 0.2);
    border-left: 4px solid #0891b2;
    animation: slideIn 0.3s ease;
}

.notification.info {
    border-left-color: #17a2b8;
}

.notification.success {
    border-left-color: #28a745;
}

.notification i {
    font-size: 1.2rem;
    color: #0891b2;
}

.notification.info i {
    color: #06b6d4;
}

.notification.success i {
    color: #10b981;
}

.notification.warning {
    border-left-color: #ffc107;
}

.notification.warning i {
    color: #ffc107;
}

.notification button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
    margin-left: auto;
}

.notification button:hover {
    background: #f0f0f0;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    opacity: 0.8;
    padding: 10px 0;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    z-index: 999;
    border-top: 1px solid rgba(0, 255, 65, 0.2);
}

.footer p {
    margin: 0;
    font-size: 0.85rem;
    color: #7dd3fc;
}

/* Full Screen Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.4s ease;
    overflow: hidden;
}

/* Matrix-style grid overlay */
.loading-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, rgba(0, 255, 65, 0.03) 0px, transparent 1px, transparent 2px, rgba(0, 255, 65, 0.03) 3px),
        repeating-linear-gradient(90deg, rgba(0, 255, 65, 0.03) 0px, transparent 1px, transparent 2px, rgba(0, 255, 65, 0.03) 3px);
    opacity: 0.8;
    animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.5; }
}

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

@keyframes wave {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

.loading-content {
    text-align: center;
    color: #00ff41;
    padding: 40px;
    max-width: 650px;
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease;
}

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

.loading-spinner-large {
    width: 120px;
    height: 120px;
    position: relative;
    margin: 0 auto 40px;
}

.loading-spinner-large::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(0, 255, 65, 0.2);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.loading-spinner-large::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: #00ff41;
    border-right-color: #00d000;
    border-radius: 50%;
    animation: spinDual 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    box-shadow: 0 0 40px rgba(0, 255, 65, 0.9);
}

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

.loading-text {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #00ff41;
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.9);
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: terminalGlow 2s ease-in-out infinite;
}

@keyframes terminalGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(0, 255, 65, 0.9);
    }
    50% {
        text-shadow: 
            0 0 30px rgba(0, 255, 65, 1),
            0 0 60px rgba(0, 255, 65, 0.7),
            0 0 90px rgba(0, 255, 65, 0.5);
    }
}

.loading-subtext {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.6;
    font-weight: 400;
    color: #7dd3fc;
    text-shadow: 0 0 10px rgba(125, 211, 252, 0.6);
}

.loading-subtext i {
    color: #00ff41;
    filter: drop-shadow(0 0 8px rgba(0, 255, 65, 0.8));
}

.loading-progress {
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 28px;
    background: rgba(0, 255, 65, 0.1);
    border-radius: 30px;
    display: inline-block;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 255, 65, 0.5);
    animation: progressPulse 2s ease-in-out infinite;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 255, 65, 0.4);
    min-width: 280px;
    color: #00ff41;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
}

.loading-progress i {
    color: #00ff41;
    filter: drop-shadow(0 0 10px rgba(0, 255, 65, 1));
}

@keyframes progressPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 4px 20px rgba(0, 0, 0, 0.5),
            0 0 30px rgba(0, 255, 65, 0.4);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 
            0 6px 30px rgba(0, 0, 0, 0.7),
            0 0 50px rgba(0, 255, 65, 0.7);
    }
}

/* Loading Icon in Spinner */
.loading-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.8rem;
    color: #00ff41;
    animation: iconPulse 2s ease-in-out infinite;
    z-index: 2;
    filter: drop-shadow(0 0 20px rgba(0, 255, 65, 1));
}

@keyframes iconPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.85;
    }
}

/* Floating Particles */
.loading-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(0, 255, 65, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: matrixFloat 20s infinite;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.6);
}

.particle:nth-child(1) {
    width: 60px;
    height: 60px;
    left: 10%;
    top: -10%;
    animation-duration: 15s;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 40px;
    height: 40px;
    right: 15%;
    top: -15%;
    animation-duration: 18s;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    width: 30px;
    height: 30px;
    left: 25%;
    top: -5%;
    animation-duration: 12s;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    width: 80px;
    height: 80px;
    right: 20%;
    top: -20%;
    animation-duration: 20s;
    animation-delay: 1s;
}

.particle:nth-child(5) {
    width: 50px;
    height: 50px;
    left: 5%;
    top: -8%;
    animation-duration: 16s;
    animation-delay: 3s;
}

.particle:nth-child(6) {
    width: 70px;
    height: 70px;
    right: 8%;
    top: -12%;
    animation-duration: 14s;
    animation-delay: 5s;
}

.particle:nth-child(7) {
    width: 35px;
    height: 35px;
    left: 50%;
    top: -7%;
    animation-duration: 13s;
    animation-delay: 6s;
}

.particle:nth-child(8) {
    width: 45px;
    height: 45px;
    right: 30%;
    top: -10%;
    animation-duration: 17s;
    animation-delay: 2.5s;
}

@keyframes matrixFloat {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(100vh) translateX(50px) scale(0.5);
        opacity: 0;
    }
}

/* Loading Progress Icon */
.loading-progress i {
    margin-right: 8px;
}

.loading-subtext i {
    margin-right: 8px;
    font-size: 1rem;
}

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

/* Full Screen Results Page - Modern Clean Design */
.results-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    z-index: 9998;
    overflow-y: auto;
    overflow-x: hidden;
    animation: fadeIn 0.4s ease;
    scroll-behavior: smooth;
    font-family: 'Segoe UI', 'Roboto', 'Inter', 'Arial', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Matrix-style grid overlay for results page */
.results-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, rgba(0, 255, 65, 0.02) 0px, transparent 1px, transparent 2px, rgba(0, 255, 65, 0.02) 3px),
        repeating-linear-gradient(90deg, rgba(0, 255, 65, 0.02) 0px, transparent 1px, transparent 2px, rgba(0, 255, 65, 0.02) 3px);
    pointer-events: none;
    z-index: 0;
}

/* Custom scrollbar for results page */
.results-page::-webkit-scrollbar {
    width: 12px;
}

.results-page::-webkit-scrollbar-track {
    background: #0a0e27;
}

.results-page::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00ff41 0%, #00d000 100%);
    border-radius: 6px;
    border: 2px solid #0a0e27;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.9);
}

.results-page::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00d000 0%, #00ff41 100%);
    box-shadow: 0 0 20px rgba(0, 255, 65, 1);
}

.results-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
    min-height: 100vh;
    transform: scale(0.9);
    transform-origin: top center;
}

.results-page-header {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    backdrop-filter: blur(10px);
    padding: 25px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 255, 65, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 255, 65, 0.4);
}

.results-page-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.results-page-title i {
    font-size: 2.5rem;
    color: #00ff41;
    filter: drop-shadow(0 0 15px rgba(0, 255, 65, 0.9));
}

.results-page-title h1 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    color: #00ff41;
    letter-spacing: -0.5px;
    text-shadow: 0 0 15px rgba(0, 255, 65, 0.7);
}

.back-to-upload-btn {
    background: rgba(13, 17, 23, 0.8);
    color: #7dd3fc;
    border: 1.5px solid rgba(125, 211, 252, 0.4);
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-to-upload-btn:hover {
    background: rgba(13, 17, 23, 1);
    border-color: #7dd3fc;
    transform: translateX(-3px);
    box-shadow: 0 4px 15px rgba(125, 211, 252, 0.4);
}

.results-page-content {
    background: transparent;
    padding: 0;
    font-family: 'Segoe UI', 'Roboto', 'Inter', 'Arial', sans-serif;
}

/* Clear fonts for all result page text elements */
.results-page-content * {
    font-family: 'Segoe UI', 'Roboto', 'Inter', 'Arial', sans-serif;
}

.results-page-content .issue-description,
.results-page-content .issue-suggestion,
.results-page-content .file-summary-name,
.results-page-content .file-summary-stats,
.results-page-content .summary-item,
.results-page-content .tab-content {
    font-family: 'Segoe UI', 'Roboto', 'Inter', 'Arial', sans-serif;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Ensure grouped issue styles apply in results page */
.results-page-content .issue-item.grouped {
    padding: 20px;
    border-radius: 10px;
    border: 2px solid;
    background: white;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.results-page-content .issue-item.grouped .issue-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 12px 16px;
    border-radius: 10px;
    margin: 0 0 16px 0;
    border: 2px solid #0891b2;
    box-shadow: 0 2px 8px rgba(8, 145, 178, 0.15);
}

.results-page-content .issue-item.grouped .affected-files-list {
    margin: 16px 0;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.9) 100%);
    border-radius: 8px;
    border-left: 3px solid #0891b2;
}

.results-page-content .issue-item.grouped .issue-description {
    margin-bottom: 16px;
    line-height: 1.7;
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 500;
    background: linear-gradient(135deg, #fef9c3 0%, #fef3c7 100%);
    padding: 14px 16px 14px 70px;
    border-radius: 10px;
    border-left: 4px solid #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
    position: relative;
    letter-spacing: 0.01em;
    min-height: 50px;
}

.results-page-content .issue-item.grouped .issue-suggestion {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    padding: 14px 16px;
    border-radius: 8px;
    border-left: 4px solid #10b981;
    margin-top: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.results-page-content .issue-item.grouped .ai-assistance {
    margin-top: 16px;
}

.results-page-content .issue-item.grouped.critical {
    border-color: #ef4444;
    background: #fef2f2;
    box-shadow: 0 3px 12px rgba(239, 68, 68, 0.2);
}

.results-page-content .issue-item.grouped.warning {
    border-color: #f59e0b;
    background: #fffbeb;
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.2);
}

.results-page-content .issue-item.grouped.info {
    border-color: #0284c7;
    background: #f0f9ff;
    box-shadow: 0 3px 12px rgba(2, 132, 199, 0.2);
}

/* Responsive Design for Results Page */
@media (max-width: 768px) {
    .results-page-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .results-page-title {
        flex-direction: column;
        gap: 15px;
    }
    
    .results-page-title h1 {
        font-size: 1.8rem;
    }
    
    .results-page-title i {
        font-size: 2.5rem;
    }
    
    .results-page-content {
        padding: 25px 20px;
    }
}

/* Tabs Container Styles */
.tabs-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin-top: 25px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.tabs-header {
    display: flex;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    padding: 0;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 18px 25px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Segoe UI', 'Roboto', 'Inter', 'Arial', sans-serif;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    border-bottom: 3px solid transparent;
    letter-spacing: 0.01em;
}

.tab-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.tab-btn:hover {
    background: rgba(8, 145, 178, 0.05);
    color: #0891b2;
}

.tab-btn:hover i {
    transform: scale(1.1);
}

.tab-btn.active {
    background: white;
    color: #0891b2;
    border-bottom-color: #0891b2;
}

.tab-btn.active i {
    color: #0891b2;
}

.tab-badge {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.tab-btn.active .tab-badge {
    background: linear-gradient(135deg, #0e7490 0%, #0369a1 100%);
    box-shadow: 0 2px 8px rgba(8, 145, 178, 0.4);
}

.tabs-content {
    position: relative;
}

.tab-content {
    display: none;
    padding: 25px;
    animation: fadeInTab 0.3s ease;
    background: white;
    font-family: 'Segoe UI', 'Roboto', 'Inter', 'Arial', sans-serif;
}

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

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

.tab-content .file-summary-section {
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: none;
}

.tab-content .file-summary-section h3 {
    margin-bottom: 20px;
    color: #1e293b;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Segoe UI', 'Roboto', 'Inter', 'Arial', sans-serif;
    letter-spacing: 0.01em;
}

.tab-content .issues-section {
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

/* Responsive Tabs */
@media (max-width: 768px) {
    .tab-btn {
        padding: 15px 12px;
        font-size: 0.9rem;
        flex-direction: column;
        gap: 6px;
    }
    
    .tab-btn span:not(.tab-badge) {
        font-size: 0.85rem;
    }
    
    .tab-btn i {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .tab-btn {
        padding: 12px 8px;
    }
    
    .tab-btn span:not(.tab-badge) {
        display: none;
    }
    
    .tab-badge {
        position: absolute;
        top: 8px;
        right: 8px;
        font-size: 0.65rem;
        padding: 2px 6px;
        min-width: 20px;
    }
}

/* Download Prompts Button Styles */

.summary-item.download-prompts i:first-child {
    position: relative;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .main-content {
        padding: 20px 15px;
        min-height: calc(100vh - 120px);
    }
    
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-content {
        order: 2;
    }
    
    .user-menu, .auth-buttons {
        order: 1;
        align-self: flex-end;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .api-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .upload-area {
        padding: 50px 30px;
        max-width: 100%;
    }
    
    .upload-content i {
        font-size: 3.5rem;
        margin-bottom: 20px;
    }
    
    .upload-content h3 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
    
    .upload-content p {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
    
    .folder-btn.primary {
        padding: 16px 32px;
        font-size: 1rem;
    }
    
    .auth-link {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .main-content {
        padding: 15px 10px;
        min-height: calc(100vh - 100px);
    }
    
    .upload-area {
        padding: 40px 20px;
        max-width: 100%;
    }
    
    .upload-content i {
        font-size: 3rem;
        margin-bottom: 15px;
    }
    
    .upload-content h3 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    
    .upload-content p {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }
    
    .folder-btn.primary {
        padding: 14px 28px;
        font-size: 0.95rem;
    }
    
    .loading-text {
        font-size: 1.6rem;
    }
    
    .loading-subtext {
        font-size: 1rem;
    }
    
    .loading-spinner-large {
        width: 80px;
        height: 80px;
    }
    
    .loading-icon {
        font-size: 2rem;
    }
    
    .loading-progress {
        font-size: 0.9rem;
        padding: 12px 20px;
        min-width: 200px;
    }
    
    .particle {
        display: none;
    }
}
