/* Download Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: all 0.3s ease;
    padding: 20px;
}

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

.modal-container {
    background: #0d1526;
    border: 1px solid #222222;
    border-radius: 0;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    clip-path: polygon(20px 0%, 100% 0%, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0% 100%, 0% 20px);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-overlay:not(.hidden) .modal-container {
    transform: scale(1);
}

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

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.modal-close {
    background: none;
    border: none;
    color: #666666;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.modal-close:hover {
    color: #ffffff;
    background: #222222;
}

.modal-body {
    padding: 32px;
}

.download-hero {
    text-align: center;
    margin-bottom: 32px;
}

.download-icon {
    width: 80px;
    height: 80px;
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.download-icon i {
    font-size: 32px;
    color: #ffffff;
}

.download-description {
    font-size: 16px;
    color: #aaaaaa;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

.download-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.info-card {
    background: linear-gradient(135deg, #0d1526 0%, #1a1a1a 100%);
    border: 1px solid rgba(0,210,255,0.15);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: rgba(0,210,255,0.12);
    transform: translateY(-2px);
}

.info-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(0,210,255,0.12) 0%, rgba(0,119,255,0.06) 100%);
    border: 1px solid rgba(0,210,255,0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 20px;
    color: #0077ff;
}

.info-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 4px;
}

.info-content p {
    font-size: 12px;
    color: #94a3b8;
}

.download-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.download-btn.primary {
    background: linear-gradient(135deg, #00d2ff, #0077ff);
    color: #0a192f;
    border: none;
}

.download-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,210,255,0.12);
}

.download-btn.secondary {
    background: transparent;
    border: 1px solid rgba(0,210,255,0.12);
    color: #00d2ff;
}

.download-btn.secondary:hover {
    background: rgba(0,210,255,0.12);
    border-color: #00d2ff;
}

.download-notes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0,210,255,0.12);
    border: 1px solid rgba(0,210,255,0.12);
    border-radius: 6px;
    font-size: 13px;
    color: #94a3b8;
}

.note i {
    color: #0077ff;
    font-size: 14px;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-container {
        margin: 20px;
        max-height: calc(100vh - 40px);
    }
    
    .modal-header {
        padding: 20px 24px;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 24px;
    }
    
    .download-info {
        grid-template-columns: 1fr;
    }
    
    .download-buttons {
        grid-template-columns: 1fr;
    }
}

/* Animation for modal appearance */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-container.show {
    animation: modalFadeIn 0.3s ease;
}

/* Blue shimmer on primary download button */
.download-btn.primary {
    position: relative;
    overflow: hidden;
}
.download-btn.primary::after {
    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.45s ease;
}
.download-btn.primary:hover::after { left: 100%; }
