.conteudo-comecar-estudo {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 28px 30px 60px;
}

.apresentacao-comecar-estudo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    gap: 28px;
    align-items: center;
    margin-bottom: 22px;
    padding: 34px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 2%, rgba(255,255,255,.18), transparent 30%),
        linear-gradient(135deg, #0c3d86 0%, #087f75 100%);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 22px;
    box-shadow: 0 24px 54px rgba(0,0,0,.22);
}

.apresentacao-comecar-estudo h2 {
    margin: 8px 0 12px;
    font-family: "Nunito Sans", sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.55rem);
    font-weight: 900;
    line-height: 1.08;
}

.apresentacao-comecar-estudo p {
    max-width: 720px;
    margin: 0;
    color: rgba(255,255,255,.82);
    font-size: .94rem;
    line-height: 1.7;
}

.etiqueta-comecar-estudo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #d1fae5;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.seguranca-comecar-estudo {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    text-align: center;
    background: rgba(2, 6, 23, .24);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 18px;
}

.seguranca-comecar-estudo > i {
    font-size: 2rem;
    color: #5eead4;
}

.seguranca-comecar-estudo strong {
    font-size: .92rem;
}

.seguranca-comecar-estudo span {
    color: rgba(255,255,255,.72);
    font-size: .78rem;
    line-height: 1.5;
}

.painel-fluxo-estudo {
    margin-bottom: 20px;
    padding: 26px;
    background: var(--cor-fundo-card, #111c2b);
    border: 1px solid rgba(148,163,184,.22);
    border-radius: 20px;
    box-shadow: 0 18px 42px rgba(0,0,0,.14);
}

.cabecalho-etapa-estudo {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.numero-etapa {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    color: #022c22;
    background: #34d399;
    border-radius: 12px;
    font-weight: 900;
}

.rotulo-etapa {
    display: block;
    margin-bottom: 4px;
    color: #34d399;
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.cabecalho-etapa-estudo h2 {
    margin: 0 0 5px;
    color: #f8fafc;
    font-family: "Nunito Sans", sans-serif;
    font-size: 1.25rem;
    font-weight: 900;
}

.cabecalho-etapa-estudo p {
    margin: 0;
    color: #94a3b8;
    font-size: .82rem;
    line-height: 1.55;
}

.opcoes-papel-estudo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.opcao-papel-estudo {
    min-height: 116px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 15px;
    align-items: center;
    padding: 19px;
    color: #e2e8f0;
    text-align: left;
    background: #0c1624;
    border: 1px solid #26364a;
    border-radius: 16px;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.opcao-papel-estudo:hover {
    transform: translateY(-2px);
    border-color: #14b8a6;
}

.opcao-papel-estudo.selecionado {
    border-color: #34d399;
    box-shadow: 0 0 0 3px rgba(52,211,153,.12);
}

.icone-opcao-papel {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    font-size: 1.3rem;
}

.icone-opcao-papel.medico {
    color: #7dd3fc;
    background: rgba(14,165,233,.13);
}

.icone-opcao-papel.paciente {
    color: #c4b5fd;
    background: rgba(139,92,246,.13);
}

.conteudo-opcao-papel strong,
.conteudo-opcao-papel small {
    display: block;
}

.conteudo-opcao-papel strong {
    margin-bottom: 6px;
    color: #f8fafc;
    font-size: .96rem;
}

.conteudo-opcao-papel small {
    color: #94a3b8;
    font-size: .76rem;
    line-height: 1.45;
}

.marcador-opcao-papel {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    color: transparent;
    border: 2px solid #475569;
    border-radius: 50%;
}

.opcao-papel-estudo.selecionado .marcador-opcao-papel {
    color: #052e16;
    background: #34d399;
    border-color: #34d399;
}

.barra-amigos-estudo {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 14px;
}

.busca-amigos-estudo {
    width: min(100%, 440px);
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    color: #64748b;
    background: #0a1421;
    border: 1px solid #26364a;
    border-radius: 12px;
}

.busca-amigos-estudo input {
    width: 100%;
    color: #e2e8f0;
    background: transparent;
    border: 0;
    outline: 0;
}

.contador-amigos-estudo {
    color: #94a3b8;
    font-size: .76rem;
    font-weight: 700;
}

.estado-amigos-estudo[hidden],
.lista-amigos-estudo[hidden] {
    display: none !important;
}

.lista-amigos-estudo {
    width: 100%;
    max-height: 430px;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 12px;
    padding-right: 7px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
}

.amigo-estudo-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
    padding: 14px;
    background: #0b1624;
    border: 1px solid #233247;
    border-radius: 15px;
}

.avatar-amigo-estudo {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #d1fae5;
    background: linear-gradient(135deg, #0f766e, #2563eb);
    border-radius: 50%;
    font-size: .8rem;
    font-weight: 900;
}

.avatar-amigo-estudo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.informacoes-amigo-estudo {
    min-width: 0;
}

.informacoes-amigo-estudo strong,
.informacoes-amigo-estudo span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.informacoes-amigo-estudo strong {
    margin-bottom: 4px;
    color: #f8fafc;
    font-size: .86rem;
}

.informacoes-amigo-estudo span {
    color: #94a3b8;
    font-size: .72rem;
}

.informacoes-amigo-estudo .status-amigo-estudo {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    max-width: 100%;
    font-weight: 800;
}

.status-amigo-estudo::before {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    content: "";
    background: #64748b;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, .14);
}

.status-amigo-estudo.status-online {
    color: #6ee7b7;
}

.status-amigo-estudo.status-online::before {
    background: #34d399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, .15);
}

.status-amigo-estudo.status-estudando {
    color: #7dd3fc;
}

.status-amigo-estudo.status-estudando::before {
    background: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, .15);
}

.status-amigo-estudo.status-offline {
    color: #94a3b8;
}

.botao-convidar-amigo {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    color: #052e16;
    background: #34d399;
    border: 0;
    border-radius: 10px;
    font-size: .72rem;
    font-weight: 900;
    cursor: pointer;
}

.botao-convidar-amigo:disabled {
    opacity: .6;
    cursor: wait;
}

.estado-amigos-estudo {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #94a3b8;
    text-align: left;
    background: #0a1421;
    border: 1px dashed #304158;
    border-radius: 15px;
}

.estado-amigos-estudo i {
    color: #38bdf8;
    font-size: 1.25rem;
}

.estado-amigos-estudo strong,
.estado-amigos-estudo span {
    display: block;
}

.estado-amigos-estudo strong {
    margin-bottom: 4px;
    color: #e2e8f0;
}

.estado-amigos-estudo span {
    font-size: .76rem;
}

.mensagem-fluxo-estudo {
    min-height: 22px;
    color: #94a3b8;
    font-size: .82rem;
    text-align: center;
}

.mensagem-fluxo-estudo.erro { color: #fca5a5; }
.mensagem-fluxo-estudo.sucesso { color: #6ee7b7; }

@media (max-width: 900px) {
    .apresentacao-comecar-estudo,
    .opcoes-papel-estudo,
    .lista-amigos-estudo {
        grid-template-columns: 1fr;
    }

    .seguranca-comecar-estudo {
        min-height: auto;
    }
}

@media (max-width: 620px) {
    .conteudo-comecar-estudo {
        padding: 18px 14px 44px;
    }

    .apresentacao-comecar-estudo,
    .painel-fluxo-estudo {
        padding: 20px;
        border-radius: 16px;
    }

    .barra-amigos-estudo {
        align-items: stretch;
        flex-direction: column;
    }

    .lista-amigos-estudo {
        max-height: 360px;
    }

    .amigo-estudo-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .botao-convidar-amigo {
        grid-column: 1 / -1;
        justify-content: center;
    }
}


/* V7 — escolha do catálogo antes do papel */
.painel-fluxo-estudo[hidden] {
    display: none !important;
}

.opcoes-catalogo-estudo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.opcao-catalogo-estudo {
    min-height: 128px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 15px;
    align-items: center;
    padding: 20px;
    color: #e2e8f0;
    text-align: left;
    background: #0c1624;
    border: 1px solid #26364a;
    border-radius: 16px;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.opcao-catalogo-estudo:hover {
    transform: translateY(-2px);
    border-color: #14b8a6;
}

.opcao-catalogo-estudo.selecionado {
    border-color: #34d399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, .12);
}

.icone-opcao-catalogo {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    font-size: 1.35rem;
}

.icone-opcao-catalogo.oficial {
    color: #7dd3fc;
    background: rgba(14, 165, 233, .13);
}

.icone-opcao-catalogo.plataforma {
    color: #6ee7b7;
    background: rgba(16, 185, 129, .13);
}

.conteudo-opcao-catalogo strong,
.conteudo-opcao-catalogo small {
    display: block;
}

.conteudo-opcao-catalogo strong {
    margin-bottom: 7px;
    color: #f8fafc;
    font-size: 1rem;
}

.conteudo-opcao-catalogo small {
    color: #94a3b8;
    font-size: .77rem;
    line-height: 1.5;
}

.marcador-opcao-catalogo {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    color: transparent;
    border: 2px solid #475569;
    border-radius: 50%;
}

.opcao-catalogo-estudo.selecionado .marcador-opcao-catalogo {
    color: #052e16;
    background: #34d399;
    border-color: #34d399;
}

@media (max-width: 900px) {
    .opcoes-catalogo-estudo {
        grid-template-columns: 1fr;
    }
}
