/* Sistema de Pagamento - Estilos */

/* Modal de Pagamento */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 15px;
    overflow-y: hidden;
}

.payment-modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 1100px;
    max-height: 95vh;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    overflow: hidden;
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

/* Header do Modal */
.upgrade-header,
.checkout-header,
.subscription-header {
    text-align: center;
    margin-bottom: 25px;
}

.upgrade-header i,
.checkout-header i,
.subscription-header i {
    font-size: 48px;
    color: #f59e0b;
    margin-bottom: 15px;
}

.upgrade-header h2,
.checkout-header h2,
.subscription-header h2 {
    font-size: 28px;
    color: #1f2937;
    margin-bottom: 8px;
}

.upgrade-header p {
    color: #6b7280;
    font-size: 16px;
}

.checkout-price {
    font-size: 36px;
    color: #2563eb;
    font-weight: 700;
    margin-top: 10px;
}

/* Comparação de Planos */
.plans-comparison {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.plan-card {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    position: relative;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.plan-card.premium {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.2);
}

.plan-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #f59e0b;
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.plan-header {
    text-align: center;
    margin-bottom: 20px;
}

.plan-header h3 {
    font-size: 20px;
    color: #1f2937;
    margin-bottom: 8px;
}

.plan-price {
    font-size: 32px;
    font-weight: 700;
    color: #2563eb;
}

.plan-price span {
    font-size: 18px;
    color: #6b7280;
    font-weight: 400;
}

.plan-price-yearly {
    font-size: 14px;
    color: #059669;
    margin-top: 5px;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    flex: 1;
}

.plan-features li {
    padding: 8px 0;
    color: #374151;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 13px;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-card.premium .plan-features li {
    color: #1f2937;
    font-weight: 500;
}

.btn-upgrade,
.btn-upgrade-yearly {
    width: 100%;
    margin-top: 10px;
}

.btn-upgrade-yearly {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-upgrade-yearly:hover {
    background: #2563eb;
    color: white;
}

/* Garantia de Pagamento */
.payment-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px;
    background: #f3f4f6;
    border-radius: 12px;
    color: #6b7280;
    font-size: 13px;
}

/* Botões do Modal */
.plan-card .btn-secondary {
    width: 100%;
    background: #6b7280;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 15px;
}

.plan-card .btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

.plan-card .btn-primary {
    width: 100%;
    background: #2563eb !important;
    color: white !important;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer !important;
    transition: all 0.3s;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.plan-card .btn-primary:hover {
    background: #1d4ed8 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Garantir que o botão do Básico seja azul */
#btn-checkout-basic {
    background: #2563eb !important;
    color: white !important;
    cursor: pointer !important;
}

#btn-checkout-basic:hover {
    background: #1d4ed8 !important;
}

.payment-guarantee i {
    color: #10b981;
}

/* Formulário de Checkout */
.checkout-form {
    max-width: 500px;
    margin: 0 auto;
}

.checkout-form h3 {
    font-size: 20px;
    color: #1f2937;
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stripe-element {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s;
}

.stripe-element:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.stripe-element input {
    width: 100%;
    border: none;
    background: none;
    font-size: 16px;
    color: #1f2937;
    outline: none;
}

/* Resumo do Checkout */
.checkout-summary {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    color: #6b7280;
    font-size: 15px;
}

.summary-row.total {
    border-top: 2px solid #e5e7eb;
    margin-top: 10px;
    padding-top: 20px;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

.payment-security {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    margin-top: 20px;
}

.payment-security i {
    color: #10b981;
    margin-right: 5px;
}

/* Modal de Sucesso */
.payment-modal-content.success {
    text-align: center;
}

.success-icon {
    font-size: 80px;
    color: #10b981;
    margin-bottom: 20px;
}

.success-benefits {
    text-align: left;
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
}

.success-benefits h3 {
    font-size: 18px;
    color: #1f2937;
    margin-bottom: 15px;
}

.success-benefits ul {
    list-style: none;
    padding: 0;
}

.success-benefits li {
    padding: 10px 0;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 10px;
}

.success-benefits li i {
    color: #10b981;
}

/* Badge Premium no Header */
.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 15px;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

.premium-badge i {
    font-size: 14px;
}

/* Gerenciamento de Assinatura */
.subscription-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.info-label {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 10px;
}

.info-value {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

.info-subtitle {
    display: block;
    font-size: 14px;
    color: #6b7280;
    font-weight: 400;
    margin-top: 5px;
}

.subscription-benefits {
    margin-bottom: 30px;
}

.subscription-benefits h3 {
    font-size: 20px;
    color: #1f2937;
    margin-bottom: 20px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.benefit-item i {
    color: #10b981;
    font-size: 18px;
}

.subscription-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-danger-outline {
    background: transparent;
    color: #ef4444;
    border: 2px solid #ef4444;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-danger-outline:hover {
    background: #ef4444;
    color: white;
}

/* VERSÃO COMPACTA - SEM SCROLL COM FONTES MAIORES (+10px) */
.payment-modal-content.compact {
    padding: 25px;
    max-height: 90vh;
    overflow-y: auto;
}

.payment-modal-content.compact .upgrade-header,
.payment-modal-content.compact .checkout-header {
    margin-bottom: 25px;
}

.payment-modal-content.compact .upgrade-header i,
.payment-modal-content.compact .checkout-header i {
    font-size: 58px;
    margin-bottom: 12px;
}

.payment-modal-content.compact .upgrade-header h2,
.payment-modal-content.compact .checkout-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
}

.payment-modal-content.compact .upgrade-header p {
    font-size: 18px;
    color: #6b7280;
}

.payment-modal-content.compact .checkout-price {
    font-size: 36px;
    margin-top: 10px;
}

.payment-modal-content.compact .plans-comparison {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 25px;
}

.payment-modal-content.compact .plan-card {
    padding: 22px 16px;
}

.payment-modal-content.compact .plan-header h3 {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 700;
}

.payment-modal-content.compact .plan-price {
    font-size: 36px;
    font-weight: 700;
}

.payment-modal-content.compact .plan-price span {
    font-size: 16px;
}

.payment-modal-content.compact .plan-features {
    margin: 18px 0;
}

.payment-modal-content.compact .plan-features li {
    padding: 8px 0;
    font-size: 14px;
    line-height: 1.4;
}

.payment-modal-content.compact .plan-features li i {
    margin-right: 8px;
}

.payment-modal-content.compact .plan-card button {
    font-size: 15px;
    padding: 12px 20px;
    font-weight: 600;
}

.payment-modal-content.compact .payment-guarantee {
    padding: 16px;
    font-size: 14px;
    gap: 15px;
}

.payment-modal-content.compact .checkout-form {
    max-width: 100%;
}

.payment-modal-content.compact .form-group {
    margin-bottom: 16px;
}

.payment-modal-content.compact .form-group label {
    font-size: 16px;
    margin-bottom: 6px;
    display: block;
    color: #374151;
    font-weight: 600;
}

.payment-modal-content.compact .stripe-element {
    padding: 14px;
}

.payment-modal-content.compact .stripe-element input {
    font-size: 16px;
}

.payment-modal-content.compact .payment-security {
    margin-top: 18px;
    font-size: 14px;
}

.payment-modal-content.compact.success {
    max-width: 500px;
}

.payment-modal-content.compact.success .success-icon {
    font-size: 80px;
    margin-bottom: 18px;
}

.payment-modal-content.compact.success h2 {
    font-size: 32px;
    margin-bottom: 12px;
    font-weight: 700;
}

.payment-modal-content.compact.success .success-benefits {
    padding: 18px;
    margin: 22px 0;
}

.payment-modal-content.compact.success .success-benefits h3 {
    font-size: 20px;
    margin-bottom: 14px;
    font-weight: 700;
}

.payment-modal-content.compact.success .success-benefits li {
    padding: 10px 0;
    font-size: 15px;
}

/* Botão X vermelho destacado */
.modal-close {
    background: #ef4444;
    color: white;
    width: 35px;
    height: 35px;
    font-size: 20px;
    top: 15px;
    right: 15px;
}

.modal-close:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.modal-close:active {
    transform: scale(0.95);
}

/* Responsividade */
@media (max-width: 1024px) {
    .payment-modal-content.compact .plans-comparison {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .payment-modal-content.compact .plan-card {
        padding: 15px 10px;
    }
    
    .payment-modal-content.compact .plan-features li {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .payment-modal-content {
        padding: 30px 20px;
    }
    
    .payment-modal-content.compact {
        padding: 20px 15px;
    }
    
    .payment-modal-content.compact .plans-comparison {
        grid-template-columns: 1fr;
    }
    
    .plans-comparison {
        grid-template-columns: 1fr;
    }
    
    .plan-price {
        font-size: 32px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .subscription-actions {
        flex-direction: column;
    }
    
    .subscription-actions button {
        width: 100%;
    }
}

/* Animações */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.plan-card.premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 3s infinite;
}

/* Botão de Upgrade no Menu */
.upgrade-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.upgrade-btn i {
    font-size: 16px;
}

/* Responsividade - Modal Compacto */
@media (max-width: 1200px) {
    .payment-modal-content {
        padding: 25px;
        max-height: 96vh;
    }
    
    .plans-comparison {
        gap: 15px;
    }
    
    .plan-card {
        padding: 18px;
    }
}

@media (max-width: 968px) {
    .payment-modal-content {
        padding: 20px;
        max-height: 98vh;
    }
    
    .plans-comparison {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .upgrade-header h2 {
        font-size: 24px;
    }
    
    .upgrade-header i {
        font-size: 40px;
    }
    
    .plan-header h3 {
        font-size: 18px;
    }
    
    .plan-price {
        font-size: 28px;
    }
    
    .plan-features li {
        font-size: 12px;
        padding: 6px 0;
    }
}

@media (max-width: 640px) {
    .payment-modal {
        padding: 10px;
    }
    
    .payment-modal-content {
        padding: 15px;
        border-radius: 15px;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .upgrade-header {
        margin-bottom: 20px;
    }
    
    .upgrade-header h2 {
        font-size: 20px;
    }
    
    .upgrade-header i {
        font-size: 36px;
        margin-bottom: 10px;
    }
    
    .upgrade-header p {
        font-size: 13px;
    }
    
    .plans-comparison {
        gap: 12px;
        margin-bottom: 15px;
    }
    
    .plan-card {
        padding: 15px;
    }
    
    .plan-header {
        margin-bottom: 12px;
    }
    
    .plan-header h3 {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .plan-price {
        font-size: 24px;
    }
    
    .plan-price span {
        font-size: 14px;
    }
    
    .plan-features {
        margin: 12px 0;
    }
    
    .plan-features li {
        font-size: 11px;
        padding: 5px 0;
    }
    
    .plan-badge {
        font-size: 10px;
        padding: 4px 15px;
        top: -12px;
    }
    
    .payment-guarantee {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px;
        font-size: 11px;
    }
    
    .btn-secondary,
    .btn-primary {
        font-size: 13px !important;
        padding: 10px 15px !important;
    }
}

/* ========================================
   NOVOS ESTILOS - CARDS CLICÁVEIS
   ======================================== */

/* Card Básico - Azul */
.plan-card.plan-basic {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    border: 3px solid #2563eb !important;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2) !important;
    cursor: pointer !important;
    position: relative;
}

.plan-card.plan-basic:hover {
    border-color: #1e40af !important;
    transform: scale(1.05) translateY(-5px) !important;
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.4) !important;
}

/* Card Premium - Dourado */
.plan-card.plan-premium {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
    border: 3px solid #f59e0b !important;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3) !important;
    cursor: pointer !important;
    position: relative;
}

.plan-card.plan-premium:hover {
    border-color: #d97706 !important;
    transform: scale(1.05) translateY(-5px) !important;
    box-shadow: 0 12px 40px rgba(245, 158, 11, 0.5) !important;
}

/* Card Free - Cinza (não clicável) */
.plan-card.plan-free {
    background: #f3f4f6 !important;
    border: 2px solid #d1d5db !important;
    opacity: 0.8;
}

/* Botões Customizados - AMBOS AZUIS */
.btn-basic-custom {
    width: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
    color: white !important;
    border: none !important;
    padding: 16px 24px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-basic-custom:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5) !important;
}

.btn-premium-custom {
    width: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
    color: white !important;
    border: none !important;
    padding: 16px 24px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-premium-custom:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5) !important;
}

/* Animações */
@keyframes pulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.1);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Indicador de clicável */
.clickable {
    cursor: pointer !important;
}

/* Mobile - Cards empilhados */
@media (max-width: 768px) {
    .btn-basic-custom,
    .btn-premium-custom {
        font-size: 14px !important;
        padding: 14px 20px !important;
    }
}
