*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}


:root{

    --bg:#070707;
    --sidebar:#090909;
    --panel:#101010;
    --panel2:#131313;

    --border:rgba(255,255,255,.07);

    --red:#ef1b1b;
    --red-dark:#8d0808;

    --text:#f5f5f5;
    --muted:#777;

}


body{

    font-family:Arial, Helvetica, sans-serif;

    background:var(--bg);

    color:var(--text);

    min-height:100vh;

}



/* =========================================================
LAYOUT
========================================================= */

.app{

    min-height:100vh;

    display:grid;

    grid-template-columns:260px 1fr;

}



/* =========================================================
SIDEBAR
========================================================= */

.sidebar{

    position:fixed;

    left:0;
    top:0;
    bottom:0;

    width:260px;

    background:rgba(7,7,7,.97);

    border-right:1px solid var(--border);

    padding:30px 20px;

    display:flex;

    flex-direction:column;

    z-index:100;

}



.sidebar-brand{

    display:flex;

    align-items:center;

    gap:13px;

    padding:0 8px 30px;

    border-bottom:1px solid var(--border);

}


.sidebar-brand img{

    width:48px;

}


.sidebar-brand strong{

    display:block;

    font-size:14px;

}


.sidebar-brand span{

    display:block;

    color:#666;

    font-size:9px;

    margin-top:5px;

}



/* NAVEGAÇÃO */

.sidebar-nav{

    margin-top:30px;

    display:flex;

    flex-direction:column;

    gap:7px;

}


.nav-item{

    width:100%;

    border:0;

    background:transparent;

    color:#777;

    padding:14px 15px;

    border-radius:8px;

    display:flex;

    align-items:center;

    gap:13px;

    cursor:pointer;

    text-align:left;

    font-size:12px;

    transition:.25s;

}


.nav-item > span{

    width:22px;

    text-align:center;

}


.nav-item:hover{

    background:#111;

    color:white;

}


.nav-item.ativo{

    background:rgba(239,27,27,.1);

    color:white;

    border:1px solid rgba(239,27,27,.17);

}


.nav-item.ativo > span{

    color:var(--red);

}



/* PARTE INFERIOR */

.sidebar-bottom{

    margin-top:auto;

    padding-top:25px;

    border-top:1px solid var(--border);

}


.sidebar-bottom > a{

    color:#777;

    text-decoration:none;

    font-size:11px;

    display:flex;

    gap:10px;

    transition:.2s;

}


.sidebar-bottom > a:hover{

    color:white;

}


.sidebar-status{

    margin-top:24px;

    display:flex;

    align-items:center;

    gap:8px;

    color:#555;

    font-size:9px;

    text-transform:uppercase;

    letter-spacing:1px;

}


.sidebar-status span{

    width:6px;

    height:6px;

    border-radius:50%;

    background:var(--red);

    box-shadow:0 0 10px rgba(239,27,27,.6);

}



/* =========================================================
MAIN
========================================================= */

.main-area{

    grid-column:2;

    min-width:0;

}



/* =========================================================
TOPBAR
========================================================= */

.topbar{

    position:sticky;

    top:0px;

    height:90px;

    z-index:50;

    padding:0 42px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    background:rgba(7,7,7,.92);

    backdrop-filter:blur(14px);

    border-bottom:1px solid var(--border);

}


.topbar-label{

    color:var(--red);

    font-size:8px;

    font-weight:bold;

    letter-spacing:3px;

}


.topbar h1{

    margin-top:7px;

    font-size:22px;

}


.topbar-right{

    display:flex;

    align-items:center;

    gap:30px;

}


.system-status{

    display:flex;

    align-items:center;

    gap:8px;

    color:#666;

    font-size:9px;

    text-transform:uppercase;

    letter-spacing:1px;

}


.system-status span{

    width:6px;

    height:6px;

    background:var(--red);

    border-radius:50%;

}



.profile{

    display:flex;

    align-items:center;

    gap:11px;

}


.profile-icon{

    width:38px;

    height:38px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    background:#151515;

    border:1px solid rgba(239,27,27,.35);

    font-size:10px;

    font-weight:bold;

    color:var(--red);

}


.profile strong{

    display:block;

    font-size:11px;

}


.profile span{

    display:block;

    color:#555;

    font-size:8px;

    margin-top:4px;

}



/* =========================================================
CONTEÚDO
========================================================= */

.content{

    padding:45px;
    padding-top:120px;

}


.view{

    display:block;

}


@keyframes viewShow{

    from{
        opacity:0;
        transform:translateY(8px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

.view-heading{

    margin-bottom:35px;

}

/* =========================================================
TÍTULOS
========================================================= */

.section-label{

    color:var(--red);

    font-size:8px;

    font-weight:bold;

    letter-spacing:3px;

}


.view-heading{

    margin-bottom:40px;

}


.view-heading h2{

    margin:9px 0;

    font-size:30px;

}


.view-heading p{

    color:#777;

    font-size:12px;

}


.heading-action{

    display:flex;

    justify-content:space-between;

    align-items:flex-end;

}



/* =========================================================
WELCOME
========================================================= */

.welcome{

    display:flex;

    justify-content:space-between;

    align-items:flex-end;

    margin-bottom:38px;

}


.welcome h2{

    margin:10px 0;

    font-size:31px;

}


.welcome p{

    max-width:580px;

    color:#777;

    font-size:12px;

    line-height:1.7;

}


.welcome-date{

    color:#555;

    font-size:10px;

    letter-spacing:1px;

}



/* =========================================================
STATS
========================================================= */

.stats-grid{

    display:grid;

    grid-template-columns:repeat(4,minmax(0,1fr));

    gap:15px;

    margin-bottom:22px;

}


.stat-card{

    min-height:150px;

    position:relative;

    padding:28px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.025),
            rgba(255,255,255,.008)
        );

    border:1px solid var(--border);

    border-radius:12px;

}

.stat-card.destaque{

    background:

        linear-gradient(
            145deg,
            rgba(110,0,0,.16),
            rgba(255,255,255,.008)
        );

    border-color:rgba(239,27,27,.22);

}


.stat-index{

    position:absolute;

    top:20px;
    right:20px;

    color:#333;

    font-size:8px;

}


.stat-card small{

    display:block;

    color:#666;

    font-size:8px;

    letter-spacing:2px;

    margin-bottom:12px;

}


.stat-card strong{

    font-size:25px;
    white-space:nowrap;

}


.stat-card p{

    margin-top:10px;

    color:#555;

    font-size:9px;

}



/* =========================================================
PAINÉIS
========================================================= */

.dashboard-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:18px;

    margin-bottom:18px;

}


.dashboard-grid.inferior{

    grid-template-columns:1.3fr .7fr;

}


.panel{

    background:

        linear-gradient(
            145deg,
            rgba(255,255,255,.025),
            rgba(255,255,255,.008)
        );

    border:1px solid var(--border);

    border-radius:13px;

    padding:28px;

}


.panel-header{

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    margin-bottom:28px;

}


.panel-header span{

    color:var(--red);

    font-size:7px;

    letter-spacing:2px;

}


.panel-header h3{

    margin-top:7px;

    font-size:15px;

}


.panel-header a{

    color:#666;

    font-size:9px;

    text-decoration:none;

}


.panel-header a:hover{

    color:white;

}



/* =========================================================
META / PROGRESSO
========================================================= */

.meta-big strong{

    font-size:45px;

}


.meta-big span{

    margin-left:8px;

    color:#555;

    font-size:10px;

}


.progress{

    height:7px;

    background:#191919;

    border-radius:10px;

    overflow:hidden;

    margin-top:25px;

}


.progress > div{

    height:100%;

    width:0;

    background:

        linear-gradient(
            90deg,
            #8f0707,
            var(--red)
        );

    border-radius:10px;

    transition:.5s;

}


.progress.grande{

    height:9px;

}


.meta-values{

    margin-top:12px;

    display:flex;

    justify-content:space-between;

    color:#555;

    font-size:9px;

}



/* =========================================================
ANÚNCIOS MINI
========================================================= */

.mini-anuncios{

    display:flex;

    flex-direction:column;

    gap:10px;

}


.mini-anuncio{

    padding:14px 0;

    border-bottom:1px solid var(--border);

}


.mini-anuncio:last-child{

    border-bottom:0;

}


.mini-anuncio span{

    color:var(--red);

    font-size:7px;

    letter-spacing:2px;

}


.mini-anuncio strong{

    display:block;

    margin:7px 0 5px;

    font-size:12px;

}


.mini-anuncio p{

    color:#666;

    font-size:9px;

}



/* =========================================================
GRÁFICOS
========================================================= */

.mini-chart,
.chart{

    height:210px;

    display:flex;

    align-items:flex-end;

    gap:12px;

    padding-top:15px;

}


.chart{

    height:300px;

    gap:18px;

}


.chart-column{

    flex:1;

    height:100%;

    display:flex;

    flex-direction:column;

    justify-content:flex-end;

    align-items:center;

    gap:9px;

}


.chart-column .bar-wrap{

    width:100%;

    height:100%;

    display:flex;

    align-items:flex-end;

}


.chart-column .bar{

    width:100%;

    min-height:4px;

    border-radius:4px 4px 0 0;

    background:

        linear-gradient(
            180deg,
            var(--red),
            #6b0505
        );

    transition:.4s;

}


.chart-column strong{

    color:#777;

    font-size:8px;

}


.chart-column span{

    color:#444;

    font-size:7px;

}



/* =========================================================
AGENDA
========================================================= */

.agenda-mini{

    display:flex;

    flex-direction:column;

}


.agenda-mini > div{

    padding:14px 0;

    border-bottom:1px solid var(--border);

    display:flex;

    gap:15px;

    align-items:center;

}


.agenda-mini > div:last-child{

    border-bottom:0;

}


.agenda-mini > div > span{

    width:35px;

    height:35px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:7px;

    background:rgba(239,27,27,.09);

    color:var(--red);

    font-size:10px;

    font-weight:bold;

}


.agenda-mini strong{

    font-size:11px;

}


.agenda-mini p{

    margin-top:4px;

    color:#555;

    font-size:8px;

}



/* =========================================================
PONTOS
========================================================= */


.points-layout{

    display:grid;

    grid-template-columns:1.5fr .5fr;

    gap:18px;

}


.edit-panel form{

    display:flex;

    flex-direction:column;

    gap:16px;

}


label{

    display:flex;

    flex-direction:column;

    gap:8px;

    color:#777;

    font-size:9px;

    letter-spacing:1px;

}


input,
select,
textarea{

    width:100%;

    padding:13px 14px;

    background:#0a0a0a;

    color:white;

    border:1px solid #222;

    border-radius:7px;

    outline:none;

    font:inherit;

}


textarea{

    min-height:130px;

    resize:vertical;

}


input:focus,
select:focus,
textarea:focus{

    border-color:rgba(239,27,27,.55);

}



/* =========================================================
BOTÕES
========================================================= */

.primary-button,
.secondary-button{

    border:0;

    border-radius:7px;

    padding:13px 20px;

    font-weight:bold;

    font-size:10px;

    cursor:pointer;

    transition:.25s;

}


.primary-button{

    color:white;

    background:var(--red);

}


.primary-button:hover{

    background:#ff2525;

    transform:translateY(-2px);

}


.secondary-button{

    background:#151515;

    color:#999;

    border:1px solid #262626;

}



/* =========================================================
ANÚNCIOS
========================================================= */

.anuncios-list{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:16px;

}


.anuncio-card{

    position:relative;

    padding:26px;

    background:#101010;

    border:1px solid var(--border);

    border-radius:12px;

}


.anuncio-card.fixado{

    border-color:rgba(239,27,27,.27);

    background:

        linear-gradient(
            145deg,
            rgba(110,0,0,.12),
            #101010
        );

}


.anuncio-card .categoria{

    color:var(--red);

    font-size:8px;

    letter-spacing:2px;

}


.anuncio-card h3{

    margin:12px 0;

    font-size:17px;

}


.anuncio-card > p{

    color:#777;

    font-size:11px;

    line-height:1.7;

}


.anuncio-footer{

    margin-top:25px;

    padding-top:15px;

    border-top:1px solid var(--border);

    display:flex;

    align-items:center;

    justify-content:space-between;

}


.anuncio-footer span{

    color:#444;

    font-size:8px;

}


.anuncio-actions{

    display:flex;

    align-items:center;

    gap:15px;

}


.edit-announcement,
.delete-announcement{

    border:0;

    background:transparent;

    cursor:pointer;

    font-size:9px;

    transition:.2s;

}


.edit-announcement{

    color:#777;

}


.edit-announcement:hover{

    color:white;

}


.delete-announcement{

    color:#555;

}


.delete-announcement:hover{

    color:var(--red);

}


/* =========================================================
METAS
========================================================= */

.meta-page{

    max-width:900px;

}


.meta-page-top{

    margin:25px 0;

    display:flex;

    align-items:flex-end;

    justify-content:space-between;

}


.meta-page-top h3{

    font-size:24px;

}


.meta-page-top strong{

    color:var(--red);

    font-size:38px;

}


.meta-page-values{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:15px;

    margin-top:35px;

}


.meta-page-values div{

    padding:20px;

    border:1px solid var(--border);

    border-radius:8px;

}


.meta-page-values small{

    color:#555;

    font-size:7px;

    letter-spacing:2px;

}


.meta-page-values strong{

    display:block;

    margin-top:9px;

    font-size:18px;

}



/* =========================================================
AGENDA PAGE
========================================================= */

.agenda-list{

    max-width:900px;

    display:flex;

    flex-direction:column;

    gap:12px;

}


.agenda-item{

    padding:22px;

    display:flex;

    align-items:center;

    gap:25px;

    background:#101010;

    border:1px solid var(--border);

    border-radius:10px;

}


.agenda-date{

    width:65px;

    height:65px;

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    border-radius:9px;

    background:rgba(239,27,27,.08);

    border:1px solid rgba(239,27,27,.15);

}


.agenda-date strong{

    color:var(--red);

    font-size:20px;

}


.agenda-date span{

    color:#777;

    font-size:8px;

}


.agenda-type{

    color:var(--red);

    font-size:7px;

    letter-spacing:2px;

}


.agenda-item h3{

    margin:6px 0;

    font-size:14px;

}


.agenda-item p{

    color:#555;

    font-size:9px;

}



/* =========================================================
RECURSOS
========================================================= */

.resources-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:15px;

    max-width:950px;

}


.resource-card{

    position:relative;

    min-height:160px;

    padding:26px;

    border-radius:11px;

    border:1px solid var(--border);

    background:#101010;

    color:white;

    text-decoration:none;

    transition:.3s;

}


.resource-card:hover{

    transform:translateY(-5px);

    border-color:rgba(239,27,27,.3);

}


.resource-card > span{

    color:#444;

    font-size:8px;

}


.resource-card > strong{

    display:block;

    margin:22px 0 8px;

    font-size:16px;

}


.resource-card p{

    color:#666;

    font-size:10px;

}


.resource-card b{

    position:absolute;

    right:25px;

    bottom:24px;

    color:var(--red);

}



/* =========================================================
MODAL
========================================================= */

.modal-overlay{

    position:fixed;

    inset:0;

    z-index:1000;

    display:none;

    align-items:center;

    justify-content:center;

    padding:30px;

    background:rgba(0,0,0,.78);

    backdrop-filter:blur(8px);

}


.modal-overlay.ativo{

    display:flex;

}


.modal{

    width:min(550px,100%);

    max-height:90vh;

    overflow:auto;

    background:#0d0d0d;

    border:1px solid #242424;

    border-radius:14px;

    padding:30px;

    box-shadow:0 30px 100px rgba(0,0,0,.7);

}


.modal-header{

    display:flex;

    align-items:flex-start;

    justify-content:space-between;

    margin-bottom:28px;

}


.modal-header h2{

    margin-top:7px;

    font-size:23px;

}


.modal-header > button{

    border:0;

    background:transparent;

    color:#777;

    font-size:24px;

    cursor:pointer;

}


.modal form{

    display:flex;

    flex-direction:column;

    gap:17px;

}


.checkbox{

    flex-direction:row;

    align-items:center;

    gap:10px;

}


.checkbox input{

    width:auto;

}


.modal-actions{

    display:flex;

    justify-content:flex-end;

    gap:10px;

    margin-top:10px;

}



/* =========================================================
RESPONSIVO BÁSICO — MELHORAMOS DEPOIS
========================================================= */

@media(max-width:1100px){

    .app{
        grid-template-columns:210px 1fr;
    }

    .sidebar{
        width:210px;
    }

    .stats-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .dashboard-grid,
    .dashboard-grid.inferior,
    .points-layout{
        grid-template-columns:1fr;
    }

}

/* =========================================================
AGENDA — COMPLETA
========================================================= */

.form-row{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:14px;

}



.agenda-list{

    max-width:none;

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:15px;

}



.agenda-item{

    position:relative;

    min-height:145px;

    padding:24px;

    display:grid;

    grid-template-columns:70px 1fr;

    gap:23px;

    align-items:center;

    background:

        linear-gradient(
            145deg,
            rgba(255,255,255,.025),
            rgba(255,255,255,.008)
        );

    border:1px solid var(--border);

    border-radius:11px;

    transition:.3s;

}



.agenda-item:hover{

    border-color:rgba(239,27,27,.28);

    transform:translateY(-3px);

}



.agenda-date{

    width:65px;

    height:72px;

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    border-radius:9px;

    background:rgba(239,27,27,.07);

    border:1px solid rgba(239,27,27,.18);

}



.agenda-date strong{

    color:var(--red);

    font-size:23px;

}



.agenda-date span{

    margin-top:3px;

    color:#777;

    font-size:8px;

    letter-spacing:1px;

}



.agenda-conteudo{

    min-width:0;

}



.agenda-type{

    color:var(--red);

    font-size:7px;

    font-weight:bold;

    letter-spacing:2px;

}



.agenda-conteudo h3{

    margin:7px 0;

    font-size:15px;

}



.agenda-conteudo p{

    color:#666;

    font-size:9px;

    line-height:1.6;

}



.agenda-description{

    margin-top:8px;

    color:#777!important;

}



.agenda-actions{

    position:absolute;

    top:20px;

    right:20px;

    display:flex;

    gap:12px;

}



.agenda-actions button{

    background:transparent;

    border:0;

    color:#555;

    cursor:pointer;

    font-size:8px;

    transition:.2s;

}



.agenda-actions .edit-event:hover{

    color:white;

}



.agenda-actions .delete-event:hover{

    color:var(--red);

}



.agenda-vazia{

    grid-column:1 / -1;

    padding:50px;

    text-align:center;

    color:#555;

    border:1px solid var(--border);

    border-radius:11px;

    font-size:11px;

}

.input-help{

    display:block;
    margin-top:8px;
    font-size:12px;
    color:#777;

}

.preview-anuncio-imagem{

    margin-top:15px;
    padding:12px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:12px;
    background:rgba(255,255,255,.02);

}

.preview-anuncio-imagem img{

    width:100%;
    max-height:220px;
    object-fit:cover;
    border-radius:10px;
    display:block;

}

/* =========================================================
PONTOS — FECHAR PERÍODO
========================================================= */

.points-actions{

    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;

}


.close-period-button{

    border:1px solid rgba(239,27,27,.35);

    background:rgba(239,27,27,.06);

    color:#ef1b1b;

    border-radius:7px;

    padding:13px 20px;

    font-size:10px;

    font-weight:bold;

    cursor:pointer;

    transition:.25s;

}


.close-period-button:hover{

    background:rgba(239,27,27,.13);

    border-color:#ef1b1b;

    transform:translateY(-2px);

}


.points-warning{

    margin-top:13px;

    color:#555;

    font-size:8px;

    line-height:1.6;

}


/* =========================================================
HISTÓRICO DOS PERÍODOS
========================================================= */

.period-history-panel{

    margin-top:18px;

}


.period-history-list{

    display:grid;

    grid-template-columns:
        repeat(4,1fr);

    gap:12px;

}


.period-history-item{

    position:relative;

    padding:23px;

    background:#0c0c0c;

    border:1px solid rgba(255,255,255,.06);

    border-radius:9px;

}


.period-history-item > span{

    color:#ef1b1b;

    font-size:7px;

    font-weight:bold;

    letter-spacing:2px;

}


.period-history-item strong{

    display:block;

    margin:14px 0 8px;

    font-size:21px;

}


.period-history-item p{

    color:#555;

    font-size:8px;

    line-height:1.6;

}


.period-history-progress{

    height:3px;

    margin-top:16px;

    background:#181818;

    border-radius:5px;

    overflow:hidden;

}


.period-history-progress div{

    height:100%;

    background:#ef1b1b;

}


.period-history-empty{

    grid-column:1 / -1;

    padding:25px;

    color:#555;

    font-size:10px;

    text-align:center;

}

@media(max-width:1200px){

    .stats-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

.points-chart-box{

    height:350px;
    width:100%;
    display:flex;
    align-items:center;
    justify-content:center;

}


#points-chart{

    width:100%;
    height:100%;

}

/* =========================================
GRÁFICO DE PONTOS
========================================= */

.points-chart-box{

    height:320px;

    width:100%;

        position:relative;

    padding:20px;

}



#points-chart{

    width:100%;

    height:100%;

}


.points-chart-box{

    width:100%;
    height:320px;

    position:relative;

}


.points-chart-box canvas{
    width:100%;
    height:300px;
}


/* =========================================
   ÁREA PESSOAL — MEDICAL CENTER
========================================= */

.perfil-page {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.perfil-header {
    margin-bottom: 35px;
}

.perfil-label {
    color: #e00000;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
}

.perfil-header h2 {
    color: #fff;
    font-size: 34px;
    margin: 12px 0;
}

.perfil-header p {
    color: #888;
    font-size: 14px;
    line-height: 1.6;
}

.perfil-card {
    background: #141414;
    border: 1px solid #292929;
    border-top: 3px solid #e00000;
    border-radius: 16px;
    padding: 30px;
}

.perfil-identidade {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 30px;
}

.perfil-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e00000;
    background: #251010;
}

.perfil-identidade h3 {
    color: #fff;
    font-size: 24px;
    margin: 0 0 8px;
    overflow-wrap: anywhere;
}

#perfil-cargo {
    color: #ff4545;
    font-weight: 700;
    font-size: 13px;
}

.perfil-detalhes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.perfil-detalhe {
    background: #1b1b1b;
    border-radius: 11px;
    padding: 20px;
}

.perfil-detalhe small {
    color: #777;
    display: block;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-size: 10px;
}

.perfil-detalhe strong {
    color: #fff;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.perfil-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid #292929;
}

.perfil-footer span {
    color: #888;
    font-size: 12px;
}

#perfil-logout {
    background: #d60000;
    border: none;
    color: #fff;
    padding: 12px 20px;
    border-radius: 9px;
    font-weight: 700;
    cursor: pointer;
}

#perfil-logout:hover {
    background: #aa0000;
}

@media (max-width: 760px) {
    .perfil-detalhes {
        grid-template-columns: 1fr;
    }

    .perfil-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .perfil-card {
        padding: 22px;
    }

    .perfil-header h2 {
        font-size: 28px;
    }
}


/* =========================================
   CORREÇÃO DO LAYOUT PRINCIPAL
========================================= */

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    display: block;
    background: #070707;
}

.app {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    width: 100%;
    min-height: 100vh;
    margin: 0;
}

.sidebar {
    width: 260px;
}

.main-area {
    grid-column: 2;
    width: 100%;
    min-width: 0;
    max-width: none;
}

.topbar {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.content {
    width: 100%;
    min-width: 0;
    padding: 45px;
    padding-top: 70px;
}

#conteudo {
    width: 100%;
    min-width: 0;
}

.perfil-page {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.perfil-detalhes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    .app {
        grid-template-columns: 210px minmax(0, 1fr);
    }

    .sidebar {
        width: 210px;
    }
}

@media (max-width: 760px) {
    .perfil-detalhes {
        grid-template-columns: 1fr;
    }

    .content {
        padding: 30px 20px;
    }
}

/* =========================================
   CORREÇÃO DEFINITIVA — LARGURA DA CENTRAL
========================================= */

html,
body {
    width: 100%;
    min-width: 100%;
    margin: 0;
}

body {
    display: block;
}

.app {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    width: 100%;
    min-width: 100%;
    max-width: none;
    margin: 0;
}

.sidebar {
    width: 260px;
}

.main-area {
    grid-column: 2;
    width: 100%;
    min-width: 0;
    max-width: none;
}

.content,
#conteudo {
    width: 100%;
    min-width: 0;
    max-width: none;
}

@media (max-width: 1100px) {
    .app {
        grid-template-columns: 210px minmax(0, 1fr);
    }

    .sidebar {
        width: 210px;
    }
}


/* =========================================
   ECRÃ DE ACESSO / ERRO DE AUTENTICAÇÃO
========================================= */

.central-erro-acesso {
    min-height: 100vh;
    width: 100%;
    padding: 40px 24px;

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

    text-align: center;
    background: #070707;
    color: #ffffff;
    font-family: Arial, sans-serif;
}

.central-erro-etiqueta {
    color: #e60012;
    font-size: 11px;
    letter-spacing: 4px;
    font-weight: 800;
    margin-bottom: 24px;
}

.central-erro-acesso h1 {
    font-size: clamp(28px, 5vw, 44px);
    margin-bottom: 18px;
    font-weight: 800;
}

.central-erro-acesso p {
    max-width: 530px;
    font-size: 15px;
    line-height: 1.8;
    color: #aaaaaa;
}

.central-erro-ajuda {
    margin-top: 12px;
}

.central-erro-botao {
    margin-top: 30px;
    padding: 15px 28px;

    background: #d60000;
    color: #ffffff;

    border: none;
    border-radius: 10px;

    font-size: 14px;
    font-weight: 700;
    cursor: pointer;

    transition: background 0.2s ease;
}

.central-erro-botao:hover {
    background: #ff2020;
}

/* Ecrã de acesso recusado em largura total */
#central-app:has(.central-erro-acesso) {
    display: block;
    width: 100%;
    min-height: 100vh;
    grid-template-columns: none;
}

#central-app .central-erro-acesso {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0;
}


/* ==========================================
   CENTRAL — ANÚNCIOS
========================================== */

.anuncios-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    color: #f5f5f5;
}

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

.anuncios-header h1 {
    font-size: 34px;
    margin: 10px 0;
}

.anuncios-header p {
    color: #999;
    font-size: 14px;
}

.anuncios-eyebrow {
    color: #f32636;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
}

.anuncios-btn-primary {
    background: #d90016;
    border: 1px solid #e7182a;
    color: white;
    border-radius: 10px;
    padding: 13px 20px;
    font-weight: 700;
    cursor: pointer;
}

.anuncios-btn-primary:hover {
    background: #f0182c;
}

.anuncios-btn-primary:disabled {
    opacity: .6;
    cursor: wait;
}

.anuncios-btn-secondary {
    background: #151515;
    border: 1px solid #303030;
    color: #ddd;
    border-radius: 10px;
    padding: 12px 18px;
    cursor: pointer;
}

.anuncios-formulario,
.anuncios-card {
    background: #101010;
    border: 1px solid #292929;
    border-radius: 16px;
}

.anuncios-formulario {
    padding: 28px;
    margin-bottom: 38px;
    border-top: 2px solid #d90016;
}

.anuncios-form-topo,
.anuncios-acoes {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.anuncios-form-topo {
    margin-bottom: 25px;
}

.anuncios-fechar {
    background: none;
    border: none;
    color: #aaa;
    font-size: 20px;
    cursor: pointer;
}

.anuncios-formulario label {
    display: block;
    color: #bbb;
    font-size: 13px;
    font-weight: 600;
    margin: 20px 0 9px;
}

.anuncios-formulario input,
.anuncios-formulario textarea {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    background: #080808;
    border: 1px solid #303030;
    color: white;
    font: inherit;
    outline: none;
    resize: vertical;
}

.anuncios-formulario input:focus,
.anuncios-formulario textarea:focus {
    border-color: #e21b30;
}

.anuncios-destino {
    margin: 24px 0;
    background: #171010;
    border: 1px solid #3b191d;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.anuncios-destino span {
    color: #ee3344;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.anuncios-destino strong {
    font-size: 14px;
}

.anuncios-destino small {
    color: #999;
}

.anuncios-acoes {
    justify-content: flex-start;
}

.anuncios-lista-header {
    margin-top: 35px;
}

.anuncios-lista-header h2 {
    margin-top: 10px;
    font-size: 23px;
}

.anuncios-lista {
    display: grid;
    gap: 16px;
}

.anuncios-card {
    padding: 25px;
    border-left: 3px solid #df1529;
}

.anuncios-card h3 {
    margin: 12px 0;
    font-size: 19px;
}

.anuncios-card-conteudo {
    color: #bbb;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.anuncios-card-rodape {
    margin-top: 22px;
    padding-top: 15px;
    border-top: 1px solid #292929;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: #888;
    font-size: 12px;
}

.anuncios-estado {
    font-size: 11px;
    font-weight: 700;
    color: #7de0a4;
}

.anuncios-estado.pendente {
    color: #eac16e;
}

.anuncios-alerta {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    background: #251216;
    border: 1px solid #782a35;
    color: #ffb8c0;
    font-size: 14px;
}

.anuncios-alerta.sucesso {
    background: #102019;
    border-color: #28573a;
    color: #a5e8be;
}

.anuncios-vazio {
    color: #999;
    padding: 35px;
    border: 1px dashed #333;
    border-radius: 14px;
    text-align: center;
}

.anuncios-page [hidden] {
    display: none !important;
}

@media (max-width: 700px) {
    .anuncios-header,
    .anuncios-lista-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .anuncios-header h1 {
        font-size: 27px;
    }

    .anuncios-formulario {
        padding: 18px;
    }

    .anuncios-acoes {
        flex-wrap: wrap;
    }
}



/* ==========================================
   ANÚNCIOS — BOTÃO EDITAR
========================================== */

.anuncios-card-rodape {
    align-items: center;
}

.anuncios-card-detalhes {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: space-between;
    flex-wrap: wrap;
}

.anuncios-btn-editar {
    background: #1c1c1c;
    color: #eeeeee;
    border: 1px solid #393939;
    border-radius: 9px;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s ease;
}

.anuncios-btn-editar:hover:not(:disabled) {
    background: #351318;
    border-color: #d90016;
    color: #ffffff;
}

.anuncios-btn-editar:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

@media (max-width: 700px) {
    .anuncios-card-detalhes {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}


/* =====================================
   ANÚNCIOS — BOTÃO ELIMINAR
===================================== */

.anuncios-btn-eliminar {
    background: #241013;
    color: #ff6675;
    border: 1px solid #67232c;
    border-radius: 9px;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s ease;
}

.anuncios-btn-eliminar:hover:not(:disabled) {
    background: #b60018;
    border-color: #ec1831;
    color: #ffffff;
}

.anuncios-btn-eliminar:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}


/* ==========================================
   MODAL DE CONFIRMAÇÃO MEDICAL CENTER
========================================== */

.mc-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(7px);

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mc-confirm-modal {
    width: 100%;
    max-width: 480px;
    padding: 36px;

    background: #101010;
    border: 1px solid #383838;
    border-top: 3px solid #e00016;
    border-radius: 18px;

    box-shadow: 0 25px 90px rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;

    max-height: 90vh;
    overflow-y: auto;
}

.mc-confirm-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 56px;
    height: 56px;
    margin: 0 auto 22px;

    border: 1px solid #8e2030;
    border-radius: 50%;

    background: #351015;
    color: #ff4054;

    font-size: 30px;
    font-weight: 900;
}

.mc-confirm-etiqueta {
    display: block;
    color: #ff3347;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.mc-confirm-modal h2 {
    font-size: 27px;
    margin-bottom: 15px;
    color: #fff;
}

.mc-confirm-modal p {
    color: #aaa;
    font-size: 14px;
    line-height: 1.7;
}

.mc-confirm-anuncio {
    margin: 22px 0;
    padding: 18px;

    background: #191919;
    border: 1px solid #353535;
    border-radius: 10px;

    color: #fff;
    font-size: 15px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.mc-confirm-modal .mc-confirm-aviso {
    color: #ff8790;
    font-size: 13px;
}

.mc-confirm-acoes {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.mc-confirm-acoes button {
    flex: 1;
    padding: 14px 12px;
    border-radius: 9px;
    font-weight: 700;
    cursor: pointer;
}

.mc-confirm-cancelar {
    background: #222;
    border: 1px solid #444;
    color: #ddd;
}

.mc-confirm-eliminar {
    background: #d60018;
    border: 1px solid #f02138;
    color: white;
}

.mc-confirm-eliminar:hover {
    background: #f01830;
}

@media (max-width: 480px) {
    .mc-confirm-modal {
        padding: 24px;
    }

    .mc-confirm-acoes {
        flex-direction: column;
    }
}


/* ==========================================
   CENTRAL — AGENDA E EVENTOS
========================================== */

.eventos-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    color: #f5f5f5;
}

.eventos-page [hidden] {
    display: none !important;
}

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

.eventos-header h1 {
    font-size: 34px;
    margin: 10px 0;
}

.eventos-header p {
    color: #999;
    font-size: 14px;
    line-height: 1.6;
}

.eventos-eyebrow {
    color: #f32636;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2.5px;
}

.eventos-btn-primary,
.eventos-btn-secondary {
    border-radius: 10px;
    padding: 13px 20px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.eventos-btn-primary {
    background: #d90016;
    border: 1px solid #e7182a;
    color: #fff;
}

.eventos-btn-primary:hover:not(:disabled) {
    background: #f0182c;
}

.eventos-btn-secondary {
    background: #151515;
    border: 1px solid #303030;
    color: #ddd;
}

.eventos-btn-primary:disabled {
    opacity: .6;
    cursor: wait;
}

.eventos-formulario,
.eventos-card {
    background: #101010;
    border: 1px solid #292929;
    border-radius: 16px;
}

.eventos-formulario {
    padding: 28px;
    margin-bottom: 38px;
    border-top: 2px solid #e00016;
}

.eventos-form-topo {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.eventos-form-topo h2 {
    margin-top: 8px;
    font-size: 23px;
}

.eventos-fechar {
    background: none;
    border: 0;
    color: #aaa;
    font-size: 21px;
    cursor: pointer;
}

.eventos-campo {
    margin-bottom: 20px;
}

.eventos-campo label {
    display: block;
    color: #bbb;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 9px;
}

.eventos-campo input,
.eventos-campo textarea,
.eventos-campo select {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    background: #080808;
    border: 1px solid #303030;
    color: #fff;
    font: inherit;
    outline: none;
    box-sizing: border-box;
}

.eventos-campo textarea {
    resize: vertical;
}

.eventos-campo input:focus,
.eventos-campo textarea:focus,
.eventos-campo select:focus {
    border-color: #e21b30;
}

.eventos-campo small {
    display: block;
    color: #777;
    margin-top: 7px;
}

.eventos-opcoes-competicao {
    padding: 22px;
    border-radius: 12px;
    border: 1px solid #482128;
    background: #180d0f;
    margin-bottom: 22px;
}

.eventos-opcoes-competicao .eventos-eyebrow {
    display: block;
    margin-bottom: 20px;
}

.eventos-opcoes-competicao .eventos-campo:last-child {
    margin-bottom: 0;
}

.eventos-duas-colunas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.eventos-destino {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 18px;
    margin: 8px 0 26px;
    background: #171010;
    border: 1px solid #3b191d;
    border-radius: 12px;
}

.eventos-destino span {
    color: #ee3344;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.eventos-destino strong {
    font-size: 14px;
}

.eventos-destino small {
    color: #999;
    line-height: 1.5;
}

.eventos-acoes {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.eventos-alerta {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    background: #251216;
    border: 1px solid #782a35;
    color: #ffb8c0;
    font-size: 14px;
}

.eventos-alerta.sucesso {
    background: #102019;
    border-color: #28573a;
    color: #a5e8be;
}

.eventos-lista-header {
    margin-top: 35px;
}

.eventos-lista-header h2 {
    margin-top: 10px;
    font-size: 23px;
}

.eventos-lista {
    display: grid;
    gap: 18px;
}

.eventos-card {
    padding: 26px;
    border-left: 3px solid #e00016;
}

.eventos-card-topo {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    flex-wrap: wrap;
}

.eventos-card h3 {
    font-size: 22px;
    margin: 11px 0 0;
}

.eventos-card-estado {
    padding: 7px 12px;
    border-radius: 50px;
    background: #29241c;
    border: 1px solid #52442c;
    color: #edc984;
    font-size: 11px;
    font-weight: 700;
}

.eventos-card-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.eventos-card-info > div {
    background: #191919;
    border-radius: 10px;
    padding: 18px;
    min-width: 0;
}

.eventos-card-info span {
    display: block;
    color: #999;
    font-size: 11px;
    margin-bottom: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.eventos-card-info strong {
    display: block;
    color: #fff;
    font-size: 15px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.eventos-card-descricao {
    margin-top: 23px;
    color: #bbb;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.eventos-card-datas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-top: 24px;
    color: #ccc;
    font-size: 13px;
}

.eventos-card-datas div {
    border-top: 1px solid #303030;
    padding-top: 15px;
}

.eventos-card-rodape {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #292929;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: #888;
    font-size: 12px;
}

.eventos-estado-discord {
    color: #7de0a4;
    font-weight: 700;
}

.eventos-estado-discord.pendente {
    color: #eac16e;
}

.eventos-vazio {
    color: #999;
    padding: 35px;
    border: 1px dashed #333;
    border-radius: 14px;
    text-align: center;
}

@media (max-width: 700px) {
    .eventos-header,
    .eventos-lista-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .eventos-header h1 {
        font-size: 27px;
    }

    .eventos-formulario,
    .eventos-card {
        padding: 18px;
    }

    .eventos-duas-colunas,
    .eventos-card-info,
    .eventos-card-datas {
        grid-template-columns: 1fr;
    }
}


/* ==========================================
   AGENDA — BOTÃO EDITAR EVENTO
========================================== */

.eventos-card-rodape {
    align-items: center;
}

.eventos-btn-editar {
    background: #1c1c1c;
    color: #eeeeee;
    border: 1px solid #393939;
    border-radius: 9px;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s ease, border-color .2s ease;
}

.eventos-btn-editar:hover:not(:disabled) {
    background: #351318;
    border-color: #d90016;
    color: #ffffff;
}

.eventos-btn-editar:disabled {
    opacity: .35;
    cursor: not-allowed;
}


/* ==========================================
   AGENDA — CANCELAR E ELIMINAR EVENTOS
========================================== */

.eventos-btn-cancelar,
.eventos-btn-eliminar {
    border-radius: 9px;
    padding: 10px 15px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

.eventos-btn-cancelar {
    background: #242018;
    border: 1px solid #67512a;
    color: #eecb87;
}

.eventos-btn-cancelar:hover:not(:disabled) {
    background: #49331a;
}

.eventos-btn-eliminar {
    background: #241013;
    border: 1px solid #67232c;
    color: #ff6675;
}

.eventos-btn-eliminar:hover:not(:disabled) {
    background: #b60018;
    color: #fff;
}

.eventos-btn-cancelar:disabled,
.eventos-btn-eliminar:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.mc-confirm-evento-cancelar {
    background: #a86a11;
    color: white;
    border: 1px solid #cd8c28;
}

.mc-confirm-evento-cancelar:hover {
    background: #c7831a;
}



/* ==========================================
   AGENDA — INICIAR EVENTO
========================================== */

.eventos-btn-iniciar {
    background: #123020;
    color: #83e6ac;
    border: 1px solid #286b44;
    border-radius: 9px;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

.eventos-btn-iniciar:hover:not(:disabled) {
    background: #1a5634;
    border-color: #4fba7d;
    color: white;
}

.eventos-btn-iniciar:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.mc-iniciar-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #123020;
    border: 1px solid #286b44;
    color: #83e6ac;
    font-size: 24px;
}

.mc-confirm-modal .mc-iniciar-aviso {
    color: #edc984;
    margin-bottom: 18px;
}

.mc-iniciar-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    padding: 17px;
    background: #1b1b1b;
    border: 1px solid #393939;
    border-radius: 10px;
    color: #ddd;
    font-size: 13px;
    line-height: 1.6;
    cursor: pointer;
}

.mc-iniciar-checkbox input {
    accent-color: #3cbd71;
    margin-top: 4px;
    flex-shrink: 0;
}

.mc-confirm-modal .mc-iniciar-nota {
    color: #999;
    margin-top: 18px;
    font-size: 12px;
}

.mc-iniciar-confirmar {
    background: #188347;
    border: 1px solid #28ae64;
    color: white;
}

.mc-iniciar-confirmar:hover:not(:disabled) {
    background: #20a65a;
}

.mc-iniciar-confirmar:disabled {
    opacity: .35;
    cursor: not-allowed;
}

/* Painel de início — versão compacta */

.mc-confirm-modal:has(.mc-iniciar-icon) {
    padding: 25px 30px;
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
}

.mc-confirm-modal .mc-iniciar-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 12px;
}

.mc-confirm-modal:has(.mc-iniciar-icon) h2 {
    margin-bottom: 10px;
}

.mc-confirm-modal:has(.mc-iniciar-icon) .mc-confirm-anuncio {
    margin: 15px 0;
    padding: 13px;
}

.mc-confirm-modal .mc-iniciar-checkbox {
    padding: 13px;
}

.mc-confirm-modal:has(.mc-iniciar-icon) .mc-confirm-acoes {
    margin-top: 18px;
}

/* ==========================================
   AGENDA — ESTADOS DOS EVENTOS
========================================== */

.eventos-estado-preparacao {
    background: #29241c;
    border-color: #52442c;
    color: #edc984;
}

.eventos-estado-em_curso {
    background: #102c1c;
    border-color: #286b44;
    color: #83e6ac;
}

.eventos-estado-concluido {
    background: #142238;
    border-color: #315b91;
    color: #91c0ff;
}

.eventos-estado-cancelado {
    background: #351318;
    border-color: #8e2030;
    color: #ff6675;
}


/* ==========================================
   AGENDA — ENCERRAMENTO DE EVENTOS
========================================== */

.eventos-btn-encerrar {
    background: #142238;
    color: #91c0ff;
    border: 1px solid #315b91;
    border-radius: 9px;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.eventos-btn-encerrar:hover:not(:disabled) {
    background: #24436a;
    color: #fff;
}

.eventos-btn-encerrar:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.mc-encerrar-modal {
    max-width: 610px;
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    text-align: left;
}

.mc-encerrar-modal .mc-confirm-etiqueta,
.mc-encerrar-modal > h2,
.mc-encerrar-modal > p {
    text-align: center;
}

.mc-encerrar-subtitulo {
    font-size: 16px;
    margin: 24px 0 14px;
}

.mc-encerrar-linha {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 100px;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.mc-encerrar-linha strong {
    color: #ff6675;
    font-size: 13px;
}

.mc-encerrar-linha input {
    width: 100%;
    min-width: 0;
    padding: 12px;
    background: #080808;
    border: 1px solid #383838;
    border-radius: 8px;
    color: #fff;
    font: inherit;
    font-size: 13px;
}

.mc-encerrar-linha input:focus {
    outline: none;
    border-color: #e00016;
}

.mc-encerrar-nota {
    color: #999;
    font-size: 12px;
    line-height: 1.6;
    margin: 14px 0 20px;
}

.mc-encerrar-revisao {
    margin: 22px 0;
    padding: 18px;
    background: #151e2a;
    border: 1px solid #315b91;
    border-radius: 12px;
}

.mc-encerrar-revisao[hidden],
.mc-encerrar-modal [hidden] {
    display: none !important;
}

.mc-encerrar-revisao h3 {
    margin-bottom: 13px;
    color: #91c0ff;
}

.mc-encerrar-revisao p {
    padding: 7px 0;
    text-align: left;
    color: #ddd;
}

.mc-encerrar-confirmar {
    background: #20538c;
    color: white;
    border: 1px solid #3977bc;
}

.mc-encerrar-confirmar:hover:not(:disabled) {
    background: #2868ac;
}

.mc-encerrar-confirmar:disabled {
    opacity: .35;
    cursor: not-allowed;
}

@media (max-width: 520px) {
    .mc-encerrar-modal {
        padding: 20px;
    }

    .mc-encerrar-linha {
        grid-template-columns: 27px minmax(0, 1fr) 83px;
        gap: 6px;
    }

    .mc-encerrar-linha input {
        padding: 10px 8px;
        font-size: 12px;
    }
}

/* ==========================================
   AGENDA — CLASSIFICAÇÃO FINAL
========================================== */
.eventos-classificacao {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #344b6b;
    border-radius: 12px;
    background: #101923;
}

.eventos-classificacao-titulo {
    margin: 0 0 14px;
    color: #a6caff;
    font-size: 15px;
    font-weight: 800;
}

.eventos-classificacao-lista {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.eventos-classificacao-linha {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) 75px;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #29394b;
    font-size: 13px;
}

.eventos-classificacao-linha:last-child {
    border-bottom: 0;
}

.eventos-classificacao-posicao {
    color: #dfc493;
    font-weight: 700;
}

.eventos-classificacao-nome {
    color: #f1f1f1;
    overflow-wrap: anywhere;
}

.eventos-classificacao-horas {
    color: #83e6ac;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.eventos-classificacao-data {
    margin: 12px 0 0;
    color: #a0aeba;
    font-size: 11px;
}

@media (max-width: 520px) {
    .eventos-classificacao { padding: 12px; }
    .eventos-classificacao-linha {
        grid-template-columns: 65px minmax(0, 1fr) 62px;
        gap: 7px;
        font-size: 12px;
    }
}


/* ==========================================
   AGENDA — FILTROS POR ESTADO
========================================== */

.eventos-filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 24px;
    padding: 4px 0;
}

.eventos-filtro-btn {
    appearance: none;
    border: 1px solid #303037;
    border-radius: 9px;
    background: #141417;
    color: #a5a5af;
    padding: 11px 15px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.eventos-filtro-btn:hover {
    color: #fff;
    border-color: #7d202b;
    background: #1c1417;
}

.eventos-filtro-btn.ativo {
    color: #fff;
    background: #3b1016;
    border-color: #e00023;
    box-shadow: inset 0 0 0 1px #731221;
}

.eventos-filtro-btn:focus-visible {
    outline: 2px solid #ff4055;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .eventos-filtros {
        gap: 7px;
    }

    .eventos-filtro-btn {
        padding: 9px 11px;
        font-size: 11px;
    }
}


/* ==========================================
   AGENDA — PESQUISA DE EVENTOS
========================================== */

.eventos-pesquisa {
    width: 100%;
    margin: -8px 0 24px;
}

.eventos-pesquisa-input {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 12px 16px;
    background: #121215;
    border: 1px solid #303037;
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s,
                box-shadow 0.2s;
}

.eventos-pesquisa-input::placeholder {
    color: #777781;
}

.eventos-pesquisa-input:hover {
    border-color: #654049;
}

.eventos-pesquisa-input:focus {
    border-color: #e00023;
    box-shadow: 0 0 0 3px rgba(224, 0, 35, 0.12);
}

.eventos-pesquisa-input::-webkit-search-cancel-button {
    cursor: pointer;
}

@media (max-width: 600px) {
    .eventos-pesquisa {
        margin-top: -4px;
    }

    .eventos-pesquisa-input {
        font-size: 12px;
        padding: 11px 13px;
    }
}


/* ==========================================
   MEDICAL CENTER — VISÃO GERAL V2
========================================== */

.overview-v2 {
    width: 100%;
    color: #f5f5f5;
}

.overview-v2 .ov-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 34px;
    margin-bottom: 30px;
    border: 1px solid #442027;
    border-top: 3px solid #e00023;
    border-radius: 16px;
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(224, 0, 35, .13),
            transparent 52%
        ),
        linear-gradient(135deg, #171012, #101011);
}

.overview-v2 .ov-eyebrow {
    color: #fa3049;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
}

.overview-v2 .ov-hero h2 {
    margin: 14px 0 10px;
    font-size: clamp(25px, 3vw, 36px);
    font-weight: 800;
}

.overview-v2 .ov-hero p {
    max-width: 540px;
    color: #999;
    font-size: 13px;
    line-height: 1.7;
}

.ov-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 24px;
    color: #8be2b1;
    font-size: 12px;
    font-weight: 600;
}

.ov-status-dot {
    width: 8px;
    height: 8px;
    background: #46d98b;
    border-radius: 50%;
    box-shadow: 0 0 12px #46d98b80;
}

.ov-hero-aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 18px;
    color: #999;
    font-size: 12px;
}

.ov-refresh {
    padding: 11px 16px;
    background: #211518;
    color: #fff;
    border: 1px solid #78313c;
    border-radius: 9px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.ov-refresh:hover {
    background: #42151e;
}

.ov-refresh:disabled {
    opacity: .6;
    cursor: wait;
}

.ov-carregamento {
    margin: 0 0 24px;
    color: #999;
    font-size: 12px;
}

.ov-section-top {
    margin: 22px 0 17px;
}

.ov-section-top h3 {
    margin-top: 8px;
    font-size: 20px;
}

.ov-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 22px;
}

.ov-stat {
    min-width: 0;
    min-height: 145px;
    padding: 23px;
    background: #131315;
    border: 1px solid #2b2b30;
    border-radius: 13px;
}

.ov-stat-accent {
    border-color: #622330;
    background: linear-gradient(145deg, #2a1218, #141214);
}

.ov-stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ov-stat-top span {
    color: #9c9ca4;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.5;
}

.ov-stat-top b {
    color: #fa4055;
    font-size: 16px;
}

.ov-stat strong {
    display: block;
    margin: 22px 0 8px;
    font-size: clamp(23px, 2.5vw, 31px);
    overflow-wrap: anywhere;
}

.ov-stat p {
    color: #777;
    font-size: 11px;
    line-height: 1.5;
}

.ov-main-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 22px 0 32px;
}

.ov-panel {
    min-width: 0;
    padding: 25px;
    background: #111113;
    border: 1px solid #2d2d32;
    border-radius: 15px;
}

.ov-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 22px;
}

.ov-panel-header h3 {
    margin-top: 9px;
    font-size: 17px;
}

.ov-link {
    flex-shrink: 0;
    border: 0;
    background: transparent;
    color: #aaa;
    cursor: pointer;
    font-size: 11px;
}

.ov-link:hover {
    color: #ff4357;
}

.ov-feed {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ov-feed-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-width: 0;
    padding: 15px;
    border: 1px solid #29292e;
    background: #171719;
    border-radius: 10px;
}

.ov-feed-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #33151c;
    color: #ff6779;
    font-size: 16px;
}

.ov-feed-body {
    min-width: 0;
    flex: 1;
}

.ov-feed-body strong {
    display: block;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.ov-feed-body p {
    margin-top: 6px;
    color: #999;
    font-size: 11px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.ov-feed-meta {
    display: block;
    margin-top: 9px;
    color: #777;
    font-size: 10px;
}

.ov-feed-state {
    flex-shrink: 0;
    color: #83dda9;
    font-size: 10px;
    font-weight: 700;
}

.ov-feed-state.cancelado {
    color: #ff7585;
}

.ov-feed-state.concluido {
    color: #91b9ff;
}

.ov-feed-state.preparacao {
    color: #ecc37c;
}

.ov-empty {
    padding: 22px 10px;
    color: #999;
    text-align: center;
    font-size: 12px;
    line-height: 1.6;
}

.ov-stats-pontos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ov-pontos-header {
    margin-top: 42px;
}

.ov-meta-number {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.ov-meta-number strong {
    font-size: 43px;
}

.ov-meta-number span {
    color: #999;
    font-size: 12px;
}

.ov-progress {
    margin: 27px 0 15px;
}

.ov-meta-values {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    color: #999;
    font-size: 11px;
}

.overview-v2 #overview-chart {
    width: 100%;
    min-height: 210px;
}

@media (max-width: 1150px) {
    .ov-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ov-stats-pontos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    .ov-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .overview-v2 .ov-hero {
        padding: 23px;
        flex-direction: column;
    }

    .ov-hero-aside {
        align-items: flex-start;
    }

    .ov-stats,
    .ov-stats-pontos {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .ov-stat {
        min-height: 125px;
        padding: 16px;
    }

    .ov-panel {
        padding: 18px;
    }

    .ov-panel-header {
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .ov-stats,
    .ov-stats-pontos {
        grid-template-columns: 1fr;
    }
}


/* ==========================================
   GRÁFICO REAL — CICLOS MENSAIS
========================================== */

.overview-v2 .mc-ciclos-grafico {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 250px;
    display: block;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0 12px;
    scrollbar-width: thin;
    scrollbar-color: #a71932 #222;
}

.mc-ciclos-colunas {
    display: flex;
    align-items: stretch;
    gap: 18px;
    width: 100%;
    min-width: max-content;
    height: 235px;
}

.mc-ciclo-coluna {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 110px;
    min-width: 110px;
    height: 100%;
    gap: 9px;
}

.mc-ciclo-valor {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}

.mc-ciclo-area {
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 155px;
    min-height: 155px;
    background: rgba(255,255,255,.025);
    border-radius: 8px;
    overflow: hidden;
}

.mc-ciclo-barra {
    width: 100%;
    min-height: 0;
    background: linear-gradient(
        180deg,
        #ff344b,
        #a50018
    );
    border-radius: 6px 6px 0 0;
    transition: height .5s ease;
}

.mc-ciclo-barra.encerrado {
    background: linear-gradient(
        180deg,
        #a0a0a0,
        #505050
    );
}

.mc-ciclo-barra.pendente {
    background: linear-gradient(
        180deg,
        #ffd080,
        #a36a22
    );
}

.mc-ciclo-nome {
    font-size: 11px;
    color: #ddd;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.mc-ciclo-estado {
    font-size: 10px;
    color: #888;
    white-space: nowrap;
}

.mc-ciclos-mensagem {
    padding: 35px 12px;
    font-size: 12px;
    color: #999;
    text-align: center;
}


/* ==========================================
   MEDICAL CENTER — PONTOS V2
========================================== */

.pontos-v2 {
    width: 100%;
    color: #f4f4f5;
}

.pontos-v2 .pv-label {
    color: #ff3850;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.pv-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding: 32px;
    margin-bottom: 25px;
    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(210, 0, 37, .14),
            transparent 55%
        ),
        linear-gradient(135deg, #191114, #101012);
    border: 1px solid #44242b;
    border-top: 3px solid #e00023;
    border-radius: 16px;
}

.pv-hero h2 {
    margin: 14px 0 10px;
    font-size: clamp(26px, 3vw, 35px);
}

.pv-hero p,
.pv-panel-heading p {
    margin: 8px 0 0;
    color: #97979e;
    font-size: 12px;
    line-height: 1.7;
}

.pv-live {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 24px;
    font-size: 11px;
    color: #8ce2af;
}

.pv-live i {
    width: 8px;
    height: 8px;
    background: #47d988;
    border-radius: 50%;
    box-shadow: 0 0 12px #47d98870;
}

.pv-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 9px;
}

.pv-hero-actions span {
    color: #777;
    font-size: 9px;
    letter-spacing: 1px;
}

.pv-hero-actions strong {
    font-size: 12px;
}

#pv-atualizar {
    margin-top: 14px;
    padding: 11px 17px;
    background: #251317;
    color: #fff;
    border: 1px solid #76303c;
    border-radius: 9px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
}

#pv-atualizar:hover {
    background: #421821;
}

#pv-atualizar:disabled {
    opacity: .5;
    cursor: wait;
}

.pv-message {
    margin: 0 0 24px;
    color: #999;
    font-size: 12px;
}

.pv-section-heading {
    margin: 26px 0 15px;
}

.pv-section-heading h3 {
    margin: 8px 0 0;
    font-size: 19px;
}

.pv-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 22px;
}

.pv-stat {
    min-width: 0;
    padding: 24px;
    background: #131315;
    border: 1px solid #2b2b31;
    border-radius: 13px;
}

.pv-stat-primary {
    background: linear-gradient(145deg, #281218, #151315);
    border-color: #632532;
}

.pv-stat > span {
    display: block;
    color: #a1a1aa;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.pv-stat > strong {
    display: block;
    margin: 25px 0 10px;
    font-size: clamp(24px, 2.7vw, 32px);
    overflow-wrap: anywhere;
}

.pv-stat > small {
    color: #85858b;
    font-size: 11px;
    line-height: 1.5;
}

.pv-panel {
    min-width: 0;
    padding: 26px;
    margin-bottom: 20px;
    background: #111113;
    border: 1px solid #2e2e33;
    border-radius: 15px;
}

.pv-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 25px;
}

.pv-panel-heading h3 {
    margin: 9px 0 0;
    font-size: 18px;
}

.pv-header-tag {
    padding: 7px 10px;
    color: #ff5368;
    background: #35171e;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 9px;
    font-weight: 800;
}

.pv-month-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: #9f2234 #222;
}

.pv-month-chart {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    width: 100%;
    min-width: max-content;
    min-height: 245px;
    padding: 15px 0;
}

.pv-month-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    width: 125px;
    min-width: 125px;
}

.pv-month-value {
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.pv-month-track {
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 160px;
    background: #1b1b20;
    border-radius: 9px;
    overflow: hidden;
}

.pv-month-bar {
    width: 100%;
    background: linear-gradient(#ff344f, #ad001e);
    border-radius: 7px 7px 0 0;
    transition: height .4s ease;
}

.pv-month-bar.encerrado {
    background: linear-gradient(#a0a0a0, #555);
}

.pv-month-bar.aguarda_fecho {
    background: linear-gradient(#ffd185, #98651e);
}

.pv-month-name {
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.pv-month-status {
    color: #999;
    font-size: 10px;
}

.pv-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 19px;
    color: #999;
    font-size: 11px;
}

.pv-legend > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.pv-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 50%;
}

.pv-dot-gray { background: #888; }
.pv-dot-red { background: #e1223d; }
.pv-dot-gold { background: #d4a155; }

.pv-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.pv-reading-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.pv-reading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 14px 15px;
    background: #19191c;
    border: 1px solid #2c2c31;
    border-radius: 10px;
}

.pv-reading strong {
    font-size: 13px;
}

.pv-reading span {
    color: #999;
    font-size: 11px;
    text-align: right;
}

.pv-footnote {
    margin-top: 18px;
    color: #85858c;
    font-size: 11px;
    line-height: 1.7;
}

.pv-cycle-summary {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.pv-cycle-summary > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px;
    background: #19191c;
    border: 1px solid #2c2c31;
    border-radius: 10px;
}

.pv-cycle-summary span {
    color: #999;
    font-size: 10px;
    letter-spacing: .5px;
}

.pv-cycle-summary strong {
    font-size: 12px;
    text-align: right;
}

.pv-info {
    margin-top: 18px;
    padding: 17px;
    background: #21171a;
    border: 1px solid #44292f;
    border-radius: 10px;
}

.pv-info strong {
    font-size: 12px;
}

.pv-info p {
    margin: 8px 0 0;
    color: #a6a0a3;
    font-size: 11px;
    line-height: 1.7;
}

.pv-history {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pv-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 19px;
    background: #18181b;
    border: 1px solid #2c2c31;
    border-radius: 11px;
}

.pv-history-item strong {
    font-size: 13px;
}

.pv-history-item p {
    margin: 6px 0 0;
    color: #999;
    font-size: 11px;
}

.pv-history-points {
    font-size: 17px;
    font-weight: 800;
    white-space: nowrap;
}

.pv-empty {
    padding: 24px 10px;
    color: #999;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 1150px) {
    .pv-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    .pv-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .pv-hero {
        flex-direction: column;
        padding: 22px;
    }

    .pv-hero-actions {
        align-items: flex-start;
    }

    .pv-stats {
        gap: 10px;
    }

    .pv-stat {
        padding: 16px;
    }

    .pv-panel {
        padding: 18px;
    }

    .pv-history-item {
        align-items: flex-start;
    }
}

@media (max-width: 420px) {
    .pv-stats {
        grid-template-columns: 1fr;
    }
}


/* ==========================================
   PONTOS V2 — GESTÃO DA FUNDAÇÃO
========================================== */

.pv-admin {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(
        145deg, #221417, #151315
    );
    border: 1px solid #64303a;
    border-radius: 12px;
}

.pv-admin-heading > span {
    color: #ff5567;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.pv-admin-heading h4 {
    margin: 10px 0;
    font-size: 16px;
}

.pv-admin-heading p,
.pv-admin-section p {
    color: #aaa;
    font-size: 11px;
    line-height: 1.7;
}

.pv-admin-section {
    margin-top: 20px;
    padding: 17px;
    background: #131316;
    border: 1px solid #363039;
    border-radius: 10px;
}

.pv-admin-section > strong {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
}

.pv-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.pv-btn-primary,
.pv-btn-secondary {
    padding: 11px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
}

.pv-btn-primary {
    border: 1px solid #bc1230;
    color: #fff;
    background: #b00020;
}

.pv-btn-primary:hover {
    background: #d0002a;
}

.pv-btn-secondary {
    border: 1px solid #444;
    color: #ddd;
    background: #222;
}

.pv-btn-secondary:hover {
    background: #303036;
}

.pv-btn-primary:disabled,
.pv-btn-secondary:disabled {
    cursor: wait;
    opacity: .5;
}

.pv-admin-fecho {
    padding: 15px 0;
    border-top: 1px solid #363039;
}

.pv-admin-fecho:first-child {
    border-top: 0;
}

.pv-admin-fecho label {
    display: block;
    margin: 12px 0 6px;
    font-size: 11px;
    color: #aaa;
}

.pv-admin-fecho input {
    width: 100%;
    padding: 11px;
    background: #0d0d10;
    color: #fff;
    border: 1px solid #494049;
    border-radius: 7px;
    box-sizing: border-box;
}

.pv-admin-estado {
    margin: 15px 0 0;
    font-size: 11px;
    color: #ddd;
}

.pv-admin[hidden],
.pv-admin-section[hidden] {
    display: none !important;
}


/* REFERÊNCIA DE PONTOS — ENCERRAMENTO */

.pv-fecho-referencia {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 14px;
    padding: 15px;
    background: #231b1e;
    border: 1px solid #50313a;
    border-radius: 9px;
}

.pv-fecho-referencia span {
    color: #b6a3a9;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.pv-fecho-referencia strong {
    color: #fff;
    font-size: 22px;
}


/* ==========================================
   METAS MENSAIS V2
========================================== */

.mt-v2 {
    display: grid;
    gap: 20px;
    color: #f5f5f7;
}

.mt-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 25px;
    background: linear-gradient(125deg, #211318, #111114);
    border: 1px solid #463039;
    border-radius: 15px;
}

.mt-eyebrow {
    color: #ff425d;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.mt-hero h2 {
    margin: 9px 0;
    font-size: 27px;
}

.mt-hero p,
.mt-muted {
    color: #a3a3ae;
    font-size: 12px;
    line-height: 1.7;
}

#mt-atualizar {
    background: #2a2227;
    border: 1px solid #573a42;
    color: white;
    padding: 11px 17px;
    border-radius: 8px;
    cursor: pointer;
}

.mt-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.mt-card,
.mt-panel {
    background: #151518;
    border: 1px solid #303036;
    border-radius: 13px;
    padding: 21px;
}

.mt-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.mt-card > span {
    color: #a4a4ad;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .7px;
}

.mt-card > strong {
    font-size: clamp(20px, 2.5vw, 30px);
    overflow-wrap: anywhere;
}

.mt-card > small {
    color: #9e9ea9;
    font-size: 11px;
}

.mt-panel h3 {
    margin: 9px 0 13px;
    font-size: 18px;
}

.mt-panel-head,
.mt-progress-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mt-status {
    color: #ff8b9a;
    font-size: 11px;
    font-weight: 700;
}

.mt-progress-track {
    margin-top: 23px;
    height: 12px;
    background: #2c2c32;
    border-radius: 100px;
    overflow: hidden;
}

.mt-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #a7102a, #f23858);
    border-radius: inherit;
    transition: width .35s ease;
}

.mt-progress-footer {
    margin-top: 12px;
    color: #a5a5b0;
    font-size: 11px;
}

.mt-admin {
    border-color: #6b2939;
}

.mt-admin[hidden] {
    display: none !important;
}

.mt-admin label {
    display: block;
    margin: 15px 0 9px;
    font-size: 12px;
}

.mt-form-row {
    display: flex;
    gap: 10px;
}

.mt-form-row input {
    flex: 1;
    min-width: 0;
    padding: 12px;
    color: white;
    background: #0e0e11;
    border: 1px solid #42424a;
    border-radius: 8px;
}

.mt-form-row button {
    padding: 12px 19px;
    background: #b61635;
    color: white;
    border: 1px solid #dc2349;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.mt-form-row button:disabled,
#mt-atualizar:disabled {
    opacity: .6;
    cursor: wait;
}

.mt-historico {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.mt-hist-item {
    padding: 16px;
    background: #1b1b20;
    border: 1px solid #35353b;
    border-radius: 9px;
}

.mt-hist-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.mt-hist-top strong {
    font-size: 13px;
}

.mt-hist-top span,
.mt-hist-item p {
    color: #aaa;
    font-size: 11px;
}

.mt-hist-item p {
    margin: 10px 0;
}

.mt-hist-track {
    height: 6px;
    background: #323238;
    border-radius: 20px;
    overflow: hidden;
}

.mt-hist-fill {
    height: 100%;
    background: #dc2f4a;
    border-radius: inherit;
}

@media (max-width: 950px) {
    .mt-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .mt-stats {
        grid-template-columns: 1fr;
    }

    .mt-form-row {
        flex-direction: column;
    }

    .mt-hero {
        padding: 20px;
    }
}


/* ==========================================
   METAS — MODAL PERSONALIZADO
========================================== */

.mt-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .78);
    backdrop-filter: blur(6px);
}

.mt-modal[hidden] {
    display: none !important;
}

.mt-modal-card {
    width: 100%;
    max-width: 430px;
    padding: 30px;
    background: #18171b;
    border: 1px solid #783142;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0,0,0,.6);
    color: #fff;
    animation: mtModalEntrar .18s ease-out;
}

.mt-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 19px;
    border-radius: 13px;
    font-size: 23px;
    background: #341b25;
}

.mt-modal-card h3 {
    margin: 12px 0 9px;
    font-size: 22px;
}

.mt-modal-card > p {
    color: #aaa;
    font-size: 12px;
    line-height: 1.7;
}

.mt-modal-valor {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 22px 0;
    padding: 20px;
    background: #211b20;
    border: 1px solid #4f3039;
    border-radius: 10px;
}

.mt-modal-valor span {
    color: #bca0a8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.mt-modal-valor strong {
    color: #fff;
    font-size: 32px;
}

.mt-modal-valor small {
    color: #aaa;
    font-size: 11px;
}

.mt-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.mt-modal-actions button {
    padding: 12px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

#mt-modal-cancelar {
    background: #29272d;
    color: #ddd;
    border: 1px solid #49454d;
}

#mt-modal-confirmar {
    background: #bd1535;
    color: white;
    border: 1px solid #dd284b;
}

#mt-modal-confirmar:hover {
    background: #d51e42;
}

#mt-modal-confirmar:disabled {
    opacity: .6;
    cursor: wait;
}

@keyframes mtModalEntrar {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 480px) {
    .mt-modal-card {
        padding: 22px;
    }

    .mt-modal-actions {
        flex-direction: column-reverse;
    }

    .mt-modal-actions button {
        width: 100%;
    }
}


/* ==========================================
   RECURSOS V2 — MEDICAL CENTER
========================================== */

.rc-v2 {
    display: grid;
    gap: 20px;
    color: #f5f5f7;
}

.rc-hero, .rc-panel {
    background: #151518;
    border: 1px solid #343039;
    border-radius: 14px;
    padding: 25px;
}

.rc-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    background: linear-gradient(125deg, #25151b, #141417);
    border-color: #51303b;
}

.rc-eyebrow {
    color: #ff4562;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.rc-hero h2 {
    font-size: 28px;
    margin: 10px 0;
}

.rc-hero p, .rc-panel p {
    color: #a7a7b0;
    font-size: 12px;
    line-height: 1.7;
}

#rc-novo, .rc-primario {
    background: #bb1536;
    border: 1px solid #e02c50;
    color: white;
    padding: 12px 17px;
    border-radius: 9px;
    cursor: pointer;
    font-weight: 700;
}

#rc-novo[hidden], .rc-modal[hidden] {
    display: none !important;
}

.rc-toolbar {
    display: flex;
    gap: 12px;
}

#rc-pesquisa {
    flex: 1;
    min-width: 0;
    padding: 14px;
    color: white;
    background: #151518;
    border: 1px solid #393941;
    border-radius: 10px;
}

#rc-atualizar, .rc-secundario {
    padding: 12px 16px;
    background: #252329;
    color: #ddd;
    border: 1px solid #4a434d;
    border-radius: 9px;
    cursor: pointer;
}

.rc-categorias {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.rc-filtro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    text-align: left;
    color: #eee;
    background: #1c1c21;
    border: 1px solid #35353d;
    border-radius: 12px;
    padding: 17px;
    cursor: pointer;
}

.rc-filtro > span {
    font-size: 22px;
}

.rc-filtro strong {
    font-size: 12px;
}

.rc-filtro small {
    color: #aaa;
    font-size: 10px;
}

.rc-filtro.ativo {
    background: #2a171e;
    border-color: #ac2844;
}

.rc-panel-top {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: center;
}

.rc-panel h3 {
    margin: 9px 0;
    font-size: 19px;
}

#rc-estado {
    color: #a4a4ae;
    font-size: 11px;
}

.rc-lista {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.rc-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 21px;
    background: #1d1d22;
    border: 1px solid #36363e;
    border-radius: 11px;
}

.rc-item-destaque {
    border-color: #8b3549;
}

.rc-item-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.rc-item-etiqueta {
    color: #ff7186;
    font-size: 10px;
    font-weight: 700;
}

.rc-item h4 {
    margin: 0;
    font-size: 16px;
}

.rc-item p {
    margin: 0;
    overflow-wrap: anywhere;
}

.rc-item-meta {
    color: #888893;
    font-size: 10px;
}

.rc-item-acoes {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: auto;
}

.rc-item-acoes a,
.rc-item-acoes button {
    display: inline-block;
    text-decoration: none;
    padding: 10px 13px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.rc-item-acoes a {
    background: #a91532;
    color: white;
}

.rc-item-acoes button {
    background: #2a2930;
    color: #ddd;
    border: 1px solid #4b4750;
}

.rc-vazio {
    grid-column: 1 / -1;
    text-align: center;
    padding: 45px 18px;
    color: #aaa;
    font-size: 13px;
    border: 1px dashed #44414a;
    border-radius: 12px;
}

.rc-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,.78);
    backdrop-filter: blur(6px);
    padding: 20px;
}

.rc-modal-card {
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    background: #19181d;
    color: white;
    padding: 27px;
    border: 1px solid #793447;
    border-radius: 15px;
    box-shadow: 0 25px 80px #0009;
    box-sizing: border-box;
}

.rc-modal-pequeno {
    max-width: 420px;
}

.rc-modal-card h3 {
    font-size: 22px;
    margin: 14px 0 20px;
}

.rc-modal-card label:not(.rc-check) {
    display: block;
    margin: 15px 0 7px;
    font-size: 11px;
    color: #b9b9c2;
}

.rc-modal-card input:not([type="checkbox"]),
.rc-modal-card select,
.rc-modal-card textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    color: white;
    background: #101014;
    border: 1px solid #48444f;
    border-radius: 8px;
    font: inherit;
}

.rc-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    font-size: 12px;
}

.rc-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

#rc-form-erro {
    color: #ff7489;
    font-size: 11px;
}

.rc-modal button:disabled {
    opacity: .5;
    cursor: wait;
}

@media (max-width: 1000px) {
    .rc-categorias {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .rc-categorias {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rc-lista {
        grid-template-columns: 1fr;
    }

    .rc-toolbar {
        flex-direction: column;
    }

    .rc-hero, .rc-panel {
        padding: 19px;
    }
}


/* ==========================================
   ÁREA PESSOAL V2
========================================== */

.pf-estatisticas {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    margin-top: 20px;
}

.pf-stat {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    min-width: 0;
    background: #1b1b20;
    border: 1px solid #36343b;
    border-radius: 12px;
}

.pf-stat small,
.pf-detalhes-grid small {
    font-size: 10px;
    font-weight: 700;
    color: #a6a6b1;
}

.pf-stat strong {
    font-size: 19px;
    color: #fff;
    overflow-wrap: anywhere;
}

.pf-stat span {
    color: #9999a3;
    font-size: 11px;
}

.pf-diretorio {
    margin-top: 23px;
    padding: 24px;
    background: #151518;
    border: 1px solid #393039;
    border-radius: 14px;
}

.pf-diretorio[hidden],
.pf-detalhes[hidden] {
    display: none !important;
}

.pf-diretorio-topo,
.pf-detalhes-topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pf-diretorio h3 {
    margin: 8px 0;
    color: #fff;
}

.pf-diretorio p,
#pf-total {
    color: #a6a6ae;
    font-size: 12px;
}

#pf-pesquisa {
    width: 100%;
    box-sizing: border-box;
    margin: 20px 0;
    padding: 13px;
    background: #101014;
    border: 1px solid #41404a;
    border-radius: 9px;
    color: white;
}

.pf-lista {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(145px, 1fr));
    gap: 11px;
}

.pf-membro {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 13px;
    background: #202025;
    border: 1px solid #3b3941;
    border-radius: 10px;
    color: white;
    text-align: left;
    cursor: pointer;
}

.pf-membro:hover {
    border-color: #b72b49;
    background: #2a1d24;
}

.pf-membro-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #3a2730;
    color: #ff6c84;
    font-size: 17px;
}

.pf-membro-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.pf-membro-info strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
}

.pf-membro-info small {
    color: #a6a6ae;
    font-size: 10px;
}

.pf-detalhes {
    margin-top: 22px;
    padding: 20px;
    background: #211a20;
    border: 1px solid #643243;
    border-radius: 11px;
}

.pf-detalhes h4 {
    color: #fff;
    margin: 0;
}

#pf-fechar-detalhes {
    border: 1px solid #55424b;
    background: #2b252b;
    color: white;
    padding: 9px 13px;
    border-radius: 8px;
    cursor: pointer;
}

.pf-detalhes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    margin-top: 20px;
}

.pf-detalhes-grid > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.pf-detalhes-grid strong {
    color: white;
    overflow-wrap: anywhere;
    font-size: 13px;
}

@media (max-width: 1000px) {
    .pf-estatisticas {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .pf-estatisticas,
    .pf-detalhes-grid {
        grid-template-columns: 1fr;
    }

    .pf-diretorio {
        padding: 17px;
    }
}

/* MEDICAL CENTER — SALVAMENTOS */
.pf-atividade { margin-top:24px; padding:22px; background:#151518; border:1px solid #393039; border-radius:14px; color:#fff; }
.pf-atividade h3 {margin:0 0 10px;}
.pf-atividade p {color:#a6a6ae;font-size:12px;}
.pf-atividade-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0;}
.pf-atividade-grid>div {padding:15px;background:#1b1b20;border:1px solid #36343b;border-radius:10px;display:flex;flex-direction:column;gap:10px;}
.pf-atividade-grid small {font-size:10px;color:#a6a6b1;font-weight:700;}
.pf-atividade-grid strong {font-size:21px;overflow-wrap:anywhere;}
.pf-atividade h4 {font-size:13px;}
.pf-atividade-dias {display:flex;flex-wrap:wrap;gap:8px;}
.pf-atividade-dias span {background:#2a1d24;border:1px solid #643243;padding:7px 9px;border-radius:8px;color:#ffd7de;font-size:11px;}
@media(max-width:760px){.pf-atividade-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:420px){.pf-atividade-grid{grid-template-columns:1fr;}}

#mc-jogadores-lista .mc-medico-id {
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

#mc-jogadores-lista .mc-medico-pontos {
    color: #e4dfe5;
    font-size: 13px;
}

#mc-jogadores-lista .mc-medico-mensal {
    margin-top: 5px;
    padding: 4px 9px;
    border-radius: 7px;
    color: #ff7888;
    background: #3a1e27;
    font-size: 11px;
    font-weight: 700;
}

/* ==========================================
   MEDICAL CENTER — GESTÃO DE SALVAMENTOS
   Design exclusivo da Fundação
========================================== */

#mc-gestao-jogadores {
    margin-top: 30px !important;
    padding: 28px;
    border: 1px solid #343039;
    border-radius: 18px;
    background: linear-gradient(145deg, #171419, #101013);
}

/* Título e contador */

#mc-gestao-jogadores .pf-diretorio-topo {
    margin-bottom: 22px;
}

#mc-gestao-jogadores .pf-diretorio-topo h3 {
    font-size: 23px;
    font-weight: 800;
    margin: 8px 0;
}

#mc-jogadores-total {
    padding: 8px 13px;
    border-radius: 999px;
    background: #321820;
    border: 1px solid #783040;
    color: #ff5366;
    font-size: 12px;
    font-weight: 700;
}

/* Pesquisa */

#mc-jogadores-filtro {
    width: 100%;
    padding: 15px 18px;
    margin-bottom: 22px;
    background: #0c0c10;
    color: #fff;
    border: 1px solid #37343d;
    border-radius: 12px;
    outline: none;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}

#mc-jogadores-filtro:focus {
    border-color: #ed233e;
    box-shadow: 0 0 0 3px #ed233e20;
}

/* Cartões automáticos */

#mc-jogadores-lista {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

#mc-jogadores-lista .pf-membro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 95px;
    padding: 17px;
    background: #1d1d23;
    border: 1px solid #38343e;
    border-radius: 13px;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
    color: #f5f5f7;
    font-size: 13px;
    line-height: 1.65;
    transition: transform .2s, border-color .2s, background .2s;
}

#mc-jogadores-lista .pf-membro:hover,
#mc-jogadores-lista .pf-membro:focus-visible {
    border-color: #e32640;
    background: #291b22;
    transform: translateY(-2px);
    outline: none;
}

#mc-jogadores-lista .pf-membro:active {
    transform: translateY(0);
}

/* Ficha selecionada */

#mc-jogador-ficha {
    margin-top: 18px;
    margin-bottom: 30px;
    padding: 24px;
    border-radius: 15px;
    border: 1px solid #713143;
    background: linear-gradient(135deg, #271820, #151218);
}

#mc-jogador-ficha[hidden] {
    display: none !important;
}

#mc-jogador-ficha h4 {
    font-size: 21px;
    font-weight: 800;
    margin: 0 0 12px;
    color: #fff;
}

#mc-jogador-ficha > p {
    margin: 8px 0;
    color: #dbd5dc;
    font-size: 14px;
    line-height: 1.6;
}

#mc-jogador-ficha > strong {
    display: block;
    margin-top: 22px;
    margin-bottom: 12px;
    color: #ff5366;
    font-size: 14px;
}

/* Top 10 por evento */

#mc-gestao-jogadores > h3 {
    margin-top: 34px !important;
    padding-top: 24px;
    border-top: 1px solid #353039;
    font-size: 21px;
    font-weight: 800;
}

#mc-gestao-jogadores > h3 + p {
    margin: 10px 0 20px;
    color: #a9a4ad;
    font-size: 13px;
    line-height: 1.6;
}

#mc-gestao-jogadores > label {
    display: inline-flex;
    flex-direction: column;
    vertical-align: top;
    width: calc(50% - 9px);
    margin: 0 12px 16px 0;
    gap: 9px;
    color: #c8c2ca;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

#mc-gestao-jogadores > label:nth-of-type(2) {
    margin-right: 0;
}

#mc-evento-inicio,
#mc-evento-fim {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    padding: 12px 14px;
    color: #f5f5f7;
    background: #101014;
    border: 1px solid #39343e;
    border-radius: 10px;
    color-scheme: dark;
    outline: none;
    font-family: inherit;
    font-size: 14px;
}

#mc-evento-inicio:focus,
#mc-evento-fim:focus {
    border-color: #e32640;
}

#mc-evento-calcular {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 13px 18px;
    margin-bottom: 20px;
    border: 1px solid #ec2943;
    border-radius: 11px;
    background: linear-gradient(135deg, #ed2440, #a9162d);
    color: white;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: filter .2s, transform .2s;
}

#mc-evento-calcular:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

#mc-evento-ranking {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

#mc-evento-ranking p {
    margin: 0;
    padding: 15px 18px;
    background: #1b1b21;
    border: 1px solid #39343e;
    border-radius: 11px;
    color: #f5f5f7;
    font-size: 14px;
}

/* Responsivo */

@media (max-width: 1000px) {
    #mc-jogadores-lista {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    #mc-gestao-jogadores {
        padding: 16px;
    }

    #mc-jogadores-lista {
        grid-template-columns: 1fr;
    }

    #mc-gestao-jogadores > label {
        display: flex;
        width: 100%;
        margin-right: 0;
    }

    #mc-jogador-ficha {
        padding: 17px;
    }
}

#mc-jogadores-lista .mc-medico-id {
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

#mc-jogadores-lista .mc-medico-pontos {
    color: #e4dfe5;
    font-size: 13px;
}

#mc-jogadores-lista .mc-medico-mensal {
    margin-top: 5px;
    padding: 4px 9px;
    border-radius: 7px;
    color: #ff7888;
    background: #3a1e27;
    font-size: 11px;
    font-weight: 700;
}
/* Fundação — ranking público de salvamentos por evento */
#mc-gestao-jogadores .mc-evento-gestao{margin-top:28px;padding:22px;border:1px solid #5b3944;border-radius:16px;background:linear-gradient(145deg,#25171e,#17171c)}
#mc-gestao-jogadores .mc-evento-gestao h3{margin:8px 0 10px;color:#fff;font-size:21px}
#mc-gestao-jogadores .mc-evento-gestao p{color:#bfb4bd;font-size:13px;line-height:1.6}
#mc-gestao-jogadores .mc-evento-estado{margin:18px 0;padding:13px 15px;border:1px solid #4c3740;border-radius:10px;background:#16141a;color:#f6dbe1;line-height:1.5}
#mc-gestao-jogadores .mc-evento-gestao-campos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#mc-gestao-jogadores .mc-evento-gestao-campos label{display:flex;flex-direction:column;gap:8px;font-size:12px;color:#ddd;font-weight:700}
#mc-gestao-jogadores .mc-evento-gestao-campos label:first-child{grid-column:1/-1}
#mc-gestao-jogadores .mc-evento-gestao-campos input{width:100%;min-width:0;box-sizing:border-box;min-height:46px;padding:12px;border:1px solid #54424b;border-radius:10px;background:#101014;color:#fff;color-scheme:dark;font:inherit}
#mc-gestao-jogadores .mc-evento-gestao-botoes{display:flex;flex-wrap:wrap;gap:10px;margin:15px 0}
#mc-gestao-jogadores .mc-evento-gestao-botoes button{border:1px solid #d52744;border-radius:10px;padding:12px 15px;background:#a91e39;color:white;font-weight:800;cursor:pointer}
#mc-gestao-jogadores .mc-evento-gestao-botoes button:nth-child(2){background:#7b2935}
#mc-gestao-jogadores .mc-evento-gestao-botoes button:nth-child(3){background:#27212a;border-color:#65515b}
#mc-gestao-jogadores .mc-evento-gestao-botoes button:disabled{opacity:.5;cursor:wait}
#mc-gestao-jogadores .mc-evento-gestao-botoes button[hidden]{display:none}
#mc-gestao-jogadores .mc-evento-gestao-ranking p,#mc-gestao-jogadores .mc-evento-historico p{margin:6px 0;padding:10px 12px;background:#211c23;border-radius:8px;color:#f5e8ec}
#mc-gestao-jogadores .mc-evento-historico{margin-top:14px;color:#d9cbd0}
#mc-gestao-jogadores .mc-evento-historico summary{cursor:pointer;font-weight:700}
@media(max-width:650px){#mc-gestao-jogadores .mc-evento-gestao{padding:15px}#mc-gestao-jogadores .mc-evento-gestao-campos{grid-template-columns:1fr}}

#mc-gestao-jogadores[hidden]{display:none!important}
