/* === TOGGLE DE PREÇOS CORRIGIDO === */
.pricing-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem auto;
    padding: 1rem 1.5rem;
    background: rgba(138, 43, 226, 0.05);
    border: 1px solid rgba(138, 43, 226, 0.15);
    border-radius: 16px;
    width: fit-content;
    backdrop-filter: blur(10px);
}

/* Comparação de recursos */
.features-comparison {
    text-align: center;
    margin-top: 2.5rem;
}

.toggle-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-period {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    user-select: none;
    position: relative;
}

.pricing-period.active {
    color: var(--primary-color);
    font-weight: 600;
    background: rgba(138, 43, 226, 0.1);
}

.pricing-period:hover {
    color: var(--primary-color);
    background: rgba(138, 43, 226, 0.05);
}

/* Switch do toggle */
.pricing-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    margin: 0 0.5rem;
}

.pricing-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.pricing-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    border-radius: 30px;
}

.pricing-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 2px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.pricing-switch input:checked + .pricing-slider {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.pricing-switch input:checked + .pricing-slider:before {
    transform: translateX(26px);
}

/* Discount tag */
.discount-tag {
    position: absolute;
    top: -12px;
    right: -12px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    animation: pulse 2s infinite;
    z-index: 10;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* === CARDS DE PREÇO ALINHADOS === */
.pricing-table {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1800px;
    margin: 3rem auto 0;
    align-items: start;
}

.price-card {
    background: linear-gradient(165deg, var(--card-bg), rgba(25, 25, 25, 0.7));
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 500px;
}

.price-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.price-card.premium {
    transform: translateY(-10px);
    background: linear-gradient(165deg, rgba(40, 40, 40, 0.9), rgba(30, 30, 30, 0.95));
    border: 2px solid rgba(138, 43, 226, 0.4);
    z-index: 2;
    box-shadow: 0 20px 40px rgba(138, 43, 226, 0.15);
}

.price-card.premium:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(138, 43, 226, 0.2);
}

/* Header dos cards */
.price-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.price-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* PREÇOS ALINHADOS */
.price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-height: 90px;
    justify-content: center;
    padding: 0.5rem 0;
}

.amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    transition: all 0.3s ease;
}

.period {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.total {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 0.25rem;
    font-style: italic;
    opacity: 0.8;
    transition: all 0.3s ease;
}

/* Features list */
.price-features {
    list-style: none;
    padding: 2rem;
    margin: 0;
    flex-grow: 1;
}

.price-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.4;
}

.price-features li i {
    color: var(--secondary-color);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Actions */
.price-action {
    padding: 0 2rem 2rem;
    margin-top: auto;
}

.btn-price {
    display: block;
    width: 100%;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-price.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.btn-price.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.4);
}

.btn-price.outline {
    background: transparent;
    color: var(--text-color);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-price.outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-price.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Ribbon para popular */
.ribbon {
    position: absolute;
    top: 1rem;
    right: -0.5rem;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

/* Classes hidden para controle de visibilidade */
.hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Elementos visíveis */
.monthly-price:not(.hidden),
.annual-price:not(.hidden),
.monthly-period:not(.hidden),
.annual-period:not(.hidden),
.annual-total:not(.hidden) {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Transições suaves */
.amount, .period, .total {
    transition: all 0.3s ease;
}

/* === PÁGINA DE PLANOS ESPECÍFICA === */
.pricing-page {
    min-height: 100vh;
    background: var(--bg-color);
    padding: 2rem 0;
}

.pricing-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-header h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.pricing-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Highlight Section */
.features-highlight {
    margin: 4rem 0;
    text-align: center;
}

.features-highlight h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.feature-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* FAQ Section */
.subscription-faq {
    margin: 4rem 0;
}

.subscription-faq h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 3rem;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(138, 43, 226, 0.05);
}

.faq-question.active {
    background: rgba(138, 43, 226, 0.1);
    color: var(--primary-color);
}

.faq-question i {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
    border-top: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}

/* Loading Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    max-width: 400px;
    width: 90%;
}

.loading-spinner {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.modal-content h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.modal-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Responsividade MELHORADA */
@media (max-width: 1024px) {
    .pricing-table {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        margin-top: 2.5rem;
    }
    
    .price-card.premium {
        transform: translateY(-5px);
    }
    
    .price-card.premium:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .pricing-toggle-container {
        margin: 1.5rem auto;
        padding: 0.75rem 1rem;
        gap: 0.75rem;
        flex-wrap: wrap;
        width: 95%;
    }
    
    .pricing-period {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .pricing-switch {
        width: 50px;
        height: 25px;
        order: 2;
    }
    
    .pricing-slider:before {
        height: 17px;
        width: 17px;
        left: 2px;
        bottom: 2px;
    }
    
    .pricing-switch input:checked + .pricing-slider:before {
        transform: translateX(21px);
    }
    
    .pricing-table {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
        padding: 0 1rem;
    }
    
    .price-card {
        min-height: 450px;
        max-width: 100%;
        margin: 0 auto;
        width: 100%;
    }
    
    .price-card.premium {
        transform: translateY(0);
        min-height: 470px;
    }
    
    .price-card.premium:hover {
        transform: translateY(-5px);
    }
    
    .amount {
        font-size: 2rem;
    }
    
    .price-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .price-features {
        padding: 1rem 1.5rem;
    }
    
    .price-features li {
        font-size: 0.9rem;
        padding: 0.5rem 0;
    }
    
    .pricing-header h1 {
        font-size: 2.2rem;
    }
    
    .pricing-header p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .features-highlight h2,
    .subscription-faq h2 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .pricing-toggle-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        width: 90%;
    }
    
    .toggle-option {
        justify-content: center;
    }
    
    .pricing-switch {
        order: 0;
        margin: 0;
    }
    
    .price-header {
        padding: 1.5rem 1rem 0.75rem;
    }
    
    .price-header h3 {
        font-size: 1.3rem;
    }
    
    .amount {
        font-size: 1.8rem;
    }
    
    .period {
        font-size: 0.8rem;
    }
    
    .price-features {
        padding: 1rem;
        gap: 0.3rem;
    }
    
    .price-features li {
        font-size: 0.85rem;
        padding: 0.4rem 0;
    }
    
    .price-action {
        padding: 0 1rem 1.5rem;
    }
    
    .btn-price {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
    }
    
    .pricing-page {
        padding: 1rem 0;
    }
    
    .pricing-header {
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .pricing-table {
        padding: 0 0.5rem;
    }
    
    .price-card {
        min-height: 400px;
        border-radius: 16px;
    }
    
    .features-highlight {
        margin: 2rem 0;
    }
    
    .subscription-faq {
        margin: 2rem 0;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .modal-content {
        padding: 2rem;
        width: 95%;
        margin: 1rem;
    }
    
    .ribbon {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
        right: -5px;
        top: 15px;
    }
    
    .discount-tag {
        font-size: 0.6rem;
        padding: 0.15rem 0.4rem;
        top: -6px;
        right: -6px;
    }
}

@media (max-width: 360px) {
    .pricing-table {
        padding: 0 0.25rem;
    }
    
    .price-card {
        border-radius: 12px;
        min-height: 380px;
    }
    
    .price-header {
        padding: 1rem 0.75rem 0.5rem;
    }
    
    .price-features {
        padding: 0.75rem;
    }
    
    .price-action {
        padding: 0 0.75rem 1rem;
    }
    
    .amount {
        font-size: 1.6rem;
    }
    
    .price-header h3 {
        font-size: 1.2rem;
    }
}