/* CBMGO Quiz — branco, detalhes e faixa/cabeçalho vermelho, fonte Exo */
@import url('https://fonts.googleapis.com/css2?family=Exo:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --cbmgo-red: #c41e1e;
  --cbmgo-red-dark: #8b0000;
  --cbmgo-red-light: #e85c5c;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --border: #e8e8e8;
  --surface: #ffffff;
  --sidebar-bg: #fafafa;
  --success: #0d7a4f;
  --danger: #b00020;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Exo', system-ui, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.5;
}

a {
  color: var(--cbmgo-red);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Top bar (usuário logado + quiz) */
.app-topbar {
  background: linear-gradient(180deg, var(--cbmgo-red) 0%, var(--cbmgo-red-dark) 100%);
  color: #fff;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.app-topbar__brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
}
.app-topbar__brand:hover {
  text-decoration: none;
  opacity: 0.95;
}

.app-topbar__user {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.app-topbar__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.app-topbar a {
  color: #fff;
  font-weight: 500;
}

.app-topbar__name {
  font-weight: 500;
}

/* Área logada: topo só marca + usuário + sair; navegação na lateral */
body.layout-user {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.layout-user__shell {
  flex: 1;
  display: flex;
  min-height: 0;
}

.app-sidebar {
  flex-shrink: 0;
  width: 272px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
}

.app-sidebar__ribbon {
  flex-shrink: 0;
  margin: 0;
  padding: 0.55rem 1rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, var(--cbmgo-red) 0%, var(--cbmgo-red-dark) 100%);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.app-sidebar__ribbon--study {
  margin-top: 0;
}

.app-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  flex-shrink: 0;
}

.app-sidebar__nav--panel {
  padding: 0.65rem 0.5rem 0.85rem;
}

.app-sidebar__details {
  margin: 0 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.app-sidebar__summary {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.58rem 0.65rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
}

.app-sidebar__summary::-webkit-details-marker {
  display: none;
}

.app-sidebar__details[open] .app-sidebar__summary {
  border-bottom: 1px solid var(--border);
  background: rgba(196, 30, 30, 0.04);
}

.app-sidebar__submenu {
  padding: 0.35rem 0.45rem 0.5rem;
}

.app-sidebar__sublink {
  display: block;
  padding: 0.45rem 0.65rem 0.45rem 2.35rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
}

.app-sidebar__sublink:hover {
  background: rgba(196, 30, 30, 0.06);
  color: var(--cbmgo-red-dark);
}

.app-sidebar__sublink.is-active {
  background: rgba(196, 30, 30, 0.1);
  color: var(--cbmgo-red-dark);
  font-weight: 600;
}

.app-sidebar__section-gap {
  flex-shrink: 0;
  min-height: 1.35rem;
  margin: 0.35rem 0.65rem 0.5rem;
  border-bottom: 1px solid var(--border);
  opacity: 0.85;
}

.app-sidebar__progress-wrap {
  flex: 1;
  min-height: 0;
  padding: 0.65rem 0.65rem 1rem;
  overflow-y: auto;
}

.study-progress {
  font-size: 0.82rem;
  color: var(--text);
}

.study-progress__focus {
  padding: 0.55rem 0.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.65rem;
}

.study-progress__badge {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cbmgo-red);
  margin-bottom: 0.35rem;
}

.study-progress__badge--sub {
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  margin-top: 0.15rem;
}

.study-progress__link {
  display: block;
  font-weight: 600;
  color: var(--cbmgo-red-dark);
  text-decoration: none;
  line-height: 1.35;
  margin-bottom: 0.45rem;
}

.study-progress__link:hover {
  text-decoration: underline;
}

.study-progress__track {
  height: 6px;
  border-radius: 99px;
  background: #e8e8e8;
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.study-progress__fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cbmgo-red-light), var(--cbmgo-red));
  transition: width 0.2s ease;
}

.study-progress__stat {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.study-progress__stat--sub {
  margin-top: 0.25rem;
  font-size: 0.7rem;
  opacity: 0.92;
}

.study-progress__rest {
  margin-top: 0.15rem;
}

.study-progress__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 14rem;
  overflow-y: auto;
}

.study-progress__list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.study-progress__list li:last-child {
  border-bottom: none;
}

.study-progress__mini-link {
  flex: 1;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
  font-size: 0.78rem;
  line-height: 1.35;
}

.study-progress__mini-link:hover {
  color: var(--cbmgo-red);
  text-decoration: underline;
}

.study-progress__mini-pct {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.study-progress__mini-pct--wrap {
  max-width: 11rem;
  text-align: right;
  line-height: 1.3;
  white-space: normal;
}

.study-progress--empty {
  padding: 0.25rem 0.25rem 0;
}

.study-progress--empty .muted {
  margin: 0;
  font-size: 0.8rem;
}

.app-sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.58rem 0.65rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.88rem;
  line-height: 1.35;
  text-decoration: none;
  border-left: 3px solid transparent;
  border-radius: 8px;
}

.app-sidebar__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: rgba(196, 30, 30, 0.07);
  color: var(--cbmgo-red);
}

.app-sidebar__icon-svg {
  display: block;
}

.app-sidebar__label {
  flex: 1;
  min-width: 0;
}

.app-sidebar__link:hover {
  background: rgba(196, 30, 30, 0.06);
  color: var(--cbmgo-red-dark);
  text-decoration: none;
}

.app-sidebar__link:hover .app-sidebar__icon {
  background: rgba(196, 30, 30, 0.12);
}

.app-sidebar__link.is-active {
  background: rgba(196, 30, 30, 0.1);
  border-left-color: var(--cbmgo-red);
  color: var(--cbmgo-red-dark);
  font-weight: 600;
}

.app-sidebar__link.is-active .app-sidebar__icon {
  background: rgba(196, 30, 30, 0.18);
  color: var(--cbmgo-red-dark);
}

.layout-user__main-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.layout-user__meta {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0.85rem 1.25rem 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.layout-user__meta span {
  display: inline-block;
}

.layout-user__main.layout {
  flex: 1;
}

/* Usa toda a largura útil à direita da sidebar (evita faixa estreita no perfil e demais telas) */
.layout-user__main.layout--wide {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

.card--profile {
  width: 100%;
  padding: 1.5rem 2rem 1.75rem;
}

.card--profile .form-group input,
.card--profile .form-group select,
.card--profile .form-group textarea {
  max-width: none;
}

@media (max-width: 768px) {
  .layout-user__shell {
    flex-direction: column;
  }

  .app-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: none;
  }

  .app-sidebar__ribbon {
    text-align: left;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .app-sidebar__section-gap {
    min-height: 1rem;
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .app-sidebar__progress-wrap {
    max-height: 18rem;
  }

  .app-sidebar__nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .app-sidebar__nav--panel {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0 0.65rem 0.65rem;
  }

  .app-sidebar__link {
    flex: 1 1 auto;
    min-width: 140px;
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    border-left: none;
  }

  .app-sidebar__link.is-active {
    border-left: none;
    background: rgba(196, 30, 30, 0.12);
  }
}

/* Header landing */
.hero-header {
  background: linear-gradient(180deg, var(--cbmgo-red) 0%, var(--cbmgo-red-dark) 100%);
  color: #fff;
  padding: 2rem 1.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    #fff 0 12px,
    transparent 12px 24px
  );
  opacity: 0.35;
}

.hero-header__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.hero-header__logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.hero-header__logo {
  width: 2.65rem;
  height: 3.1rem;
  display: block;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.hero-header__brand h1 {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: left;
}

@media (max-width: 520px) {
  .hero-header__brand {
    flex-direction: column;
    gap: 0.65rem;
  }
  .hero-header__brand h1 {
    text-align: center;
  }
}

.hero-header p {
  margin: 0;
  opacity: 0.95;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.95rem;
}

/* ——— Landing (início) — estilo preparatório ——— */
html:has(.landing-page) {
  scroll-behavior: smooth;
}

.landing-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fafbfc;
}

.landing-skip {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--cbmgo-red);
  color: #fff;
  font-weight: 600;
}
.landing-skip:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.landing-wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Nav fixa */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.landing-nav__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.landing-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  min-width: 0;
}
.landing-nav__brand:hover {
  color: var(--cbmgo-red);
  text-decoration: none;
}

.landing-nav__logo {
  flex-shrink: 0;
  color: var(--cbmgo-red);
  display: flex;
  align-items: center;
  height: var(--landing-logo-h, 42px);
}

.landing-nav__logo svg {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.06));
}

.landing-nav__logo--img {
  height: var(--landing-logo-h, 42px);
  align-items: center;
}

.landing-nav__logo-svg {
  display: block;
  width: auto;
  height: var(--landing-logo-h, 42px);
}

.landing-nav__logo-image {
  display: block;
  width: auto;
  height: var(--landing-logo-h, 42px);
  max-width: min(280px, 72vw);
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.06));
}

/* variável --landing-logo-h definida em .landing-page (index.php) */

.landing-nav__links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  font-weight: 600;
}

.landing-nav__links a {
  color: var(--text-muted);
  text-decoration: none;
}
.landing-nav__links a:hover {
  color: var(--cbmgo-red);
}

.landing-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.landing-nav__hello {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: none;
}
@media (min-width: 720px) {
  .landing-nav__hello {
    display: inline;
  }
}

@media (max-width: 640px) {
  .landing-nav__links {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 0.35rem;
    border-top: 1px solid var(--border);
    gap: 0.85rem;
  }
}

/* Hero */
.landing-hero {
  position: relative;
  padding: 2.75rem 1.25rem 3.25rem;
  background: linear-gradient(155deg, var(--cbmgo-red) 0%, #8f1515 48%, var(--cbmgo-red-dark) 100%);
  color: #fff;
  overflow: hidden;
}

.landing-hero__bg {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(255, 255, 255, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(0, 0, 0, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.landing-hero__inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.landing-hero__badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}
.landing-hero__badge span {
  opacity: 0.95;
}

.landing-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 5vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.02em;
}
.landing-hero__title em {
  font-style: normal;
  color: #ffe0e0;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.landing-hero__lead {
  margin: 0 auto 1.75rem;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.95;
}

.landing-hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.landing-hero__cta-outline {
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
}
.landing-hero__cta-outline:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.landing-hero .btn--primary {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}
.landing-hero .btn--primary:hover {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
}

.landing-hero__stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.25rem;
  font-size: 0.88rem;
  opacity: 0.92;
}
.landing-hero__stats li {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}
.landing-hero__stats strong {
  font-size: 1.15rem;
  font-weight: 800;
}

/* Seções */
.landing-section {
  padding: 3rem 0;
}

.landing-section--muted {
  background: linear-gradient(180deg, #f3f5f7 0%, #fafbfc 100%);
}

.landing-section__head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.25rem;
}

.landing-section__head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 800;
  color: var(--text);
}

.landing-section__sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.landing-features {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 960px) {
  .landing-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .landing-features {
    grid-template-columns: 1fr;
  }
}

.landing-feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.35rem 1.25rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.25s, transform 0.2s;
}

.landing-feature:hover {
  box-shadow: 0 12px 36px rgba(196, 30, 30, 0.1);
  transform: translateY(-2px);
}

.landing-feature__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(196, 30, 30, 0.12), rgba(196, 30, 30, 0.05));
  color: var(--cbmgo-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.landing-feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.landing-feature p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Tracks */
.landing-tracks {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 960px) {
  .landing-tracks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .landing-tracks {
    grid-template-columns: 1fr;
  }
}

.landing-track {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.35rem 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.landing-track::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--cbmgo-red), var(--cbmgo-red-dark));
  border-radius: 14px 0 0 14px;
  opacity: 0.85;
}

.landing-track:hover {
  border-color: rgba(196, 30, 30, 0.45);
  box-shadow: 0 14px 40px rgba(196, 30, 30, 0.14);
  transform: translateY(-3px);
  text-decoration: none;
  color: inherit;
}

.landing-track__tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cbmgo-red);
  margin-bottom: 0.35rem;
}

.landing-track h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  font-weight: 700;
}

.landing-track p {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.landing-track__go {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cbmgo-red);
}

/* Passos */
.landing-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  counter-reset: step;
}

@media (max-width: 768px) {
  .landing-steps {
    grid-template-columns: 1fr;
  }
}

.landing-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.landing-step__num {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--cbmgo-red), var(--cbmgo-red-dark));
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-step__body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.landing-step__body p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Faixa CTA */
.landing-cta-band {
  padding: 2.75rem 1.25rem;
  background: linear-gradient(120deg, var(--cbmgo-red-dark) 0%, var(--cbmgo-red) 55%, #a01818 100%);
  color: #fff;
}

.landing-cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.landing-cta-band__text h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 800;
}

.landing-cta-band__text p {
  margin: 0;
  opacity: 0.92;
  font-size: 0.98rem;
}

.landing-cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Footer landing */
.landing-footer {
  margin-top: auto;
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.landing-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.landing-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}
.landing-footer__brand strong {
  font-size: 0.95rem;
}
.landing-footer__tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.landing-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
}
.landing-footer__links a {
  color: var(--text-muted);
}
.landing-footer__links a:hover {
  color: var(--cbmgo-red);
}

.landing-footer__note {
  margin: 0;
  font-size: 0.78rem;
  color: #888;
}

/* Botões landing */
.btn--sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 0.8rem 1.65rem;
  font-size: 1rem;
}

.btn--light {
  background: #fff;
  color: var(--cbmgo-red);
  font-weight: 700;
}
.btn--light:hover {
  background: #fff5f5;
  color: var(--cbmgo-red-dark);
  text-decoration: none;
}

.btn--outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
}
.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
}

.layout {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.layout--wide {
  max-width: 1100px;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  color: var(--text);
}

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.card-grid > * {
  min-width: 0;
}

.discipline-card {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border: 2px solid var(--cbmgo-red);
  border-radius: 16px;
  background: linear-gradient(165deg, #ffffff 0%, #fffbfb 100%);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(196, 30, 30, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.discipline-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--cbmgo-red) 0%, var(--cbmgo-red-dark) 100%);
  border-radius: 16px 0 0 16px;
}

.discipline-card:hover {
  border-color: var(--cbmgo-red-dark);
  box-shadow: 0 10px 32px rgba(196, 30, 30, 0.18), 0 4px 8px rgba(0, 0, 0, 0.06);
  transform: translateY(-3px);
  text-decoration: none;
}

.discipline-card:active {
  transform: translateY(-1px);
}

.discipline-card__icon {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cbmgo-red);
  background: linear-gradient(145deg, #fff0f0 0%, #ffe4e4 100%);
  border: 2px solid rgba(196, 30, 30, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  align-self: center;
}

.discipline-card__icon svg {
  display: block;
  opacity: 0.95;
}

.discipline-card__body {
  flex: 1;
  min-width: 0;
  padding-left: 0.15rem;
}

.discipline-card__body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--cbmgo-red-dark);
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.discipline-card__desc,
.discipline-card__body > .muted {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.discipline-card__chevron {
  flex-shrink: 0;
  align-self: center;
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--cbmgo-red);
  opacity: 0.65;
  line-height: 1;
  transition: transform 0.2s, opacity 0.2s;
}

.discipline-card:hover .discipline-card__chevron {
  transform: translateX(4px);
  opacity: 1;
}

/* Catálogo de manuais (agrupa por obra; capítulos recuados) */
.manual-catalog {
  display: flex;
  flex-direction: column;
  gap: 1.85rem;
}

.manual-catalog__group {
  margin: 0;
}

.manual-catalog__series {
  margin: 0 0 0.65rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}

.manual-catalog__chapters {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.35rem;
  border-left: 3px solid rgba(196, 30, 30, 0.22);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.manual-catalog__chapters .manual-catalog__card.discipline-card {
  padding-top: 0.95rem;
  padding-bottom: 0.95rem;
}

.manual-catalog__chapters .discipline-card__body h3 {
  font-size: 1rem;
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--cbmgo-red);
  color: #fff;
}
.btn--primary:hover {
  background: var(--cbmgo-red-dark);
  color: #fff;
  text-decoration: none;
}

.btn--outline {
  background: #fff;
  color: var(--cbmgo-red);
  border: 2px solid var(--cbmgo-red);
}
.btn--outline:hover {
  background: #fff5f5;
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  background: #f5f5f5;
  text-decoration: none;
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.form-range-row {
  display: flex;
  align-items: center;
  gap: 0.5rem 0.75rem;
  flex-wrap: wrap;
}

.form-range {
  flex: 1 1 200px;
  min-width: 140px;
  max-width: 100%;
  accent-color: var(--cbmgo-red);
}

.form-range-row__min,
.form-range-row__max {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.form-range-row__val {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 4rem;
  margin-left: auto;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.6rem 0.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.alert--error {
  background: #fde8eb;
  color: var(--danger);
  border: 1px solid #f5c2c7;
}

.alert--success {
  background: #e8f5ef;
  color: var(--success);
  border: 1px solid #c3e6d0;
}

/* Admin: lista de questões — número em destaque quando cadastro completo */
.questao-num {
  font-variant-numeric: tabular-nums;
}

.questao-num--ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0.15rem 0.45rem;
  box-sizing: border-box;
  border-radius: 9999px;
  border: 2px solid var(--success);
  color: var(--success);
  background: rgba(13, 122, 79, 0.1);
  line-height: 1;
}

.questao-num--pendente {
  color: var(--text);
}

/* Quiz */
.quiz-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.quiz-meta strong {
  color: var(--text);
}

.question-block {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.question-block:last-of-type {
  border-bottom: none;
}

.question-block h4 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

.question-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.question-block-head__title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.justification-drawer--below-title {
  margin-top: -0.35rem;
  margin-bottom: 0.65rem;
}

.question-resumo-bar {
  margin: 0.75rem 0 0.35rem;
}

.btn--ver-resumo {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--cbmgo-red);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.btn--ver-resumo:hover {
  background: var(--cbmgo-red-dark);
}

.btn--ver-resumo[aria-expanded='true'] {
  background: var(--text-muted);
}

.question-resumo {
  margin: 0.5rem 0 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: var(--text);
  background: #f6f8fa;
  border: 1px solid var(--border);
  border-radius: 8px;
  border-left: 3px solid var(--cbmgo-red-dark);
}

.question-resumo--compact {
  margin-top: 0.5rem;
  margin-bottom: 0.65rem;
}

.question-resumo__label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.question-resumo__text {
  line-height: 1.45;
}

.option {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid transparent;
}

.option:hover {
  background: #fafafa;
  border-color: var(--border);
}

.option input {
  margin-top: 0.2rem;
}

.option__label-text {
  flex: 1;
  min-width: 0;
}

.option__status {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
}

.option__check-ico {
  display: block;
  color: var(--success);
}

.option__wrong-ico {
  display: block;
  color: var(--danger);
}

.option.option--correct {
  border-color: var(--success);
  background: rgba(13, 122, 79, 0.09);
}

.option.option--correct-reveal {
  border-color: var(--success);
  background: rgba(13, 122, 79, 0.12);
  box-shadow: inset 0 0 0 1px rgba(13, 122, 79, 0.35);
}

.option.option--wrong {
  border-color: rgba(176, 0, 32, 0.55);
  background: rgba(176, 0, 32, 0.06);
}

.quiz-feedback {
  margin-top: 0.5rem;
  margin-bottom: 0.35rem;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: var(--text);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.quiz-feedback--ok {
  border-left: 3px solid var(--success);
  background: rgba(13, 122, 79, 0.06);
}

.quiz-feedback--err {
  border-left: 3px solid var(--cbmgo-red-dark);
  background: #fdf7f7;
}

.quiz-feedback__title {
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.quiz-feedback__body {
  white-space: pre-wrap;
  line-height: 1.45;
  color: var(--text-muted);
}

.quiz-feedback--ok .quiz-feedback__body {
  color: var(--text);
}

.btn--justificativa {
  flex-shrink: 0;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--cbmgo-red);
  background: #fff;
  border: 1px solid var(--cbmgo-red);
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  align-self: flex-start;
  margin-top: 0.35rem;
}

.btn--justificativa:hover {
  background: #fff5f5;
}

.btn--justificativa[aria-expanded='true'] {
  background: var(--cbmgo-red);
  color: #fff;
}

.justification-drawer {
  margin-top: 0.4rem;
  margin-bottom: 0.5rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.88rem;
  color: var(--text);
  background: #f8f8f8;
  border: 1px solid var(--border);
  border-radius: 8px;
  border-left: 3px solid var(--cbmgo-red);
  white-space: pre-wrap;
  line-height: 1.45;
}

/* Admin layout */
.admin-wrap {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  padding: 1.25rem 0;
  display: flex;
  flex-direction: column;
}

.admin-sidebar__brand {
  padding: 0 1.25rem 1.25rem;
  font-weight: 800;
  font-size: 1rem;
  color: var(--cbmgo-red-dark);
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.75rem;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.admin-nav__link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.25rem;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  text-decoration: none;
}

.admin-nav__link:hover,
.admin-nav__link.is-active {
  background: #fff;
  border-left-color: var(--cbmgo-red);
}

.admin-nav__ico {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.admin-nav__link:hover .admin-nav__ico,
.admin-nav__link.is-active .admin-nav__ico {
  color: var(--cbmgo-red-dark);
}

.admin-nav__svg {
  display: block;
}

.admin-nav__details {
  border: none;
}

.admin-nav__summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.25rem;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  border-left: 3px solid transparent;
  user-select: none;
}

.admin-nav__summary::-webkit-details-marker {
  display: none;
}

.admin-nav__summary-text {
  flex: 1;
  min-width: 0;
}

.admin-nav__chevron-svg {
  flex-shrink: 0;
  display: block;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.admin-nav__details[open] .admin-nav__chevron-svg {
  transform: rotate(180deg);
  color: var(--cbmgo-red-dark);
}

.admin-nav__summary:hover {
  background: #fff;
}

.admin-nav__summary:hover .admin-nav__ico,
.admin-nav__summary.has-active-child .admin-nav__ico {
  color: var(--cbmgo-red-dark);
}

.admin-nav__summary.has-active-child {
  background: #fff;
  border-left-color: var(--cbmgo-red);
}

.admin-nav__panel {
  display: flex;
  flex-direction: column;
  padding: 0 0 0.35rem;
}

.admin-nav__sublink {
  display: block;
  padding: 0.45rem 1.25rem 0.45rem 2.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  border-left: 3px solid transparent;
  text-decoration: none;
}

.admin-nav__sublink:hover,
.admin-nav__sublink.is-active {
  background: #fff;
  border-left-color: var(--cbmgo-red);
}

.admin-main {
  flex: 1;
  min-width: 0;
  background: #fff;
}

.admin-topbar {
  background: linear-gradient(180deg, var(--cbmgo-red) 0%, var(--cbmgo-red-dark) 100%);
  color: #fff;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-topbar__title {
  min-width: 0;
}

.admin-topbar__right {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.admin-topbar__user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.admin-topbar__avatar {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}

.admin-topbar__name {
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 14rem;
}

.admin-topbar a {
  color: #fff;
  font-size: 0.9rem;
}

.admin-topbar__actions {
  flex-shrink: 0;
}

.admin-content {
  padding: 1.5rem;
  max-width: 1100px;
}

.admin-content h1 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table.data-table th,
table.data-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

table.data-table th {
  background: #fafafa;
  font-weight: 600;
}

table.data-table tr:last-child td {
  border-bottom: none;
}

table.data-table tr.manual-admin__series-row td {
  font-weight: 700;
  background: var(--sidebar-bg);
}

table.data-table td.manual-admin__chapter {
  padding-left: 1.85rem;
}

.actions-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.link-danger {
  color: var(--danger);
  font-size: 0.88rem;
}

.muted {
  color: var(--text-muted);
  font-size: 0.88rem;
}

@media (max-width: 768px) {
  .admin-wrap {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

/* —— Dashboard (área do aluno) —— */
.dashboard-page {
  max-width: 100%;
}

/* Sem linha extra-meta: sobe o bloco para alinhar ao topo da coluna (faixa PAINEL na lateral) */
.layout-user__main.layout--wide:has(.dashboard-page) {
  padding-top: 0.45rem;
}

.dashboard-intro {
  margin-bottom: 1.35rem;
}

.dashboard-intro__title {
  margin: 0 0 0.35rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--cbmgo-red-dark);
  letter-spacing: 0.02em;
}

.dashboard-intro__desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
  .dashboard-stat-grid {
    grid-template-columns: 1fr;
  }
}

.dash-stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1.25rem 1.25rem;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, #ffffff 0%, #fffcfc 100%);
  box-shadow: 0 2px 12px rgba(196, 30, 30, 0.07), 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  overflow: hidden;
}

.dash-stat-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--cbmgo-red);
  border-radius: 16px 0 0 16px;
  opacity: 0.9;
}

.dash-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(196, 30, 30, 0.12), 0 4px 8px rgba(0, 0, 0, 0.05);
  border-color: rgba(196, 30, 30, 0.25);
}

.dash-stat-card--leis::before {
  background: linear-gradient(180deg, #8b2942 0%, #c41e1e 100%);
}

.dash-stat-card--manuais::before {
  background: linear-gradient(180deg, #1e5a7a 0%, #2a7ab0 100%);
}

.dash-stat-card__icon {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  color: var(--cbmgo-red);
  background: linear-gradient(145deg, #fff0f0 0%, #ffe2e2 100%);
  border: 1px solid rgba(196, 30, 30, 0.2);
}

.dash-stat-card--leis .dash-stat-card__icon {
  color: #8b2942;
  background: linear-gradient(145deg, #fff5f7 0%, #ffe8ed 100%);
  border-color: rgba(139, 41, 66, 0.2);
}

.dash-stat-card--manuais .dash-stat-card__icon {
  color: #1e5a7a;
  background: linear-gradient(145deg, #f0f7fc 0%, #e0eff8 100%);
  border-color: rgba(30, 90, 122, 0.2);
}

.dash-stat-card__label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.dash-stat-card__value {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1;
  color: var(--cbmgo-red-dark);
  letter-spacing: -0.02em;
}

.dash-stat-card--leis .dash-stat-card__value {
  color: #6b1f30;
}

.dash-stat-card--manuais .dash-stat-card__value {
  color: #1a4a66;
}

.dash-stat-card__sub {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.dash-progress-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem 1.5rem 1.35rem;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.dash-progress-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.35rem;
  flex-wrap: wrap;
}

.dash-progress-card__title {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

.dash-progress-card__subtitle {
  margin: 0;
  font-size: 0.9rem;
}

.dash-progress-card__ring {
  --p: 0;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: conic-gradient(
    from -90deg,
    var(--cbmgo-red) 0%,
    var(--cbmgo-red) calc(var(--p) * 1%),
    #e6e6e6 calc(var(--p) * 1%),
    #e6e6e6 100%
  );
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(196, 30, 30, 0.12);
}

.dash-progress-card__ring-inner {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px var(--border);
  line-height: 1.15;
}

.dash-progress-card__ring-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--cbmgo-red-dark);
}

.dash-progress-card__ring-unit {
  font-size: 0.65em;
  font-weight: 700;
}

.dash-progress-card__ring-cap {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.dash-progress-card__ring--empty {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--sidebar-bg);
  border: 2px dashed var(--border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.dash-progress-card__ring-empty {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  padding: 0 0.5rem;
}

.dash-progress-card__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.35rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

@media (max-width: 700px) {
  .dash-progress-card__stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.dash-mini-stat {
  text-align: center;
  padding: 0.25rem 0.35rem;
}

.dash-mini-stat__val {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cbmgo-red-dark);
  font-variant-numeric: tabular-nums;
}

.dash-mini-stat__val--muted {
  color: var(--danger);
  opacity: 0.9;
}

.dash-mini-stat__lbl {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  line-height: 1.3;
}

.dash-progress-card__bars {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.dash-bar-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr 2.5rem;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.86rem;
}

.dash-bar-row__name {
  font-weight: 600;
  color: var(--text-muted);
}

.dash-bar-row__track {
  height: 8px;
  border-radius: 99px;
  background: #e8e8e8;
  overflow: hidden;
}

.dash-bar-row__fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cbmgo-red-light), var(--cbmgo-red));
  transition: width 0.35s ease;
}

.dash-bar-row__fill--leis {
  background: linear-gradient(90deg, #e08598, #9e283e);
}

.dash-bar-row__fill--manuais {
  background: linear-gradient(90deg, #6ba8cc, #1e5a7a);
}

.dash-bar-row__pct {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.dash-progress-card__footer {
  margin-top: 0.15rem;
}

/* Editais (lista + leitura) */
.edital-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.edital-list__item {
  border-bottom: 1px solid var(--border-soft, #e8e8e8);
}

.edital-list__item:last-child {
  border-bottom: none;
}

.edital-list__link {
  display: block;
  padding: 0.85rem 0.25rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.edital-list__link:hover {
  color: var(--cbmgo-red, #9e283e);
}

.edital-view__title {
  margin-top: 0;
}

.edital-view__body {
  line-height: 1.65;
  word-break: break-word;
}

.edital-view__back {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

/* Admin — video aulas */
.video-admin-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--cbmgo-red), var(--cbmgo-red-dark));
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}

/* Video aulas — reprodução */
.video-watch__player-wrap {
  margin-bottom: 1.25rem;
}

.video-watch__player {
  width: 100%;
  max-width: 720px;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  background: #000;
  border: 1px solid var(--border);
}

.video-watch__title {
  margin-top: 0;
}

.video-watch__prof {
  margin: 0 0 1.25rem;
}

.video-watch__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8f9fb 0%, #fff 100%);
  border: 1px solid var(--border);
}

.video-watch__avatar {
  width: 200px;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 3px solid var(--cbmgo-red);
  box-shadow: 0 8px 28px rgba(196, 30, 30, 0.12);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.video-watch__avatar[data-speaking="1"] {
  box-shadow: 0 12px 36px rgba(196, 30, 30, 0.28);
  transform: scale(1.02);
}

.video-watch__avatar--initials {
  background: linear-gradient(160deg, #fff5f5, #ffe8e8);
}

.video-watch__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-watch__initials {
  font-size: 4rem;
  font-weight: 800;
  color: var(--cbmgo-red);
  line-height: 1;
}

.video-watch__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.video-watch__script-title {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.video-watch__script-body {
  line-height: 1.6;
  word-break: break-word;
  padding: 1rem;
  border-radius: 10px;
  background: var(--sidebar-bg, #fafafa);
  border: 1px solid var(--border);
}

.video-watch__back {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

/* Footer Global */
.site-footer {
  background-color: #000;
  color: #ffffff;
  padding: 4rem 1.25rem;
  font-size: 0.9rem;
  text-align: center;
  border-top: 2px solid var(--cbmgo-red);
}

.site-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.site-footer__copyright {
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.03em;
  opacity: 0.9;
}

.site-footer__dev {
  margin: 0;
  opacity: 0.7;
  font-size: 0.85rem;
  font-weight: 300;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

.site-footer a:hover {
  color: var(--cbmgo-red-light);
  border-bottom-color: var(--cbmgo-red-light);
  opacity: 1;
}

@media (max-width: 600px) {
  .site-footer {
    padding: 3rem 1.25rem;
  }
}
