body {
    padding-top: 64px;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #111;
    color: #fff;
    height: 64px;
    z-index: 9990;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}

.site-header-inner {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    text-decoration: none;
}

.site-logo:hover {
    color: #fff;
    text-decoration: none;
}

.site-menu a {
    color: #ddd;
    margin: 0 10px;
    text-decoration: none;
}

.site-menu a:hover {
    color: #fff;
}

.btn-usuario {
    background: #fff;
    color: #111;
    border: 0;
    border-radius: 30px;
    padding: 8px 16px;
    font-weight: bold;
}

#painelUsuarioOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 9998;
}

#painelUsuarioOverlay.aberto {
    display: block;
}

.painel-usuario {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 94%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    box-shadow: -4px 0 25px rgba(0, 0, 0, .3);
    transition: right .3s ease;
    overflow-y: auto;
}

.painel-usuario.aberto {
    right: 0;
}

.painel-fechar {
    position: absolute;
    top: 10px;
    right: 14px;
    background: transparent;
    border: 0;
    font-size: 32px;
    line-height: 1;
}

.painel-topo {
    background: #111;
    color: #fff;
    padding: 36px 24px 24px;
    text-align: center;
}

.painel-topo h3 {
    margin: 10px 0 5px;
}

.painel-topo p {
    color: #ccc;
    font-size: 13px;
}

.painel-icone,
.painel-avatar {
    font-size: 42px;
}

.painel-form {
    padding: 24px;
}

#retornoLoginSite {
    margin-top: 12px;
    font-size: 13px;
}

.painel-menu {
    padding: 16px 0;
}

.painel-menu a {
    display: block;
    padding: 14px 24px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
}

.painel-menu a:hover {
    background: #f5f5f5;
    text-decoration: none;
}

.painel-menu .sair {
    color: #c00;
}

.painel-menu hr {
    margin: 8px 0;
}

.card-desafio {

    background: #FFF;

    border-radius: 10px;

    padding: 15px;

    margin-bottom: 15px;

    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);

    color: #111;

}

.desafio-view {
    padding-top: 30px;
    padding-bottom: 50px;
}

.desafio-topo {
    background: #111;
    color: #fff;
    padding: 25px;
    border-radius: 14px;
    margin-bottom: 25px;
}

.desafio-topo h2 {
    margin-top: 18px;
}

.desafio-topo small {
    color: #ccc;
}

.progresso-desafio-view {
    height: 28px;
    margin-top: 18px;
}

.resumo-desafio {
    margin-bottom: 25px;
}

.box-resumo {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 15px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .08);
}

.box-resumo span {
    font-size: 28px;
}

.box-resumo h3 {
    margin: 8px 0 2px;
    font-size: 26px;
}

.box-resumo p {
    color: #666;
    margin: 0;
}

.busca-cidade {
    margin-bottom: 20px;
    height: 44px;
    border-radius: 8px;
}

.desafio-tabs {
    background: #fff;
    border: 1px solid #ddd;
    border-top: 0;
    padding: 20px;
}

.cidade-card {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
}

.cidade-card:last-child {
    border-bottom: 0;
}

.cidade-card h4 {
    margin-top: 0;
}

.cidade-card p {
    color: #555;
    margin-bottom: 6px;
}

.cidade-fotos-mini {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-top: 10px;
    padding-bottom: 5px;
}

.cidade-fotos-mini img {
    width: 74px;
    height: 74px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}

.cidade-acoes {
    min-width: 160px;
    text-align: right;
}

.cidade-acoes .btn {
    display: block;
    margin-bottom: 8px;
}

.modal-foto-content {
    background: #111;
}

#fotoDesafioGrande {
    max-width: 100%;
    max-height: 82vh;
    border-radius: 8px;
}

.modal-foto-close {
    color: #fff;
    opacity: 1;
    font-size: 34px;
}

@media (max-width: 768px) {
    .desafio-topo {
        border-radius: 0;
        margin-left: -15px;
        margin-right: -15px;
    }

    .cidade-card {
        display: block;
    }

    .cidade-acoes {
        text-align: left;
        margin-top: 12px;
    }

    .cidade-acoes .btn {
        display: inline-block;
        margin-right: 5px;
    }
}

@media (max-width: 768px) {
    .site-menu {
        display: none;
    }

    .site-logo {
        font-size: 15px;
    }

    .btn-usuario {
        padding: 7px 12px;
        font-size: 13px;
    }
}

.masthead {

    background: url('../img/bg-masthead.jpg');

    background-size: cover;

    padding: 130px 0;

    position: relative;

}

.overlay {

    position: absolute;

    left: 0;

    top: 0;

    width: 100%;

    height: 100%;

    background: rgba(0, 0, 0, .55);

}

.card {

    border: 0;

    border-radius: 12px;

    transition: .25s;

}

.card:hover {

    transform: translateY(-6px);

    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);

}

.progress {

    border-radius: 20px;

}

.progress-bar {

    border-radius: 20px;   }