/* =======================
   FONTES E BASE
======================= */
body, h1, h2, h3, h4, h5, h6, p, a, button {
  font-family: 'Poppins', sans-serif;
}

h1, h2, h3, h4, h5 {
  font-weight: 600;
}

section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* =======================
   HERO
======================= */
section.bg-light h1 {
  font-weight: 700;
  color: #0d6efd;
}

section.bg-light p {
  font-size: 1.2rem;
}

/* =======================
   BOTÕES
======================= */
.btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
  transform: scale(1.03);
}

.btn-outline-secondary:hover {
  background-color: #f8f9fa;
  border-color: #6c757d;
  transform: scale(1.02);
}

/* =======================
   CARDS
======================= */
.card {
  border-radius: 1rem;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.card img {
  border-radius: 1rem 1rem 0 0;
}

/* =======================
   CARROSSEL
======================= */
.carousel-inner img {
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* =======================
   CTA FINAL
======================= */
section.bg-primary h2,
section.bg-primary p {
  color: #fff;
}

/* =======================
   NAVBAR
======================= */
.navbar {
  font-weight: 600;
}

.navbar .nav-link {
  transition: color 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #2f7d32 !important;
}

/* =======================
   FOOTER
======================= */
footer {
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  font-size: 0.9rem;
}

footer a {
  color: #2f7d32;
  text-decoration: none;
}

footer a:hover {
  color: #256a2a;
  text-decoration: underline;
}

/* =======================
   RESPONSIVIDADE
======================= */
@media (max-width: 768px) {
  h1.display-5 {
    font-size: 2rem;
  }

  .btn-lg {
    font-size: 1rem;
    padding: 0.5rem 1.2rem;
  }

  section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

/* =======================
   DARK MODE
======================= */
html.dark-mode {
  background-color: #121212 !important;
  color: #e3e3e3 !important;
}

html.dark-mode a {
  color: #bb86fc !important;
}

html.dark-mode .bg-light,
html.dark-mode .bg-white,
html.dark-mode .card,
html.dark-mode .container,
html.dark-mode .list-group-item {
  background-color: #2a2a2a !important;
  color: #f5f5f5 !important;
  border-color: #444 !important;
}

html.dark-mode .navbar {
  background-color: #2a2a2a !important;
}

html.dark-mode .navbar .nav-link {
  color: #f5f5f5 !important;
}

html.dark-mode .navbar .nav-link:hover,
html.dark-mode .navbar .nav-link:focus {
  color: #9be28e !important;
}

html.dark-mode footer {
  background-color: #1e1e1e !important;
  color: #ccc !important;
}

html.dark-mode footer a {
  color: #9be28e !important;
}

html.dark-mode footer a:hover {
  color: #b9f3a9 !important;
}

html.dark-mode .btn-primary {
  background-color: #2f7d32 !important;
  border-color: #2f7d32 !important;
  color: #fff !important;
}

html.dark-mode .btn-primary:hover {
  background-color: #256a2a !important;
  border-color: #256a2a !important;
}

html.dark-mode .text-muted {
  color: #bbb !important;
}

html.dark-mode hr {
  background-color: #444 !important;
  border-color: #444 !important;
}

html.dark-mode .navbar-brand img {
  filter: invert(1) hue-rotate(180deg) brightness(1.05) contrast(1.05) !important;
}

/* =======================
   HOME BRAND
======================= */
.home-page {
  --brand-ink: #1f1b16;
  --brand-green: #2f7d32;
  --brand-green-strong: #256a2a;
  --brand-sage: #63b05b;
  --brand-sand: #f6e4a4;
  --brand-cream: #fff8e6;
  --brand-stone: #f4f1e8;
  --brand-shadow: rgba(31, 27, 22, 0.14);
  color: var(--brand-ink);
}

.home-page .home-hero {
  position: relative;
  overflow: hidden;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  background: radial-gradient(1200px 400px at 10% 10%, #fff3c9 0%, #fff8e9 45%, #f4f1e8 100%);
  border-bottom: 1px solid #efe1c4;
}

.home-page .home-hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  top: -140px;
  right: -120px;
  background: radial-gradient(circle, rgba(99, 176, 91, 0.18) 0%, rgba(99, 176, 91, 0) 70%);
}

.home-page .home-hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  bottom: -140px;
  left: -80px;
  background: radial-gradient(circle, rgba(244, 196, 78, 0.2) 0%, rgba(244, 196, 78, 0) 70%);
}

.home-page .home-logo {
  width: 140px;
  height: auto;
  display: block;
  margin-bottom: 0.75rem;
}

.home-page .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--brand-cream);
  color: var(--brand-ink);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.home-page .hero-title {
  font-size: clamp(2rem, 2.6vw, 3rem);
  font-weight: 700;
  margin: 0.75rem 0 0.6rem;
}

.home-page .hero-accent {
  color: var(--brand-green);
}

.home-page .hero-lead {
  color: #5a544c;
  font-size: 1.1rem;
  margin-bottom: 1.4rem;
}

.home-page .home-quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.home-page .quicklinks-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b645c;
  font-weight: 600;
}

.home-page .quicklink {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #efe1c4;
  background: #fff;
  color: #3d2f1a;
  font-size: 0.85rem;
  text-decoration: none;
}

.home-page .quicklink:hover {
  background: #f6e8c6;
  color: #2a241c;
}

.home-page .hero-panel {
  position: relative;
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 16px 40px rgba(31, 27, 22, 0.08);
  border: 1px solid #f0e5c9;
}

.home-page .panel-title {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.home-page .panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.home-page .panel-header .panel-title {
  margin-bottom: 0.2rem;
}

.home-page .panel-subtitle {
  font-size: 0.85rem;
  color: #6b645c;
}

.home-page .panel-stack {
  display: grid;
  gap: 0.8rem;
}

.home-page .panel-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 0.6rem;
  border-top: 1px solid #efe1c4;
}

.home-page .panel-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.home-page .panel-item-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b645c;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.home-page .panel-item-name {
  font-weight: 600;
  color: #2a241c;
}

.home-page .panel-cta {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.home-page .home-checklist {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
  color: #5a544c;
}

.home-page .home-checklist li {
  padding-left: 2rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.home-page .home-checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: rgba(47, 125, 50, 0.15);
  color: var(--brand-green);
  font-weight: 700;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-page .home-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-page .home-stat {
  background: #fff;
  border: 1px solid #efe1c4;
  border-radius: 0.9rem;
  padding: 0.6rem 0.9rem;
  min-width: 140px;
  box-shadow: 0 8px 18px rgba(31, 27, 22, 0.06);
}

.home-page .home-stat strong {
  display: block;
  font-size: 1.2rem;
  color: var(--brand-green);
}

.home-page .stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b645c;
  font-weight: 600;
}

.home-page .home-actions {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.home-page .home-card {
  border-radius: 1.2rem;
  border: 1px solid #efe1c4;
  box-shadow: 0 10px 24px rgba(31, 27, 22, 0.06);
}

.home-page .home-action-btn {
  font-weight: 600;
}

.home-page .home-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.home-page .home-card .card-text {
  margin-bottom: auto;
}

.home-page .home-action-btn {
  align-self: flex-start;
}




.home-page .hero-note {
  margin-top: 1rem;
  color: #6b645c;
  font-size: 0.95rem;
}

.home-page .section-head {
  margin-bottom: 2rem;
}

.home-page .section-title {
  font-size: clamp(1.6rem, 2.3vw, 2.4rem);
  margin: 0;
  font-weight: 700;
}

.home-page .section-lead {
  margin: 0.4rem 0 0;
  color: #6b645c;
  max-width: 720px;
}

.home-page .home-pillars {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  background: var(--brand-stone);
  border-top: 1px solid #efe1c4;
  border-bottom: 1px solid #efe1c4;
}

.home-page .pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.home-page .pillar-card {
  background: #fff;
  border: 1px solid #efe1c4;
  border-radius: 1.4rem;
  padding: 1.4rem;
  box-shadow: 0 16px 32px rgba(31, 27, 22, 0.06);
}

.home-page .pillar-title {
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.home-page .pillar-text {
  color: #5a544c;
  margin-bottom: 0.9rem;
}

.home-page .pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.home-page .pillar-tags span {
  background: var(--brand-cream);
  border: 1px solid #ecd9ae;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #3d2f1a;
}

.home-page .home-feature {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.home-page .home-questions {
  background: #fff;
}

.home-page .home-flashcards {
  background: #fff8e6;
  border-top: 1px solid #efe1c4;
  border-bottom: 1px solid #efe1c4;
}

.home-page .home-stats-hub {
  background: #fff;
  border-top: 1px solid #efe1c4;
}

.home-page .feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.home-page .feature-copy {
  display: grid;
  gap: 1rem;
}

.home-page .feature-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
  color: #5a544c;
}

.home-page .feature-list li {
  padding-left: 1.8rem;
  position: relative;
}

.home-page .feature-list li::before {
  content: "¹3";
  position: absolute;
  left: 0;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: rgba(47, 125, 50, 0.15);
  color: var(--brand-green);
  font-weight: 700;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-page .feature-list li::before {
  content: "\2713";
}

.home-page .feature-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.home-page .feature-note {
  font-size: 0.85rem;
  color: #6b645c;
}

.home-page .home-carousel {
  background: #fff;
  border: 1px solid #efe1c4;
  border-radius: 1.4rem;
  padding: 0.85rem;
  box-shadow: 0 18px 36px rgba(31, 27, 22, 0.08);
}

.home-page .home-carousel .carousel-inner {
  height: clamp(240px, 32vw, 460px);
  border-radius: 1rem;
  overflow: hidden;
}

.home-page .home-carousel .carousel-item {
  height: 100%;
}

.home-page .home-carousel .carousel-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.9rem;
}

.home-page .home-carousel .carousel-indicators {
  margin-bottom: 0;
}

.home-page .home-carousel .carousel-indicators [data-bs-target] {
  background-color: var(--brand-green);
  opacity: 0.35;
}

.home-page .home-carousel .carousel-indicators .active {
  opacity: 1;
}

.home-page .home-carousel .carousel-control-prev-icon,
.home-page .home-carousel .carousel-control-next-icon {
  filter: drop-shadow(0 3px 4px rgba(31, 27, 22, 0.25));
}

.home-page .carousel-fade .carousel-item {
  transition: opacity 0.9s ease-in-out;
}

.home-page .home-share {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  background: linear-gradient(180deg, #fffdf6 0%, #fff8e6 100%);
  border-top: 1px solid #efe1c4;
  border-bottom: 1px solid #efe1c4;
}

.home-page .share-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
  align-items: center;
}

.home-page .share-card {
  background: #fff;
  border: 1px solid #efe1c4;
  border-radius: 1.2rem;
  padding: 1.3rem;
  box-shadow: 0 16px 32px rgba(31, 27, 22, 0.06);
}

.home-page .share-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b645c;
  font-weight: 600;
}

.home-page .share-title {
  margin: 0.6rem 0 0.4rem;
  font-weight: 700;
}

.home-page .share-text {
  color: #6b645c;
  margin: 0 0 0.8rem;
}

.home-page .share-pill {
  display: inline-flex;
  align-items: center;
  background: var(--brand-cream);
  border: 1px solid #ecd9ae;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #3d2f1a;
}

.home-page .share-note {
  margin-top: 1rem;
  color: #6b645c;
  font-size: 0.9rem;
}

.home-page .home-cta {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.home-page .cta-note {
  font-size: 0.9rem;
  opacity: 0.85;
}

@media (max-width: 992px) {
  .home-page .feature-grid {
    grid-template-columns: 1fr;
  }
}

.home-page .home-shelf {
  background: var(--brand-stone);
}

.home-page .shelf-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 2rem;
}

.home-page .shelf-title {
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  margin: 0.4rem 0 0.6rem;
  font-weight: 700;
}

.home-page .shelf-group {
  background: #fff;
  border: 1px solid #efe1c4;
  border-radius: 1.4rem;
  padding: 1.5rem;
  box-shadow: 0 16px 32px rgba(31, 27, 22, 0.06);
  margin-bottom: 1.5rem;
}

.home-page .shelf-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.home-page .shelf-group-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--brand-green);
}

.home-page .shelf-group-title i {
  font-size: 1.1rem;
}

.home-page .shelf-meta {
  font-size: 0.85rem;
  color: #6b645c;
  background: var(--brand-cream);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.home-page .shelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.home-page .shelf-card {
  background: #fff8e6;
  border: 1px solid #f1e4c7;
  border-radius: 1rem;
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-page .shelf-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(31, 27, 22, 0.12);
}

.home-page .shelf-card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.home-page .shelf-card-top > div {
  flex: 1 1 auto;
  min-width: 0;
}

.home-page .shelf-save {
  min-width: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  white-space: nowrap;
  align-self: flex-start;
}

.home-page .shelf-card-title {
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.home-page .shelf-card-meta {
  font-size: 0.85rem;
  color: #6b645c;
}

.home-page .shelf-card-subtext {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #6b645c;
}

.home-page .shelf-link {
  padding: 0;
  color: var(--brand-green);
  text-decoration: none;
}

.home-page .shelf-link:hover {
  text-decoration: underline;
}

.home-page .shelf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.home-page .shelf-tag {
  background: #fff;
  border: 1px solid #ecd9ae;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  color: #5a544c;
}

.home-page .shelf-tag strong {
  color: var(--brand-green);
  margin-left: 0.3rem;
}

.home-page .icon-bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-cream);
  color: var(--brand-green);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.home-page .bg-light {
  background-color: var(--brand-stone) !important;
}

.home-page .bg-primary {
  background: linear-gradient(120deg, #2f7d32 0%, #6dbb4b 100%) !important;
}

.home-page .text-primary {
  color: var(--brand-green) !important;
}

.home-page .btn-primary {
  background-color: var(--brand-green);
  border-color: var(--brand-green);
}

.home-page .btn-primary:hover {
  background-color: var(--brand-green-strong);
  border-color: var(--brand-green-strong);
}

.home-page .btn-outline-primary {
  border-color: var(--brand-green);
  color: var(--brand-green);
}

.home-page .btn-outline-primary:hover {
  background-color: var(--brand-green);
  border-color: var(--brand-green);
  color: #fff;
}

.home-page .btn-outline-secondary {
  border-color: #b79a5b;
  color: #3d2f1a;
}

.home-page .btn-outline-secondary:hover {
  background-color: #f6e8c6;
  border-color: #b79a5b;
}

.home-page .btn-outline-dark {
  border-color: #2f2a24;
}

.home-page .home-stagger > * {
  animation: homeRise 0.7s ease both;
}

.home-page .home-stagger > *:nth-child(2) {
  animation-delay: 0.08s;
}

.home-page .home-stagger > *:nth-child(3) {
  animation-delay: 0.16s;
}

.home-page .home-stagger > *:nth-child(4) {
  animation-delay: 0.24s;
}

@keyframes homeRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 992px) {
  .home-page .home-hero {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .home-page .home-logo {
    width: 120px;
  }

  .home-page .shelf-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .home-stagger > * {
    animation: none;
  }
}

/* =======================
   HOME DARK MODE
======================= */
html.dark-mode .home-page {
  color: #f5f5f5;
}

html.dark-mode .home-page .home-hero {
  background: radial-gradient(900px 320px at 15% 10%, rgba(47, 125, 50, 0.12) 0%, rgba(31, 31, 31, 0.95) 55%, #1a1a1a 100%);
  border-bottom-color: #2a2a2a;
}

html.dark-mode .home-page .home-hero::before {
  background: radial-gradient(circle, rgba(99, 176, 91, 0.2) 0%, rgba(99, 176, 91, 0) 70%);
}

html.dark-mode .home-page .home-hero::after {
  background: radial-gradient(circle, rgba(244, 196, 78, 0.16) 0%, rgba(244, 196, 78, 0) 70%);
}

html.dark-mode .home-page .hero-tag {
  background: #242424;
  color: #f5f5f5;
  border: 1px solid #333;
}

html.dark-mode .home-page .hero-title {
  color: #f5f5f5;
}

html.dark-mode .home-page .hero-lead {
  color: #cfcfcf;
}

html.dark-mode .home-page .quicklinks-label,
html.dark-mode .home-page .panel-subtitle {
  color: #cfcfcf;
}

html.dark-mode .home-page .panel-item {
  border-top-color: #333;
}

html.dark-mode .home-page .panel-item-title {
  color: #cfcfcf;
}

html.dark-mode .home-page .panel-item-name {
  color: #f5f5f5;
}

html.dark-mode .home-page .quicklink {
  background: #242424;
  border-color: #333;
  color: #f5f5f5;
}

html.dark-mode .home-page .quicklink:hover {
  background: #2f2f2f;
}

html.dark-mode .home-page .hero-panel,
html.dark-mode .home-page .home-stat,
html.dark-mode .home-page .home-card,
html.dark-mode .home-page .shelf-group,
html.dark-mode .home-page .shelf-card {
  background: #242424;
  border-color: #333;
  box-shadow: none;
}

html.dark-mode .home-page .home-checklist,
html.dark-mode .home-page .shelf-card-meta,
html.dark-mode .home-page .shelf-card-subtext,
html.dark-mode .home-page .stat-label {
  color: #cfcfcf;
}

html.dark-mode .home-page .home-checklist li::before {
  background: rgba(99, 176, 91, 0.2);
  color: #9be28e;
}

html.dark-mode .home-page .home-stat strong {
  color: #9be28e;
}




html.dark-mode .home-page .hero-note,
html.dark-mode .home-page .section-lead,
html.dark-mode .home-page .pillar-text,
html.dark-mode .home-page .feature-list,
html.dark-mode .home-page .feature-note,
html.dark-mode .home-page .share-text,
html.dark-mode .home-page .share-note {
  color: #cfcfcf;
}

html.dark-mode .home-page .home-pillars,
html.dark-mode .home-page .home-questions,
html.dark-mode .home-page .home-flashcards,
html.dark-mode .home-page .home-share,
html.dark-mode .home-page .home-stats-hub {
  background: #1c1c1c;
  border-color: #333;
}

html.dark-mode .home-page .pillar-card,
html.dark-mode .home-page .home-carousel,
html.dark-mode .home-page .share-card {
  background: #242424;
  border-color: #333;
  box-shadow: none;
}

html.dark-mode .home-page .pillar-tags span,
html.dark-mode .home-page .share-pill {
  background: #1f1f1f;
  border-color: #333;
  color: #d9d1c2;
}

html.dark-mode .home-page .feature-list li::before {
  background: rgba(99, 176, 91, 0.2);
  color: #9be28e;
}

html.dark-mode .home-page .home-carousel .carousel-indicators [data-bs-target] {
  background-color: #9be28e;
}

html.dark-mode .home-page .home-carousel .carousel-control-prev-icon,
html.dark-mode .home-page .home-carousel .carousel-control-next-icon {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

html.dark-mode .home-page .home-shelf {
  background: #1c1c1c;
}

html.dark-mode .home-page .shelf-group-title {
  color: #9be28e;
}

html.dark-mode .home-page .shelf-meta,
html.dark-mode .home-page .shelf-tag {
  background: #1f1f1f;
  border-color: #333;
  color: #d9d1c2;
}

html.dark-mode .home-page .shelf-tag strong {
  color: #9be28e;
}

html.dark-mode .home-page .icon-bubble {
  background: #1f1f1f;
  color: #9be28e;
}

html.dark-mode .home-page .bg-light,
html.dark-mode .home-page .bg-white {
  background-color: #1c1c1c !important;
}

html.dark-mode .home-page .btn-outline-secondary {
  border-color: #5c5140;
  color: #f0e7d4;
}

html.dark-mode .home-page .btn-outline-secondary:visited {
  border-color: #5c5140;
  color: #f0e7d4;
}

html.dark-mode .home-page .btn-outline-secondary:hover {
  background-color: #3a3428;
  border-color: #5c5140;
}

html.dark-mode .home-page .btn-outline-primary,
html.dark-mode .home-page .btn-outline-primary:visited,
html.dark-mode .home-page a.btn-outline-primary:visited,
html.dark-mode .home-page .home-action-btn:visited {
  border-color: #2f7d32 !important;
  color: #9be28e !important;
}

html.dark-mode .home-page .btn-outline-primary:hover {
  background-color: #2f7d32;
  border-color: #2f7d32;
  color: #ffffff;
}
/* =======================
   MEUS BARALHOS
======================= */
.baralhos-page {
  --brand-ink: #1f1b16;
  --brand-green: #2f7d32;
  --brand-green-strong: #256a2a;
  --brand-sage: #63b05b;
  --brand-sand: #f6e4a4;
  --brand-cream: #fff8e6;
  --brand-stone: #f4f1e8;
  --brand-shadow: rgba(31, 27, 22, 0.14);
  color: var(--brand-ink);
}

.baralhos-page .baralhos-hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0;
  background: radial-gradient(1200px 420px at 15% 10%, #fff3c9 0%, #fff8e9 45%, #f4f1e8 100%);
  border-bottom: 1px solid #efe1c4;
}

.baralhos-page .baralhos-hero::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  top: -140px;
  right: -110px;
  background: radial-gradient(circle, rgba(99, 176, 91, 0.18) 0%, rgba(99, 176, 91, 0) 70%);
}

.baralhos-page .baralhos-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  bottom: -130px;
  left: -90px;
  background: radial-gradient(circle, rgba(244, 196, 78, 0.2) 0%, rgba(244, 196, 78, 0) 70%);
}

.baralhos-page .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--brand-cream);
  color: var(--brand-ink);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.baralhos-page .hero-title {
  font-size: clamp(2rem, 2.6vw, 3rem);
  font-weight: 700;
  margin: 0.8rem 0 0.6rem;
}

.baralhos-page .hero-lead {
  color: #5a544c;
  font-size: 1.05rem;
  margin-bottom: 0;
}

.baralhos-page .hero-panel {
  position: relative;
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 16px 40px rgba(31, 27, 22, 0.08);
  border: 1px solid #f0e5c9;
}

.baralhos-page .panel-title {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.baralhos-page .hero-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  color: #5a544c;
}

.baralhos-page .hero-list li {
  padding-left: 2rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.baralhos-page .hero-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: rgba(47, 125, 50, 0.15);
  color: var(--brand-green);
  font-weight: 700;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.baralhos-page .baralhos-content {
  padding: 2.5rem 0 4rem;
  background: #fbf8f0;
}

.baralhos-page .empty-state {
  display: flex;
  justify-content: center;
}

.baralhos-page .empty-card {
  max-width: 520px;
  text-align: center;
  background: #fff;
  border: 1px solid #efe1c4;
  border-radius: 1.2rem;
  padding: 2rem;
  box-shadow: 0 16px 32px rgba(31, 27, 22, 0.08);
}

.baralhos-page .pasta-card {
  background: #fff;
  border: 1px solid #efe1c4;
  border-radius: 1.4rem;
  box-shadow: 0 16px 32px rgba(31, 27, 22, 0.06);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.baralhos-page .pasta-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f0e5c9;
}

.baralhos-page .pasta-title {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: none;
  background: none;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--brand-green);
  padding: 0;
}

.baralhos-page .pasta-title i {
  font-size: 1.2rem;
}

.baralhos-page .pasta-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.baralhos-page .pasta-meta {
  font-size: 0.85rem;
  color: #6b645c;
  background: var(--brand-cream);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
}

.baralhos-page .baralho-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.5rem;
}

.baralhos-page .baralho-card {
  background: #fff8e6;
  border: 1px solid #f1e4c7;
  border-radius: 1rem;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.baralhos-page .baralho-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.9rem;
  justify-content: space-between;
}

.baralhos-page .baralho-title {
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
  font-weight: 700;
  color: #2a241c;
}

.baralhos-page .baralho-sub {
  margin: 0;
  font-size: 0.85rem;
  color: #6b645c;
}

.baralhos-page .baralho-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.baralhos-page .baralho-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 0.6rem;
}

.baralhos-page .baralho-tool {
  width: 100%;
  background: #fff;
  border-color: #d8c89f;
  font-size: 0.85rem;
}

.baralhos-page .baralho-tool:hover {
  background: #f8efd3;
}

.baralhos-page .baralho-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.baralhos-page .baralho-counts .count-pill {
  background: #fff;
  border: 1px solid #ecd9ae;
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.85rem;
}

.baralhos-page .baralho-toggle-all {
  margin-top: 0.25rem;
}

.baralhos-page .assuntos-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.baralhos-page .assunto-item {
  background: #fff;
  border: 1px solid #f1e4c7;
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.baralhos-page .form-check-input:checked {
  background-color: var(--brand-green);
  border-color: var(--brand-green);
}

.baralhos-page .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(47, 125, 50, 0.25);
}

.baralhos-page .btn-primary {
  background-color: var(--brand-green);
  border-color: var(--brand-green);
}

.baralhos-page .btn-primary:hover {
  background-color: var(--brand-green-strong);
  border-color: var(--brand-green-strong);
}

.baralhos-page .btn-outline-secondary {
  border-color: #b79a5b;
  color: #3d2f1a;
}

.baralhos-page .btn-outline-secondary:hover {
  background-color: #f6e8c6;
  border-color: #b79a5b;
}

@media (max-width: 992px) {
  .baralhos-page .baralhos-hero {
    padding: 3rem 0;
  }
}

@media (max-width: 768px) {
  .baralhos-page .pasta-header {
    align-items: flex-start;
  }

  .baralhos-page .baralho-grid {
    grid-template-columns: 1fr;
  }

  .baralhos-page .baralho-head {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .baralhos-page .pasta-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .baralhos-page .pasta-actions {
    width: 100%;
    justify-content: space-between;
  }

  .baralhos-page .baralho-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .baralhos-page .baralho-actions .btn {
    width: 100%;
  }
}

html.dark-mode .baralhos-page {
  color: #f5f5f5;
}

html.dark-mode .baralhos-page .baralhos-hero {
  background: #1f1f1f;
  border-color: #333;
}

html.dark-mode .baralhos-page .hero-panel,
html.dark-mode .baralhos-page .pasta-card,
html.dark-mode .baralhos-page .baralho-card,
html.dark-mode .baralhos-page .assunto-item,
html.dark-mode .baralhos-page .empty-card {
  background: #2a2a2a;
  border-color: #444;
  box-shadow: none;
}

html.dark-mode .baralhos-page .baralhos-content {
  background: #1c1c1c;
}

html.dark-mode .baralhos-page .pasta-header {
  border-color: #444;
}

html.dark-mode .baralhos-page .hero-lead,
html.dark-mode .baralhos-page .baralho-sub {
  color: #cfcfcf;
}

html.dark-mode .baralhos-page .baralho-title,
html.dark-mode .baralhos-page .pasta-title {
  color: #f5f5f5;
}

html.dark-mode .baralhos-page .hero-list {
  color: #cfcfcf;
}

html.dark-mode .baralhos-page .hero-list li::before {
  background: rgba(99, 176, 91, 0.2);
  color: #9be28e;
}

html.dark-mode .baralhos-page .pasta-meta {
  background: #1f1f1f;
  color: #cfcfcf;
}

html.dark-mode .baralhos-page .baralho-counts .count-pill {
  background: #1f1f1f;
  border-color: #444;
}

html.dark-mode .baralhos-page .btn-primary {
  background-color: #2f7d32 !important;
  border-color: #2f7d32 !important;
  color: #fff !important;
}

html.dark-mode .baralhos-page .btn-primary:hover {
  background-color: #256a2a !important;
  border-color: #256a2a !important;
}

html.dark-mode .baralhos-page .baralho-actions .btn.btn-primary {
  background-color: #2f7d32 !important;
  border-color: #2f7d32 !important;
  color: #fff !important;
}

html.dark-mode .baralhos-page .btn-outline-secondary {
  border-color: #5c5140;
  color: #f0e7d4;
}

html.dark-mode .baralhos-page .btn-outline-secondary:hover {
  background-color: #3a3428;
  border-color: #5c5140;
}

html.dark-mode .baralhos-page .baralho-tool {
  background: #1f1f1f;
  border-color: #5c5140;
  color: #f0e7d4;
}

html.dark-mode .baralhos-page .baralho-tool:hover {
  background: #2b241a;
}

/* =======================
   CRIAR CADERNO
======================= */
.caderno-page {
  --brand-ink: #1f1b16;
  --brand-green: #2f7d32;
  --brand-green-strong: #256a2a;
  --brand-sage: #63b05b;
  --brand-sand: #f6e4a4;
  --brand-cream: #fff8e6;
  --brand-stone: #f4f1e8;
  --brand-shadow: rgba(31, 27, 22, 0.14);
  color: var(--brand-ink);
}

.caderno-page .caderno-hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0;
  background: radial-gradient(1200px 420px at 15% 10%, #fff3c9 0%, #fff8e9 45%, #f4f1e8 100%);
  border-bottom: 1px solid #efe1c4;
}

.caderno-page .caderno-hero::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  top: -140px;
  right: -110px;
  background: radial-gradient(circle, rgba(99, 176, 91, 0.18) 0%, rgba(99, 176, 91, 0) 70%);
}

.caderno-page .caderno-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  bottom: -130px;
  left: -90px;
  background: radial-gradient(circle, rgba(244, 196, 78, 0.2) 0%, rgba(244, 196, 78, 0) 70%);
}

.caderno-page .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--brand-cream);
  color: var(--brand-ink);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.caderno-page .hero-title {
  font-size: clamp(2rem, 2.6vw, 3rem);
  font-weight: 700;
  margin: 0.8rem 0 0.6rem;
}

.caderno-page .hero-lead {
  color: #5a544c;
  font-size: 1.05rem;
  margin-bottom: 0;
}

.caderno-page .hero-panel {
  position: relative;
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 16px 40px rgba(31, 27, 22, 0.08);
  border: 1px solid #f0e5c9;
}

.caderno-page .panel-title {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.caderno-page .hero-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  counter-reset: step;
}

.caderno-page .hero-steps li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: #453b30;
}

.caderno-page .hero-steps li::before {
  counter-increment: step;
  content: counter(step);
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: #f2e1b9;
  color: #5b4b39;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.caderno-page .caderno-aside {
  position: sticky;
  top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.caderno-page .hero-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  color: #5a544c;
}

.caderno-page .hero-list li {
  padding-left: 2rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.caderno-page .hero-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: rgba(47, 125, 50, 0.15);
  color: var(--brand-green);
  font-weight: 700;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.caderno-page .caderno-content {
  padding: 2.5rem 0 4rem;
  background: #fbf8f0;
}

.caderno-page .caderno-layout {
  align-items: flex-start;
}

.caderno-page .caderno-filter-bar {
  background: #fff;
  border: 1px solid #efe1c4;
  border-radius: 1.1rem;
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 12px 24px rgba(31, 27, 22, 0.06);
}

.caderno-page .filter-bar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.caderno-page .caderno-main {
  align-items: stretch;
  --caderno-main-height: 640px;
}

.caderno-page .caderno-main > .col-lg-4,
.caderno-page .caderno-main > .col-lg-8 {
  display: flex;
  height: var(--caderno-main-height);
}

.caderno-page .caderno-main > .col-lg-8 {
  flex-direction: column;
}

.caderno-page .caderno-materias {
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.caderno-page .caderno-materias .tree-card {
  height: 100%;
  flex: 1 1 auto;
  min-height: 360px;
  max-height: none;
  overflow: auto;
}

.caderno-page .caderno-summary {
  height: 220px;
  display: flex;
  flex-direction: column;
}

.caderno-page .caderno-breakdown {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.caderno-page .caderno-breakdown .resumo-table-wrap {
  flex: 1 1 auto;
  max-height: none;
}

.caderno-page .caderno-footer .btn {
  min-height: 44px;
}

.caderno-page .caderno-panel {
  background: #fff;
  border: 1px solid #efe1c4;
  border-radius: 1.4rem;
  box-shadow: 0 16px 32px rgba(31, 27, 22, 0.06);
  padding: 1.6rem;
}

.caderno-page .panel-header {
  margin-bottom: 1.2rem;
}

.caderno-page .panel-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--brand-cream);
  color: #6b645c;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.caderno-page .panel-lead {
  margin: 0.5rem 0 0;
  color: #6b645c;
  font-size: 0.95rem;
}

.caderno-page .form-control,
.caderno-page .form-select {
  border-radius: 0.85rem;
  border-color: #ecd9ae;
  padding: 0.65rem 0.9rem;
}

.caderno-page .filter-card {
  background: #fff8e6;
  border: 1px solid #f1e4c7;
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 1.2rem;
}

.caderno-page .filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.caderno-page .filter-note {
  margin: 0.6rem 0 0;
  color: #6b645c;
  font-size: 0.85rem;
}

.caderno-page .form-text {
  color: #6b645c;
  font-size: 0.8rem;
}

.caderno-page .caderno-live-grid {
  margin-top: 0.5rem;
}

.caderno-page .questoes-status {
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}

.caderno-page .questoes-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 380px;
  overflow: auto;
  padding-right: 0.35rem;
}

.caderno-page .questao-item {
  background: #fff8e6;
  border: 1px solid #f1e4c7;
  border-radius: 0.85rem;
  padding: 0.75rem;
}

.caderno-page .questao-meta {
  font-size: 0.75rem;
  color: #6b645c;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.caderno-page .questao-text {
  margin-top: 0.45rem;
  font-size: 0.9rem;
  color: #2a241e;
}

.caderno-page .summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}

.caderno-page .summary-card {
  background: #fff8e6;
  border: 1px solid #f1e4c7;
  border-radius: 0.85rem;
  padding: 0.75rem;
}

.caderno-page .summary-label {
  font-size: 0.7rem;
  color: #6b645c;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.caderno-page .summary-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f1b16;
}

.caderno-page .resumo-table-wrap {
  max-height: 360px;
  overflow: auto;
  border: 1px solid #efe1c4;
  border-radius: 0.9rem;
}

.caderno-page .resumo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.caderno-page .resumo-table th,
.caderno-page .resumo-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #efe1c4;
}

.caderno-page .resumo-table th {
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b645c;
  background: #fff8e6;
  position: sticky;
  top: 0;
  z-index: 1;
}

.caderno-page .resumo-row.resumo-materia td {
  font-weight: 600;
  color: #2a241e;
}

.caderno-page .resumo-row.resumo-assunto td:first-child {
  padding-left: 1.6rem;
  color: #5a544c;
}

.caderno-page .filters-summary {
  margin-top: 1rem;
}

.caderno-page .filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
  height: 120px;
  max-height: 120px;
  overflow: auto;
  align-content: flex-start;
  padding-right: 0.25rem;
}

.caderno-page .filter-chip {
  background: #f0e2c2;
  border: 1px solid #e2cfaa;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  color: #4f463c;
}

.caderno-page .tree-card {
  background: #fffdf7;
  border: 1px solid #efe1c4;
  border-radius: 1.1rem;
  padding: 1rem;
  height: 420px;
  overflow: auto;
  padding-right: 0.35rem;
}

.caderno-page .tree {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.caderno-page .tree-node {
  background: #fff8e6;
  border: 1px solid #f1e4c7;
  border-radius: 1rem;
  padding: 0.9rem;
}

.caderno-page .tree-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.caderno-page .tree-toggle {
  background: none;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #2a241c;
  font-weight: 700;
  text-align: left;
  flex: 1;
}

.caderno-page .tree-toggle i {
  color: var(--brand-green);
  font-size: 1.1rem;
}

.caderno-page .tree-count {
  font-size: 0.85rem;
  color: #6b645c;
}

.caderno-page .tree-children {
  list-style: none;
  margin: 0.75rem 0 0;
  padding-left: 0;
  display: grid;
  gap: 0.5rem;
}

.caderno-page .tree-leaf {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  border: 1px solid #f1e4c7;
  border-radius: 0.75rem;
  padding: 0.45rem 0.6rem;
}

.caderno-page .tree-leaf .tree-count {
  margin-left: auto;
}

.caderno-page .hidden {
  display: none;
}

.caderno-page .form-check-input:checked {
  background-color: var(--brand-green);
  border-color: var(--brand-green);
}

.caderno-page .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(47, 125, 50, 0.25);
}

.caderno-page .btn-primary {
  background-color: var(--brand-green);
  border-color: var(--brand-green);
}

.caderno-page .btn-primary:hover {
  background-color: var(--brand-green-strong);
  border-color: var(--brand-green-strong);
}

@media (max-width: 992px) {
  .caderno-page .caderno-hero {
    padding: 3rem 0;
  }

  .caderno-page .caderno-aside {
    position: static;
  }

  .caderno-page .caderno-main {
    --caderno-main-height: auto;
  }

  .caderno-page .caderno-main > .col-lg-4,
  .caderno-page .caderno-main > .col-lg-8 {
    height: auto;
  }

  .caderno-page .caderno-summary {
    height: auto;
  }

  .caderno-page .caderno-materias .tree-card {
    height: 420px;
  }
}

@media (max-width: 576px) {
  .caderno-page .tree-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .caderno-page .tree-toggle {
    width: 100%;
  }
}

html.dark-mode .caderno-page {
  color: #f5f5f5;
}

html.dark-mode .caderno-page .caderno-hero {
  background: #1f1f1f;
  border-color: #333;
}

html.dark-mode .caderno-page .hero-panel,
html.dark-mode .caderno-page .caderno-panel,
html.dark-mode .caderno-page .tree-card,
html.dark-mode .caderno-page .tree-node,
html.dark-mode .caderno-page .tree-leaf {
  background: #2a2a2a;
  border-color: #444;
  box-shadow: none;
}

html.dark-mode .caderno-page .filter-card {
  background: #26231c;
  border-color: #3b3326;
}

html.dark-mode .caderno-page .form-text,
html.dark-mode .caderno-page .filter-note {
  color: #c9c1b6;
}

html.dark-mode .caderno-page .questao-item,
html.dark-mode .caderno-page .summary-card {
  background: #26231c;
  border-color: #3b3326;
}

html.dark-mode .caderno-page .questao-meta,
html.dark-mode .caderno-page .summary-label,
html.dark-mode .caderno-page .questoes-status {
  color: #c9c1b6;
}

html.dark-mode .caderno-page .questao-text,
html.dark-mode .caderno-page .summary-value {
  color: #f5f0e6;
}

html.dark-mode .caderno-page .filter-chip {
  background: #2f2a21;
  border-color: #403628;
  color: #e5dccf;
}

html.dark-mode .caderno-page .caderno-filter-bar {
  background: #2a2a2a;
  border-color: #444;
  box-shadow: none;
}

html.dark-mode .caderno-page .resumo-table-wrap {
  border-color: #3b3326;
}

html.dark-mode .caderno-page .resumo-table th,
html.dark-mode .caderno-page .resumo-table td {
  border-bottom-color: #3b3326;
}

html.dark-mode .caderno-page .resumo-table th {
  background: #26231c;
  color: #c9c1b6;
}

html.dark-mode .caderno-page .resumo-row.resumo-materia td {
  color: #f5f0e6;
}

html.dark-mode .caderno-page .resumo-row.resumo-assunto td:first-child {
  color: #c9c1b6;
}

html.dark-mode .caderno-page .caderno-content {
  background: #1c1c1c;
}

html.dark-mode .caderno-page .hero-lead,
html.dark-mode .caderno-page .panel-lead,
html.dark-mode .caderno-page .tree-count {
  color: #cfcfcf;
}

html.dark-mode .caderno-page .hero-steps li {
  color: #e0d7c7;
}

html.dark-mode .caderno-page .hero-steps li::before {
  background: #3b3326;
  color: #e5dccf;
}

html.dark-mode .caderno-page .tree-toggle {
  color: #f5f5f5;
}

html.dark-mode .caderno-page .tree-toggle i {
  color: #9be28e;
}

html.dark-mode .caderno-page .panel-tag {
  background: #1f1f1f;
  border: 1px solid #333;
  color: #cfcfcf;
}

/* =======================
   RENOMEAR PASTA
======================= */
.renomear-page {
  --brand-ink: #1f1b16;
  --brand-green: #2f7d32;
  --brand-green-strong: #256a2a;
  --brand-sage: #63b05b;
  --brand-sand: #f6e4a4;
  --brand-cream: #fff8e6;
  --brand-stone: #f4f1e8;
  --brand-shadow: rgba(31, 27, 22, 0.14);
  color: var(--brand-ink);
}

.renomear-page .renomear-hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0;
  background: radial-gradient(1200px 420px at 15% 10%, #fff3c9 0%, #fff8e9 45%, #f4f1e8 100%);
  border-bottom: 1px solid #efe1c4;
}

.renomear-page .renomear-hero::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  top: -140px;
  right: -110px;
  background: radial-gradient(circle, rgba(99, 176, 91, 0.18) 0%, rgba(99, 176, 91, 0) 70%);
}

.renomear-page .renomear-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  bottom: -130px;
  left: -90px;
  background: radial-gradient(circle, rgba(244, 196, 78, 0.2) 0%, rgba(244, 196, 78, 0) 70%);
}

.renomear-page .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--brand-cream);
  color: var(--brand-ink);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.renomear-page .hero-title {
  font-size: clamp(2rem, 2.6vw, 3rem);
  font-weight: 700;
  margin: 0.8rem 0 0.6rem;
}

.renomear-page .hero-lead {
  color: #5a544c;
  font-size: 1.05rem;
  margin-bottom: 0;
}

.renomear-page .hero-panel {
  position: relative;
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 16px 40px rgba(31, 27, 22, 0.08);
  border: 1px solid #f0e5c9;
}

.renomear-page .panel-title {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.renomear-page .hero-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  color: #5a544c;
}

.renomear-page .hero-list li {
  padding-left: 2rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.renomear-page .hero-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: rgba(47, 125, 50, 0.15);
  color: var(--brand-green);
  font-weight: 700;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.renomear-page .renomear-content {
  padding: 2.5rem 0 4rem;
  background: #fbf8f0;
}

.renomear-page .renomear-card {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #efe1c4;
  border-radius: 1.4rem;
  box-shadow: 0 16px 32px rgba(31, 27, 22, 0.06);
  padding: 1.8rem;
}

.renomear-page .card-header {
  margin-bottom: 1.5rem;
}

.renomear-page .panel-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--brand-cream);
  color: #6b645c;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.renomear-page .panel-lead {
  margin: 0.5rem 0 0;
  color: #6b645c;
  font-size: 0.95rem;
}

.renomear-page .form-control {
  border-radius: 0.85rem;
  border-color: #ecd9ae;
  padding: 0.65rem 0.9rem;
}

.renomear-page .renomear-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.renomear-page .btn-primary {
  background-color: var(--brand-green);
  border-color: var(--brand-green);
}

.renomear-page .btn-primary:hover {
  background-color: var(--brand-green-strong);
  border-color: var(--brand-green-strong);
}

.renomear-page .btn-outline-secondary {
  border-color: #b79a5b;
  color: #3d2f1a;
}

.renomear-page .btn-outline-secondary:hover {
  background-color: #f6e8c6;
  border-color: #b79a5b;
}

@media (max-width: 992px) {
  .renomear-page .renomear-hero {
    padding: 3rem 0;
  }
}

@media (max-width: 576px) {
  .renomear-page .renomear-actions {
    flex-direction: column;
  }

  .renomear-page .renomear-actions .btn {
    width: 100%;
  }
}

html.dark-mode .renomear-page {
  color: #f5f5f5;
}

html.dark-mode .renomear-page .renomear-hero {
  background: #1f1f1f;
  border-color: #333;
}

html.dark-mode .renomear-page .hero-panel,
html.dark-mode .renomear-page .renomear-card {
  background: #2a2a2a;
  border-color: #444;
  box-shadow: none;
}

html.dark-mode .renomear-page .renomear-content {
  background: #1c1c1c;
}

html.dark-mode .renomear-page .hero-lead,
html.dark-mode .renomear-page .panel-lead {
  color: #cfcfcf;
}

html.dark-mode .renomear-page .panel-tag {
  background: #1f1f1f;
  border: 1px solid #333;
  color: #cfcfcf;
}

html.dark-mode .renomear-page .btn-outline-secondary {
  border-color: #5c5140;
  color: #f0e7d4;
}

html.dark-mode .renomear-page .btn-outline-secondary:hover {
  background-color: #3a3428;
  border-color: #5c5140;
}

/* =======================
   BRAND BREADCRUMB
======================= */
.breadcrumb-brand {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  max-width: 100%;
  padding: 0.45rem 0.9rem;
  margin-bottom: 0;
  background: #fff8e6;
  border: 1px solid #efe1c4;
  border-radius: 0.9rem;
  box-shadow: 0 12px 30px rgba(31, 27, 22, 0.08);
  font-size: 0.85rem;
}

.breadcrumb-brand a {
  color: #3d2f1a;
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb-brand a:hover {
  color: #2f7d32;
}

.breadcrumb-brand .breadcrumb-item.active {
  color: #6b645c;
  font-weight: 600;
}

.breadcrumb-brand .breadcrumb-item + .breadcrumb-item::before {
  color: #c2a36d;
  opacity: 0.7;
}

html.dark-mode .breadcrumb-brand {
  background: #2a2a2a;
  border-color: #444;
  box-shadow: none;
}

html.dark-mode .breadcrumb-brand a {
  color: #e6e0d5;
}

html.dark-mode .breadcrumb-brand .breadcrumb-item.active {
  color: #f5f5f5;
}

html.dark-mode .breadcrumb-brand .breadcrumb-item + .breadcrumb-item::before {
  color: #777;
}

/* =======================
   VISUALIZAR PASTA
======================= */
.visualizar-page {
  --brand-ink: #1f1b16;
  --brand-green: #2f7d32;
  --brand-green-strong: #256a2a;
  --brand-sage: #63b05b;
  --brand-sand: #f6e4a4;
  --brand-cream: #fff8e6;
  --brand-stone: #f4f1e8;
  --brand-shadow: rgba(31, 27, 22, 0.14);
  color: var(--brand-ink);
}

.visualizar-page .visualizar-hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0;
  background: radial-gradient(1200px 420px at 15% 10%, #fff3c9 0%, #fff8e9 45%, #f4f1e8 100%);
  border-bottom: 1px solid #efe1c4;
}

.visualizar-page .visualizar-hero::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  top: -140px;
  right: -110px;
  background: radial-gradient(circle, rgba(99, 176, 91, 0.18) 0%, rgba(99, 176, 91, 0) 70%);
}

.visualizar-page .visualizar-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  bottom: -130px;
  left: -90px;
  background: radial-gradient(circle, rgba(244, 196, 78, 0.2) 0%, rgba(244, 196, 78, 0) 70%);
}

.visualizar-page .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--brand-cream);
  color: var(--brand-ink);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.visualizar-page .hero-title {
  font-size: clamp(2rem, 2.6vw, 3rem);
  font-weight: 700;
  margin: 0.8rem 0 0.6rem;
}

.visualizar-page .hero-lead {
  color: #5a544c;
  font-size: 1.05rem;
  margin-bottom: 0;
}

.visualizar-page .hero-panel {
  position: relative;
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 16px 40px rgba(31, 27, 22, 0.08);
  border: 1px solid #f0e5c9;
}

.visualizar-page .panel-title {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.visualizar-page .hero-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  color: #5a544c;
}

.visualizar-page .hero-list li {
  padding-left: 2rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.visualizar-page .hero-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: rgba(47, 125, 50, 0.15);
  color: var(--brand-green);
  font-weight: 700;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.visualizar-page .visualizar-content {
  padding: 2.5rem 0 4rem;
  background: #fbf8f0;
}

.visualizar-page .cadernos-grid {
  display: grid;
  gap: 1rem;
}

.visualizar-page .caderno-card {
  background: #fff;
  border: 1px solid #efe1c4;
  border-radius: 1.2rem;
  box-shadow: 0 16px 32px rgba(31, 27, 22, 0.06);
  padding: 1.3rem;
}

.visualizar-page .caderno-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.visualizar-page .caderno-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.visualizar-page .caderno-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2a241c;
  text-decoration: none;
}

.visualizar-page .caderno-title:hover {
  color: var(--brand-green);
}

.visualizar-page .caderno-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: #6b645c;
  font-size: 0.85rem;
}

.visualizar-page .status-pill {
  background: var(--brand-cream);
  border: 1px solid #ecd9ae;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-weight: 600;
  color: var(--brand-green);
}

.visualizar-page .caderno-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.visualizar-page .btn-primary {
  background-color: var(--brand-green);
  border-color: var(--brand-green);
}

.visualizar-page .btn-primary:hover {
  background-color: var(--brand-green-strong);
  border-color: var(--brand-green-strong);
}

.visualizar-page .btn-outline-secondary {
  border-color: #b79a5b;
  color: #3d2f1a;
}

.visualizar-page .btn-outline-secondary:hover {
  background-color: #f6e8c6;
  border-color: #b79a5b;
}

.visualizar-page .empty-card {
  max-width: 520px;
  text-align: center;
  background: #fff;
  border: 1px solid #efe1c4;
  border-radius: 1.2rem;
  padding: 2rem;
  box-shadow: 0 16px 32px rgba(31, 27, 22, 0.08);
  margin: 0 auto;
}

@media (max-width: 992px) {
  .visualizar-page .visualizar-hero {
    padding: 3rem 0;
  }
}

@media (max-width: 576px) {
  .visualizar-page .caderno-actions {
    width: 100%;
  }

  .visualizar-page .caderno-actions .btn {
    width: 100%;
  }
}

html.dark-mode .visualizar-page {
  color: #f5f5f5;
}

html.dark-mode .visualizar-page .visualizar-hero {
  background: #1f1f1f;
  border-color: #333;
}

html.dark-mode .visualizar-page .hero-panel,
html.dark-mode .visualizar-page .caderno-card,
html.dark-mode .visualizar-page .empty-card {
  background: #2a2a2a;
  border-color: #444;
  box-shadow: none;
}

html.dark-mode .visualizar-page .visualizar-content {
  background: #1c1c1c;
}

html.dark-mode .visualizar-page .hero-lead,
html.dark-mode .visualizar-page .caderno-meta {
  color: #cfcfcf;
}

html.dark-mode .visualizar-page .caderno-title {
  color: #f5f5f5;
}

html.dark-mode .visualizar-page .status-pill {
  background: #1f1f1f;
  border-color: #333;
  color: #9be28e;
}

html.dark-mode .visualizar-page .btn-outline-secondary {
  border-color: #5c5140;
  color: #f0e7d4;
}

html.dark-mode .visualizar-page .btn-outline-secondary:hover {
  background-color: #3a3428;
  border-color: #5c5140;
}

/* =======================
   BLOG
======================= */
.blog-page {
  --brand-ink: #1f1b16;
  --brand-green: #2f7d32;
  --brand-green-strong: #256a2a;
  --brand-cream: #fff8e6;
  --brand-stone: #f4f1e8;
  color: var(--brand-ink);
}

.blog-hero {
  padding: 3.5rem 0;
  background: radial-gradient(1200px 420px at 12% 10%, #fff3c9 0%, #fff8e9 45%, #f4f1e8 100%);
  border-bottom: 1px solid #efe1c4;
}

.blog-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  align-items: center;
}

.blog-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--brand-cream);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.blog-title {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
  margin: 0.6rem 0 0.4rem;
}

.blog-lead {
  color: #5a544c;
  font-size: 1.05rem;
  margin: 0;
}

.blog-hero-card {
  background: #fff;
  border: 1px solid #efe1c4;
  border-radius: 1.2rem;
  padding: 1.4rem;
  box-shadow: 0 16px 32px rgba(31, 27, 22, 0.06);
}

.blog-list {
  padding: 3rem 0 4rem;
  background: #fbf8f0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: #fff;
  border: 1px solid #efe1c4;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(31, 27, 22, 0.06);
  display: flex;
  flex-direction: column;
}

.blog-cover img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.blog-card-body {
  padding: 1.2rem 1.3rem 1.4rem;
  display: grid;
  gap: 0.6rem;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #6b645c;
  font-size: 0.85rem;
}

.blog-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #c2a36d;
}

.blog-card-title a {
  color: #2a241c;
  text-decoration: none;
  font-weight: 700;
}

.blog-card-title a:hover {
  color: var(--brand-green);
}

.blog-card-text {
  color: #5a544c;
  margin: 0;
}

.blog-read {
  color: var(--brand-green);
  font-weight: 600;
  text-decoration: none;
}

.blog-read:hover {
  color: var(--brand-green-strong);
}

.blog-pagination {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.blog-page-info {
  color: #6b645c;
  font-size: 0.9rem;
}

.blog-empty {
  text-align: center;
  background: #fff;
  border: 1px solid #efe1c4;
  border-radius: 1rem;
  padding: 2rem;
}

.blog-hero-post {
  padding-bottom: 2.5rem;
}

.blog-post-head {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.blog-back {
  color: var(--brand-green);
  font-weight: 600;
  text-decoration: none;
}

.blog-back:hover {
  color: var(--brand-green-strong);
}

.blog-cover-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 1.2rem;
  border: 1px solid #efe1c4;
  box-shadow: 0 16px 32px rgba(31, 27, 22, 0.08);
}

.blog-post {
  padding: 2.5rem 0 4rem;
  background: #fbf8f0;
}

.blog-article {
  background: #fff;
  border: 1px solid #efe1c4;
  border-radius: 1.2rem;
  padding: 2rem;
  box-shadow: 0 16px 32px rgba(31, 27, 22, 0.08);
  line-height: 1.7;
}

.blog-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.blog-article th,
.blog-article td {
  border: 1px solid #efe1c4;
  padding: 0.7rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.blog-article th {
  background: #fff8e6;
  font-weight: 700;
}

.blog-article blockquote {
  border-left: 4px solid #2f7d32;
  background: #fff8e6;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  border-radius: 0.9rem;
  color: #4b453c;
}

.blog-article h2,
.blog-article h3 {
  margin-top: 1.5rem;
}

.blog-admin .table {
  background: #fff;
}

.blog-form {
  border: 1px solid #efe1c4;
}

.editor-shell {
  border: 1px solid #efe1c4;
  border-radius: 0.6rem;
  background: #fff;
}

.editor-toolbar {
  padding: 0.5rem;
  border-bottom: 1px solid #efe1c4;
  background: #fff8e6;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 8px 14px rgba(31, 27, 22, 0.08);
}

.editor-shell .editor-area {
  min-height: 320px;
  padding: 0.75rem;
  background: transparent;
  border: none;
  border-radius: 0 0 0.6rem 0.6rem;
}

.editor-shell .editor-area:focus {
  outline: none;
  border-color: #2f7d32;
  box-shadow: 0 0 0 0.15rem rgba(47, 125, 50, 0.15);
}

html.dark-mode .blog-page {
  color: #f5f5f5;
}

html.dark-mode .blog-hero {
  background: #1f1f1f;
  border-color: #333;
}

html.dark-mode .blog-hero-card,
html.dark-mode .blog-card,
html.dark-mode .blog-article,
html.dark-mode .blog-empty {
  background: #2a2a2a;
  border-color: #444;
  box-shadow: none;
}

html.dark-mode .blog-list,
html.dark-mode .blog-post {
  background: #1c1c1c;
}

html.dark-mode .blog-card-title a {
  color: #f5f5f5;
}

html.dark-mode .blog-card-text,
html.dark-mode .blog-meta,
html.dark-mode .blog-lead,
html.dark-mode .blog-page-info {
  color: #cfcfcf;
}

html.dark-mode .blog-back,
html.dark-mode .blog-read {
  color: #9be28e;
}

html.dark-mode .editor-shell {
  background: #1f1f1f;
  border-color: #444;
}

html.dark-mode .editor-toolbar {
  background: #262626;
  border-color: #444;
}

html.dark-mode .editor-shell .editor-area {
  color: #e3e3e3;
}

html.dark-mode .blog-article th,
html.dark-mode .blog-article td {
  border-color: #444;
}

html.dark-mode .blog-article th,
html.dark-mode .blog-article blockquote {
  background: #262626;
  color: #e3e3e3;
}

/* =======================
   CONFIGURACOES
======================= */
.config-page {
  --brand-ink: #1f1b16;
  --brand-green: #2f7d32;
  --brand-green-strong: #256a2a;
  --brand-sage: #63b05b;
  --brand-sand: #f6e4a4;
  --brand-cream: #fff8e6;
  --brand-stone: #f4f1e8;
  --brand-shadow: rgba(31, 27, 22, 0.14);
  color: var(--brand-ink);
}

.config-page .config-hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0;
  background: radial-gradient(1200px 420px at 15% 10%, #fff3c9 0%, #fff8e9 45%, #f4f1e8 100%);
  border-bottom: 1px solid #efe1c4;
}

.config-page .config-hero::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  top: -140px;
  right: -110px;
  background: radial-gradient(circle, rgba(99, 176, 91, 0.18) 0%, rgba(99, 176, 91, 0) 70%);
}

.config-page .config-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  bottom: -130px;
  left: -90px;
  background: radial-gradient(circle, rgba(244, 196, 78, 0.2) 0%, rgba(244, 196, 78, 0) 70%);
}

.config-page .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--brand-cream);
  color: var(--brand-ink);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.config-page .hero-title {
  font-size: clamp(2rem, 2.6vw, 3rem);
  font-weight: 700;
  margin: 0.8rem 0 0.6rem;
}

.config-page .hero-lead {
  color: #5a544c;
  font-size: 1.05rem;
  margin-bottom: 0;
}

.config-page .hero-panel {
  position: relative;
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 16px 40px rgba(31, 27, 22, 0.08);
  border: 1px solid #f0e5c9;
}

.config-page .panel-title {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.config-page .hero-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  color: #5a544c;
}

.config-page .hero-list li {
  padding-left: 2rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.config-page .hero-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: rgba(47, 125, 50, 0.15);
  color: var(--brand-green);
  font-weight: 700;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.config-page .config-content {
  padding: 2.5rem 0 4rem;
  background: #fbf8f0;
}

.config-page .config-alerts .alert {
  border-radius: 0.9rem;
  margin-bottom: 1rem;
}

.config-page .config-card {
  background: #fff;
  border: 1px solid #efe1c4;
  border-radius: 1.4rem;
  box-shadow: 0 16px 32px rgba(31, 27, 22, 0.06);
  padding: 1.8rem;
}

.config-page .panel-header {
  margin-bottom: 1.5rem;
}

.config-page .panel-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--brand-cream);
  color: #6b645c;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.config-page .panel-lead {
  margin: 0.5rem 0 0;
  color: #6b645c;
  font-size: 0.95rem;
}

.config-page .section-title {
  font-weight: 700;
  font-size: 1rem;
  color: #2a241c;
  margin-bottom: 0.75rem;
}

.config-page .config-divider {
  height: 1px;
  background: #f0e5c9;
  margin: 1.5rem 0;
}

.config-page .form-control {
  border-radius: 0.85rem;
  border-color: #ecd9ae;
  padding: 0.65rem 0.9rem;
}

.config-page .config-actions {
  margin-top: 1.5rem;
}

.config-page .btn-primary {
  background-color: var(--brand-green);
  border-color: var(--brand-green);
}

.config-page .btn-primary:hover {
  background-color: var(--brand-green-strong);
  border-color: var(--brand-green-strong);
}

@media (max-width: 992px) {
  .config-page .config-hero {
    padding: 3rem 0;
  }
}

html.dark-mode .config-page {
  color: #f5f5f5;
}

html.dark-mode .config-page .config-hero {
  background: #1f1f1f;
  border-color: #333;
}

html.dark-mode .config-page .hero-panel,
html.dark-mode .config-page .config-card {
  background: #2a2a2a;
  border-color: #444;
  box-shadow: none;
}

html.dark-mode .config-page .config-content {
  background: #1c1c1c;
}

html.dark-mode .config-page .hero-lead,
html.dark-mode .config-page .panel-lead,
html.dark-mode .config-page .section-title,
html.dark-mode .config-page .text-muted {
  color: #cfcfcf !important;
}

html.dark-mode .config-page .panel-tag {
  background: #1f1f1f;
  border: 1px solid #333;
  color: #cfcfcf;
}

html.dark-mode .config-page .config-divider {
  background: #333;
}

/* =======================
   REGISTRAR
======================= */
.registrar-page {
  --brand-ink: #1f1b16;
  --brand-green: #2f7d32;
  --brand-green-strong: #256a2a;
  --brand-sage: #63b05b;
  --brand-sand: #f6e4a4;
  --brand-cream: #fff8e6;
  --brand-stone: #f4f1e8;
  --brand-shadow: rgba(31, 27, 22, 0.14);
  color: var(--brand-ink);
}

.registrar-page .registrar-hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0;
  background: radial-gradient(1200px 420px at 15% 10%, #fff3c9 0%, #fff8e9 45%, #f4f1e8 100%);
  border-bottom: 1px solid #efe1c4;
}

.registrar-page .registrar-hero::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  top: -140px;
  right: -110px;
  background: radial-gradient(circle, rgba(99, 176, 91, 0.18) 0%, rgba(99, 176, 91, 0) 70%);
}

.registrar-page .registrar-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  bottom: -130px;
  left: -90px;
  background: radial-gradient(circle, rgba(244, 196, 78, 0.2) 0%, rgba(244, 196, 78, 0) 70%);
}

.registrar-page .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--brand-cream);
  color: var(--brand-ink);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.registrar-page .hero-title {
  font-size: clamp(2rem, 2.6vw, 3rem);
  font-weight: 700;
  margin: 0.8rem 0 0.6rem;
}

.registrar-page .hero-lead {
  color: #5a544c;
  font-size: 1.05rem;
  margin-bottom: 0;
}

.registrar-page .hero-panel {
  position: relative;
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 16px 40px rgba(31, 27, 22, 0.08);
  border: 1px solid #f0e5c9;
}

.registrar-page .panel-title {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.registrar-page .hero-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  color: #5a544c;
}

.registrar-page .hero-list li {
  padding-left: 2rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.registrar-page .hero-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: rgba(47, 125, 50, 0.15);
  color: var(--brand-green);
  font-weight: 700;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.registrar-page .registrar-content {
  padding: 2.5rem 0 4rem;
  background: #fbf8f0;
}

.registrar-page .registrar-alerts .alert {
  border-radius: 0.9rem;
  margin-bottom: 1rem;
}

.registrar-page .registrar-card {
  background: #fff;
  border: 1px solid #efe1c4;
  border-radius: 1.4rem;
  box-shadow: 0 16px 32px rgba(31, 27, 22, 0.06);
  padding: 1.8rem;
}

.registrar-page .panel-header {
  margin-bottom: 1.5rem;
}

.registrar-page .panel-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--brand-cream);
  color: #6b645c;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.registrar-page .panel-lead {
  margin: 0.5rem 0 0;
  color: #6b645c;
  font-size: 0.95rem;
}

.registrar-page .form-control {
  border-radius: 0.85rem;
  border-color: #ecd9ae;
  padding: 0.65rem 0.9rem;
}

.registrar-page .input-group .btn {
  border-radius: 0.85rem;
  border-color: #b79a5b;
  color: #3d2f1a;
}

.registrar-page .input-group .btn:hover {
  background-color: #f6e8c6;
  border-color: #b79a5b;
}

.registrar-page .registrar-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.registrar-page .btn-primary {
  background-color: var(--brand-green);
  border-color: var(--brand-green);
}

.registrar-page .btn-primary:hover {
  background-color: var(--brand-green-strong);
  border-color: var(--brand-green-strong);
}

.registrar-page .btn-outline-secondary {
  border-color: #b79a5b;
  color: #3d2f1a;
}

.registrar-page .btn-outline-secondary:hover {
  background-color: #f6e8c6;
  border-color: #b79a5b;
}

@media (max-width: 992px) {
  .registrar-page .registrar-hero {
    padding: 3rem 0;
  }
}

@media (max-width: 576px) {
  .registrar-page .registrar-actions .btn {
    width: 100%;
  }
}

html.dark-mode .registrar-page {
  color: #f5f5f5;
}

html.dark-mode .registrar-page .registrar-hero {
  background: #1f1f1f;
  border-color: #333;
}

html.dark-mode .registrar-page .hero-panel,
html.dark-mode .registrar-page .registrar-card {
  background: #2a2a2a;
  border-color: #444;
  box-shadow: none;
}

html.dark-mode .registrar-page .registrar-content {
  background: #1c1c1c;
}

html.dark-mode .registrar-page .hero-lead,
html.dark-mode .registrar-page .panel-lead,
html.dark-mode .registrar-page .text-muted {
  color: #cfcfcf !important;
}

html.dark-mode .registrar-page .panel-tag {
  background: #1f1f1f;
  border: 1px solid #333;
  color: #cfcfcf;
}

html.dark-mode .registrar-page .input-group .btn {
  border-color: #5c5140;
  color: #f0e7d4;
  background: #1f1f1f;
}

html.dark-mode .registrar-page .input-group .btn:hover {
  background-color: #3a3428;
  border-color: #5c5140;
}

html.dark-mode .registrar-page .btn-outline-secondary {
  border-color: #5c5140;
  color: #f0e7d4;
}

html.dark-mode .registrar-page .btn-outline-secondary:hover {
  background-color: #3a3428;
  border-color: #5c5140;
}

/* =======================
   LOGIN
======================= */
.login-page {
  --brand-ink: #1f1b16;
  --brand-green: #2f7d32;
  --brand-green-strong: #256a2a;
  --brand-sage: #63b05b;
  --brand-sand: #f6e4a4;
  --brand-cream: #fff8e6;
  --brand-stone: #f4f1e8;
  --brand-shadow: rgba(31, 27, 22, 0.14);
  color: var(--brand-ink);
}

.login-page .login-hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0;
  background: radial-gradient(1200px 420px at 15% 10%, #fff3c9 0%, #fff8e9 45%, #f4f1e8 100%);
  border-bottom: 1px solid #efe1c4;
}

.login-page .login-hero::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  top: -140px;
  right: -110px;
  background: radial-gradient(circle, rgba(99, 176, 91, 0.18) 0%, rgba(99, 176, 91, 0) 70%);
}

.login-page .login-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  bottom: -130px;
  left: -90px;
  background: radial-gradient(circle, rgba(244, 196, 78, 0.2) 0%, rgba(244, 196, 78, 0) 70%);
}

.login-page .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--brand-cream);
  color: var(--brand-ink);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.login-page .hero-title {
  font-size: clamp(2rem, 2.6vw, 3rem);
  font-weight: 700;
  margin: 0.8rem 0 0.6rem;
}

.login-page .hero-lead {
  color: #5a544c;
  font-size: 1.05rem;
  margin-bottom: 0;
}

.login-page .hero-panel {
  position: relative;
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 16px 40px rgba(31, 27, 22, 0.08);
  border: 1px solid #f0e5c9;
}

.login-page .panel-title {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.login-page .hero-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  color: #5a544c;
}

.login-page .hero-list li {
  padding-left: 2rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.login-page .hero-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: rgba(47, 125, 50, 0.15);
  color: var(--brand-green);
  font-weight: 700;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.login-page .login-content {
  padding: 2.5rem 0 4rem;
  background: #fbf8f0;
}

.login-page .login-alerts .alert {
  border-radius: 0.9rem;
  margin-bottom: 1rem;
}

.login-page .login-card {
  background: #fff;
  border: 1px solid #efe1c4;
  border-radius: 1.4rem;
  box-shadow: 0 16px 32px rgba(31, 27, 22, 0.06);
  padding: 1.8rem;
}

.login-page .panel-header {
  margin-bottom: 1.5rem;
}

.login-page .panel-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--brand-cream);
  color: #6b645c;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.login-page .panel-lead {
  margin: 0.5rem 0 0;
  color: #6b645c;
  font-size: 0.95rem;
}

.login-page .form-control {
  border-radius: 0.85rem;
  border-color: #ecd9ae;
  padding: 0.65rem 0.9rem;
}

.login-page .input-group .btn {
  border-radius: 0.85rem;
  border-color: #b79a5b;
  color: #3d2f1a;
}

.login-page .input-group .btn:hover {
  background-color: #f6e8c6;
  border-color: #b79a5b;
}

.login-page .login-options {
  margin-top: 1rem;
}

.login-page .captcha-container {
  margin-top: 1rem;
  transform: scale(0.95);
  transform-origin: left top;
}

.login-page .login-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.login-page .login-links {
  margin-top: 1.5rem;
  text-align: center;
  color: #6b645c;
  font-size: 0.9rem;
}

.login-page .login-links a {
  color: #2f7d32;
  text-decoration: none;
  font-weight: 600;
}

.login-page .login-links a:hover {
  text-decoration: underline;
}

.login-page .login-sep {
  margin: 0 0.4rem;
  color: #b79a5b;
}

.login-page .btn-primary {
  background-color: var(--brand-green);
  border-color: var(--brand-green);
}

.login-page .btn-primary:hover {
  background-color: var(--brand-green-strong);
  border-color: var(--brand-green-strong);
}

.login-page .btn-outline-secondary {
  border-color: #b79a5b;
  color: #3d2f1a;
}

.login-page .btn-outline-secondary:hover {
  background-color: #f6e8c6;
  border-color: #b79a5b;
}

@media (max-width: 992px) {
  .login-page .login-hero {
    padding: 3rem 0;
  }
}

@media (max-width: 576px) {
  .login-page .login-actions .btn {
    width: 100%;
  }

  .login-page .captcha-container {
    transform: scale(0.9);
  }
}

html.dark-mode .login-page {
  color: #f5f5f5;
}

html.dark-mode .login-page .login-hero {
  background: #1f1f1f;
  border-color: #333;
}

html.dark-mode .login-page .hero-panel,
html.dark-mode .login-page .login-card {
  background: #2a2a2a;
  border-color: #444;
  box-shadow: none;
}

html.dark-mode .login-page .login-content {
  background: #1c1c1c;
}

html.dark-mode .login-page .hero-lead,
html.dark-mode .login-page .panel-lead,
html.dark-mode .login-page .text-muted,
html.dark-mode .login-page .login-links {
  color: #cfcfcf !important;
}

html.dark-mode .login-page .panel-tag {
  background: #1f1f1f;
  border: 1px solid #333;
  color: #cfcfcf;
}

html.dark-mode .login-page .input-group .btn {
  border-color: #5c5140;
  color: #f0e7d4;
  background: #1f1f1f;
}

html.dark-mode .login-page .input-group .btn:hover {
  background-color: #3a3428;
  border-color: #5c5140;
}

html.dark-mode .login-page .btn-outline-secondary {
  border-color: #5c5140;
  color: #f0e7d4;
}

html.dark-mode .login-page .btn-outline-secondary:hover {
  background-color: #3a3428;
  border-color: #5c5140;
}

html.dark-mode .login-page .login-links a {
  color: #9be28e;
}

/* =======================
   ESTATISTICAS BARALHO
======================= */
.stats-page {
  --brand-ink: #1f1b16;
  --brand-green: #2f7d32;
  --brand-green-strong: #256a2a;
  --brand-sage: #63b05b;
  --brand-sand: #f6e4a4;
  --brand-cream: #fff8e6;
  --brand-stone: #f4f1e8;
  --brand-shadow: rgba(31, 27, 22, 0.14);
  color: var(--brand-ink);
}

.stats-page .stats-hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0;
  background: radial-gradient(1200px 420px at 15% 10%, #fff3c9 0%, #fff8e9 45%, #f4f1e8 100%);
  border-bottom: 1px solid #efe1c4;
}

.stats-page .stats-hero::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  top: -140px;
  right: -110px;
  background: radial-gradient(circle, rgba(99, 176, 91, 0.18) 0%, rgba(99, 176, 91, 0) 70%);
}

.stats-page .stats-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  bottom: -130px;
  left: -90px;
  background: radial-gradient(circle, rgba(244, 196, 78, 0.2) 0%, rgba(244, 196, 78, 0) 70%);
}

.stats-page .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--brand-cream);
  color: var(--brand-ink);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stats-page .hero-title {
  font-size: clamp(2rem, 2.6vw, 3rem);
  font-weight: 700;
  margin: 0.8rem 0 0.6rem;
}

.stats-page .hero-lead {
  color: #5a544c;
  font-size: 1.05rem;
  margin-bottom: 0;
}

.stats-page .hero-panel {
  position: relative;
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 16px 40px rgba(31, 27, 22, 0.08);
  border: 1px solid #f0e5c9;
}

.stats-page .panel-title {
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.stats-page .panel-lead {
  color: #6b645c;
  margin-bottom: 1rem;
}

.stats-page .hero-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  color: #5a544c;
}

.stats-page .hero-list li {
  padding-left: 2rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.stats-page .hero-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: rgba(47, 125, 50, 0.15);
  color: var(--brand-green);
  font-weight: 700;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stats-page .stats-content {
  padding: 2.5rem 0 4rem;
  background: #fbf8f0;
}

.stats-page .stats-filter {
  background: #fff;
  border: 1px solid #efe1c4;
  border-radius: 1.2rem;
  padding: 1.5rem;
  box-shadow: 0 12px 28px rgba(31, 27, 22, 0.06);
  margin-bottom: 1.5rem;
}

.stats-page .stats-note {
  border-radius: 0.9rem;
  margin-top: 1rem;
}

.stats-page .filter-actions {
  margin-top: 1rem;
}

.stats-page .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stats-page .stat-card {
  background: #fff;
  border: 1px solid #efe1c4;
  border-radius: 1rem;
  padding: 1.2rem;
  box-shadow: 0 12px 24px rgba(31, 27, 22, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stats-page .stat-card strong {
  font-size: 1.6rem;
  color: #2a241c;
}

.stats-page .stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b645c;
}

.stats-page .stat-foot {
  color: #6b645c;
  font-size: 0.85rem;
}

.stats-page .stat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #6b645c;
}

.stats-page .stat-tags strong {
  color: var(--brand-green);
}

.stats-page .stats-section {
  background: #fff;
  border: 1px solid #efe1c4;
  border-radius: 1.2rem;
  padding: 1.5rem;
  box-shadow: 0 12px 28px rgba(31, 27, 22, 0.06);
  margin-bottom: 1.5rem;
}

.stats-page .section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.stats-page .timeline-chart {
  height: 140px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6px, 1fr));
  gap: 4px;
  align-items: end;
  background: #fff8e6;
  border: 1px solid #f1e4c7;
  border-radius: 1rem;
  padding: 0.75rem;
}

.stats-page .timeline-bar {
  background: linear-gradient(180deg, #2f7d32 0%, #7bbf64 100%);
  border-radius: 4px 4px 0 0;
  min-height: 6px;
}

.stats-page .timeline-legend {
  margin-top: 0.75rem;
  color: #6b645c;
  font-size: 0.85rem;
}

.stats-page .assuntos-grid {
  display: grid;
  gap: 1rem;
}

.stats-page .assunto-card {
  background: #fff8e6;
  border: 1px solid #f1e4c7;
  border-radius: 1rem;
  padding: 1rem;
}

.stats-page .assunto-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.stats-page .assunto-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.stats-page .assunto-title {
  font-weight: 700;
  color: #2a241c;
}

.stats-page .assunto-status {
  background: #fff;
  border: 1px solid #d7c59b;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  font-size: 0.7rem;
  color: #8a6d2f;
}

.stats-page .assunto-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #6b645c;
}

.stats-page .assunto-bar {
  height: 8px;
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
  margin: 0.6rem 0;
  border: 1px solid #ecd9ae;
}

.stats-page .assunto-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f2c14e 0%, #dd8a2f 100%);
}

.stats-page .assunto-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: #6b645c;
}

.stats-page .assunto-details {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px dashed #e2d2b3;
  display: grid;
  gap: 0.6rem;
}

.stats-page .assunto-detail-row {
  background: #fff;
  border: 1px solid #f1e4c7;
  border-radius: 0.8rem;
  padding: 0.6rem 0.8rem;
}

.stats-page .assunto-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
}

.stats-page .assunto-detail-title {
  font-weight: 600;
  color: #2a241c;
}

.stats-page .assunto-detail-status {
  font-size: 0.75rem;
  color: #8a6d2f;
}

.stats-page .assunto-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: #6b645c;
}

.stats-page .assunto-detail-bar {
  height: 6px;
  background: #fff8e6;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.4rem;
  border: 1px solid #ecd9ae;
}

.stats-page .assunto-detail-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2f7d32 0%, #63b05b 100%);
}

.stats-page .tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid #e2d2b3;
  background: #fffaf0;
}

.stats-page .tag-erro {
  color: #b04d45;
  border-color: #e7c2be;
  background: #fff2f1;
}

.stats-page .tag-dificil {
  color: #a9691f;
  border-color: #f1d1a0;
  background: #fff5e4;
}

.stats-page .tag-bom {
  color: #2f7d32;
  border-color: #cbe3c8;
  background: #f1fbf2;
}

.stats-page .tag-facil {
  color: #1f6f7a;
  border-color: #b7dce1;
  background: #eef8fa;
}

.stats-page .rank-list {
  display: grid;
  gap: 0.5rem;
}

.stats-page .rank-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.8rem;
  background: #fff8e6;
  border: 1px solid #f1e4c7;
  border-radius: 0.8rem;
  font-size: 0.9rem;
}

.stats-page .rank-score {
  font-weight: 700;
  color: #2f7d32;
}

.stats-page .radar-chart {
  width: 100%;
  max-width: 320px;
  height: 320px;
  margin: 0 auto;
}

.stats-page .radar-chart svg {
  width: 100%;
  height: 100%;
}

.stats-page .radar-grid {
  fill: none;
  stroke: #e5d6b8;
  stroke-width: 1;
}

.stats-page .radar-axis {
  stroke: #d7c59b;
  stroke-width: 1;
  opacity: 0.65;
}

.stats-page .radar-area {
  fill: rgba(47, 125, 50, 0.25);
  stroke: #2f7d32;
  stroke-width: 2;
}

.stats-page .radar-point {
  fill: #2f7d32;
}

.stats-page .radar-hit {
  fill: transparent;
  stroke: transparent;
  cursor: pointer;
}

.stats-page .radar-label {
  fill: #6b645c;
  font-size: 0.65rem;
}

.stats-page .radar-empty {
  padding: 2rem 0;
  text-align: center;
  color: #6b645c;
  font-size: 0.9rem;
}

.stats-page .review-card {
  background: #fff8e6;
  border: 1px solid #f1e4c7;
  border-radius: 1rem;
  padding: 1.2rem;
}

.stats-page .review-card + .review-card {
  margin-top: 1rem;
}

.stats-page .review-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #2a241c;
}

.stats-page .review-actions {
  margin-top: 1rem;
}

.stats-page .btn-primary {
  background-color: var(--brand-green);
  border-color: var(--brand-green);
}

.stats-page .btn-primary:hover {
  background-color: var(--brand-green-strong);
  border-color: var(--brand-green-strong);
}

.stats-page .btn-outline-secondary {
  border-color: #b79a5b;
  color: #3d2f1a;
}

.stats-page .btn-outline-secondary:hover {
  background-color: #f6e8c6;
  border-color: #b79a5b;
}

.stats-embed-header {
  padding: 1.5rem 0 0.5rem;
  background: #fff6dd;
  border-bottom: 1px solid #efe1c4;
}

.stats-embed .hero-title {
  font-size: clamp(1.6rem, 2.2vw, 2.3rem);
}

.stats-embed .stats-content {
  padding: 1.5rem 0 2.5rem;
}

.stats-modal .modal-header {
  border-bottom: 1px solid #efe1c4;
  background: #fffdf6;
}

.stats-modal .modal-body {
  background: #fbf8f0;
}

.stats-modal-sub {
  margin: 0.2rem 0 0;
  color: #6b645c;
  font-size: 0.9rem;
}

@media (max-width: 992px) {
  .stats-page .stats-hero {
    padding: 3rem 0;
  }
}

@media (max-width: 576px) {
  .stats-page .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

html.dark-mode .stats-page {
  color: #f5f5f5;
}

html.dark-mode .stats-page .stats-hero {
  background: #1f1f1f;
  border-color: #333;
}

html.dark-mode .stats-page .hero-panel,
html.dark-mode .stats-page .stats-filter,
html.dark-mode .stats-page .stat-card,
html.dark-mode .stats-page .stats-section,
html.dark-mode .stats-page .assunto-card,
html.dark-mode .stats-page .rank-item,
html.dark-mode .stats-page .review-card {
  background: #2a2a2a;
  border-color: #444;
  box-shadow: none;
}

html.dark-mode .stats-page .stats-content {
  background: #1c1c1c;
}

html.dark-mode .stats-page .hero-lead,
html.dark-mode .stats-page .panel-lead,
html.dark-mode .stats-page .stat-label,
html.dark-mode .stats-page .stat-foot,
html.dark-mode .stats-page .stat-tags,
html.dark-mode .stats-page .assunto-meta,
html.dark-mode .stats-page .assunto-tags,
html.dark-mode .stats-page .timeline-legend,
html.dark-mode .stats-page .text-muted {
  color: #cfcfcf !important;
}

html.dark-mode .stats-page .stat-card strong {
  color: #f5f5f5;
}

html.dark-mode .stats-page .btn-outline-secondary {
  color: #f5f5f5;
  border-color: #b79a5b;
}

html.dark-mode .stats-page .btn-outline-secondary:hover {
  background-color: #3a2f1b;
  border-color: #b79a5b;
  color: #ffffff;
}

html.dark-mode .stats-page .assunto-details {
  border-color: #3a3a3a;
}

html.dark-mode .stats-page .assunto-detail-row {
  background: #232323;
  border-color: #3a3a3a;
}

html.dark-mode .stats-page .assunto-detail-title,
html.dark-mode .stats-page .assunto-detail-status {
  color: #d9d1c2;
}

html.dark-mode .stats-page .assunto-detail-meta {
  color: #cfcfcf;
}

html.dark-mode .stats-page .assunto-detail-bar {
  background: #1f1f1f;
  border-color: #333;
}

html.dark-mode .stats-page .tag {
  background: #1f1f1f;
  border-color: #3a3a3a;
}

html.dark-mode .stats-page .tag-erro {
  color: #f1a39b;
  border-color: #5a2f2a;
  background: rgba(179, 80, 70, 0.12);
}

html.dark-mode .stats-page .tag-dificil {
  color: #f1c27d;
  border-color: #5c4222;
  background: rgba(169, 105, 31, 0.12);
}

html.dark-mode .stats-page .tag-bom {
  color: #9be28e;
  border-color: #2d4f2c;
  background: rgba(47, 125, 50, 0.12);
}

html.dark-mode .stats-page .tag-facil {
  color: #7fd3dc;
  border-color: #1f4b52;
  background: rgba(31, 111, 122, 0.12);
}

html.dark-mode .stats-page .assunto-status {
  background: #1f1f1f;
  border-color: #333;
  color: #d9d1c2;
}

html.dark-mode .stats-page .timeline-chart {
  background: #1f1f1f;
  border-color: #333;
}

html.dark-mode .stats-page .timeline-bar {
  background: linear-gradient(180deg, #2f7d32 0%, #5c9f4e 100%);
}

html.dark-mode .stats-page .radar-grid {
  stroke: #3a3a3a;
}

html.dark-mode .stats-page .radar-axis {
  stroke: #4a4a4a;
}

html.dark-mode .stats-page .radar-area {
  fill: rgba(99, 176, 91, 0.25);
  stroke: #63b05b;
}

html.dark-mode .stats-page .radar-point {
  fill: #63b05b;
}

html.dark-mode .stats-page .radar-label,
html.dark-mode .stats-page .radar-empty {
  color: #cfcfcf;
  fill: #cfcfcf;
}

html.dark-mode .stats-embed-header {
  background: #1f1f1f;
  border-color: #333;
}

html.dark-mode .stats-modal .modal-header,
html.dark-mode .stats-modal .modal-body {
  background: #1f1f1f;
  border-color: #333;
}

html.dark-mode .stats-modal-sub {
  color: #cfcfcf;
}

/* =======================
   ESTATISTICAS CADERNO
======================= */
.assuntos-checklist {
  max-height: 240px;
  overflow-y: auto;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e6e0d6;
  border-radius: 0.6rem;
  background: #faf7f1;
}

.table-sticky thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8f9fa;
  box-shadow: inset 0 -1px 0 #dee2e6;
}

.table-sticky tfoot th {
  background: #f8f9fa;
}

.caderno-chart-wrap {
  position: relative;
  width: 100%;
  max-width: 260px;
  height: 220px;
  margin: 0 auto;
}

.caderno-chart-fallback {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  margin: 0 auto;
  background: conic-gradient(
    var(--acertos-color) 0 var(--acertos-end),
    var(--erros-color) var(--acertos-end) var(--erros-end),
    var(--faltam-color) var(--erros-end) var(--faltam-end)
  );
  position: relative;
  box-shadow: inset 0 0 0 1px #efe1c4;
}

.caderno-chart-fallback::after {
  content: "";
  position: absolute;
  inset: 22%;
  background: #fffaf0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px #efe1c4;
}

.caderno-chart-legend li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.caderno-chart-legend .legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.caderno-chart-legend .legend-acertos {
  background: #2f7d32;
}

.caderno-chart-legend .legend-erros {
  background: #e3564a;
}

.caderno-chart-legend .legend-faltam {
  background: #f0b44c;
}

/* =======================
   PASTAS E CADERNOS
======================= */
.pastas-page {
  --brand-ink: #1f1b16;
  --brand-green: #2f7d32;
  --brand-green-strong: #256a2a;
  --brand-sage: #63b05b;
  --brand-sand: #f6e4a4;
  --brand-cream: #fff8e6;
  --brand-stone: #f4f1e8;
  --brand-shadow: rgba(31, 27, 22, 0.14);
  color: var(--brand-ink);
}

.pastas-page .pastas-hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0;
  background: radial-gradient(1200px 420px at 15% 10%, #fff3c9 0%, #fff8e9 45%, #f4f1e8 100%);
  border-bottom: 1px solid #efe1c4;
}

.pastas-page .pastas-hero::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  top: -140px;
  right: -110px;
  background: radial-gradient(circle, rgba(99, 176, 91, 0.18) 0%, rgba(99, 176, 91, 0) 70%);
}

.pastas-page .pastas-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  bottom: -130px;
  left: -90px;
  background: radial-gradient(circle, rgba(244, 196, 78, 0.2) 0%, rgba(244, 196, 78, 0) 70%);
}

.pastas-page .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--brand-cream);
  color: var(--brand-ink);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pastas-page .hero-title {
  font-size: clamp(2rem, 2.6vw, 3rem);
  font-weight: 700;
  margin: 0.8rem 0 0.6rem;
}

.pastas-page .hero-lead {
  color: #5a544c;
  font-size: 1.05rem;
  margin-bottom: 0;
}

.pastas-page .hero-panel {
  position: relative;
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 16px 40px rgba(31, 27, 22, 0.08);
  border: 1px solid #f0e5c9;
}

.pastas-page .panel-title {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.pastas-page .hero-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  color: #5a544c;
}

.pastas-page .hero-list li {
  padding-left: 2rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.pastas-page .hero-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: rgba(47, 125, 50, 0.15);
  color: var(--brand-green);
  font-weight: 700;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pastas-page .pastas-content {
  padding: 2.5rem 0 4rem;
  background: #fbf8f0;
}

.pastas-page .pastas-panel {
  background: #fff;
  border: 1px solid #efe1c4;
  border-radius: 1.4rem;
  box-shadow: 0 16px 32px rgba(31, 27, 22, 0.06);
  padding: 1.6rem;
}

.pastas-page .panel-header {
  margin-bottom: 1.2rem;
}

.pastas-page .panel-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--brand-cream);
  color: #6b645c;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pastas-page .panel-lead {
  margin: 0.5rem 0 0;
  color: #6b645c;
  font-size: 0.95rem;
}

.pastas-page .pastas-form .form-control {
  border-radius: 0.85rem;
  border-color: #ecd9ae;
  padding: 0.65rem 0.9rem;
}

.pastas-page .pastas-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pastas-page .pastas-list {
  display: grid;
  gap: 1rem;
}

.pastas-page .pasta-item {
  background: #fff8e6;
  border: 1px solid #f1e4c7;
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pastas-page .pasta-title {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: #2a241c;
}

.pastas-page .pasta-title i {
  font-size: 1.2rem;
  color: var(--brand-green);
}

.pastas-page .pasta-caption {
  margin-top: 0.35rem;
  color: #6b645c;
  font-size: 0.85rem;
}

.pastas-page .pasta-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.pastas-page .pasta-form {
  margin: 0;
}

.pastas-page .empty-state {
  display: flex;
  justify-content: center;
}

.pastas-page .empty-card {
  max-width: 520px;
  text-align: center;
  background: #fff;
  border: 1px solid #efe1c4;
  border-radius: 1.2rem;
  padding: 2rem;
  box-shadow: 0 16px 32px rgba(31, 27, 22, 0.08);
}

.pastas-page .btn-primary {
  background-color: var(--brand-green);
  border-color: var(--brand-green);
}

.pastas-page .btn-primary:hover {
  background-color: var(--brand-green-strong);
  border-color: var(--brand-green-strong);
}

.pastas-page .btn-outline-primary {
  border-color: var(--brand-green);
  color: var(--brand-green);
}

.pastas-page .btn-outline-primary:hover {
  background-color: var(--brand-green);
  border-color: var(--brand-green);
  color: #fff;
}

.pastas-page .btn-outline-secondary {
  border-color: #b79a5b;
  color: #3d2f1a;
}

.pastas-page .btn-outline-secondary:hover {
  background-color: #f6e8c6;
  border-color: #b79a5b;
}

.pastas-page .btn-outline-success {
  border-color: var(--brand-green);
  color: var(--brand-green);
}

.pastas-page .btn-outline-success:hover {
  background-color: var(--brand-green);
  border-color: var(--brand-green);
  color: #fff;
}

@media (max-width: 992px) {
  .pastas-page .pastas-hero {
    padding: 3rem 0;
  }
}

@media (max-width: 768px) {
  .pastas-page .pasta-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .pastas-page .pasta-actions {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .pastas-page .pastas-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .pastas-page .pasta-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pastas-page .pasta-actions .btn {
    width: 100%;
  }
}

html.dark-mode .pastas-page {
  color: #f5f5f5;
}

html.dark-mode .pastas-page .pastas-hero {
  background: #1f1f1f;
  border-color: #333;
}

html.dark-mode .pastas-page .hero-panel,
html.dark-mode .pastas-page .pastas-panel,
html.dark-mode .pastas-page .pasta-item,
html.dark-mode .pastas-page .empty-card {
  background: #2a2a2a;
  border-color: #444;
  box-shadow: none;
}

html.dark-mode .pastas-page .pastas-content {
  background: #1c1c1c;
}

html.dark-mode .pastas-page .hero-lead,
html.dark-mode .pastas-page .panel-lead,
html.dark-mode .pastas-page .pasta-caption {
  color: #cfcfcf;
}

html.dark-mode .pastas-page .pasta-title {
  color: #f5f5f5;
}

html.dark-mode .pastas-page .panel-tag {
  background: #1f1f1f;
  border: 1px solid #333;
  color: #cfcfcf;
}

html.dark-mode .pastas-page .btn-outline-secondary {
  border-color: #5c5140;
  color: #f0e7d4;
}

html.dark-mode .pastas-page .btn-outline-secondary:hover {
  background-color: #3a3428;
  border-color: #5c5140;
}

html.dark-mode .pastas-page .btn-outline-success {
  border-color: #63b05b;
  color: #9be28e;
}

html.dark-mode .pastas-page .btn-outline-success:hover {
  background-color: #2f7d32;
  border-color: #2f7d32;
  color: #fff;
}

.stats-page .radar-area--facil {
  fill: rgba(44, 110, 213, 0.18);
  stroke: #2c6ed5;
  stroke-width: 2;
}

.stats-page .radar-area--bom {
  fill: rgba(47, 125, 50, 0.18);
  stroke: #2f7d32;
  stroke-width: 2;
}

.stats-page .radar-area--dificil {
  fill: rgba(227, 181, 52, 0.18);
  stroke: #e3b534;
  stroke-width: 2;
}

.stats-page .radar-area--media {
  fill: rgba(31, 31, 31, 0.08);
  stroke: #1f1f1f;
  stroke-width: 2;
}

.stats-page .radar-point--facil {
  fill: #2c6ed5;
}

.stats-page .radar-point--bom {
  fill: #2f7d32;
}

.stats-page .radar-point--dificil {
  fill: #e3b534;
}

.stats-page .radar-point--media {
  fill: #1f1f1f;
}

.stats-page .radar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.6rem;
  color: #6b645c;
  font-size: 0.8rem;
}

.stats-page .radar-legend .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.stats-page .radar-legend .legend-item::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--legend-color);
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.stats-page .legend-facil {
  --legend-color: #2c6ed5;
}

.stats-page .legend-bom {
  --legend-color: #2f7d32;
}

.stats-page .legend-dificil {
  --legend-color: #e3b534;
}

.stats-page .legend-media {
  --legend-color: #1f1f1f;
}

html.dark-mode .stats-page .radar-area--media {
  fill: rgba(242, 242, 242, 0.08);
  stroke: #f2f2f2;
}

html.dark-mode .stats-page .radar-point--media {
  fill: #f2f2f2;
}

html.dark-mode .stats-page .radar-legend {
  color: #cfcfcf;
}

html.dark-mode .stats-page .radar-legend .legend-item::before {
  border-color: rgba(255, 255, 255, 0.35);
}

.navbar-sticky {
  position: sticky;
  top: 0;
  z-index: 1030;
}
html.dark-mode .stats-page .legend-media {
  --legend-color: #f2f2f2;
}


.stats-page .radar-series {
  cursor: pointer;
  transition: opacity 0.2s ease, stroke-opacity 0.2s ease, fill 0.2s ease;
}

.stats-page .radar-area--facil {
  fill: none;
  stroke: #2c6ed5;
  stroke-width: 2;
  stroke-opacity: 0.45;
}

.stats-page .radar-area--facil.is-active {
  fill: rgba(44, 110, 213, 0.18);
  stroke-opacity: 1;
}

.stats-page .radar-area--bom {
  fill: none;
  stroke: #2f7d32;
  stroke-width: 2;
  stroke-opacity: 0.45;
}

.stats-page .radar-area--bom.is-active {
  fill: rgba(47, 125, 50, 0.18);
  stroke-opacity: 1;
}

.stats-page .radar-area--dificil {
  fill: none;
  stroke: #e3b534;
  stroke-width: 2;
  stroke-opacity: 0.45;
}

.stats-page .radar-area--dificil.is-active {
  fill: rgba(227, 181, 52, 0.18);
  stroke-opacity: 1;
}

.stats-page .radar-area--media {
  fill: none;
  stroke: #1f1f1f;
  stroke-width: 2;
  stroke-opacity: 0.45;
}

.stats-page .radar-area--media.is-active {
  fill: rgba(31, 31, 31, 0.08);
  stroke-opacity: 1;
}

.stats-page .radar-point--facil {
  fill: #2c6ed5;
  opacity: 0.4;
}

.stats-page .radar-point--facil.is-active {
  opacity: 1;
}

.stats-page .radar-point--bom {
  fill: #2f7d32;
  opacity: 0.4;
}

.stats-page .radar-point--bom.is-active {
  opacity: 1;
}

.stats-page .radar-point--dificil {
  fill: #e3b534;
  opacity: 0.4;
}

.stats-page .radar-point--dificil.is-active {
  opacity: 1;
}

.stats-page .radar-point--media {
  fill: #1f1f1f;
  opacity: 0.4;
}

.stats-page .radar-point--media.is-active {
  opacity: 1;
}

.stats-page .radar-legend .legend-item {
  cursor: pointer;
  opacity: 0.7;
}

.stats-page .radar-legend .legend-item.is-active {
  opacity: 1;
  font-weight: 600;
}

html.dark-mode .stats-page .radar-area--media {
  fill: none;
  stroke: #f2f2f2;
  stroke-width: 2;
  stroke-opacity: 0.45;
}

html.dark-mode .stats-page .radar-area--media.is-active {
  fill: rgba(242, 242, 242, 0.08);
  stroke-opacity: 1;
}

html.dark-mode .stats-page .radar-point--media {
  fill: #f2f2f2;
  opacity: 0.4;
}

html.dark-mode .stats-page .radar-point--media.is-active {
  opacity: 1;
}

html.dark-mode .stats-page .radar-legend .legend-item {
  opacity: 0.8;
}


.stats-page .radar-series.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.stats-page .radar-legend .legend-item.is-hidden {
  opacity: 0.35;
  text-decoration: line-through;
}

/* =======================
   GLOBAL DARK MODE FIXES
======================= */
html.dark-mode .text-dark,
html.dark-mode .text-body,
html.dark-mode .text-body-secondary {
  color: #f5f5f5 !important;
}

html.dark-mode .text-secondary {
  color: #cfcfcf !important;
}

html.dark-mode .btn-link {
  color: #e8d7b0;
}

html.dark-mode .btn-link:hover {
  color: #ffffff;
}

html.dark-mode .btn-outline-primary {
  color: #9be28e;
  border-color: #2f7d32;
}

html.dark-mode .btn-outline-primary:hover {
  background-color: #2f7d32;
  border-color: #2f7d32;
  color: #ffffff;
}

html.dark-mode .btn-outline-secondary {
  color: #f0e7d4;
  border-color: #5c5140;
}

html.dark-mode .btn-outline-secondary:hover {
  background-color: #3a3428;
  border-color: #5c5140;
  color: #ffffff;
}

html.dark-mode .btn-outline-success {
  color: #9be28e;
  border-color: #2f7d32;
}

html.dark-mode .btn-outline-success:hover {
  background-color: #2f7d32;
  border-color: #2f7d32;
  color: #ffffff;
}

html.dark-mode .btn-outline-warning {
  color: #f3d08a;
  border-color: #b0892f;
}

html.dark-mode .btn-outline-warning:hover {
  background-color: #b0892f;
  border-color: #b0892f;
  color: #1f1f1f;
}

html.dark-mode .btn-outline-info {
  color: #9fd6de;
  border-color: #4c9aa3;
}

html.dark-mode .btn-outline-info:hover {
  background-color: #4c9aa3;
  border-color: #4c9aa3;
  color: #ffffff;
}

html.dark-mode .btn-outline-danger {
  color: #ffb3b3;
  border-color: #b45858;
}

html.dark-mode .btn-outline-danger:hover {
  background-color: #b45858;
  border-color: #b45858;
  color: #ffffff;
}

html.dark-mode .btn-outline-dark {
  color: #f5f5f5;
  border-color: #666666;
}

html.dark-mode .btn-outline-dark:hover {
  background-color: #666666;
  border-color: #666666;
  color: #1f1f1f;
}
