/**
 * PRICING MODAL STYLES
 * Estilos para o modal de seleção de planos
 */

/* Overlay */
.pricing-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pricing-modal-overlay.active {
    opacity: 1;
}

/* Modal Container */
.pricing-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-modal.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Modal Content */
.pricing-modal-content {
    position: relative;
    padding: 40px;
    overflow-y: auto;
    max-height: 90vh;
}

/* Scrollbar customizado */
.pricing-modal-content::-webkit-scrollbar {
    width: 8px;
}

.pricing-modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.pricing-modal-content::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.5);
    border-radius: 4px;
}

.pricing-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.7);
}

/* Close Button */
.pricing-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(148, 163, 184, 0.1);
    border: 2px solid rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #94a3b8;
    transition: all 0.2s ease;
    z-index: 10;
}

.pricing-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
    transform: rotate(90deg);
}

/* Header */
.pricing-modal-header {
    text-align: center;
    margin-bottom: 40px;
}

.pricing-modal-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.pricing-modal-header p {
    font-size: 1.2rem;
    color: #94a3b8;
}

/* Plans Grid */
.pricing-modal-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

@media (max-width: 1024px) {
    .pricing-modal-plans {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .pricing-modal-plans {
        grid-template-columns: 1fr;
    }
}

/* Plan Card */
.pricing-plan-card {
    position: relative;
    background: rgba(30, 41, 59, 0.6);
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: 20px;
    padding: 28px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-plan-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 20px 40px -12px rgba(99, 102, 241, 0.3);
}

.pricing-plan-card.popular {
    border-color: rgba(99, 102, 241, 0.6);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    transform: scale(1.05);
}

.pricing-plan-card.popular:hover {
    transform: translateY(-8px) scale(1.05);
}

/* Plan Badge */
.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Plan Header */
.plan-header {
    text-align: center;
    margin-bottom: 24px;
}

.plan-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 16px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.plan-price .currency {
    font-size: 1.2rem;
    color: #94a3b8;
}

.plan-price .amount {
    font-size: 3rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1;
}

.plan-price .period {
    font-size: 1rem;
    color: #94a3b8;
}

/* Plan Features */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    flex: 1;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.plan-features .check-icon {
    flex-shrink: 0;
    color: #10b981;
    margin-top: 2px;
}

/* Plan Select Button */
.plan-select-btn {
    width: 100%;
    padding: 16px 24px;
    background: rgba(99, 102, 241, 0.2);
    border: 2px solid rgba(99, 102, 241, 0.4);
    border-radius: 12px;
    color: #6366f1;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: auto;
}

.plan-select-btn:hover {
    background: rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.6);
    transform: scale(1.02);
}

.plan-select-btn.primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.plan-select-btn.primary:hover {
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.4);
    transform: scale(1.02);
}

/* Footer */
.pricing-modal-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.pricing-modal-skip {
    padding: 12px 32px;
    background: transparent;
    border: 2px solid rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pricing-modal-skip:hover {
    background: rgba(148, 163, 184, 0.1);
    border-color: rgba(148, 163, 184, 0.5);
    color: #cbd5e1;
}

/* Responsive */
@media (max-width: 768px) {
    .pricing-modal {
        width: 98%;
        border-radius: 16px;
    }

    .pricing-modal-content {
        padding: 24px 16px;
    }

    .pricing-modal-header h2 {
        font-size: 1.8rem;
    }

    .pricing-modal-header p {
        font-size: 1rem;
    }

    .pricing-plan-card {
        padding: 20px;
    }

    .pricing-plan-card.popular {
        transform: scale(1);
    }

    .pricing-plan-card.popular:hover {
        transform: translateY(-8px) scale(1);
    }

    .plan-price .amount {
        font-size: 2.5rem;
    }
}

/* Animações */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pricing-plan-card {
    animation: slideIn 0.4s ease backwards;
}

.pricing-plan-card:nth-child(1) { animation-delay: 0.1s; }
.pricing-plan-card:nth-child(2) { animation-delay: 0.2s; }
.pricing-plan-card:nth-child(3) { animation-delay: 0.3s; }
.pricing-plan-card:nth-child(4) { animation-delay: 0.4s; }
