/* ==========================================================================
   MhSys OS — Componente de Alternância e Matriz Comparativa de Planos (CRO)
   Suporte Bimodal Completo (Dark Mode Nativo & Light Mode Corporativo)
   ========================================================================== */

/* 1. Barra de Controle Unificada (Switcher de Ciclo + Switcher de Visualização) */
.planos-controls-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.view-mode-switcher-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.view-mode-toggle {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 5px;
    gap: 4px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.btn-view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.52rem 1.15rem;
    border-radius: 999px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    white-space: nowrap;
}

.btn-view-toggle i {
    font-size: 0.95rem;
    transition: transform 0.22s ease;
}

.btn-view-toggle:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.05);
}

.btn-view-toggle.active {
    background: linear-gradient(135deg, var(--nicho-primary, #06b6d4), var(--nicho-secondary, #3b82f6));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35);
}

.btn-view-toggle.active i {
    transform: scale(1.08);
}

/* 2. Botão de Âncora Rápida na Base de Cada Card de Plano */
.btn-ver-comparacao-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    margin-top: 0.85rem;
    padding: 0.55rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.22s ease;
}

.btn-ver-comparacao-card:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.45);
    color: #38bdf8;
    transform: translateY(-1px);
}

.btn-ver-comparacao-card i {
    font-size: 0.85rem;
    transition: transform 0.22s ease;
}

.btn-ver-comparacao-card:hover i {
    transform: translateY(2px);
}

/* 3. Transição Suave entre Modos (Cards vs Comparativo) */
.planos-view-panel {
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.planos-view-panel.is-hidden {
    display: none !important;
    opacity: 0;
    transform: translateY(8px);
}

.planos-view-panel.is-visible {
    animation: mhPlanosViewFadeIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* 4. Container Principal da Matriz Comparativa */
.comparison-matrix-wrapper {
    position: relative;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
    overflow: visible;
    margin-top: 0.5rem;
}

/* Barra de Controle Mobile 1 vs 1 (< 768px) */
.mobile-1v1-comparison-bar {
    display: none;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.9rem 1rem;
    border-radius: 22px 22px 0 0;
    position: sticky;
    top: 64px;
    z-index: 45;
    backdrop-filter: blur(14px);
}

.mobile-1v1-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-1v1-selectors {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.5rem;
}

.mobile-1v1-select {
    width: 100%;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(6, 182, 212, 0.35);
    color: #f8fafc;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.48rem 0.65rem;
    border-radius: 10px;
    outline: none;
}

.mobile-1v1-vs-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.16);
    border: 1px solid rgba(6, 182, 212, 0.35);
    color: #38bdf8;
    font-size: 0.68rem;
    font-weight: 800;
}

/* 5. Tabela Comparativa & Cabeçalho Fixo (Sticky Header) */
.comparison-table-scroll {
    width: 100%;
    overflow-x: auto;
    border-radius: 22px;
}

.comparison-matrix-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 780px;
}

.comparison-matrix-table thead th {
    position: sticky;
    top: 0;
    z-index: 35;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.35rem 1rem;
    vertical-align: top;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.comparison-matrix-table thead th:first-child {
    border-top-left-radius: 22px;
    width: 32%;
    min-width: 250px;
    text-align: left;
    padding-left: 1.5rem;
}

.comparison-matrix-table thead th:last-child {
    border-top-right-radius: 22px;
}

/* Busca Rápida de Recursos na Coluna 1 */
.comparison-search-box {
    position: relative;
    margin-top: 0.75rem;
}

.comparison-search-box i.bi-search {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.85rem;
    pointer-events: none;
}

.comparison-search-input {
    width: 100%;
    background: rgba(30, 41, 59, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 11px;
    padding: 0.55rem 2.1rem 0.55rem 2.25rem;
    color: #f8fafc;
    font-size: 0.82rem;
    transition: all 0.2s ease;
}

.comparison-search-input::placeholder {
    color: #64748b;
}

.comparison-search-input:focus {
    outline: none;
    border-color: var(--nicho-primary, #06b6d4);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.18);
    background: rgba(15, 23, 42, 0.95);
}

.comparison-search-clear {
    position: absolute;
    right: 0.55rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.85rem;
    cursor: pointer;
    display: none;
    padding: 2px 5px;
}

.comparison-search-clear:hover {
    color: #f8fafc;
}

/* Colunas dos Planos no Header */
.comp-plan-col-header {
    text-align: center;
    min-width: 165px;
    position: relative;
}

.comp-plan-popular-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, var(--nicho-primary, #06b6d4), var(--nicho-secondary, #3b82f6));
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.45rem;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.35);
}

.comp-plan-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.comp-plan-price-wrap {
    margin: 0.35rem 0 0.75rem;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

.comp-plan-currency {
    font-size: 0.78rem;
    font-weight: 700;
    color: #94a3b8;
}

.comp-plan-amount {
    font-size: 1.45rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
}

.comp-plan-period {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
}

.comp-plan-cycle-note {
    font-size: 0.68rem;
    color: #34d399;
    font-weight: 600;
    margin-top: 2px;
}

.comp-plan-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
}

.comp-plan-cta-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    transform: translateY(-1px);
}

.comp-plan-cta-btn.is-popular {
    background: linear-gradient(135deg, var(--nicho-primary, #06b6d4), var(--nicho-secondary, #3b82f6));
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(6, 182, 212, 0.28);
}

.comp-plan-cta-btn.is-popular:hover {
    filter: brightness(1.08);
    box-shadow: 0 8px 22px rgba(6, 182, 212, 0.4);
}

/* Destaque da Coluna Recomendada ("Mais Escolhido") e Coluna Focada */
.comparison-matrix-table th.col-plan-popular,
.comparison-matrix-table td.col-plan-popular {
    background: linear-gradient(180deg, rgba(6, 182, 212, 0.1) 0%, rgba(59, 130, 246, 0.06) 100%);
    border-left: 1px solid rgba(6, 182, 212, 0.32);
    border-right: 1px solid rgba(6, 182, 212, 0.32);
}

.comparison-matrix-table thead th.col-plan-popular {
    background: linear-gradient(180deg, rgba(8, 47, 73, 0.96) 0%, rgba(15, 23, 42, 0.96) 100%);
    border-top: 2px solid var(--nicho-primary, #06b6d4);
}

.comparison-matrix-table th.col-plan-focused,
.comparison-matrix-table td.col-plan-focused {
    box-shadow: inset 0 0 0 2px rgba(56, 189, 248, 0.65);
    background: rgba(56, 189, 248, 0.12) !important;
    transition: all 0.4s ease;
}

/* 6. Cabeçalhos de Categoria Semântica (Acordeão Colapsável) */
.comp-category-row td {
    background: rgba(30, 41, 59, 0.82);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.85rem 1.5rem;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.comp-category-row:hover td {
    background: rgba(30, 41, 59, 0.98);
}

.comp-category-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.comp-category-title-group {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #38bdf8;
}

.comp-category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #38bdf8;
    font-size: 0.9rem;
}

.comp-category-chevron {
    color: #94a3b8;
    font-size: 0.85rem;
    transition: transform 0.25s ease;
}

.comp-category-row.is-collapsed .comp-category-chevron {
    transform: rotate(-90deg);
}

/* 7. Linhas de Recursos (Zebra Striping & Hover Highlight) */
.comp-feature-row td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
    transition: background-color 0.18s ease;
}

.comp-feature-row:nth-child(even) td {
    background: rgba(255, 255, 255, 0.015);
}

.comp-feature-row:hover td {
    background: rgba(6, 182, 212, 0.07) !important;
}

.comp-feature-row.is-collapsed-row,
.comp-feature-row.is-search-hidden,
.comp-category-row.is-search-hidden {
    display: none !important;
}

.comp-feature-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-left: 0.5rem;
}

.comp-feature-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.35;
}

.comp-feature-tooltip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.82rem;
    cursor: help;
    transition: color 0.2s ease;
    position: relative;
    flex-shrink: 0;
}

.comp-feature-tooltip-trigger:hover {
    color: #38bdf8;
}

/* Tooltip Nativo CSS Rico */
.comp-feature-tooltip-trigger[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    width: 230px;
    padding: 0.55rem 0.75rem;
    background: #0f172a;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 10px;
    color: #f1f5f9;
    font-size: 0.74rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 60;
}

.comp-feature-tooltip-trigger[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 8. Células de Valor Semântico (Incluso, Ausente, Add-on, Texto/Limite) */
.comp-feature-cell {
    text-align: center;
    font-size: 0.84rem;
}

.comp-val-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.14);
    color: #10b981;
    font-size: 1.05rem;
}

.comp-val-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.72rem;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.13);
    border: 1px solid rgba(6, 182, 212, 0.28);
    color: #38bdf8;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.comp-val-badge i {
    color: #10b981;
    font-size: 0.82rem;
}

.badge-recurso-bloqueado {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.14);
    color: #64748b;
    font-size: 0.8rem;
    cursor: help;
    transition: all 0.2s ease;
}

.badge-recurso-bloqueado:hover {
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.16);
}

.comp-val-addon {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.24rem 0.65rem;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    font-size: 0.73rem;
    font-weight: 700;
}

/* Estado Vazio na Busca de Recursos */
.comp-empty-search-state {
    display: none;
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: #94a3b8;
}

.comp-empty-search-state i {
    font-size: 2rem;
    color: #38bdf8;
    margin-bottom: 0.5rem;
    display: block;
}

/* ==========================================================================
   9. RESPONSIVIDADE & MOBILE UX (< 768px: Comparador 1 vs 1 + Acordeões)
   ========================================================================== */
@media (max-width: 767.98px) {
    .planos-controls-toolbar {
        flex-direction: column;
        gap: 0.75rem;
    }

    .mobile-1v1-comparison-bar {
        display: block;
    }

    .comparison-matrix-table {
        min-width: 100%;
    }

    .comparison-matrix-table thead th:first-child {
        width: 44%;
        min-width: 145px;
        padding: 0.9rem 0.65rem;
    }

    .comp-plan-col-header {
        min-width: 110px;
        padding: 0.9rem 0.45rem !important;
    }

    .comp-plan-name {
        font-size: 0.85rem;
    }

    .comp-plan-amount {
        font-size: 1.1rem;
    }

    .comp-plan-cta-btn {
        font-size: 0.7rem;
        padding: 0.4rem 0.45rem;
    }

    .comp-feature-row td {
        padding: 0.7rem 0.55rem;
    }

    .comp-feature-name {
        font-size: 0.78rem;
    }

    .comp-val-badge {
        font-size: 0.68rem;
        padding: 0.2rem 0.48rem;
        white-space: normal;
        line-height: 1.2;
    }

    /* Oculta colunas de planos não selecionados no modo 1 vs 1 mobile */
    .comparison-matrix-table th.mobile-col-hidden,
    .comparison-matrix-table td.mobile-col-hidden {
        display: none !important;
    }
}

/* ==========================================================================
   10. TEMA CLARO (LIGHT MODE CORPORATIVO — body.light-mode)
   ========================================================================== */
body.light-mode .view-mode-toggle {
    background: #f1f5f9;
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

body.light-mode .btn-view-toggle {
    color: #475569;
}

body.light-mode .btn-view-toggle:hover {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.05);
}

body.light-mode .btn-view-toggle.active {
    color: #ffffff;
}

body.light-mode .btn-ver-comparacao-card {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
}

body.light-mode .btn-ver-comparacao-card:hover {
    background: rgba(6, 182, 212, 0.08);
    border-color: #0891b2;
    color: #0e7490;
}

body.light-mode .comparison-matrix-wrapper {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.07);
}

body.light-mode .mobile-1v1-comparison-bar {
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: #e2e8f0;
}

body.light-mode .mobile-1v1-select {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

body.light-mode .comparison-matrix-table thead th {
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: #e2e8f0;
}

body.light-mode .comparison-search-input {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

body.light-mode .comparison-search-input:focus {
    background: #ffffff;
    border-color: #0891b2;
}

body.light-mode .comp-plan-name,
body.light-mode .comp-plan-amount {
    color: #0f172a;
}

body.light-mode .comp-plan-currency,
body.light-mode .comp-plan-period {
    color: #64748b;
}

body.light-mode .comp-plan-cycle-note {
    color: #059669;
}

body.light-mode .comp-plan-cta-btn {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

body.light-mode .comp-plan-cta-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

body.light-mode .comp-plan-cta-btn.is-popular {
    color: #ffffff;
}

body.light-mode .comparison-matrix-table th.col-plan-popular,
body.light-mode .comparison-matrix-table td.col-plan-popular {
    background: linear-gradient(180deg, rgba(6, 182, 212, 0.06) 0%, rgba(59, 130, 246, 0.03) 100%);
    border-left-color: rgba(8, 145, 178, 0.28);
    border-right-color: rgba(8, 145, 178, 0.28);
}

body.light-mode .comparison-matrix-table thead th.col-plan-popular {
    background: linear-gradient(180deg, #ecfeff 0%, #ffffff 100%);
}

body.light-mode .comp-category-row td {
    background: #f1f5f9;
    border-top-color: #e2e8f0;
    border-bottom-color: #e2e8f0;
}

body.light-mode .comp-category-row:hover td {
    background: #e2e8f0;
}

body.light-mode .comp-category-title-group {
    color: #0e7490;
}

body.light-mode .comp-feature-row td {
    border-bottom-color: #f1f5f9;
}

body.light-mode .comp-feature-row:nth-child(even) td {
    background: #f8fafc;
}

body.light-mode .comp-feature-row:hover td {
    background: rgba(6, 182, 212, 0.06) !important;
}

body.light-mode .comp-feature-name {
    color: #1e293b;
}

body.light-mode .comp-val-badge {
    background: rgba(8, 145, 178, 0.1);
    border-color: rgba(8, 145, 178, 0.25);
    color: #0e7490;
}

body.light-mode .badge-recurso-bloqueado {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
}

body.light-mode .comp-val-addon {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #b45309;
}

/* ==========================================================================
   11. SELETOR DE MODO DE EXIBIÇÃO & MATRIZ COMPARATIVA CANÔNICA (Bootstrap 5)
   ========================================================================== */
.animate-fade-in {
    animation: fadeInPlanos 0.25s ease-in-out;
}

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

.planos-view-switcher-group {
    display: inline-flex;
    align-items: center;
    padding: 4px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    gap: 4px;
}

.btn-view-planos {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 999px !important;
    padding: 0.45rem 1.05rem !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    border: none !important;
    background: transparent;
    color: #94a3b8;
    transition: all 0.22s ease;
    cursor: pointer;
    white-space: nowrap;
}

.btn-view-planos:hover {
    color: #f8fafc !important;
    background: rgba(255, 255, 255, 0.06);
}

.btn-view-planos.active {
    background-color: var(--bs-primary, #4f46e5) !important;
    background-image: linear-gradient(135deg, #4f46e5, #06b6d4) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.35);
}

/* Destaque de Alto Impacto para o Botão '📊 Tabela Comparativa' */
.btn-view-tabela-destaque {
    position: relative;
    background: rgba(99, 102, 241, 0.16) !important;
    border: 1px solid rgba(129, 140, 248, 0.45) !important;
    color: #c7d2fe !important;
    font-weight: 700 !important;
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.25);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-view-tabela-destaque:hover {
    background: rgba(99, 102, 241, 0.28) !important;
    border-color: rgba(165, 180, 252, 0.7) !important;
    color: #ffffff !important;
    box-shadow: 0 0 22px rgba(99, 102, 241, 0.45);
    transform: translateY(-1px);
}

.btn-view-tabela-destaque.active {
    background-color: var(--bs-primary, #4f46e5) !important;
    background-image: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 4px 18px rgba(79, 70, 229, 0.48) !important;
}

.badge-tabela-destaque {
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.35);
    color: #e0e7ff;
    border: 1px solid rgba(165, 180, 252, 0.5);
    line-height: 1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.btn-view-tabela-destaque:hover .badge-tabela-destaque {
    background: rgba(99, 102, 241, 0.55);
    border-color: rgba(199, 210, 254, 0.8);
    color: #ffffff;
}

.btn-view-tabela-destaque.active .badge-tabela-destaque {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
}

.comparativo-planos-wrapper {
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
}

.comparativo-planos-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
    min-width: 780px;
}

.comparativo-planos-table th,
.comparativo-planos-table td {
    padding: 14px 16px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: #e2e8f0;
}

.comparativo-planos-table thead th {
    background: rgba(15, 23, 42, 0.96);
    border-bottom: 2px solid rgba(255, 255, 255, 0.12);
    vertical-align: bottom;
    padding-top: 18px;
    padding-bottom: 18px;
}

.comparativo-col-recurso {
    min-width: 240px;
    text-align: left;
    position: sticky;
    left: 0;
    z-index: 3;
    background: rgba(15, 23, 42, 0.98);
}

.comparativo-planos-table tbody td.comparativo-col-recurso {
    background: rgba(15, 23, 42, 0.96);
    font-weight: 500;
    color: #cbd5e1;
}

.comparativo-col-plano {
    min-width: 165px;
    text-align: center;
}

.comparativo-planos-table th.comparativo-col-destaque,
.comparativo-planos-table td.comparativo-col-destaque {
    background: rgba(79, 70, 229, 0.12) !important;
    border-left: 1px solid rgba(99, 102, 241, 0.3);
    border-right: 1px solid rgba(99, 102, 241, 0.3);
}

.comparativo-planos-table thead th.comparativo-col-destaque {
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.24) 0%, rgba(15, 23, 42, 0.96) 100%) !important;
    border-top: 3px solid #6366f1;
}

.comparativo-categoria-row td {
    background: rgba(30, 41, 59, 0.9) !important;
    color: #38bdf8 !important;
    font-weight: 700 !important;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 11px 16px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comparativo-planos-table tbody tr:not(.comparativo-categoria-row):hover td {
    background: rgba(56, 189, 248, 0.06);
}

.comparativo-planos-table tbody tr:not(.comparativo-categoria-row):hover td.comparativo-col-recurso {
    background: rgba(15, 23, 42, 0.99);
}

@media (max-width: 768px) {
    .comparativo-col-recurso {
        position: sticky;
        left: 0;
        background: rgba(15, 23, 42, 0.98);
        z-index: 4;
        box-shadow: 3px 0 8px rgba(0, 0, 0, 0.25);
        min-width: 175px;
        max-width: 200px;
        font-size: 0.8rem;
    }

    .comparativo-planos-table th,
    .comparativo-planos-table td {
        padding: 10px 12px;
    }
}

body.light-mode .planos-view-switcher-group {
    background: #f8fafc;
    border-color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

body.light-mode .btn-view-planos {
    color: #64748b;
}

body.light-mode .btn-view-planos:hover {
    color: #0f172a !important;
    background: rgba(15, 23, 42, 0.05);
}

body.light-mode .btn-view-planos.active {
    color: #ffffff !important;
}

body.light-mode .btn-view-tabela-destaque {
    background: #eef2ff !important;
    border: 1.5px solid #a5b4fc !important;
    color: #4338ca !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.16);
}

body.light-mode .btn-view-tabela-destaque:hover {
    background: #e0e7ff !important;
    border-color: #6366f1 !important;
    color: #312e81 !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
    transform: translateY(-1px);
}

body.light-mode .btn-view-tabela-destaque.active {
    background-image: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 4px 18px rgba(79, 70, 229, 0.35) !important;
}

body.light-mode .badge-tabela-destaque {
    background: #c7d2fe;
    color: #312e81;
    border-color: #818cf8;
}

body.light-mode .btn-view-tabela-destaque.active .badge-tabela-destaque {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

body.light-mode .comparativo-planos-wrapper {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

body.light-mode .comparativo-planos-table th,
body.light-mode .comparativo-planos-table td {
    border-bottom-color: #f1f5f9;
    color: #1e293b;
}

body.light-mode .comparativo-planos-table thead th {
    background: #ffffff;
    border-bottom-color: #e2e8f0;
}

body.light-mode .comparativo-col-recurso,
body.light-mode .comparativo-planos-table tbody td.comparativo-col-recurso {
    background: #ffffff;
    color: #334155;
}

body.light-mode .comparativo-planos-table th.comparativo-col-destaque,
body.light-mode .comparativo-planos-table td.comparativo-col-destaque {
    background: rgba(79, 70, 229, 0.04) !important;
    border-left-color: rgba(79, 70, 229, 0.2);
    border-right-color: rgba(79, 70, 229, 0.2);
}

body.light-mode .comparativo-planos-table thead th.comparativo-col-destaque {
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.1) 0%, #ffffff 100%) !important;
}

body.light-mode .comparativo-categoria-row td {
    background: #f8fafc !important;
    color: #4f46e5 !important;
    border-top-color: #e2e8f0;
    border-bottom-color: #e2e8f0;
}

body.light-mode .comparativo-planos-table tbody tr:not(.comparativo-categoria-row):hover td {
    background: #f8fafc;
}

body.light-mode .comparativo-planos-table tbody tr:not(.comparativo-categoria-row):hover td.comparativo-col-recurso {
    background: #f8fafc;
}

@media (max-width: 768px) {
    body.light-mode .comparativo-col-recurso,
    body.light-mode .comparativo-planos-table tbody td.comparativo-col-recurso {
        background: #ffffff;
        box-shadow: 2px 0 6px rgba(0, 0, 0, 0.06);
    }
}


