/* ==================== ESTILOS MODAL PIX PROFISSIONAL ==================== */

/* ==================== COMPATIBILIDADE E FALLBACKS ==================== */
/* Garantias de compatibilidade para ambientes de hospedagem */

/* Reset de conflitos comuns */
.modal-overlay,
.modal-content,
.pix-modal-header,
.pix-qr-code {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
}

/* Fallback para transform não suportado */
.modal-overlay {
    transform: translateZ(0);
    /* Force hardware acceleration onde disponível */
}

/* Garantia de visibilidade mínima */
.modal-content {
    min-height: 200px;
    min-width: 300px;
    background-color: #ffffff !important;
    /* Força fundo branco como último recurso */
}

/* ==================== ESTILOS PRINCIPAIS ==================== */

/* Bloquear scroll da página quando modal está aberto */
body.modal-open {
    overflow: hidden !important;
    height: 100vh !important;
    position: fixed !important;
    width: 100% !important;
}

/* Modal Overlay - Estilos base otimizados */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: modalFadeIn 0.2s ease-out;
    /* Otimização de performance */
    will-change: opacity;
    contain: layout style paint;
}

/* Suporte condicional para backdrop-filter apenas em browsers compatíveis */
@supports (backdrop-filter: blur(20px)) {
    .modal-overlay {
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}

/* Modal Content - Container principal otimizado */
.modal-content {
    background: #ffffff;
    border-radius: 24px;
    max-width: 480px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    position: relative;
    /* Otimizações de performance */
    will-change: transform;
    contain: layout style paint;
    /* Ocultar barra de scroll */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Ocultar barra de scroll webkit */
.modal-content::-webkit-scrollbar {
    display: none;
    width: 0;
    background: transparent;
}

/* Header do Modal PIX - Versão compatível */
.pix-modal-header {
    background: #ff6b3d;
    /* Fallback para cor sólida */
    background: linear-gradient(135deg, #ff6b3d 0%, #ff8c61 50%, #ffab91 100%);
    padding: 30px 25px;
    border-radius: 24px 24px 0 0;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(255, 107, 61, 0.3),
        0 4px 16px rgba(255, 107, 61, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Efeitos do header - versão otimizada */
.pix-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    /* Versão simplificada para melhor performance */
    pointer-events: none;
    /* Removido animation para evitar travamentos */
}

.pix-modal-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.pix-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    /* Fallback sólido para casos problemáticos */
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pix-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: white;
}

/* Banner de Demonstração Profissional */
.pix-demo-banner {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #212529;
    padding: 12px 24px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid rgba(255, 152, 0, 0.6);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.demo-icon {
    width: 24px;
    height: 24px;
    background: #ff9800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 12px;
    animation: bounce 1s infinite;
}

.demo-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.demo-content strong {
    font-size: 13px;
    font-weight: 700;
    color: #d84315;
}

.demo-content span {
    font-size: 12px;
    opacity: 0.9;
    color: #5d4037;
}

/* Conteúdo do Header */
.pix-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    color: white;
    position: relative;
    z-index: 5;
    text-align: center;
}

.pix-profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.pix-profile-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    box-shadow:
        0 6px 24px rgba(0, 0, 0, 0.25),
        0 3px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
}

.pix-profile-image:hover {
    transform: scale(1.05);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 6px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.pix-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 50%;
}

.pix-profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.pix-profile-name {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.3px;
    color: #ffffff;
    /* Fallback para cor sólida */
}

/* Suporte condicional para text gradient apenas em browsers compatíveis */
@supports (-webkit-background-clip: text) {
    .pix-profile-name {
        background: linear-gradient(135deg, #ffffff, #e3f2fd);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

.pix-profile-username {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.pix-plan-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.pix-plan-badge {
    background: rgba(255, 255, 255, 0.4);
    /* Fallback mais sólido para compatibilidade */
    padding: 10px 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    min-width: 140px;
}

/* Suporte condicional para backdrop-filter no badge */
@supports (backdrop-filter: blur(15px)) {
    .pix-plan-badge {
        background: rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(15px);
    }
}

.plan-icon {
    font-size: 18px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.plan-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1.2;
    opacity: 0.95;
}

.plan-price {
    font-size: 18px;
    font-weight: 700;
    color: #fff3cd;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Corpo do Modal PIX */
.pix-modal-body {
    padding: 30px 25px;
    background: linear-gradient(to bottom, #ffffff 0%, #fafbfc 100%);
}

.pix-payment-section {
    margin-bottom: 25px;
}

.pix-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f3f4;
}

.pix-section-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 22px;
    font-weight: 700;
    position: relative;
}

.pix-section-header h3::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #ff6b3d, #ff8c61);
    border-radius: 2px;
}

.pix-security-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15), rgba(32, 201, 151, 0.15));
    color: #28a745;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    border: 2px solid rgba(40, 167, 69, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Container QR + Layout Limpo */
.pix-qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 25px 0;
}

.pix-qr-code {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    width: 280px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.pix-qr-code::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 48%, rgba(255, 107, 61, 0.1) 50%, transparent 52%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.pix-qr-code:hover::before {
    transform: translateX(100%);
}

.pix-qr-code:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: #ff6b3d;
}

.pix-qr-code img {
    width: 220px;
    height: 220px;
    border-radius: 12px;
    filter: contrast(1.05) brightness(0.98);
    transition: all 0.3s ease;
}

/* ==================== SCANNER ANIMADO QR CODE ==================== */

.qr-scanner {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    pointer-events: none;
    z-index: 10;
}

.scanner-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #ff6b3d, transparent);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(255, 107, 61, 0.6);
    /* Animação desabilitada para melhor performance */
    /* animation: scannerMove 2s ease-in-out infinite; */
    top: 50%;
    opacity: 0.7;
}

@keyframes scannerMove {
    0% {
        top: 0;
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        top: calc(100% - 4px);
        opacity: 1;
    }
}

.scanner-corners {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.corner {
    position: absolute;
    width: 35px;
    height: 35px;
    border: 4px solid #ff6b3d;
    box-shadow: 0 0 20px rgba(255, 107, 61, 0.4);
    /* Animação desabilitada para melhor performance */
    /* animation: cornerPulse 2s ease-in-out infinite; */
    opacity: 0.8;
}

.corner.top-left {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
    border-radius: 15px 0 0 0;
}

.corner.top-right {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
    border-radius: 0 15px 0 0;
}

.corner.bottom-left {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 15px;
}

.corner.bottom-right {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
    border-radius: 0 0 15px 0;
}

@keyframes cornerPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* Instruções */
.pix-instructions {
    display: none;
    /* Ocultar instruções de pagamento */
    flex: 1;
    min-width: 200px;
}

.pix-step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #ff6b3d;
}

.step-number {
    background: #ff6b3d;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.pix-step span:last-child {
    font-weight: 500;
    color: #495057;
}

/* Seção do Código PIX Profissional */
.pix-code-section {
    margin: 25px 0;
}

.pix-code-header {
    margin-bottom: 15px;
}

.pix-code-header span {
    font-weight: 700;
    color: #495057;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pix-code-header span::before {
    content: "";
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #ff6b3d, #ff8c61);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255, 107, 61, 0.2);
}

.pix-code-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 3px solid #dee2e6;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.pix-code-container:hover {
    border-color: #ff6b3d;
    box-shadow: 0 12px 32px rgba(255, 107, 61, 0.15);
}

.pix-code-text {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Courier New', monospace;
    font-size: 12px;
    color: #495057;
    padding: 20px;
    background: white;
    margin: 0;
    word-break: break-all;
    line-height: 1.6;
    max-height: 90px;
    overflow-y: auto;
    border-bottom: 2px solid #dee2e6;
    font-weight: 500;
}

/* Botão de Copiar Aprimorado */
.pix-copy-btn {
    background: linear-gradient(135deg, #ff6b3d 0%, #ff8c61 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pix-copy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.pix-copy-btn:hover::before {
    left: 100%;
}

.pix-copy-btn:hover {
    background: linear-gradient(135deg, #e55a30, #e67d56);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 61, 0.4);
}

.pix-copy-btn:active {
    transform: translateY(0);
}

/* Seção de Status Aprimorada */
.pix-status-section {
    margin: 25px 0 30px 0;
}

.pix-status-indicator {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.pix-status-indicator::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.8s ease;
}

.pix-status-indicator.pending {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-left: 4px solid #007bff;
}

.pix-status-indicator.processing {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffeaa7;
    border-left: 4px solid #ffc107;
    animation: pulseGlow 2s infinite;
}

.pix-status-indicator.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #c3e6cb;
}

.pix-status-indicator.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-color: #f5c6cb;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
}

.pix-status-animation {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.pix-pulse-dot {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
}

.pix-status-title {
    font-weight: 800;
    font-size: 18px;
    margin: 0 0 8px 0;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pix-status-subtitle {
    font-size: 15px;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
}

/* Seção de Benefícios Aprimorada */
.pix-benefits-section {
    margin: 25px 0 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
    border-radius: 16px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.pix-benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    border-left: 3px solid #28a745;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
}

.pix-benefit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(40, 167, 69, 0.1), transparent);
    transition: left 0.6s ease;
}

.pix-benefit-item:hover::before {
    left: 100%;
}

.pix-benefit-item:hover {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    transform: translateX(6px);
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.15);
}

.pix-benefit-item:last-child {
    margin-bottom: 0;
}

.benefit-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.25);
    position: relative;
}

/* Footer Aprimorado */
.pix-modal-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 25px;
    border-radius: 0 0 24px 24px;
    border-top: 1px solid #dee2e6;
}

.pix-security-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    text-align: center;
    width: 100%;
}

.pix-security-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    text-align: center;
}

.pix-powered-by {
    text-align: center;
    font-size: 13px;
    color: #adb5bd;
    font-weight: 500;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.pix-powered-by img {
    height: 18px;
    width: auto;
    vertical-align: middle;
    filter: brightness(0.8);
    transition: filter 0.3s ease;
}

.pix-powered-by:hover img {
    filter: brightness(1);
}

.pix-powered-by strong {
    color: #495057;
    font-weight: 700;
}

/* ==================== SISTEMA DE NOTIFICAÇÕES PROFISSIONAL ==================== */

/* Toast de Notificação Aprimorado */
.pix-toast {
    position: fixed;
    top: 30px;
    right: 30px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 18px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(40, 167, 69, 0.4);
    z-index: 20000;
    font-weight: 600;
    max-width: 350px;
    min-width: 280px;
    animation: slideInRight 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.pix-toast.error {
    background: linear-gradient(135deg, #dc3545, #c82333);
    box-shadow: 0 8px 32px rgba(220, 53, 69, 0.4);
}

.pix-toast.warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
    box-shadow: 0 8px 32px rgba(255, 193, 7, 0.4);
}

.pix-toast.info {
    background: linear-gradient(135deg, #17a2b8, #138496);
    box-shadow: 0 8px 32px rgba(23, 162, 184, 0.4);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Sistema de Loading Aprimorado */
.status-icon.loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.success-check {
    animation: checkmark 0.6s ease-in-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(45deg);
    }

    50% {
        transform: scale(1.2) rotate(45deg);
    }

    100% {
        transform: scale(1) rotate(45deg);
    }
}

/* ==================== MELHORIAS DE ACESSIBILIDADE ==================== */

/* Foco aprimorado para navegação por teclado */
.pix-close-btn:focus,
.pix-copy-btn:focus {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* Transições suaves globais */
* {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* Estados de hover melhorados */
.pix-qr-code:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.pix-benefit-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 32px rgba(40, 167, 69, 0.15);
}

/* ==================== OVERLAY MODAL PROFISSIONAL ==================== */

/* Forçar fundo semi-transparente profissional */
#pixModal.modal-overlay,
.modal-overlay#pixModal,
div#pixModal {
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
}

/* Garantir que apenas o conteúdo seja translúcido */
#pixModal .modal-content {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
}

/* Garantir visibilidade do modal PIX */
#pixModal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999 !important;
    backdrop-filter: blur(25px);
}

#pixModal .modal-content {
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 20px !important;
    max-width: 500px !important;
    width: 90% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    position: relative !important;
    margin: 20px !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
}

/* ==================== MELHORIAS TIPOGRÁFICAS ==================== */

/* Hierarquia tipográfica profissional */
.pix-professional h1,
.pix-professional h2,
.pix-professional h3,
.pix-professional h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #2c3e50;
    margin: 0;
}

.pix-professional p {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #495057;
    margin: 0;
}

/* Contraste melhorado para texto */
.pix-professional {
    color: #2c3e50;
}

.pix-professional .text-muted {
    color: #6c757d !important;
}

/* ==================== ESTADOS INTERATIVOS AVANÇADOS ==================== */

/* Efeito de elevação em botões */
.pix-copy-btn:hover {
    box-shadow:
        0 8px 24px rgba(255, 107, 61, 0.4),
        0 0 0 1px rgba(255, 107, 61, 0.1);
}

/* Feedback visual aprimorado */
.pix-copy-btn:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 4px 12px rgba(255, 107, 61, 0.3);
}

/* ==================== SISTEMA DE GRID RESPONSIVO ==================== */

@media (max-width: 480px) {
    .pix-toast {
        top: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
        min-width: auto;
    }

    .pix-modal-header {
        padding: 20px 20px;
    }

    .pix-modal-body {
        padding: 20px 15px;
    }

    .pix-modal-footer {
        padding: 20px 15px;
    }

    .pix-qr-code {
        width: 220px;
        padding: 15px;
    }

    .pix-qr-code img {
        width: 180px;
        height: 180px;
    }

    .pix-status-indicator {
        padding: 20px;
        gap: 15px;
    }

    .pix-benefit-item {
        padding: 15px;
    }

    /* Ajustes específicos para header no mobile */
    .pix-profile-section {
        gap: 10px;
    }

    .pix-profile-image {
        width: 65px;
        height: 65px;
        border-width: 2px;
    }

    .pix-profile-name {
        font-size: 16px;
        gap: 6px;
    }

    .pix-profile-username {
        font-size: 12px;
    }

    .pix-plan-info {
        margin-right: 0;
        max-width: 100%;
    }

    .pix-plan-badge {
        padding: 8px 14px;
        min-width: 120px;
        max-width: 160px;
    }

    .pix-close-btn {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
    }

    .plan-name {
        font-size: 11px;
    }

    .plan-price {
        font-size: 15px;
    }

    .plan-icon {
        font-size: 14px;
    }
}

/* ==================== ANIMAÇÕES NECESSÁRIAS ==================== */

/* Animação de entrada do modal - otimizada */
@keyframes modalFadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Animação de shimmer - simplificada e otimizada */
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Animação para casos de fallback sem animações complexas */
@media (prefers-reduced-motion: reduce) {
    .modal-overlay {
        animation: none;
    }

    .pix-modal-header::before {
        animation: none;
    }

    .scanner-line {
        animation: none;
    }
}

/* ==================== CORREÇÕES ESPECÍFICAS PARA HOSPEDAGEM ==================== */

/* Força estilos para o modal PIX criado dinamicamente */
#pixModal {
    background: rgba(0, 0, 0, 0.8) !important;
    /* Override qualquer estilo inline problemático */
}

#pixModal .modal-content {
    background: #ffffff !important;
    /* Garante fundo branco sempre */
    color: #333333;
    /* Garante texto visível */
}

#pixModal .pix-modal-header {
    background: #ff6b3d !important;
    /* Força cor do header */
    color: #ffffff !important;
}

#pixModal .pix-qr-code {
    background: #ffffff !important;
    /* Força fundo branco no QR */
    border: 2px solid #e9ecef !important;
}

/* Especificidade extra para garantir que os estilos sejam aplicados */
div.modal-overlay#pixModal {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 10000 !important;
}

div.modal-overlay#pixModal .modal-content {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ==================== CORREÇÕES ADICIONAIS PARA HOSPEDAGEM ==================== */

/* Correção para servidores que não processam rgba corretamente */
.modal-overlay {
    background-color: #000000;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.98);
}

/* Correção para z-index em diferentes contextos de hospedagem */
.modal-overlay {
    z-index: 999999 !important;
}

/* Correção para problemas de font rendering */
.modal-content * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Correção para problemas de flexbox em alguns navegadores */
.modal-overlay {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
}

/* Correção para box-shadow em alguns browsers/servidores */
.modal-content {
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.3),
        0 10px 40px rgba(0, 0, 0, 0.2),
        0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Garantia de visibilidade em modo noturno/alto contraste */
@media (prefers-color-scheme: dark) {
    .modal-content {
        background: #ffffff !important;
        color: #333333 !important;
    }
}

/* Correção para problemas de posicionamento fixo em alguns mobiles */
@media screen and (max-width: 768px) {
    .modal-overlay {
        position: fixed;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* ==================== FIM DAS CORREÇÕES DE HOSPEDAGEM ==================== */