.perfil-page {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 50px 60px;
}

/* ── Barra de navegação ───────────────────────── */
.perfil-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 16px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.perfil-nav a {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    padding: 7px 12px;
    border-radius: 8px;
    transition: background .15s, color .15s;
    white-space: nowrap;
}

.perfil-nav a:hover { background: #f3f4f6; color: #142F3F; }

.perfil-nav a.active {
    background: #e8f4ec;
    color: #1a8046;
}

.perfil-nav .nav-sair {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.perfil-nav .btn-sair {
    appearance: none;
    border: 1px solid #fca5a5;
    background: #fff5f5;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.perfil-nav .btn-sair:hover { background: #fee2e2; }

/* ── Card principal ───────────────────────────── */
.perfil-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
}

/* ── Cabeçalho verde ──────────────────────────── */
.perfil-hero {
    padding: 36px 32px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.perfil-avatar-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #e8f4ec;
    border: 3px solid #c0dbc8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a8046;
    font-size: 30px;
    flex-shrink: 0;
}

.perfil-avatar-wrap {
    position: relative;
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    cursor: pointer;
}

.perfil-avatar-wrap .perfil-avatar-icon,
.perfil-avatar-wrap .perfil-avatar-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #c0dbc8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.perfil-avatar-img {
    display: block;
}

.perfil-avatar-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    opacity: 0;
    transition: opacity .2s;
}

.perfil-avatar-wrap:hover .perfil-avatar-overlay { opacity: 1; }

.perfil-hero-info h1 {
    color: #142F3F;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.perfil-hero-info p {
    color: #1a8046;
    font-size: 13px;
    margin: 0;
}

/* ── Corpo do card ────────────────────────────── */
.perfil-body {
    padding: 32px;
}

.perfil-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #1a8046;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8f4ec;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 6px;
}

.field input,
.field select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #142F3F;
    background: #f9fafb;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}

.field input:focus,
.field select:focus {
    outline: none;
    border-color: #1a8046;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26,128,70,.1);
}

/* ── Permissões ───────────────────────────────── */
.permissions-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 24px;
    margin-top: 8px;
}

.permissions-label {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 14px;
}

.permissions-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.permissions-tags li {
    list-style: none;
    background: #e8f4ec;
    color: #1a8046;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid #c0dbc8;
}

.permissions-empty {
    color: #9ca3af;
    font-size: 13px;
}

/* ── Alterar Senha ────────────────────────────── */
.senha-form {
    max-width: 480px;
}

.field-error {
    margin: 6px 0 0;
    font-size: 12px;
    color: #dc3545;
    display: flex;
    align-items: center;
    gap: 5px;
}

.field-hint {
    margin: 6px 0 0;
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.5;
}

.btn-salvar-senha {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 28px;
    background: #1a8046;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s;
}

.btn-salvar-senha:hover { background: #166b3a; }

.cadastro-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.cadastro-link-login {
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
    font-weight: 600;
    transition: color .15s;
}

.cadastro-link-login:hover { color: #1a8046; }

.perfil-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}

.perfil-alert-success {
    background: #e8f4ec;
    color: #1a8046;
    border: 1px solid #c0dbc8;
}

.perfil-alert-danger {
    background: #fff5f5;
    color: #b91c1c;
    border: 1px solid #fecdd3;
}

/* ── Gerenciar Alunos ─────────────────────────── */
.gerenciar-vagas-badge {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #e8f4ec;
    border: 1px solid #c0dbc8;
    border-radius: 12px;
    padding: 10px 20px;
    min-width: 100px;
    flex-shrink: 0;
}

.gerenciar-vagas-badge.gerenciar-vagas-lotado {
    background: #fff5f5;
    border-color: #fecdd3;
}

.gerenciar-vagas-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a8046;
    line-height: 1;
}

.gerenciar-vagas-badge.gerenciar-vagas-lotado .gerenciar-vagas-num {
    color: #b91c1c;
}

.gerenciar-vagas-num small {
    font-size: 0.85rem;
    font-weight: 600;
    color: #9ca3af;
}

.gerenciar-vagas-label {
    font-size: 11px;
    font-weight: 700;
    color: #1a8046;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.gerenciar-vagas-badge.gerenciar-vagas-lotado .gerenciar-vagas-label {
    color: #b91c1c;
}

.gerenciar-toolbar {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 4px;
}

.gerenciar-form-inline {
    flex: 1;
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.gerenciar-campo {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gerenciar-campo label {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.gerenciar-campo input {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #142F3F;
    background: #fff;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}

.gerenciar-campo input:focus {
    outline: none;
    border-color: #1a8046;
    box-shadow: 0 0 0 3px rgba(26,128,70,.1);
}

.gerenciar-btn-matricular {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #1a8046;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: background .2s;
}

.gerenciar-btn-matricular:hover { background: #166b3a; }

.gerenciar-btn-buscar {
    width: 44px;
    height: 44px;
    background: #142F3F;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    flex-shrink: 0;
}

.gerenciar-btn-buscar:hover { background: #1a4a6b; }

.gerenciar-divisor {
    width: 1px;
    height: 44px;
    background: #e5e7eb;
    flex-shrink: 0;
}

.gerenciar-bloqueado {
    opacity: .5;
    pointer-events: none;
}

.gerenciar-tabela-wrapper {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.gerenciar-tabela {
    width: 100%;
    border-collapse: collapse;
}

.gerenciar-tabela th {
    background: #f9fafb;
    padding: 14px 18px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .6px;
    border-bottom: 2px solid #e8f4ec;
}

.gerenciar-tabela td {
    padding: 16px 18px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #142F3F;
}

.gerenciar-tabela tbody tr:last-child td {
    border-bottom: none;
}

.gerenciar-tabela tbody tr:hover td {
    background: #f9fafb;
}

.gerenciar-info-aluno {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gerenciar-info-aluno strong { font-weight: 600; color: #142F3F; }
.gerenciar-info-aluno small  { color: #9ca3af; font-size: 12px; }

.gerenciar-col-center { text-align: center; }

.gerenciar-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .15s;
}

.gerenciar-status:hover { opacity: .8; }

.gerenciar-status-ativo   { background: #dcfce7; color: #166534; }
.gerenciar-status-inativo { background: #fee2e2; color: #991b1b; }

.gerenciar-btn-remover {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #fff5f5;
    color: #dc3545;
    text-decoration: none;
    font-size: 15px;
    transition: background .15s;
}

.gerenciar-btn-remover:hover { background: #fee2e2; }

.gerenciar-tabela-vazia {
    text-align: center;
    padding: 40px 20px !important;
    color: #9ca3af;
}

.gerenciar-tabela-vazia i { font-size: 36px; display: block; margin-bottom: 10px; color: #d1d5db; }
.gerenciar-tabela-vazia p { margin: 0; font-size: 14px; }

.gerenciar-btn-voltar {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    background: #142F3F;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background .2s;
}

.gerenciar-btn-voltar:hover { background: #1a4a6b; color: #fff; }

@media (max-width: 700px) {
    .gerenciar-toolbar { flex-direction: column; align-items: stretch; }
    .gerenciar-divisor { display: none; }
    .gerenciar-vagas-badge { margin-left: 0; align-self: flex-start; }
}

/* ── Tutores ──────────────────────────────────── */
.tutores-search {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.tutores-search-inp {
    flex: 1;
    max-width: 360px;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #142F3F;
    background: #f9fafb;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}

.tutores-search-inp:focus {
    outline: none;
    border-color: #1a8046;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26,128,70,.1);
}

.tutores-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #1a8046;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s;
}

.tutores-search-btn:hover { background: #166b3a; }

.tutores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
}

.tutor-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
    transition: transform .2s, box-shadow .2s;
}

.tutor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

.tutor-card-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    flex-shrink: 0;
}

.tutor-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tutor-card-nome {
    font-size: 0.95rem;
    font-weight: 700;
    color: #142F3F;
    margin: 0 0 4px;
    text-align: center;
}

.tutor-card-titulo {
    font-size: 0.78rem;
    color: #1a8046;
    font-weight: 600;
    margin: 0 0 10px;
    text-align: center;
}

.tutor-card-bio {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 10px;
    max-height: 80px;
}

.tutor-card-bio::-webkit-scrollbar { width: 4px; }
.tutor-card-bio::-webkit-scrollbar-thumb { background: #c0dbc8; border-radius: 4px; }

.tutor-card-bio p {
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.45;
    margin: 0;
}

.tutor-card-link {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    color: #1a8046;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    margin-top: auto;
    transition: color .15s;
}

.tutor-card-link:hover { color: #166b3a; }

.tutores-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 50px 20px;
    color: #9ca3af;
    text-align: center;
}

.tutores-empty i { font-size: 48px; color: #d1d5db; }
.tutores-empty p  { font-size: 15px; margin: 0; }

.tutores-paginacao {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
    cursor: pointer;
}

.pg-btn:hover {
    background: #1a8046;
    border-color: #1a8046;
    color: #fff;
}

.pg-btn-active {
    background: #e8f4ec;
    border-color: #1a8046;
    color: #1a8046;
    cursor: default;
}

/* ── Suporte / Contato ────────────────────────── */
.suporte-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.suporte-info-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.suporte-info-card {
    border: 1px solid #c0dbc8;
    border-radius: 10px;
    padding: 20px;
    background: #f9fafb;
}

.suporte-icn {
    color: #1a8046;
    font-size: 22px;
    margin-bottom: 10px;
}

.suporte-info-card h3 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    color: #142F3F;
}

.suporte-info-card p {
    font-size: 13px;
    color: #6b7280;
    margin: 4px 0;
    line-height: 1.5;
}

.btn-mapa {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    padding: 5px 14px;
    border: 1px solid #1a8046;
    border-radius: 6px;
    text-decoration: none;
    color: #1a8046;
    font-size: 12px;
    font-weight: 600;
    transition: background .15s;
}

.btn-mapa:hover { background: #e8f4ec; color: #1a8046; }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.suporte-inp {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #142F3F;
    background: #f9fafb;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}

.suporte-inp:focus {
    outline: none;
    border-color: #1a8046;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26,128,70,.1);
}

.suporte-textarea {
    min-height: 120px;
    resize: vertical;
}

.btn-enviar {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 28px;
    background: #1a8046;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s;
}

.btn-enviar:hover { background: #166b3a; }

/* ── Responsivo ───────────────────────────────── */
@media (max-width: 640px) {
    .perfil-hero { padding: 24px 20px; }
    .perfil-body { padding: 24px 18px; }
    .form-grid { grid-template-columns: 1fr; gap: 0; }
    .perfil-nav .nav-sair { margin-left: 0; }
    .suporte-grid { grid-template-columns: 1fr; gap: 24px; }
    .tutores-grid { grid-template-columns: 1fr 1fr; }
    .tutores-search-inp { max-width: 100%; }
}