* {
  box-sizing: border-box;
}

:root {
  --navy: #061634;
  --navy2: #0a235c;
  --dark: #020817;
  --blue: #1d4ed8;
  --blue2: #2563eb;
  --blue3: #eff6ff;
  --gold: #d7aa45;
  --gold2: #f4c542;
  --bg: #f1f5f9;
  --soft: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --card: #ffffff;
  --border: #dbe5f1;
  --danger: #dc2626;
  --success: #16a34a;
  --warning: #f59e0b;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --sidebar-width: 285px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

/* =========================
   CABEÇALHO DO SITE PÚBLICO
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
}

.brand-logo {
  width: 52px;
  height: 42px;
  object-fit: contain;
  display: block;
}

.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.03em;
}

.brand span {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  font-weight: 900;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 12px;
  font-weight: 800;
  color: #334155;
  white-space: nowrap;
}

.main-nav a {
  transition: 0.2s;
}

.main-nav a:hover,
.main-nav .portal-link {
  color: var(--blue);
}

.nav-btn {
  background: var(--blue);
  color: #fff !important;
  padding: 9px 14px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
}

.mobile-menu-btn {
  display: none;
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 18px;
  cursor: pointer;
}

/* =========================
   BOTÕES GERAIS
========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--blue2);
  color: #fff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.24);
}

.btn-secondary {
  background: rgba(30, 41, 59, 0.82);
  color: #dbeafe;
  border: 1px solid rgba(147, 197, 253, 0.18);
}

.btn-light {
  background: #fff;
  color: var(--blue);
  border: 1px solid #bfdbfe;
}

.full-btn {
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(147, 197, 253, 0.35);
  color: #bfdbfe;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* =========================
   SITE PÚBLICO / HOME
========================= */

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 25% 10%, #1e40af 0, #071633 38%, #020817 100%);
  color: #fff;
  padding: 68px 22px 78px;
  border-bottom: 1px solid rgba(37, 99, 235, 0.35);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18), transparent 35%);
  filter: blur(35px);
}

.hero-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  line-height: 1.05;
  margin: 16px 0 10px;
  letter-spacing: -0.04em;
}

.hero-script {
  margin: 0 0 8px !important;
  color: #bfdbfe !important;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 15px !important;
}

.hero-copy p {
  max-width: 600px;
  color: #dbeafe;
  font-size: 15px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-note {
  margin-top: 12px !important;
  color: #94a3b8 !important;
  font-size: 11px !important;
}

.hero-stats-original {
  display: flex;
  flex-wrap: wrap;
  max-width: 440px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.stat-clean {
  padding: 0 24px 0 0;
  margin-right: 24px;
  border-right: 1px solid rgba(148, 163, 184, 0.18);
}

.stat-clean:last-child {
  border-right: 0;
  margin-right: 0;
}

.stat-clean strong {
  display: block;
  color: #fff;
  font-family: monospace;
  font-size: 22px;
  line-height: 1;
}

.stat-clean span {
  display: block;
  margin-top: 5px;
  color: #94a3b8;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-logo-panel {
  max-width: 390px;
  margin-left: auto;
  padding: 30px;
  background: rgba(2, 6, 23, 0.58);
  border: 1px solid rgba(96, 165, 250, 0.26);
  border-radius: 22px;
  text-align: center;
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.3);
}

.hero-logo-original {
  width: 260px;
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55));
}

.hero-motto {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
}

.hero-motto span {
  display: inline-block;
  background: #0f2e6b;
  border: 1px solid rgba(147, 197, 253, 0.35);
  color: #bfdbfe;
  border-radius: 999px;
  padding: 6px 13px;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.hero-motto strong {
  display: block;
  margin-top: 14px;
  color: #e0f2fe;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
}

.section {
  padding: 76px 22px;
}

.section.alt {
  background: #fff;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.container.narrow,
.narrow {
  max-width: 950px;
}

.section-title {
  max-width: 780px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-title span {
  display: block;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 900;
}

.section-title h2 {
  margin: 8px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.03em;
}

.section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.dictionary-section {
  background: #f8fafc;
}

.dictionary-layout {
  display: grid !important;
  grid-template-columns: 250px minmax(0, 1fr) !important;
  gap: 22px !important;
  align-items: start;
  max-width: 920px;
  margin: 0 auto;
}

.dictionary-tabs {
  display: grid !important;
  gap: 10px;
}

.dict-tab {
  display: block;
  width: 100%;
  min-height: 48px;
  appearance: none;
  border: 1px solid #dbeafe;
  background: #fff;
  border-radius: 12px;
  padding: 13px 14px;
  text-align: left;
  font-weight: 900;
  color: #334155;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.dict-tab.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.mini-note {
  background: #172554;
  color: #dbeafe;
  border-radius: 14px;
  padding: 16px;
  font-size: 12px;
  box-shadow: var(--shadow);
}

.mini-note strong {
  color: #fff;
}

.mini-note p {
  color: #bfdbfe;
  line-height: 1.55;
  margin-bottom: 0;
}

.dictionary-card {
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.dict-head span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue);
  font-weight: 900;
}

.dict-head h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  margin: 6px 0;
}

.dict-head small {
  color: #64748b;
}

.dict-block {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  padding: 15px;
  margin-top: 14px;
}

.dict-block strong {
  display: block;
  margin-bottom: 6px;
}

.dict-block p {
  margin: 0;
  color: #475569;
}

.dict-block.blue {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.dict-block.yellow {
  background: #fffbeb;
  border-color: #fde68a;
}

.split-title {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.split-title span,
.register-info span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--danger);
  font-weight: 900;
}

.split-title h2,
.register-info h2 {
  margin: 6px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  line-height: 1.15;
}

.split-title p {
  color: var(--muted);
}

.video-layout {
  display: grid !important;
  grid-template-columns: 1.15fr 0.85fr !important;
  gap: 24px;
  align-items: stretch;
}

.video-box {
  min-height: 390px;
  background: linear-gradient(160deg, #020617, #081b41);
  color: #fff;
  border-radius: 22px;
  padding: 26px;
  display: flex;
  align-items: flex-end;
  text-align: left;
  border: 1px solid #1e293b;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.video-label {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  border-radius: 7px;
  padding: 6px 9px;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 90px;
}

.video-box .play {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 18px;
  font-size: 28px;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

.video-box h3 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.video-box p,
.video-box li {
  color: #bfdbfe;
}

.video-box ul {
  margin: 12px 0 0;
  padding-left: 18px;
  line-height: 1.7;
}

.lesson-list {
  display: grid !important;
  gap: 12px;
}

.lesson-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.lesson-item.active {
  border-color: #93c5fd;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.09);
}

.lesson-item strong {
  display: block;
  color: var(--text);
}

.lesson-item span {
  display: block;
  color: #64748b;
  font-size: 12px;
}

.module-accordion {
  display: grid;
  gap: 12px;
}

.module-accordion details {
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.module-accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.module-accordion summary::-webkit-details-marker {
  display: none;
}

.module-accordion summary strong {
  font-size: 16px;
}

.module-accordion summary span {
  font-size: 11px;
  background: #eff6ff;
  color: var(--blue);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 900;
  white-space: nowrap;
}

.module-accordion details p {
  margin: 0;
  padding: 0 20px 14px;
  color: #64748b;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  padding: 0 20px 20px;
}

.module-grid small {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
  color: #334155;
  font-weight: 800;
}

.admin-callout {
  margin-top: 22px;
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow);
}

.admin-callout span {
  font-weight: 900;
  color: #334155;
}

.professor-section {
  background: #f8fafc;
}

.professor {
  display: grid !important;
  grid-template-columns: 290px minmax(0, 1fr) !important;
  gap: 24px;
  align-items: stretch;
  max-width: 920px;
  margin: 0 auto;
}

.professor-photo {
  min-height: 260px;
  background: linear-gradient(160deg, #2563eb, #0b1b3f);
  color: #fff;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 34px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 900;
  box-shadow: 0 18px 45px rgba(29, 78, 216, 0.2);
}

.professor-photo small {
  display: block;
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.35;
}

.card,
.professor-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h3,
.professor-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.card p,
.professor-card p {
  color: var(--muted);
  line-height: 1.65;
}

.professor-card .mini-label {
  display: block;
  font-size: 10px;
  color: var(--blue);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.13em;
  margin-bottom: 8px;
}

.professor-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.professor-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.professor-badges span {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 900;
}

.portal-section {
  background: radial-gradient(circle at top, #0b2a6d, #061634 55%, #020817 100%);
  color: #fff;
  padding: 76px 22px;
}

.dark-title h2 {
  color: #fff;
}

.dark-title p {
  color: #bfdbfe;
}

.portal-layout {
  display: grid !important;
  grid-template-columns: 0.9fr 1.1fr !important;
  gap: 26px;
  max-width: 960px;
  margin: 0 auto;
}

.portal-card-left {
  background: rgba(30, 64, 175, 0.55);
  border: 1px solid rgba(147, 197, 253, 0.2);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.18);
}

.portal-icon {
  font-size: 30px;
  color: #93c5fd;
  margin-bottom: 18px;
}

.portal-card-left h3 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.portal-card-left p,
.portal-card-left li {
  color: #bfdbfe;
  line-height: 1.65;
}

.portal-login-preview {
  background: rgba(2, 6, 23, 0.84);
  border: 1px solid rgba(147, 197, 253, 0.18);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.26);
}

.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #0f172a;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
}

.login-tabs span {
  text-align: center;
  padding: 10px;
  border-radius: 9px;
  font-weight: 900;
  color: #94a3b8;
  font-size: 12px;
}

.login-tabs span.active {
  background: var(--blue);
  color: #fff;
}

.portal-login-preview h3 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.portal-login-preview label {
  color: #bfdbfe;
}

.portal-login-preview input {
  background: #061634;
  border-color: #1e3a8a;
  color: #fff;
}

/* =========================
   FORMULÁRIOS
========================= */

label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 900;
  color: #334155;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 13px;
  font-size: 14px;
  background: #fff;
  color: var(--text);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.register-layout {
  display: grid !important;
  grid-template-columns: 0.85fr 1.15fr !important;
  gap: 28px;
  align-items: start;
  max-width: 960px;
}

.register-info {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px;
}

.register-info p,
.register-info li {
  color: #475569;
}

.register-info li {
  margin-bottom: 9px;
}

.register-form,
.form-card {
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.form-duo,
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* =========================
   FAQ / RODAPÉ
========================= */

.faq-section {
  background: #f8fafc;
}

.faq {
  display: grid;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.faq summary {
  font-weight: 900;
  cursor: pointer;
  color: var(--text);
}

.faq p {
  color: #64748b;
  line-height: 1.65;
}

.contact-box {
  text-align: center;
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  padding: 24px;
  margin-top: 28px;
  box-shadow: var(--shadow);
}

.site-footer {
  background: #020817;
  color: #cbd5e1;
  padding: 38px 24px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px;
  font-size: 13px;
}

.footer-logo {
  width: 70px;
  height: 60px;
  object-fit: contain;
  display: block;
  margin-bottom: 8px;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 17px;
}

.footer-brand p {
  max-width: 320px;
}

.site-footer h4 {
  color: #fff;
  margin-top: 0;
}

.site-footer a {
  display: block;
  color: #bfdbfe;
  margin: 8px 0;
}

/* =========================
   STATUS / AVISOS
========================= */

.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.status.pago {
  background: #dcfce7;
  color: #166534;
}

.status.atrasado {
  background: #fee2e2;
  color: #991b1b;
}

.status.pendente {
  background: #fef3c7;
  color: #92400e;
}

.status.bloqueado {
  background: #e2e8f0;
  color: #334155;
}

.notice {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  padding: 13px;
  border-radius: 13px;
  font-size: 13px;
  line-height: 1.55;
  margin: 14px 0;
}

.notice.danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.notice.success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

/* =========================
   PAINEL PADRÃO CERTMAR / PALAVRAS DO MESTRE
   Compatível com sidebar antiga (.sidebar) e nova (.pm-sidebar)
========================= */

.app-shell {
  display: flex !important;
  min-height: 100vh !important;
  width: 100% !important;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 28%),
    #eef3f8 !important;
}

.sidebar-mobile-bar,
.pm-mobile-topbar,
.sidebar-overlay,
.pm-sidebar-overlay,
.sidebar-close-btn {
  display: none !important;
}

.sidebar-divider,
.pm-sidebar-divider {
  height: 1px;
  background: rgba(255,255,255,.12);
  margin: 16px 0;
}

.sidebar,
.pm-sidebar {
  width: var(--sidebar-width, 285px) !important;
  background: linear-gradient(180deg, #061634 0%, #071b44 48%, #020817 100%) !important;
  color: #cbd5e1 !important;
  padding: 18px 16px !important;
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  height: 100vh !important;
  min-height: 100vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  border-right: 1px solid rgba(147, 197, 253, 0.14) !important;
  border-bottom: 0 !important;
  box-shadow: 10px 0 30px rgba(15, 23, 42, 0.12) !important;
  z-index: 1000 !important;
}

.sidebar-brand,
.pm-sidebar-brand {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 0 4px 18px !important;
  margin-bottom: 14px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.sidebar-brand img,
.pm-sidebar-brand img {
  width: 62px !important;
  height: 58px !important;
  object-fit: contain !important;
  flex: 0 0 auto !important;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35)) !important;
}

.sidebar-brand strong,
.pm-sidebar-brand strong {
  display: block !important;
  color: #ffffff !important;
  font-size: 16px !important;
  line-height: 1.1 !important;
}

.sidebar-brand span,
.pm-sidebar-brand span {
  display: block !important;
  margin-top: 4px !important;
  font-size: 11px !important;
  color: #93c5fd !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em !important;
}

.sidebar-nav,
.pm-sidebar-nav {
  display: block !important;
}

.sidebar-nav a,
.pm-sidebar-nav a,
.sidebar a,
.pm-sidebar a {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  width: 100% !important;
  min-height: 43px !important;
  padding: 11px 13px !important;
  border-radius: 12px !important;
  margin: 0 0 7px 0 !important;
  color: #dbeafe !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  border: 1px solid transparent !important;
  transition: 0.18s ease-in-out !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}

.sidebar-nav a span,
.pm-sidebar-nav a span,
.sidebar a span,
.pm-sidebar a span {
  width: 22px !important;
  flex: 0 0 22px !important;
  text-align: center !important;
}

.sidebar-nav a:hover,
.pm-sidebar-nav a:hover,
.sidebar a:hover,
.pm-sidebar a:hover {
  background: rgba(37, 99, 235, 0.24) !important;
  border-color: rgba(147, 197, 253, 0.18) !important;
  color: #ffffff !important;
  transform: translateX(2px) !important;
}

.sidebar-nav a.active,
.pm-sidebar-nav a.active,
.sidebar a.active,
.pm-sidebar a.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.26) !important;
}

.main-content {
  margin-left: var(--sidebar-width, 285px) !important;
  width: calc(100% - var(--sidebar-width, 285px)) !important;
  min-height: 100vh !important;
  padding: 28px !important;
}

.page-header {
  background: linear-gradient(135deg, #0f172a 0%, #164e63 52%, #0e7490 100%) !important;
  border: 1px solid rgba(255, 255, 255, .10) !important;
  border-radius: 22px !important;
  padding: 26px !important;
  margin-bottom: 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  box-shadow: 0 14px 34px rgba(15,23,42,.18) !important;
  color: #ffffff !important;
}

.page-header h1 {
  margin: 0 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 32px !important;
  color: #ffffff !important;
  letter-spacing: -0.03em !important;
}

.page-header p {
  margin: 7px 0 0 !important;
  color: #dbeafe !important;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.metric {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.metric::after {
  content: "";
  position: absolute;
  right: -26px;
  top: -26px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.08);
}

.metric span {
  display: block;
  font-size: 12px;
  color: #64748b;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 31px;
  line-height: 1;
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #0f172a;
}

.card p {
  color: #64748b;
  line-height: 1.65;
  margin-top: 0;
}

.table-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.table-card table {
  width: 100%;
  border-collapse: collapse;
}

.table-card th,
.table-card td {
  padding: 15px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
  vertical-align: middle;
}

.table-card th {
  background: #f8fafc;
  color: #334155;
  font-weight: 900;
}

.table-card tr:last-child td {
  border-bottom: 0;
}

.table-card a {
  color: var(--blue);
  font-weight: 900;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 15px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
}

th {
  background: #f8fafc;
  color: #334155;
  font-weight: 900;
}

/* =========================
   LOGIN
========================= */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #1e40af 0, #020617 60%);
  padding: 20px;
}

.login-box {
  width: 100%;
  max-width: 470px;
  background: #fff;
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
}

.login-box img {
  width: 150px;
  display: block;
  margin: 0 auto 14px;
}

.login-box h1 {
  font-family: Georgia, "Times New Roman", serif;
  text-align: center;
  margin: 0 0 8px;
}

.login-box p {
  text-align: center;
  color: #64748b;
}

.form-group {
  margin-bottom: 15px;
}

/* =========================
   RESPONSIVO SITE PÚBLICO
========================= */

@media (max-width: 980px) {
  .mobile-menu-btn {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  body.menu-open .main-nav {
    display: flex;
  }

  .header-inner {
    position: relative;
  }

  .hero-inner,
  .dictionary-layout,
  .video-layout,
  .professor,
  .portal-layout,
  .register-layout,
  .dashboard-grid,
  .cards,
  .grid-2,
  .form-duo {
    grid-template-columns: 1fr !important;
  }

  .hero {
    padding: 54px 18px;
  }

  .hero-copy h1 {
    font-size: 36px;
  }

  .hero-logo-panel {
    margin: 0 auto;
  }

  .section {
    padding: 56px 18px;
  }

  .section-title h2,
  .split-title h2,
  .register-info h2 {
    font-size: 31px;
  }

  .split-title {
    display: grid;
    align-items: start;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }

  .admin-callout {
    display: grid;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand strong {
    font-size: 17px;
  }

  .brand span {
    font-size: 8px;
    letter-spacing: 2px;
  }

  .brand-logo {
    width: 46px;
  }

  .hero-copy h1 {
    font-size: 31px;
  }

  .hero-actions {
    display: grid;
  }

  .stat-clean {
    width: 100%;
    border-right: 0;
    margin-right: 0;
    margin-bottom: 12px;
  }

  .hero-logo-original {
    width: 210px;
  }

  .video-label {
    margin-bottom: 50px;
  }

  .lesson-item {
    display: grid;
  }
}

/* =========================
   RESPONSIVO PAINÉIS
========================= */

@media (min-width: 981px) {
  body {
    padding-top: 0 !important;
    overflow-x: hidden !important;
  }

  .sidebar-mobile-bar,
  .pm-mobile-topbar,
  .sidebar-overlay,
  .pm-sidebar-overlay,
  .sidebar-close-btn {
    display: none !important;
  }

  .app-shell {
    display: flex !important;
  }

  .sidebar,
  .pm-sidebar {
    transform: none !important;
    position: fixed !important;
  }

  .main-content {
    margin-left: var(--sidebar-width, 285px) !important;
    width: calc(100% - var(--sidebar-width, 285px)) !important;
    min-height: 100vh !important;
    padding: 28px !important;
  }
}

@media (min-width: 981px) and (max-width: 1180px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 980px) {
  html,
  body {
    overflow-x: hidden !important;
  }

  body {
    padding-top: 64px !important;
  }

  body.sidebar-open,
  body.pm-sidebar-opened {
    overflow: hidden !important;
  }

  .app-shell {
    display: block !important;
    width: 100% !important;
    min-height: 100vh !important;
  }

  .sidebar-mobile-bar,
  .pm-mobile-topbar {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 64px !important;
    z-index: 3000 !important;
    background: linear-gradient(135deg, #061634, #0a235c) !important;
    color: #ffffff !important;
    padding: 8px 12px !important;
    border-bottom: 1px solid rgba(147,197,253,.18) !important;
    box-shadow: 0 8px 22px rgba(15,23,42,.22) !important;
  }

  .sidebar-toggle-btn,
  .pm-sidebar-open {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #2563eb !important;
    color: #ffffff !important;
    font-size: 25px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    padding: 0 !important;
    cursor: pointer !important;
  }

  .sidebar-mobile-title,
  .pm-mobile-title {
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .sidebar-mobile-title strong,
  .pm-mobile-title strong {
    display: block !important;
    color: #ffffff !important;
    font-size: 15px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .sidebar-mobile-title span,
  .pm-mobile-title span {
    display: block !important;
    margin-top: 2px !important;
    color: #bfdbfe !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .sidebar,
  .pm-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 285px !important;
    max-width: 84vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    z-index: 4000 !important;
    padding: 18px 16px !important;
    background: linear-gradient(180deg, #061634 0%, #071b44 48%, #020817 100%) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    border-right: 1px solid rgba(147,197,253,.18) !important;
    border-bottom: 0 !important;
    transform: translateX(-110%) !important;
    transition: transform .25s ease-in-out !important;
    box-shadow: 18px 0 45px rgba(0,0,0,.34) !important;
  }

  body.sidebar-open .sidebar,
  body.pm-sidebar-opened .pm-sidebar {
    transform: translateX(0) !important;
  }

  .sidebar-overlay,
  .pm-sidebar-overlay {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(2,8,23,.62) !important;
    z-index: 3500 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: .22s ease-in-out !important;
  }

  body.sidebar-open .sidebar-overlay,
  body.pm-sidebar-opened .pm-sidebar-overlay {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .sidebar-brand,
  .pm-sidebar-brand {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 0 4px 18px !important;
    margin-bottom: 14px !important;
    border-bottom: 1px solid rgba(255,255,255,.12) !important;
  }

  .sidebar-brand img,
  .pm-sidebar-brand img {
    width: 58px !important;
    height: 54px !important;
    object-fit: contain !important;
    flex: 0 0 auto !important;
  }

  .sidebar-nav a,
  .pm-sidebar-nav a,
  .sidebar a,
  .pm-sidebar a {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 43px !important;
    padding: 11px 13px !important;
    margin: 0 0 7px 0 !important;
    border-radius: 12px !important;
    color: #dbeafe !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    border: 1px solid transparent !important;
    white-space: nowrap !important;
    text-decoration: none !important;
  }

  .sidebar-nav a:hover,
  .pm-sidebar-nav a:hover,
  .sidebar a:hover,
  .pm-sidebar a:hover {
    background: rgba(37,99,235,.24) !important;
    color: #ffffff !important;
    transform: none !important;
  }

  .sidebar-nav a.active,
  .pm-sidebar-nav a.active,
  .sidebar a.active,
  .pm-sidebar a.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #ffffff !important;
    border-color: rgba(255,255,255,.16) !important;
  }

  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    min-height: calc(100vh - 64px) !important;
    padding: 16px !important;
  }

  .page-header {
    display: grid !important;
    align-items: start !important;
    padding: 20px !important;
  }

  .page-header h1 {
    font-size: 28px !important;
    line-height: 1.15 !important;
  }

  .dashboard-grid,
  .cards {
    grid-template-columns: 1fr !important;
  }

  .table-card {
    overflow-x: auto !important;
  }

  .table-card table {
    min-width: 720px !important;
  }
}