@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700;800&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #2c3e50;
}

.main-container {
    display: flex;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

.logo-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.logo-main {
    width: 100%;
    max-width: 350px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

.certificates {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cert-img {
    width: 100px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.cert-img:hover {
    transform: translateY(-5px);
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    flex: 1;
    max-width: 500px;
    padding: 50px 40px;
    border-top: 5px solid #35D2B7;
}

.form-container {
    display: none;
}

.form-container.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

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

h2 {
    color: #2c3e50;
    margin-bottom: 35px;
    text-align: center;
    font-size: 32px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #34495e;
    font-weight: 500;
    font-size: 14px;
}

input, select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8f0fe;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8fbff;
    color: #2c3e50;
}

input:focus, select:focus {
    outline: none;
    border-color: #35D2B7;
    background: white;
    box-shadow: 0 0 0 4px rgba(53, 210, 183, 0.1);
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

button {
    width: 100%;
    padding: 16px;
    background: #35D2B7;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(53, 210, 183, 0.3);
}

button:hover {
    background: #2ebfa7;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(53, 210, 183, 0.4);
}

button:active {
    transform: translateY(0);
}

.secondary-btn {
    background: transparent;
    color: #35D2B7;
    border: 2px solid #35D2B7;
    margin-top: 15px;
    box-shadow: none;
}

.secondary-btn:hover {
    background: #35D2B7;
    color: white;
}

.message {
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 25px;
    text-align: center;
    font-size: 14px;
    display: none;
    font-weight: 500;
}

.message.success {
    background: #d4f4dd;
    color: #0f5132;
    border: 2px solid #35D2B7;
}

.message.error {
    background: #f8d7da;
    color: #842029;
    border: 2px solid #f5c2c7;
}

.message.show {
    display: block;
    animation: slideDown 0.3s ease;
}

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

@media (max-width: 968px) {
    .main-container {
        flex-direction: column;
        gap: 30px;
    }

    .logo-section {
        order: -1;
    }

    .logo-main {
        max-width: 250px;
    }

    .cert-img {
        width: 80px;
    }

    .container {
        max-width: 100%;
    }
}

@media (max-width: 500px) {
    .container {
        padding: 35px 25px;
    }

    .row {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 26px;
    }

    .certificates {
        gap: 15px;
    }

    .cert-img {
        width: 70px;
    }
}


body.dashboard {
    display: block;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
}

.dashboard-header {
    background: #fff;
    padding: 15px 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.dashboard-header .logo-dash {
    font-size: 22px;
    font-weight: 700;
    color: #35D2B7;
}

.dashboard-header .logo-dash-link {
    display: flex;
    align-items: center;
}

.dashboard-header .logo-dash-img {
    height: 35px;
    width: auto;
}

.dashboard-header .logout-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #f1f5f9;
    color: #555;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dashboard-header .logout-btn:hover {
    background: #e2e8f0;
    color: #111;
}

.dashboard-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.dashboard-container h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.dashboard-container .subtitulo {
    font-size: 18px;
    color: #777;
    margin-bottom: 30px;
}

/* Estilo do Cartão Virtual */
.cartao-virtual-section {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.cartao-virtual {
    width: 100%;
    max-width: 420px;
    min-height: 240px;
    padding: 25px;
    border-radius: 18px;

    background-image: url('../img/cartaoanjos.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);

    position: relative; 
    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.cartao-virtual::after {
    display: none; 
}

.cartao-cpf {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-align: left;
    z-index: 1;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 15px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cartao-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 1;
    text-transform: uppercase;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); 
}

.cartao-info small {
    font-size: 10px;
    opacity: 0.9;
    display: block;
    margin-bottom: 3px;
}

.cartao-nome {
    font-size: 13px;
    font-weight: 600;
    text-align: left; 
}

.cartao-nascimento {
    font-size: 13px;
    font-weight: 600;
    text-align: right;
}
/* FIM DA ATUALIZAÇÃO DO CARTÃO VIRTUAL */

.acoes {
    margin-top: 30px;
}

.acoes h2 {
    font-size: 24px;
    text-align: left;
    margin-bottom: 20px;
}

.grid-acoes {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.acao-card {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.acao-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
    border-color: #35D2B7;
}

.acao-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #35D2B7;
}

.acao-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .grid-acoes {
        grid-template-columns: 1fr 1fr;
    }
    .dashboard-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .dashboard-container {
        margin: 20px auto;
    }
}

@media (max-width: 500px) {
    .grid-acoes {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        padding: 15px 20px;
    }
    
    .dashboard-container h1 {
        font-size: 24px;
    }
    
    .dashboard-container .subtitulo {
        font-size: 16px;
    }
    
    .cartao-numero {
        font-size: 20px;
    }
    
    .cartao-nome, .cartao-validade {
        font-size: 13px;
    }
}

/* ESTILOS DA PÁGINA DE DEPENDENTES */

.lista-dependentes {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    padding: 25px;
    margin-bottom: 30px;
}

.lista-dependentes h2 {
    text-align: left;
    margin-bottom: 20px;
    font-size: 24px;
}

.dependente-item {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}
.dependente-item:last-child {
    border-bottom: none;
}

.dependente-info {
    font-size: 16px;
    color: #333;
    flex-grow: 1;
    min-width: 0;
}

.dependente-info strong {
    color: #2c3e50;
}
.dependente-info small {
    font-size: 13px;
    color: #777;
    margin-left: 10px;
}

.sem-dependentes {
    text-align: center;
    padding: 20px;
    color: #888;
    font-style: italic;
}


.form-container-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    padding: 30px;
}
.form-container-card h2 {
    text-align: left;
    margin-bottom: 25px;
}

/* Barra de Progresso*/
.progress-bar {
    margin-bottom: 30px;
    position: relative;
    height: 30px; 
}

.progress-bar-background {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background: #e0e0e0;
    transform: translateY(-50%);
    z-index: 1;
}

.progress-bar::before {
    display: none;
}

.progress-line {
    position: absolute;
    top: 50%;
    left: 0;
    height: 3px;
    background: #35D2B7;
    transform: translateY(-50%);
    z-index: 2;
    width: 0%; 
    transition: width 0.4s ease;
}

.progress-step-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
}

.progress-step {
    width: 30px;
    height: 30px;
    background: #fff;
    border: 3px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    color: #999;
    transition: all 0.4s ease;
}
.progress-step.active {
    border-color: #35D2B7;
    background: #35D2B7;
    color: white;
}
.progress-step.completed {
    border-color: #35D2B7;
    background: #fff;
    color: #35D2B7;
}

.form-step {
    display: none;
}
.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.form-navigation button {
    width: auto;
    padding: 12px 30px;
    font-size: 15px;
}
.form-navigation button.prev-btn {
    background: transparent;
    color: #555;
    border: 2px solid #e0e0e0;
    box-shadow: none;
}
.form-navigation button.prev-btn:hover {
    background: #f5f5f5;
    color: #111;
}

@media (max-width: 500px) {
    .lista-dependentes {
        padding: 20px 15px;
    }
    .lista-header h2 {
        font-size: 22px;
    }

    .dependente-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .dependente-info small {
        margin-left: 0;
        margin-top: 4px;
    }
}

/* ESTILOS DO CARD DE LIMITE DE DEPENDENTES */

.lista-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.lista-header h2 {
    margin-bottom: 0;
}

.limite-atingido-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    padding: 30px 40px;
    text-align: center;
    border-top: 5px solid #ffc107; 
}

.limite-atingido-card h2 {
    text-align: center;
    color: #d9534f; 
    margin-bottom: 15px;
    font-size: 22px;
}

.limite-atingido-card p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn-suporte {
    display: inline-block;
    text-decoration: none;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;

    background: transparent;
    color: #35D2B7;
    border: 2px solid #35D2B7;
}

.btn-suporte:hover {
    background: #35D2B7;
    color: white;
    transform: translateY(-2px);
}

/* ESTILOS DO MODAL DE DEPENDENTES */

.btn-view-dependente {
    background: #f1f5f9;
    color: #555;
    border: none;
    width:38px;
    height:38px;
    border-radius:50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-view-dependente:hover {
    background: #e2e8f0;
    color: #111;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.info-group {
    margin-bottom: 15px;
}
.info-group label {
    font-size: 13px;
    font-weight: 600;
    color: #35D2B7;
    display: block;
    margin-bottom: 4px;
}
.info-group p {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    background: #f8fbff;
    padding: 10px 14px;
    border-radius: 8px;
    border: 2px solid #e8f0fe;
    margin-bottom: 0;
}

.doc-preview {
    padding: 15px;
    border-radius: 8px;
    background: #f8fbff;
    border: 2px dashed #e8f0fe;
    text-align: center;
}
.doc-preview img {
    max-width: 100%;
    max-height: 150px;
    border-radius: 8px;
    object-fit: cover;
}
.doc-preview a {
    font-weight: 600;
    color: #35D2B7;
    text-decoration: none;
}
.doc-preview i {
    color: #999;
}

.btn-submit-docs {
    width: auto;
    padding: 12px 30px;
    background: #35D2B7;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-submit-docs:hover {
    background: #2ebfa7;
}

/* ESTILOS DO INPUT DE UPLOAD CUSTOMIZADO  */

.custom-file-input {
    display: none;
}

.custom-file-label {
    width: 100%;
    padding: 25px 15px;
    border: 2px dashed #dbe6fb;
    border-radius: 12px;
    background: #f8fbff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-file-label svg {
    width: 24px;
    height: 24px;
    stroke: #35D2B7;
    margin-bottom: 10px;
}

.custom-file-label span {
    font-size: 14px;
    font-weight: 600;
    color: #34495e;
}

.custom-file-label:hover {
    background: #f0f7ff;
    border-color: #35D2B7;
}

.file-name-display {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 13px;
    color: #555;
    font-style: italic;
    word-break: break-all; 
}

/* ESTILOS DO BOTÃO DE REMOVER DEPENDENTE  */

.dependente-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.btn-delete-dependente {
    background: transparent;
    border: none;

    color: #d9534f; 

    width: auto; 
    height: auto;
    border-radius: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete-dependente svg {
    width: 14px;
    height: 14px;
}

.btn-delete-dependente:hover {
    background: transparent;
    color: #a94442;
    border: none;
}

/* ESTILOS DO STATUS DO DEPENDENTE (BADGE) */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 12px;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-aprovado {
    background-color: #d4f4dd;
    color: #0f5132;
}

.status-badge.status-pendente {
    background-color: #f8d7da;
    color: #842029;
}

/* ESTILOS DO LIGHTBOX  */

.doc-preview img {
    cursor: pointer;
    transition: all 0.3s ease;
}

.doc-preview img:hover {
    opacity: 0.8;
    transform: scale(1.03);
}

.doc-preview-pdf-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
}

.doc-preview-pdf-link svg {
    width: 48px;
    height: 48px;
    color: #d9534f;
}

.doc-preview-pdf-link span {
    font-weight: 600;
    color: #35D2B7;
}

.doc-preview-pdf-link:hover span {
    text-decoration: underline;
}

.doc-preview-pdf-link:hover {
    transform: scale(1.03);
}

#modalLightbox .modal-content {
    background: rgba(0,0,0,0.5); 
}

/* ESTILOS DA PÁGINA DE FATURAS (faturas.php)   */

.faturas-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    padding: 25px;
}

.faturas-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fatura-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr; 
    gap: 15px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
}
.fatura-item:last-child {
    border-bottom: none;
}

.fatura-info .fatura-ref {
    font-weight: 600;
    color: #2c3e50;
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}
.fatura-info .fatura-venc {
    font-size: 13px;
    color: #777;
}

.fatura-valor {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    text-align: right;
}

.fatura-status {
    text-align: center;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.status-badge.status-aprovado,
.status-badge.status-pago {
    background-color: #d4f4dd;
    color: #0f5132;
}
.status-badge.status-pendente {
    background-color: #fff3cd;
    color: #664d03;
}
.status-badge.status-vencido,
.status-badge.status-cancelado {
    background-color: #f8d7da;
    color: #842029;
}

.fatura-actions {
    text-align: right;
}

.fatura-actions .btn-pagar {
    display: inline-block;
    padding: 8px 16px;
    background: #35D2B7;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.fatura-actions .btn-pagar:hover {
    background: #2ebfa7;
}

.fatura-actions .data-pagamento {
    font-size: 13px;
    color: #0f5132;
    font-style: italic;
}

.sem-faturas {
    text-align: center;
    padding: 30px;
    color: #888;
    font-style: italic;
}

@media (max-width: 768px) {
    .fatura-item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px 0;
        text-align: left;
    }
    .fatura-valor,
    .fatura-status,
    .fatura-actions {
        text-align: left;
    }
    .fatura-valor::before { content: "Valor: "; font-weight: normal; color: #777; }
    .fatura-status::before { content: "Status: "; font-weight: normal; color: #777; margin-right: 5px;}

    .fatura-actions .btn-pagar {
        width: 100%;
        text-align: center;
    }
}
/* ESTILOS DA NOVA LISTA E DETALHE DE FATURAS   */
body.dashboard-list,
body.dashboard-detail {
    background: #f5f7fa;
}
.dashboard-list .dashboard-container,
.dashboard-detail .dashboard-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 0 15px;
}
.dashboard-detail .dashboard-header {
    justify-content: space-between;/
}

.list-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #2c3e50;
}
.list-subtitle {
    font-size: 15px;
    color: #777;
    margin-bottom: 30px;
    line-height: 1.5;
}

.historico-faturas {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.fatura-mes-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 10px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
}
.fatura-mes-item:last-child {
    border-bottom: none;
}
.fatura-mes-item:hover {
    background-color: #f8f9fa;
}

.mes-nome {
    font-weight: 600;
    font-size: 16px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mes-nome svg {
    color: #adb5bd;
}

.mes-valor-status {
    text-align: right;
}
.mes-valor {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    display: block;
    margin-bottom: 5px;
}
.mes-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.mes-status svg {
    width: 12px;
    height: 12px;
}
.mes-status.status-pago {
    background-color: #d4f4dd; color: #0f5132;
}
.mes-status.status-pendente {
     background-color: #fff3cd; color: #664d03;
}
.mes-status.status-vencido {
    background-color: #f8d7da; color: #842029;
}

.fatura-detalhe-container {
    padding-bottom: 40px;
}

.back-button {
    color: #35D2B7;
    background: none;
    border: none;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.detalhe-header {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 25px;
}
.mes-referencia {
    font-size: 14px;
    font-weight: 600;
    color: #777;
    margin-bottom: 5px;
    text-transform: uppercase;
}
.valor-principal {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}
.status-principal {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 16px;
    margin-bottom: 10px;
}
.status-principal svg { width: 14px; height: 14px; }
.status-principal.status-pago { background-color: #d4f4dd; color: #0f5132; }
.status-principal.status-pendente { background-color: #fff3cd; color: #664d03; }
.status-principal.status-vencido { background-color: #f8d7da; color: #842029; }
.vencimento-detalhe {
    font-size: 14px;
    color: #555;
}

.detalhe-opcoes-pagamento.card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    padding: 20px;
    margin-bottom: 25px;
    border: none;
}
.detalhe-opcoes-pagamento h4 {
    font-size: 16px;
    font-weight: 600;
    color: #555;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.botoes-pagamento {
    display: flex;
    gap: 15px;
    justify-content: center;
}
.pagamento-botao {
    flex: 1;
    max-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background: #f8f9fa;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
}
.pagamento-botao:hover {
    background: #e9ecef;
    border-color: #ccc;
}
.pagamento-botao svg {
    width: 32px;
    height: 32px;
    color: #35D2B7;
}
.pagamento-botao svg.pix-icon path { fill: #35D2B7; } 
.pagamento-botao.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
    border-color: #e0e0e0;
}

.detalhe-fatura-geral.card {
     background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    padding: 20px;
    margin-bottom: 25px;
    border: none;
}
.detalhe-fatura-geral h4 { /* (Igual) */
    font-size: 16px; font-weight: 600; color: #555; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 0.5px;
}
.detalhe-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}
.detalhe-item:last-child {
    border-bottom: none; padding-bottom: 0;
}
.detalhe-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.detalhe-label {
    font-size: 15px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}
.detalhe-label svg { width: 18px; height: 18px; color: #777; }
.detalhe-valor {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 5px;
}
.detalhe-valor .expand-icon {
    color: #adb5bd;
    transition: transform 0.3s ease;
}
.detalhe-item-content {
    overflow: hidden;
    padding: 0 0 0 26px;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    max-height: 0;
}

.detalhe-item-content[style*="max-height:"] {
     padding-top: 10px;
}

.detalhe-opcoes-fatura.card {
    background: #fff; border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.06); padding: 20px; margin-bottom: 25px; border: none;
}
.detalhe-opcoes-fatura h4 {
    font-size: 16px; font-weight: 600; color: #555; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 0.5px;
}
.opcoes-lista {
    display: flex;
    flex-direction: column;
}
.opcao-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 10px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}
.opcao-item:last-child { border-bottom: none; }
.opcao-item:hover { background-color: #f8f9fa; }
.opcao-item span { display: flex; align-items: center; gap: 10px; }
.opcao-item span svg { width: 20px; height: 20px; color: #35D2B7; }
.opcao-item > svg { color: #adb5bd; }

button.opcao-item {
    background-color: transparent !important;
    border: none !important;
    color: #333 !important; 
    box-shadow: none !important;
    margin-top: 0 !important;
    padding: 18px 10px !important;
    width: 100% !important;
    text-align: left !important;
}

button.opcao-item:hover {
    background-color: #f8f9fa !important;
    color: #333 !important;
}

button.opcao-item span svg { 
    color: #35D2B7 !important; 
} 
button.opcao-item > svg { 
    color: #adb5bd !important; 
} 

.opcao-item.loading,
.opcao-item:disabled { 
    opacity: 0.7;
    cursor: wait;
    background-color: #f8f9fa !important;
}
.opcao-item .spinner-border-sm { 
    width: 1em; height: 1em; border-width: 0.2em; 
    margin-right: 8px;
    color: #35D2B7;
}

/* ESTILOS DO BOTÃO FLUTUANTE*/

.floating-home-button {
    position: fixed; 
    bottom: 25px;    
    right: 25px;     
    z-index: 1000;

    width: 60px;     
    height: 60px;    
    border-radius: 50%;

    background-color: #35D2B7;
    color: #fff;             
    
    display: flex;
    justify-content: center;
    align-items: center;

    text-decoration: none;
    
    box-shadow: 0 6px 20px rgba(53, 210, 183, 0.4);
    
    transition: all 0.3s ease;
}

.floating-home-button svg {
    width: 24px;
    height: 24px;
}

.floating-home-button:hover {
    background-color: #2ebfa7;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 191, 167, 0.5);
}

.floating-home-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(53, 210, 183, 0.3);
}

/* ESTILOS DO AVISO FLUTUANTE */

.floating-plan-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff3cd;
    color: #664d03;
    padding: 12px 20px;
    z-index: 1050;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #ffeeba;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.floating-plan-notice p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.floating-plan-notice svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.floating-plan-notice a {
    color: #664d03;
    font-weight: 700;
    text-decoration: underline;
}
.floating-plan-notice a:hover {
    color: #4d3a02;
}

.close-notice-btn {
    background: none;
    border: none;
    color: #664d03;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    margin-left: 15px;
    opacity: 0.7;
    padding: 5px;
}
.close-notice-btn:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    body.dashboard .dashboard-container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;      
        padding-right: 15px !important;     
        margin-left: 0 !important;          
        margin-right: 0 !important;         
        box-sizing: border-box !important;
    }

    body.dashboard .dashboard-container > h1,
    body.dashboard .dashboard-container > p,
    body.dashboard .dashboard-container > section {
         margin-left: 0 !important;
         margin-right: 0 !important;

    }
    .dashboard-container.plano-container {
         padding-left: 15px;
         padding-right: 15px;
    }
}

.plano-info-card {
    background: #fff; border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.06); 
    padding: 25px;
    margin-bottom: 25px;
    border: none;
}
.plano-info-card h2 { 
    font-size: 22px;
    font-weight: 700; color: #35D2B7; 
    margin-bottom: 8px;
    text-align: left;
}
.plano-info-card h2 .plano-tipo-badge {
     font-size: 0.65em;
     font-weight: normal;
     color: #777;
     vertical-align: middle;
}
.plano-valor {
    font-size: 18px; 
    font-weight: 600; color: #555; 
    margin-bottom: 15px;
}
.plano-info-card hr {
    border: none; border-top: 1px solid #eee; margin: 15px 0;
}
.plano-descricao h4 {
    font-size: 15px; 
    font-weight: 600; color: #444; margin-bottom: 6px;
}
.plano-descricao p {
    font-size: 14px; 
    color: #666; line-height: 1.6;
}

.link-ver-outros-planos {
    display: inline-block;
    margin-top: 5px;
    margin-bottom: 30px;
    color: #35D2B7;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}
.link-ver-outros-planos:hover {
    text-decoration: underline;
}

.sem-plano-aviso.card {
    background-color: #fff3cd; color: #664d03; 
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 30px; border: 1px solid #ffeeba;
    text-align: center;
}
.sem-plano-aviso p {
    margin: 0 0 15px 0; font-weight: 500; font-size: 14px;
}
.btn-contratar { 
    display: inline-block;
    padding: 10px 20px;
    background: #35D2B7; color: white;
    border-radius: 8px; text-decoration: none;
    font-size: 14px; font-weight: 600;
    transition: all 0.3s ease;
}
.btn-contratar:hover { background: #2ebfa7; }

.titulo-planos-disponiveis {
    font-size: 20px;
    font-weight: 600; color: #333;
    margin-top: 0;
    margin-bottom: 15px; 
    text-align: left;
}
.plano-info-card + .titulo-planos-disponiveis {
    margin-top: 30px; 
}

.planos-disponiveis-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 15px;
    margin-bottom: 30px;
}

.plano-disponivel-item.card {
    background: #fff; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    padding: 20px; 
    border: 1px solid #f0f0f0;
    display: flex; flex-direction: column; 
    transition: all 0.3s ease;
}
.plano-disponivel-item.card.current {
    border-color: #35D2B7;
    box-shadow: 0 8px 25px rgba(53, 210, 183, 0.2);
}
 .plano-disponivel-item.card.disabled {
    opacity: 0.6;
    background-color: #f8f9fa; 
}

.plano-disponivel-item h3 { 
    font-size: 17px; 
    font-weight: 600; color: #35D2B7; margin-bottom: 6px;
}
.plano-disponivel-item h3 .plano-tipo-badge {
     font-size: 0.7em; 
     font-weight: normal;
     color: #777;
     vertical-align: middle;
}
.plano-disponivel-valor {
    font-size: 15px; 
    font-weight: 600; color: #555; margin-bottom: 12px;
}
.plano-disponivel-item p { 
    font-size: 13px; 
    color: #666; line-height: 1.5;
    flex-grow: 1; 
    margin-bottom: 15px;
}

.btn-solicitar-plano, 
.btn-plano-atual {
    display: block; width: 100%; text-align: center;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none; font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease; margin-top: auto; cursor: pointer;
}

.btn-solicitar-plano {
    background: transparent; color: #35D2B7;
    border: 2px solid #35D2B7; 
}
.btn-solicitar-plano:hover:not(:disabled) { 
    background: #35D2B7; color: white; 
}
 .btn-solicitar-plano:disabled {
     background-color: #e9ecef;
     border-color: #dee2e6;
     color: #6c757d;
     cursor: not-allowed;
     opacity: 0.8;
 }

.btn-plano-atual {
    background: #e7f8f5; 
    color: #2ebfa7; 
    border: 2px solid #c3eee8;
    cursor: default;
}

.motivo-bloqueio {
    display: block;
    text-align: center;
    font-size: 11px;
    color: #dc3545; 
    margin-top: 6px;
}

.btn-solicitar-plano .spinner-border-sm {
    width: 1em; height: 1em; border-width: 0.2em; 
    margin-right: 5px; vertical-align: text-bottom;
}

@media (max-width: 600px) {
    body.dashboard-detail .dashboard-container.fatura-detalhe-container,
    .dashboard-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .plano-info-card,
    .sem-plano-aviso.card,
    .plano-disponivel-item.card {
        padding: 20px 15px;
    }

    .plano-info-card h2, .titulo-planos-disponiveis { font-size: 20px; }
    .plano-disponivel-item h3 { font-size: 16px; }
    .plano-valor, .plano-disponivel-valor { font-size: 16px; }
    .plano-descricao p, .plano-disponivel-item p { font-size: 13px; }
    .btn-solicitar-plano, .btn-plano-atual, .btn-contratar { font-size: 13px; padding: 9px 12px; }
}

.progress-bar-cadastro {
    margin-bottom: 30px;
    position: relative;
    height: 30px; 
}
.progress-bar-background-cadastro {
    position: absolute; top: 50%; left: 0;
    width: 100%; height: 3px; background: #e0e0e0;
    transform: translateY(-50%); z-index: 1;
}
.progress-line-cadastro {
    position: absolute; top: 50%; left: 0;
    height: 3px; background: #35D2B7;
    transform: translateY(-50%); z-index: 2;
    width: 0%;
    transition: width 0.4s ease;
}
.progress-step-container-cadastro {
    display: flex; justify-content: space-between; align-items: center;
    position: relative; z-index: 3;
    width: 100%; height: 100%;
}
.progress-step-cadastro {
    width: 30px; height: 30px; background: #fff;
    border: 3px solid #e0e0e0; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-weight: 600; color: #999;
    transition: all 0.4s ease;
}
.progress-step-cadastro.active {
    border-color: #35D2B7; background: #35D2B7; color: white;
}
.progress-step-cadastro.completed {
    border-color: #35D2B7; background: #fff; color: #35D2B7;
}

#cadastroForm .form-step {
    display: none;
}
#cadastroForm .form-step.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

#cadastroForm .form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

#cadastroForm .form-navigation button {
    width: auto;
    padding: 12px 30px;
    font-size: 15px;
    margin-top: 0;
}

 #cadastroForm .form-navigation .prev-btn {
    background: transparent;
    color: #555;
    border: 2px solid #e0e0e0;
    box-shadow: none;
}
 #cadastroForm .form-navigation .prev-btn:hover {
    background: #f5f5f5;
    color: #111;
}

 #cadastroForm .form-navigation .next-btn,
 #cadastroForm .form-navigation .submit-btn {
 }

 @media (max-width: 450px) {
     #cadastroForm .form-navigation {
        flex-direction: column-reverse;
     }
     #cadastroForm .form-navigation button {
         width: 100%;
     }
 }

 input[type="date"] {
    padding-left: 10px;
    padding-right: 10px;
}

.mobile-certificates {
    display: none;
}

@media (max-width: 968px) {

    .logo-main {
        max-width: 150px;
    }

    .desktop-certificates {
        display: none;
    }

    .mobile-certificates {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        margin-top: 30px;
        order: 10;
    }

    .mobile-certificates .cert-img {
        width: 70px; /* */
    }
}