/* Estilos para a página Meus Pontos - Apenas classes do plugin */
.wpf-coupon-cell {
    text-align: center !important;
    vertical-align: middle !important;
}

.wpf-coupon-code {
    font-family: monospace !important;
    font-size: 1.1em !important;
    font-weight: bold !important;
    color: #3d3d3d !important;
    background-color: #f0f0f1 !important;
    padding: 5px 8px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
    position: relative !important;
    display: inline-block !important;
    min-width: 120px !important;
}

.wpf-coupon-code:hover {
    background-color: #e0e1e2 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}

.wpf-coupon-code.wpf-copied {
    background-color: #4CAF50 !important;
    color: white !important;
}

.wpf-coupon-code.wpf-copied::after {
    content: '✓ Copiado!' !important;
    position: absolute !important;
    top: -30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background-color: #333 !important;
    color: white !important;
    padding: 5px 10px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    z-index: 1000 !important;
    font-weight: normal !important;
    animation: fadeInOut 2s ease-in-out !important;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    20%, 80% { opacity: 1; }
}

/* Novo estilo para Saldo de Pontos */
.wpf-balance-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    padding: 30px 20px !important;
    border-radius: 12px !important;
    margin-bottom: 30px !important;
    text-align: center !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3) !important;
    color: white !important;
    position: relative !important;
    overflow: hidden !important;
}

.wpf-balance-card::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background: rgba(255,255,255,0.1) !important;
    transform: rotate(45deg) !important;
    pointer-events: none !important;
}

.wpf-balance-card h3 {
    margin-top: 0 !important;
    color: white !important;
    font-size: 1.3em !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
    position: relative !important;
    z-index: 2 !important;
}

.wpf-points-display {
    font-size: 3.5em !important;
    font-weight: 800 !important;
    color: white !important;
    display: block !important;
    line-height: 1 !important;
    margin: 15px 0 !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
    position: relative !important;
    z-index: 2 !important;
}

.wpf-points-label {
    font-size: 1.1em !important;
    color: rgba(255,255,255,0.9) !important;
    display: block !important;
    font-weight: 500 !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Estilos Específicos para a Tabela de Recompensas */
#wpf-rewards-container {
    padding: 25px !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
}

#wpf-rewards-container h2 {
    font-size: 1.6em !important;
    margin-top: 0 !important;
    margin-bottom: 25px !important;
    padding-bottom: 15px !important;
    border-bottom: 3px solid #667eea !important;
    color: #2c3e50 !important;
    font-weight: 700 !important;
}

/* Estilo para linha de recompensa indisponível */
.wpf-reward-disabled {
    opacity: 0.5 !important;
    background-color: #f9f9f9 !important;
}

.wpf-reward-disabled:hover {
    background-color: #f9f9f9 !important;
}

/* Garante que o cupom em display fique centralizado */
.wpf-coupon-cell {
    white-space: nowrap !important;
}

/* --- ESTILOS DOS BOTÕES DA TABELA DE RECOMPENSAS --- */

/* Cor para o botão de Resgatar (Ação Principal) */
.wpf-redeem-reward-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: #fff !important;
    border: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-size: 0.9em !important;
}

.wpf-redeem-reward-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4) !important;
    background: linear-gradient(135deg, #218838 0%, #1e9e8a 100%) !important;
}

/* Estilo para botão Resgatado (Ação Concluída/Sucesso) */
.wpf-redeem-reward-btn[disabled] {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%) !important;
    color: #fff !important;
    border: none !important;
    cursor: not-allowed !important;
    opacity: 0.8 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Estilo para botão Pontos Insuficientes */
.wpf-redeem-reward-btn.wpf-insufficient-points {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%) !important;
    color: #fff !important;
    border: none !important;
    cursor: not-allowed !important;
    opacity: 0.9 !important;
}

/* --- RESPONSIVO --- */
@media (max-width: 768px) {
    .wpf-balance-card {
        padding: 20px 15px !important;
        margin-bottom: 20px !important;
    }
    
    .wpf-points-display {
        font-size: 2.5em !important;
    }
    
    .wpf-coupon-code {
        font-size: 1em !important;
        min-width: 100px !important;
        padding: 4px 6px !important;
    }
    
    #wpf-rewards-container {
        padding: 15px !important;
    }
}

/* --- ANIMAÇÕES ESPECIAIS --- */
@keyframes wpf-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.wpf-balance-card {
    animation: wpf-pulse 2s ease-in-out infinite !important;
}

.wpf-redeem-reward-btn:not([disabled]):not(.wpf-insufficient-points) {
    animation: wpf-pulse 3s ease-in-out infinite !important;
}

/* --- ESTADOS DE CARREGAMENTO --- */
.wpf-loading {
    opacity: 0.7 !important;
    pointer-events: none !important;
    position: relative !important;
}

.wpf-loading::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 20px !important;
    height: 20px !important;
    margin: -10px 0 0 -10px !important;
    border: 2px solid #f3f3f3 !important;
    border-top: 2px solid #667eea !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
}

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