:root {
  color-scheme: dark;
  --navy-950: #020a17;
  --navy-900: #041225;
  --navy-850: #07182d;
  --navy-800: #0a1d35;
  --navy-700: #102b4a;
  --line: rgba(150, 180, 221, 0.2);
  --line-strong: rgba(174, 197, 229, 0.34);
  --gold: #d7a33a;
  --gold-light: #f1c565;
  --gold-dark: #966b19;
  --blue: #5c91ed;
  --green: #54bd87;
  --purple: #ac69df;
  --red: #ed6d72;
  --text: #f7f8fb;
  --muted: #aeb9c9;
  --muted-2: #78889e;
  --sidebar: 264px;
  --radius: 12px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 48% 5%, rgba(18, 54, 99, 0.26), transparent 35rem),
    linear-gradient(135deg, #020a17, #041226 55%, #031020);
  color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

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

button {
  color: inherit;
}

button,
a,
input,
select,
textarea {
  outline: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

button {
  border: 0;
  cursor: pointer;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 50%;
  z-index: 1000;
  transform: translateX(-50%);
  border-radius: 0 0 8px 8px;
  background: var(--gold);
  color: #081020;
  padding: 12px 18px;
  font-weight: 800;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

.icon {
  display: inline-flex;
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  vertical-align: -0.16em;
}

.icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  display: flex;
  width: var(--sidebar);
  flex-direction: column;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 2%, rgba(39, 76, 119, 0.17), transparent 19rem),
    rgba(2, 11, 25, 0.97);
  padding: 24px 14px 18px;
  box-shadow: 12px 0 42px rgba(0, 0, 0, 0.15);
}

.brand {
  display: grid;
  justify-items: center;
  margin-bottom: 20px;
  color: var(--gold-light);
  text-align: center;
}

.brand-shield {
  position: relative;
  display: grid;
  width: 70px;
  height: 78px;
  margin-bottom: 9px;
  place-items: center;
  clip-path: polygon(50% 0, 94% 14%, 90% 67%, 50% 100%, 10% 67%, 6% 14%);
  background: linear-gradient(155deg, #f3cb72, #a97922 62%, #f0c45e);
}

.brand-shield::before {
  position: absolute;
  inset: 4px;
  clip-path: inherit;
  background: #06152a;
  content: "";
}

.brand-shield::after {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(230, 184, 80, 0.55);
  clip-path: inherit;
  content: "";
}

.brand-shield span {
  position: relative;
  z-index: 1;
  font-family: Georgia, serif;
  font-size: 32px;
  letter-spacing: -2px;
}

.brand-shield-logo {
  position: relative;
  z-index: 1;
  width: 74%;
  height: auto;
  object-fit: contain;
}

.brand-name {
  font-family: Georgia, serif;
  font-size: 18px;
  letter-spacing: 0.05em;
}

.brand-tagline {
  margin-top: 4px;
  color: #cda64e;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav {
  display: grid;
  gap: 3px;
  overflow-y: auto;
  padding: 2px 0 10px;
  scrollbar-width: thin;
}

.nav-item {
  position: relative;
  display: grid;
  min-height: 43px;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  padding: 0 14px;
  color: #eef2f8;
  text-align: left;
  transition: 0.2s ease;
}

.nav-item .icon {
  width: 21px;
  height: 21px;
}

.nav-item:hover {
  background: rgba(50, 83, 126, 0.17);
  color: #fff;
}

.nav-item.active {
  border-color: rgba(97, 131, 179, 0.22);
  background: linear-gradient(95deg, rgba(195, 139, 34, 0.95), rgba(103, 74, 22, 0.8) 44%, rgba(19, 47, 81, 0.7));
  box-shadow: inset 3px 0 #f0be53, 0 8px 20px rgba(0, 0, 0, 0.16);
}

.nav-badge {
  display: none;
  min-width: 22px;
  border-radius: 999px;
  background: rgba(218, 163, 58, 0.2);
  color: var(--gold-light);
  padding: 2px 6px;
  font-size: 11px;
  text-align: center;
}

.nav-badge.visible {
  display: inline-block;
}

.sidebar-bottom {
  display: grid;
  gap: 14px;
  margin-top: auto;
  border-top: 1px solid rgba(215, 163, 58, 0.4);
  padding: 16px 4px 0;
}

.account-safety {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
}

.account-safety .icon {
  width: 18px;
  height: 18px;
}

.account-safety i {
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.admin-button {
  display: flex;
  min-height: 45px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(215, 163, 58, 0.72);
  border-radius: 8px;
  background: rgba(10, 27, 49, 0.55);
  padding: 0 13px;
  text-align: left;
}

.admin-button:hover {
  background: rgba(215, 163, 58, 0.11);
}

.mobile-bar,
.sidebar-scrim {
  display: none;
}

.app-shell {
  width: calc(100% - var(--sidebar));
  min-height: 100vh;
  margin-left: var(--sidebar);
  padding: 24px 24px 38px;
}

.topbar {
  display: grid;
  max-width: 1500px;
  grid-template-columns: minmax(210px, 0.65fr) minmax(320px, 1.45fr) auto;
  align-items: center;
  gap: 24px;
  margin: 0 auto 18px;
}

.welcome h1 {
  margin: 0 0 2px;
  font-size: 22px;
  line-height: 1.2;
}

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

.search-box {
  display: flex;
  height: 47px;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(5, 17, 34, 0.75);
  padding: 0 14px;
  color: var(--muted);
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.12);
}

.search-box:focus-within {
  border-color: rgba(219, 173, 72, 0.7);
  box-shadow: 0 0 0 3px rgba(215, 163, 58, 0.08);
}

.search-box .icon {
  width: 21px;
  height: 21px;
}

.search-box input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
}

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

.search-box kbd {
  display: none;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 6px;
  color: var(--muted-2);
  font-size: 10px;
}

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

.icon-button {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
}

.icon-button:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.icon-button .icon {
  width: 22px;
  height: 22px;
}

.notification-dot {
  position: absolute;
  top: 4px;
  right: 3px;
  display: grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  border: 2px solid var(--navy-900);
  border-radius: 50%;
  background: var(--gold);
  color: #07101f;
  font-size: 9px;
  font-weight: 900;
}

.profile-button {
  display: grid;
  min-width: 184px;
  min-height: 51px;
  grid-template-columns: 38px 1fr 18px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(5, 17, 34, 0.75);
  padding: 5px 12px 5px 6px;
  text-align: left;
}

.avatar {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid rgba(215, 163, 58, 0.42);
  border-radius: 50%;
  background: linear-gradient(135deg, #e5ad3d, #815711);
  color: #07101f;
  font-weight: 900;
}

.profile-button b,
.profile-button small {
  display: block;
}

.profile-button b {
  font-size: 12px;
}

.profile-button small {
  margin-top: 1px;
  color: var(--gold-light);
  font-size: 10px;
}

.view {
  display: none;
  max-width: 1500px;
  margin: 0 auto;
}

.view.active {
  display: block;
  animation: view-in 0.28s ease both;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
}

.primary-column {
  min-width: 0;
}

.hero-card {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid rgba(213, 168, 68, 0.58);
  border-radius: var(--radius);
  background: #06172b url("assets/id-hero.jpg") center / cover no-repeat;
  box-shadow: var(--shadow), inset 0 0 80px rgba(2, 10, 23, 0.2);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 13, 27, 0.99) 0%, rgba(4, 17, 34, 0.92) 34%, rgba(4, 17, 34, 0.28) 72%, rgba(4, 17, 34, 0.22));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  max-width: 640px;
  min-height: 250px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 27px 30px;
}

.live-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.live-label i,
.on-air i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f0474e;
  box-shadow: 0 0 12px rgba(240, 71, 78, 0.8);
  animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
  50% { opacity: 0.45; transform: scale(0.8); }
}

.hero-content h2 {
  margin: 7px 0 0;
  font-size: clamp(29px, 3.3vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  margin: 7px 0 10px;
  color: #c5d0df;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 15px;
  color: #e9edf4;
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.hero-meta .icon {
  width: 18px;
  height: 18px;
  color: var(--gold-light);
}

.gold-button {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(255, 222, 140, 0.32);
  border-radius: 7px;
  background: linear-gradient(130deg, #f0bd52, #d99f32 62%, #b1791e);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.32), 0 8px 22px rgba(181, 123, 24, 0.2);
  color: #091224;
  padding: 0 25px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: 0.18s ease;
}

.gold-button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.gold-button .icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.gold-button.wide {
  width: 100%;
}

.hero-content > small {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  color: var(--muted);
}

.on-air {
  position: absolute;
  top: 17px;
  right: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(4, 14, 28, 0.76);
  padding: 5px 9px;
  font-size: 9px;
}

.section-block {
  margin-top: 15px;
}

.section-heading {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-heading h2,
.side-title h2 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.section-heading.compact h2 {
  font-size: 15px;
}

.text-button,
.panel-link {
  background: transparent;
  color: #79a0dd;
  font-size: 11px;
}

.text-button:hover,
.panel-link:hover {
  color: var(--gold-light);
}

.course-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 7px;
}

.course-card {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background-color: #0c2039;
  background-repeat: no-repeat;
  box-shadow: inset 0 -60px 50px rgba(2, 10, 22, 0.38);
  transition: 0.22s ease;
}

.course-card::before,
.video-art::before,
.module-course-card::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 8, 18, 0.02), rgba(2, 10, 24, 0.38) 42%, rgba(3, 13, 28, 0.96) 78%);
  content: "";
}

.course-card:hover {
  border-color: rgba(223, 180, 84, 0.7);
  transform: translateY(-2px);
}

/* Identidade visual por curso: um recorte da arte + a cor da disciplina. */
.course-art {
  background-image: url("assets/course-grid.jpg");
  background-size: 300% 300%;
}

.art-1 { background-position: left top; }
.art-2 { background-position: center top; }
.art-3 { background-position: right top; }
.art-4 { background-position: left center; }
.art-5 { background-position: center center; }
.art-6 { background-position: right center; }
.art-7 { background-position: left bottom; }
.art-8 { background-position: center bottom; }
.art-9 { background-position: right bottom; }

.course-art::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(155deg, rgba(var(--tint, 92, 145, 237), 0.5), rgba(var(--tint, 92, 145, 237), 0.06) 62%);
  content: "";
  mix-blend-mode: soft-light;
}

.course-card .progress-line i,
.module-course-card .progress-line i {
  background: linear-gradient(90deg, rgba(var(--tint, 215, 163, 58), 0.9), var(--gold-light));
}

/* Compatibilidade com marcações antigas do protótipo. */
.bg-portuguese { background-image: url("assets/course-grid.jpg"); background-position: left top; background-size: 200% 200%; }
.bg-math { background-image: url("assets/course-grid.jpg"); background-position: right top; background-size: 200% 200%; }
.bg-law { background-image: url("assets/course-grid.jpg"); background-position: left bottom; background-size: 200% 200%; }
.bg-special { background-image: url("assets/course-grid.jpg"); background-position: right bottom; background-size: 200% 200%; }

.favorite {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(2, 9, 20, 0.64);
  backdrop-filter: blur(6px);
}

.favorite.active {
  border-color: rgba(239, 193, 94, 0.64);
  color: var(--gold-light);
}

.favorite.active svg {
  fill: currentColor;
}

.course-card-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 10px 11px 9px;
}

.eyebrow {
  display: block;
  overflow: hidden;
  color: #b4c1d0;
  font-size: 9px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.course-card h3 {
  min-height: 36px;
  margin: 2px 0 7px;
  font-size: 14px;
  line-height: 1.18;
}

.progress-line,
.mini-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(158, 176, 203, 0.22);
}

.progress-line i,
.mini-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e4a935, #f1c863);
}

.course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 10px;
}

.card-actions {
  display: flex;
  gap: 5px;
}

.card-actions button {
  display: grid;
  min-width: 25px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  background: rgba(5, 14, 28, 0.56);
  padding: 0 5px;
  font-size: 9px;
}

.card-actions button:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.tool-card {
  position: relative;
  display: grid;
  min-height: 106px;
  grid-template-columns: 45px 1fr;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(11, 30, 54, 0.85), rgba(5, 19, 38, 0.85));
  padding: 13px;
  text-align: left;
  transition: 0.18s ease;
}

.tool-card:hover {
  border-color: rgba(215, 163, 58, 0.58);
  transform: translateY(-1px);
}

.tool-icon {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  color: var(--gold-light);
}

.tool-icon .icon {
  width: 37px;
  height: 37px;
}

.tool-card small,
.tool-card b,
.tool-card em {
  display: block;
  font-style: normal;
}

.tool-card small {
  color: #c0cad6;
  font-size: 10px;
}

.tool-card b {
  font-size: 21px;
  line-height: 1.15;
}

.tool-card b i {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
}

.tool-card em {
  color: var(--muted);
  font-size: 9px;
}

.tool-card .mini-progress {
  position: absolute;
  right: 13px;
  bottom: 8px;
  left: 13px;
  height: 4px;
}

.dashboard-panels {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 10px;
  margin-top: 11px;
}

.panel,
.side-panel {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(8, 27, 50, 0.93), rgba(5, 19, 37, 0.93));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.simulator-panel,
.performance-panel {
  min-height: 202px;
  padding: 14px 15px;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-title h2,
.panel-title p {
  margin: 0;
}

.panel-title h2 {
  font-size: 16px;
}

.panel-title p {
  color: var(--muted);
  font-size: 10px;
}

.sim-stats {
  display: flex;
  gap: 16px;
  margin: 11px 0;
  color: var(--muted);
  font-size: 10px;
}

.sim-stats span {
  border-left: 1px solid var(--line);
  padding-left: 12px;
}

.sim-stats span:first-child {
  border-left: 0;
  padding-left: 0;
}

.sim-stats b {
  color: var(--text);
  font-size: 14px;
}

.split-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 7px;
  margin-top: 8px;
}

.split-actions button,
.outline-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(5, 17, 34, 0.54);
  padding: 0 10px;
  color: #e4e9f1;
  font-size: 10px;
  text-transform: uppercase;
}

.split-actions button:hover,
.outline-button:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.performance-content {
  display: grid;
  grid-template-columns: 125px 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 3px;
}

.donut {
  display: grid;
  width: 118px;
  height: 118px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--gold) 0 28%, var(--green) 28% 50%, var(--purple) 50% 72%, var(--blue) 72% 100%);
  box-shadow: 0 0 30px rgba(35, 80, 139, 0.14);
}

.donut::before {
  grid-area: 1 / 1;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: #081a31;
  content: "";
}

.donut div {
  position: relative;
  grid-area: 1 / 1;
  text-align: center;
}

.donut b,
.donut span {
  display: block;
}

.donut b {
  font-size: 27px;
}

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

.legend {
  display: grid;
  gap: 7px;
}

.legend > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
}

.legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend i,
.notice > i,
.notification-panel > button > i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.blue { background: var(--blue); }
.gold { background: var(--gold); }
.green { background: var(--green); }
.purple { background: var(--purple); }
.red { background: var(--red); }

.attention {
  margin: 4px 0 0 139px;
  color: var(--red);
  font-size: 9px;
}

.mini-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.horizontal-panel {
  display: grid;
  min-height: 86px;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  text-align: left;
}

.horizontal-panel:hover {
  border-color: rgba(215, 163, 58, 0.58);
}

.big-symbol {
  color: var(--gold-light);
}

.big-symbol .icon {
  width: 41px;
  height: 41px;
}

.horizontal-panel b,
.horizontal-panel small,
.horizontal-panel em {
  display: block;
}

.horizontal-panel b {
  font-size: 12px;
}

.horizontal-panel small {
  max-width: 280px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.horizontal-panel em {
  margin-top: 4px;
  color: #78a4e2;
  font-size: 9px;
  font-style: normal;
  text-transform: uppercase;
}

.right-rail {
  display: grid;
  align-content: start;
  gap: 12px;
}

.side-panel {
  padding: 15px;
}

.side-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.side-title h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.side-title h2 .icon {
  width: 19px;
  height: 19px;
}

.calendar-mark {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--gold-light);
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.calendar-mark small {
  font-size: 6px;
}

.event-item {
  display: grid;
  width: 100%;
  min-height: 58px;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 24, 45, 0.68);
  padding: 7px 10px;
  text-align: left;
}

.event-item:hover {
  border-color: rgba(215, 163, 58, 0.54);
}

.event-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
}

.event-icon .icon {
  width: 27px;
  height: 27px;
}

.event-item b,
.event-item small {
  display: block;
}

.event-item b {
  font-size: 11px;
}

.event-item small {
  color: var(--muted);
  font-size: 10px;
}

.panel-link {
  width: 100%;
  margin-top: 11px;
  border-top: 1px solid var(--line);
  padding-top: 11px;
  text-align: center;
}

.notice-list {
  display: grid;
  gap: 7px;
}

.notice {
  display: grid;
  width: 100%;
  min-height: 59px;
  grid-template-columns: 8px 1fr auto;
  align-items: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(8, 24, 45, 0.62);
  padding: 10px 9px;
  text-align: left;
}

.notice.read {
  opacity: 0.52;
}

.notice span,
.notice b,
.notice small {
  display: block;
}

.notice b {
  font-size: 10px;
}

.notice small,
.notice time {
  color: var(--muted);
  font-size: 8px;
}

.notice time {
  align-self: end;
  white-space: nowrap;
}

.support-panel p,
.ranking-panel p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 10px;
}

.ticket-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
  border-top: 1px solid var(--line);
  padding-top: 11px;
  color: var(--muted);
  font-size: 9px;
}

.ticket-status b {
  border-radius: 5px;
  background: rgba(84, 189, 135, 0.18);
  color: #84d6a8;
  padding: 4px 9px;
  font-weight: 500;
}

.switch {
  position: relative;
  width: 39px;
  height: 22px;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #0a1a30;
  cursor: pointer;
}

.switch span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #8c9aab;
  content: "";
  transition: 0.2s ease;
}

.switch input:checked + span {
  border-color: var(--gold);
  background: rgba(215, 163, 58, 0.2);
}

.switch input:checked + span::after {
  background: var(--gold-light);
  transform: translateX(17px);
}

.notification-panel {
  position: fixed;
  top: 82px;
  right: 226px;
  z-index: 70;
  display: none;
  width: 340px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(5, 18, 36, 0.98);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px);
}

.notification-panel.open {
  display: block;
  animation: pop 0.2s ease both;
}

@keyframes pop {
  from { opacity: 0; transform: translateY(-7px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
}

.notification-header b,
.notification-header small,
.notification-panel > button b,
.notification-panel > button small {
  display: block;
}

.notification-header small,
.notification-panel > button small {
  color: var(--muted);
  font-size: 10px;
}

.notification-panel > button {
  display: grid;
  width: 100%;
  grid-template-columns: 8px 1fr;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 13px 15px;
  text-align: left;
}

.notification-panel > button:hover {
  background: rgba(255, 255, 255, 0.04);
}

dialog {
  color: var(--text);
}

.modal {
  width: min(680px, calc(100vw - 28px));
  max-height: calc(100vh - 38px);
  overflow: auto;
  border: 1px solid rgba(177, 199, 230, 0.35);
  border-radius: 14px;
  background: linear-gradient(145deg, #0a203a, #041327 80%);
  padding: 0;
  box-shadow: 0 35px 110px rgba(0, 0, 0, 0.72);
}

.modal.large-modal {
  width: min(1120px, calc(100vw - 30px));
}

.modal.admin-modal {
  width: min(1050px, calc(100vw - 30px));
}

.modal::backdrop {
  background: rgba(0, 6, 16, 0.78);
  backdrop-filter: blur(7px);
}

.modal-top {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 22, 42, 0.92);
  padding: 15px 18px;
  backdrop-filter: blur(12px);
}

.modal-top h2 {
  margin: 1px 0 0;
  font-size: 20px;
}

.modal-kicker {
  color: var(--gold-light);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.modal-body {
  padding: 20px;
}

.modal-body > p {
  margin: 0 0 17px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin-bottom: 18px;
}

.form-grid.single {
  grid-template-columns: 1fr;
}

.form-grid label,
.notes-box label {
  display: grid;
  gap: 6px;
  color: #c8d2df;
  font-size: 11px;
  font-weight: 700;
}

select,
input[type="number"],
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #06162b;
  color: var(--text);
  padding: 10px 11px;
}

textarea {
  resize: vertical;
}

.video-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 16px;
  padding: 16px;
}

.video-stage {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #020914;
}

.video-art {
  position: relative;
  min-height: 370px;
  background-repeat: no-repeat;
  filter: saturate(0.8);
}

.video-art::before {
  background: linear-gradient(rgba(3, 10, 22, 0.15), rgba(3, 10, 22, 0.72));
}

.video-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.27);
  border-radius: 5px;
  background: rgba(4, 14, 29, 0.72);
  padding: 5px 9px;
  font-size: 10px;
}

.video-center {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.video-center button {
  display: grid;
  width: 70px;
  height: 70px;
  margin-bottom: 11px;
  place-items: center;
  border: 1px solid rgba(255, 225, 158, 0.45);
  border-radius: 50%;
  background: linear-gradient(135deg, #efbd53, #b87919);
  color: #081224;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.35);
}

.video-center button .icon {
  width: 29px;
  height: 29px;
  fill: currentColor;
}

.video-center b,
.video-center small {
  display: block;
}

.video-center b {
  font-size: 17px;
}

.video-center small {
  color: #d0d8e3;
}

.video-controls {
  display: grid;
  min-height: 54px;
  grid-template-columns: 30px auto minmax(90px, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  background: #040e1e;
  padding: 8px 11px;
  font-size: 10px;
}

.video-controls > button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: transparent;
}

.video-controls input[type="range"] {
  accent-color: var(--gold);
}

.speed-menu {
  display: flex;
  gap: 3px;
}

.speed-menu button {
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  padding: 5px 6px;
  font-size: 8px;
}

.speed-menu button.active {
  background: var(--gold);
  color: #061123;
  font-weight: 800;
}

.lesson-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.notes-box {
  display: flex;
  min-height: 486px;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(3, 15, 31, 0.6);
  padding: 15px;
}

.notes-box h3,
.notes-box p {
  margin: 0;
}

.notes-box p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.saved-notes {
  display: grid;
  gap: 7px;
  max-height: 220px;
  overflow: auto;
  margin-top: 5px;
}

.saved-note {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(14, 37, 64, 0.54);
  padding: 8px;
  font-size: 10px;
}

.saved-note time {
  color: var(--gold-light);
  cursor: pointer;
}

.saved-note button {
  background: transparent;
  color: var(--muted);
}

.quiz-area {
  padding: 20px;
}

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

.quiz-progress {
  width: 170px;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.quiz-progress i {
  display: block;
  height: 100%;
  background: var(--gold);
}

.quiz-question h3 {
  font-size: 16px;
  line-height: 1.5;
}

.answer-list {
  display: grid;
  gap: 9px;
  margin: 15px 0;
}

.answer-option {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(6, 22, 43, 0.72);
  padding: 11px 12px;
  text-align: left;
}

.answer-option:hover,
.answer-option.selected {
  border-color: var(--gold);
  background: rgba(215, 163, 58, 0.08);
}

.answer-option.correct {
  border-color: var(--green);
  background: rgba(84, 189, 135, 0.12);
}

.answer-option.wrong {
  border-color: var(--red);
  background: rgba(237, 109, 114, 0.12);
}

.quiz-feedback {
  margin: 12px 0;
  border-left: 3px solid var(--gold);
  background: rgba(215, 163, 58, 0.07);
  padding: 10px 12px;
  color: #d8e0ea;
  font-size: 11px;
}

.support-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
}

.support-timeline span {
  position: relative;
  border-top: 2px solid var(--line-strong);
  padding-top: 12px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.support-timeline i {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 10px;
  height: 10px;
  border: 2px solid #0a203a;
  border-radius: 50%;
  background: var(--muted-2);
}

.support-timeline span.active {
  border-color: var(--green);
  color: #8ed9b0;
}

.support-timeline span.active i {
  background: var(--green);
}

.admin-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  padding: 10px 15px;
}

.admin-tabs button {
  flex: 0 0 auto;
  border-radius: 6px;
  background: transparent;
  padding: 8px 11px;
  color: var(--muted);
  font-size: 10px;
}

.admin-tabs button.active {
  background: rgba(215, 163, 58, 0.14);
  color: var(--gold-light);
}

.admin-content {
  min-height: 420px;
  padding: 18px;
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 25, 47, 0.72);
  padding: 12px;
}

.stat-card small,
.stat-card b,
.stat-card em {
  display: block;
}

.stat-card small,
.stat-card em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
}

.stat-card b {
  margin: 3px 0;
  font-size: 22px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
}

.data-table th {
  color: var(--muted);
  font-weight: 600;
}

.status-pill {
  display: inline-block;
  border-radius: 999px;
  background: rgba(84, 189, 135, 0.13);
  color: #82d2a5;
  padding: 3px 8px;
}

.status-pill.warning {
  background: rgba(215, 163, 58, 0.14);
  color: var(--gold-light);
}

.status-pill.danger {
  background: rgba(237, 109, 114, 0.13);
  color: #f09398;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  max-width: 360px;
  border: 1px solid rgba(215, 163, 58, 0.62);
  border-radius: 9px;
  background: rgba(5, 20, 39, 0.97);
  box-shadow: var(--shadow);
  padding: 12px 15px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: 0.24s ease;
}

.toast.show {
  opacity: 1;
  transform: none;
}

/* Vistas internas */
.module-page {
  animation: view-in 0.25s ease both;
}

.module-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  min-height: 168px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background:
    linear-gradient(95deg, rgba(4, 17, 34, 0.98), rgba(6, 30, 56, 0.76)),
    url("assets/id-hero.jpg") center / cover;
  padding: 28px;
}

.module-hero h2 {
  margin: 4px 0 5px;
  font-size: 29px;
}

.module-hero p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-top: 15px;
}

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

.module-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.module-card {
  position: relative;
  min-height: 150px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(10, 31, 56, 0.94), rgba(4, 17, 34, 0.94));
  padding: 16px;
}

button.module-card {
  text-align: left;
}

.module-card:hover {
  border-color: rgba(215, 163, 58, 0.55);
}

.module-card .tool-icon {
  margin-bottom: 8px;
}

.module-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

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

.module-card footer {
  position: absolute;
  right: 15px;
  bottom: 13px;
  left: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #82a9e0;
  font-size: 10px;
}

.module-course-card {
  position: relative;
  min-height: 245px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background-repeat: no-repeat;
}

.module-course-card .module-course-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 16px;
}

.module-course-card h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.module-course-card p {
  margin: 0 0 10px;
  color: #c2ccd9;
  font-size: 11px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(80px, 1fr));
  gap: 8px;
  overflow-x: auto;
  margin-top: 15px;
}

.calendar-day {
  min-height: 130px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 21, 41, 0.7);
  padding: 9px;
}

.calendar-day b {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 10px;
}

.calendar-event {
  display: block;
  border-left: 2px solid var(--gold);
  border-radius: 4px;
  background: rgba(215, 163, 58, 0.1);
  padding: 6px;
  font-size: 9px;
}

.goal-list,
.error-list,
.material-list {
  display: grid;
  gap: 9px;
  margin-top: 15px;
}

.goal-item,
.error-item,
.material-item {
  display: grid;
  min-height: 62px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 24, 45, 0.72);
  padding: 10px 13px;
}

.goal-item input {
  width: 19px;
  height: 19px;
  accent-color: var(--gold);
}

.goal-item b,
.goal-item small,
.error-item b,
.error-item small,
.material-item b,
.material-item small {
  display: block;
}

.goal-item small,
.error-item small,
.material-item small {
  color: var(--muted);
  font-size: 10px;
}

.empty-state {
  display: grid;
  min-height: 280px;
  place-content: center;
  justify-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}

.empty-state .icon {
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
  color: var(--gold-light);
}

@media (min-width: 1450px) {
  .app-shell { padding-right: 34px; padding-left: 34px; }
  .course-card { min-height: 190px; }
  .search-box kbd { display: inline-block; }
}

@media (max-width: 1180px) {
  :root { --sidebar: 232px; }
  .content-grid { grid-template-columns: 1fr; }
  .right-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .right-rail .ranking-panel { grid-column: span 2; }
  .course-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-card { min-height: 205px; }
  .notification-panel { right: 205px; }
}

@media (max-width: 940px) {
  :root { --sidebar: 264px; }
  body { padding-top: 64px; }
  .mobile-bar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 45;
    display: flex;
    height: 64px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    background: rgba(3, 13, 27, 0.96);
    padding: 0 13px;
    backdrop-filter: blur(14px);
  }
  .mobile-brand { color: var(--gold-light); font-size: 12px; letter-spacing: 0.08em; }
  .mobile-brand b { margin-right: 5px; font-family: Georgia, serif; font-size: 20px; }
  .sidebar { transform: translateX(-104%); transition: transform 0.26s ease; }
  .sidebar.open { transform: none; }
  .sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: 44;
    background: rgba(0, 5, 14, 0.7);
  }
  .sidebar-scrim.visible { display: block; }
  .app-shell { width: 100%; margin-left: 0; padding: 18px 16px 30px; }
  .topbar { grid-template-columns: 1fr auto; }
  .welcome { display: none; }
  .top-actions .notification-button { display: none; }
  .profile-button { min-width: 164px; }
  .notification-panel { top: 68px; right: 10px; width: min(340px, calc(100vw - 20px)); }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .topbar { grid-template-columns: 1fr; gap: 10px; }
  .top-actions { display: none; }
  .search-box { height: 44px; }
  .app-shell { padding: 14px 11px 28px; }
  .hero-card,
  .hero-content { min-height: 295px; }
  .hero-content { justify-content: flex-end; padding: 25px 20px; }
  .hero-overlay { background: linear-gradient(180deg, rgba(3, 13, 27, 0.18), rgba(3, 13, 27, 0.95) 57%, #031020); }
  .hero-content h2 { font-size: 29px; }
  .on-air { top: 13px; right: 13px; }
  .course-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .course-card { min-width: 77vw; min-height: 205px; scroll-snap-align: start; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-panels,
  .mini-panels,
  .right-rail,
  .module-grid,
  .module-grid.two,
  .module-grid.three { grid-template-columns: 1fr; }
  .right-rail .ranking-panel { grid-column: auto; }
  .performance-content { grid-template-columns: 112px 1fr; gap: 8px; }
  .donut { width: 105px; height: 105px; }
  .donut::before { width: 72px; height: 72px; }
  .attention { margin-left: 120px; }
  .video-layout { grid-template-columns: 1fr; }
  .video-art { min-height: 270px; }
  .notes-box { min-height: 330px; }
  .video-controls { grid-template-columns: 30px auto 1fr auto; }
  .speed-menu { grid-column: 1 / -1; justify-content: flex-end; }
  .form-grid { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .module-hero { min-height: 190px; align-items: flex-start; flex-direction: column; padding: 21px; }
  .module-hero h2 { font-size: 25px; }
}

@media (max-width: 430px) {
  .tools-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 90px; }
  .hero-meta { display: grid; gap: 6px; }
  .gold-button { padding-right: 17px; padding-left: 17px; }
  .performance-content { grid-template-columns: 1fr; justify-items: center; }
  .legend { width: 100%; }
  .attention { margin-left: 0; text-align: center; }
  .mini-panels { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr; }
  .toast { right: 10px; bottom: 10px; left: 10px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ---------- Retorno ao início e trilha de navegação ---------- */
.back-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(10, 29, 53, 0.75);
  padding: 8px 15px 8px 12px;
  color: var(--text);
  font-size: 12px;
  transition: 0.2s ease;
}

.back-button:hover {
  border-color: rgba(223, 180, 84, 0.7);
  color: var(--gold-light);
}

.back-button .icon,
.crumb-home .icon {
  width: 15px;
  height: 15px;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-2);
  font-size: 11px;
}

.crumbs b { color: var(--gold-light); font-weight: 600; }

.crumb-home {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}

.crumb-home:hover { color: var(--gold-light); }

/* ---------- Marca clicável ---------- */
.brand {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--gold-light);
  cursor: pointer;
}

.mobile-brand {
  border: 0;
  background: transparent;
  cursor: pointer;
}

/* ---------- Últimas aulas gravadas ---------- */
.recorded-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 7px;
}

.recorded-card {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 88px;
  align-items: flex-end;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background-color: #0c2039;
  background-repeat: no-repeat;
  padding: 9px 10px;
  text-align: left;
  transition: 0.22s ease;
}

.recorded-card::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 8, 18, 0.25), rgba(3, 13, 28, 0.94) 72%);
  content: "";
}

.recorded-card:hover {
  border-color: rgba(223, 180, 84, 0.7);
  transform: translateY(-2px);
}

.recorded-text {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2px;
}

.recorded-text b { font-size: 12px; }
.recorded-text small { color: var(--muted); font-size: 10px; }

.recorded-time {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  border-radius: 5px;
  background: rgba(2, 9, 20, 0.82);
  padding: 2px 6px;
  color: var(--gold-light);
  font-size: 10px;
}

/* ---------- Faixa de simulados ---------- */
.sim-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 7px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(16, 43, 74, 0.85), rgba(7, 24, 45, 0.9));
  padding: 14px 16px;
}

.sim-strip-title { flex: 1 1 180px; }
.sim-strip-title b { display: block; font-size: 14px; }
.sim-strip-title small { color: var(--muted); font-size: 11px; }

.sim-strip-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 11px;
}

.sim-strip-facts span { display: inline-flex; align-items: center; gap: 6px; }
.sim-strip-facts b { color: var(--text); font-size: 14px; }
.sim-strip-facts .icon { width: 15px; height: 15px; color: var(--gold-light); }

/* ---------- Trilha larga de cursos ---------- */
.course-row.wide {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.course-row.wide .course-card {
  min-width: 210px;
  flex: 0 0 210px;
  scroll-snap-align: start;
}

.legend i.teal { background: #58c4d6; }

/* ---------- Barra inferior (celular) ---------- */
.tab-bar { display: none; }

.tab-item {
  display: grid;
  gap: 3px;
  border: 0;
  background: transparent;
  justify-items: center;
  color: var(--muted-2);
  font-size: 10px;
  padding: 7px 0 0;
}

.tab-item .icon { width: 20px; height: 20px; }
.tab-item.active { color: var(--gold-light); }

@media (max-width: 940px) {
  .recorded-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tab-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 46;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--line);
    background: rgba(3, 13, 27, 0.97);
    padding-bottom: env(safe-area-inset-bottom, 0);
    backdrop-filter: blur(14px);
  }
  body { padding-bottom: 66px; }
  .toast { bottom: 78px; }
}

@media (max-width: 720px) {
  .recorded-row { grid-template-columns: 1fr; }
  .course-row.wide .course-card { min-width: 72vw; flex-basis: 72vw; }
  .sim-strip { align-items: stretch; flex-direction: column; }
  .sim-strip .gold-button { justify-content: center; }
  .back-bar { flex-direction: column; align-items: flex-start; }
  .module-hero { margin-bottom: 12px; }
}

#video-subtitle {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

/* ---------- Player oficial do YouTube ---------- */
.video-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #01060f;
  aspect-ratio: 16 / 9;
}

.video-frame iframe,
.video-frame #yt-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-fallback {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  align-content: center;
  justify-items: center;
  gap: 7px;
  padding: 20px;
  text-align: center;
}

.video-fallback.visible { display: grid; }
.video-fallback .icon { width: 34px; height: 34px; color: var(--gold-light); }
.video-fallback small { color: var(--muted); font-size: 11px; max-width: 320px; }

/* ---------- Página do curso ---------- */
.course-hero {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background-color: #0c2039;
  background-repeat: no-repeat;
  margin-bottom: 14px;
}

.course-hero::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(3, 13, 28, 0.96) 42%, rgba(3, 13, 28, 0.4));
  content: "";
}

.course-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 9px;
  padding: 20px;
}

.course-hero-content h2 { margin: 0; font-size: 26px; }
.course-hero-content p { margin: 0; color: var(--muted); font-size: 12px; }
.course-hero-content .progress-line { max-width: 340px; }

.lesson-list {
  display: grid;
  gap: 7px;
}

.lesson-row {
  display: grid;
  grid-template-columns: 38px 1fr 34px;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(10, 29, 53, 0.62);
  padding: 11px 13px;
  text-align: left;
  transition: 0.18s ease;
}

.lesson-row:hover {
  border-color: rgba(223, 180, 84, 0.7);
  background: rgba(16, 43, 74, 0.8);
}

.lesson-number {
  color: var(--muted-2);
  font-family: Georgia, serif;
  font-size: 16px;
}

.lesson-row.done .lesson-number { color: var(--green); }
.lesson-text { display: grid; gap: 2px; }
.lesson-text b { font-size: 13px; }
.lesson-text small { color: var(--muted); font-size: 10px; }

.lesson-play {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: rgba(215, 163, 58, 0.16);
  color: var(--gold-light);
}

.lesson-row.done .lesson-play { background: rgba(84, 189, 135, 0.16); color: var(--green); }
.lesson-play .icon { width: 15px; height: 15px; }

/* ---------- Sobre a professora ---------- */
.teacher-card {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(125deg, rgba(16, 43, 74, 0.7), rgba(7, 24, 45, 0.9));
  padding: 22px;
}

.teacher-photo {
  display: grid;
  height: 168px;
  place-items: center;
  border: 1px solid rgba(223, 180, 84, 0.45);
  border-radius: 12px;
  background: radial-gradient(circle at 50% 34%, rgba(215, 163, 58, 0.28), rgba(4, 18, 37, 0.9));
  color: var(--gold-light);
  font-family: Georgia, serif;
  font-size: 44px;
  letter-spacing: 0.06em;
}

.teacher-body h3 { margin: 0 0 3px; font-size: 21px; }
.teacher-body p { color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.teacher-role { color: var(--gold-light) !important; font-size: 12px !important; }

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

.teacher-stats div {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(2, 10, 23, 0.5);
  padding: 10px 12px;
}

.teacher-stats b { display: block; color: var(--gold-light); font-size: 15px; line-height: 1.25; }
.teacher-stats small { color: var(--muted-2); font-size: 10px; }

.teacher-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.teacher-links .outline-button { text-decoration: none; }

.teacher-note {
  margin-top: 12px;
  border-left: 2px solid var(--gold-dark);
  padding-left: 10px;
  color: var(--muted-2) !important;
  font-size: 11px !important;
}

@media (max-width: 720px) {
  .teacher-card { grid-template-columns: 1fr; padding: 16px; }
  .teacher-photo { height: 130px; font-size: 36px; }
  .teacher-stats { grid-template-columns: 1fr; }
  .lesson-row { grid-template-columns: 30px 1fr 28px; gap: 8px; padding: 10px; }
  .course-hero-content h2 { font-size: 21px; }
}

.video-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}

.video-topline b { color: var(--muted); font-size: 11px; font-weight: 500; }

.teacher-mini {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 4px 0 10px;
}

.teacher-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid rgba(223, 180, 84, 0.45);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 34%, rgba(215, 163, 58, 0.3), rgba(4, 18, 37, 0.9));
  color: var(--gold-light);
  font-family: Georgia, serif;
  font-size: 15px;
}

.teacher-mini b { display: block; font-size: 12.5px; }
.teacher-mini small { color: var(--muted); font-size: 10.5px; }

/* ---------- Biblioteca de vídeos ---------- */
.course-player { margin-bottom: 14px; }

.video-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.video-links a {
  color: #79a0dd;
  font-size: 11px;
  text-decoration: none;
}

.video-links a:hover { color: var(--gold-light); }

.source-form {
  display: grid;
  justify-items: center;
  gap: 8px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(10, 29, 53, 0.5);
  padding: 24px 18px;
  text-align: center;
}

.source-form .icon { width: 30px; height: 30px; color: var(--gold-light); }
.source-form b { font-size: 14px; }
.source-form small { max-width: 430px; color: var(--muted); font-size: 11px; line-height: 1.55; }

.source-row {
  display: flex;
  width: min(100%, 520px);
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.source-input {
  flex: 1 1 240px;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(2, 10, 23, 0.7);
  padding: 10px 12px;
  color: var(--text);
  font-size: 12px;
}

.source-input:focus {
  border-color: rgba(223, 180, 84, 0.7);
  outline: none;
}

.admin-intro {
  border-left: 2px solid var(--gold-dark);
  padding: 2px 0 2px 11px;
  margin-bottom: 14px;
}

.admin-intro b { display: block; font-size: 13px; }
.admin-intro small { color: var(--muted); font-size: 11px; line-height: 1.55; }

.video-admin { display: grid; gap: 9px; }

.video-admin-row {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(10, 29, 53, 0.55);
  padding: 10px 12px;
}

.video-admin-name { display: grid; gap: 4px; justify-items: start; }
.video-admin-name b { font-size: 12.5px; }
.video-admin-actions { display: flex; gap: 7px; }

.admin-foot {
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.admin-foot b { color: var(--gold-light); }

@media (max-width: 720px) {
  .video-admin-row { grid-template-columns: 1fr; }
  .video-admin-actions { justify-content: flex-end; }
  .video-links { flex-direction: column; align-items: flex-start; }
}

.auto-notice {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  border: 1px solid rgba(215, 163, 58, 0.4);
  border-radius: 9px;
  background: rgba(215, 163, 58, 0.09);
  padding: 10px 13px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.auto-notice > span:nth-child(2) { flex: 1 1 260px; }
.auto-notice b { color: var(--text); }
.auto-notice .icon { width: 17px; height: 17px; flex: 0 0 17px; color: var(--gold-light); }

/* ---------- Cartões clicáveis e aula atual ---------- */
.course-card.clickable { cursor: pointer; }

.course-card.clickable:hover {
  border-color: rgba(223, 180, 84, 0.75);
  transform: translateY(-3px);
}

.card-lesson {
  position: relative;
  z-index: 2;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Foto da professora ---------- */
.teacher-photo { overflow: hidden; padding: 0; }

.teacher-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 11px;
}

img.teacher-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 1px solid rgba(223, 180, 84, 0.45);
}

/* ---------- Edital PSS ---------- */
.edital-hero {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(125deg, rgba(16, 43, 74, 0.8), rgba(7, 24, 45, 0.92));
  padding: 20px;
  margin-bottom: 16px;
}

.edital-hero h2 { margin: 5px 0 8px; font-size: 24px; }
.edital-hero p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.6; }

.edital-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 15px 0 12px;
}

.edital-facts div {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(2, 10, 23, 0.5);
  padding: 11px 12px;
}

.edital-facts b { display: block; color: var(--gold-light); font-size: 13px; margin-bottom: 3px; }
.edital-facts small { color: var(--muted-2); font-size: 10.5px; line-height: 1.45; }

.edital-warn {
  border-left: 2px solid var(--gold-dark);
  padding-left: 10px;
  color: var(--muted-2) !important;
  font-size: 11px !important;
}

.edital-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
  margin-top: 7px;
}

.edital-card {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(10, 29, 53, 0.6);
  padding: 13px 14px;
  text-align: left;
  transition: 0.18s ease;
}

.edital-card:hover { border-color: rgba(223, 180, 84, 0.7); transform: translateY(-2px); }
.edital-card b { font-size: 13px; }
.edital-card small { color: var(--muted); font-size: 10.5px; line-height: 1.45; }
.edital-card span { color: var(--gold-light); font-size: 11px; margin-top: 4px; }

.pss-video { display: grid; gap: 5px; }
.pss-video b { font-size: 12px; }
.pss-video small { color: var(--muted-2); font-size: 10px; }

@media (max-width: 720px) {
  .edital-facts { grid-template-columns: 1fr; }
  .edital-grid { grid-template-columns: 1fr; }
}

/* ---------- Símbolos flutuantes por disciplina ---------- */
.glyph-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.glyph-field span {
  position: absolute;
  bottom: -14%;
  color: rgba(var(--tint, 215, 163, 58), 0.85);
  font-family: Georgia, "Times New Roman", serif;
  text-shadow: 0 0 14px rgba(var(--tint, 215, 163, 58), 0.35);
  animation-name: glyph-float;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform, opacity;
}

@keyframes glyph-float {
  0% { transform: translateY(0) rotate(-6deg); opacity: 0; }
  12% { opacity: 0.55; }
  80% { opacity: 0.35; }
  100% { transform: translateY(-260px) rotate(8deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .glyph-field span { animation: none; opacity: 0.22; bottom: auto; top: 30%; }
}

.course-hero-content { position: relative; z-index: 2; }

/* ---------- Legenda do player e estado das aulas ---------- */
.player-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.player-caption b { font-size: 13px; }
.player-caption span { color: var(--muted-2); font-size: 11px; }

.lesson-row.no-video { opacity: 0.72; }
.lesson-row.no-video .lesson-play { background: rgba(120, 140, 170, 0.14); color: var(--muted); }
.lesson-row.has-video .lesson-text small { color: #7fbf9a; }

.lesson-form small { max-width: 460px; }

/* ---------- Foto sem corte ---------- */
.teacher-photo {
  height: auto;
  aspect-ratio: 1079 / 944;
  padding: 0;
  overflow: hidden;
}

.teacher-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: rgba(4, 18, 37, 0.9);
}

img.teacher-avatar { object-position: 50% 18%; }

/* ---------- Aula sem vídeo: a moldura não força 16:9 nem corta o formulário ---------- */
.video-frame.is-empty {
  aspect-ratio: auto;
  overflow: visible;
  border: 0;
  background: transparent;
}

.video-frame.is-empty .source-form {
  padding: 22px 16px;
  text-align: center;
}

.video-stage.no-video .video-controls,
.video-stage.no-video .video-links,
.video-stage.no-video .video-topline b {
  display: none;
}

.lesson-form .source-row { width: 100%; }
.lesson-form .source-input { flex: 1 1 100%; }
.lesson-form .gold-button { width: 100%; justify-content: center; }

@media (min-width: 620px) {
  .lesson-form .source-input { flex: 1 1 240px; }
  .lesson-form .gold-button { width: auto; }
}

/* ---------- Transição ao abrir um curso ---------- */
.course-curtain {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 55%, rgba(var(--tint, 215, 163, 58), 0.22), rgba(2, 9, 20, 0.96) 62%);
  animation: curtain-in 0.22s ease both;
}

.course-curtain.out { animation: curtain-out 0.3s ease both; }

@keyframes curtain-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes curtain-out { from { opacity: 1; } to { opacity: 0; } }

.curtain-glyphs { position: absolute; inset: 0; }

.curtain-glyphs span {
  position: absolute;
  bottom: -12%;
  color: rgba(var(--tint, 215, 163, 58), 0.95);
  font-family: Georgia, "Times New Roman", serif;
  text-shadow: 0 0 20px rgba(var(--tint, 215, 163, 58), 0.55);
  animation-name: curtain-rise;
  animation-timing-function: cubic-bezier(0.2, 0.7, 0.3, 1);
  animation-fill-mode: both;
}

@keyframes curtain-rise {
  0% { transform: translateY(0) scale(0.7) rotate(-10deg); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translateY(-105vh) scale(1.15) rotate(12deg); opacity: 0; }
}

.curtain-name {
  position: relative;
  z-index: 2;
  color: var(--gold-light);
  font-family: Georgia, serif;
  font-size: clamp(22px, 7vw, 40px);
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0 24px;
  animation: curtain-name 0.62s ease both;
}

@keyframes curtain-name {
  0% { opacity: 0; transform: scale(0.9); }
  35% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.85; transform: scale(1.03); }
}

/* Símbolos do herói do curso, mais visíveis */
.glyph-field span { opacity: 0; }
@keyframes glyph-float {
  0% { transform: translateY(0) rotate(-6deg); opacity: 0; }
  15% { opacity: 0.85; }
  75% { opacity: 0.55; }
  100% { transform: translateY(-230px) rotate(8deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .course-curtain { display: none; }
}

/* ---------- Miniatura como pré-visualização ---------- */
.video-poster {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background-color: #071a30;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  padding: 0;
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 9, 20, 0.15), rgba(2, 9, 20, 0.82));
}

.poster-play {
  position: relative;
  z-index: 2;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 50%;
  background: rgba(215, 163, 58, 0.94);
  color: #06182e;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5);
}

.poster-play .icon { width: 26px; height: 26px; margin-left: 3px; }

.poster-title {
  position: absolute;
  z-index: 2;
  left: 12px;
  right: 12px;
  bottom: 10px;
  color: #fff;
  font-size: 12px;
  text-align: left;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

.poster-warn {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 8px;
  right: 8px;
  border-radius: 7px;
  background: rgba(2, 9, 20, 0.85);
  padding: 6px 9px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  text-align: left;
}

.poster-warn b { color: var(--gold-light); }

.poster-external {
  position: absolute;
  z-index: 3;
  right: 10px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(223, 180, 84, 0.6);
  border-radius: 999px;
  background: rgba(2, 9, 20, 0.86);
  padding: 6px 12px;
  color: var(--gold-light);
  font-size: 11px;
  text-decoration: none;
}

.video-frame:has(.poster-warn) .poster-external { top: auto; bottom: 34px; }
.poster-external .icon { width: 14px; height: 14px; }

/* ---------- Miniatura na lista de aulas ---------- */
.lesson-row { grid-template-columns: 64px 1fr 34px; }

.lesson-thumb {
  display: grid;
  width: 64px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(2, 10, 23, 0.6);
}

.lesson-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lesson-thumb i { color: var(--muted-2); font-family: Georgia, serif; font-size: 14px; font-style: normal; }

@media (max-width: 720px) {
  .lesson-row { grid-template-columns: 56px 1fr 26px; }
  .lesson-thumb { width: 56px; height: 34px; }
  .poster-external { right: 8px; padding: 5px 10px; font-size: 10px; }
}

/* ---------- Aviso de página aberta como arquivo local ---------- */
.file-banner {
  position: fixed;
  z-index: 80;
  left: 12px;
  right: 12px;
  bottom: 78px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid rgba(223, 180, 84, 0.5);
  border-radius: 11px;
  background: rgba(6, 22, 42, 0.97);
  padding: 12px 14px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

.file-banner b { color: var(--text); }
.file-banner code { color: var(--gold-light); font-size: 11px; }
.file-banner .icon { width: 18px; height: 18px; flex: 0 0 18px; color: var(--gold-light); margin-top: 1px; }

.file-banner button {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--muted-2);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

@media (min-width: 941px) {
  .file-banner { left: auto; right: 20px; bottom: 20px; max-width: 420px; }
}

/* ---------- Diagnóstico ---------- */
.diag { display: grid; gap: 8px; }

.diag-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(10, 29, 53, 0.6);
  padding: 11px 13px;
}

.diag-row b { font-size: 12.5px; }

.diag-value {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11.5px;
  color: var(--muted);
  text-align: right;
}

.diag-value.good { color: var(--green); }
.diag-value.bad { color: #e88a8a; }

.diag-note {
  border-left: 2px solid var(--gold-dark);
  padding-left: 11px;
  margin: 6px 0;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.55;
}

.diag-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #01060f;
}

.diag-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.diag-open { justify-content: center; margin-top: 4px; text-decoration: none; }

/* ---------- Miniatura com queda para marca d'água ---------- */
.poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-img.failed { display: none; }

.video-poster {
  background: radial-gradient(circle at 50% 40%, rgba(215, 163, 58, 0.16), rgba(6, 22, 42, 0.98));
}

.watch-cta {
  position: absolute;
  z-index: 3;
  left: 12px;
  right: 12px;
  bottom: 12px;
  justify-content: center;
  text-decoration: none;
  font-size: 12px;
}

.video-frame .poster-title { bottom: 58px; }

.banner-link {
  border: 1px solid rgba(223, 180, 84, 0.5) !important;
  border-radius: 999px !important;
  padding: 5px 11px !important;
  color: var(--gold-light) !important;
  font-size: 11px !important;
  align-self: center;
}

/* ---------- Simulado em formato de quiz ---------- */
.sim-hero {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(125deg, rgba(16, 43, 74, 0.8), rgba(7, 24, 45, 0.92));
  padding: 20px;
  margin-bottom: 14px;
}

.sim-hero h2 { margin: 5px 0 8px; font-size: 23px; }
.sim-hero p { margin: 0 0 12px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.sim-hero .gold-button { justify-content: center; width: 100%; }

.sim-last {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 10, 23, 0.5);
  padding: 9px 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11.5px;
}

.sim-last b { color: var(--gold-light); }

.sim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 7px;
}

.sim-card {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(10, 29, 53, 0.6);
  padding: 13px 14px;
  text-align: left;
  transition: 0.18s ease;
}

.sim-card:hover { border-color: rgba(223, 180, 84, 0.7); transform: translateY(-2px); }
.sim-card b { font-size: 13px; }
.sim-card small { color: var(--muted); font-size: 10.5px; }
.sim-card span { margin-top: 4px; color: var(--muted-2); font-size: 11px; }
.sim-card span.good { color: var(--green); }
.sim-card span.mid { color: var(--gold-light); }

.quiz-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  margin-bottom: 16px;
}

.quiz-progress i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  transition: width 0.3s ease;
}

.quiz-stem { margin: 0 0 14px; font-size: 14.5px; line-height: 1.6; }

.quiz-options { display: grid; gap: 8px; }

.quiz-option {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(10, 29, 53, 0.6);
  padding: 12px 14px;
  text-align: left;
  font-size: 13px;
  line-height: 1.5;
  transition: 0.15s ease;
}

.quiz-option:hover:not(:disabled) { border-color: rgba(223, 180, 84, 0.7); background: rgba(16, 43, 74, 0.85); }
.quiz-option:disabled { cursor: default; }

.quiz-letter {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 13px;
}

.quiz-option.right { border-color: rgba(84, 189, 135, 0.85); background: rgba(84, 189, 135, 0.13); }
.quiz-option.right .quiz-letter { background: var(--green); color: #04121f; }
.quiz-option.wrong { border-color: rgba(226, 120, 120, 0.8); background: rgba(226, 120, 120, 0.12); }
.quiz-option.wrong .quiz-letter { background: #e27878; color: #2a0b0b; }

.quiz-feedback {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  border-left: 3px solid var(--gold-dark);
  border-radius: 9px;
  background: rgba(2, 10, 23, 0.55);
  padding: 13px 15px;
  font-size: 12.5px;
  line-height: 1.6;
}

.quiz-feedback.ok { border-left-color: var(--green); }
.quiz-feedback.no { border-left-color: #e27878; }
.quiz-feedback b { font-size: 13px; }
.quiz-feedback span { color: var(--muted); }
.quiz-feedback .gold-button { justify-content: center; margin-top: 4px; }

.quiz-score {
  display: grid;
  justify-items: center;
  gap: 4px;
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 14px;
  background: rgba(10, 29, 53, 0.7);
  border: 1px solid var(--line-strong);
}

.quiz-score b { font-family: Georgia, serif; font-size: 44px; color: var(--gold-light); }
.quiz-score span { color: var(--muted); font-size: 12px; }
.quiz-score.good b { color: var(--green); }
.quiz-score.low b { color: #e27878; }

.quiz-breakdown { display: grid; gap: 7px; margin-bottom: 14px; }

.quiz-breakdown div {
  position: relative;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(2, 10, 23, 0.5);
  padding: 9px 12px;
  font-size: 12px;
}

.quiz-breakdown span { position: relative; z-index: 2; }
.quiz-breakdown b { position: relative; z-index: 2; color: var(--gold-light); }
.quiz-breakdown i { position: absolute; inset: 0 auto 0 0; background: rgba(215, 163, 58, 0.14); }

.quiz-review { display: grid; gap: 8px; }

.quiz-miss {
  display: grid;
  gap: 4px;
  border-left: 2px solid #e27878;
  border-radius: 8px;
  background: rgba(226, 120, 120, 0.08);
  padding: 11px 13px;
}

.quiz-miss b { font-size: 11px; color: #e8a0a0; }
.quiz-miss span { font-size: 12.5px; line-height: 1.5; }
.quiz-miss small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.quiz-perfect { color: var(--green); font-size: 12.5px; text-align: center; padding: 14px; }

/* ---------- Desempenho ---------- */
.perf-panel { padding: 20px; margin-top: 14px; }
.perf-panel h2 { margin: 0 0 14px; font-size: 16px; }

.perf-bars { display: grid; gap: 8px; }

.perf-row {
  display: grid;
  grid-template-columns: minmax(120px, 1.4fr) 3fr 44px;
  align-items: center;
  gap: 11px;
  font-size: 12px;
}

.perf-row b { color: var(--gold-light); text-align: right; font-size: 11.5px; }

.perf-chart {
  display: flex;
  align-items: flex-end;
  gap: 7%;
  height: 180px;
  padding: 24px 4% 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.perf-chart div {
  position: relative;
  flex: 1;
  min-width: 22px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(var(--gold-light), var(--gold-dark));
}

.perf-chart b { position: absolute; top: -21px; width: 100%; text-align: center; font-size: 10px; }
.perf-chart small { position: absolute; bottom: -21px; width: 100%; text-align: center; color: var(--muted); font-size: 10px; }

.perf-empty { color: var(--muted); font-size: 12.5px; line-height: 1.6; }

.perf-areas { display: grid; gap: 6px; margin-bottom: 14px; }

.perf-areas div {
  display: flex;
  justify-content: space-between;
  border-radius: 7px;
  background: rgba(2, 10, 23, 0.45);
  padding: 8px 11px;
  font-size: 12px;
}

.perf-areas b.good { color: var(--green); }
.perf-areas b.mid { color: var(--gold-light); }

.progress-line.thin { height: 3px; margin-top: 5px; }

@media (max-width: 720px) {
  .perf-row { grid-template-columns: 1fr 40px; }
  .perf-row .progress-line { grid-column: 1 / -1; }
  .sim-grid { grid-template-columns: 1fr; }
}

/* ---------- Área de trabalho do administrador ---------- */
.ws-status {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border-radius: 9px;
  padding: 11px 13px;
  margin-bottom: 14px;
  font-size: 11.5px;
  line-height: 1.55;
}

.ws-status.ok { border: 1px solid rgba(84, 189, 135, 0.4); background: rgba(84, 189, 135, 0.09); color: var(--muted); }
.ws-status.warn { border: 1px solid rgba(215, 163, 58, 0.45); background: rgba(215, 163, 58, 0.09); color: var(--muted); }
.ws-status .icon { width: 17px; height: 17px; flex: 0 0 17px; color: var(--gold-light); }
.ws-status code, .ws-card code, .ws-result code { color: var(--gold-light); font-size: 11px; }

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

.ws-card {
  display: grid;
  gap: 9px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(10, 29, 53, 0.6);
  padding: 15px 16px;
}

.ws-card.wide { margin-top: 10px; }
.ws-card h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; }
.ws-card h3 .icon { width: 17px; height: 17px; color: var(--gold-light); }
.ws-card p { margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.55; }
.ws-card .gold-button { justify-content: center; }

.ws-card input[type="file"] {
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: rgba(2, 10, 23, 0.5);
  padding: 10px;
  color: var(--muted);
  font-size: 11px;
  width: 100%;
}

.ws-result {
  border-radius: 9px;
  padding: 11px 13px;
  margin-top: 12px;
  font-size: 11.5px;
  line-height: 1.55;
}

.ws-result.ok { border: 1px solid rgba(84, 189, 135, 0.45); background: rgba(84, 189, 135, 0.1); color: var(--muted); }
.ws-result.erro { border: 1px solid rgba(226, 120, 120, 0.5); background: rgba(226, 120, 120, 0.1); color: #e8b4b4; }

.ws-pending { display: grid; gap: 5px; }

.ws-pending-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(2, 10, 23, 0.45);
  padding: 9px 12px;
  font-size: 12px;
  text-align: left;
}

.ws-pending-row:hover { border-color: rgba(223, 180, 84, 0.6); }
.ws-pending-row b { color: var(--gold-light); font-size: 11.5px; }
.ws-pending-row b.good { color: var(--green); }

.ws-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.live-note { color: var(--muted); font-size: 11.5px; line-height: 1.55; margin: 10px 0 8px; }

.ws-hint { color: var(--muted-2); font-size: 11px; line-height: 1.55; margin: 4px 0 0; }

/* ---------- Portão de acesso ---------- */
.modal.login-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #020a16;
  padding: clamp(14px, 4vw, 42px);
  box-shadow: none;
}

.modal.login-modal[open] {
  display: grid;
  place-items: center;
}

.modal.login-modal::backdrop {
  background: #020a16;
  backdrop-filter: none;
}

.login-fundo {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #020a16;
  pointer-events: none;
}

.login-fundo-img {
  position: absolute;
  inset: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  object-fit: cover;
  object-position: center;
  opacity: 0;
  filter: blur(8px);
  transform: scale(1.035);
  will-change: opacity, filter, transform;
}

.login-fundo-img.ativa {
  animation: login-fade-blur-in 1.65s ease both, login-zoom 8s ease-out both;
}

.login-fundo-img.saindo {
  animation: login-fade-blur-out 1.65s ease both;
}

.login-fundo-veu {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(4, 18, 37, 0.18), rgba(2, 9, 20, 0.52) 65%),
    linear-gradient(180deg, rgba(2, 8, 18, 0.25), rgba(2, 8, 18, 0.62));
}

.login-card {
  position: relative;
  z-index: 5;
  width: min(680px, calc(100vw - 28px));
  max-height: calc(100dvh - 38px);
  overflow: auto;
  isolation: isolate;
  border: 1px solid rgba(177, 199, 230, 0.35);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(10, 32, 58, 0.97), rgba(4, 19, 39, 0.98) 80%);
  box-shadow: 0 35px 110px rgba(0, 0, 0, 0.78);
  filter: none;
}

@keyframes login-fade-blur-in {
  from { opacity: 0; filter: blur(8px); }
  to { opacity: 1; filter: blur(0); }
}

@keyframes login-fade-blur-out {
  from { opacity: 1; filter: blur(0); }
  to { opacity: 0; filter: blur(8px); }
}

@keyframes login-zoom {
  from { transform: scale(1.035); }
  to { transform: scale(1.085); }
}

.portao-abas { display: flex; gap: 8px; margin-bottom: 14px; }

.portao-abas button {
  flex: 1;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(10, 29, 53, 0.6);
  padding: 10px;
  color: var(--muted);
  font-size: 12px;
}

.portao-abas button.ativo { border-color: rgba(223, 180, 84, 0.75); background: rgba(215, 163, 58, 0.14); color: var(--gold-light); }
.portao-texto { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 0 0 12px; }
#portao-body .source-input { width: 100%; margin-bottom: 9px; }
#portao-body .gold-button { width: 100%; justify-content: center; }

.portao-aviso { margin-top: 11px; border-radius: 8px; padding: 10px 12px; font-size: 11.5px; line-height: 1.5; }
.portao-aviso.erro { border: 1px solid rgba(226, 120, 120, 0.5); background: rgba(226, 120, 120, 0.1); color: #e8b4b4; }
.portao-aviso.ok { border: 1px solid rgba(84, 189, 135, 0.45); background: rgba(84, 189, 135, 0.1); color: var(--muted); }

@media (max-width: 720px) {
  .modal.login-modal { padding: 12px; }
  .login-card { width: min(100%, 680px); max-height: calc(100dvh - 24px); }
  .login-fundo-img { object-position: 38% center; }
}

@media (prefers-reduced-motion: reduce) {
  .login-fundo-img.ativa { animation: none; opacity: 1; filter: none; transform: scale(1.035); }
  .login-fundo-img.saindo { animation: none; opacity: 0; }
}

/* Sem sessão de professora, nada de administração aparece. */
.admin-button { display: none; }
body.modo-admin .admin-button { display: flex; }
body:not(.modo-admin) [data-admin-tab] { display: none; }
.admin-tabs .sair { margin-left: auto; color: #e8a0a0; }

/* ---------- Construtor de atividades ---------- */
.ativ-questoes { display: grid; gap: 10px; margin: 12px 0; }

.ativ-questao {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(10, 29, 53, 0.55);
  padding: 13px 14px;
}

.ativ-questao header { display: flex; justify-content: space-between; align-items: center; }
.ativ-questao header b { font-size: 12px; color: var(--gold-light); }
.ativ-questao > b { font-size: 13px; line-height: 1.5; }

.ativ-alt { display: flex; align-items: center; gap: 9px; }
.ativ-alt input[type="radio"] { flex: 0 0 auto; width: 18px; height: 18px; accent-color: var(--gold-light); }
.ativ-alt input[type="text"] { flex: 1; margin: 0; }
.ativ-alt span { font-size: 12.5px; line-height: 1.5; }
.ativ-dica { color: var(--muted-2); font-size: 10.5px; }

.ws-check { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.ws-check input { width: 17px; height: 17px; accent-color: var(--gold-light); }

textarea.source-input { width: 100%; resize: vertical; font-family: inherit; line-height: 1.5; }
select.source-input { width: 100%; }

.ws-pending-row span { display: grid; gap: 2px; }
.ws-pending-row small { color: var(--muted-2); font-size: 10.5px; }
.ws-pending-row .codigo { font-family: ui-monospace, monospace; color: var(--gold-light); letter-spacing: 0.08em; }

/* ---------- Mural do aluno ---------- */
.mural-msg {
  display: grid;
  gap: 5px;
  border-left: 2px solid var(--gold-dark);
  border-radius: 9px;
  background: rgba(10, 29, 53, 0.55);
  padding: 13px 15px;
  margin-bottom: 8px;
}

.mural-msg b { font-size: 13px; }
.mural-msg p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.mural-msg small { color: var(--muted-2); font-size: 10.5px; }

/* ---------- Gestor de aulas ---------- */
.curso-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 9px; }

.curso-botao {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-left: 3px solid rgba(var(--tint, 215, 163, 58), 0.9);
  border-radius: 9px;
  background: rgba(10, 29, 53, 0.6);
  padding: 13px 14px;
  text-align: left;
  transition: 0.18s ease;
}

.curso-botao:hover { border-color: rgba(223, 180, 84, 0.7); transform: translateY(-2px); }
.curso-botao b { font-size: 13px; }
.curso-botao small { color: var(--muted); font-size: 10.5px; }

.painel-topo { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.painel-topo b { color: var(--gold-light); font-size: 14px; }

.aula-lista { display: grid; gap: 7px; margin-top: 12px; }

.aula-item {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(10, 29, 53, 0.55);
  padding: 11px 13px;
}

.aula-ordem { color: var(--muted-2); font-family: Georgia, serif; font-size: 15px; }
.aula-dados { display: grid; gap: 3px; }
.aula-dados b { font-size: 12.5px; }
.aula-dados small { color: var(--muted); font-size: 10.5px; }
.aula-selos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }

.aula-selos span {
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 9.5px;
}

.aula-selos .sim { background: rgba(84, 189, 135, 0.15); color: var(--green); }
.aula-selos .nao { background: rgba(255, 255, 255, 0.06); color: var(--muted-2); }
.aula-acoes { display: grid; gap: 4px; justify-items: end; }
.text-button.perigo { color: #e88a8a; }

.aula-preview { margin: 4px 0; }
.aula-preview .video-frame { max-width: 260px; }
.ws-rotulo { color: var(--muted); font-size: 11px; margin-top: 4px; }

/* ---------- Alunos ---------- */
.aluno-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(10, 29, 53, 0.55);
  padding: 12px 13px;
  margin-bottom: 7px;
}

.aluno-dados { display: grid; gap: 3px; }
.aluno-dados b { font-size: 13px; }
.aluno-dados small { color: var(--muted-2); font-size: 10.5px; }
.credenciais { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0; font-size: 11px; color: var(--muted); }
.credenciais code { color: var(--gold-light); font-family: ui-monospace, monospace; }
.cursos-liberados { color: var(--muted) !important; }

.seletor-alunos {
  display: grid;
  gap: 6px;
  max-height: 190px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(2, 10, 23, 0.45);
  padding: 10px 12px;
}

.seletor-alunos .ws-check { justify-content: flex-start; }
.seletor-alunos small { color: var(--muted-2); font-size: 10px; margin-left: auto; }

/* ---------- Imagem em questões ---------- */
.questao-imagem { display: grid; gap: 6px; }
.questao-imagem img, .questao-img { max-width: 100%; border-radius: 8px; border: 1px solid var(--line); }
.questao-img { margin: 8px 0; }

.nota-final {
  display: grid;
  justify-items: center;
  gap: 2px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: rgba(2, 10, 23, 0.5);
  padding: 16px;
}

.nota-final b { font-family: Georgia, serif; font-size: 38px; color: var(--gold-light); }
.nota-final span { color: var(--muted); font-size: 11.5px; }

/* ---------- Perfil do aluno ---------- */
.perfil-cabecalho {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(125deg, rgba(16, 43, 74, 0.8), rgba(7, 24, 45, 0.92));
  padding: 18px 20px;
  margin-bottom: 14px;
}

.perfil-inicial {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  border: 1px solid rgba(223, 180, 84, 0.45);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 34%, rgba(215, 163, 58, 0.3), rgba(4, 18, 37, 0.9));
  color: var(--gold-light);
  font-family: Georgia, serif;
  font-size: 24px;
}

.perfil-cabecalho h2 { margin: 0 0 3px; font-size: 20px; }
.perfil-cabecalho p { margin: 0; color: var(--muted); font-size: 12px; }
.perfil-cabecalho code { color: var(--gold-light); font-family: ui-monospace, monospace; }

/* ---------- Curso bloqueado ---------- */
.course-card.bloqueado { opacity: 0.62; }
.course-card.bloqueado::after { background: linear-gradient(160deg, rgba(6, 20, 38, 0.75), rgba(6, 20, 38, 0.9)); }
.source-form.bloqueado .icon { color: var(--muted); width: 34px; height: 34px; }

/* ---------- Gestor de aulas: reordenar e capa ---------- */
.painel-acoes { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 14px 0 10px; }
.painel-contagem { color: var(--muted-2); font-size: 11px; }

.aula-item { grid-template-columns: 46px 1fr auto; }

.aula-ordem-col { display: grid; justify-items: center; gap: 2px; }

.mini {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(2, 10, 23, 0.5);
  color: var(--muted);
  font-size: 9px;
  line-height: 1;
  padding: 3px 6px;
  cursor: pointer;
}

.mini:hover { border-color: rgba(223, 180, 84, 0.7); color: var(--gold-light); }

.ws-card.destaque { border-color: rgba(223, 180, 84, 0.6); background: rgba(16, 43, 74, 0.75); }
.capa-curso { margin-bottom: 6px; }

/* ---------- Últimas gravadas com miniatura ---------- */
.recorded-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.recorded-card { min-height: 96px; }
.recorded-card .recorded-text { width: 100%; }

/* ---------- Sino ---------- */
.notification-dot[hidden] { display: none; }

/* ---------- Perfil do aluno ---------- */
.perfil-cabecalho { flex-wrap: wrap; }
.perfil-info { flex: 1 1 220px; }
.perfil-objetivo { color: var(--gold-light) !important; margin-top: 4px !important; }
.perfil-sobre { margin-top: 5px !important; line-height: 1.55; }

.perfil-foto {
  position: relative;
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  overflow: hidden;
  border: 1px solid rgba(223, 180, 84, 0.5);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 34%, rgba(215, 163, 58, 0.28), rgba(4, 18, 37, 0.9));
  padding: 0;
  cursor: pointer;
}

.perfil-foto img { width: 100%; height: 100%; object-fit: cover; }
.perfil-foto .perfil-inicial { width: 100%; height: 100%; border: 0; font-size: 28px; }

.perfil-foto-acao {
  position: absolute;
  inset: auto 0 0;
  background: rgba(2, 9, 20, 0.82);
  color: var(--gold-light);
  font-size: 9px;
  padding: 3px 0;
}

.perfil-botoes { display: grid; gap: 7px; }
.perfil-botoes .outline-button { justify-content: center; }
.outline-button.perigo { border-color: rgba(226, 120, 120, 0.5); color: #e8a0a0; }
.outline-button.perigo .icon { width: 14px; height: 14px; }

.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar { overflow: hidden; }

@media (max-width: 720px) {
  .perfil-botoes { width: 100%; grid-template-columns: 1fr 1fr; }
}

.material-atual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(84, 189, 135, 0.35);
  border-radius: 8px;
  background: rgba(84, 189, 135, 0.08);
  padding: 8px 11px;
  font-size: 11.5px;
}

.material-atual a { color: var(--green); text-decoration: none; }
.module-course-card.bloqueado { opacity: 0.6; }

/* ---------- Perfil no celular ---------- */
.mobile-profile { display: none; }
.avatar.small { width: 26px; height: 26px; font-size: 11px; display: grid; place-items: center; border-radius: 50%; background: rgba(215, 163, 58, 0.2); color: var(--gold-light); overflow: hidden; }
.avatar.small img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 940px) {
  .mobile-profile { display: inline-flex; }
}

.notification-dot[hidden] { display: none; }
.ws-pending-row .text-button { flex: 0 0 auto; }

/* ---------- Campo de senha com opção de mostrar ---------- */
.campo-senha { display: grid; gap: 6px; }

.mostrar-senha {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-2);
  font-size: 11px;
  cursor: pointer;
}

.mostrar-senha input { width: 15px; height: 15px; accent-color: var(--gold-light); }

/* ---------- Armazenamento ---------- */
.espaco-numero { display: flex; align-items: baseline; gap: 9px; margin-bottom: 9px; }
.espaco-numero b { font-family: Georgia, serif; font-size: 28px; color: var(--gold-light); }
.espaco-numero span { color: var(--muted); font-size: 12px; }

.progress-line.grande { height: 10px; border-radius: 999px; }
.progress-line.grande i { border-radius: 999px; }

h4.ws-rotulo { margin: 14px 0 6px; font-size: 11px; font-weight: 500; }

/* Capa própria da disciplina Perfil de Banca e Simulado */
.art-banca {
  background-image: url("assets/curso-banca.jpg");
  background-size: cover;
  background-position: center;
}

/* ---------- Aulas ao vivo ---------- */
.hero-live {
  display: grid;
  gap: 8px;
  justify-items: start;
  border: 1px solid rgba(226, 120, 120, 0.45);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(74, 20, 28, 0.7), rgba(7, 24, 45, 0.92));
  padding: 18px 20px;
  margin-bottom: 14px;
}

.hero-live h2 { margin: 0; font-size: 22px; }
.hero-live p { margin: 0; color: var(--muted); font-size: 12.5px; }

.selo-vivo {
  border-radius: 999px;
  background: rgba(226, 90, 90, 0.2);
  border: 1px solid rgba(226, 90, 90, 0.6);
  padding: 3px 10px;
  color: #ff9a9a;
  font-size: 10px;
  letter-spacing: 0.08em;
  animation: pulsa-vivo 2s ease-in-out infinite;
}

@keyframes pulsa-vivo {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.live-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(10, 29, 53, 0.6);
  padding: 13px 15px;
  margin-bottom: 8px;
}

.live-card.no-ar { border-color: rgba(226, 120, 120, 0.5); }
.live-card.bloqueada { opacity: 0.72; }
.live-card.bloqueada .icon { width: 22px; height: 22px; color: var(--muted); }
.live-info { flex: 1; display: grid; gap: 3px; justify-items: start; }
.live-info b { font-size: 13.5px; }
.live-info small { color: var(--muted); font-size: 11px; line-height: 1.45; }

.live-thumb {
  width: 92px;
  height: 54px;
  flex: 0 0 92px;
  object-fit: cover;
  border-radius: 7px;
}

.live-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(10, 29, 53, 0.55);
  padding: 12px 13px;
  margin-bottom: 7px;
}

.live-item.status-ao_vivo { border-color: rgba(226, 120, 120, 0.55); background: rgba(74, 20, 28, 0.3); }
.aula-selos .vivo { background: rgba(226, 90, 90, 0.2); color: #ff9a9a; }
.text-button.destaque { color: var(--gold-light); font-weight: 600; }

@media (max-width: 720px) {
  .live-card { flex-wrap: wrap; }
  .live-card .gold-button { width: 100%; justify-content: center; }
  .live-item { flex-direction: column; }
  .live-item .aula-acoes { justify-items: start; flex-direction: row; display: flex; flex-wrap: wrap; gap: 10px; }
}

/* ---------- Banner de aula ao vivo ---------- */
.hero-card { position: relative; overflow: hidden; }

.hero-imagem {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.hero-card.aguardando .live-label i,
.hero-card.aguardando .on-air i { background: var(--gold-light); animation: none; }
.hero-card.aguardando .on-air { border-color: rgba(215, 163, 58, 0.6); color: var(--gold-light); background: rgba(215, 163, 58, 0.14); }

.hero-card.no-ar .live-label i,
.hero-card.no-ar .on-air i {
  background: #4ade80;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.8);
  animation: pulsa-vivo 1.4s ease-in-out infinite;
}

.hero-card.no-ar .on-air {
  border-color: rgba(74, 222, 128, 0.65);
  background: rgba(20, 74, 46, 0.55);
  color: #86efac;
}

.hero-card.no-ar .live-label { color: #86efac; }
#hero-entrar:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------- Ficha técnica da imagem ---------- */
.ficha-imagem {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(2, 10, 23, 0.5);
  padding: 13px 15px;
}

.ficha-imagem b { font-size: 12.5px; }
.ficha-imagem ul { margin: 0; padding-left: 17px; color: var(--muted); font-size: 11.5px; line-height: 1.7; }
.ficha-imagem em { color: var(--gold-light); font-style: normal; }

/* ---------- Aba de atividades ---------- */
.ws-card.etapa { display: grid; grid-template-columns: 34px 1fr; gap: 13px; align-items: start; margin-bottom: 10px; }

.etapa-numero {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(223, 180, 84, 0.5);
  border-radius: 50%;
  color: var(--gold-light);
  font-family: Georgia, serif;
  font-size: 14px;
}

.etapa-corpo { display: grid; gap: 9px; }
.etapa-corpo h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0; font-size: 14px; }

.barra-insercao {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(2, 10, 23, 0.45);
  padding: 10px 11px;
}

.barra-abas { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }

.barra-abas button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  padding: 5px 11px;
  color: var(--muted);
  font-size: 11px;
}

.barra-abas button.ativa { border-color: rgba(223, 180, 84, 0.7); background: rgba(215, 163, 58, 0.14); color: var(--gold-light); }

.paleta { display: flex; flex-wrap: wrap; gap: 5px; }

.paleta-item {
  min-width: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(10, 29, 53, 0.6);
  padding: 7px 8px;
  color: var(--text);
  font-size: 16px;
  line-height: 1;
}

.paleta-item:hover { border-color: rgba(223, 180, 84, 0.7); background: rgba(215, 163, 58, 0.12); }

.formula-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }

.formula-item {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(10, 29, 53, 0.6);
  padding: 9px 11px;
  color: var(--text);
  font-size: 11.5px;
  text-align: left;
}

.formula-item:hover { border-color: rgba(223, 180, 84, 0.7); color: var(--gold-light); }
.barra-dica { margin: 9px 0 0; color: var(--muted-2); font-size: 10.5px; }

@media (max-width: 720px) {
  .ws-card.etapa { grid-template-columns: 1fr; }
  .etapa-numero { width: 26px; height: 26px; font-size: 12px; }
  .hero-imagem { object-position: 70% center; }
}

/* ---------- Fórmulas desenhadas ----------
   Métricas seguindo a tipografia matemática: variável em itálico, número e
   unidade em romano, expoente a 0,52em acima da linha de base.              */
.matematica {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: "Latin Modern Math", "Cambria Math", "STIX Two Math", Georgia, "Times New Roman", serif;
  font-size: 1.12em;
  line-height: 1.15;
  vertical-align: -0.12em;
  white-space: nowrap;
}

.m-var { font-style: italic; padding-right: 0.04em; }
.m-romano { font-style: normal; padding: 0 0.06em; }
.m-op { padding: 0 0.22em; font-style: normal; }
.m-funcao { font-style: normal; padding-right: 0.14em; }

.m-sup,
.m-sub {
  display: inline-block;
  font-size: 0.68em;
  line-height: 1;
  position: relative;
  vertical-align: baseline;
}

.m-sup { top: -0.52em; }
.m-sub { top: 0.22em; }
.m-sup .m-op, .m-sub .m-op { padding: 0 0.06em; }

.m-frac {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0.18em;
  vertical-align: -0.55em;
  text-align: center;
  font-size: 0.96em;
}

.m-num { padding: 0 0.28em 0.1em; border-bottom: 1.3px solid currentColor; }
.m-den { padding: 0.1em 0.28em 0; }

.m-raiz { display: inline-flex; align-items: flex-start; margin: 0 0.1em; }
.m-radical { font-size: 1.25em; line-height: 0.92; margin-right: -0.08em; }
.m-radicando { border-top: 1.2px solid currentColor; padding: 0.12em 0.18em 0; }
.m-grau { font-size: 0.6em; margin-right: -0.5em; margin-top: -0.1em; position: relative; z-index: 2; }

.m-grande {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0.2em;
  vertical-align: -0.4em;
}

.m-operador { font-size: 1.6em; line-height: 0.85; font-style: normal; }
.m-operador.m-lim { font-size: 0.95em; }
.m-limite-sup, .m-limite-inf { font-size: 0.58em; line-height: 1.15; }

.m-integral { display: inline-flex; align-items: center; margin: 0 0.14em; }
.m-int-sinal { font-size: 1.75em; line-height: 0.8; font-style: italic; }

.m-int-limites {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 0.05em;
  font-size: 0.6em;
  line-height: 1.15;
}

.m-int-limites .m-sup, .m-int-limites .m-sub { position: static; font-size: 1em; }

.m-vetor { position: relative; display: inline-block; padding-top: 0.18em; }
.m-vetor::after {
  content: "→";
  position: absolute;
  top: -0.5em;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62em;
  line-height: 1;
}

.m-barra { border-top: 1.2px solid currentColor; padding-top: 0.08em; }

/* ---------- Editor de fórmulas ---------- */
.formula-visor {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(2, 10, 23, 0.6);
  padding: 14px 16px;
  margin-bottom: 12px;
}

.formula-rotulo { color: var(--muted-2); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; }
.formula-desenho { min-height: 46px; display: flex; align-items: center; font-size: 22px; color: var(--text); overflow-x: auto; }
.formula-desenho em { color: var(--muted-2); font-size: 12px; font-style: normal; }

.formula-teclado { display: grid; gap: 9px; }
.teclas { display: flex; flex-wrap: wrap; gap: 5px; }
.teclas.numeros { border-top: 1px solid var(--line); padding-top: 9px; }

.tecla {
  min-width: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(16, 43, 74, 0.9), rgba(8, 26, 48, 0.9));
  padding: 10px 11px;
  color: var(--text);
  font-family: "Cambria Math", Georgia, serif;
  font-size: 15px;
  line-height: 1;
}

.tecla.larga { min-width: auto; font-family: inherit; font-size: 11.5px; }
.tecla:hover { border-color: rgba(223, 180, 84, 0.7); color: var(--gold-light); }
.tecla:active { transform: translateY(1px); }

.formula-acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.formula-acoes .gold-button { flex: 1; justify-content: center; }

/* ---------- Pré-visualização da atividade ---------- */
.previa-aviso {
  border: 1px solid rgba(215, 163, 58, 0.45);
  border-radius: 8px;
  background: rgba(215, 163, 58, 0.1);
  padding: 9px 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11.5px;
}

.previa-instrucao { color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.ativ-alt.gabarito { border-radius: 8px; background: rgba(84, 189, 135, 0.1); padding: 5px 8px; }
.marca-gabarito { margin-left: auto; color: var(--green); font-size: 10px; }

/* ---------- Teclado de fórmulas ---------- */
.fx-visor {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 84px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(2, 10, 23, 0.65);
  padding: 14px 16px 10px;
  margin-bottom: 10px;
}

.fx-linha { overflow-x: auto; flex: 1; display: flex; align-items: center; min-height: 40px; }

.fx-linha {
  font-family: "Cambria Math", Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 1.35;
  color: var(--text);
  white-space: nowrap;
}

.fx-dica { color: var(--muted-2); font-size: 11px; line-height: 1.5; white-space: normal; }

.fx-campo { display: inline-flex; align-items: center; }

.fx-campo.fx-vazio {
  min-width: 22px;
  min-height: 26px;
  border: 1.5px dashed rgba(223, 180, 84, 0.65);
  border-radius: 5px;
  margin: 0 2px;
}

.fx-campo.fx-vazio.fx-ativo { border-color: var(--gold-light); background: rgba(215, 163, 58, 0.12); }

.fx-alvo { display: inline-block; width: 2px; height: 1.05em; }

.fx-cursor {
  background: var(--gold-light);
  animation: fx-pisca 1s step-end infinite;
}

@keyframes fx-pisca { 50% { opacity: 0; } }

.fx-char, .fx-func { display: inline-block; }
.fx-func { font-style: normal; margin-right: 3px; }
.fx-par { display: inline-flex; align-items: center; }

.fx-controles { display: flex; gap: 6px; margin-bottom: 10px; }

.fx-ctrl {
  flex: 1;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(10, 29, 53, 0.7);
  padding: 11px 8px;
  color: var(--muted);
  font-size: 13px;
}

.fx-ctrl:hover { border-color: rgba(223, 180, 84, 0.7); color: var(--gold-light); }

.fx-abas { display: flex; gap: 5px; margin-bottom: 8px; }

.fx-abas button {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  background: rgba(6, 20, 38, 0.7);
  padding: 9px 4px;
  color: var(--muted);
  font-size: 12px;
}

.fx-abas button.ativa { border-color: rgba(223, 180, 84, 0.7); border-bottom-color: transparent; background: rgba(215, 163, 58, 0.14); color: var(--gold-light); }

.fx-teclado { display: grid; gap: 5px; }
.fx-linha-teclas { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }

.fx-tecla {
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(18, 46, 78, 0.95), rgba(9, 28, 51, 0.95));
  padding: 13px 4px;
  color: var(--text);
  font-family: "Cambria Math", Georgia, serif;
  font-size: 16px;
  line-height: 1;
}

.fx-tecla:hover { border-color: rgba(223, 180, 84, 0.7); color: var(--gold-light); }
.fx-tecla:active { transform: translateY(1px); background: rgba(215, 163, 58, 0.18); }

.fx-modelos { margin-top: 12px; }
.fx-modelos summary { color: var(--gold-light); font-size: 12px; cursor: pointer; padding: 6px 0; }

@media (max-width: 720px) {
  .fx-linha { font-size: 22px; }
  .fx-tecla { padding: 15px 2px; font-size: 15px; }
}

/* Teclas com rótulo em palavra usam a fonte da interface, não a matemática */
.fx-tecla-larga { font-family: inherit; font-size: 11.5px; letter-spacing: 0.02em; }
.fx-linha-teclas { display: grid; gap: 5px; }
.fx-visor .m-romano { font-style: normal; }

@media (max-width: 720px) {
  .fx-tecla { padding: 14px 1px; font-size: 15px; }
  .fx-tecla-larga { font-size: 10px; }
}

/* ---------- Painel de fórmulas refeito ---------- */
.m-sup, .m-sub { font-size: inherit; }

.m-matriz { display: inline-flex; align-items: stretch; margin: 0 0.15em; vertical-align: middle; }

.m-delim {
  display: flex;
  align-items: center;
  font-size: 1.05em;
  transform: scaleY(1.9);
  padding: 0 0.12em;
}

.m-grade { display: inline-flex; flex-direction: column; padding: 0 0.16em; }
.m-mlinha { display: flex; justify-content: center; gap: 0.55em; line-height: 1.35; }
.m-celula { text-align: center; }

.m-acento { position: relative; display: inline-block; padding-top: 0.22em; }
.m-acento::after {
  content: attr(data-acento);
  position: absolute;
  top: -0.42em;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8em;
  line-height: 1;
}

.fx-contexto {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.fx-onde b { color: var(--gold-light); }

.fx-ctrl.destaque { color: var(--gold-light); border-color: rgba(223, 180, 84, 0.55); }

.fx-categorias {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 8px;
  scrollbar-width: thin;
}

.fx-categorias button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 20, 38, 0.8);
  padding: 8px 14px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.fx-categorias button.ativa { border-color: rgba(223, 180, 84, 0.75); background: rgba(215, 163, 58, 0.16); color: var(--gold-light); }
.fx-cat-formulas { font-family: inherit; }

.fx-formulario { display: grid; gap: 9px; }

.fx-grupos { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 6px; }

.fx-grupos button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(2, 10, 23, 0.5);
  padding: 7px 11px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.fx-grupos button.ativa { border-color: rgba(223, 180, 84, 0.7); color: var(--gold-light); }

.fx-lista-formulas { display: grid; gap: 6px; max-height: 320px; overflow-y: auto; }

.fx-formula {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(10, 29, 53, 0.55);
  padding: 11px 13px;
  text-align: left;
}

.fx-formula:hover { border-color: rgba(223, 180, 84, 0.7); background: rgba(16, 43, 74, 0.8); }
.fx-formula-nome { color: var(--muted); font-size: 11px; }
.fx-formula-desenho { font-size: 15px; color: var(--text); overflow-x: auto; }

@media (max-width: 720px) {
  .fx-lista-formulas { max-height: 260px; }
  .fx-categorias button { padding: 8px 12px; font-size: 11.5px; }
}

/* ---------- Vitrine para visitantes ---------- */
body.modo-visitante .mobile-bar,
body.modo-visitante #sidebar,
body.modo-visitante .sidebar-scrim,
body.modo-visitante .app-shell,
body.modo-visitante .tab-bar,
body.modo-visitante .file-banner { display: none !important; }

body.modo-visitante { padding-bottom: 0; padding-top: 0 !important; }

.vitrine {
  display: block;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(215, 163, 58, 0.14), transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(30, 74, 128, 0.35), transparent 50%),
    var(--bg);
  padding: 0 0 40px;
}

.vitrine[hidden] { display: none; }

.vt-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px clamp(16px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(3, 13, 27, 0.92);
  backdrop-filter: blur(12px);
}

.vt-marca { display: flex; align-items: center; gap: 12px; }
.vt-marca .brand-shield { width: 46px; height: 52px; margin: 0; }
.vt-marca .brand-shield span { font-size: 17px; }
.vt-marca b { display: block; color: var(--gold-light); font-size: 14px; letter-spacing: 0.1em; }
.vt-marca small { color: var(--muted-2); font-size: 10.5px; letter-spacing: 0.04em; }

.vt-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 30px;
  padding: clamp(30px, 6vw, 70px) clamp(16px, 5vw, 56px);
}

.vt-selo {
  display: inline-block;
  border: 1px solid rgba(223, 180, 84, 0.5);
  border-radius: 999px;
  background: rgba(215, 163, 58, 0.1);
  padding: 5px 13px;
  color: var(--gold-light);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vt-hero h1 {
  margin: 15px 0 12px;
  font-family: Georgia, serif;
  font-size: clamp(28px, 5.2vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.vt-hero-texto > p { margin: 0 0 22px; max-width: 46ch; color: var(--muted); font-size: 14px; line-height: 1.7; }

.vt-acoes { display: flex; flex-wrap: wrap; gap: 10px; }
.vt-acoes .outline-button { text-decoration: none; }

.vt-numeros { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 28px; }
.vt-numeros b { display: block; color: var(--gold-light); font-family: Georgia, serif; font-size: 27px; line-height: 1.1; }
.vt-numeros small { color: var(--muted-2); font-size: 11px; }

.vt-hero-arte {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(16, 43, 74, 0.75), rgba(4, 16, 32, 0.95));
}

.vt-escudo {
  display: grid;
  width: 130px;
  height: 148px;
  place-items: center;
  border: 2px solid rgba(223, 180, 84, 0.6);
  border-radius: 14px 14px 50% 50%;
  background: radial-gradient(circle at 50% 30%, rgba(215, 163, 58, 0.24), rgba(4, 18, 37, 0.9));
  color: var(--gold-light);
  font-family: Georgia, serif;
  font-size: 46px;
  letter-spacing: 0.06em;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

/* Logomarca recortada do material da professora: fundo já vem transparente,
   sem branco, recolorida em preto/azul-néon — só ajusta o encaixe no escudo. */
.vt-escudo-logo {
  width: 86%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(64, 170, 255, 0.45));
}

.vt-secao { padding: clamp(26px, 5vw, 52px) clamp(16px, 5vw, 56px); }
.vt-secao h2 { margin: 0 0 6px; font-family: Georgia, serif; font-size: clamp(21px, 3.4vw, 30px); }
.vt-legenda { margin: 0 0 20px; color: var(--muted); font-size: 12.5px; }

.vt-cursos { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }

.vt-curso {
  position: relative;
  overflow: hidden;
  min-height: 168px;
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background-color: #0c2039;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: 0.22s ease;
}

.vt-curso::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 13, 28, 0.25), rgba(3, 13, 28, 0.94) 70%);
  content: "";
}

.vt-curso:hover { transform: translateY(-4px); border-color: rgba(223, 180, 84, 0.7); }
.vt-curso-corpo { position: relative; z-index: 3; padding: 16px; }
.vt-curso-corpo h3 { margin: 0 0 4px; font-size: 15px; }
.vt-curso-corpo p { margin: 0 0 8px; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.vt-curso-meta { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-light); font-size: 11px; }
.vt-curso-meta .icon { width: 13px; height: 13px; }

.vt-recursos .vt-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }

.vt-grade > div {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(10, 29, 53, 0.55);
  padding: 18px;
}

.vt-grade .icon { width: 22px; height: 22px; color: var(--gold-light); }
.vt-grade b { font-size: 13.5px; }
.vt-grade small { color: var(--muted); font-size: 11.5px; line-height: 1.6; }

.vt-professora {
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: center;
  gap: 26px;
}

.vt-professora img { width: 100%; border-radius: 16px; border: 1px solid var(--line-strong); }
.vt-professora h2 { margin: 10px 0 10px; }
.vt-professora p { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.7; }

.vt-rodape {
  display: grid;
  justify-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 36px clamp(16px, 5vw, 56px) 10px;
  text-align: center;
}

.vt-rodape p { margin: 0; color: var(--muted); font-size: 12.5px; max-width: 46ch; }
.vt-rodape small { color: var(--muted-2); font-size: 10.5px; }

@media (max-width: 900px) {
  .vt-hero { grid-template-columns: 1fr; }
  .vt-hero-arte { min-height: 220px; order: -1; }
  .vt-professora { grid-template-columns: 1fr; }
  .vt-professora img { max-width: 240px; }
  .vt-entrar { width: auto; }
}

/* ---------- Carrossel de fundo do herói ----------
   As imagens ficam dentro do bloco do herói, atrás do texto. O véu escurece o
   suficiente para o texto ser legível, sem apagar a imagem.                  */
.vt-hero { position: relative; overflow: hidden; border-radius: 0; }

.vt-fundo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.vt-fundo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.4s ease, transform 7s linear;
  will-change: opacity, transform;
}

.vt-fundo-img.ativa { opacity: 0.9; transform: scale(1.12); }

/* Véu em duas camadas: mais fechado à esquerda, onde fica o texto, e aberto
   à direita, para a ilustração aparecer. */
.vt-fundo-veu {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg, rgba(3, 13, 27, 0.93) 8%, rgba(3, 13, 27, 0.6) 42%, rgba(3, 13, 27, 0.28) 70%, rgba(3, 13, 27, 0.62)),
    linear-gradient(180deg, rgba(3, 13, 27, 0.35), rgba(3, 13, 27, 0.2) 40%, rgba(3, 13, 27, 0.88));
}

.vt-hero-texto, .vt-hero-arte { position: relative; z-index: 2; }

/* O cartão da direita deixa a imagem de fundo aparecer por trás. */
.vt-hero-arte {
  background: linear-gradient(150deg, rgba(16, 43, 74, 0.42), rgba(4, 16, 32, 0.55));
  backdrop-filter: blur(2px);
}

.vitrine { position: relative; }
.vt-topo, .vt-secao, .vt-rodape { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .vt-fundo-img { transition: none; }
  .vt-fundo-img:not(.ativa) { display: none; }
}

@media (max-width: 900px) {
  .vt-fundo-img[data-fundo="0"] { object-position: 38% center; }
  .vt-fundo-img[data-fundo="1"] { object-position: 34% center; }
  .vt-fundo-img[data-fundo="2"] { object-position: 64% center; }
  .vt-fundo-img[data-fundo="3"] { object-position: 32% center; }
  .vt-fundo-img[data-fundo="4"] { object-position: 40% center; }
  .vt-fundo-img[data-fundo="5"] { object-position: 34% center; }

  .vt-fundo-veu {
    background:
      linear-gradient(180deg, rgba(3, 13, 27, 0.6), rgba(3, 13, 27, 0.35) 35%, rgba(3, 13, 27, 0.93));
  }
}

/* ---------- Plano de estudos ---------- */
.plano-dias { display: flex; flex-wrap: wrap; gap: 6px; }

.dia-check { position: relative; }
.dia-check input { position: absolute; opacity: 0; pointer-events: none; }

.dia-check span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(10, 29, 53, 0.6);
  padding: 9px 6px;
  color: var(--muted);
  font-size: 11.5px;
  cursor: pointer;
}

.dia-check input:checked + span { border-color: rgba(223, 180, 84, 0.8); background: rgba(215, 163, 58, 0.16); color: var(--gold-light); }

.plano-resumo { margin-top: 14px; }
.plano-sessoes { display: grid; gap: 9px; }

.plano-sessao {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(10, 29, 53, 0.55);
  padding: 12px 13px;
}

.plano-data b { display: block; color: var(--gold-light); font-size: 14px; }
.plano-data small { color: var(--muted-2); font-size: 10.5px; }
.plano-aulas { display: grid; gap: 5px; }

.plano-aula {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(2, 10, 23, 0.45);
  padding: 8px 11px;
  text-align: left;
}

.plano-aula:hover { border-color: rgba(223, 180, 84, 0.6); }
.plano-aula b { font-size: 12px; }
.plano-aula small { color: var(--muted); font-size: 10.5px; }

.portao-rodape { color: var(--muted-2); font-size: 11px; line-height: 1.55; margin: 10px 0 0; text-align: center; }
#portao-body .text-button { display: block; width: 100%; margin-top: 10px; text-align: center; }

/* ---------- Recursos adicionados na v29.1 ---------- */
.sim-builder {
  scroll-margin-top: 88px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(7, 25, 47, 0.72);
  padding: 18px;
}

.sim-builder:focus { outline: 2px solid rgba(223, 180, 84, 0.62); outline-offset: 3px; }
.sim-builder .section-heading { align-items: flex-start; }
.sim-builder .section-heading h2 { margin-bottom: 4px; }
.sim-builder .section-heading p { margin: 0; color: var(--muted); font-size: 11.5px; }

.sim-builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(150px, 1fr));
  align-items: end;
  gap: 12px;
}

.sim-builder-subjects {
  grid-row: span 2;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px 12px;
}

.sim-builder-subjects legend,
.ativ-tipo-publicacao legend {
  padding: 0 6px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 750;
}

.sim-subject-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 10px;
  max-height: 240px;
  overflow: auto;
  padding-right: 4px;
}

.sim-subject-list .ws-check { align-items: center; min-width: 0; margin: 0; }
.sim-subject-list .ws-check span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sim-subject-list .ws-check small { margin-left: auto; color: var(--muted-2); font-size: 9px; white-space: nowrap; }

.sim-builder-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
}

.sim-builder-field:first-of-type { grid-column: span 3; }
.sim-builder-actions { justify-content: flex-end; margin-top: 13px; }
.sim-assigned-list { display: grid; gap: 8px; }
.sim-assigned > span { display: grid; gap: 4px; }
.sim-assigned .status-pill { width: max-content; }

#quiz-subtitle {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.quiz-timer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  border: 1px solid rgba(223, 180, 84, 0.5);
  border-radius: 999px;
  background: rgba(215, 163, 58, 0.12);
  padding: 4px 9px;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.quiz-timer.urgente {
  border-color: rgba(226, 120, 120, 0.72);
  background: rgba(226, 120, 120, 0.14);
  color: #f0aaaa;
}

.ativ-tipo-publicacao {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px 12px;
}

.ativ-tipo-publicacao .ws-check {
  align-items: flex-start;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 29, 53, 0.48);
  padding: 10px;
}

.ativ-tipo-publicacao .ws-check span { display: grid; gap: 3px; }
.ativ-tipo-publicacao .ws-check b { color: var(--text); font-size: 11.5px; }
.ativ-tipo-publicacao .ws-check small { color: var(--muted); font-size: 10px; line-height: 1.4; }
#ativ-tempo-bloco { display: grid; gap: 6px; margin-bottom: 12px; }
#ativ-tempo-bloco[hidden] { display: none; }

.notification-actions,
.reminder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.notification-link > span { display: grid; gap: 4px; }
.notification-link .status-pill { width: max-content; }
.notification-message {
  width: 100%;
  border: 1px solid var(--line);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.notification-message:hover { border-color: rgba(223, 180, 84, 0.6); }
.notification-message .status-pill { display: inline-flex; margin-bottom: 7px; }
.notification-message small { color: var(--gold-light); }

.reminder-actions a,
.reminder-actions button { text-decoration: none; }
.ws-divider { height: 1px; margin: 16px 0; border: 0; background: var(--line); }

@media (max-width: 980px) {
  .sim-builder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sim-builder-subjects { grid-column: 1 / -1; grid-row: auto; }
  .sim-builder-field:first-of-type { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .sim-builder-grid { grid-template-columns: 1fr; }
  .sim-builder-subjects,
  .sim-builder-field:first-of-type { grid-column: auto; }
  .sim-subject-list { grid-template-columns: 1fr; max-height: 280px; }
  .ativ-tipo-publicacao { grid-template-columns: 1fr; }
  .notification-actions > *,
  .reminder-actions > * { justify-content: center; width: 100%; }
}

/* ============================================================
   Banco de questões — aluno e painel
   ============================================================ */
.banco-lista { display: grid; gap: 10px; margin-top: 12px; }

.banco-questao {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(10, 29, 53, 0.55);
  padding: 15px 16px;
}

.banco-questao header { display: flex; align-items: center; gap: 9px; }
.banco-numero { color: var(--muted-2); font-family: Georgia, serif; font-size: 15px; }
.banco-enunciado { margin: 0; font-size: 14px; line-height: 1.6; }

.banco-alternativas { display: grid; gap: 6px; }

.banco-alt {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(2, 10, 23, 0.45);
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
  line-height: 1.5;
}

.banco-alt:hover:not(:disabled) { border-color: rgba(223, 180, 84, 0.7); }
.banco-alt.right { border-color: rgba(84, 189, 135, 0.85); background: rgba(84, 189, 135, 0.13); }
.banco-alt.wrong { border-color: rgba(226, 120, 120, 0.8); background: rgba(226, 120, 120, 0.12); }

.banco-retorno {
  display: grid;
  gap: 5px;
  border-left: 3px solid var(--gold-dark);
  border-radius: 8px;
  background: rgba(2, 10, 23, 0.5);
  padding: 11px 13px;
  font-size: 12.5px;
  line-height: 1.6;
}

.banco-retorno.ok { border-left-color: var(--green); }
.banco-retorno.no { border-left-color: #e27878; }
.banco-retorno span { color: var(--muted); }
.banco-retorno[hidden] { display: none; }

.banco-acoes { display: flex; gap: 8px; }

.banco-resolucao {
  border: 1px solid rgba(223, 180, 84, 0.4);
  border-radius: 9px;
  background: rgba(215, 163, 58, 0.07);
  padding: 13px 15px;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.banco-resolucao[hidden] { display: none; }
.curso-botao.bloqueado { opacity: 0.6; }

/* Título com fórmula dentro de cartão estreito: rola em vez de quebrar */
.titulo-formula {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 2px;
}

.titulo-formula .matematica { flex-wrap: nowrap; }

/* Passos do CallMeBot */
.plano-zap { margin-top: 12px; border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px; background: rgba(2, 10, 23, 0.4); }
.plano-zap summary { color: var(--gold-light); font-size: 12px; cursor: pointer; }
.ws-passos { margin: 8px 0; padding-left: 18px; color: var(--muted); font-size: 11.5px; line-height: 1.75; }
.ws-passos code { color: var(--gold-light); font-size: 11px; }
.ws-passos a { color: #79a0dd; }

/* ---------- Diagnóstico: ferramenta técnica, só para a professora ----------
   É uma tela de suporte para conferir a implantação (protocolo, imagem, player,
   versão do pacote) — não é conteúdo de estudo, por isso fica fora do menu do
   aluno e só aparece depois de entrar como administradora.                    */
.admin-only-nav { display: none; }
body.modo-admin .admin-only-nav { display: flex; }

/* ---------- Campo de digitação nativa: faixa dentro do próprio visor ----------
   Uma caixa só, não duas: o campo fica no rodapé do mesmo quadro do desenho,
   sem borda própria — só uma linha separando das duas partes.               */
.fx-input-nativo {
  width: 100%;
  border: 0;
  border-top: 1px dashed rgba(223, 180, 84, 0.35);
  border-radius: 0;
  background: transparent;
  padding: 8px 2px 0;
  color: var(--text);
  font-size: 12.5px;
}

.fx-input-nativo:focus {
  outline: none;
  border-top-color: rgba(223, 180, 84, 0.75);
}

.fx-input-nativo::placeholder { color: var(--muted-2); }

/* ---------- Botão flutuante: ver como aluno ---------- */
.fab-preview {
  position: fixed;
  right: 18px;
  bottom: 84px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(223, 180, 84, 0.6);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(30, 60, 100, 0.96), rgba(10, 29, 53, 0.98));
  padding: 11px 16px;
  color: var(--gold-light);
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}

.fab-preview .icon { width: 16px; height: 16px; }
.fab-preview:hover { border-color: rgba(223, 180, 84, 0.9); transform: translateY(-1px); }

.fab-preview-voltar {
  border-color: rgba(84, 189, 135, 0.6);
  color: var(--green);
}

/* Some sozinho quando o painel administrativo está fechado. */
#admin-dialog:not([open]) #admin-preview-fab { display: none; }

/* Enquanto em pré-visualização, os itens exclusivos da professora ficam
   escondidos mesmo com a sessão de admin continuando ativa por baixo. */
body.modo-preview-aluno .admin-only-nav,
body.modo-preview-aluno .admin-button {
  display: none !important;
}

@media (max-width: 720px) {
  .fab-preview { right: 12px; bottom: 78px; padding: 10px 13px; font-size: 11.5px; }
  .fab-preview span:last-child { display: none; }
}

/* Selo de versão sempre visível ao abrir o painel — para nunca mais restar
   dúvida sobre se uma atualização realmente chegou ao ar. */
.build-badge {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.03em;
}

/* ---------- Botão flutuante do WhatsApp, na vitrine ---------- */
.whatsapp-flutuante {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  transition: transform 0.18s ease;
}

.whatsapp-flutuante svg { width: 30px; height: 30px; }
.whatsapp-flutuante:hover { transform: scale(1.06); }

@media (max-width: 720px) {
  .whatsapp-flutuante { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .whatsapp-flutuante svg { width: 27px; height: 27px; }
}

/* ============================================================
   Logo no card da vitrine — sem brasão, maior, com brilho de prisma
   ============================================================ */
.vt-logo-card {
  position: relative;
  z-index: 2;
  width: min(88%, 420px);
  aspect-ratio: 911 / 544;           /* proporção exata da logo: o prisma casa pixel a pixel */
  animation: vt-logo-flutua 6s ease-in-out infinite;
}

.vt-logo-img {
  display: block;
  width: 100%;
  height: 100%;
  filter:
    drop-shadow(0 0 6px rgba(70, 190, 255, 0.55))
    drop-shadow(0 0 22px rgba(40, 120, 255, 0.35));
}

/* Prisma: faixa de luz com dispersão de cores que atravessa só o "ID".
   A máscara é o próprio desenho do ID, então o brilho nunca vaza para
   a coruja nem para o texto. */
.vt-logo-prisma {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 33%,
    rgba(120, 255, 255, 0.0) 36%,
    rgba(120, 255, 255, 0.8) 42%,
    rgba(255, 255, 255, 0.95) 46%,
    rgba(190, 140, 255, 0.8) 50%,
    rgba(255, 120, 220, 0.55) 55%,
    transparent 62%,
    transparent 100%
  );
  background-size: 260% 100%;
  background-position: 130% 0;
  mix-blend-mode: screen;
  -webkit-mask-image: url("assets/logo-id-mask.png");
          mask-image: url("assets/logo-id-mask.png");
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  animation: vt-prisma 4.5s ease-in-out infinite;
}

@keyframes vt-prisma {
  0%   { background-position: 130% 0; }
  55%  { background-position: -30% 0; }
  100% { background-position: -30% 0; }
}

@keyframes vt-logo-flutua {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* Selo pequeno do cabeçalho: só o ID, sem o escudo dourado por trás */
.vt-marca .brand-shield {
  width: 58px;
  height: 40px;
  clip-path: none;
  background: none;
}
.vt-marca .brand-shield::before,
.vt-marca .brand-shield::after { display: none; }
.vt-marca .brand-shield-logo {
  width: 100%;
  filter: drop-shadow(0 0 5px rgba(70, 190, 255, 0.6));
}

@media (prefers-reduced-motion: reduce) {
  .vt-logo-card, .vt-logo-prisma { animation: none; }
}

/* ============================================================
   Logo em três camadas: ID (prisma), coruja (vidro), textos (néon)
   ============================================================ */
.vt-camada {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.vt-camada-id {
  filter:
    drop-shadow(0 0 6px rgba(70, 190, 255, 0.55))
    drop-shadow(0 0 22px rgba(40, 120, 255, 0.35));
}

/* Coruja em vidro: translúcida, com borda luminosa fina e um reflexo
   que desliza por ela, fora de fase com o prisma do ID. */
.vt-camada-coruja {
  filter:
    drop-shadow(0 0 1px rgba(220, 245, 255, 1))
    drop-shadow(0 0 10px rgba(120, 200, 255, 0.6));
}

.vt-coruja-reflexo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    60deg,
    transparent 0%, transparent 32%,
    rgba(180, 235, 255, 0.7) 40%,
    rgba(255, 255, 255, 1) 47%,
    rgba(255, 255, 255, 1) 51%,
    rgba(160, 220, 255, 0.7) 58%,
    transparent 66%, transparent 100%
  );
  background-size: 300% 100%;
  background-position: 140% 0;
  mix-blend-mode: screen;
  -webkit-mask-image: url("assets/logo-coruja-mask.png");
          mask-image: url("assets/logo-coruja-mask.png");
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  animation: vt-reflexo-coruja 5.5s ease-in-out 1.6s infinite;
}

@keyframes vt-reflexo-coruja {
  0%   { background-position: 140% 0; }
  45%  { background-position: -40% 0; }
  100% { background-position: -40% 0; }
}

/* Textos em néon: halo ciano em camadas, pulsando devagar */
.vt-camada-texto {
  filter:
    drop-shadow(0 0 2px rgba(200, 240, 255, 0.95))
    drop-shadow(0 0 7px rgba(60, 200, 255, 0.85))
    drop-shadow(0 0 18px rgba(40, 140, 255, 0.6));
  animation: vt-neon 3.2s ease-in-out infinite;
}

@keyframes vt-neon {
  0%, 100% {
    filter:
      drop-shadow(0 0 2px rgba(200, 240, 255, 0.95))
      drop-shadow(0 0 7px rgba(60, 200, 255, 0.85))
      drop-shadow(0 0 18px rgba(40, 140, 255, 0.6));
  }
  50% {
    filter:
      drop-shadow(0 0 2px rgba(220, 248, 255, 1))
      drop-shadow(0 0 11px rgba(80, 215, 255, 1))
      drop-shadow(0 0 28px rgba(50, 150, 255, 0.85));
  }
}

@media (prefers-reduced-motion: reduce) {
  .vt-coruja-reflexo, .vt-camada-texto { animation: none; }
}

/* ====================================================================
   v38 — padrões visuais trazidos do Portal IFA (v79)
   ==================================================================== */

/* Correção: o botão "Voltar ao painel" tem o atributo hidden, mas o
   display:flex da classe passava por cima e ele aparecia para visitantes. */
.fab-preview[hidden] { display: none !important; }

/* Cartão da logo no mesmo padrão do cartão da página inicial do IFA:
   fundo totalmente transparente, sem desfoque, borda luminosa de 3px,
   bisel de vidro (luz em cima e à esquerda, sombra embaixo) e halo em três
   camadas. Cor do brilho: o azul-néon da logo. */
.vitrine .vt-hero-arte {
  --vt-card-glow: #3cb8ff;
  border: 0.1875rem solid color-mix(in srgb, var(--vt-card-glow) 72%, #ffffff 28%);
  background: transparent;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  box-shadow:
    inset 0 0.125rem 0 rgb(255 255 255 / 92%),
    inset 0.125rem 0 0 rgb(255 255 255 / 54%),
    inset 0 -0.125rem 0 rgb(0 0 0 / 82%),
    0 0 0.45rem color-mix(in srgb, var(--vt-card-glow) 94%, transparent),
    0 0 1.3rem color-mix(in srgb, var(--vt-card-glow) 60%, transparent),
    0 0 2.5rem color-mix(in srgb, var(--vt-card-glow) 30%, transparent);
}

/* Logo um pouco menor */
.vt-logo-card { width: min(76%, 360px); }

/* ID em vidro, como a face frontal do prisma do IFA: a camada já vem com
   miolo translúcido e arestas acesas; aqui entra a respiração de brilho e
   saturação (mesma curva do prisma: 6,8 s). */
.vt-camada-id {
  animation: vt-id-respira 6.8s ease-in-out infinite;
}

@keyframes vt-id-respira {
  0%, 100% {
    filter: saturate(1.25) brightness(1)
      drop-shadow(0 0 6px rgba(70, 190, 255, 0.55))
      drop-shadow(0 0 22px rgba(40, 120, 255, 0.35));
  }
  50% {
    filter: saturate(1.38) brightness(1.08)
      drop-shadow(0 0 8px rgba(90, 205, 255, 0.75))
      drop-shadow(0 0 28px rgba(50, 130, 255, 0.5));
  }
}

/* Iluminação volumétrica, como no prisma do IFA: cada ponto é um gradiente
   radial sem borda, somado à arte em modo screen (só acrescenta luz, nunca
   escurece). Cinco ritmos irregulares com durações primas entre si e
   atrasos diferentes — o conjunto nunca pisca junto. */
.vt-lfh {
  position: absolute;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  /* núcleo branco + halo gelo + cruz de difração fina (estrela de 4 pontas,
     como o brilho gravado nos vértices do prisma do IFA) */
  background:
    radial-gradient(circle, rgb(255 255 255 / 100%) 0%, rgb(255 255 255 / 85%) 6%, rgb(214 244 255 / 45%) 20%, rgb(120 200 255 / 14%) 45%, rgb(60 150 255 / 0%) 68%),
    linear-gradient(90deg, transparent 8%, rgb(230 248 255 / 70%) 50%, transparent 92%) center / 100% 5% no-repeat,
    linear-gradient(0deg, transparent 8%, rgb(230 248 255 / 70%) 50%, transparent 92%) center / 5% 100% no-repeat;
  opacity: 0;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: opacity;
}

@keyframes vt-tw-a { 0%{opacity:.08} 14%{opacity:1} 26%{opacity:.2} 48%{opacity:.72} 61%{opacity:.05} 82%{opacity:.9} 100%{opacity:.08} }
@keyframes vt-tw-b { 0%{opacity:.8} 19%{opacity:.06} 37%{opacity:.64} 55%{opacity:1} 70%{opacity:.12} 91%{opacity:.48} 100%{opacity:.8} }
@keyframes vt-tw-c { 0%{opacity:.28} 11%{opacity:.94} 33%{opacity:.04} 52%{opacity:.4} 68%{opacity:1} 86%{opacity:.16} 100%{opacity:.28} }
@keyframes vt-tw-d { 0%{opacity:.56} 22%{opacity:.03} 41%{opacity:.86} 59%{opacity:.24} 77%{opacity:1} 93%{opacity:.1} 100%{opacity:.56} }
@keyframes vt-tw-e { 0%{opacity:.14} 17%{opacity:.68} 30%{opacity:.07} 49%{opacity:1} 64%{opacity:.34} 88%{opacity:.78} 100%{opacity:.14} }

/* Botões flutuantes das redes, empilhados acima do WhatsApp */
.rede-flutuante {
  position: fixed;
  right: 18px;
  z-index: 90;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  transition: transform 0.18s ease;
}
.rede-flutuante svg { width: 24px; height: 24px; }
.rede-flutuante:hover { transform: scale(1.06); }
.rede-instagram {
  bottom: 86px;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.rede-linkedin { bottom: 146px; background: #0a66c2; }

@media (max-width: 720px) {
  .rede-flutuante { right: 16px; width: 46px; height: 46px; }
  .rede-flutuante svg { width: 22px; height: 22px; }
  .rede-instagram { bottom: 78px; }
  .rede-linkedin { bottom: 134px; }
}

@media (prefers-reduced-motion: reduce) {
  .vt-camada-id, .vt-lfh { animation: none; }
  .vt-lfh { opacity: .45; }
}

/* ====================================================================
   v39 — refinamento visual IFA v79: prisma, cartão e redes sociais
   ==================================================================== */

/* Cartão da área principal: réplica visual do cartão/hero do IFA,
   mantendo a leitura do fundo do ID Preparatório através do vidro. */
.vitrine .vt-hero-arte {
  --ifa-blue: #3ad8ff;
  position: relative;
  overflow: hidden;
  border: 0.125rem solid color-mix(in srgb, var(--ifa-blue) 82%, #ffffff 18%);
  border-radius: 1.05rem;
  background:
    linear-gradient(
      135deg,
      rgb(4 18 37 / 58%),
      rgb(7 25 48 / 34%)
    );
  -webkit-backdrop-filter: blur(0.8rem) saturate(140%);
          backdrop-filter: blur(0.8rem) saturate(140%);
  box-shadow:
    inset 0 0.125rem 0 rgb(255 255 255 / 72%),
    inset 0.125rem 0 0 rgb(255 255 255 / 38%),
    inset 0 -0.125rem 0 rgb(0 0 0 / 72%),
    0 0 0.45rem rgb(58 216 255 / 72%),
    0 0 1.4rem rgb(58 216 255 / 38%),
    0 0 2.8rem rgb(58 216 255 / 18%);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.vitrine .vt-hero-arte:hover,
.vitrine .vt-hero-arte:focus-within {
  border-color: #bff4ff;
  box-shadow:
    inset 0 0.125rem 0 rgb(255 255 255 / 88%),
    inset 0.125rem 0 0 rgb(255 255 255 / 48%),
    inset 0 -0.125rem 0 rgb(0 0 0 / 72%),
    0 0 0.6rem rgb(58 216 255 / 90%),
    0 0 1.8rem rgb(58 216 255 / 48%),
    0 0 3.4rem rgb(58 216 255 / 22%);
}

/* Logo frontal: vidro azulado translúcido + luz do prisma. A animação
   vt-id-respira é preservada e continua fazendo a transição respiratória. */
.vitrine .vt-camada-id {
  opacity: 0.90;
  mix-blend-mode: screen;
  filter:
    saturate(1.42)
    brightness(1.04)
    contrast(1.04)
    drop-shadow(0 0 1px rgb(224 249 255 / 100%))
    drop-shadow(0 0 7px rgb(58 216 255 / 72%))
    drop-shadow(0 0 22px rgb(42 137 255 / 44%));
  animation: vt-id-respira-ifa 6.8s ease-in-out infinite;
}

@keyframes vt-id-respira-ifa {
  0%, 100% {
    opacity: 0.82;
    filter:
      saturate(1.32)
      brightness(0.98)
      contrast(1.03)
      drop-shadow(0 0 1px rgb(224 249 255 / 92%))
      drop-shadow(0 0 6px rgb(58 216 255 / 58%))
      drop-shadow(0 0 20px rgb(42 137 255 / 34%));
  }
  50% {
    opacity: 1;
    filter:
      saturate(1.58)
      brightness(1.10)
      contrast(1.06)
      drop-shadow(0 0 2px rgb(255 255 255 / 100%))
      drop-shadow(0 0 10px rgb(92 226 255 / 88%))
      drop-shadow(0 0 30px rgb(49 143 255 / 58%));
  }
}

/* Faixa prismática: predominância azul/ciano, com pequenas componentes
   violeta/magenta para reproduzir a dispersão cromática do prisma do IFA. */
.vitrine .vt-logo-prisma {
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 31%,
    rgb(74 198 255 / 0%) 35%,
    rgb(85 224 255 / 82%) 41%,
    rgb(236 253 255 / 98%) 46%,
    rgb(111 190 255 / 92%) 50%,
    rgb(158 126 255 / 66%) 54%,
    rgb(224 115 255 / 42%) 58%,
    transparent 64%,
    transparent 100%
  );
  background-size: 260% 100%;
  mix-blend-mode: screen;
  opacity: 0.92;
}

/* Redes sociais: vidro transparente; a cor própria de cada serviço fica
   concentrada na borda, halo e ícone, sem o círculo sólido original. */
.rede-flutuante {
  border: 1px solid rgb(255 255 255 / 26%);
  background: rgb(7 20 38 / 28%);
  -webkit-backdrop-filter: blur(0.75rem) saturate(145%);
          backdrop-filter: blur(0.75rem) saturate(145%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 48%),
    inset 0 -1px 0 rgb(0 0 0 / 42%),
    0 0 0.35rem rgb(255 255 255 / 12%),
    0 8px 22px rgb(0 0 0 / 34%);
}

.rede-whatsapp,
.whatsapp-flutuante {
  border: 1px solid rgb(37 211 102 / 78%);
  background: rgb(37 211 102 / 12%);
  color: #5dff9b;
  -webkit-backdrop-filter: blur(0.75rem) saturate(150%);
          backdrop-filter: blur(0.75rem) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 42%),
    inset 0 -1px 0 rgb(0 0 0 / 42%),
    0 0 0.5rem rgb(37 211 102 / 62%),
    0 0 1.3rem rgb(37 211 102 / 28%),
    0 8px 22px rgb(0 0 0 / 34%);
}

.rede-instagram {
  border-color: rgb(253 89 73 / 76%);
  background:
    linear-gradient(135deg, rgb(253 244 151 / 10%), rgb(253 89 73 / 10%), rgb(214 36 159 / 12%), rgb(40 90 235 / 13%));
  color: #ff8bbd;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 44%),
    inset 0 -1px 0 rgb(0 0 0 / 42%),
    0 0 0.5rem rgb(214 36 159 / 52%),
    0 0 1.3rem rgb(40 90 235 / 24%),
    0 8px 22px rgb(0 0 0 / 34%);
}

.rede-linkedin {
  border-color: rgb(10 102 194 / 82%);
  background: rgb(10 102 194 / 13%);
  color: #63b8ff;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 44%),
    inset 0 -1px 0 rgb(0 0 0 / 42%),
    0 0 0.5rem rgb(10 102 194 / 64%),
    0 0 1.3rem rgb(10 102 194 / 30%),
    0 8px 22px rgb(0 0 0 / 34%);
}

.whatsapp-flutuante:hover,
.rede-flutuante:hover {
  transform: translateY(-2px) scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .vitrine .vt-camada-id { animation: none; }
}


/* ====================================================================
   v40 — clone fiel do cartão/prisma do Portal IFA v79
   O cartão usa a mesma geometria de vidro do .home-component-card do IFA:
   borda fina + brilho concentrado no centro de cada aresta. A identidade
   cromática do ID permanece azul/ciano.
   ==================================================================== */
.vitrine .vt-hero-arte {
  --component-accent: #49d9ff;
  --neon-edge: #49d9ff;
  position: relative;
  display: grid;
  min-height: 300px;
  overflow: hidden;
  border: 0.1rem solid #49ddff;
  border-radius: 1rem;
  background: linear-gradient(145deg, rgb(3 22 57 / 58%), rgb(4 38 82 / 42%));
  color: #ffffff;
  box-shadow: inset 0 0 2rem rgb(72 220 255 / 6%), 0 0.75rem 2.1rem rgb(0 0 0 / 36%);
  -webkit-backdrop-filter: blur(0.85rem) saturate(135%);
  backdrop-filter: blur(0.85rem) saturate(135%);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

/* Exatamente o princípio do cartão IFA: o brilho não desenha uma moldura
   contínua; ele nasce no centro das arestas e desaparece para as pontas. */
.vitrine .vt-hero-arte::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  padding: 0.1rem;
  pointer-events: none;
  filter: blur(0.8px);
  background:
    linear-gradient(to right, transparent 14%, var(--component-accent) 50%, transparent 86%),
    linear-gradient(to bottom, transparent 16%, var(--component-accent) 50%, transparent 84%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Véu inferior idêntico ao cartão do IFA, preservando profundidade sem
   transformar o cartão em uma caixa opaca. */
.vitrine .vt-hero-arte::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 45%, rgb(1 6 21 / 70%) 100%);
}

.vitrine .vt-hero-arte:hover,
.vitrine .vt-hero-arte:focus-within {
  transform: translateY(-2px);
  border-color: #7de7ff;
  box-shadow: 0 0 0 0.0625rem #49d9ff, 0 0 1.8rem rgb(58 216 255 / 34%), 0 0.9rem 2.4rem rgb(0 0 0 / 40%);
}

/* O ID recebe o mesmo tratamento óptico do prisma IFA: objeto transparente,
   saturação controlada, brilho e halo — sem substituir a animação de transição
   já existente na identidade. */
.vitrine .vt-camada-id {
  z-index: 2;
  opacity: 0.88;
  mix-blend-mode: screen;
  filter:
    saturate(1.45)
    brightness(1.03)
    drop-shadow(0 0 1.4rem rgb(61 205 255 / 20%));
  animation: vt-id-prisma-ifa 6.8s ease-in-out infinite;
}

@keyframes vt-id-prisma-ifa {
  0%, 100% {
    opacity: 0.78;
    filter:
      saturate(1.28)
      brightness(0.98)
      drop-shadow(0 0 1.1rem rgb(61 205 255 / 17%));
  }
  50% {
    opacity: 1;
    filter:
      saturate(1.58)
      brightness(1.10)
      drop-shadow(0 0 1.5rem rgb(61 205 255 / 28%));
  }
}

/* Reflexo prismático mais discreto: a cor principal continua sendo azul,
   enquanto as componentes violeta/magenta aparecem apenas como dispersão. */
.vitrine .vt-logo-prisma {
  z-index: 3;
  opacity: 0.72;
  filter: saturate(0.95);
}

.vitrine .vt-camada-coruja,
.vitrine .vt-coruja-reflexo,
.vitrine .vt-camada-texto,
.vitrine .vt-lfh {
  z-index: 2;
}

/* Redes sociais: vidro real translúcido, sem esconder a cor característica. */
.vitrine .rede-flutuante,
.vitrine .whatsapp-flutuante {
  border: 1px solid rgb(255 255 255 / 28%);
  background: rgb(5 16 31 / 22%);
  -webkit-backdrop-filter: blur(0.8rem) saturate(145%);
  backdrop-filter: blur(0.8rem) saturate(145%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 46%),
    inset 0 -1px 0 rgb(0 0 0 / 38%),
    0 0 0.7rem rgb(255 255 255 / 10%),
    0 8px 22px rgb(0 0 0 / 30%);
}

.vitrine .rede-whatsapp,
.vitrine .whatsapp-flutuante {
  border-color: rgb(37 211 102 / 78%);
  background: rgb(37 211 102 / 10%);
  color: #45ed88;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 46%),
    inset 0 -1px 0 rgb(0 0 0 / 38%),
    0 0 0.9rem rgb(37 211 102 / 34%),
    0 8px 22px rgb(0 0 0 / 30%);
}

.vitrine .rede-instagram {
  border-color: rgb(214 36 159 / 76%);
  background: linear-gradient(135deg, rgb(253 244 151 / 7%), rgb(253 89 73 / 8%), rgb(214 36 159 / 10%), rgb(40 90 235 / 10%));
  color: #ff8fbe;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 46%),
    inset 0 -1px 0 rgb(0 0 0 / 38%),
    0 0 0.9rem rgb(214 36 159 / 30%),
    0 8px 22px rgb(0 0 0 / 30%);
}

.vitrine .rede-linkedin {
  border-color: rgb(10 102 194 / 80%);
  background: rgb(10 102 194 / 10%);
  color: #63b8ff;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 46%),
    inset 0 -1px 0 rgb(0 0 0 / 38%),
    0 0 0.9rem rgb(10 102 194 / 34%),
    0 8px 22px rgb(0 0 0 / 30%);
}

@media (prefers-reduced-motion: reduce) {
  .vitrine .vt-camada-id { animation: none; }
}

/* ====================================================================
   v41 — ajuste final: vidro realmente transparente + brilho localizado
   exatamente no princípio visual do cartão da página inicial do IFA.
   ==================================================================== */
.vitrine .vt-hero-arte {
  --component-accent: #49d9ff;
  background: transparent !important;
  background-color: transparent !important;
  border: 0.1rem solid transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: 0 0.75rem 2.1rem rgb(0 0 0 / 22%) !important;
}

/* A borda física deixa de ser luminosa. O único traço luminoso é desenhado
   pelo pseudo-elemento, concentrado no centro de cada aresta e dissipando
   para as extremidades. */
.vitrine .vt-hero-arte::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  padding: 0.1rem;
  pointer-events: none;
  filter: blur(0.55px);
  background:
    linear-gradient(to right,
      transparent 0%,
      transparent 16%,
      rgb(73 217 255 / 18%) 31%,
      rgb(73 217 255 / 92%) 50%,
      rgb(73 217 255 / 18%) 69%,
      transparent 84%,
      transparent 100%),
    linear-gradient(to bottom,
      transparent 0%,
      transparent 17%,
      rgb(73 217 255 / 18%) 32%,
      rgb(73 217 255 / 92%) 50%,
      rgb(73 217 255 / 18%) 68%,
      transparent 83%,
      transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Sem véu escuro sobre o vidro: o fundo real do ID Preparatório deve
   atravessar o cartão sem o aspecto fosco observado anteriormente. */
.vitrine .vt-hero-arte::after {
  display: none !important;
}

/* Hover mantém apenas um halo discreto no centro das arestas. */
.vitrine .vt-hero-arte:hover,
.vitrine .vt-hero-arte:focus-within {
  transform: translateY(-2px);
  border-color: transparent !important;
  box-shadow: 0 0.9rem 2.4rem rgb(0 0 0 / 26%) !important;
}

/* Redes sociais: vidro transparente, sem backdrop-filter/frosted glass.
   A cor característica permanece no contorno, no halo e no ícone. */
.vitrine .rede-flutuante,
.vitrine .whatsapp-flutuante {
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: 0 8px 22px rgb(0 0 0 / 24%) !important;
}

.vitrine .rede-whatsapp,
.vitrine .whatsapp-flutuante {
  background: rgb(37 211 102 / 5%) !important;
  border-color: rgb(37 211 102 / 76%) !important;
  color: #45ed88;
  box-shadow: 0 0 0.8rem rgb(37 211 102 / 28%), 0 8px 22px rgb(0 0 0 / 24%) !important;
}

.vitrine .rede-instagram {
  background: transparent !important;
  border-color: rgb(214 36 159 / 74%) !important;
  color: #ff8fbe;
  box-shadow: 0 0 0.8rem rgb(214 36 159 / 26%), 0 8px 22px rgb(0 0 0 / 24%) !important;
}

.vitrine .rede-linkedin {
  background: rgb(10 102 194 / 5%) !important;
  border-color: rgb(10 102 194 / 78%) !important;
  color: #63b8ff;
  box-shadow: 0 0 0.8rem rgb(10 102 194 / 28%), 0 8px 22px rgb(0 0 0 / 24%) !important;
}

/* v43 — Selo "EM BREVE": volta a piscar em vermelho enquanto aguarda o horário.
   Na hora marcada (ou quando a professora abre a live) a classe .no-ar entra
   e o selo fica verde "AO VIVO" — regra já existente acima, sem alteração. */
.hero-card.aguardando .on-air {
  border-color: rgba(240, 71, 78, 0.65);
  background: rgba(90, 14, 20, 0.5);
  color: #ff8a8f;
}
.hero-card.aguardando .on-air i {
  background: #f0474e;
  box-shadow: 0 0 12px rgba(240, 71, 78, 0.85);
  animation: pulse 1.5s ease infinite;
}
