/* Support Modal Styles */
.support-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.support-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.support-modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    width: 90%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 10px 25px -5px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.3);
}

.support-modal-overlay.active .support-modal-content {
    transform: scale(1) translateY(0);
}

.support-modal-header {
    position: relative;
    padding: 24px 24px 0;
    display: flex;
    justify-content: flex-end;
}

.support-modal-close {
    background: rgba(148, 163, 184, 0.08);
    border: none;
    border-radius: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    font-size: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.support-modal-close:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    transform: scale(1.05);
}

.support-modal-body {
    padding: 8px 32px 32px;
    text-align: center;
}

.support-message h2 {
    font-size: 26px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px;
    line-height: 1.3;
}

.support-message p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 24px;
    opacity: 0.9;
}

.support-qr-container {
    margin: 24px 0;
    display: flex;
    justify-content: center;
}

.qr-wrapper {
    background: #ffffff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 
        0 10px 25px -5px rgba(0, 0, 0, 0.1),
        0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.3s ease;
    position: relative;
}

.qr-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 20px 40px -12px rgba(0, 0, 0, 0.15),
        0 12px 20px -8px rgba(0, 0, 0, 0.1);
    border-color: rgba(226, 232, 240, 0.8);
}

.support-qr {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    display: block;
    background: #ffffff;
}

.support-action {
    margin-top: 24px;
}

.upi-pay-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    text-decoration: none;
    padding: 16px 28px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 10px 25px -5px rgba(16, 185, 129, 0.4),
        0 8px 10px -6px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.upi-pay-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 ease;
}

.upi-pay-btn:hover::before {
    left: 100%;
}

.upi-pay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 20px 40px -12px rgba(16, 185, 129, 0.5),
        0 12px 20px -8px rgba(16, 185, 129, 0.4);
}

.upi-pay-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 18px;
    opacity: 0.9;
}

.btn-text {
    font-weight: 600;
    letter-spacing: 0.3px;
}

.btn-arrow {
    font-size: 16px;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.upi-pay-btn:hover .btn-arrow {
    transform: translateX(4px);
}

.support-note {
    margin-top: 14px;
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .support-modal-content {
        width: 95%;
        margin: 20px;
        border-radius: 20px;
    }
    
    .support-modal-header {
        padding: 20px 20px 0;
    }
    
    .support-modal-body {
        padding: 8px 24px 28px;
    }
    
    .support-message h2 {
        font-size: 24px;
    }
    
    .support-qr {
        width: 180px;
        height: 180px;
    }
    
    .qr-wrapper {
        padding: 16px;
    }
    
    .upi-pay-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
}

@media (max-width: 480px) {
    .support-modal-content {
        width: 95%;
        margin: 16px;
        border-radius: 18px;
    }
    
    .support-modal-header {
        padding: 18px 18px 0;
    }
    
    .support-modal-body {
        padding: 6px 20px 24px;
    }
    
    .support-message h2 {
        font-size: 22px;
    }
    
    .support-message p {
        font-size: 14px;
    }
    
    .support-qr {
        width: 160px;
        height: 160px;
        background: #ffffff;
    }
    
    .qr-wrapper {
        padding: 14px;
    }
    
    .upi-pay-btn {
        padding: 12px 20px;
        font-size: 15px;
        gap: 10px;
    }
}

/* Premium animation for modal entrance */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.support-modal-overlay.active .support-modal-content {
    animation: modalSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* QR Code entrance animation */
@keyframes qrFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.support-modal-overlay.active .support-qr {
    animation: qrFadeIn 0.5s ease-out 0.2s both;
}

/* Focus styles for accessibility */
.support-modal-close:focus-visible,
.upi-pay-btn:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* Premium scrollbar */
.support-modal-content::-webkit-scrollbar {
    width: 6px;
}

.support-modal-content::-webkit-scrollbar-track {
    background: rgba(226, 232, 240, 0.3);
    border-radius: 3px;
}

.support-modal-content::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.4);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.support-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.6);
}
