/* Card Payment Modal Styles */

.card-payment-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;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

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

.card-payment-modal {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f44336;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #d32f2f;
    transform: rotate(90deg);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 30px;
    text-align: center;
    color: white;
    border-radius: 20px 20px 0 0;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: pulse 2s infinite;
}

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

.icon-wrapper i {
    font-size: 40px;
}

.modal-header h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

.modal-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.modal-body {
    padding: 30px;
}

.package-info {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item .label {
    color: #666;
    font-size: 14px;
}

.info-item .value {
    font-weight: bold;
    color: #333;
}

.info-item .value.price {
    color: #4CAF50;
    font-size: 18px;
}

.card-details {
    margin-bottom: 25px;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

.card-visual {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 15px;
    padding: 30px;
    color: white;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.card-chip {
    width: 50px;
    height: 40px;
    background: linear-gradient(135deg, #f9d423 0%, #f83600 100%);
    border-radius: 8px;
    margin-bottom: 20px;
    position: relative;
}

.card-chip::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
}

.card-number {
    font-family: 'Courier New', monospace;
    font-size: 24px;
    letter-spacing: 3px;
    margin: 20px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.card-holder {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.holder-label {
    font-size: 10px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.holder-name {
    font-size: 16px;
    font-weight: bold;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 15px;
    width: 100%;
    font-size: 14px;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.payment-message {
    background: #e3f2fd;
    border-right: 4px solid #2196F3;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.payment-message i {
    color: #2196F3;
    margin-left: 10px;
}

.telegram-link {
    display: block;
    background: linear-gradient(135deg, #0088cc 0%, #229ED9 100%);
    color: white;
    text-decoration: none;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.telegram-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.3);
}

.telegram-link i {
    margin-left: 8px;
    font-size: 18px;
}

.upload-section {
    background: #f9f9f9;
    border-radius: 15px;
    padding: 25px;
}

.upload-section h3 {
    margin: 0 0 15px 0;
    color: #333;
}

.upload-desc {
    color: #666;
    font-size: 13px;
    margin-bottom: 20px;
}

.upload-area {
    border: 3px dashed #ddd;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.upload-area:hover, .upload-area.drag-over {
    border-color: #667eea;
    background: #f0f4ff;
}

.upload-area i {
    font-size: 50px;
    color: #667eea;
    margin-bottom: 15px;
}

.upload-area p {
    color: #666;
    margin: 0;
}

.upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-preview {
    position: relative;
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
}

.file-preview img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    background: #f0f0f0;
    border-radius: 10px;
}

.remove-file {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f44336;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-group {
    margin: 20px 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.success-message {
    text-align: center;
    padding: 40px;
}

.success-message i {
    font-size: 80px;
    color: #4CAF50;
    margin-bottom: 20px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.success-message h3 {
    color: #333;
    margin: 15px 0;
}

.success-message p {
    color: #666;
    margin: 10px 0;
}

.tracking-code {
    background: #f0f0f0;
    padding: 10px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 14px;
    margin: 20px 0 !important;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.error-message {
    text-align: center;
    padding: 30px;
    color: #f44336;
}

.error-message i {
    font-size: 50px;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .card-payment-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .card-number {
        font-size: 18px;
    }
}
