/* Variáveis de Cores e Estilo */
* {
    font-family: 'Nexa_Regular';
}

:root {
    --primary-color: #f97316;
    --primary-hover: #ea580c;
    --dark-bg: #111827;
    --light-bg: #f9fafb;
    --border-color: #e5e7eb;
    --text-main: #374151;
    --text-light: #6b7280;
    --success-color: #16a34a;
    --popular-bg: #fff7ed;
    --popular-border: #ffedd5;
}

#novos-planos {
    text-align: center;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.planos-header {
    margin-bottom: 40px;
}

#novos-planos .badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

#novos-planos .badges span {
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 8px;
}

#novos-planos .badges span i {
    color: var(--primary-color);
}

/* Tabela Responsiva */
.tabela-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    background: #fff;
    margin: 0 auto;
}

.tabela-planos {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px; /* Garante que não quebre em telas muito pequenas */
}

.tabela-planos th {
    background: var(--light-bg);
    color: var(--text-main);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.05em;
    padding: 20px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.tabela-planos th.popular {
    background: var(--popular-bg);
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.badge-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #fff;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.3);
}

.nome-plano {
    font-size: 18px;
    font-weight: 800;
    margin-top: 5px;
}

.tabela-planos td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 15px;
    transition: background-color 0.2s;
}

/* Coluna de Recursos Fixa (opcional, mas bom para UX) */
.tabela-planos td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--text-main);
    background: #fff;
}

/* Highlight Popular Column */
.tabela-planos td.popular-cell {
    background-color: var(--popular-bg);
    font-weight: 500;
}

.tabela-planos tr:hover td {
    background-color: #f3f4f6;
}

.tabela-planos tr:hover td.popular-cell {
    background-color: #ffedd5;
}

.text-muted {
    color: var(--text-light);
    font-style: italic;
}

.ok {
    color: var(--success-color);
    font-weight: 700;
}

.btn-plano {
    padding: 10px 24px;
    border: 1px solid var(--text-main);
    background: transparent;
    color: var(--text-main);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-plano:hover {
    background: var(--text-main);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-plano.destaque {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.btn-plano.destaque:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* MODAL */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: #fff;
    padding: 40px;
    max-width: 550px;
    width: 90%;
    border-radius: 16px;
    text-align: left;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-box {
    transform: scale(1) translateY(0);
}

.fechar {
    position: absolute;
    right: 20px;
    top: 20px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.fechar:hover {
    color: var(--text-main);
}

/* Modal Content Styling */
#conteudo-modal h2 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 24px;
    border-bottom: 2px solid var(--popular-border);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#conteudo-modal ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

#conteudo-modal li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

#conteudo-modal li:before {
    color: var(--success-color);
    font-weight: bold;
    margin-right: 10px;
}

#conteudo-modal p {
    color: var(--text-main);
    line-height: 1.6;
}

/* Scrollbar Customization */
.tabela-wrapper::-webkit-scrollbar {
    height: 8px;
}

.tabela-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.tabela-wrapper::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.tabela-wrapper::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

@media (max-width: 768px) {
    #novos-planos {
        padding: 20px 10px;
    }
    
    .tabela-planos th, .tabela-planos td {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .nome-plano {
        font-size: 16px;
    }
}