/* Painel da mentora */
.mentor-sidebar {
  background:
    linear-gradient(180deg, #240542, #2E0854 58%, #3A0A67),
    url("../img/circuito2.png") bottom left / 80% auto no-repeat;
}
.mentor-sidebar .cms-brand small { color: rgba(255,255,255,.7); }
.mentor-content { max-width: 1280px; }
.mentor-sidebar .cms-user > span:last-child { min-width: 0; }
.mentor-sidebar .cms-user strong { display: block; max-width: 128px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mentor-demo-note { margin: -.55rem 0 1.25rem; }
.mentor-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.mentor-welcome { min-height: 190px; }
.mentor-welcome h1 { max-width: 38rem; }
.mentor-welcome-meta { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .8rem; }
.mentor-availability-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 30px;
  padding: .25rem .55rem;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.82);
  font-size: 9px;
  font-weight: 600;
}
.mentor-availability-chip .iconify { width: 13px; height: 13px; color: #8FE3FF; }

.mentor-list { display: grid; gap: .6rem; }
.mentor-list-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: .65rem;
  padding: .7rem;
  border: 1px solid var(--border);
  border-radius: .6rem;
  background: var(--white);
}
.mentor-list-item:hover { border-color: rgba(225,21,109,.28); }
.mentor-person-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(225,21,109,.14), rgba(0,168,232,.13));
  color: var(--purple-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
}
.mentor-list-main { min-width: 0; }
.mentor-list-top { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.mentor-list-top strong { color: var(--purple-deep); font-size: 11.5px; line-height: 1.35; }
.mentor-list-top span { color: var(--text-muted); font-size: 9px; }
.mentor-list-main p { margin: .16rem 0 0; color: var(--text-muted); font-size: 10px; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.mentor-list-meta { color: var(--text-muted); font-size: 9px; white-space: nowrap; }
.mentor-list-item .cms-button { white-space: nowrap; }
.mentor-empty {
  padding: 1.2rem;
  border: 1px dashed var(--border);
  border-radius: .6rem;
  color: var(--text-muted);
  font-size: 11px;
  text-align: center;
}

.mentor-session-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: .65rem;
  padding: .65rem;
  border: 1px solid var(--border);
  border-radius: .6rem;
  background: var(--white);
}
.mentor-session-item + .mentor-session-item { margin-top: 0; }
.mentor-session-item .member-date { width: 46px; height: 46px; flex-basis: 46px; }
.mentor-session-main { min-width: 0; }
.mentor-session-main strong { display: block; color: var(--purple-deep); font-size: 11.5px; line-height: 1.35; }
.mentor-session-main span { display: block; margin-top: .15rem; color: var(--text-muted); font-size: 9.5px; }
.mentor-session-main small { display: block; margin-top: .2rem; color: var(--text-muted); font-size: 8.5px; }
.mentor-session-item .cms-button { white-space: nowrap; }

.mentor-availability {
  display: grid;
  gap: .6rem;
}
.mentor-availability-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .8rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--border);
}
.mentor-availability-row:last-child { border-bottom: 0; padding-bottom: 0; }
.mentor-availability-row strong { display: block; color: var(--purple-deep); font-size: 10.5px; }
.mentor-availability-row span { display: block; margin-top: .12rem; color: var(--text-muted); font-size: 9.5px; line-height: 1.45; }
.mentor-availability-row .cms-badge { flex: 0 0 auto; }

.mentor-filterbar { display: grid; grid-template-columns: minmax(16rem, 1fr) auto auto auto; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.mentor-filterbar .cms-search { width: 100%; min-width: 0; }
.mentor-filterbar .cms-search input { width: 100%; }
.mentor-filterbar select { width: 100%; min-height: 38px; padding: .4rem 1.8rem .4rem .55rem; border: 1px solid var(--border); border-radius: .45rem; background: var(--white); color: var(--text); font: inherit; font-size: 10px; }
.mentor-filterbar .cms-helper { margin-left: auto; white-space: nowrap; }

.mentor-request-detail { display: grid; gap: .8rem; }
.mentor-request-message {
  margin: 0;
  padding: .85rem;
  border-left: 3px solid var(--magenta);
  border-radius: 0 .5rem .5rem 0;
  background: #FFF7FB;
  color: var(--text);
  font-size: 11px;
  line-height: 1.65;
}
.mentor-detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; margin: 0; }
.mentor-detail-list div { padding: .6rem; border: 1px solid var(--border); border-radius: .5rem; background: var(--snow); }
.mentor-detail-list dt { color: var(--text-muted); font-size: 8px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.mentor-detail-list dd { margin: .18rem 0 0; color: var(--purple-deep); font-size: 10.5px; line-height: 1.4; }
.mentor-session-notes { min-height: 110px; }
.mentor-drawer-note { margin-top: .7rem; }

.mentor-profile-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); gap: .9rem; align-items: start; }
.mentor-profile-preview { position: sticky; top: 1rem; overflow: hidden; }
.mentor-profile-preview-head { position: relative; min-height: 150px; padding: 1rem; display: flex; align-items: flex-end; background: linear-gradient(145deg, var(--purple-deep), #5B168F 58%, #1189B3); color: var(--white); }
.mentor-profile-preview-head::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 10%, rgba(255,255,255,.18), transparent 45%); pointer-events: none; }
.mentor-profile-preview-photo { position: absolute; right: 1rem; top: 1rem; width: 82px; height: 102px; object-fit: cover; border: 2px solid rgba(255,255,255,.55); border-radius: .55rem; background: rgba(255,255,255,.12); }
.mentor-profile-preview-watermark { position: absolute; right: .4rem; bottom: -.8rem; color: rgba(255,255,255,.12); font-size: 96px; font-weight: 800; line-height: 1; letter-spacing: -.08em; }
.mentor-profile-preview-title { position: relative; z-index: 1; max-width: 62%; }
.mentor-profile-preview-title .cms-badge { margin-bottom: .35rem; }
.mentor-profile-preview-title h2 { margin: 0; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.1; letter-spacing: -.035em; }
.mentor-profile-preview-title p { margin: .3rem 0 0; color: rgba(255,255,255,.74); font-size: 10px; }
.mentor-profile-preview-body { padding: 1rem; }
.mentor-profile-preview-body > p { margin: 0; color: var(--text-muted); font-size: 10px; line-height: 1.65; }
.mentor-profile-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin: .75rem 0 0; padding: 0; list-style: none; }
.mentor-profile-tags li { padding: .22rem .45rem; border-radius: 999px; background: #F1E8FC; color: #6B21A8; font-size: 8px; font-weight: 600; }
.mentor-profile-preview-actions { padding: 0 1rem 1rem; }
.mentor-profile-preview-actions .cms-button { width: 100%; }

.mentor-mobile-nav { display: none; }
.mentor-login-page .member-login-aside { background: linear-gradient(145deg, var(--purple-deep), #4C137C 58%, #0D7FA8); }
.mentor-login-note { margin-top: .8rem; }

@media (max-width: 1100px) {
  .mentor-list-item, .mentor-session-item { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .mentor-list-meta { display: none; }
  .mentor-list-item .cms-badge, .mentor-session-item .cms-badge { grid-column: 3; }
  .mentor-list-item .cms-button, .mentor-session-item .cms-button { grid-column: 3; }
  .mentor-profile-layout { grid-template-columns: 1fr; }
  .mentor-profile-preview { position: static; }
}

@media (max-width: 900px) {
  .mentor-filterbar { grid-template-columns: 1fr 1fr; }
  .mentor-filterbar .cms-search { grid-column: 1 / -1; }
  .mentor-filterbar .cms-helper { grid-column: 1 / -1; margin-left: 0; white-space: normal; }
  .mentor-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mentor-filterbar .cms-helper { width: 100%; margin-left: 0; }
  .mentor-detail-list { grid-template-columns: 1fr; }
  .mentor-welcome { min-height: 0; }
}

@media (max-width: 980px) {
  .mentor-mobile-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mentor-content { padding-bottom: calc(5.4rem + env(safe-area-inset-bottom)); }
}

@media (max-width: 700px) {
  .mentor-filterbar .cms-search { display: flex; }
}

@media (max-width: 620px) {
  .mentor-filterbar { grid-template-columns: 1fr; }
  .mentor-list-item, .mentor-session-item {
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
  }
  .mentor-list-item .cms-badge, .mentor-session-item .cms-badge { grid-column: 2; justify-self: start; }
  .mentor-list-item .cms-button, .mentor-session-item .cms-button { grid-column: 2; justify-self: start; }
  .mentor-list-top { align-items: flex-start; }
  .mentor-profile-preview-photo { width: 68px; height: 84px; }
  .mentor-profile-preview-watermark { font-size: 76px; }
  .mentor-profile-preview-title { max-width: 58%; }
}

@media (max-width: 420px) {
  .mentor-stats { grid-template-columns: 1fr; }
  .mentor-list-item, .mentor-session-item { padding: .6rem; }
}
