/* ======================================================= */
/* LAYOUT BASE DA TELA MEU PLANO                           */
/* ======================================================= */
.meuplano-content {
    margin-left: 202px;
    margin-top: 60px;
    padding: 30px;
    height: calc(100vh - 60px);
    background: var(--body-color);
    transition: margin-left 0.4s ease;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow-y: auto;
}

#sidebar-container:has(.sidebar.collapsed) ~ .meuplano-content { 
    margin-left: 60px !important; 
}

.cabecalho-plano {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.cabecalho-plano h1 {
    font-size: 2.2rem;
    color: #1e293b;
    font-weight: 800;
    margin: 0 0 5px 0;
    letter-spacing: -0.02em;
}

.cabecalho-plano p {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

/* ======================================================= */
/* BOTÕES PREMIUM (GLOW EFFECT)                            */
/* ======================================================= */
.btn-upgrade-glow {
    padding: 0 20px;
    height: 38px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(96, 197, 163, 0.2);
}

.btn-upgrade-glow:hover {
    background: var(--primary-color-light);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-whatsapp-comercial {
    background: #25D366;
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.btn-whatsapp-comercial:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(37, 211, 102, 0.4);
}

/* ======================================================= */
/* GRID DE CARDS DO DASHBOARD                              */
/* ======================================================= */
.plano-grid-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.plano-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.plano-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--primary-color);
}

.plano-card.card-consumo::before { background: #3b82f6; }
.plano-card.card-modulos::before { background: #8b5cf6; }

.plano-card h3 {
    font-size: 1.2rem;
    color: #1e293b;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plano-card h3 i { color: #94a3b8; }

.card-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin-top: auto; /* Empurra para o rodapé do card */
    padding-top: 20px;
}

/* --- DESTAQUES INTERNOS DOS CARDS --- */
.card-icone-grande {
    font-size: 3rem;
    color: #f59e0b;
    margin-bottom: 15px;
}

#lblNomePlano {
    font-size: 1.5rem;
    color: #0f172a;
    margin-bottom: 10px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ecfdf5;
    color: #10b981;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    width: fit-content;
}

.status-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* --- BARRA DE CONSUMO --- */
.card-cabecalho-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.kpi-consumo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
    border-radius: 8px;
    transition: width 1s ease-in-out, background-color 0.5s ease;
}

.progress-bar-fill.perigo {
    background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
}

.legenda-consumo {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

.aviso-capacidade { color: #ef4444; }

/* --- LISTA DE MÓDULOS --- */
.lista-modulos {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lista-modulos li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #334155;
    font-weight: 500;
}

.lista-modulos li i {
    color: #10b981;
    background: #ecfdf5;
    padding: 5px;
    border-radius: 8px;
    font-size: 0.8rem;
}

/* ======================================================= */
/* BANNER DE UPSELL                                        */
/* ======================================================= */
.upsell-banner {
    background: #1e293b;
    border-radius: 8px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    background-image: radial-gradient(circle at 100% 100%, #334155 0%, transparent 50%);
}

.upsell-textos h2 {
    color: #ffffff;
    font-size: 1.8rem;
    margin: 0 0 10px 0;
}

.upsell-textos p {
    color: #cbd5e1;
    font-size: 1rem;
    margin: 0;
    max-width: 600px;
    line-height: 1.5;
}

/* Responsividade */
@media (max-width: 1024px) {
    .plano-grid-cards { grid-template-columns: 1fr; }
    .upsell-banner { flex-direction: column; text-align: center; gap: 20px; }
}