
:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --ink: #20232c;
  --muted: #777d8c;
  --line: #e7e9ee;
  --red: #b90e2a;
  --gold: #eab65a;
  --nav: #191b22;
  --nav-muted: #a5a9b4;
  --shadow: 0 14px 38px #20232c0a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--nav);
  color: white;
  padding: 26px 17px 15px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: white;
  text-decoration: none;
  padding: 5px 8px 42px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border: 3px solid #e12642;
  border-right-color: #f5bd52;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.brand-name {
  font: 800 13px Manrope, sans-serif;
  letter-spacing: .04em;
}

.brand-name b {
  color: #f4c266;
}

.brand-name small {
  display: block;
  color: #9ea2ad;
  font: 600 8px "DM Sans";
  letter-spacing: .18em;
  margin-top: 4px;
}

.workspace-label {
  color: #787d89;
  padding: 0 12px 13px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

.side-nav {
  display: grid;
  gap: 5px;
}

.nav-link {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--nav-muted);
  border-radius: 10px;
  padding: 13px 12px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  transition: .2s;
}

.nav-link:hover {
  background: #ffffff0d;
  color: rgb(255, 255, 255);
}

.nav-link.active {
  background: #302027;
  color: white;
  box-shadow: inset 3px 0 #e12842;
}

.nav-icon {
  font-size: 19px;
  width: 21px;
  text-align: center;
  color: #d5a95a;
}

.nav-count {
  margin-left: auto;
  background: #343741;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 10px;
}

.sidebar-bottom {
  margin-top: auto;
}

.help-card {
  margin: 0 3px 18px;
  padding: 16px;
  background: linear-gradient(145deg, #2b2024, #22242b);
  border: 1px solid #39363b;
  border-radius: 14px;
}

.help-spark {
  display: block;
  color: #edbc64;
  font-size: 20px;
  margin-bottom: 8px;
}

.help-card strong {
  font: 700 12px/1.55 Manrope;
}

.help-card small {
  display: block;
  color: #9da1ac;
  font-size: 10px;
  margin-top: 8px;
}

.admin-link {
  margin-bottom: 10px;
}

.profile-mini {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 7px 3px;
  border: 0;
  border-top: 1px solid #34363f;
  background: none;
  color: white;
  text-align: left;
}

.avatar {
  display: inline-grid;
  place-items: center;
  background: #f1c568;
  color: #3e2e17;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  font-weight: 800;
  font-family: Manrope;
  flex-shrink: 0;
}

.profile-mini b {
  display: block;
  font-size: 11px;
}

.profile-mini small {
  color: #9fa3ad;
  font-size: 10px;
}

.dots {
  margin-left: auto;
  color: #868a95;
}

.main-area {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  min-height: 72px;
  background: #ffffffed;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  position: sticky;
  top: 0;
  z-index: 8;
  gap: 15px;
}

.breadcrumb {
  display: flex;
  gap: 10px;
  color: #9297a4;
  font-size: 12px;
}

.breadcrumb i {
  font-style: normal;
  color: #c4c7ce;
}

.breadcrumb b {
  color: #424651;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 17px;
}

.search-box {
  height: 37px;
  width: 232px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fafbfc;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 8px;
  color: #9297a4;
}

.search-box input {
  background: none;
  border: 0;
  outline: 0;
  width: 100%;
  min-width: 0;
  font-size: 11px;
}

.search-box kbd {
  font-size: 9px;
  border: 1px solid #e3e5ea;
  border-radius: 4px;
  padding: 2px 4px;
  white-space: nowrap;
}

.icon-button {
  border: 0;
  background: none;
  color: #656b79;
  font-size: 22px;
  position: relative;
}

.notification-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #c7102c;
  border-radius: 50%;
  top: 3px;
  right: 2px;
}

.top-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  color: #434752;
  font-size: 11px;
  font-weight: 700;
}

.avatar.small {
  width: 29px;
  height: 29px;
  font-size: 11px;
}

.chevron {
  color: #9297a4;
  font-size: 16px;
}

.mobile-menu {
  display: none;
}

.content {
  width: min(1230px, 100%);
  margin: 0 auto;
  padding: 32px 38px 28px;
  flex: 1;
  min-height: 500px;
}

.loading {
  padding: 30px;
  color: var(--muted);
}

.footer {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 16px 38px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #9a9eaa;
}

.footer span:nth-child(2) {
  margin: auto;
}

.footer a {
  color: #858a97;
  text-decoration: none;
}

.welcome-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 23px;
}

.welcome-row h1 {
  font: 800 27px Manrope;
  margin: 5px 0;
  letter-spacing: -.04em;
}

.welcome-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.eyebrow {
  color: var(--red);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
}

.date-chip {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 12px;
  color: #717684;
  font-size: 11px;
}

.hero {
  min-height: 224px;
  border-radius: 20px;
  background: linear-gradient(112deg, #211417, #580d1c 50%, #b70e2a);
  padding: 32px 36px;
  position: relative;
  overflow: hidden;
  color: white;
  display: flex;
  align-items: center;
  box-shadow: 0 18px 34px #8d0b221a;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 570px;
}

.hero .eyebrow {
  color: #f3c46b;
}

.hero h2 {
  font: 800 27px/1.2 Manrope;
  letter-spacing: -.04em;
  margin: 12px 0;
}

.hero p {
  color: #f0dfe2;
  margin: 0 0 20px;
  font-size: 12px;
}

.hero-stat {
  position: absolute;
  right: 38px;
  bottom: 30px;
  display: flex;
  gap: 9px;
  z-index: 1;
}

.hero-stat div {
  border: 1px solid #ffffff35;
  background: #ffffff12;
  border-radius: 12px;
  padding: 12px 15px;
  min-width: 112px;
}

.hero-stat strong {
  display: block;
  font: 800 19px Manrope;
}

.hero-stat span {
  font-size: 9px;
  color: #f0dfe2;
}

.button {
  border: 0;
  border-radius: 9px;
  padding: 11px 15px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: .2s;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--red);
  color: white;
  box-shadow: 0 8px 18px #b90e2a22;
}

.button.outline {
  background: white;
  color: #4b505c;
  border: 1px solid var(--line);
}

.hero .button {
  background: white;
  color: #681224;
}

.section {
  margin-top: 27px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 13px;
}

.section-head h2 {
  margin: 0;
  font: 800 16px Manrope;
}

.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.text-button {
  border: 0;
  background: none;
  color: var(--red);
  font-weight: 700;
  font-size: 11px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin-top: 18px;
}

.stat-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
}

.stat-icon {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #fff1f2;
  color: var(--red);
  font-size: 18px;
}

.stat-card b {
  font: 800 19px Manrope;
}

.stat-card small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.course-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  transition: .2s;
  box-shadow: var(--shadow);
}

.course-card:hover {
  transform: translateY(-3px);
}

.course-cover {
  height: 118px;
  padding: 15px 16px;
  position: relative;
  color: white;
  display: flex;
  align-items: flex-end;
}

.course-symbol {
  position: absolute;
  left: 17px;
  top: 15px;
  font-size: 22px;
}

.cover-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.cover-red {
  background: linear-gradient(130deg, #700d20, #d52b45);
}

.cover-blue {
  background: linear-gradient(130deg, #132d57, #3476a1);
}

.cover-gold {
  background: linear-gradient(130deg, #60421c, #d19b42);
}

.cover-green {
  background: linear-gradient(130deg, #17473c, #3b9a78);
}

.cover-purple {
  background: linear-gradient(130deg, #3a2a61, #8764b7);
}

.cover-slate {
  background: linear-gradient(130deg, #303a48, #798596);
}

.course-body {
  padding: 14px 15px;
}

.course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8b909d;
  font-size: 9px;
  gap: 8px;
}

.tag {
  padding: 4px 7px;
  background: #f5f6f8;
  border-radius: 20px;
  color: #777d89;
  font-weight: 700;
}

.course-body h3 {
  font: 800 14px/1.35 Manrope;
  margin: 10px 0 6px;
}

.course-body p {
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
  min-height: 31px;
}

.course-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  gap: 8px;
}

.course-foot > span {
  font-size: 10px;
  color: #777d89;
}

.course-foot .button {
  padding: 8px 11px;
  font-size: 10px;
}

.progress-line {
  height: 4px;
  background: #eff0f3;
  border-radius: 5px;
  margin-top: 11px;
  overflow: hidden;
}

.progress-line span {
  height: 100%;
  display: block;
  background: var(--red);
  border-radius: 5px;
}

.continue-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 17px 19px;
  align-items: center;
}

.continue-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.continue-mark {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(145deg, #7f1025, #d72b46);
  display: grid;
  place-items: center;
  color: white;
  font-size: 22px;
}

.continue-info h3 {
  font: 800 14px Manrope;
  margin: 3px 0;
}

.continue-info p {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}

.continue-action {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.continue-action small {
  font-size: 9px;
  color: var(--muted);
}

.filter-row {
  display: flex;
  gap: 9px;
  margin-bottom: 17px;
  align-items: center;
}

.filter-search {
  height: 39px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 11px;
  flex: 1;
}

.filter-search input {
  border: 0;
  outline: none;
  width: 100%;
  font-size: 11px;
}

.filter-row select {
  height: 39px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 9px;
  padding: 0 12px;
  color: #555b68;
  font-size: 11px;
}

.empty-state {
  text-align: center;
  background: white;
  border: 1px dashed #dfe2e8;
  border-radius: 14px;
  padding: 38px;
  color: #818694;
}

.empty-state strong {
  display: block;
  color: #343945;
  margin: 7px;
}

.empty-state p {
  font-size: 11px;
}

.page-title {
  margin-bottom: 20px;
}

.page-title h1 {
  font: 800 25px Manrope;
  margin: 6px 0;
}

.page-title p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.admin-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.admin-box {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 18px;
  min-width: 0;
}

.admin-box h3 {
  font: 800 14px Manrope;
  margin: 0 0 14px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 11px;
}

.field label {
  font-size: 10px;
  font-weight: 700;
  color: #5f6471;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #dfe2e8;
  background: white;
  border-radius: 8px;
  padding: 10px;
  font-size: 11px;
  outline-color: #cf7380;
}

.field textarea {
  resize: vertical;
  min-height: 70px;
}

.admin-list {
  grid-column: 1 / -1;
}

.admin-course-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.admin-course-row:last-child {
  border: 0;
}

.admin-course-row small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.link-button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  padding: 7px 9px;
  color: #626876;
  font-size: 10px;
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 15px;
  margin-bottom: 10px;
}

.cert-medal {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff4dd;
  color: #b17c22;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.cert-card h3 {
  font: 700 13px Manrope;
  margin: 0 0 4px;
}

.cert-card p {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}

.cert-card .button {
  margin-left: auto;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #11131aa8;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 30;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  background: white;
  border-radius: 18px;
  width: min(650px, 100%);
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 30px 100px #0004;
}

.modal-header {
  padding: 20px 22px 15px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.modal-header h2 {
  font: 800 19px Manrope;
  margin: 5px 0;
}

.modal-header p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}

.close-button {
  border: 0;
  background: #f2f3f5;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  font-size: 18px;
  color: #646a76;
}

.modal-content {
  padding: 20px 22px;
}

.lesson-list {
  display: grid;
  gap: 8px;
  margin: 17px 0;
}

.lesson-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px;
  font-size: 11px;
}

.lesson-row.done {
  background: #f2f8f4;
  border-color: #dcefe2;
}

.lesson-check {
  width: 20px;
  height: 20px;
  border: 1px solid #d7dbe2;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #328457;
  flex-shrink: 0;
}

.lesson-row > span:nth-child(2) {
  flex: 1;
}

.lesson-row small {
  color: #9095a0;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 14px 22px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: #20232c;
  color: white;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 11px;
  box-shadow: 0 8px 30px #0003;
  opacity: 0;
  transform: translateY(10px);
  transition: .25s;
  z-index: 50;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1050px) {
  .app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .content {
    padding-left: 26px;
    padding-right: 26px;
  }

  .topbar {
    padding: 0 26px;
  }

  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    left: -270px;
    width: 258px;
    transition: left .25s;
    box-shadow: 10px 0 30px #0002;
  }

  .sidebar.open {
    left: 0;
  }

  .mobile-menu {
    display: block;
    border: 0;
    background: none;
    font-size: 19px;
    color: #494e59;
  }

  .topbar {
    min-height: 60px;
    padding: 0 16px;
  }

  .breadcrumb {
    margin-right: auto;
  }

  .top-actions {
    gap: 8px;
  }

  .search-box {
    width: 38px;
    padding: 0;
    justify-content: center;
    border: 0;
    background: none;
  }

  .search-box input,
  .search-box kbd {
    display: none;
  }

  .top-profile > span:not(.avatar):not(.chevron) {
    display: none;
  }

  .content {
    padding: 24px 16px;
  }

  .welcome-row h1 {
    font-size: 22px;
  }

  .date-chip {
    display: none;
  }

  .hero {
    padding: 24px;
    min-height: 230px;
    display: block;
  }

  .hero h2 {
    font-size: 23px;
  }

  .hero-stat {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 18px;
  }

  .hero-stat div {
    min-width: 0;
    padding: 9px 11px;
  }

  .stats-grid,
  .course-grid,
  .admin-panel {
    grid-template-columns: 1fr;
  }

  .continue-card {
    grid-template-columns: 1fr;
  }

  .continue-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .admin-list {
    grid-column: auto;
  }

  .filter-row {
    flex-wrap: wrap;
  }

  .filter-search {
    flex-basis: 100%;
  }

  .filter-row select {
    flex: 1;
    min-width: 0;
  }

  .footer {
    padding: 15px 16px;
    flex-wrap: wrap;
    gap: 7px;
  }

  .footer span:nth-child(2) {
    display: none;
  }

  .footer a {
    margin-left: auto;
  }

  .cert-card {
    flex-wrap: wrap;
  }
}

/* ============================================
   EVOLUTION EVOLUI — AULAS E AVALIAÇÕES
   Acrescentar ao final do styles.css
============================================ */

.lesson-row {
  width: 100%;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: .2s;
}

.lesson-row:hover,
.lesson-row.selected {
  border-color: #c87986;
  background: #fff8f9;
}

.lesson-row.selected {
  box-shadow: inset 3px 0 var(--red);
}

.lesson-content {
  background: #fafbfc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 19px;
  margin-top: 17px;
}

.lesson-content h3 {
  font: 800 16px Manrope, sans-serif;
  margin: 8px 0 13px;
}

.lesson-text {
  color: #555b68;
  font-size: 12px;
  line-height: 1.8;
  white-space: normal;
  margin-bottom: 18px;
}

.lesson-finished {
  color: #28784b;
  font-size: 11px;
  font-weight: 700;
}

.exam-ready {
  margin-top: 17px;
  padding: 18px;
  border: 1px solid #ead9b5;
  border-radius: 12px;
  background: #fffaf0;
}

.exam-ready h3 {
  margin: 0 0 7px;
  font: 800 15px Manrope, sans-serif;
}

.exam-ready p {
  color: #6d6250;
  font-size: 11px;
  line-height: 1.6;
}

.form-hint {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
  margin: 0 0 14px;
}

.quiz-question {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px;
  margin: 0 0 14px;
  min-width: 0;
}

.quiz-question legend {
  padding: 0 5px;
  font: 700 12px/1.5 Manrope, sans-serif;
  color: #343945;
}

.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #eceef2;
  border-radius: 8px;
  cursor: pointer;
  color: #555b68;
  font-size: 11px;
  line-height: 1.5;
}

.quiz-option:hover {
  background: #fff8f9;
  border-color: #e6c4ca;
}

.quiz-option input {
  margin-top: 2px;
  accent-color: var(--red);
}

.quiz-result {
  text-align: center;
}

.score-circle {
  width: 112px;
  height: 112px;
  border: 7px solid #f2e2c5;
  border-radius: 50%;
  margin: 10px auto 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-circle strong {
  font: 800 27px Manrope, sans-serif;
  color: var(--red);
}

.score-circle span {
  font-size: 9px;
  color: var(--muted);
}

.quiz-result > p {
  color: #626876;
  font-size: 12px;
  line-height: 1.6;
}

.answer-review {
  text-align: left;
  margin-top: 22px;
}

.answer-review-item {
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.answer-review-item b {
  font-size: 11px;
  line-height: 1.5;
}

.answer-review-item p {
  color: #28784b;
  font-size: 10px;
  line-height: 1.5;
}

.answer-review-item small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .modal-backdrop {
    padding: 8px;
  }

  .modal {
    max-height: 95vh;
    border-radius: 13px;
  }

  .modal-header,
  .modal-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  .modal-actions {
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap;
  }

  .lesson-row {
    flex-wrap: wrap;
  }

  .lesson-row small {
    display: none;
  }
}

@media print {
  body * {
    visibility: hidden;
  }

  .certificate-print,
  .certificate-print * {
    visibility: visible;
  }

  .certificate-print {
    position: absolute;
    inset: 0;
    width: 100%;
  }
}
/* ==========================================
   LOGIN — EVOLUTION EVOLUI
========================================== */

[hidden] {
  display: none !important;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, #f4d9dd 0, transparent 35%),
    linear-gradient(135deg, #191b22, #3b1720 55%, #72172a);
}

.auth-card {
  width: min(430px, 100%);
  padding: 38px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 25px 80px #0004;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 38px;
}

.auth-card .eyebrow {
  display: block;
  margin-bottom: 10px;
}

.auth-card h1 {
  font: 800 27px Manrope, sans-serif;
  letter-spacing: -.04em;
  margin: 0 0 9px;
  color: var(--ink);
}

.auth-card > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin: 0 0 25px;
}

.auth-field {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.auth-field label {
  font-size: 11px;
  font-weight: 700;
  color: #555b68;
}

.auth-field input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline-color: #cf7380;
  font-size: 12px;
}

.auth-submit {
  width: 100%;
  justify-content: center;
  min-height: 44px;
  margin-top: 7px;
}

.auth-submit:disabled {
  opacity: .65;
  cursor: wait;
}

.auth-message {
  padding: 11px;
  border-radius: 8px;
  background: #fff1f2;
  color: #9c1730;
  font-size: 11px;
  line-height: 1.6;
}

.auth-footer {
  display: block;
  text-align: center;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
  margin-top: 23px;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 27px 22px;
  }

  .auth-card h1 {
    font-size: 23px;
  }
}
.auth-forgot {
  display: block;
  margin: 13px auto 0;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.auth-forgot:hover {
  text-decoration: underline;
}

/* =====================================================
   EVOLUTION EVOLUI — DASHBOARD PREMIUM
   ===================================================== */

.welcome-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.welcome-row h1 {
  font: 800 30px Manrope, sans-serif;
  margin: 7px 0;
  letter-spacing: -1.2px;
  color: #25232a;
}

.welcome-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.eyebrow {
  color: var(--red);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
}

.date-chip {
  background: #fff;
  border: 1px solid #ece8e9;
  border-radius: 12px;
  padding: 11px 15px;
  color: #68636b;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 4px 14px #21141708;
}

/* BANNER PRINCIPAL */

.hero {
  min-height: 245px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 85% 20%, #ffffff18 0, transparent 28%),
    linear-gradient(115deg, #211417 0%, #510d1c 52%, #a90d29 100%);
  padding: 38px 40px;
  position: relative;
  overflow: hidden;
  color: white;
  display: flex;
  align-items: center;
  box-shadow: 0 16px 36px #760c241f;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border: 1px solid #ffffff17;
  border-radius: 50%;
  right: 9%;
  top: -115px;
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  border: 1px solid #ffffff12;
  border-radius: 50%;
  right: 19%;
  bottom: -125px;
  z-index: -1;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 570px;
}

.hero .eyebrow {
  color: #f3c46b;
}

.hero h2 {
  font: 800 30px/1.2 Manrope, sans-serif;
  letter-spacing: -1.1px;
  margin: 14px 0;
}

.hero p {
  color: #f0dfe2;
  margin: 0 0 23px;
  font-size: 12px;
  line-height: 1.7;
  max-width: 410px;
}

.hero-stat {
  position: absolute;
  right: 38px;
  bottom: 32px;
  display: flex;
  gap: 10px;
  z-index: 2;
}

.hero-stat div {
  border: 1px solid #ffffff35;
  background: #ffffff12;
  backdrop-filter: blur(8px);
  border-radius: 13px;
  padding: 13px 16px;
  min-width: 118px;
}

.hero-stat strong {
  display: block;
  font: 800 21px Manrope, sans-serif;
  color: #fff;
}

.hero-stat span {
  font-size: 9px;
  color: #f0dfe2;
}

/* BOTÕES */

.button {
  border: 0;
  border-radius: 10px;
  padding: 12px 17px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .2s, box-shadow .2s, background .2s;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--red);
  color: white;
  box-shadow: 0 7px 17px #b90e2a25;
}

.button.primary:hover {
  box-shadow: 0 10px 22px #b90e2a38;
}

.button.outline {
  background: white;
  color: #4b505c;
  border: 1px solid var(--line);
}

.hero .button {
  background: white;
  color: #681224;
  padding: 13px 19px;
  border-radius: 10px;
  box-shadow: 0 6px 18px #00000020;
}

.hero .button:hover {
  background: #fff4f5;
}

/* INDICADORES */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.stat-card {
  background: #fff;
  border: 1px solid #eee9eb;
  border-radius: 16px;
  padding: 19px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 5px 18px #21141708;
  transition: transform .2s, box-shadow .2s;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px #21141710;
}

.stat-icon {
  width: 43px;
  height: 43px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #fff0f2;
  color: var(--red);
  font-size: 19px;
}

.stat-card b {
  display: block;
  font: 800 22px Manrope, sans-serif;
  color: #28242a;
  line-height: 1.2;
}

.stat-card small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}

/* SEÇÕES */

.section {
  margin-top: 32px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0;
  font: 800 17px Manrope, sans-serif;
  letter-spacing: -.4px;
  color: #29252b;
}

.section-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.text-button {
  border: 0;
  background: none;
  color: var(--red);
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  transition: opacity .2s;
}

.text-button:hover {
  opacity: .7;
}

/* GRADE DE CURSOS */

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

/* RESPONSIVIDADE */

@media (max-width: 900px) {
  .hero {
    padding: 30px;
  }

  .hero-stat {
    right: 25px;
    bottom: 23px;
  }

  .hero-stat div {
    min-width: 100px;
  }

  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .welcome-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .welcome-row h1 {
    font-size: 25px;
  }

  .hero {
    padding: 27px 23px;
    min-height: 330px;
    align-items: flex-start;
  }

  .hero h2 {
    font-size: 25px;
  }

  .hero-stat {
    left: 23px;
    right: 23px;
    bottom: 22px;
  }

  .hero-stat div {
    flex: 1;
    min-width: 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stat-card {
    padding: 15px;
  }

  .section-head {
    align-items: flex-start;
  }

  .course-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   NOVA IDENTIDADE VISUAL — EVOLUTION EVOLUI
   ========================================== */

.brand-evolui {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 25px 10px 30px;
  text-decoration: none;
  position: relative;
}

.brand-mark-evolui {
  position: relative;
  font-family: Manrope, sans-serif;
  font-size: 65px;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  letter-spacing: -8px;
  color: #e5092d;
  text-shadow: 0 4px 18px #e5092d45;
}

.brand-name-evolui {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.brand-evolution {
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 5px;
  margin-left: 3px;
}

.brand-name-evolui strong {
  color: #ffffff;
  font-family: Manrope, sans-serif;
  font-size: 30px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -1.8px;
  line-height: 1.05;
  text-shadow: 0 3px 12px #ffffff20;
}

.brand-name-evolui small {
  color: #c9bfc2;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-top: 7px;
}

.brand-evolui::after {
    display: none !important;
}
/* ==========================================
   SIDEBAR PREMIUM — EVOLUTION EVOLUI
   ========================================== */

.sidebar {
  background: linear-gradient(180deg, #171316 0%, #100e10 100%);
  border-right: 1px solid #ffffff12;
  box-shadow: 8px 0 30px #00000012;
  position: relative;
  overflow: hidden;
}

.sidebar::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  left: -120px;
  bottom: -80px;
  border-radius: 50%;
  background: #b90e2a20;
  filter: blur(55px);
  pointer-events: none;
}

.brand-evolui {
  min-height: 125px;
  border-bottom: 1px solid #ffffff12;
  margin-bottom: 10px;
  z-index: 1;
}

.workspace-label {
  color: #81777b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.8px;
  padding: 0 19px;
  margin-bottom: 13px;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0 12px;
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.nav-link {
  width: 100%;
  min-height: 47px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #c9c2c5;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  transition: all .22s ease;
  cursor: pointer;
}

.nav-link:hover {
  color: #fff;
  background: #ffffff0d;
  border-color: #ffffff10;
  transform: translateX(3px);
}

.nav-link.active {
  color: #fff;
  background: linear-gradient(105deg, #e5092d, #970c25);
  border-color: #ffffff18;
  box-shadow: 0 7px 20px #e5092d35;
}

.nav-icon {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  color: inherit;
  font-size: 17px;
  flex-shrink: 0;
}

.nav-count {
  margin-left: auto;
  min-width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #ffffff17;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.nav-link:not(.active) .nav-count {
  background: #ffffff12;
  color: #d6cbd0;
}

/* Separação elegante do menu */

.side-nav::after {
  content: "";
  height: 1px;
  background: #ffffff12;
  margin: 14px 3px;
}

/* Logo sempre acima dos efeitos decorativos */

.brand-evolui,
.workspace-label,
.side-nav {
  isolation: isolate;
}
/* =========================================
   EVOLUTION EVOLUI — BANNER ABSTRATO
========================================= */

.hero-evolui {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 76% 48%, #7e102b55 0%, transparent 38%),
    linear-gradient(115deg, #171115 0%, #211018 55%, #100e11 100%);
  border: 1px solid #ffffff12;
  min-height: 310px;
  border-radius: 20px;
}

.hero-evolui::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: 12%;
  top: -100px;
  border-radius: 50%;
  background: #e5092d20;
  filter: blur(75px);
  z-index: -1;
}

.hero-evolui .hero-copy {
  position: relative;
  z-index: 3;
  max-width: 510px;
}

.hero-evolui .hero-copy h2 {
  color: #fff;
  font-size: clamp(27px, 3vw, 39px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1.5px;
}

.hero-evolui .hero-copy h2 span {
  display: block;
  color: #ff3657;
}

.hero-evolui .hero-copy p {
  color: #c9bec3;
}

.hero-evolui .eyebrow {
  color: #ff7188;
  letter-spacing: 2px;
}

.hero-evolui .button {
  background: linear-gradient(110deg, #f0183e, #a9082a);
  border: 1px solid #ff526e55;
  box-shadow: 0 8px 25px #e5092d35;
}

.hero-evolui .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px #e5092d55;
}

/* Ilustração abstrata */

.hero-art {
  position: absolute;
  width: 390px;
  height: 300px;
  top: 50%;
  right: 17%;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 190px;
  height: 190px;
  left: 100px;
  top: 50px;
  border-radius: 50%;
  background: #ed123d55;
  filter: blur(55px);
}

.hero-orbit {
  position: absolute;
  border: 1px solid #ff526e55;
  border-radius: 50%;
  left: 55px;
  top: 10px;
  width: 270px;
  height: 270px;
  transform: rotate(-25deg) scaleY(.55);
  box-shadow: 0 0 20px #e5092d15;
}

.orbit-two {
  transform: rotate(55deg) scaleY(.75);
  border-color: #ffb45a55;
  left: 75px;
  top: 15px;
}

.hero-core {
  position: absolute;
  left: 130px;
  top: 95px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(145deg, #3c1522, #130e13);
  border: 1px solid #ff526e99;
  box-shadow:
    0 0 30px #e5092d55,
    inset 0 0 25px #e5092d25;
}

.hero-core span {
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 3px;
}

.hero-core strong {
  color: #ff3657;
  font-size: 28px;
  line-height: 1;
}

.hero-line {
  position: absolute;
  height: 1px;
  width: 130px;
  background: linear-gradient(90deg, transparent, #ff3657, transparent);
  transform: rotate(-35deg);
}

.line-one {
  top: 65px;
  right: 0;
}

.line-two {
  bottom: 45px;
  left: 5px;
  transform: rotate(35deg);
  background: linear-gradient(90deg, transparent, #ffb45a, transparent);
}

.hero-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff526e;
  box-shadow: 0 0 15px #ff3657;
}

.dot-one {
  top: 55px;
  right: 65px;
}

.dot-two {
  bottom: 55px;
  left: 65px;
  background: #ffbd70;
  box-shadow: 0 0 15px #ffbd70;
}

.hero-evolui .hero-stat {
  position: absolute;
  z-index: 4;
  right: 28px;
  bottom: 25px;
  display: flex;
  gap: 25px;
  align-items: center;
  padding: 14px 20px;
  border: 1px solid #ffffff20;
  border-radius: 14px;
  background: #160d12d9;
  backdrop-filter: blur(12px);
}

.hero-evolui .hero-stat strong {
  display: block;
  color: #fff;
  font-size: 25px;
  font-weight: 900;
}

.hero-evolui .hero-stat span {
  display: block;
  color: #c9bec3;
  font-size: 10px;
}

/* Responsividade */

@media (max-width: 900px) {
  .hero-art {
    right: -80px;
    opacity: .45;
  }
}

@media (max-width: 600px) {
  .hero-evolui {
    min-height: 360px;
  }.hero-evolui .hero-stat {
  right: 15px;
  bottom: 15px;
  gap: 15px;
  padding: 10px 13px;
}

  .hero-art {
    right: -170px;
    top: 58%;
    opacity: .3;
  }

  .hero-evolui .hero-copy {
    max-width: 100%;
  }
}
/* ANIMAÇÃO DA ILUSTRAÇÃO EVOLUI */

.hero-art {
  animation: heroFloat 6s ease-in-out infinite;
}

.hero-core {
  animation: coreGlow 3s ease-in-out infinite alternate;
}

.hero-orbit {
  animation: orbitGlow 5s ease-in-out infinite alternate;
}

.hero-dot {
  animation: dotPulse 2s ease-in-out infinite alternate;
}

.dot-two {
  animation-delay: 1s;
}

@keyframes heroFloat {
  0%, 100% {
    transform: translateY(-50%);
  }
  50% {
    transform: translateY(calc(-50% - 9px));
  }
}

@keyframes coreGlow {
  from {
    box-shadow: 0 0 25px #e5092d35,
                inset 0 0 20px #e5092d15;
  }
  to {
    box-shadow: 0 0 45px #e5092d85,
                inset 0 0 30px #e5092d35;
  }
}

@keyframes orbitGlow {
  from {
    opacity: .55;
  }
  to {
    opacity: 1;
  }
}

@keyframes dotPulse {
  from {
    opacity: .5;
    transform: scale(.8);
  }
  to {
    opacity: 1;
    transform: scale(1.3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art,
  .hero-core,
  .hero-orbit,
  .hero-dot {
    animation: none;
  }
}

/* ==========================================
   EVOLUTION EVOLUI — CARDS DOS CURSOS
========================================== */

.course-card {
  background: #fff;
  border: 1px solid #eee5e8;
  border-radius: 17px;
  overflow: hidden;
  box-shadow: 0 5px 18px #21141708;
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

.course-card:hover {
  transform: translateY(-5px);
  border-color: #e9cbd2;
  box-shadow: 0 12px 28px #21141712;
}

/* CAPA COM IMAGEM */

.course-cover {
  position: relative;
  width: 100%;
  height: 180px;
  padding: 0;
  overflow: hidden;
  background: #21191d;
  border-radius: 0;
}

.course-cover-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .45s ease;
}

.course-card:hover .course-cover-image {
  transform: scale(1.05);
}

/* CAMADA ESCURA SOBRE A IMAGEM */

.course-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.05) 0%,
    rgba(0,0,0,.10) 45%,
    rgba(0,0,0,.65) 100%
  );
  pointer-events: none;
}

/* CONTEÚDO DA CAPA */

.course-cover-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px;
  z-index: 1;
  pointer-events: none;
}

.course-symbol {
  font-size: 25px;
  color: #fff;
  text-shadow: 0 3px 12px #0008;
}

.cover-label {
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  text-shadow: 0 2px 8px #0008;
}

/* CORPO DO CARD */

.course-body {
  padding: 18px;
}

.course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #8b909d;
  font-size: 10px;
}

/* TÍTULO */

.course-body h3 {
  font-family: Manrope, sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  color: #29232a;
  margin: 13px 0 8px;
}

/* DESCRIÇÃO */

.course-body p {
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted);
  min-height: 36px;
  margin: 0;
}

/* RODAPÉ */

.course-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 17px;
  padding-top: 13px;
  border-top: 1px solid #f1edef;
}

.course-foot > span {
  font-size: 10px;
  color: #777d89;
}

.course-foot .button {
  border-radius: 8px;
  padding: 9px 13px;
  font-size: 10px;
  background: linear-gradient(110deg, #e5092d, #a9082a);
  color: #fff;
  border: 1px solid #e5092d;
  box-shadow: 0 5px 13px #e5092d25;
  transition: all .25s ease;
}

.course-foot .button:hover {
  background: linear-gradient(110deg, #fa2348, #bd0b31);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px #e5092d40;
}

/* RESPONSIVIDADE */

@media (max-width: 760px) {
  .course-cover {
    height: 165px;
  }

  .course-body {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .course-cover {
    height: 180px;
  }
}

/* ==========================================
   EVOLUTION EVOLUI — FILTROS PREMIUM
========================================== */

.filter-row {
  gap: 12px;
  margin-bottom: 22px;
}

.filter-search {
  min-height: 45px;
  border: 1px solid #eee3e7;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 4px 13px #21141706;
  transition: border-color .2s, box-shadow .2s;
}

.filter-search:focus-within {
  border-color: #d64b65;
  box-shadow: 0 0 0 3px #e5092d12;
}

.filter-search input {
  color: #29232a;
  font-size: 12px;
}

.filter-search input::placeholder {
  color: #a5a0a4;
}

.filter-row select {
  min-height: 45px;
  border: 1px solid #eee3e7;
  border-radius: 11px;
  background: #fff;
  color: #514951;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}

.filter-row select:focus {
  outline: none;
  border-color: #d64b65;
  box-shadow: 0 0 0 3px #e5092d12;
}

.filter-row select:hover {
  border-color: #d8aab4;
}

@media (max-width: 600px) {
  .filter-row {
    gap: 9px;
  }

  .filter-row select {
    min-height: 42px;
    font-size: 10px;
  }
}
/* ==========================================
   EVOLUTION EVOLUI — MEUS CURSOS PREMIUM
========================================== */

.continue-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, #fff 0%, #fff8f9 100%);
  border: 1px solid #f0dfe3;
  border-radius: 17px;
  padding: 21px;
  box-shadow: 0 6px 20px #72172a08;
  transition: transform .25s ease, box-shadow .25s ease;
}

.continue-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 27px #72172a12;
}

.continue-mark {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  background: linear-gradient(145deg, #e5092d, #790d25);
  box-shadow: 0 7px 17px #e5092d30;
}

.continue-info h3 {
  font-size: 15px;
  color: #29232a;
}

.continue-info p {
  font-size: 11px;
  line-height: 1.6;
}

.continue-action .button {
  background: linear-gradient(110deg, #e5092d, #a9082a);
  color: #fff;
  border: 0;
  box-shadow: 0 5px 13px #e5092d25;
}

.continue-action .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px #e5092d40;
}

.continue-action small {
  color: #8b747c;
  font-weight: 600;
}

@media (max-width: 600px) {
  .continue-card {
    padding: 16px;
  }

  .continue-info {
    align-items: flex-start;
  }

  .continue-mark {
    width: 48px;
    height: 48px;
  }
}
/* MENU LATERAL FIXO — CORREÇÃO DO ESPAÇAMENTO */
@media (min-width: 761px) {
  .app-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    overflow: hidden;
    z-index: 20;
  }

  .main-area {
    grid-column: 2;
    margin-left: 0;
    min-width: 0;
    width: 100%;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 15;
    background: #fff;
  }
}

/* EVOLUTION EVOLUI — INDICADORES PREMIUM */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eee5e8;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 5px 18px #21141708;
  transition: transform .25s ease, box-shadow .25s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px #72172a12;
}

.stat-card::after {
  content: "";
  position: absolute;
  width: 85px;
  height: 85px;
  right: -28px;
  top: -28px;
  border-radius: 50%;
  background: #e5092d0b;
}

.stat-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff0f2;
  color: #c5092d;
  font-size: 19px;
  margin-bottom: 17px;
}

.stat-card strong {
  display: block;
  color: #211b20;
  font-family: Manrope, sans-serif;
  font-size: 27px;
  font-weight: 900;
  line-height: 1.2;
}

.stat-card span {
  display: block;
  color: #827780;
  font-size: 11px;
  margin-top: 7px;
}

@media (max-width: 1050px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .stats-grid {
    gap: 15px;
  }

  .stat-card {
    padding: 15px;
  }

  .stat-card strong {
    font-size: 15px;
  }
}

/* EVOLUTION EVOLUI — TÍTULOS DAS SEÇÕES */

.section {
  margin-bottom: 32px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head h2 {
  color: #211b20;
  font-family: Manrope, sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin: 0;
}

.section-head p {
  color: #8a7e84;
  font-size: 11px;
  margin-top: 5px;
  line-height: 1.5;
}

.section-head a {
  color: #c5092d;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  transition: color .2s ease;
}

.section-head a:hover {
  color: #85091f;
}

@media (max-width: 600px) {
  .section-head {
    align-items: flex-start;
  }

  .section-head h2 {
    font-size: 16px;
  }
}

/* EVOLUTION EVOLUI — TOPBAR PREMIUM */

.topbar {
  min-height: 76px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #eee8eb;
  box-shadow: 0 3px 15px #21141705;
  backdrop-filter: blur(12px);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9a8e94;
  font-size: 12px;
  font-weight: 500;
}

.breadcrumb i {
  color: #d4c8cd;
  font-style: normal;
}

.breadcrumb b {
  color: #292129;
  font-weight: 800;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-box {
  height: 40px;
  width: 235px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  background: #f8f6f7;
  border: 1px solid #eee7ea;
  border-radius: 10px;
  transition: all .2s ease;
}

.search-box:focus-within {
  background: #fff;
  border-color: #d98a9a;
  box-shadow: 0 0 0 3px #e5092d0c;
}

.search-box > span {
  color: #a20d2b;
  font-size: 20px;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #292129;
  font-size: 11px;
}

.search-box input::placeholder {
  color: #a79ba1;
}

.search-box kbd {
  white-space: nowrap;
  padding: 3px 5px;
  border: 1px solid #e9dfe3;
  border-radius: 5px;
  background: #fff;
  color: #9b8d94;
  font-size: 9px;
}

.icon-button {
  position: relative;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1px solid #eee7ea;
  border-radius: 10px;
  background: #fff;
  color: #655860;
  font-size: 18px;
  transition: all .2s ease;
}

.icon-button:hover {
  color: #c5092d;
  background: #fff4f6;
  border-color: #f0cbd3;
  transform: translateY(-2px);
}

.notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #e5092d;
}

.top-profile {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 10px;
  border: 1px solid #eee7ea;
  border-radius: 11px;
  background: #fff;
  color: #30252c;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all .2s ease;
}

.top-profile:hover {
  background: #fff7f8;
  border-color: #edc8d0;
}

.top-profile .avatar {
  background: linear-gradient(145deg, #e5092d, #890b27);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 3px 9px #e5092d30;
}

.top-profile .chevron {
  color: #9b8c93;
  font-size: 13px;
}

@media (max-width: 760px) {
  .topbar {
    padding: 0 15px;
    gap: 10px;
  }

  .search-box {
    width: 165px;
  }

  .search-box kbd {
    display: none;
  }
}

@media (max-width: 480px) {
  .breadcrumb {
    display: none;
  }

  .top-actions {
    margin-left: auto;
    gap: 8px;
  }

  .search-box {
    width: 145px;
  }

  .top-profile {
    padding: 4px;
  }

  .top-profile #topName,
  .top-profile .chevron {
    display: none;
  }
}

/* EVOLUTION EVOLUI — BOAS-VINDAS */

.welcome-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding: 5px 2px;
}

.welcome-row h1 {
  color: #241c22;
  font-family: Manrope, sans-serif;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.25;
  margin: 0;
}

.welcome-row p {
  color: #8a7e84;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 7px;
}

.welcome-row .welcome-date {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #eee5e8;
  border-radius: 10px;
  color: #766970;
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 4px 12px #21141706;
}

@media (max-width: 600px) {
  .welcome-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .welcome-row h1 {
    font-size: 21px;
  }
}

/* EVOLUTION EVOLUI — CARD CONTINUE APRENDENDO */

.continue-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 25px;
  background: linear-gradient(115deg, #ffffff 0%, #fff5f7 100%);
  border: 1px solid #f0dce2;
  border-radius: 18px;
  box-shadow: 0 7px 24px #72172a0a;
  transition: all .25s ease;
}

.continue-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -65px;
  top: -85px;
  border-radius: 50%;
  background: #e5092d0c;
  pointer-events: none;
}

.continue-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 13px 30px #72172a15;
  border-color: #e9c1ca;
}

.continue-info {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.continue-mark {
  width: 65px;
  height: 65px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(145deg, #e5092d, #790d25);
  color: #fff;
  font-size: 27px;
  box-shadow: 0 7px 17px #e5092d35;
}

.continue-info .eyebrow {
  color: #bd1635;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.6px;
}

.continue-info h3 {
  color: #292129;
  font-family: Manrope, sans-serif;
  font-size: 16px;
  font-weight: 900;
  margin: 6px 0;
}

.continue-info p {
  color: #8a7e84;
  font-size: 11px;
  margin-bottom: 12px;
}

.continue-info .progress-line {
  max-width: 350px;
  height: 6px;
  overflow: hidden;
  background: #f0e5e9;
  border-radius: 10px;
}

.continue-info .progress-line span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #a9082a, #f04460);
  border-radius: 10px;
  transition: width .4s ease;
}

@media (max-width: 600px) {
  .continue-card {
    padding: 17px;
    gap: 15px;
  }

  .continue-info {
    align-items: flex-start;
    gap: 12px;
  }

  .continue-mark {
    width: 48px;
    height: 48px;
    font-size: 21px;
    border-radius: 13px;
  }

  .continue-info h3 {
    font-size: 13px;
  }
}

/* EVOLUTION EVOLUI — AÇÃO DO CARD DE CONTINUIDADE */

.continue-action {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 13px;
  flex-shrink: 0;
}

.continue-action small {
  color: #8d7d85;
  font-size: 10px;
  font-weight: 700;
}

.continue-action .button {
  min-height: 43px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(110deg, #e5092d, #a9082a);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 6px 16px #e5092d30;
  transition: all .25s ease;
}

.continue-action .button:hover {
  background: linear-gradient(110deg, #fa2348, #bd0b31);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px #e5092d40;
}

.continue-action .button:active {
  transform: translateY(0);
}

@media (max-width: 600px) {
  .continue-card {
    flex-wrap: wrap;
  }

  .continue-action {
    width: 100%;
    align-items: stretch;
    padding-left: 60px;
  }

  .continue-action .button {
    width: 100%;
  }
}

/* EVOLUTION EVOLUI — RECOMENDADOS */

.section:has(.course-grid) {
  margin-top: 30px;
}

.section .section-head {
  margin-bottom: 20px;
}

.section .section-head h2 {
  font-size: 19px;
  letter-spacing: -0.7px;
}

.section .section-head p {
  color: #94868d;
  font-size: 11px;
  margin-top: 6px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 14px;
  border: 1px solid #f0dce2;
  border-radius: 9px;
  background: #fff7f8;
  color: #b90e2e;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: all .25s ease;
}

.text-button:hover {
  background: #e5092d;
  border-color: #e5092d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 13px #e5092d25;
}

@media (max-width: 600px) {
  .section .section-head {
    gap: 10px;
  }

  .section .section-head h2 {
    font-size: 16px;
  }

  .text-button {
    padding: 8px 10px;
    font-size: 9px;
  }
}

/* EVOLUTION EVOLUI — PÁGINA MEUS CURSOS */

.page-title {
  margin-bottom: 27px;
  padding: 4px 0;
}

.page-title .eyebrow {
  color: #bd1635;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 2px;
}

.page-title h1 {
  margin: 8px 0 7px;
  color: #241c22;
  font-family: Manrope, sans-serif;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -1px;
}

.page-title p {
  color: #8a7e84;
  font-size: 12px;
  line-height: 1.6;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 35px 20px;
  background: linear-gradient(145deg, #fff, #fff7f8);
  border: 1px dashed #e8cbd2;
  border-radius: 18px;
  text-align: center;
}

.empty-state > span {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 17px;
  border-radius: 17px;
  background: #fff0f2;
  color: #bd1635;
  font-size: 27px;
}

.empty-state h3 {
  color: #292129;
  font-family: Manrope, sans-serif;
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 8px;
}

.empty-state p {
  max-width: 350px;
  color: #8a7e84;
  font-size: 11px;
  line-height: 1.6;
  margin-bottom: 19px;
}

.empty-state .button {
  border-radius: 9px;
  padding: 11px 18px;
}

@media (max-width: 600px) {
  .page-title h1 {
    font-size: 23px;
  }

  .empty-state {
    min-height: 260px;
    padding: 25px 15px;
  }
}

/* EVOLUTION EVOLUI — CERTIFICADOS PREMIUM */

.cert-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 23px;
  margin-bottom: 15px;
  background: linear-gradient(110deg, #fff 0%, #fff8f9 100%);
  border: 1px solid #efdee3;
  border-radius: 17px;
  box-shadow: 0 6px 20px #72172a08;
  transition: all .25s ease;
}

.cert-card:hover {
  transform: translateY(-3px);
  border-color: #e5bbc5;
  box-shadow: 0 12px 25px #72172a14;
}

.cert-medal {
  width: 58px;
  height: 58px;
  min-width: 58px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(145deg, #f9e6b8, #d5a94f);
  color: #755018;
  font-size: 30px;
  box-shadow: 0 6px 15px #c99b3d30;
}

.cert-card h3 {
  color: #292129;
  font-family: Manrope, sans-serif;
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 8px;
}

.cert-card p {
  color: #8a7e84;
  font-size: 11px;
  line-height: 1.6;
}

.cert-card .button {
  margin-left: auto;
  flex-shrink: 0;
  border: 1px solid #e8cbd2;
  border-radius: 9px;
  background: #fff;
  color: #ad1030;
  font-size: 10px;
  font-weight: 800;
  padding: 10px 15px;
  transition: all .2s ease;
}

.cert-card .button:hover {
  background: #e5092d;
  color: #fff;
  border-color: #e5092d;
  transform: translateY(-2px);
}

.empty-state .cert-medal {
  margin: 0 auto 17px !important;
}

.empty-state > strong {
  color: #292129;
  font-family: Manrope, sans-serif;
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 8px;
}

@media (max-width: 600px) {
  .cert-card {
    flex-wrap: wrap;
    gap: 13px;
    padding: 17px;
  }

  .cert-card > div:nth-child(2) {
    flex: 1;
    min-width: 150px;
  }

  .cert-card .button {
    width: 100%;
    margin-left: 0;
  }
}

/* EVOLUTION EVOLUI — PAINEL ADMINISTRATIVO */

.admin-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.admin-box {
  min-width: 0;
  padding: 23px;
  background: #fff;
  border: 1px solid #eee5e8;
  border-radius: 17px;
  box-shadow: 0 5px 18px #21141708;
  transition: box-shadow .25s ease, border-color .25s ease;
}

.admin-box:hover {
  border-color: #ead3d9;
  box-shadow: 0 9px 24px #72172a0c;
}

.admin-box h3 {
  color: #292129;
  font-family: Manrope, sans-serif;
  font-size: 15px;
  font-weight: 900;
  margin: 0 0 20px;
}

.admin-box .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 17px;
}

.admin-box .field label {
  color: #62565e;
  font-size: 11px;
  font-weight: 800;
}

.admin-box .field input,
.admin-box .field textarea,
.admin-box .field select {
  width: 100%;
  min-height: 43px;
  padding: 11px 13px;
  border: 1px solid #eee4e8;
  border-radius: 9px;
  outline: none;
  background: #fcfafb;
  color: #292129;
  font-family: inherit;
  font-size: 11px;
  transition: all .2s ease;
}

.admin-box .field textarea {
  min-height: 95px;
  resize: vertical;
  line-height: 1.6;
}

.admin-box .field input:focus,
.admin-box .field textarea:focus,
.admin-box .field select:focus {
  background: #fff;
  border-color: #d98a9a;
  box-shadow: 0 0 0 3px #e5092d0c;
}

.admin-box .form-hint {
  padding: 12px;
  margin: 5px 0 17px;
  border-left: 3px solid #d7a84e;
  border-radius: 5px;
  background: #fff9ed;
  color: #88744f;
  font-size: 10px;
  line-height: 1.7;
}

.admin-box > p {
  color: #827780;
  font-size: 11px;
  line-height: 1.8;
  margin-bottom: 18px;
}

.admin-box hr {
  height: 1px;
  margin: 23px 0;
  border: 0;
  background: #eee7ea;
}

.admin-box .button {
  min-height: 41px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
}

.admin-list {
  grid-column: 1 / -1;
}

.admin-course-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 2px;
  border-bottom: 1px solid #f0eaed;
}

.admin-course-row:last-child {
  border-bottom: 0;
}

.admin-course-row span {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.admin-course-row b {
  color: #332831;
  font-size: 11px;
  font-weight: 800;
}

.admin-course-row small {
  color: #968991;
  font-size: 10px;
}

.admin-course-row .link-button {
  flex-shrink: 0;
  color: #bd1635;
  font-size: 10px;
  font-weight: 800;
  transition: color .2s ease;
}

.admin-course-row .link-button:hover {
  color: #790d25;
}

.admin-box .link-button {
  cursor: pointer;
}

@media (max-width: 850px) {
  .admin-panel {
    grid-template-columns: 1fr;
  }

  .admin-list {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .admin-box {
    padding: 17px;
  }

  .admin-course-row {
    align-items: flex-start;
  }
}

/* EVOLUTION EVOLUI — FUNDO DARK */

html[data-theme="dark"] {
  color-scheme: dark;

  --bg: #111013;
  --panel: #1b181c;
  --ink: #f5f1f3;
  --muted: #aaa0a6;
  --line: #332d32;
}
/* Fundo geral */
body {
  background: #111013;
  color: #f5f1f3;
}

/* Área principal */
.main-area {
  background: #111013;
}

/* Conteúdo do portal */
.content {
  background: #111013;
}

/* Barra superior */
.topbar {
  background: #191619;
  border-bottom: 1px solid #332d32;
}

.breadcrumb b {
  color: #fff;
}

.breadcrumb {
  color: #a99da4;
}

/* Títulos */
.page-title h1,
.welcome-row h1,
.section-head h2 {
  color: #fff;
}

/* Textos secundários */
.page-title p,
.welcome-row p,
.section-head p {
  color: #aaa0a6;
}

/* Barra de pesquisa */
.search-box {
  background: #fff;
  border: 1px solid #ddd; 
}

.search-box input {
  color: #fff;
}

.search-box input::placeholder {
  color: #a99da4;
}

/* Perfil */
.top-profile,
.icon-button {
  background: #242025;
  border-color: #393139;
  color: #fff;
}

.top-profile:hover,
.icon-button:hover {
  background: #30252b;
}
/* BOTÃO DE TEMA CLARO / ESCURO */
.theme-toggle {
  display: grid;
  place-items: center;
  font-size: 21px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.theme-toggle:hover {
  background: #f1e8eb;
  transform: rotate(-12deg);
}

.theme-toggle span {
  line-height: 1;
}
/* =========================================
   EVOLUTION EVOLUI — TEMA ESCURO
========================================= */

html[data-theme="dark"] {
  color-scheme: dark;

  --bg: #111013;
  --panel: #1b181c;
  --ink: #f5f1f3;
  --muted: #aaa0a6;
  --line: #332d32;
}

/* Fundo principal */
html[data-theme="dark"] body,
html[data-theme="dark"] .main-area,
html[data-theme="dark"] .content {
  background: #111013;
  color: #f5f1f3;
}

/* Barra superior */
html[data-theme="dark"] .topbar {
  background: #191619;
  border-bottom-color: #332d32;
}

html[data-theme="dark"] .breadcrumb,
html[data-theme="dark"] .top-profile,
html[data-theme="dark"] .top-profile span {
  color: #f5f1f3;
}

/* Títulos e textos */
html[data-theme="dark"] .page-title h1,
html[data-theme="dark"] .section-head h2,
html[data-theme="dark"] .course-body h3,
html[data-theme="dark"] .admin-box h3,
html[data-theme="dark"] .empty-state h3,
html[data-theme="dark"] .empty-state strong {
  color: #f5f1f3;
}

html[data-theme="dark"] .page-title p,
html[data-theme="dark"] .section-head p,
html[data-theme="dark"] .course-body p,
html[data-theme="dark"] .empty-state p {
  color: #aaa0a6;
}

/* Cartões */
html[data-theme="dark"] .course-card,
html[data-theme="dark"] .continue-card,
html[data-theme="dark"] .stats-card,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .admin-box,
html[data-theme="dark"] .cert-card,
html[data-theme="dark"] .empty-state {
  background: #1b181c;
  border-color: #332d32;
  color: #f5f1f3;
}

/* Campos de formulário */
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .search-box input {
  background: #252126;
  color: #f5f1f3;
  border-color: #403840;
}

html[data-theme="dark"] .field label {
  color: #ddd4d9;
}

html[data-theme="dark"] .field input::placeholder,
html[data-theme="dark"] .field textarea::placeholder,
html[data-theme="dark"] .search-box input::placeholder {
  color: #91868e;
}

/* Separadores e linhas */
html[data-theme="dark"] .admin-box hr,
html[data-theme="dark"] .admin-course-row {
  border-color: #332d32;
}

/* Botões secundários */
html[data-theme="dark"] .theme-toggle:hover {
  background: #33262d;
}
/* =========================================
   AJUSTES DOS CARDS NO TEMA ESCURO
========================================= */

/* Balões e cartões */
html[data-theme="dark"] .stats-card,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .continue-card,
html[data-theme="dark"] .course-card,
html[data-theme="dark"] .admin-box,
html[data-theme="dark"] .cert-card,
html[data-theme="dark"] .empty-state {
  background: #211d22 !important;
  border-color: #393139 !important;
  color: #f5f1f3 !important;
}

/* Fontes dos cartões */
html[data-theme="dark"] .stats-card *,
html[data-theme="dark"] .stat-card *,
html[data-theme="dark"] .continue-card *,
html[data-theme="dark"] .course-card *,
html[data-theme="dark"] .admin-box *,
html[data-theme="dark"] .cert-card *,
html[data-theme="dark"] .empty-state * {
  color: #f5f1f3;
}

/* Textos secundários */
html[data-theme="dark"] .stats-card p,
html[data-theme="dark"] .stat-card p,
html[data-theme="dark"] .continue-card p,
html[data-theme="dark"] .course-card p,
html[data-theme="dark"] .admin-box p,
html[data-theme="dark"] .cert-card p,
html[data-theme="dark"] .empty-state p {
  color: #bdb2ba !important;
}

/* Números e destaques */
html[data-theme="dark"] .stats-card strong,
html[data-theme="dark"] .stat-card strong {
  color: #ffffff !important;
}

/* Ícones e indicadores */
html[data-theme="dark"] .stats-card span,
html[data-theme="dark"] .stat-card span {
  color: #f5f1f3;
}
/* =========================================
   FUNDO DINÂMICO — TEMA CLARO E ESCURO
========================================= */

/* TEMA CLARO */
html[data-theme="light"],
html:not([data-theme]) {
  color-scheme: light;
  background: #f5f6f8;
}

html[data-theme="light"] body,
html:not([data-theme]) body {
  background: #f5f6f8 !important;
  color: #20232c;
}

html[data-theme="light"] .app-shell,
html[data-theme="light"] .main-area,
html[data-theme="light"] .content,
html:not([data-theme]) .app-shell,
html:not([data-theme]) .main-area,
html:not([data-theme]) .content {
  background: #f5f6f8 !important;
}

/* TEMA ESCURO */
html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] .app-shell,
html[data-theme="dark"] .main-area,
html[data-theme="dark"] .content {
  background: #111013 !important;
  color: #f5f1f3;
}

/* ==========================================
   EVOLUTION EVOLUI — REFINAMENTO DOS CARDS
========================================== */

.course-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted, #85818a);
  font-size: 11px;
  font-weight: 600;
}

.course-meta .tag {
  background: #fff0f2;
  color: #a20d2b;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
}

.course-body h3 {
  font-family: Manrope, sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.3px;
  color: var(--ink, #29232a);
  margin: 15px 0 9px;
}

.course-body p {
  color: var(--muted, #777d89);
  font-size: 12px;
  line-height: 1.7;
  min-height: 41px;
  margin: 0;
}

.course-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 19px;
  padding-top: 15px;
  border-top: 1px solid var(--line, #f1edef);
}

.course-foot > span {
  color: var(--muted, #777d89);
  font-size: 11px;
  font-weight: 600;
}

.course-foot .button {
  border-radius: 9px;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  transition: all .25s ease;
}

.course-foot .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px #a9082a25;
}

.progress-line {
  height: 5px;
  margin-top: 15px;
  background: #f1e9ec;
  border-radius: 20px;
  overflow: hidden;
}

.progress-line span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #a9082a, #f04460);
  border-radius: 20px;
}
/* DURAÇÃO DOS CURSOS — TEMA ESCURO */

html[data-theme="dark"] .course-meta .tag {
  background: #42232d;
  color: #ff9bad;
  border: 1px solid #713044;
}
/* ==========================================
   AJUSTES DO TEMA ESCURO — PESQUISA
========================================== */

html[data-theme="dark"] .search-box {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
}

html[data-theme="dark"] .search-box input {
  background: transparent;
  color: var(--ink);
  border: none;
  outline: none;
}

html[data-theme="dark"] .search-box input::placeholder {
  color: var(--muted);
}
/* DURAÇÃO DOS CURSOS — TEMA ESCURO */

html[data-theme="dark"] .course-meta .tag {
  background: #42232d;
  color: #ff9bad;
  border: 1px solid #713044;
}

/* CORREÇÃO — PESQUISA DO CATÁLOGO */

.filter-search input#courseSearch {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  color: #29232a;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  appearance: none;
}

.filter-search input#courseSearch::placeholder {
  color: #9297a4;
  opacity: 1;
}

/* ==========================================
   EVOLUTION EVOLUI — NOVA IDENTIDADE VISUAL
========================================== */
.brand.brand-evolui {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 125px;
  padding: 8px 5px;
  overflow: visible;
}

.brand-logo {
    background: transparent !important;
    box-shadow: none;
    border: none;
}
/* Ajuste do tamanho do logo */
.brand.brand-evolui {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 130px;
    padding: 10px;
    box-sizing: border-box;
    background: transparent;
}

.brand.brand-evolui .brand-logo {
    width: 160px;
    height: 115px;
    max-width: 100%;
    object-fit: contain;
    display: block;
    background: transparent;
}
