/* ============================================
   PAYMENT MODAL - GPS DE CARREIRA
   Paleta de cores:
   - Roxo: #7C3AED (primária)
   - Rosa Pink: #EC4899 (secundária)
   - Laranja Vibrante: #FF6B35 (terciária)
   ============================================ */

.payment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.payment-modal-overlay.active {
    display: flex;
}

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

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

.payment-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.3);
    position: relative;
    animation: slideUp 0.4s ease;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.payment-modal-header {
    background: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
    padding: 18px 20px;
    border-radius: 24px 24px 0 0;
    position: relative;
}

.payment-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
    font-size: 20px;
}

.payment-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.payment-modal-title {
    color: white;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.payment-modal-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin: 0;
}

.payment-modal-body {
    padding: 20px;
}

/* Loading State */
.payment-loading {
    text-align: center;
    padding: 40px 20px;
}

.payment-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(124, 58, 237, 0.2);
    border-top-color: #7C3AED;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.payment-loading-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

/* Payment Content */
.payment-content {
    display: none;
}

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

.payment-info {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

/* Payment Summary Compact */
.payment-summary-compact {
    text-align: center;
    padding: 16px;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 12px;
    margin-bottom: 16px;
}

.payment-amount-large {
    font-size: 29px;
    font-weight: 900;
    color: #FF6B35;
    margin-bottom: 6px;
    font-family: 'Orbitron', sans-serif;
}

.payment-product-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

/* Status Inline */
.payment-status-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 8px;
    margin-bottom: 18px;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #FF6B35;
    font-size: 13px;
    font-weight: 600;
}

.expires-badge {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.expires-badge strong {
    color: #ffffff;
}
.payment-summary {
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.payment-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.payment-summary-row:last-child {
    margin-bottom: 0;
}

.payment-summary-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
}

.payment-summary-value {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
}

.payment-summary-divider {
    height: 1px;
    background: rgba(124, 58, 237, 0.3);
    margin: 16px 0;
}

.payment-summary-total {
    margin-top: 8px;
}

.payment-summary-total .payment-summary-label {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
}

.payment-summary-total .payment-summary-value {
    color: #FF6B35;
    font-size: 24px;
    font-weight: 700;
}

.payment-expires-info {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(124, 58, 237, 0.3);
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    text-align: center;
}

.payment-amount {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
}

.payment-amount-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.payment-amount-value {
    color: #FF6B35;
    font-size: 28px;
    font-weight: 700;
}

.payment-product {
    color: white;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    text-align: center;
    line-height: 1.4;
}

.payment-expires {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

/* QR Code Section */
.qr-code-section {
    text-align: center;
    margin-bottom: 24px;
}

.qr-code-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.qr-code-icon {
    color: #EC4899;
}

.qr-code-container {
    background: white;
    padding: 20px;
    border-radius: 16px;
    display: inline-block;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    margin-bottom: 16px;
}

.qr-code-image {
    width: 168px;
    height: 168px;
    display: block;
}

.qr-code-instructions {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Copy Paste Section */
.copy-paste-section {
    margin-bottom: 24px;
}

.copy-paste-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.copy-paste-container {
    display: flex;
    gap: 8px;
}

.copy-paste-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 14px;
    color: white;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.copy-paste-btn {
    background: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-paste-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
}

.copy-paste-btn.copied {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

/* Steps */
.payment-steps {
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.payment-steps-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.payment-step {
    display: flex;
    align-items: start;
    gap: 12px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.5;
}

.payment-step:last-child {
    margin-bottom: 0;
}

.payment-step-number {
    background: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Status Badge */
.payment-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 107, 53, 0.2);
    border: 1px solid rgba(255, 107, 53, 0.4);
    border-radius: 20px;
    padding: 8px 16px;
    color: #FF6B35;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #FF6B35;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Error State */
.payment-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.payment-error-icon {
    font-size: 48px;
    color: #EF4444;
    margin-bottom: 16px;
}

.payment-error-title {
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.payment-error-message {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 20px;
}

.payment-retry-btn {
    background: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
    border: none;
    border-radius: 12px;
    padding: 12px 32px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .payment-modal {
        width: 95%;
        max-width: none;
    }

    .payment-modal-title {
        font-size: 22px;
    }

    .payment-amount-value {
        font-size: 28px;
    }

    .qr-code-image {
        width: 144px;
        height: 144px;
    }

    .copy-paste-container {
        flex-direction: column;
    }

    .copy-paste-btn {
        width: 100%;
        justify-content: center;
    }
}
