/* CSS cho Download Secure Frontend v1.1 */
.mauthemewpgiare-download-wrapper {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.mauthemewpgiare-download-btn {
    background: linear-gradient(135deg, #4fd1c7 0%, #14b8a6 100%);
    color: white;
    border: none;
    padding: 18px 36px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(79, 209, 199, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

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

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

.mauthemewpgiare-download-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(79, 209, 199, 0.6);
}

.mauthemewpgiare-download-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.mauthemewpgiare-download-btn .btn-icon {
    font-size: 20px;
    animation: pulse 2s infinite;
}

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

.mauthemewpgiare-download-btn .btn-text {
    font-weight: 700;
}

/* Enhanced Pass Input Form Styles */
.pass-input-form {
    text-align: center;
    padding: 20px;
}

.pass-input-form .swal2-input {
    font-size: 18px;
    text-align: center;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    border: 3px solid #14b8a6;
    border-radius: 15px;
    padding: 18px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.2);
    transition: all 0.3s ease;
}

.pass-input-form .swal2-input:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.2);
    transform: scale(1.02);
}

.pass-help {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border: 2px solid #99f6e4;
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.pass-help::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.pass-help p {
    margin: 0;
    color: #0d9488;
    font-size: 16px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.pass-help strong {
    color: #065f46;
    font-weight: 800;
}

/* Enhanced Loading Animation */
.loading-animation {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
}

.spinner-border {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f4f6;
    border-top: 5px solid #14b8a6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
}

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

.loading-text {
    font-size: 18px;
    color: #4a5568;
    font-weight: 600;
    margin: 0;
}

.loading-dots {
    display: inline-block;
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* Enhanced Download Success Styles */
.download-success {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 20px;
}

.pass-info {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border: 2px solid #bbf7d0;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.2);
}

.pass-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.pass-info-item {
    text-align: center;
}

.pass-info-label {
    font-size: 12px;
    color: #16a34a;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.pass-info-value {
    font-size: 16px;
    color: #166534;
    font-weight: 700;
}

.pass-info code {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 2px;
}

.status-valid {
    color: #16a34a;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-valid::before {
    content: '✅';
    font-size: 16px;
}

.download-section {
    margin: 25px 0;
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    text-decoration: none;
    padding: 18px 36px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.download-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.5s;
}

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

.download-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.6);
    text-decoration: none;
    color: white;
}

.download-icon {
    font-size: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

.warning-note {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fbbf24;
    border-radius: 15px;
    padding: 20px;
    margin-top: 25px;
    position: relative;
    overflow: hidden;
}

.warning-note::before {
    content: '⚠️';
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 24px;
    animation: warning-pulse 2s infinite;
}

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

.warning-note p {
    margin: 0;
    color: #92400e;
    font-size: 16px;
    font-weight: 600;
    padding-left: 40px;
}

.warning-note strong {
    color: #78350f;
    font-weight: 800;
}

/* Download Guide Styles */
.download-guide {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #7dd3fc;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.download-guide h4 {
    color: #0c4a6e;
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-guide h4::before {
    content: '📋';
    font-size: 20px;
}

.download-guide ol {
    margin: 0;
    padding-left: 20px;
    color: #0c4a6e;
}

.download-guide li {
    margin: 8px 0;
    font-weight: 600;
    line-height: 1.5;
}

.download-guide strong {
    color: #075985;
    font-weight: 800;
}

/* Statistics Display */
.download-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.download-stat {
    background: rgba(255,255,255,0.9);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(20, 184, 166, 0.2);
    text-align: center;
}

.download-stat-icon {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.download-stat-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.download-stat-value {
    font-size: 18px;
    color: #1f2937;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mauthemewpgiare-download-btn {
        padding: 15px 30px;
        font-size: 16px;
    }
    
    .pass-input-form .swal2-input {
        font-size: 16px;
        padding: 15px;
        letter-spacing: 2px;
    }
    
    .download-link {
        padding: 15px 30px;
        font-size: 16px;
    }
    
    .pass-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .download-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .warning-note p {
        padding-left: 35px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .download-success {
        padding: 20px;
    }
    
    .pass-info {
        padding: 15px;
    }
    
    .download-guide {
        padding: 15px;
    }
    
    .download-stats {
        grid-template-columns: 1fr;
    }
}

/* Custom SweetAlert2 Styles */
.swal2-popup {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.swal2-title {
    color: #1f2937;
    font-weight: 700;
    font-size: 24px;
}

.swal2-content {
    color: #4b5563;
    font-weight: 600;
}

.swal2-confirm {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%) !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 12px 30px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.4) !important;
    transition: all 0.3s ease !important;
}

.swal2-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.6) !important;
}

.swal2-cancel {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 12px 30px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4) !important;
    transition: all 0.3s ease !important;
}

.swal2-cancel:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.6) !important;
}

/* Loading overlay for better UX */
.download-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.download-loading-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}