/* Rangel Mello | Checkmat — camada visual v8 "Anubis" (referência: Anubis Academy, Behance 234214079).
   Cores originais do app mantidas: preto, branco e vermelho (#dc2626). Carrega DEPOIS de rangel-dark.css. */

@font-face { font-family: "Archivo"; src: url(assets/fontes/archivo-latin.woff2) format("woff2"); font-weight: 600 900; font-stretch: 100% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; src: url(assets/fontes/archivo-latin-ext.woff2) format("woff2"); font-weight: 600 900; font-stretch: 100% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;
  --papel: #101010; --superficie: #1c1c1e; --superficie-2: #252527; --linha: #262628; --linha-forte: #3a3a3c;
  --tinta: #ffffff; --tinta-2: #d4d4d8; --suave: #9d9d9e;
  --marca: #dc2626; --marca-forte: #b91c1c; --marca-texto: #ffffff;
  --campo: #3a3a3c; --vermelho: #dc2626; --vermelho-2: #b91c1c; --vermelho-claro: #f87171; --vermelho-fundo: #2a1414;
  --ok: #22c55e; --ok-bg: #10241a; --verde: #22c55e;
  --display: "Archivo", "Manrope", system-ui, sans-serif;
  --raio: 14px;
}

html, html body { background: var(--papel) !important; }
html body #app-shell, html body #auth-screen { background: transparent !important; border-color: transparent !important; }
:focus-visible { outline: 2px solid #fff !important; outline-offset: 2px; }

/* ---------- Tipografia: títulos largos e pesados ---------- */
html body :is(.rg-titulo, .rg-ola strong, .rg-bemvindo strong, .rg-secao h2, .rg-proxima h2, #student-belt-title, .rg-kpi strong, .rg-nota-saude strong) {
  font-family: var(--display) !important; font-stretch: 125%; font-weight: 800 !important; letter-spacing: -.01em !important;
}
html body :is(#app-shell, [id^="modal-"]) :is(h2, h3):not(.rg-titulo) { font-family: var(--display) !important; font-stretch: 112%; font-weight: 700 !important; letter-spacing: -.005em !important; }
html body .rg-titulo { font-size: 30px !important; line-height: 1.1 !important; margin: 8px 0 6px !important; }
html body .rg-kpi strong { font-size: 26px; }

/* Saudação na home do aluno (como "Good Evening, Ahmed") */
.rg-ola { margin: 6px 0 2px; font-size: 14px; color: var(--tinta-2); line-height: 1.25; }
.rg-ola strong { display: block; font-size: 26px; color: #fff; line-height: 1.15; }
#view-aluno:has(#aluno-tab-home.hidden) .rg-ola { display: none; }
#view-aluno:has(#aluno-tab-home:not(.hidden)) #rg-titulo-aluno { display: none !important; }

/* ---------- Cartões ---------- */
html body :is(.surface-card, .rg-card, .rg-kpi, .rg-coluna, .rg-atleta, .rg-fixado, .rg-status-lesao) {
  background: var(--superficie) !important; border: 1px solid #ffffff08 !important; border-radius: var(--raio) !important; box-shadow: none !important;
}
html body .surface-card :is([class^="bg-zinc-9"],[class*=" bg-zinc-9"], [class^="bg-zinc-8"],[class*=" bg-zinc-8"]):not(button) { background: var(--superficie-2) !important; border-color: transparent !important; }
html body .rg-lead { background: var(--superficie-2) !important; border-radius: 10px; }

/* ---------- Campos (cinza #3A3A3C, como na referência) ---------- */
html body :is(.surface-input, .rg-busca input, #app-shell select, [id^="modal-"] select, [id^="modal-"] textarea, #app-shell textarea) {
  background: var(--campo) !important; border: 1px solid transparent !important; border-radius: 8px !important; color: #fff !important; min-height: 44px;
}
html body :is(.surface-input, .rg-busca input, textarea)::placeholder { color: var(--suave) !important; opacity: 1; }
html body :is(.surface-input, .rg-busca input, select, textarea):focus { outline: none !important; border-color: var(--vermelho) !important; box-shadow: 0 0 0 3px #dc262633 !important; }
html body .rg-busca i { color: var(--suave); }

/* ---------- Botões ---------- */
html body :is(#app-shell, #auth-screen, [id^="modal-"]) button:not(.rg-avatar):not(.rg-nav):not(.rg-usuario):not(.rg-busca-lateral) { border-radius: 10px !important; }
/* Primário: vermelho cheio */
html body :is(#app-shell, #auth-screen, [id^="modal-"]) :is(button.bg-white, button:is([class^="bg-red-600"],[class*=" bg-red-600"]), button.bg-red-500, button:is([class^="bg-amber-400"],[class*=" bg-amber-400"])),
html body .rg-btn-checkin, html body .rg-grade-form button[type="submit"] {
  background: var(--vermelho) !important; color: #fff !important; border: 1px solid var(--vermelho) !important; font-weight: 700 !important; box-shadow: none !important;
}
html body :is(#app-shell, #auth-screen, [id^="modal-"]) :is(button.bg-white, button:is([class^="bg-red-600"],[class*=" bg-red-600"]), button:is([class^="bg-amber-400"],[class*=" bg-amber-400"])) *,
html body .rg-btn-checkin * { color: #fff !important; }
html body :is(#app-shell, #auth-screen, [id^="modal-"]) :is(button.bg-white, button:is([class^="bg-red-600"],[class*=" bg-red-600"]), button:is([class^="bg-amber-400"],[class*=" bg-amber-400"])):hover,
html body .rg-btn-checkin:hover { background: var(--vermelho-2) !important; border-color: var(--vermelho-2) !important; }
html body .rg-btn-checkin { min-height: 46px; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px !important; }
/* Secundário: cinza cheio, sem borda */
html body .rg-btn-sec, html body .rg-btn-mini, html body #app-shell button:is([class^="bg-zinc-"],[class*=" bg-zinc-"]), html body [id^="modal-"] button:is([class^="bg-zinc-"],[class*=" bg-zinc-"]) {
  background: var(--campo) !important; border: 1px solid transparent !important; color: #fff !important; box-shadow: none !important;
}
html body .rg-btn-mini * { color: #fff !important; }
html body .rg-btn-sec:hover, html body .rg-btn-mini:hover, html body #app-shell button:is([class^="bg-zinc-"],[class*=" bg-zinc-"]):hover { background: #48484a !important; }
/* Perigo: fundo de erro */
html body :is(#app-shell, [id^="modal-"]) button:is([class^="bg-red-9"],[class*=" bg-red-9"]) { background: var(--vermelho-fundo) !important; border: 1px solid #4a1d1d !important; color: var(--vermelho-claro) !important; }
html body .rg-btn-wa { background: var(--ok-bg) !important; border: 1px solid #1f4d36 !important; color: #4ade80 !important; border-radius: 10px !important; }

/* ---------- Seleção (pílulas: ativo vermelho, como "All / Jiujitsu / MMA") ---------- */
html body :is(#auth-screen .grid.grid-cols-2:has(#tab-btn-login), #master-mode-switcher, .grid.grid-cols-3:has(#cat-btn-TODOS), .rg-seg) {
  background: var(--superficie) !important; border: 0 !important; border-radius: 999px !important; padding: 4px !important;
}
html body :is(#tab-btn-login, #tab-btn-signup, #btn-mode-aluno, #btn-mode-mestre, [id^="cat-btn-"], .rg-seg button) {
  border-radius: 999px !important; min-height: 38px !important; background: transparent !important; color: var(--tinta-2) !important; border: 0 !important; font-weight: 700 !important;
}
html body :is(#tab-btn-login, #tab-btn-signup, #btn-mode-aluno, #btn-mode-mestre, [id^="cat-btn-"]).bg-white, html body .rg-seg button.on {
  background: var(--vermelho) !important; color: #fff !important;
}
html body :is(#btn-mode-aluno, #btn-mode-mestre).bg-white * { color: #fff !important; }
html body .rg-chips button { background: var(--campo) !important; border: 0 !important; color: #fff !important; min-height: 36px; }
html body .rg-chips button span { color: #c7c7cc; }
html body .rg-chips button.on { background: var(--vermelho) !important; color: #fff !important; }
html body .rg-chips button.on span { color: #fecaca; }

/* ---------- Barras de progresso: vermelho sobre trilho claro ---------- */
html body .rg-barra { height: 6px; border-radius: 999px; background: #3a3a3c; overflow: hidden; }
html body .rg-barra i { background: var(--vermelho); border-radius: 999px; }
html body .rg-grafico i { background: var(--vermelho); }
html body :is(.rg-mapa i.on, .rg-mapa-leg i.on) { background: var(--vermelho); }
.rg-falta { color: var(--suave) !important; }

/* ---------- Selos e status ---------- */
html body .rg-selo { background: transparent; color: var(--vermelho-claro); padding: 0; font: 800 11px var(--display); font-stretch: 112%; letter-spacing: .08em; text-transform: uppercase; }
html body .rg-ver, html body .rg-link-seta { color: #fff !important; }
html body .rg-ver:hover, html body .rg-link-seta:hover { color: var(--vermelho-claro) !important; }
#notif-badge-count, .rg-mais-lista em { background: var(--vermelho) !important; }

/* ---------- Home do aluno ---------- */
/* Banner principal (kimonos) no estilo "Join Muay Thai Masters" */
html body #aluno-tab-home > div[onclick*="modal-kimonos"] {
  position: relative; overflow: hidden; isolation: isolate; min-height: 176px; padding: 20px !important;
  flex-direction: column !important; align-items: flex-start !important; justify-content: flex-end !important; gap: 14px !important;
  border: 0 !important; border-radius: 18px !important;
  background: radial-gradient(120% 110% at 100% 0%, #8f1b1b 0%, #4a0f12 38%, #1a0c0d 72%) !important;
}
html body #aluno-tab-home > div[onclick*="modal-kimonos"]::after {
  content: ""; position: absolute; inset: -10% -18% -10% 38%; z-index: -1; pointer-events: none;
  background: url(assets/rangel-checkmat-preto.png) center / contain no-repeat; filter: invert(1); opacity: .09;
}
html body #aluno-tab-home > div[onclick*="modal-kimonos"] h3 { font-size: 22px !important; line-height: 1.12; font-stretch: 120%; font-weight: 800 !important; max-width: 16ch; }
html body #aluno-tab-home > div[onclick*="modal-kimonos"] p { color: #f1d5d5 !important; font-size: 13px !important; max-width: 34ch; }
html body #aluno-tab-home > div[onclick*="modal-kimonos"] span:first-child { background: #ffffff1f !important; color: #fff !important; border-radius: 999px !important; padding: 3px 10px !important; letter-spacing: .04em; }
html body #aluno-tab-home > div[onclick*="modal-kimonos"] > span:last-child { background: var(--vermelho) !important; color: #fff !important; border-radius: 10px !important; padding: 11px 18px !important; font-size: 13.5px !important; }

/* Próxima aula no estilo "Next up" */
html body .rg-proxima {
  position: relative; overflow: hidden; isolation: isolate; border: 0 !important; border-radius: 18px !important;
  background: linear-gradient(135deg, #1c1c1e 0%, #1c1c1e 55%, #2e1012 100%) !important;
}
html body .rg-proxima::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, #dc262633, transparent 70%); }
html body .rg-proxima h2 { font-size: 21px !important; line-height: 1.15; }
html body .rg-proxima .rg-quando { color: var(--tinta-2); font-weight: 600; }

/* Cartão de graduação */
html body #aluno-tab-home .grid-cols-4 > div { background: var(--superficie-2) !important; border: 0 !important; border-radius: 12px !important; }
html body #aluno-tab-home .grid-cols-4 p.text-base { color: #fff !important; font-family: var(--display); font-stretch: 112%; font-weight: 800 !important; }
html body #aluno-tab-home .grid-cols-4 > div:last-child p.text-base { color: var(--vermelho-claro) !important; }
html body #student-stripes-badge, html body #student-category-pill { background: var(--campo) !important; border: 0 !important; color: #fff !important; border-radius: 999px !important; }

/* Seções com "Ver tudo" */
html body .rg-secao h2 { font-size: 18px !important; }

/* ---------- Topo ---------- */
html body #app-shell > header { border-bottom: 0 !important; }
html body #app-shell > header::before { background: color-mix(in srgb, var(--papel) 92%, transparent) !important; backdrop-filter: blur(12px) !important; }
html body #app-shell > header button:is([class^="bg-amber-400"],[class*=" bg-amber-400"]) { background: transparent !important; border: 1px solid var(--linha-forte) !important; }
html body #app-shell > header button:is([class^="h-9"],[class*=" h-9"]):hover { background: var(--superficie) !important; }
html body #header-avatar-box, html body .rg-usuario-av { background: var(--vermelho) !important; color: #fff !important; }

/* ---------- Janelas ---------- */
html body [id^="modal-"] > div { background: var(--superficie) !important; border: 0 !important; }
html body .rg-mais-lista button { background: var(--superficie-2) !important; border: 0 !important; border-radius: 14px !important; padding: 14px !important; gap: 12px; }
html body .rg-mais-lista button i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--vermelho); color: #fff !important; font-size: 16px; }

/* ---------- Tela de entrada ---------- */
html body #auth-screen { position: relative; isolation: isolate; }
html body #auth-screen::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(90% 55% at 50% -8%, #6b1418 0%, #2a0c0e 45%, transparent 75%), var(--papel);
}
.rg-bemvindo { margin: 4px 0 4px; text-align: center; font-size: 20px; font-weight: 400; color: #fff; line-height: 1.3; }
.rg-bemvindo strong { font-size: 20px; }
.rg-bemvindo-sub { margin: 0 0 22px; text-align: center; font-size: 13.5px; color: var(--tinta-2); }
html body #auth-screen label { color: #fff !important; font-weight: 600 !important; }

/* ---------- Celular: barra de baixo com rótulos e check-in redondo em destaque ---------- */
@media (max-width: 1100px) {
  html body :is(#bottom-nav-aluno, #bottom-nav-mestre) {
    background: var(--superficie) !important; border-top: 1px solid #ffffff0a !important; overflow: visible !important;
    padding: 6px 6px max(6px, env(safe-area-inset-bottom)) !important;
  }
  html body :is(#bottom-nav-aluno, #bottom-nav-mestre) button.rg-nav { min-height: 54px !important; gap: 3px !important; color: #8e8e93 !important; background: transparent !important; }
  html body :is(#bottom-nav-aluno, #bottom-nav-mestre) button.rg-nav .rg-ico { width: 23px; height: 23px; }
  html body :is(#bottom-nav-aluno, #bottom-nav-mestre) button.rg-nav.text-white { color: #fff !important; }
  html body :is(#bottom-nav-aluno, #bottom-nav-mestre) button.rg-nav::before { display: none !important; }
  /* Rótulos visíveis (aluno: nome; mestre: nome curto) */
  html body #bottom-nav-aluno button.rg-nav span,
  html body #bottom-nav-mestre button.rg-nav .rg-curto,
  html body #bottom-nav-mestre button.rg-nav:not(:has(.rg-curto)) span {
    position: static !important; width: auto !important; height: auto !important; overflow: visible !important; clip: auto !important;
    display: block !important; font: 600 10.5px/1.1 "Manrope", system-ui, sans-serif !important; color: inherit !important; white-space: nowrap;
  }
  html body #bottom-nav-mestre button.rg-nav:has(.rg-curto) span { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; }
  /* Botão central: círculo vermelho saltado */
  html body :is(#bottom-nav-aluno, #bottom-nav-mestre) button.rg-central { color: #fff !important; background: transparent !important; justify-content: flex-end !important; }
  html body :is(#bottom-nav-aluno, #bottom-nav-mestre) button.rg-central .rg-ico {
    width: 58px !important; height: 58px !important; padding: 16px; margin: -30px 0 2px; border-radius: 50%; border: 0 !important;
    background: var(--vermelho); color: #fff !important; stroke-width: 2.1;
    box-shadow: 0 0 0 5px var(--papel), 0 12px 24px -8px #dc2626aa;
  }
  html body :is(#bottom-nav-aluno, #bottom-nav-mestre) button.rg-central.text-white .rg-ico { background: var(--vermelho-2); }
  html body :is(#view-aluno, #view-mestre) { padding-bottom: 112px !important; }
  html body #app-shell > header { background: transparent !important; }
}

/* ---------- Computador: menu lateral com item ativo vermelho ---------- */
@media (min-width: 1101px) {
  html body :is(#bottom-nav-aluno, #bottom-nav-mestre) { background: var(--superficie) !important; }
  html body :is(#bottom-nav-aluno, #bottom-nav-mestre) button.rg-nav.text-white { background: var(--vermelho) !important; color: #fff !important; box-shadow: 0 10px 22px -12px #dc2626 !important; }
  html body :is(#bottom-nav-aluno, #bottom-nav-mestre) button.rg-nav.text-white :is(span, .rg-ico) { color: #fff !important; }
  html body .rg-nav.text-white[data-cont]:not([data-cont=""])::after { background: #ffffff2e !important; color: #fff !important; }
  html body .rg-titulo { font-size: 34px !important; }
  html body #aluno-tab-home > div[onclick*="modal-kimonos"] { min-height: 210px; padding: 28px !important; }
  html body #aluno-tab-home > div[onclick*="modal-kimonos"] h3 { font-size: 28px !important; }
}

@media (prefers-reduced-motion: reduce) { html body * { transition: none !important; } }

/* ---------- v8.1: foto do usuário no topo (abre o perfil) ---------- */
html body #app-shell > header button#rg-topo-av {
  width: 40px !important; height: 40px !important; min-width: 40px; padding: 0 !important; margin-left: 4px; flex: none;
  display: grid !important; place-items: center; overflow: hidden; border-radius: 50% !important;
  background: var(--vermelho) !important; color: #fff !important; border: 0 !important;
  box-shadow: 0 0 0 2px var(--papel), 0 0 0 4px #ffffff40 !important;
  font: 800 13px var(--display) !important; font-stretch: 112%; cursor: pointer;
}
html body #app-shell > header button#rg-topo-av:hover { box-shadow: 0 0 0 2px var(--papel), 0 0 0 4px var(--vermelho) !important; }
html body #app-shell > header button#rg-topo-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
@media (max-width: 1100px) { html body #app-shell > header button#rg-topo-av { width: 36px !important; height: 36px !important; min-width: 36px; } }

/* ---------- v8.2: aula ao vivo, hoje no tatame, professor ---------- */
@keyframes rg-pulso { 0% { box-shadow: 0 0 0 0 #ef4444b3; } 70% { box-shadow: 0 0 0 8px #ef444400; } 100% { box-shadow: 0 0 0 0 #ef444400; } }
html body .rg-ponto { display: inline-block; width: 8px; height: 8px; margin-right: 6px; vertical-align: 1px; border-radius: 50%; background: #ef4444; box-shadow: none; animation: rg-pulso 1.6s ease-out infinite; }
html body .rg-proxima.rg-aovivo { background: linear-gradient(135deg, #3a0d10 0%, #1c1c1e 60%) !important; box-shadow: inset 0 0 0 1px #dc262666 !important; }
html body .rg-proxima.rg-aovivo .rg-selo { color: #fff; background: var(--vermelho); padding: 4px 10px; border-radius: 999px; }
html body .rg-proxima.rg-aovivo .rg-selo .rg-ponto { background: #fff; }
#mestre-proxima-aula:not(:empty) { margin-bottom: 16px; }
.rg-hoje-lista { margin-top: 16px; padding-top: 14px; border-top: 1px solid #ffffff12; display: grid; gap: 8px; }
.rg-hoje-tit { margin: 0 0 2px; font: 800 11px var(--display); font-stretch: 112%; letter-spacing: .08em; text-transform: uppercase; color: var(--suave); }
.rg-h-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #ffffff08; }
.rg-h-item b { font: 800 15px var(--display); font-stretch: 112%; color: #fff; }
.rg-h-item span { display: grid; min-width: 0; line-height: 1.3; }
.rg-h-item strong { font-size: 14px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-h-item small { font-size: 12px; color: var(--suave); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-h-item em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--tinta-2); white-space: nowrap; }
.rg-h-item em.rg-h-vivo { color: #fff; background: var(--vermelho); padding: 3px 9px; border-radius: 999px; }
.rg-h-item em.rg-h-vivo .rg-ponto { background: #fff; width: 6px; height: 6px; }
.rg-h-vivo, .rg-h-item.rg-h-vivo { background: #dc26261f; }
.rg-h-item.rg-h-fim { opacity: .5; }
html body .rg-aula.rg-aula-vivo { box-shadow: inset 3px 0 0 var(--vermelho); border-radius: 12px; }
html body .rg-aula.rg-aula-vivo .rg-aula-hora::after { content: "AO VIVO"; display: block; margin-top: 4px; font: 800 9.5px var(--display); letter-spacing: .08em; color: #f87171; }

/* ---------- v8.3: aula compacta na Semana com "Ver mais" ---------- */
.rg-aula-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.rg-aula-acoes .rg-reserva { margin-top: 0; }
html body button.rg-vermais {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; border: 0 !important; border-radius: 999px !important;
  background: var(--vermelho) !important; color: #fff !important; font: 700 13px "Manrope", system-ui, sans-serif; cursor: pointer;
}
html body button.rg-vermais:hover { background: var(--vermelho-2) !important; }
html body button.rg-vermais i { font-size: 11px; color: #fff !important; }
.rg-aula-det { margin-top: 10px; }
.rg-aula-det[hidden] { display: none !important; }

/* ---------- v8.4: botão do Google nunca cortado ---------- */
#google-entrar { min-height: 48px; overflow: visible !important; }
#google-entrar > div { width: 100% !important; max-width: 100%; }
#google-entrar iframe { width: calc(100% + 20px) !important; max-width: none !important; height: 44px !important; min-height: 44px !important; visibility: visible !important; }

/* ---------- v8.5: feed da academia ---------- */
.rg-feed { display: grid; gap: 14px; }
.rg-f-av { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--campo); color: #fff; font: 800 14px var(--display); font-stretch: 112%; box-shadow: 0 0 0 2px var(--superficie), 0 0 0 4px var(--anel, #3a3a3c); }
.rg-f-av img { width: 100%; height: 100%; object-fit: cover; }
.rg-f-av.p { width: 30px; height: 30px; font-size: 11px; box-shadow: none; }
.rg-feed-novo, .rg-post { background: var(--superficie); border-radius: 18px; border: 1px solid #ffffff08; }
.rg-feed-novo { padding: 14px; display: grid; gap: 12px; }
.rg-feed-novo-topo { display: flex; gap: 12px; align-items: flex-start; }
html body .rg-feed-novo textarea { flex: 1; min-height: 44px; resize: vertical; padding: 11px 14px; border-radius: 14px !important; background: var(--campo) !important; border: 1px solid transparent !important; color: #fff !important; font: 500 15px "Manrope", system-ui, sans-serif; }
html body .rg-feed-novo textarea:focus { outline: none; border-color: var(--vermelho) !important; }
.rg-feed-previa { position: relative; border-radius: 14px; overflow: hidden; max-height: 360px; }
.rg-feed-previa img { width: 100%; max-height: 360px; object-fit: cover; display: block; }
html body .rg-feed-previa button { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50% !important; background: #000000b3 !important; color: #fff !important; border: 0 !important; }
.rg-feed-novo-acoes { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rg-feed-foto-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--campo); color: #fff; font: 700 13.5px "Manrope", system-ui, sans-serif; cursor: pointer; }
.rg-feed-foto-btn:focus-within { outline: 2px solid #fff; }
.rg-feed-aviso { color: var(--suave); font-size: 12.5px; }
html body button.rg-feed-publicar { min-height: 40px; padding: 0 22px; border: 0 !important; border-radius: 999px !important; background: var(--vermelho) !important; color: #fff !important; font: 800 14px var(--display); font-stretch: 112%; }
html body button.rg-feed-publicar:disabled { opacity: .6; }
.rg-post { overflow: hidden; }
.rg-post-cab { display: flex; align-items: center; gap: 12px; padding: 14px 14px 10px; }
.rg-post-quem { flex: 1; min-width: 0; display: grid; gap: 4px; }
.rg-post-quem strong { font-size: 15px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-post-quem .rg-mini-faixa { margin: 0; width: 84px; height: 7px; }
.rg-post-quem small { font-size: 12px; color: var(--suave); }
.rg-selo-mestre { font-style: normal; font-size: 10.5px; font-weight: 800; color: #fff; background: var(--vermelho); padding: 1px 7px; border-radius: 999px; vertical-align: 2px; margin-left: 4px; }
html body #app-shell button.rg-post-menu { width: 36px; height: 36px; border-radius: 50% !important; background: transparent !important; border: 0 !important; color: var(--suave) !important; }
html body button.rg-post-menu:hover { background: var(--campo) !important; color: #fff !important; }
.rg-post-texto { margin: 0; padding: 0 16px 12px; font-size: 15px; line-height: 1.5; color: #f4f4f5; overflow-wrap: anywhere; }
.rg-post-foto { background: #0a0a0a; max-height: 620px; overflow: hidden; display: grid; place-items: center; }
.rg-post-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rg-post-acoes { display: flex; gap: 4px; padding: 8px 8px 4px; border-top: 1px solid #ffffff0a; }
html body .rg-post-acoes button { flex: 1; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0 !important; border-radius: 10px !important; background: transparent !important; color: var(--tinta-2) !important; font: 700 13.5px "Manrope", system-ui, sans-serif; }
html body .rg-post-acoes button:hover { background: var(--campo) !important; }
html body .rg-post-acoes button.on, html body .rg-post-acoes button.on i { color: #f87171 !important; }
html body button.rg-post-vertodos { margin: 0 16px; padding: 0; border: 0 !important; background: none !important; color: var(--suave) !important; font-size: 13px; font-weight: 600; }
.rg-post-coms { list-style: none; margin: 6px 0 0; padding: 0 16px; display: grid; gap: 10px; }
.rg-post-coms li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: #e4e4e7; overflow-wrap: anywhere; }
.rg-post-coms li > div { background: var(--superficie-2); padding: 8px 12px; border-radius: 14px; min-width: 0; }
.rg-post-coms strong { color: #fff; font-size: 13.5px; }
.rg-post-coms small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--suave); }
html body .rg-post-coms small button { padding: 0; border: 0 !important; background: none !important; color: var(--suave) !important; font-size: 11.5px; text-decoration: underline; min-height: 0; }
.rg-post-comentar { display: flex; gap: 8px; padding: 12px 14px 14px; }
html body .rg-post-comentar input { flex: 1; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid transparent; background: var(--campo); color: #fff; font: 500 14px "Manrope", system-ui, sans-serif; }
html body .rg-post-comentar input:focus { outline: none; border-color: var(--vermelho); }
html body #app-shell .rg-post-comentar button { width: 40px; height: 40px; border-radius: 50% !important; border: 0 !important; background: var(--vermelho) !important; color: #fff !important; }
.rg-feed-filtro { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--vermelho-fundo); color: #fecaca; font-size: 13.5px; font-weight: 600; }
html body .rg-feed-filtro button { border: 0 !important; background: none !important; color: #fff !important; font-weight: 800; text-decoration: underline; }
html body button.rg-feed-mais { min-height: 46px; border-radius: 14px !important; background: var(--campo) !important; border: 0 !important; color: #fff !important; font-weight: 700; }
.rg-feed-nota { margin: 0; text-align: center; font-size: 12px; color: #71717a; }
.rg-vazio-card small { display: block; color: var(--suave); }

/* ---------- v8.5: perfil do aluno ---------- */
.rg-perfil { position: relative; margin: 0 -16px; padding: 0 16px; }
.rg-perfil-capa { height: 150px; margin: 0 -16px; border-radius: 0 0 28px 28px; position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 100% 0%, #b91c1c 0%, #5b1014 45%, #1a0c0d 85%); }
.rg-perfil-capa::after { content: ""; position: absolute; inset: -20% -10% -20% 40%; background: url(assets/rangel-checkmat-preto.png) center / contain no-repeat; filter: invert(1); opacity: .1; }
.rg-perfil-topo { display: grid; justify-items: center; gap: 8px; margin-top: -64px; position: relative; text-align: center; }
html body button.rg-perfil-av-btn { position: relative; width: 128px; height: 128px; padding: 0; border: 0 !important; background: transparent !important; overflow: visible; cursor: pointer; }
.rg-perfil-av { width: 128px; height: 128px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--vermelho); color: #fff; box-shadow: 0 0 0 5px var(--papel), 0 0 0 9px var(--anel, #3a3a3c); }
.rg-perfil-av img { width: 100%; height: 100%; object-fit: cover; }
.rg-perfil-av b { font: 800 44px var(--display); font-stretch: 120%; }
.rg-perfil-av-btn > i { position: absolute; right: -2px; bottom: 2px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #111; font-size: 15px; box-shadow: 0 0 0 4px var(--papel); }
html body .rg-perfil-topo h2 { margin: 12px 0 0 !important; font-size: 26px !important; line-height: 1.15; font-stretch: 120% !important; font-weight: 800 !important; }
.rg-perfil-faixa { display: grid; justify-items: center; gap: 8px; color: var(--suave); font-size: 13.5px; font-weight: 600; }
.rg-perfil-faixa .rg-mini-faixa { width: 180px; height: 14px; margin: 0; border-radius: 2px; }
.rg-perfil-faixa .rg-mini-ponta { width: 46px; right: 14px; gap: 4px; padding: 0 5px; }
.rg-perfil-faixa .rg-mini-ponta i { width: 4px; }
.rg-perfil-nums { display: grid; grid-template-columns: repeat(4, 1fr); margin: 22px 0 16px; padding: 14px 6px; border-radius: 18px; background: var(--superficie); }
.rg-perfil-nums div { display: grid; justify-items: center; gap: 2px; }
.rg-perfil-nums div + div { border-left: 1px solid #ffffff10; }
.rg-perfil-nums strong { font: 800 24px var(--display); font-stretch: 115%; color: #fff; }
.rg-perfil-nums span { font-size: 12px; color: var(--suave); font-weight: 600; }
.rg-perfil-grau { display: grid; gap: 8px; padding: 16px; border-radius: 18px; background: linear-gradient(135deg, #2e1012, #1c1c1e 70%); }
.rg-perfil-grau > div { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--tinta-2); font-weight: 600; }
.rg-perfil-grau b { color: #fff; }
.rg-perfil-grau small { font-size: 12.5px; color: var(--suave); }
html body button.rg-perfil-editar { width: 100%; min-height: 48px; margin: 14px 0; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0 !important; border-radius: 14px !important; background: var(--campo) !important; color: #fff !important; font: 800 15px var(--display); font-stretch: 112%; }
.rg-perfil-lista { display: grid; border-radius: 18px; overflow: hidden; background: var(--superficie); margin-bottom: 8px; }
html body .rg-perfil-lista button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 10px 16px; border: 0 !important; border-radius: 0 !important; background: transparent !important; color: #fff !important; text-align: left; }
html body .rg-perfil-lista button + button { border-top: 1px solid #ffffff0a !important; }
html body .rg-perfil-lista button:hover { background: #ffffff08 !important; }
.rg-perfil-lista button > i { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--vermelho-fundo); color: #f87171; font-size: 16px; }
.rg-perfil-lista span { flex: 1; display: grid; gap: 2px; min-width: 0; }
.rg-perfil-lista strong { font-size: 15px; }
.rg-perfil-lista small { font-size: 12.5px; color: var(--suave); }
.rg-perfil-lista em { color: #71717a; font-size: 13px; }
.rg-perfil-sair > i { background: var(--campo) !important; color: var(--tinta-2) !important; }
#view-aluno:has(#aluno-tab-perfil:not(.hidden)) #rg-titulo-aluno { display: none !important; }
@media (min-width: 1101px) {
  .rg-perfil { max-width: 720px; margin: 0; }
  .rg-perfil-capa { margin: 0; border-radius: 24px; }
  .rg-feed { max-width: 640px; }
}
