/* ================================================================
   PAINEL LUSCA v4 — dashboard do aluno (design "Painel LUSCA v3")
   Topbar única (sem abas), grid principal + rail de 330px,
   missões dentro do hero, PRATIQUE com cards grandes + secundários,
   módulos em lista compacta, rail com perfil/ranking/dica/reis.
   Escopo: #screen-dashboard, prefixo pv4-.
   ================================================================ */

#screen-dashboard {
  --pv4-accent: #FBBF24;
  height: auto !important;
  min-height: 100vh;
  overflow: visible !important;
  display: block;
  background:
    radial-gradient(820px 520px at 14% -6%, rgba(56,130,246,.16), transparent 60%),
    radial-gradient(760px 560px at 108% 6%, rgba(34,211,238,.10), transparent 55%),
    linear-gradient(160deg, #0B1330, #0A1026);
  color: #E7EEFF;
  font-family: 'Inter', sans-serif;
  padding: 0 0 70px !important;
}
#screen-dashboard:not(.active) { display: none !important; }
#screen-dashboard.active { display: block !important; }

@keyframes pv4PopIn { from { transform: scale(.97); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes pv4BotFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ═══════════ TOPBAR ═══════════ */
.pv4-topbar {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(180deg, #0E1736, #0B1228);
  border-bottom: 1px solid rgba(120,160,255,.14);
}
.pv4-topbar-inner {
  max-width: 1320px; margin: 0 auto; padding: 10px 22px;
  display: flex; align-items: center; gap: 14px;
}
.pv4-logo {
  display: inline-flex; width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, #2563EB, #4F46E5);
  align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(37,99,235,.4);
  font-size: 19px; color: #fff; flex-shrink: 0;
}
.pv4-brand {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 900;
  font-size: 17px; letter-spacing: .02em; color: #fff;
}
.pv4-brand span { color: #5B8CFF; }
.pv4-topbar-inner .spacer { flex: 1; }

.pv4-pts-chip {
  display: flex; align-items: center; gap: 8px;
  background: rgba(251,191,36,.10); border: 1px solid rgba(251,191,36,.32);
  border-radius: 99px; padding: 6px 15px;
}
.pv4-pts-chip iconify-icon { color: var(--pv4-accent); font-size: 14px; }
.pv4-pts-chip b {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 900;
  font-size: 15px; color: var(--pv4-accent);
}
.pv4-pts-chip small { font-size: 9px; font-weight: 800; letter-spacing: .12em; color: rgba(251,191,36,.7); }

.pv4-lp-chip {
  display: flex; align-items: center; gap: 7px;
  background: rgba(120,160,255,.08); border: 1px solid rgba(120,160,255,.25);
  border-radius: 99px; padding: 6px 13px;
}
.pv4-lp-chip iconify-icon { color: #7DA6FF; font-size: 14px; }
.pv4-lp-chip b { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 900; font-size: 14px; color: #A9C4FF; }
.pv4-lp-chip small { font-size: 9px; font-weight: 800; letter-spacing: .12em; color: rgba(125,166,255,.7); }

.pv4-profile {
  display: flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(120,160,255,.18);
  border-radius: 99px; padding: 4px 14px 4px 4px;
}
.pv4-profile img {
  width: 30px; height: 30px; border-radius: 50%; object-fit: cover;
  background: linear-gradient(135deg, #FCD34D, #F59E0B);
}
.pv4-profile-meta { display: flex; flex-direction: column; line-height: 1.15; }
.pv4-profile-meta b { font-weight: 800; font-size: 12.5px; color: #fff; }
.pv4-profile-meta span { font-size: 10px; color: #7DA6FF; font-weight: 700; }

.pv4-sair {
  font-size: 12.5px; font-weight: 800; color: #FDA4AF; text-decoration: none;
  padding: 8px 14px; border-radius: 10px; border: 1px solid rgba(253,164,175,.25);
  background: rgba(253,164,175,.06); cursor: pointer; font-family: inherit;
}

/* ═══════════ PÁGINA / GRID ═══════════ */
.pv4-page {
  max-width: 1320px; min-height: calc(100vh - 60px);
  margin: 0 auto; padding: 22px 22px 0;
}
.pv4-main-grid {
  display: grid; grid-template-columns: minmax(0,1fr) 330px;
  gap: 20px; align-items: start;
}
.pv4-col-main { display: flex; flex-direction: column; gap: 22px; align-self: stretch; min-width: 0; }
.pv4-rail { min-width: 0; }

/* ═══════════ HERO ═══════════ */
.pv4-hero {
  position: relative; overflow: hidden; border-radius: 24px; padding: 28px 32px;
  background: linear-gradient(120deg, #13205A 0%, #1B2E7A 45%, #101A44 100%);
  border: 1px solid rgba(120,160,255,.18);
}
.pv4-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(560px 240px at 82% 50%, rgba(56,130,246,.35), transparent 60%);
  pointer-events: none;
}
.pv4-hero-flex { position: relative; display: flex; align-items: center; gap: 20px; }
.pv4-hero-tx { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.pv4-hero-tx .dhero-eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: .28em; color: #7DD3FC;
}
.pv4-hero-tx h1 {
  margin: 0; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 900;
  font-size: 34px; line-height: .98; letter-spacing: -.02em; color: #fff;
  text-transform: uppercase;
}
.pv4-hero-tx h1 span { color: var(--pv4-accent); }
.pv4-hero-progress { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 400px; }
.pv4-hero-progress .track {
  flex: 1; height: 8px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden;
}
.pv4-hero-progress .track i {
  display: block; height: 100%; border-radius: 99px; background: var(--pv4-accent);
  width: 0%; transition: width .5s ease;
}
.pv4-hero-progress span { font-size: 12px; font-weight: 800; color: var(--pv4-accent); white-space: nowrap; }
.pv4-hero-bot {
  width: 150px; height: 150px; object-fit: contain; flex-shrink: 0;
  filter: drop-shadow(0 16px 26px rgba(34,120,240,.5));
  animation: pv4BotFloat 4s ease-in-out infinite;
}

/* Missões dentro do hero (conteúdo vem de renderAulaHoje) */
.pv4-missions {
  position: relative; display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px; margin-top: 20px;
}
.pv4-mission {
  display: flex; align-items: center; gap: 14px; padding: 13px 16px;
  border-radius: 14px; background: rgba(8,13,35,.55);
  border: 1px solid rgba(120,160,255,.16); color: #E7EEFF;
  transition: border-color .13s ease, background .13s ease;
}
.pv4-mission:hover { border-color: rgba(125,211,252,.5); background: rgba(8,13,35,.75); }
.pv4-mission .m-icone {
  display: inline-flex; width: 38px; height: 38px; border-radius: 11px;
  align-items: center; justify-content: center; flex-shrink: 0; font-size: 20px;
}
.pv4-mission .m-info { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pv4-mission .m-nome { font-weight: 800; font-size: 14px; color: #fff; }
.pv4-mission .m-nome.done { color: #34D399; text-decoration: line-through; }
.pv4-mission .m-desc { font-size: 12px; color: rgba(210,225,255,.6); font-weight: 500; }
.pv4-mission .m-tag { font-size: 10px; font-weight: 700; }
.pv4-mission .m-pts {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 12.5px; font-weight: 900;
  color: #FCD34D; white-space: nowrap;
}
.pv4-mission .m-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px;
  border-radius: 10px; background: linear-gradient(135deg, #22C55E, #15803D);
  color: #fff; font-weight: 800; font-size: 12.5px; border: none; cursor: pointer;
  font-family: inherit; white-space: nowrap;
}
.pv4-mission .m-entregar {
  margin-top: 6px; background: none; border: 1px solid rgba(120,160,255,.3);
  border-radius: 8px; padding: 4px 10px; font-size: 11px; color: rgba(210,225,255,.6);
  cursor: pointer; font-family: inherit;
}
.pv4-mission .m-status { font-size: 12px; font-weight: 800; white-space: nowrap; }

/* ═══════════ SEÇÕES ═══════════ */
.pv4-sec { display: flex; flex-direction: column; gap: 12px; }
.pv4-sec-head { display: flex; align-items: center; gap: 10px; }
.pv4-sec-head h2 {
  margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .22em;
  color: rgba(170,195,245,.78);
}
.pv4-sec-head .linha { flex: 1; height: 1px; background: rgba(120,160,255,.14); }
.pv4-sec-head .extra { font-size: 11.5px; font-weight: 700; color: #7DA6FF; }

/* PRATIQUE: cards principais */
.pv4-prat-main {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}
.pv4-prat-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px;
  padding: 20px 20px 16px; border-radius: 18px; color: #E7EEFF; text-align: left;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  box-shadow: 0 12px 30px -16px rgba(0,0,0,.7);
  transition: transform .14s ease, border-color .14s ease;
  animation: pv4PopIn .3s ease both;
}
.pv4-prat-card:hover { transform: translateY(-4px); border-color: rgba(125,211,252,.6) !important; }
.pv4-prat-card .glow { position: absolute; inset: 0; pointer-events: none; }
.pv4-prat-card .topo { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pv4-prat-card .tit { display: flex; flex-direction: column; gap: 3px; }
.pv4-prat-card .tit b {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 900; font-size: 18px; color: #fff;
}
.pv4-prat-card .tit small { font-size: 12px; color: rgba(210,225,255,.65); font-weight: 500; line-height: 1.5; }
.pv4-prat-card .img {
  width: 64px; height: 56px; flex-shrink: 0; object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.4));
}
.pv4-prog-art {
  display: inline-flex; width: 64px; height: 56px; flex-shrink: 0;
  align-items: center; justify-content: center; border-radius: 13px;
  color: #fff; font-size: 35px;
  background: linear-gradient(145deg, #33447A, #151B38);
  border: 1px solid rgba(199,210,254,.24);
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.4));
}
.pv4-prat-card .cta {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; margin-top: auto; padding: 10px 0; border-radius: 11px;
  color: #fff; font-weight: 800; font-size: 13px;
}
.pv4-prat-card.roxo { background: linear-gradient(150deg, #1B1B4D, #141238); border-color: rgba(167,139,250,.35); }
.pv4-prat-card.roxo .glow { background: radial-gradient(300px 140px at 85% 15%, rgba(124,58,237,.3), transparent 65%); }
.pv4-prat-card.roxo .cta { background: linear-gradient(135deg, #A78BFA, #7C3AED); }
.pv4-prat-card.verde { background: linear-gradient(150deg, #0E2E22, #0C1F2E); border-color: rgba(74,222,128,.32); }
.pv4-prat-card.verde .glow { background: radial-gradient(300px 140px at 85% 15%, rgba(34,197,94,.25), transparent 65%); }
.pv4-prat-card.verde .cta { background: linear-gradient(135deg, #22C55E, #15803D); }
.pv4-prat-card.azul { background: linear-gradient(150deg, #12275A, #0E1B44); border-color: rgba(96,165,250,.35); }
.pv4-prat-card.azul .glow { background: radial-gradient(300px 140px at 85% 15%, rgba(59,130,246,.3), transparent 65%); }
.pv4-prat-card.azul .cta { background: linear-gradient(135deg, #3B82F6, #1D4ED8); }
.pv4-prat-card.indigo { background: linear-gradient(150deg, #251B4D, #171238); border-color: rgba(129,140,248,.35); }
.pv4-prat-card.indigo .glow { background: radial-gradient(300px 140px at 85% 15%, rgba(99,102,241,.3), transparent 65%); }
.pv4-prat-card.indigo .cta { background: linear-gradient(135deg, #818CF8, #4F46E5); }

/* PRATIQUE: secundários */
.pv4-prat-sec {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px;
}
.pv4-sec-card {
  display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 15px;
  background: linear-gradient(180deg, #101A3E, #0D1531);
  border: 1px solid rgba(120,160,255,.14); color: #E7EEFF; text-align: left;
  cursor: pointer; font-family: inherit;
  box-shadow: 0 12px 30px -16px rgba(0,0,0,.7);
  transition: transform .13s ease, border-color .13s ease;
}
.pv4-sec-card:hover { transform: translateY(-3px); border-color: rgba(125,211,252,.5); }
.pv4-sec-card .icone {
  display: inline-flex; width: 38px; height: 38px; border-radius: 11px;
  align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px;
}
.pv4-sec-card .info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pv4-sec-card .info b {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 13.5px; color: #fff;
}
.pv4-sec-card .info small { font-size: 11px; color: rgba(210,225,255,.55); font-weight: 500; }

/* ═══════════ MÓDULOS: LISTA COMPACTA ═══════════ */
.pv4-mod-lista {
  border-radius: 16px; background: linear-gradient(180deg, #101A3E, #0D1531);
  border: 1px solid rgba(120,160,255,.14);
  box-shadow: 0 12px 30px -16px rgba(0,0,0,.7); overflow: hidden;
  display: flex; flex-direction: column;
}
.pv4-mod-row {
  display: flex; align-items: center; gap: 13px; padding: 12px 18px;
  border-bottom: 1px solid rgba(120,160,255,.1); color: #E7EEFF;
  cursor: pointer; background: none; border-left: none; border-right: none; border-top: none;
  font-family: inherit; text-align: left; width: 100%;
  transition: background .12s ease;
}
.pv4-mod-row:last-child { border-bottom: none; }
.pv4-mod-row:hover { background: rgba(120,160,255,.06); }
.pv4-mod-row .icone {
  display: inline-flex; width: 32px; height: 32px; border-radius: 9px;
  align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px;
}
.pv4-mod-row .nome {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 13.5px;
  color: #fff; width: 130px; flex-shrink: 0;
}
.pv4-mod-row .track { flex: 1; height: 6px; border-radius: 99px; background: rgba(255,255,255,.09); overflow: hidden; }
.pv4-mod-row .track i { display: block; height: 100%; border-radius: 99px; }
.pv4-mod-row .estado {
  font-size: 10px; font-weight: 800; letter-spacing: .08em;
  border-radius: 99px; padding: 4px 10px; flex-shrink: 0;
}

/* ═══════════ RAIL ═══════════ */
.pv4-rail { display: flex; flex-direction: column; gap: 16px; align-self: stretch; }
.pv4-card {
  border-radius: 18px; border: 1px solid rgba(120,160,255,.16);
  background: linear-gradient(180deg, #101A3E, #0D1531);
  padding: 18px 20px; display: flex; flex-direction: column; gap: 12px;
}

/* Perfil */
.pv4-perfil {
  position: relative; overflow: hidden; border-color: rgba(251,191,36,.25);
  padding: 20px; align-items: center; gap: 10px; text-align: center;
}
.pv4-perfil::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(280px 130px at 50% 0%, rgba(251,191,36,.13), transparent 65%);
  pointer-events: none;
}
.pv4-perfil-avatar {
  position: relative; width: 96px; height: 96px; border-radius: 50%; padding: 4px;
  box-sizing: border-box; display: flex;
  background: conic-gradient(from 200deg, #FCD34D, #FDE68A, #F59E0B, #FCD34D);
  box-shadow: 0 0 26px rgba(251,191,36,.35);
  cursor: pointer;
}
.pv4-perfil-avatar img {
  flex: 1; width: 100%; border-radius: 50%; border: 4px solid #0D1531;
  box-sizing: border-box; object-fit: cover; background: linear-gradient(135deg, #3B82F6, #1D4ED8);
}
.pv4-perfil-nome {
  position: relative; font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 900; font-size: 17px; color: #fff;
}
.pv4-perfil-titulo {
  position: relative; font-size: 11.5px; font-weight: 800; padding: 4px 13px;
  border-radius: 99px; background: rgba(251,191,36,.12);
  border: 1px solid rgba(251,191,36,.3); color: #FDE68A;
}
.pv4-medals { position: relative; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pv4-medal {
  display: inline-flex; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(59,130,246,.14); border: 1px solid rgba(96,165,250,.4);
  align-items: center; justify-content: center; font-size: 16px;
}
.pv4-pts-row { position: relative; display: flex; align-items: baseline; gap: 8px; }
.pv4-pts-row b {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 900; font-size: 32px;
  color: var(--pv4-accent);
}
.pv4-pts-row small { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: rgba(251,191,36,.7); }
.pv4-pts-row span { font-size: 11.5px; font-weight: 800; color: #7DA6FF; }
.pv4-nivel-bar {
  position: relative; width: 100%; height: 7px; border-radius: 99px;
  background: rgba(255,255,255,.09); overflow: hidden;
}
.pv4-nivel-bar i {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #3B82F6, #7C3AED); width: 0%;
  transition: width .5s ease;
}
.pv4-nivel-sub { position: relative; font-size: 11.5px; color: rgba(210,225,255,.55); font-weight: 600; }
.pv4-lp-sub { position: relative; font-size: 11px; color: rgba(210,225,255,.5); font-weight: 700; display: flex; align-items: center; gap: 5px; }
.pv4-lp-sub b { color: #A9C4FF; }
.pv4-btn-loja {
  position: relative; width: 100%; box-sizing: border-box; text-align: center;
  font-size: 12.5px; font-weight: 800; color: #FDE68A; text-decoration: none;
  padding: 9px; border-radius: 10px; border: 1px solid rgba(251,191,36,.3);
  background: rgba(251,191,36,.08); display: flex; align-items: center;
  justify-content: center; gap: 7px; cursor: pointer; font-family: inherit;
}

/* Ranking */
.pv4-rank-head { display: flex; align-items: center; justify-content: space-between; }
.pv4-rank-head .t { font-size: 10.5px; font-weight: 800; letter-spacing: .2em; color: rgba(170,195,245,.78); }
.pv4-rank-head .vivo { font-size: 10px; font-weight: 700; color: #34D399; display: flex; align-items: center; gap: 5px; }
.pv4-rank-head .vivo i { width: 6px; height: 6px; border-radius: 50%; background: #34D399; display: inline-block; }
.pv4-rank-rows { display: flex; flex-direction: column; gap: 7px; }
.pv4-rank-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid transparent;
}
.pv4-rank-row.eu { background: rgba(251,191,36,.08); border-color: rgba(251,191,36,.35); }
.pv4-rank-row .pos {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 900; font-size: 13px;
  color: rgba(170,195,245,.6); width: 18px; text-align: center;
}
.pv4-rank-row .pos.ouro { color: #FCD34D; }
.pv4-rank-row .pos.top { color: #C7D6F5; }
.pv4-rank-row .avatar {
  display: inline-flex; width: 28px; height: 28px; border-radius: 50%;
  align-items: center; justify-content: center; font-weight: 800; font-size: 11.5px; color: #0B1330;
  overflow: hidden;
}
.pv4-rank-row .avatar img { width: 100%; height: 100%; object-fit: cover; }
.pv4-rank-row .nome {
  font-weight: 700; font-size: 13px; flex: 1; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pv4-rank-row .pts { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 900; font-size: 13px; color: #FCD34D; }
.pv4-rank-row .delta { font-size: 10px; font-weight: 800; width: 14px; text-align: center; }
.pv4-rank-row .delta.up { color: #34D399; }
.pv4-rank-row .delta.down { color: #FB7185; }
.pv4-rank-row .delta.same { color: rgba(170,195,245,.42); }
.pv4-btn-rank {
  text-align: center; font-size: 12.5px; font-weight: 800; color: #7DA6FF;
  padding: 9px; border-radius: 10px; border: 1px solid rgba(120,160,255,.22);
  background: rgba(120,160,255,.06); cursor: pointer; font-family: inherit;
}

/* Dica do Robô */
.pv4-dica { border-color: rgba(56,130,246,.25); padding: 14px 20px; flex-direction: row; align-items: center; gap: 13px; }
.pv4-dica img { width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; }
.pv4-dica .txt { display: flex; flex-direction: column; gap: 4px; }
.pv4-dica .txt .t { font-size: 10.5px; font-weight: 800; letter-spacing: .2em; color: #7DD3FC; }
.pv4-dica .txt p { margin: 0; font-size: 12.5px; color: rgba(210,225,255,.7); font-weight: 500; line-height: 1.55; }

/* Salão dos Reis */
.pv4-reis {
  position: relative; overflow: hidden; border-color: rgba(251,191,36,.25);
  padding: 12px 20px; gap: 8px; flex: 1; justify-content: center; min-height: 0;
}
.pv4-reis::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(240px 110px at 50% 0%, rgba(251,191,36,.1), transparent 65%);
  pointer-events: none;
}
.pv4-reis-head { position: relative; display: flex; align-items: center; justify-content: space-between; }
.pv4-reis-head .t { font-size: 10.5px; font-weight: 800; letter-spacing: .2em; color: rgba(170,195,245,.78); }
.pv4-reis-dots { display: flex; gap: 4px; }
.pv4-reis-dots i {
  width: 5px; height: 5px; border-radius: 50%; background: rgba(170,195,245,.25);
  display: inline-block; transition: background .3s ease;
}
.pv4-reis-dots i.on { background: #FCD34D; }
.pv4-reis-body {
  position: relative; flex: 1; display: flex; flex-direction: column;
  justify-content: center; gap: 9px; width: 100%; box-sizing: border-box;
}
.pv4-rei-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pv4-rei-avatar {
  display: inline-flex; width: 42px; height: 42px; border-radius: 50%; padding: 2px;
  background: conic-gradient(from 200deg, #FCD34D, #FDE68A, #F59E0B, #FCD34D);
  flex-shrink: 0; box-sizing: border-box;
}
.pv4-rei-avatar span {
  display: flex; flex: 1; border-radius: 50%; border: 2px solid #0D1531;
  box-sizing: border-box; align-items: center; justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 900; font-size: 14px; color: #0B1330;
}
.pv4-rei-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; overflow: hidden; }
.pv4-rei-tit {
  display: flex; align-items: center; gap: 5px; font-size: 9.5px; font-weight: 800;
  letter-spacing: .1em; color: #FDE68A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pv4-rei-nome {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 900; font-size: 15px;
  color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pv4-rei-stat {
  display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px;
  background: rgba(251,191,36,.07); border: 1px solid rgba(251,191,36,.16);
  font-size: 11px; color: rgba(210,225,255,.75); font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ═══════════ RODAPÉ ═══════════ */
.pv4-footer {
  margin-top: 40px; padding: 22px 0 0; border-top: 1px solid rgba(120,160,255,.12);
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
}
.pv4-footer .marca { display: flex; align-items: center; gap: 8px; }
.pv4-footer .marca .mini {
  display: inline-flex; width: 24px; height: 24px; border-radius: 7px;
  background: linear-gradient(135deg, #2563EB, #4F46E5);
  align-items: center; justify-content: center; color: #fff; font-size: 12px;
}
.pv4-footer .marca b { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 900; font-size: 13px; color: #fff; }
.pv4-footer .marca b span { color: #5B8CFF; }
.pv4-footer .site { font-size: 12px; font-weight: 600; color: rgba(170,195,245,.6); }
.pv4-footer .site a { color: #7DA6FF; text-decoration: none; }
.pv4-footer .sub { font-size: 11px; font-weight: 500; color: rgba(170,195,245,.4); }

/* Seções legadas abaixo do painel (prova, jogos, ranking completo) */
.pv4-legado { display: none !important; }
.pv4-plan-extra {
  grid-column: 1/-1; padding: 13px 16px; border-radius: 14px;
  background: rgba(15,23,42,.72); border: 1px solid rgba(148,163,184,.22);
  color: rgba(210,225,255,.78); font-size: 12px; line-height: 1.5;
}
.pv4-plan-extra b { color: #7DD3FC; }

/* ═══════════ MODAIS DE RANKING E JOGOS ═══════════ */
body.pv4-modal-open { overflow: hidden; }
.pv4-modal {
  position: fixed; inset: 0; z-index: 10020; display: none;
  align-items: flex-start; justify-content: center; overflow-y: auto;
  padding: 34px 18px; box-sizing: border-box;
  background: rgba(3,7,20,.82); backdrop-filter: blur(12px);
}
.pv4-modal.aberto { display: flex; animation: pv4ModalFade .18s ease; }
@keyframes pv4ModalFade { from { opacity: 0; } to { opacity: 1; } }
.pv4-modal-panel {
  width: min(920px, 100%); border-radius: 22px; padding: 24px;
  box-sizing: border-box; color: #E7EEFF;
  background: linear-gradient(155deg,#111D43,#0B1431);
  border: 1px solid rgba(120,160,255,.24);
  box-shadow: 0 34px 90px rgba(0,0,0,.55);
  animation: pv4ModalUp .22s ease;
}
@keyframes pv4ModalUp {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: none; }
}
.pv4-modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 2px 2px 20px; border-bottom: 1px solid rgba(120,160,255,.14);
}
.pv4-modal-head .eyebrow {
  display: flex; align-items: center; gap: 7px; color: #7DD3FC;
  font-size: 10px; font-weight: 900; letter-spacing: .2em;
}
.pv4-modal-head h2 {
  margin: 6px 0 3px; color: #fff; font-family: 'Plus Jakarta Sans',sans-serif;
  font-size: 26px; line-height: 1.1;
}
.pv4-modal-head p { margin: 0; color: rgba(210,225,255,.6); font-size: 12.5px; }
.pv4-modal-head .acoes { display: flex; align-items: center; gap: 8px; }
.pv4-modal-close,.pv4-modal-sync {
  border: 1px solid rgba(120,160,255,.22); border-radius: 10px;
  background: rgba(120,160,255,.07); color: #A9C4FF;
  min-height: 38px; padding: 0 12px; cursor: pointer; font: 800 12px Inter,sans-serif;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
}
.pv4-modal-close { width: 38px; padding: 0; font-size: 18px; color: #E7EEFF; }
.pv4-modal-close:hover,.pv4-modal-sync:hover {
  border-color: rgba(125,211,252,.55); background: rgba(120,160,255,.13);
}
.pv4-games-grid {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding-top: 18px;
}
.pv4-games-grid button {
  min-height: 130px; padding: 18px; border-radius: 16px; text-align: left;
  border: 1px solid rgba(120,160,255,.16); color: #E7EEFF; cursor: pointer;
  background: linear-gradient(145deg,#132148,#0D1735);
  display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto;
  column-gap: 13px; align-items: center; font-family: inherit;
}
.pv4-games-grid button:hover { transform: translateY(-2px); border-color: rgba(125,211,252,.5); }
.pv4-games-grid iconify-icon {
  grid-row: 1/3; width: 48px; height: 48px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center; font-size: 25px;
  color: #7DD3FC; background: rgba(56,189,248,.12);
}
.pv4-games-grid b { color: #fff; font-size: 15px; }
.pv4-games-grid small {
  color: rgba(210,225,255,.58); font-size: 11.5px; line-height: 1.45;
}

/* ═══════════ RESPONSIVO ═══════════ */
@media (max-width: 1100px) {
  .pv4-main-grid { grid-template-columns: 1fr; }
  .pv4-prat-main { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .pv4-missions { grid-template-columns: 1fr; }
  .pv4-prat-main { grid-template-columns: 1fr; }
  .pv4-hero-flex { flex-direction: column-reverse; text-align: center; }
  .pv4-hero-tx { align-items: center; }
  .pv4-page { padding-left: 14px; padding-right: 14px; }
  .pv4-topbar-inner { padding-left: 14px; padding-right: 14px; }
  .pv4-brand { display: none; }
  .pv4-profile-meta { display: none; }
  .pv4-lp-chip { display: none; }
  .pv4-modal { padding: 12px; }
  .pv4-modal-panel { padding: 18px 14px; border-radius: 17px; }
  .pv4-modal-head h2 { font-size: 21px; }
  .pv4-modal-sync span { display: none; }
  .pv4-games-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .pv4-page { padding: 14px 10px 0; }
  .pv4-topbar-inner { padding: 8px 10px; gap: 8px; }
  .pv4-pts-chip { padding: 6px 9px; }
  .pv4-pts-chip small, .pv4-profile { display: none; }
  .pv4-sair { min-width: 44px; min-height: 44px; padding: 0; display: grid; place-items: center; font-size: 0; }
  .pv4-sair::before { content: '↪'; font-size: 18px; }
  .pv4-hero { padding: 22px 16px; border-radius: 18px; }
  .pv4-hero-tx h1 { font-size: 29px; }
  .pv4-hero-tx .dhero-eyebrow { font-size: 9px; letter-spacing: .18em; }
  .pv4-hero-bot { width: 105px; height: 105px; }
  .pv4-hero-progress { align-items: flex-start; flex-direction: column; }
  .pv4-hero-progress .track { width: 100%; flex: none; }
  .pv4-hero-progress span { white-space: normal; }
  .pv4-mission { flex-wrap: wrap; padding: 12px; gap: 10px; }
  .pv4-mission .m-info { flex-basis: calc(100% - 50px); }
  .pv4-mission .m-btn, .pv4-mission .m-entregar { min-height: 44px; }
  .pv4-prat-card, .pv4-sec-card, .pv4-btn-loja, .pv4-btn-rank { min-height: 44px; }
  .pv4-mod-row { flex-wrap: wrap; padding: 12px; gap: 8px 10px; }
  .pv4-mod-row .nome { width: auto; flex: 1; min-width: 0; }
  .pv4-mod-row .track { order: 4; flex: 0 0 calc(100% - 42px); margin-left: 42px; }
  .pv4-mod-row .estado { max-width: 46%; overflow: hidden; text-overflow: ellipsis; }
  .pv4-modal-close, .pv4-modal-sync { min-height: 44px; }
}

/* card do curso de Inteligência Artificial (ciano) */
.pv4-prat-card.ciano { background: linear-gradient(150deg, #0B2C3D, #0C1B33); border-color: rgba(56,189,248,.38); }
.pv4-prat-card.ciano .glow { background: radial-gradient(300px 140px at 85% 15%, rgba(14,165,233,.32), transparent 65%); }
.pv4-prat-card.ciano .cta { background: linear-gradient(135deg, #38BDF8, #0284C7); }
