@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ==========================================================================
   SÍNTESE MED - DESIGN SYSTEM & HIGH-TECH MEDICAL UI
   Inspired by Medcof, Medway, Estratégia MED, Apple Health & Next-gen Dashboards
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-dark: #070B14;
  --bg-surface: #0C1222;
  --bg-card: #111A30;
  --bg-card-hover: #162240;
  --bg-card-active: #1D2C52;
  --bg-glass: rgba(17, 26, 48, 0.72);
  --bg-glass-strong: rgba(12, 18, 34, 0.92);

  /* Primary Brand Gradients */
  --primary: #94B9FF;
  --primary-glow: rgba(148, 185, 255, 0.4);
  --secondary: #E894FF;
  --accent-cyan: #94B9FF;
  --accent-blue: #3B82F6;
  --accent-pink: #E894FF;
  --accent-emerald: #10B981;
  --accent-amber: #F59E0B;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #94B9FF 0%, #BAA6FF 50%, #E894FF 100%);
  --grad-cyan-blue: linear-gradient(135deg, #94B9FF 0%, #3B82F6 100%);
  --grad-pink-purple: linear-gradient(135deg, #E894FF 0%, #BAA6FF 100%);
  --grad-dark: linear-gradient(180deg, rgba(16, 24, 46, 0.8) 0%, rgba(9, 13, 24, 0.95) 100%);
  --grad-glow: radial-gradient(circle at 50% 30%, rgba(148, 185, 255, 0.25) 0%, rgba(232, 148, 255, 0.15) 50%, transparent 70%);

  /* Borders & Shadows */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(139, 92, 246, 0.4);
  --border-glow: rgba(99, 102, 241, 0.5);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.35);

  /* Typography Colors */
  --text-main: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-dim: #475569;

  /* Layout */
  --sidebar-w: 260px;
  --header-h: 72px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #090E1B;
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-cyan {
  background: var(--grad-cyan-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Glassmorphic Components */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Glow Elements */
.glow-spot-primary {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.glow-spot-cyan {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.925rem;
  font-weight: 600;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.55);
  filter: brightness(1.08);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #F8FAFC;
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
}

.btn-cyan {
  background: var(--grad-cyan-blue);
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(6, 182, 212, 0.35);
}

.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.5);
}

.btn-xs {
  padding: 0.25rem 0.55rem;
  font-size: 0.725rem;
  border-radius: var(--radius-sm);
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.825rem;
}

.btn-lg {
  padding: 0.85rem 1.85rem;
  font-size: 1.05rem;
}

/* Pill Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.badge-primary {
  background: rgba(99, 102, 241, 0.15);
  color: #A5B4FC;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #67E8F9;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #6EE7B7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #FCD34D;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Inputs */
.input-field {
  width: 100%;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.65rem 1.25rem;
  color: #FFFFFF;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.input-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
  background: rgba(15, 23, 42, 0.95);
}

.input-field::placeholder {
  color: var(--text-muted);
}

/* Progress Bar */
.progress-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: var(--grad-primary);
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar-cyan {
  background: var(--grad-cyan-blue);
}

/* ==========================================================================
   LANDING PAGE LAYOUT & SECTIONS
   ========================================================================== */

.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.landing-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.landing-brand img {
  height: 48px;
  max-height: 52px;
  width: auto;
  object-fit: contain;
}

.btn-seja-membro {
  border-radius: 15px !important;
  background: var(--grad-primary) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 18px rgba(148, 185, 255, 0.4) !important;
  padding: 0.6rem 1.4rem !important;
  border: none !important;
}

.btn-seja-membro:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232, 148, 255, 0.5) !important;
  filter: brightness(1.08);
}

.landing-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.landing-links a {
  color: var(--text-secondary);
  font-size: 0.925rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

.landing-links a:hover, .landing-links a.active {
  color: #FFFFFF;
}

.landing-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.hero-section {
  position: relative;
  padding-top: calc(var(--header-h) + 3.5rem);
  padding-bottom: 5.5rem;
  overflow: hidden;
  background-image: linear-gradient(90deg, rgba(7, 11, 20, 0.98) 0%, rgba(7, 11, 20, 0.88) 38%, rgba(7, 11, 20, 0.35) 72%, rgba(7, 11, 20, 0.95) 100%), url('../img/bg-landing-hero.png');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #A5B4FC;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 540px;
  line-height: 1.6;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2.25rem;
}

.hero-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  color: #E2E8F0;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual-card {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0D1426;
}

.hero-visual-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-visual-card:hover img {
  transform: scale(1.02);
}

.hero-floating-quote {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(12, 18, 34, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-style: italic;
  font-size: 0.85rem;
  color: #E0E7FF;
  box-shadow: var(--shadow-md);
}

/* Cycles Showcase */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-light {
  background: #F8FAFC !important;
  color: #0F172A !important;
}

.section-light .section-eyebrow {
  color: #7C3AED;
}

.section-light .section-title {
  color: #0F172A;
}

.section-light .section-subtitle {
  color: #64748B;
}

.section-light .feature-strip {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.section-light .feature-strip-item {
  color: #334155;
}

.section-light .pricing-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.section-light .pricing-card h3 {
  color: #0F172A;
}

.section-light .pricing-card .pricing-amount {
  color: #0F172A;
}

.section-light .pricing-card.featured {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border-color: #94B9FF;
  box-shadow: 0 8px 30px rgba(148, 185, 255, 0.25);
}

.section-light .pricing-feature-item {
  color: #475569;
}

.section-light .glass-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.section-light .glass-card:hover {
  background: #FFFFFF;
  border-color: #94B9FF;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-header.text-left {
  text-align: left;
  margin: 0 0 2.5rem;
}

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary);
  margin-bottom: 0.6rem;
  display: block;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* 3 Cycles Cards Grid */
.cycles-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 1180px;
  margin: 0 auto;
}

/* Landing AI Grid (Desktop) */
.landing-ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

/* Landing Footer Grid (Desktop) */
.landing-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.cycle-card {
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 3.25rem 3rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  background-size: contain !important;
  background-position: right center !important;
  background-repeat: no-repeat !important;
  min-height: 420px;
}

.cycle-card.card-bg-basico {
  background-image: url('../img/card-ciclo-basico.png') !important;
}

.cycle-card.card-bg-clinico {
  background-image: url('../img/card-ciclo-clinico.png') !important;
}

.cycle-card.card-bg-cirurgico {
  background-image: url('../img/card-ciclo-cirurgico.png') !important;
}

.cycle-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.cycle-card:hover {
  transform: translateY(-4px);
  border-color: #94B9FF;
  box-shadow: 0 16px 40px rgba(148, 185, 255, 0.22);
}

.cycle-card:hover::before {
  opacity: 1;
}

.cycle-card-content {
  position: relative;
  z-index: 2;
  max-width: 54%;
}

.cycle-card-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  color: #0F172A;
  line-height: 1.25;
}

.cycle-card-desc {
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.cycle-card-highlights {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.cycle-highlight-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #1E293B;
  font-weight: 600;
  font-size: 0.925rem;
}

.cycle-card-footer {
  position: relative;
  z-index: 2;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Feature Strip Bar */
.feature-strip {
  margin-top: 3.5rem;
  padding: 1.25rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.feature-strip-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #E2E8F0;
}

.feature-strip-item i {
  color: var(--accent-cyan);
  font-size: 1.1rem;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: center;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  transition: var(--transition);
}

.pricing-card.featured {
  background: linear-gradient(180deg, #16203D 0%, #111A30 100%);
  border-color: var(--primary);
  box-shadow: 0 0 35px rgba(99, 102, 241, 0.3);
  transform: scale(1.04);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-primary);
  color: #FFFFFF;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.5);
}

.pricing-price {
  margin: 1.5rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.pricing-amount {
  font-size: 3rem;
  font-weight: 800;
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
}

.pricing-period {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pricing-features {
  list-style: none;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-feature-item i {
  color: var(--accent-emerald);
  font-size: 0.95rem;
}

/* ==========================================================================
   STUDENT PLATFORM / WEB APP DASHBOARD LAYOUT (app.html)
   ========================================================================== */

.app-wrapper {
  display: flex;
  min-height: 100vh;
  background-color: #070B14;
}

/* Sidebar */
.app-sidebar {
  width: var(--sidebar-w);
  background: #0B1120;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease;
}

.sidebar-header {
  padding: 1.25rem 1rem 1.25rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.sidebar-brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 1;
  overflow: hidden;
}

.sidebar-brand-img.brand-full,
.sidebar-brand-img.brand-light {
  width: 205px;
  max-width: 100%;
  height: auto;
  max-height: 54px;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
}

.sidebar-brand-img.brand-collapsed {
  display: none;
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin: 0 auto;
  transition: opacity 0.2s ease;
}

.sidebar-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
  background: var(--bg-card-hover);
  color: #FFFFFF;
  border-color: var(--primary);
}

/* Collapsed Sidebar */
.app-sidebar.collapsed {
  width: 82px;
}

.app-wrapper.sidebar-collapsed .app-main {
  margin-left: 82px;
}

.app-sidebar.collapsed .sidebar-header {
  padding: 1.25rem 0.5rem;
  flex-direction: column;
  gap: 0.75rem;
}

.app-sidebar.collapsed .sidebar-brand-img.brand-full {
  display: none;
}

.app-sidebar.collapsed .sidebar-brand-img.brand-collapsed {
  display: block;
}

.app-sidebar.collapsed .sidebar-section-title {
  display: none;
}

.app-sidebar.collapsed .sidebar-nav-item span,
.app-sidebar.collapsed .sidebar-nav-item .badge,
.app-sidebar.collapsed .sidebar-nav-item [class*="badge"],
.app-sidebar.collapsed .badge,
.app-sidebar.collapsed #sidebar-trilhas-badge,
.app-sidebar.collapsed #sidebar-questoes-badge,
.app-sidebar.collapsed .sidebar-nav-item-left span,
.app-sidebar.collapsed .sidebar-nav-item .fa-chevron-right,
.app-wrapper.sidebar-collapsed .app-sidebar .sidebar-nav-item span,
.app-wrapper.sidebar-collapsed .app-sidebar .sidebar-nav-item .badge,
.app-wrapper.sidebar-collapsed .app-sidebar .sidebar-nav-item [class*="badge"],
.app-wrapper.sidebar-collapsed .app-sidebar .badge,
.app-wrapper.sidebar-collapsed .app-sidebar #sidebar-trilhas-badge,
.app-wrapper.sidebar-collapsed .app-sidebar #sidebar-questoes-badge,
.app-wrapper.sidebar-collapsed .app-sidebar .sidebar-nav-item-left span {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.app-sidebar.collapsed .sidebar-nav-item,
.app-wrapper.sidebar-collapsed .app-sidebar .sidebar-nav-item {
  justify-content: center !important;
  padding: 0.85rem 0.5rem !important;
  border-radius: var(--radius-md) !important;
  width: 100% !important;
}

.app-sidebar.collapsed .sidebar-nav-item-left,
.app-wrapper.sidebar-collapsed .app-sidebar .sidebar-nav-item-left {
  justify-content: center !important;
  margin: 0 !important;
  gap: 0 !important;
  width: auto !important;
}

.app-sidebar.collapsed .sidebar-nav-item i,
.app-wrapper.sidebar-collapsed .app-sidebar .sidebar-nav-item i {
  font-size: 1.35rem !important; /* Ícones maiores quando retraído! */
  margin: 0 auto !important;
  width: auto !important;
  display: block !important;
  text-align: center !important;
}

.app-sidebar.collapsed .sidebar-ai-helper-card {
  display: none;
}

.sidebar-nav-section {
  padding: 1.25rem 1rem 0.5rem;
}

.sidebar-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 0 0.75rem 0.5rem;
  white-space: nowrap;
}

.sidebar-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.885rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.sidebar-nav-item-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-nav-item i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.sidebar-nav-item:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-nav-item:hover i {
  color: var(--primary);
}

.sidebar-nav-item.active {
  color: #FFFFFF;
  background: var(--grad-primary);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
  font-weight: 600;
}

.sidebar-nav-item.active i {
  color: #FFFFFF;
}

.sidebar-ai-helper-card {
  margin: auto 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.08) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-ai-helper-card:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.15) 100%);
  border-color: var(--primary);
}

.sidebar-ai-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1.25rem;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
  flex-shrink: 0;
}

/* Main Content Area */
.app-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  background-color: var(--bg-dark);
  transition: background-color 0.3s ease, margin-left 0.3s ease;
}

/* App Header Bar */
.app-header {
  height: var(--header-h);
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
}

.app-search-wrapper {
  position: relative;
  width: 420px;
  max-width: 100%;
}

.app-search-wrapper i {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.app-search-input {
  width: 100%;
  background: #111A30;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.6rem 1.25rem 0.6rem 2.6rem;
  color: #FFFFFF;
  font-size: 0.885rem;
  outline: none;
  transition: var(--transition);
}

.app-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
  background: #152240;
}

.app-header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.app-header-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.app-header-icon-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.app-header-icon-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-pink);
  box-shadow: 0 0 8px var(--accent-pink);
}

.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition);
}

.user-profile-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.user-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFFFFF;
}

.user-role {
  font-size: 0.725rem;
  color: var(--text-muted);
}

/* Dashboard Body Container */
.dashboard-content {
  flex: 1;
  padding: 2rem;
  max-width: 1540px;
  width: 100%;
  margin: 0 auto;
}

/* Welcome Banner */
.welcome-banner {
  background: linear-gradient(135deg, rgba(17, 26, 48, 0.95) 0%, rgba(22, 34, 64, 0.85) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.welcome-banner::after {
  content: '';
  position: absolute;
  right: -50px;
  top: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.welcome-title {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.welcome-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.welcome-quote {
  max-width: 380px;
  text-align: right;
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #C7D2FE;
  text-transform: uppercase;
  border-left: 2px solid var(--secondary);
  padding-left: 1rem;
}

/* KPI Cards Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
}

.kpi-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.kpi-label {
  font-size: 0.825rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.kpi-icon {
  font-size: 1.2rem;
  color: var(--primary);
}

.kpi-value-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.kpi-value {
  font-size: 1.85rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: #FFFFFF;
}

.kpi-footer {
  font-size: 0.775rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Main Dashboard Two Column Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.75rem;
}

.dashboard-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.dashboard-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Continue Estudando Featured Card */
.featured-lesson-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  align-items: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.featured-lesson-card:hover {
  border-color: var(--border-active);
  box-shadow: var(--shadow-md);
}

.featured-lesson-thumb {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 155px;
  background: #090E1B;
}

.featured-lesson-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-overlay-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.9);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.7);
  transition: var(--transition);
}

.featured-lesson-thumb:hover .play-overlay-btn {
  transform: translate(-50%, -50%) scale(1.12);
  background: var(--primary);
}

.featured-lesson-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.featured-breadcrumb {
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.featured-lesson-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
}

.featured-lesson-meta {
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* Study Plan Card */
.study-plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.study-plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.study-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.study-check-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.study-check-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.study-check-item.done {
  opacity: 0.65;
  text-decoration: line-through;
}

.custom-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.study-check-item.done .custom-checkbox {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
  color: #FFFFFF;
}

/* Disciplinas Mini Grid */
.disciplinas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.disciplina-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.disciplina-item-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.disciplina-item-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.disciplina-item-thumb {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.disciplina-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
}

.disciplina-item-progress-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* Dr. Síntese AI Widget */
.ai-widget-card {
  background: linear-gradient(180deg, #131E3D 0%, #0F172A 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(99, 102, 241, 0.2);
  position: relative;
}

.ai-widget-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.ai-widget-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.6);
}

.ai-widget-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.725rem;
  color: var(--accent-emerald);
  font-weight: 600;
}

.ai-widget-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 6px var(--accent-emerald);
}

.ai-widget-input-wrapper {
  position: relative;
}

.ai-widget-input {
  width: 100%;
  background: rgba(10, 15, 29, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 2.8rem 0.75rem 1rem;
  color: #FFFFFF;
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition);
}

.ai-widget-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.ai-widget-send-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--grad-primary);
  border: none;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  transition: var(--transition);
}

.ai-widget-send-btn:hover {
  transform: translateY(-50%) scale(1.1);
}

.ai-chips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.ai-chip-btn {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-main) !important;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.ai-chip-btn i {
  color: var(--primary) !important;
  font-size: 0.95rem;
}

.ai-chip-btn:hover {
  background: rgba(148, 185, 255, 0.12);
  border-color: var(--primary);
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

/* Upcoming Events Timeline */
.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  position: relative;
  margin-top: 1rem;
}

.timeline-list::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  margin-top: 6px;
  margin-left: 13px;
  z-index: 1;
}

.timeline-content {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  transition: var(--transition);
}

.timeline-content:hover {
  background: rgba(255, 255, 255, 0.06);
}

.timeline-date {
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
}

.timeline-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0.15rem 0;
}

.timeline-desc {
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* ==========================================================================
   MODALS, PDF VIEWER & INTERACTIVE MODULES
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 15, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #0E1629;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-backdrop.open .modal-content {
  transform: scale(1);
}

.modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close-btn:hover {
  color: #FFFFFF;
}

.modal-body {
  padding: 1.75rem;
  overflow-y: auto;
}

/* Fullscreen PDF Reader Modal */
.modal-content-pdf {
  max-width: 1200px;
  height: 88vh;
}

.pdf-viewer-frame {
  width: 100%;
  height: 100%;
  border: none;
  background: #1E293B;
  border-radius: var(--radius-md);
}

/* Responsive Utilities */
@media (max-width: 1100px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-eyebrow, .hero-pills, .hero-actions {
    justify-content: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .cycles-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* iPad Portrait Header Fixes (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .landing-nav-inner {
    padding: 0.6rem 1rem !important;
    gap: 0.75rem !important;
  }
  .landing-brand img {
    height: 30px !important;
    max-width: 130px !important;
  }
  .landing-links {
    gap: 0.85rem !important;
  }
  .landing-links a {
    font-size: 0.825rem !important;
  }
  .landing-nav-inner .landing-header-cta {
    display: none !important;
  }
  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1rem !important;
  }
  .pricing-card {
    padding: 1.5rem 1rem !important;
    min-height: 520px !important;
  }
}

@media (max-width: 768px) {
  /* ========================================================================= */
  /* LANDING PAGE MOBILE FIXES (Proporções Cirúrgicas, Sem Colunas Quebradas)   */
  /* ========================================================================= */

  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  .glow-spot-primary,
  .glow-spot-cyan {
    display: none !important;
  }

  /* 1. Header / Navbar Mobile */
  .landing-nav {
    padding: 0 !important;
  }
  .landing-nav-inner {
    padding: 0.85rem 1.25rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .landing-brand img {
    height: 38px !important;
    max-height: 38px !important;
    width: auto !important;
    max-width: 170px !important;
    object-fit: contain;
  }
  .landing-links {
    display: none !important;
  }
  .landing-nav-inner .btn-ghost {
    font-size: 0.95rem !important;
    padding: 0.5rem 0.95rem !important;
  }
  .landing-nav-inner .btn-seja-membro,
  .landing-nav-inner .landing-header-cta {
    display: none !important;
  }

  /* 2. Hero Section */
  .hero-section {
    padding-top: calc(var(--header-h) + 1.25rem) !important;
    padding-bottom: 2.25rem !important;
    background-image: linear-gradient(180deg, rgba(7, 11, 20, 0.94) 0%, rgba(7, 11, 20, 0.98) 100%), url('../img/bg-landing-hero.png') !important;
    background-size: cover !important;
    background-position: center top !important;
    width: 100% !important;
  }
  .hero-container {
    display: block !important;
    padding: 0 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: left !important;
  }
  .hero-eyebrow {
    font-size: 0.725rem !important;
    padding: 0.3rem 0.7rem !important;
    margin-bottom: 0.75rem !important;
    display: inline-flex !important;
  }
  .hero-title {
    font-size: 1.75rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0.75rem !important;
    letter-spacing: -0.5px !important;
  }
  .hero-desc {
    font-size: 0.885rem !important;
    line-height: 1.55 !important;
    margin-bottom: 1.25rem !important;
    max-width: 100% !important;
  }
  .hero-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 0.4rem !important;
    margin-bottom: 1.35rem !important;
  }
  .hero-pill-item {
    font-size: 0.725rem !important;
    padding: 0.35rem 0.65rem !important;
  }
  .hero-actions {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.65rem !important;
  }
  .hero-actions .btn {
    width: 100% !important;
    justify-content: center !important;
    font-size: 0.925rem !important;
    padding: 0.75rem 1rem !important;
    border-radius: 12px !important;
  }
  .hero-visual {
    display: none !important;
  }

  /* 3. Seções Gerais */
  .section {
    padding: 2.5rem 0 !important;
    width: 100% !important;
    overflow-x: hidden !important;
  }
  .section-container {
    padding: 0 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .section-header {
    margin-bottom: 1.5rem !important;
    text-align: left !important;
    width: 100% !important;
  }
  .section-eyebrow {
    font-size: 0.725rem !important;
    margin-bottom: 0.35rem !important;
    display: inline-block !important;
  }
  .section-title {
    font-size: 1.4rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.5rem !important;
    letter-spacing: -0.4px !important;
    text-align: left !important;
  }
  .section-subtitle {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    max-width: 100% !important;
    text-align: left !important;
  }

  /* 4. Ciclos de Ensino (Corrige colunas e imagens clashing) */
  .cycles-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    width: 100% !important;
  }
  .cycle-card,
  .cycle-card.card-bg-basico,
  .cycle-card.card-bg-clinico,
  .cycle-card.card-bg-cirurgico {
    padding: 1.35rem 1.15rem !important;
    min-height: auto !important;
    border-radius: 16px !important;
    background-image: none !important;
    background-color: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .cycle-card-content {
    max-width: 100% !important;
    width: 100% !important;
  }
  .cycle-card-title {
    font-size: 1.25rem !important;
    margin-bottom: 0.45rem !important;
    line-height: 1.25 !important;
  }
  .cycle-card-desc {
    font-size: 0.835rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1rem !important;
    color: #475569 !important;
  }
  .cycle-card-highlights {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.4rem !important;
    margin-bottom: 1.15rem !important;
  }
  .cycle-highlight-item {
    font-size: 0.8rem !important;
    gap: 0.5rem !important;
  }
  .cycle-card-footer {
    width: 100% !important;
    margin-top: 0.25rem !important;
  }
  .cycle-card-footer a.btn {
    width: 100% !important;
    justify-content: center !important;
    font-size: 0.875rem !important;
    padding: 0.75rem 1rem !important;
    border-radius: 10px !important;
  }

  /* 5. Feature Strip Bar */
  .feature-strip {
    margin-top: 1.75rem !important;
    padding: 1rem 1.15rem !important;
    border-radius: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.65rem !important;
    width: 100% !important;
  }
  .feature-strip-item {
    font-size: 0.825rem !important;
    gap: 0.55rem !important;
  }

  /* 6. Seção Dr. Síntese IA */
  .landing-ai-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.75rem !important;
    width: 100% !important;
  }
  #dr-sintese .btn {
    width: 100% !important;
    justify-content: center !important;
    font-size: 0.9rem !important;
    padding: 0.75rem 1rem !important;
    border-radius: 12px !important;
  }
  .ai-widget-card {
    padding: 1.15rem 1rem !important;
    border-radius: 14px !important;
    width: 100% !important;
  }
  .ai-widget-header {
    gap: 0.65rem !important;
    margin-bottom: 0.85rem !important;
  }
  .ai-widget-avatar {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.95rem !important;
  }
  .ai-chips-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.45rem !important;
    margin-top: 0.85rem !important;
    width: 100% !important;
  }
  .ai-chip-btn {
    font-size: 0.725rem !important;
    padding: 0.45rem 0.4rem !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 0.35rem !important;
    white-space: normal !important;
    height: auto !important;
  }

  /* 7. Questões */
  #questoes .btn {
    width: 100% !important;
    justify-content: center !important;
    font-size: 0.9rem !important;
    padding: 0.75rem 1rem !important;
    border-radius: 12px !important;
  }

  /* 8. Planos & Preços */
  #planos .section-header {
    text-align: center !important;
  }
  #planos .section-title,
  #planos .section-subtitle {
    text-align: center !important;
  }
  .pricing-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 1.15rem !important;
    width: 100% !important;
    padding: 1rem 0.5rem 1.5rem 0.5rem !important;
    box-sizing: border-box !important;
  }
  .pricing-card,
  .pricing-card.featured {
    flex: 0 0 84% !important;
    min-width: 280px !important;
    max-width: 320px !important;
    scroll-snap-align: center !important;
    min-height: 520px !important;
    background: #0E1629 !important;
    border: 1px solid rgba(148, 185, 255, 0.25) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
    border-radius: 20px !important;
    padding: 1.75rem 1.25rem !important;
    transform: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
  }
  .pricing-card.featured {
    transform: none !important;
    margin: 0 !important;
    background: #111A30 !important;
    border: 2px solid #38BDF8 !important;
    box-shadow: 0 14px 40px rgba(56, 189, 248, 0.25) !important;
  }
  .pricing-badge {
    top: -10px !important;
    font-size: 0.7rem !important;
    padding: 0.25rem 0.75rem !important;
  }
  .pricing-card h3 {
    font-size: 1.35rem !important;
    color: #FFFFFF !important;
    margin-bottom: 0.4rem !important;
  }
  .pricing-card p {
    font-size: 0.825rem !important;
    color: #94A3B8 !important;
    line-height: 1.4 !important;
  }
  .pricing-price {
    margin: 1rem 0 !important;
  }
  .pricing-amount {
    font-size: 2.15rem !important;
  }
  .pricing-period {
    font-size: 0.85rem !important;
    color: #94A3B8 !important;
  }
  .pricing-features {
    margin: 1rem 0 !important;
    gap: 0.45rem !important;
  }
  .pricing-feature-item {
    font-size: 0.825rem !important;
    color: #CBD5E1 !important;
    line-height: 1.4 !important;
  }
  .landing-quiz-cta-btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1rem 1.25rem !important;
    font-size: 0.95rem !important;
    box-sizing: border-box !important;
    word-break: normal !important;
    white-space: normal !important;
    text-align: center !important;
  }
  .billing-toggle-container {
    margin-top: 1.25rem !important;
    padding: 0.25rem !important;
  }
  .billing-toggle-container .btn {
    font-size: 0.775rem !important;
    padding: 0.35rem 0.75rem !important;
  }

  /* 9. Footer */
  .landing-footer-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.75rem !important;
    text-align: left !important;
    margin-bottom: 2rem !important;
    width: 100% !important;
  }
  footer {
    padding: 3rem 0 1.5rem !important;
  }
  footer div[style*="justify-content: space-between"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.55rem !important;
  }
  .section-title {
    font-size: 1.3rem !important;
  }
  .ai-chips-grid {
    grid-template-columns: 1fr !important;
  }
  .landing-nav-inner {
    padding: 0.5rem 0.75rem !important;
  }
  .landing-brand img {
    height: 25px !important;
    max-width: 110px !important;
  }
  .btn-seja-membro {
    padding: 0.35rem 0.6rem !important;
    font-size: 0.725rem !important;
  }
}

/* ==========================================================================
   STUDENT PLATFORM MOBILE FIXES (Apenas em telas <= 768px)
   Garante menu lateral no PC/Tablet e menu rodapé fixo no Celular
   ========================================================================== */
/* Global anti-overflow safety */
html, body, .app-wrapper, .app-main {
  max-width: 100vw;
  overflow-x: hidden;
}
.classroom-container {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Telas Desktop e Tablet (>= 768px): Menu lateral SEMPRE visível e rodapé oculto */
@media (min-width: 768px) {
  .app-sidebar {
    display: flex !important;
    visibility: visible !important;
  }
  .mobile-bottom-bar {
    display: none !important;
  }
}

/* Telas de Celular (<= 767px): Menu lateral oculto e rodapé fixo */
@media (max-width: 767px) {
  /* 1. Menu lateral oculto apenas no celular (no PC e Tablet permanece visível) */
  .app-sidebar {
    display: none !important;
  }
  .sidebar-backdrop {
    display: none !important;
  }
  .mobile-menu-btn {
    display: none !important;
  }
  .app-main {
    margin-left: 0 !important;
    padding-bottom: 85px !important; /* Espaço para o menu rodapé */
    background-attachment: scroll;
    background-size: cover;
  }
  .app-header {
    padding: 0 1rem;
  }
  .app-search-wrapper {
    display: none;
  }
  .dashboard-content {
    padding: 0.85rem !important;
  }
  .welcome-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.15rem !important;
  }
  .welcome-title {
    font-size: 1.35rem !important;
  }
  .welcome-quote {
    text-align: left;
    border-left: 2px solid var(--secondary);
    padding-left: 0.75rem;
    font-size: 0.75rem;
  }
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem !important;
  }
  .kpi-card {
    padding: 0.85rem !important;
  }
  .kpi-value {
    font-size: 1.35rem !important;
  }
  .kpi-label {
    font-size: 0.72rem !important;
  }
  .featured-lesson-card {
    grid-template-columns: 1fr;
    padding: 0.85rem !important;
  }
  .featured-lesson-thumb {
    height: 160px;
  }
  .featured-lesson-title {
    font-size: 1.05rem !important;
  }
  .disciplinas-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* 2. Menu Rodapé Móvel (Sempre visível no celular, fixo na base) */
  .mobile-bottom-bar {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 64px !important;
    background: rgba(11, 17, 32, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid var(--border-subtle) !important;
    z-index: 9999 !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 0 0.5rem !important;
  }

  /* 3. Ajustes de Sala de Aula / Aula no Celular */
  .classroom-container {
    padding-bottom: 5.5rem !important;
  }
  .classroom-top-bar {
    padding: 0.65rem 0.75rem !important;
    gap: 0.6rem !important;
    border-radius: 12px !important;
    margin-bottom: 0.85rem !important;
  }
  .classroom-breadcrumb-wrap {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.4rem !important;
  }
  .classroom-back-btn {
    padding: 0.35rem 0.65rem !important;
    font-size: 0.775rem !important;
  }
  .classroom-breadcrumb {
    font-size: 0.75rem !important;
    gap: 0.35rem !important;
  }
  .classroom-breadcrumb .breadcrumb-module {
    display: none !important;
  }
  .classroom-breadcrumb .breadcrumb-current {
    max-width: 160px !important;
    font-size: 0.75rem !important;
  }
  .classroom-top-actions {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.25rem !important;
    box-sizing: border-box !important;
  }
  .classroom-top-actions .classroom-nav-btn {
    flex: 1 !important;
    min-width: 0 !important;
    padding: 0.35rem 0.25rem !important;
    font-size: 0.7rem !important;
    justify-content: center !important;
    white-space: nowrap !important;
    border-radius: 8px !important;
  }
  .classroom-top-actions .classroom-complete-btn {
    flex: 1.1 !important;
    min-width: 0 !important;
    padding: 0.35rem 0.25rem !important;
    font-size: 0.7rem !important;
    justify-content: center !important;
    white-space: nowrap !important;
    border-radius: 8px !important;
  }
  .classroom-top-actions .btn-fav-star {
    padding: 0.35rem 0.45rem !important;
    flex-shrink: 0 !important;
  }
  .desk-only-text {
    display: none !important;
  }

  /* Player & Placeholder */
  .classroom-video-wrapper {
    margin-bottom: 0.65rem !important;
    border-radius: 12px !important;
  }
  .classroom-player-placeholder {
    padding: 0.65rem 0.75rem !important;
  }
  .classroom-play-trigger-btn {
    width: 48px !important;
    height: 48px !important;
    font-size: 1.15rem !important;
    margin-bottom: 0.35rem !important;
  }
  .classroom-player-title {
    font-size: 0.925rem !important;
    margin-bottom: 0.2rem !important;
  }
  .classroom-player-sub {
    font-size: 0.7rem !important;
  }
  .classroom-player-controls-bar {
    padding: 0.35rem 0.5rem !important;
    gap: 0.35rem !important;
  }
  .classroom-time-display {
    font-size: 0.65rem !important;
  }

  /* Quick video footer nav */
  .classroom-video-footer-nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.45rem 0.6rem !important;
    margin-bottom: 0.85rem !important;
    gap: 0.25rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .classroom-video-footer-nav button {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: 38% !important;
    font-size: 0.7rem !important;
    padding: 0.35rem 0.4rem !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  .classroom-progress-pill {
    font-size: 0.7rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  /* Lesson info card */
  .classroom-overview-card {
    padding: 0.85rem 1rem !important;
    border-radius: 12px !important;
    margin-bottom: 0.85rem !important;
  }
  .classroom-overview-title {
    font-size: 1.15rem !important;
    margin-bottom: 0.35rem !important;
  }
  .classroom-overview-meta {
    font-size: 0.725rem !important;
    gap: 0.35rem !important;
    margin-bottom: 0.5rem !important;
    flex-wrap: wrap !important;
  }
  .classroom-overview-desc {
    font-size: 0.8rem !important;
    line-height: 1.5 !important;
  }

  /* Bloco de fixação cards (Exercícios e Flashcards) */
  .classroom-block-card {
    padding: 0.85rem 1rem !important;
    border-radius: 14px !important;
  }
  .classroom-block-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }
  .classroom-block-info {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.65rem !important;
    width: 100% !important;
  }
  .classroom-block-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.95rem !important;
    flex-shrink: 0 !important;
  }
  .classroom-block-badges {
    gap: 0.35rem !important;
    margin-bottom: 0.2rem !important;
  }
  .classroom-block-badges .badge {
    font-size: 0.68rem !important;
    padding: 0.2rem 0.5rem !important;
  }
  .classroom-block-title {
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
  }
  .classroom-block-desc {
    font-size: 0.75rem !important;
    line-height: 1.4 !important;
  }
  .classroom-block-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 0.5rem !important;
    padding-top: 0.5rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  .classroom-block-count-badge {
    font-size: 0.72rem !important;
    padding: 0.25rem 0.6rem !important;
  }
  .classroom-block-action-btn {
    flex: 1 !important;
    justify-content: center !important;
    font-size: 0.8rem !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 10px !important;
  }

  /* Abas da aula (Scroll horizontal nativo) */
  .classroom-tab-nav {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 0.35rem !important;
    padding-bottom: 0.35rem !important;
    scrollbar-width: none !important;
  }
  .classroom-tab-nav::-webkit-scrollbar {
    display: none !important;
  }
  .classroom-tab-btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    font-size: 0.775rem !important;
    padding: 0.45rem 0.75rem !important;
  }

  /* PDF Preview Box */
  .classroom-pdf-preview-box {
    height: 360px !important;
    border-radius: 12px !important;
  }
  .pdf-viewer-drm-overlay .drm-overlay-line-1 {
    font-size: 0.75rem !important;
  }
  .pdf-viewer-drm-overlay .drm-overlay-line-2 {
    font-size: 0.68rem !important;
  }
  .pdf-viewer-drm-overlay .drm-overlay-line-3 {
    font-size: 0.65rem !important;
  }

  /* 4. CARDS DE RESULTADO DOS EXERCÍCIOS E SIMULADOS (Fixação Mobile) */
  .quiz-result-card,
  #view-questoes .glass-card {
    padding: 1.25rem 1rem !important;
    border-radius: 16px !important;
    margin-bottom: 1.25rem !important;
  }
  .quiz-result-header-title {
    font-size: 1.35rem !important;
    line-height: 1.25 !important;
  }
  .quiz-result-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5rem !important;
    margin-bottom: 1.25rem !important;
  }
  .quiz-result-stat-box {
    padding: 0.65rem 0.35rem !important;
    border-radius: 10px !important;
    text-align: center !important;
  }
  .quiz-result-stat-number {
    font-size: 1.3rem !important;
    font-weight: 800 !important;
  }
  .quiz-result-stat-label {
    font-size: 0.68rem !important;
  }
  .quiz-result-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.65rem !important;
    width: 100% !important;
  }
  .quiz-result-actions .btn {
    width: 100% !important;
    justify-content: center !important;
    font-size: 0.875rem !important;
    padding: 0.65rem 1rem !important;
    border-radius: 10px !important;
  }
}

/* Mobile Bottom Navigation Bar Base (Oculta por padrão em telas grandes) */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(11, 17, 32, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  z-index: 100;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.5rem;
}

.mobile-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 0.675rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-bar-item i {
  font-size: 1.15rem;
}

.mobile-bar-item.active, .mobile-bar-item:hover {
  color: var(--secondary);
}

.mobile-bar-center-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1.25rem;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.6);
  margin-top: -16px;
  border: 2px solid #0B1120;
}

/* ==========================================================================
   MOBILE TOP HEADER & DEDICATED DASHBOARD (Exact Match to Mobile Mockup)
   ========================================================================== */
.mobile-top-header {
  display: none;
}
.desktop-only-header {
  display: flex;
}
.mobile-dashboard-container {
  display: none;
}
.desktop-dashboard-container {
  display: block;
}

@media (max-width: 768px) {
  .desktop-only-header {
    display: none !important;
  }
  .desktop-dashboard-container {
    display: none !important;
  }
  
  /* Mobile Header */
  .mobile-top-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.15rem;
    position: sticky;
    top: 0;
    z-index: 95;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: background 0.3s ease, border-color 0.3s ease;
  }
  
  body:not(.theme-light) .mobile-top-header {
    background: rgba(11, 17, 32, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .mobile-header-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
  }
  
  .mobile-brand-logo {
    height: 32px;
    width: auto;
    max-width: 175px;
    object-fit: contain;
    display: block;
  }
  
  body:not(.theme-light) .mobile-brand-logo.brand-light-mode {
    display: none !important;
  }
  body:not(.theme-light) .mobile-brand-logo.brand-dark-mode {
    display: block !important;
  }
  
  body.theme-light .mobile-brand-logo.brand-dark-mode {
    display: none !important;
  }
  body.theme-light .mobile-brand-logo.brand-light-mode {
    display: block !important;
  }
  
  .mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
  }
  
  .mobile-header-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    color: #0F172A;
    font-size: 0.95rem;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
  }
  
  body:not(.theme-light) .mobile-header-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #F8FAFC;
  }
  
  .mobile-bell-dot {
    position: absolute;
    top: 7px;
    right: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #EF4444;
    border: 1.5px solid #FFFFFF;
  }
  
  body:not(.theme-light) .mobile-bell-dot {
    border-color: #0B1120;
  }
  
  .mobile-user-avatar-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    padding: 2px 4px 2px 2px;
    border-radius: 999px;
  }
  
  .mobile-user-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(99, 102, 241, 0.3);
  }
  
  .mobile-avatar-chevron {
    font-size: 0.65rem;
    color: #64748B;
  }
  
  /* Mobile Dashboard Container */
  .mobile-dashboard-container {
    display: flex !important;
    flex-direction: column;
    gap: 1.4rem;
    padding: 0.4rem 0.2rem 2.5rem 0.2rem;
  }
  
  /* 1. Hero Greeting */
  .mobile-hero-greeting {
    position: relative;
    min-height: 105px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.25rem 0.25rem 0.25rem;
    overflow: hidden;
  }
  
  .mobile-hero-text {
    position: relative;
    z-index: 2;
    max-width: 68%;
  }
  
  .mobile-hero-title {
    font-size: 2.15rem;
    font-weight: 800;
    line-height: 1.15;
    color: #0F172A;
    margin: 0 0 0.4rem 0;
    letter-spacing: -0.5px;
  }
  
  body:not(.theme-light) .mobile-hero-title {
    color: #FFFFFF;
  }
  
  .mobile-hero-name {
    color: #4F46E5;
    font-weight: 800;
  }
  
  body:not(.theme-light) .mobile-hero-name {
    color: #818CF8;
  }
  
  .mobile-hero-subtitle {
    font-size: 0.865rem;
    color: #64748B;
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
  }
  
  body:not(.theme-light) .mobile-hero-subtitle {
    color: #94A3B8;
  }
  
  .mobile-hero-art {
    position: absolute;
    right: -10px;
    top: -38px;
    width: 220px;
    height: 180px;
    pointer-events: none;
    z-index: 1;
    background-image: url('../img/mockup-mobile-ref.png');
    background-size: 576px 1024px;
    background-position: right 0px top -42px;
    background-repeat: no-repeat;
    mask-image: radial-gradient(circle at 70% 50%, black 50%, transparent 85%);
    -webkit-mask-image: radial-gradient(circle at 70% 50%, black 50%, transparent 85%);
  }
  
  body:not(.theme-light) .mobile-hero-art {
    mix-blend-mode: screen;
    opacity: 0.85;
    filter: drop-shadow(0 0 16px rgba(99, 102, 241, 0.4));
  }
  
  /* 2. Search Bar */
  .mobile-search-bar {
    position: relative;
    width: 100%;
  }
  
  .mobile-search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 9999px;
    padding: 0.75rem 1.15rem;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    transition: var(--transition);
  }
  
  body:not(.theme-light) .mobile-search-input-wrapper {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  }
  
  .mobile-search-icon {
    font-size: 0.95rem;
    color: #94A3B8;
    flex-shrink: 0;
  }
  
  .mobile-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.885rem;
    color: #0F172A;
    font-weight: 500;
  }
  
  body:not(.theme-light) .mobile-search-input {
    color: #F8FAFC;
  }
  
  .mobile-search-input::placeholder {
    color: #94A3B8;
    font-weight: 400;
  }
  
  .mobile-search-filter-btn {
    background: transparent;
    border: none;
    padding: 0;
    color: #64748B;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  body:not(.theme-light) .mobile-search-filter-btn {
    color: #94A3B8;
  }
  
  .mobile-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    z-index: 100;
    max-height: 320px;
    overflow-y: auto;
  }
  
  body:not(.theme-light) .mobile-search-dropdown {
    background: #0E1629;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  }
  
  /* 3. Quick Action Categories (4 Column Grid) */
  .mobile-quick-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.65rem;
  }
  
  .mobile-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    text-decoration: none;
  }
  
  .mobile-cat-icon-box {
    width: 66px;
    height: 66px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .mobile-cat-icon-box:active {
    transform: scale(0.94);
  }
  
  .mobile-cat-icon-box i {
    font-size: 1.65rem;
  }
  
  .mobile-cat-label {
    font-size: 0.725rem;
    font-weight: 700;
    color: #1E293B;
    text-align: center;
    white-space: nowrap;
  }
  
  body:not(.theme-light) .mobile-cat-label {
    color: #E2E8F0;
  }
  
  /* Videoaulas */
  .cat-video {
    background: #EEF2FF;
    border: 1px solid #E0E7FF;
    color: #6366F1;
  }
  body:not(.theme-light) .cat-video {
    background: rgba(99, 102, 241, 0.18);
    border-color: rgba(99, 102, 241, 0.3);
    color: #818CF8;
  }
  
  /* Resumos */
  .cat-resumos {
    background: #EFF6FF;
    border: 1px solid #DBEAFE;
    color: #3B82F6;
  }
  body:not(.theme-light) .cat-resumos {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60A5FA;
  }
  
  /* Mapas Mentais */
  .cat-mapas {
    background: #F5F3FF;
    border: 1px solid #EDE9FE;
    color: #8B5CF6;
  }
  body:not(.theme-light) .cat-mapas {
    background: rgba(139, 92, 246, 0.18);
    border-color: rgba(139, 92, 246, 0.3);
    color: #A78BFA;
  }
  
  /* Simulados */
  .cat-simulados {
    background: #FAF5FF;
    border: 1px solid #F3E8FF;
    color: #A855F7;
  }
  body:not(.theme-light) .cat-simulados {
    background: rgba(168, 85, 247, 0.18);
    border-color: rgba(168, 85, 247, 0.3);
    color: #C084FC;
  }
  
  /* 4. Section Common Headers */
  .mobile-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .mobile-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .mobile-section-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.3px;
    margin: 0;
  }
  
  body:not(.theme-light) .mobile-section-title {
    color: #F8FAFC;
  }
  
  .mobile-section-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: #3B82F6;
    text-decoration: none;
    transition: opacity 0.2s ease;
  }
  
  .mobile-section-link:hover {
    opacity: 0.8;
  }
  
  /* 5. Continue Card */
  .mobile-continue-card {
    background: #FFFFFF;
    border-radius: 22px;
    padding: 0.95rem;
    border: 1px solid #F1F5F9;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    cursor: pointer;
    transition: transform 0.2s ease;
  }
  
  body:not(.theme-light) .mobile-continue-card {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }
  
  .mobile-continue-card:active {
    transform: scale(0.98);
  }
  
  .mobile-continue-thumb {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
    background: #0F172A;
  }
  
  .mobile-continue-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .mobile-continue-body {
    flex: 1;
    min-width: 0;
  }
  
  .mobile-continue-tag {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: #64748B;
    text-transform: uppercase;
    display: block;
  }
  
  body:not(.theme-light) .mobile-continue-tag {
    color: #94A3B8;
  }
  
  .mobile-continue-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0F172A;
    margin: 0.15rem 0 0.4rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  body:not(.theme-light) .mobile-continue-title {
    color: #F8FAFC;
  }
  
  .mobile-continue-progress-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
  }
  
  .mobile-progress-track {
    height: 6px;
    background: #EEF2FF;
    border-radius: 999px;
    flex: 1;
    overflow: hidden;
  }
  
  body:not(.theme-light) .mobile-progress-track {
    background: rgba(255, 255, 255, 0.1);
  }
  
  .mobile-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #4F46E5, #818CF8);
  }
  
  .mobile-progress-text {
    font-size: 0.725rem;
    font-weight: 700;
    color: #64748B;
  }
  
  body:not(.theme-light) .mobile-progress-text {
    color: #94A3B8;
  }
  
  .mobile-continue-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: #64748B;
    font-weight: 500;
  }
  
  body:not(.theme-light) .mobile-continue-meta {
    color: #94A3B8;
  }
  
  .mobile-continue-meta i {
    font-size: 0.75rem;
    color: #64748B;
  }
  
  body:not(.theme-light) .mobile-continue-meta i {
    color: #94A3B8;
  }
  
  .mobile-round-play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #EFF6FF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  
  body:not(.theme-light) .mobile-round-play-btn {
    background: rgba(59, 130, 246, 0.2);
  }
  
  .mobile-round-play-btn i {
    color: #3B82F6;
    font-size: 0.95rem;
    margin-left: 2px;
  }
  
  /* 6. Ciclos Carousel */
  .mobile-ciclos-carousel {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.4rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  .mobile-ciclos-carousel::-webkit-scrollbar {
    display: none;
  }
  
  .mobile-ciclo-card {
    width: 175px;
    min-width: 175px;
    flex-shrink: 0;
    scroll-snap-align: start;
    border-radius: 20px;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid #F1F5F9;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
  }
  
  body:not(.theme-light) .mobile-ciclo-card {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  }
  
  .mobile-ciclo-card:active {
    transform: scale(0.97);
  }
  
  .mobile-ciclo-cover {
    height: 100px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #0F172A;
  }
  
  .mobile-ciclo-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .mobile-ciclo-info {
    padding: 0.75rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.35rem;
    flex: 1;
  }
  
  .mobile-ciclo-texts {
    flex: 1;
    min-width: 0;
  }
  
  .mobile-ciclo-title {
    font-size: 0.925rem;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 0.2rem 0;
  }
  
  body:not(.theme-light) .mobile-ciclo-title {
    color: #F8FAFC;
  }
  
  .mobile-ciclo-desc {
    font-size: 0.725rem;
    color: #64748B;
    line-height: 1.25;
    margin: 0;
  }
  
  body:not(.theme-light) .mobile-ciclo-desc {
    color: #94A3B8;
  }
  
  .mobile-ciclo-arrow-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #EFF6FF;
    color: #3B82F6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
  }
  
  body:not(.theme-light) .mobile-ciclo-arrow-btn {
    background: rgba(59, 130, 246, 0.2);
    color: #60A5FA;
  }
  
  /* 7. Últimos Conteúdos List */
  .mobile-ultimos-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .mobile-conteudo-item {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 0.85rem;
    border: 1px solid #F1F5F9;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    cursor: pointer;
    transition: transform 0.2s ease;
  }
  
  body:not(.theme-light) .mobile-conteudo-item {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  }
  
  .mobile-conteudo-item:active {
    transform: scale(0.98);
  }
  
  .mobile-conteudo-thumb {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    background: #0F172A;
  }
  
  .mobile-conteudo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .mobile-conteudo-body {
    flex: 1;
    min-width: 0;
  }
  
  .mobile-conteudo-tag {
    font-size: 0.65rem;
    font-weight: 800;
    color: #3B82F6;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: block;
  }
  
  .mobile-conteudo-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0F172A;
    margin: 0.1rem 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  body:not(.theme-light) .mobile-conteudo-title {
    color: #F8FAFC;
  }
  
  .mobile-conteudo-meta {
    font-size: 0.75rem;
    color: #64748B;
    font-weight: 500;
    display: block;
  }
  
  body:not(.theme-light) .mobile-conteudo-meta {
    color: #94A3B8;
  }
  
  .mobile-round-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  
  .btn-play-blue {
    background: #EFF6FF;
    color: #3B82F6;
  }
  body:not(.theme-light) .btn-play-blue {
    background: rgba(59, 130, 246, 0.2);
    color: #60A5FA;
  }
  .btn-play-blue i {
    font-size: 0.85rem;
    margin-left: 2px;
  }
  
  .btn-doc-purple {
    background: #FAF5FF;
    color: #8B5CF6;
  }
  body:not(.theme-light) .btn-doc-purple {
    background: rgba(139, 92, 246, 0.2);
    color: #C084FC;
  }
  .btn-doc-purple i {
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   ÁREA DE ESTUDANTE - CUSTOM STYLES & INTERACTION SYSTEM
   ========================================================================== */

/* ==========================================================================
   LIGHT MODE SYSTEM & THEME SWITCHER
   ========================================================================== */

/* Theme Toggle Button in Header */
/* Theme Toggle Button in Header (Toggle limpo, sem texto, com ícone da lua) */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
  outline: none;
  flex-shrink: 0;
}

.theme-toggle-btn i {
  font-size: 0.95rem;
  color: #C7D2FE;
  transition: transform 0.25s ease, color 0.25s ease;
}

.theme-toggle-btn:hover {
  background: rgba(148, 185, 255, 0.15);
  border-color: var(--secondary);
  transform: translateY(-1px);
}

.theme-toggle-btn:hover i {
  color: var(--secondary);
}

/* --- LIGHT MODE VARIABLES & RULES --- */
body.theme-light {
  --bg-dark: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --bg-card-active: #E2E8F0;
  --bg-glass: rgba(255, 255, 255, 0.92);
  --bg-glass-strong: rgba(255, 255, 255, 0.98);

  --border-subtle: #E2E8F0;
  --border-active: rgba(148, 185, 255, 0.8);
  --border-glow: rgba(232, 148, 255, 0.4);

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 18px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.09);

  --text-main: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-dim: #94A3B8;

  background-color: #F8FAFC !important;
  color: #0F172A !important;
}

body.theme-light .app-main {
  background: #F8FAFC !important;
  background-image: none !important;
}

body.theme-light .app-sidebar {
  background: #FFFFFF !important;
  border-right: 1px solid #E2E8F0 !important;
}

body.theme-light .sidebar-header {
  border-bottom: 1px solid #E2E8F0 !important;
}

body.theme-light .app-header {
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid #E2E8F0 !important;
}

body.theme-light .theme-toggle-btn {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

body.theme-light .theme-toggle-btn i {
  color: #6366F1 !important;
}

body.theme-light .theme-toggle-btn:hover {
  background: #E2E8F0 !important;
  border-color: #94A3B8 !important;
}

body.theme-light .app-search-input {
  background: #F8FAFC !important;
  border: 1px solid #CBD5E1 !important;
  color: #0F172A !important;
}

body.theme-light .app-search-input::placeholder {
  color: #94A3B8 !important;
}

body.theme-light .sidebar-nav-item {
  color: #475569 !important;
}

body.theme-light .sidebar-nav-item i {
  color: #64748B !important;
}

body.theme-light .sidebar-nav-item:hover {
  background: #F1F5F9 !important;
  color: #0F172A !important;
}

body.theme-light .sidebar-nav-item:hover i {
  color: #3B82F6 !important;
}

body.theme-light .sidebar-nav-item.active {
  background: var(--grad-primary) !important;
  color: #0F172A !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(148, 185, 255, 0.45) !important;
}

body.theme-light .sidebar-nav-item.active i {
  color: #0F172A !important;
}

body.theme-light .sidebar-section-title {
  color: #94A3B8 !important;
}

body.theme-light .sidebar-ai-helper-card {
  background: linear-gradient(135deg, rgba(148, 185, 255, 0.18) 0%, rgba(232, 148, 255, 0.12) 100%) !important;
  border: 1px solid rgba(148, 185, 255, 0.35) !important;
}

body.theme-light .sidebar-ai-helper-card div div:first-child {
  color: #0F172A !important;
}

body.theme-light .sidebar-ai-helper-card div div:last-child {
  color: #4F46E5 !important;
}

/* CARDS across all views in Light Mode */
body.theme-light .glass-card,
body.theme-light .kpi-card,
body.theme-light .featured-lesson-card,
body.theme-light .study-plan-card,
body.theme-light .disciplina-item-card,
body.theme-light .ai-widget-card,
body.theme-light .timeline-card,
body.theme-light .profile-card,
body.theme-light .simulado-card,
body.theme-light .lesson-row-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
}

body.theme-light .welcome-banner {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
}

body.theme-light .welcome-title,
body.theme-light h1,
body.theme-light h2,
body.theme-light h3,
body.theme-light h4,
body.theme-light .kpi-value,
body.theme-light .disciplina-item-title,
body.theme-light .featured-lesson-title,
body.theme-light .timeline-title {
  color: #0F172A !important;
}

body.theme-light .welcome-subtitle,
body.theme-light .featured-lesson-meta,
body.theme-light .timeline-desc,
body.theme-light .kpi-footer,
body.theme-light .kpi-label,
body.theme-light .disciplina-item-progress-text {
  color: #64748B !important;
}

body.theme-light .welcome-quote {
  background: transparent !important;
  border: none !important;
  border-left: 2px solid var(--secondary) !important;
  color: #4F46E5 !important;
  box-shadow: none !important;
}

body.theme-light .progress-container {
  background: #E2E8F0 !important;
}

body.theme-light .study-check-item {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  color: #1E293B !important;
}

body.theme-light .study-check-item.done {
  background: #F1F5F9 !important;
}

body.theme-light .study-check-item.done span {
  color: #94A3B8 !important;
}

body.theme-light .custom-checkbox {
  border-color: #CBD5E1 !important;
  background: #FFFFFF !important;
  color: #10B981 !important;
}

/* AI Widget in Light Mode */
body.theme-light .ai-widget-card {
  background: #FFFFFF !important;
}

body.theme-light .ai-widget-header div div:first-child {
  color: #0F172A !important;
}

body.theme-light .ai-widget-status {
  color: #059669 !important;
}

body.theme-light .ai-widget-input-wrapper {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body.theme-light .ai-widget-input {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  color: #0F172A !important;
}

body.theme-light .ai-widget-input:focus {
  border-color: #6366F1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

body.theme-light .ai-bot-bubble {
  background: #F1F5F9 !important;
  border: 1px solid #E2E8F0 !important;
  color: #0F172A !important;
}

body.theme-light .ai-chip-btn {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  color: #334155 !important;
}

body.theme-light .ai-chip-btn i {
  color: #4F46E5 !important;
}

body.theme-light .ai-chip-btn:hover {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

/* Question Bank in Light Mode */
body.theme-light .question-option {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  color: #1E293B !important;
}

body.theme-light .question-option span {
  color: #1E293B !important;
}

body.theme-light .question-option:hover {
  border-color: #94B9FF !important;
  background: #F1F5F9 !important;
}

body.theme-light .question-option.correct {
  background: rgba(16, 185, 129, 0.12) !important;
  border-color: #10B981 !important;
}

body.theme-light .question-option.correct span {
  color: #065F46 !important;
}

body.theme-light .question-option.wrong {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: #EF4444 !important;
}

body.theme-light .question-option.wrong span {
  color: #991B1B !important;
}

body.theme-light .question-option.strikethrough-eliminated {
  background: #F1F5F9 !important;
  border-color: #E2E8F0 !important;
  opacity: 0.45 !important;
}

/* Question Option Selected State (Dark Mode) */
.question-option.selected {
  background: rgba(148, 185, 255, 0.15) !important;
  border-color: #94B9FF !important;
  box-shadow: 0 0 16px rgba(148, 185, 255, 0.25) !important;
}

.question-option.selected .option-letter-badge {
  background: linear-gradient(135deg, #94B9FF 0%, #E894FF 100%) !important;
  color: #0E1629 !important;
  font-weight: 800 !important;
}

/* Question Option Selected State (Light Mode) */
body.theme-light .question-option.selected {
  background: rgba(148, 185, 255, 0.22) !important;
  border-color: #7AA2F7 !important;
  box-shadow: 0 0 14px rgba(122, 162, 247, 0.25) !important;
}

body.theme-light .question-option.selected span {
  color: #0F172A !important;
}

body.theme-light .question-option.selected .option-letter-badge {
  background: linear-gradient(135deg, #94B9FF 0%, #E894FF 100%) !important;
  color: #0E1629 !important;
  font-weight: 800 !important;
}

/* Flashcards in Light Mode */
body.theme-light .flashcard-box {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
}

body.theme-light .flashcard-box div {
  color: #0F172A !important;
}

/* Simulados in Light Mode */
body.theme-light .simulado-timer-bar {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06) !important;
}

body.theme-light .simulado-timer-bar strong {
  color: #0F172A !important;
}

body.theme-light .simulado-timer-digits {
  color: #4F46E5 !important;
}

/* Form Controls in Light Mode */
body.theme-light .form-control,
body.theme-light input[type="text"],
body.theme-light input[type="email"],
body.theme-light select {
  background: #F8FAFC !important;
  border: 1px solid #CBD5E1 !important;
  color: #0F172A !important;
}

body.theme-light label {
  color: #0F172A !important;
}

body.theme-light .form-group-locked input {
  background: #E2E8F0 !important;
  color: #64748B !important;
  border-color: #CBD5E1 !important;
}

/* Mobile Bottom Bar in Light Mode */
body.theme-light .mobile-bottom-bar {
  background: rgba(255, 255, 255, 0.95) !important;
  border-top: 1px solid #E2E8F0 !important;
}

body.theme-light .mobile-bar-item {
  color: #64748B !important;
}

body.theme-light .mobile-bar-item.active {
  color: #4F46E5 !important;
}

/* Modals in Light Mode */
body.theme-light .modal-content {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
}

body.theme-light .modal-header {
  border-bottom: 1px solid #E2E8F0 !important;
}

body.theme-light #pdf-modal-title {
  color: #0F172A !important;
}

/* Header User Profile Button in Light Mode */
body.theme-light .user-profile-btn {
  background: #F1F5F9 !important;
  border-color: #E2E8F0 !important;
}

body.theme-light .user-profile-btn:hover {
  background: #E2E8F0 !important;
}

body.theme-light .user-name {
  color: #0F172A !important;
}

body.theme-light .app-header-icon-btn {
  background: #F1F5F9 !important;
  border-color: #E2E8F0 !important;
  color: #64748B !important;
}

body.theme-light .app-header-icon-btn:hover {
  background: #E2E8F0 !important;
  color: #0F172A !important;
}

/* ==========================================================================
   LIGHT MODE CONTRAST & READABILITY ENHANCEMENTS
   ========================================================================== */

/* Universal Light Mode Override for Elements with Inline White Text */
body.theme-light [style*="color: #FFFFFF"],
body.theme-light [style*="color:#FFFFFF"],
body.theme-light [style*="color: #ffffff"],
body.theme-light [style*="color:#ffffff"],
body.theme-light [style*="color: #fff"],
body.theme-light [style*="color:#fff"],
body.theme-light [style*="color: rgb(255, 255, 255)"],
body.theme-light [style*="color:rgb(255, 255, 255)"] {
  color: #0F172A !important;
}

/* Solid buttons retain white text */
body.theme-light .btn-primary,
body.theme-light .btn-primary *,
body.theme-light .btn-emerald,
body.theme-light .btn-emerald *,
body.theme-light .btn-danger,
body.theme-light .btn-danger * {
  color: #FFFFFF !important;
}

/* Badges in Light Mode: High-contrast, sharp, and perfectly readable */
body.theme-light .badge {
  color: #0F172A !important;
  font-weight: 700 !important;
}

body.theme-light .badge-primary {
  background: #EEF2FF !important;
  color: #3730A3 !important;
  border: 1.5px solid #818CF8 !important;
  font-weight: 800 !important;
}
body.theme-light .badge-primary * {
  color: #3730A3 !important;
}

body.theme-light .badge-cyan {
  background: #F0F9FF !important;
  color: #075985 !important;
  border: 1.5px solid #38BDF8 !important;
  font-weight: 800 !important;
}
body.theme-light .badge-cyan * {
  color: #075985 !important;
}

body.theme-light .badge-emerald {
  background: #ECFDF5 !important;
  color: #065F46 !important;
  border: 1.5px solid #34D399 !important;
  font-weight: 800 !important;
}
body.theme-light .badge-emerald * {
  color: #065F46 !important;
}

body.theme-light .badge-pink {
  background: #FDF2F8 !important;
  color: #9D174D !important;
  border: 1.5px solid #F472B6 !important;
  font-weight: 800 !important;
}
body.theme-light .badge-pink * {
  color: #9D174D !important;
}

body.theme-light .badge-amber {
  background: #FFFBEB !important;
  color: #92400E !important;
  border: 1.5px solid #FBBF24 !important;
  font-weight: 800 !important;
}
body.theme-light .badge-amber * {
  color: #92400E !important;
}

/* Secondary & Ghost Buttons in Light Mode (Cycle filters, Lesson open buttons) */
body.theme-light .btn-secondary {
  background: #FFFFFF !important;
  color: #1E293B !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08) !important;
}
body.theme-light .btn-secondary:hover {
  background: #F1F5F9 !important;
  border-color: #94A3B8 !important;
  color: #0F172A !important;
}
body.theme-light .btn-secondary * {
  color: #1E293B !important;
}
body.theme-light .btn-ghost {
  color: #475569 !important;
}
body.theme-light .btn-ghost:hover {
  background: #E2E8F0 !important;
  color: #0F172A !important;
}

/* Simulado & Question Alternative Theming */
.simulado-option-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.95rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
body.theme-light .simulado-option-card {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05) !important;
}
body.theme-light .simulado-option-card:hover {
  background: #F8FAFC !important;
  border-color: #94B9FF !important;
}
.simulado-option-card.selected {
  background: rgba(99, 102, 241, 0.22) !important;
  border-color: var(--primary) !important;
}
body.theme-light .simulado-option-card.selected {
  background: #EFF6FF !important;
  border-color: #3B82F6 !important;
}
.simulado-option-text {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.5;
  flex: 1;
}
body.theme-light .simulado-option-text {
  color: #0F172A !important;
}
body.theme-light .question-option span[style*="color: #E2E8F0"],
body.theme-light .question-option span[style*="color:#E2E8F0"],
body.theme-light span[style*="color: #E2E8F0"],
body.theme-light span[style*="color:#E2E8F0"],
body.theme-light span[style*="color: #e2e8f0"],
body.theme-light span[style*="color:#e2e8f0"] {
  color: #0F172A !important;
}

/* Simulado Review Cards & Light Mode Compatibility */
.simulado-review-card {
  transition: var(--transition);
}
body.theme-light .simulado-review-card {
  background: #FFFFFF !important;
  color: #0F172A !important;
}
body.theme-light .simulado-review-card .simulado-option-text {
  color: #0F172A !important;
}
body.theme-light .simulado-card h3,
body.theme-light .simulado-card div[style*="color: #FFFFFF"],
body.theme-light .simulado-card div[style*="color:#FFFFFF"] {
  color: #0F172A !important;
}
body.theme-light div[style*="background: rgba(99, 102, 241, 0.08)"] {
  background: #EEF2FF !important;
  border-color: #C7D2FE !important;
}
body.theme-light div[style*="background: rgba(99, 102, 241, 0.08)"] div[style*="color: var(--text-main)"] {
  color: #1E293B !important;
}

/* Module Titles and Lesson Rows in Light Mode */
body.theme-light .module-title-text,
body.theme-light .modules-grid-2col .glass-card div[style*="font-weight: 700"],
body.theme-light .modules-grid-2col .glass-card div[style*="font-weight: 600"],
body.theme-light .modules-grid-2col div[style*="font-size: 1.1rem"],
body.theme-light .modules-grid-2col div[style*="font-size: 1.05rem"],
body.theme-light .modules-grid-2col div[style*="font-size: 0.885rem"],
body.theme-light .modules-grid-2col div[style*="font-size: 0.875rem"] {
  color: #0F172A !important;
}

/* Inner lesson items and accordion rows in Light Mode */
body.theme-light div[style*="background: rgba(255,255,255,0.02)"],
body.theme-light div[style*="background: rgba(255, 255, 255, 0.02)"] {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}

/* Form controls and inputs in Light Mode */
body.theme-light .form-control,
body.theme-light input[type="text"],
body.theme-light input[type="email"],
body.theme-light input[type="number"],
body.theme-light textarea,
body.theme-light select {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}
body.theme-light .form-control::placeholder,
body.theme-light input::placeholder,
body.theme-light textarea::placeholder {
  color: #94A3B8 !important;
}

/* Profile inputs with inline dark styling */
body.theme-light input[style*="background: #0E1629"],
body.theme-light select[style*="background: #0E1629"],
body.theme-light input[style*="background:#0E1629"],
body.theme-light select[style*="background:#0E1629"],
body.theme-light input[style*="background: #0A101F"],
body.theme-light input[style*="background:#0A101F"] {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

/* Labels and section headings */
body.theme-light label {
  color: #1E293B !important;
}

/* Question Bank & Flashcards Card Headings in Light Mode */
body.theme-light .question-text,
body.theme-light .question-alternative-item,
body.theme-light .flashcard-face {
  color: #0F172A !important;
}
body.theme-light .question-alternative-item {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
}
body.theme-light .question-alternative-item:hover {
  background: #F8FAFC !important;
  border-color: #94B9FF !important;
}
body.theme-light .flashcard-card {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
}

/* Login Modal Complete Contrast in Light Mode */
body.theme-light .login-modal-card {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16), 0 0 30px rgba(148, 185, 255, 0.2) !important;
}
body.theme-light .login-modal-heading {
  color: #0F172A !important;
}
body.theme-light .login-mode-badge {
  background: #EFF6FF !important;
  color: #1E3A8A !important;
  border: 1px solid #BFDBFE !important;
}
body.theme-light .login-input-label {
  color: #1E293B !important;
}
body.theme-light .login-themed-input {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  color: #0F172A !important;
}
body.theme-light .login-themed-input::placeholder {
  color: #94A3B8 !important;
}
body.theme-light .otp-status-title {
  color: #1D4ED8 !important;
}
body.theme-light .otp-code-digits {
  color: #0F172A !important;
}
body.theme-light .demo-chip-title {
  color: #0F172A !important;
}
body.theme-light .demo-chip-btn {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
  color: #334155 !important;
}
body.theme-light .demo-chip-btn:hover {
  background: #EFF6FF !important;
  border-color: #94B9FF !important;
}
body.theme-light .otp-code-display {
  background: #EFF6FF !important;
  border-color: #60A5FA !important;
}
body.theme-light .otp-input-field {
  color: #0F172A !important;
  background: #F8FAFC !important;
  border-color: #94B9FF !important;
}

/* Admin Panel Light Mode Styling */
body.theme-light .admin-tab-btn {
  color: #64748B !important;
  background: transparent !important;
}
body.theme-light .admin-tab-btn:hover {
  color: #0F172A !important;
  background: #F1F5F9 !important;
}
body.theme-light .admin-tab-btn.active {
  color: #2563EB !important;
  background: #EFF6FF !important;
  border-color: #BFDBFE !important;
}
body.theme-light .admin-form-card,
body.theme-light .admin-batch-card {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
}
body.theme-light .admin-form-input {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}
body.theme-light .admin-preset-btn {
  background: #F8FAFC !important;
  border-color: #CBD5E1 !important;
  color: #334155 !important;
}
body.theme-light .admin-preset-btn.active {
  background: #2563EB !important;
  color: #FFFFFF !important;
  border-color: #2563EB !important;
}
body.theme-light .admin-table {
  background: #FFFFFF !important;
}
body.theme-light .admin-table th {
  background: #F8FAFC !important;
  color: #475569 !important;
  border-color: #E2E8F0 !important;
}
body.theme-light .admin-table td {
  color: #1E293B !important;
  border-color: #E2E8F0 !important;
}


/* ==========================================================================
   LOGO SWITCHING SYSTEM (Dark Text on Light Mode, White Text on Dark Mode)
   ========================================================================== */

/* By default (Dark Mode): Show brand-dark-mode, Hide brand-light */
body:not(.theme-light) .sidebar-brand-img.brand-light,
body:not(.theme-light) .sidebar-brand-img.brand-dark-text {
  display: none !important;
}

body:not(.theme-light) .app-sidebar:not(.collapsed) .sidebar-brand-img.brand-dark-mode,
body:not(.theme-light) .app-sidebar:not(.collapsed) .sidebar-brand-img.brand-full {
  display: block !important;
}

/* In Light Mode: Show brand-light (Dark Text), Hide brand-dark-mode (White Text) */
body.theme-light .sidebar-brand-img.brand-dark-mode,
body.theme-light .sidebar-brand-img.brand-full {
  display: none !important;
}

body.theme-light .app-sidebar:not(.collapsed) .sidebar-brand-img.brand-light,
body.theme-light .app-sidebar:not(.collapsed) .sidebar-brand-img.brand-dark-text {
  display: block !important;
}

/* When collapsed in both modes, show brand-collapsed (emblem only) */
.app-sidebar.collapsed .sidebar-brand-img.brand-dark-mode,
.app-sidebar.collapsed .sidebar-brand-img.brand-full,
.app-sidebar.collapsed .sidebar-brand-img.brand-light,
.app-sidebar.collapsed .sidebar-brand-img.brand-dark-text {
  display: none !important;
}

.app-sidebar.collapsed .sidebar-brand-img.brand-collapsed {
  display: block !important;
}

/* 6º Item: Recurso de Riscar Alternativa (Strikethrough / Elimination) */
.strikethrough-eliminated {
  text-decoration: line-through !important;
  opacity: 0.42 !important;
  filter: grayscale(1) !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  position: relative;
  cursor: pointer;
}

.strikethrough-eliminated::after {
  content: 'Riscada';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #EF4444;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
}

.btn-strike-toggle {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  transition: var(--transition);
  margin-left: auto;
}

.btn-strike-toggle:hover {
  color: #EF4444;
}

/* 7º Item: Simulados com Módulos, Timer e Limite de Refações */
.simulado-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
}

.simulado-card:hover {
  border-color: var(--border-active);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.simulado-card.locked {
  opacity: 0.65;
  filter: grayscale(0.6);
  border-color: rgba(239, 68, 68, 0.3);
}

.simulado-timer-bar {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: calc(var(--header-h) + 10px);
  z-index: 40;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 1.5rem;
}

.simulado-timer-digits {
  font-family: 'Outfit', monospace;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--secondary);
}

.simulado-timer-digits.urgent {
  color: #EF4444;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* 3º Item: Perfil do Aluno */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 860px;
  margin: 0 auto;
}

.form-group-locked {
  position: relative;
}

.locked-input-wrapper {
  position: relative;
  width: 100%;
}

.form-group-locked input {
  background: rgba(15, 23, 42, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #94A3B8 !important;
  cursor: not-allowed;
  padding-right: 2.5rem !important;
  width: 100%;
}

.locked-input-wrapper .lock-badge-icon,
.lock-badge-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #F59E0B;
  font-size: 0.9rem;
  pointer-events: none;
}

.locked-help-text {
  font-size: 0.775rem;
  color: #F59E0B;
  margin-top: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

/* Residency Goals in Profile: High Contrast in Dark and Light Modes */
.profile-residencia-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
}
.profile-residencia-item .item-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  flex: 1;
}
body.theme-light .profile-residencia-item {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
}
body.theme-light .profile-residencia-item .item-title {
  color: #0F172A !important;
}


/* Aulas & Favoritos View Cards */
.lesson-row-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: var(--transition);
}

.lesson-row-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.lesson-row-card.completed {
  border-left: 4px solid var(--accent-emerald);
}

.btn-fav-star {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: #64748B;
  transition: var(--transition);
  padding: 0.4rem;
}

.btn-fav-star.active,
.btn-fav-star:hover {
  color: #F59E0B;
  transform: scale(1.15);
}

/* ==========================================================================
   2-COLUMN MODULES GRID SYSTEM (Aulas, Questões, Flashcards, Meus Estudos)
   ========================================================================== */
.modules-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 1100px) {
  .modules-grid-2col {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.module-card-interactive {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.module-card-interactive:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(148, 185, 255, 0.16);
}

body.theme-light .module-card-interactive {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05) !important;
}

body.theme-light .module-card-interactive:hover {
  border-color: #94B9FF !important;
  box-shadow: 0 8px 24px rgba(148, 185, 255, 0.22) !important;
}

.module-card-interactive.active {
  border-color: var(--secondary);
  box-shadow: 0 0 20px rgba(232, 148, 255, 0.25);
}

/* ==========================================================================
   HOTMART PAYWALL & MEMBER AREA BLUR EFFECT
   Header & Sidebar remain clear; only content views get blurred.
   ========================================================================== */
.app-content-wrapper {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: calc(100vh - var(--header-height));
  transition: filter 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

/* Blur applied when payment is unpaid/overdue */
.app-content-wrapper.subscription-blurred {
  filter: blur(14px) brightness(0.62) saturate(0.85);
  pointer-events: none !important;
  user-select: none !important;
}

body.theme-light .app-content-wrapper.subscription-blurred {
  filter: blur(14px) brightness(0.92) opacity(0.65) saturate(0.85);
  pointer-events: none !important;
  user-select: none !important;
}

/* Paywall overlay centered fixed right over the screen */
.paywall-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 999999 !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  padding: 2rem 1.25rem;
  background: rgba(10, 16, 31, 0.94) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow-y: auto;
}

.paywall-overlay.active,
.paywall-overlay.open {
  display: flex !important;
}

body.theme-light .paywall-overlay {
  background: rgba(248, 250, 252, 0.94) !important;
}

.paywall-card {
  max-width: 620px;
  width: 100%;
  background: linear-gradient(145deg, #111A30 0%, #0E1629 100%);
  border: 1px solid rgba(240, 83, 53, 0.45);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.25rem;
  text-align: center;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.65), 0 0 40px rgba(240, 83, 53, 0.22);
  position: relative;
  animation: paywallCardEntrance 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.theme-light .paywall-card {
  background: #FFFFFF;
  border: 1px solid rgba(240, 83, 53, 0.5);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12), 0 0 35px rgba(240, 83, 53, 0.18);
}

@keyframes paywallCardEntrance {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(18px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.paywall-flame-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 83, 53, 0.25) 0%, rgba(240, 83, 53, 0.05) 70%);
  border: 2px solid rgba(240, 83, 53, 0.6);
  color: #FF5722;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 1.25rem;
  box-shadow: 0 0 30px rgba(240, 83, 53, 0.35);
  animation: flamePulse 2s infinite ease-in-out;
}

@keyframes flamePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 25px rgba(240, 83, 53, 0.35);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 40px rgba(240, 83, 53, 0.55);
  }
}

.btn-hotmart {
  background: linear-gradient(135deg, #FF5722 0%, #F05335 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 20px rgba(240, 83, 53, 0.38) !important;
  transition: var(--transition) !important;
  text-decoration: none !important;
}

.btn-hotmart:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(240, 83, 53, 0.5) !important;
  color: #FFFFFF !important;
}

.paywall-demo-switch {
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.775rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   AUTHENTICATION & LOGIN MODAL (OTP Code or Password)
   ========================================================================== */
.login-modal-card {
  max-width: 480px;
  width: 100%;
  background: #0E1629;
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(148, 185, 255, 0.2);
  position: relative;
  animation: paywallCardEntrance 0.35s ease;
}

body.theme-light .login-modal-card {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16), 0 0 30px rgba(148, 185, 255, 0.2);
}

.login-method-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.35rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-subtle);
}

body.theme-light .login-method-nav {
  background: #F1F5F9;
  border-color: #E2E8F0;
}

.login-method-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.login-method-tab.active {
  background: linear-gradient(135deg, #94B9FF 0%, #E894FF 100%);
  color: #0E1629;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(148, 185, 255, 0.3);
}

.otp-code-display {
  background: rgba(148, 185, 255, 0.08);
  border: 1px dashed #94B9FF;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

body.theme-light .otp-code-display {
  background: #EFF6FF;
  border-color: #60A5FA;
}

.otp-input-field {
  letter-spacing: 0.5rem;
  font-size: 1.6rem !important;
  text-align: center;
  font-weight: 800;
  font-family: monospace;
  color: #FFFFFF !important;
  background: #111A30 !important;
  border: 2px solid var(--border-active) !important;
  border-radius: var(--radius-md) !important;
  padding: 0.75rem 1rem !important;
}

body.theme-light .otp-input-field {
  color: #0F172A !important;
  background: #F8FAFC !important;
  border-color: #94B9FF !important;
}

.demo-account-chips {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-subtle);
}

.demo-chip-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition);
  color: #E2E8F0;
  font-size: 0.785rem;
  text-align: left;
}

.demo-chip-btn:hover {
  background: rgba(148, 185, 255, 0.1);
  border-color: #94B9FF;
  transform: translateX(2px);
}

body.theme-light .demo-chip-btn {
  background: #F8FAFC;
  border-color: #E2E8F0;
  color: #334155;
}

body.theme-light .demo-chip-btn:hover {
  background: #EFF6FF;
  border-color: #94B9FF;
}

.status-pill-hotmart {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-weight: 700;
}

.status-pill-hotmart.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.status-pill-hotmart.unpaid {
  background: rgba(240, 83, 53, 0.15);
  color: #FF6B4A;
  border: 1px solid rgba(240, 83, 53, 0.4);
}

/* ==========================================================================
   ADMIN PANEL STYLES (Exclusivo: pasquiniarthur@gmail.com)
   ========================================================================== */
.admin-header-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(99, 102, 241, 0.12) 100%), #111A30;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

.admin-kpi-card {
  background: #111A30;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.admin-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.5);
}

.admin-kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.admin-nav-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.admin-nav-btn {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.admin-nav-btn:hover {
  background: rgba(245, 158, 11, 0.1);
  color: #FCD34D;
  border-color: rgba(245, 158, 11, 0.4);
}

.admin-nav-btn.active {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.admin-form-card {
  background: #111A30;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.admin-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.admin-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.admin-form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #CBD5E1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.admin-form-input,
.admin-form-select,
.admin-form-textarea {
  background: #0A101F;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: #FFFFFF;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.admin-form-input:focus,
.admin-form-select:focus,
.admin-form-textarea:focus {
  outline: none;
  border-color: #F59E0B;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.admin-form-textarea {
  min-height: 110px;
  resize: vertical;
}

.admin-item-card {
  background: #111A30;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: border-color 0.2s ease;
}

.admin-item-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
}

/* ==========================================================================
   ADMIN UPLOAD, COVER PREVIEW & BATCH QUESTION GENERATOR
   ========================================================================== */
.admin-upload-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1.5px dashed rgba(96, 165, 250, 0.4);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.admin-upload-box:hover {
  border-color: #60A5FA;
  background: rgba(15, 23, 42, 0.9);
}

.admin-cover-preview-wrapper {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 480px;
  background: rgba(15, 23, 42, 0.8);
  border: 2px dashed rgba(192, 132, 252, 0.4);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 0.75rem;
}

.admin-cover-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.admin-batch-card {
  background: #111A30;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s ease;
}

.admin-batch-card:hover {
  border-color: rgba(96, 165, 250, 0.4);
}

.admin-batch-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-preset-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #CBD5E1;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-preset-btn:hover,
.admin-preset-btn.active {
  background: rgba(96, 165, 250, 0.2);
  border-color: #60A5FA;
  color: #FFFFFF;
}

/* ==========================================================================
   CLASSROOM / AULA PLAYER SYSTEM (Videoaula Principal, Navegação e Materiais)
   ========================================================================== */

.classroom-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 3.5rem;
}

/* Classroom Top Navigation Bar */
.classroom-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.classroom-breadcrumb-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.classroom-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.classroom-back-btn:hover {
  background: rgba(14, 165, 233, 0.15);
  border-color: var(--primary);
  color: var(--primary);
}

.classroom-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.classroom-breadcrumb .badge-cycle {
  background: rgba(14, 165, 233, 0.15);
  color: var(--primary);
  border: 1px solid rgba(14, 165, 233, 0.3);
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.classroom-breadcrumb .breadcrumb-module {
  font-weight: 600;
  color: var(--text-main);
}

.classroom-breadcrumb .breadcrumb-current {
  color: var(--text-muted);
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.classroom-top-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.classroom-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.classroom-nav-btn:disabled,
.classroom-nav-btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.classroom-complete-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.classroom-complete-btn.completed {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid #10B981;
  color: #10B981;
}

/* Classroom 2-Column Grid Layout */
.classroom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 1200px) {
  .classroom-grid {
    grid-template-columns: 1fr;
  }
}

/* Video Player Cinema Wrapper */
.classroom-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-subtle);
  margin-bottom: 0.85rem;
}

/* Floating DRM Security Watermark in Player */
.classroom-drm-watermark {
  position: absolute;
  top: 10px;
  left: 14px;
  z-index: 5;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  pointer-events: none;
  letter-spacing: 0.5px;
}

.classroom-video-element {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* Stylized Medical Video Player Placeholder */
.classroom-player-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: radial-gradient(circle at 50% 35%, #0F172A 0%, #030712 100%);
  padding: 1rem 1.25rem;
  color: #FFFFFF;
  user-select: none;
}

.classroom-player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 3;
}

.classroom-hd-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(14, 165, 233, 0.25);
  border: 1px solid rgba(14, 165, 233, 0.5);
  color: #38BDF8;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  letter-spacing: 0.5px;
}

.classroom-player-watermark {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(239, 68, 68, 0.4);
  letter-spacing: 0.5px;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  pointer-events: none;
}

.classroom-player-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 3;
  margin: auto 0;
}

.classroom-play-trigger-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(14, 165, 233, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 0.85rem;
}

.classroom-play-trigger-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 0 35px rgba(14, 165, 233, 0.75);
}

.classroom-player-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #F8FAFC;
  margin-bottom: 0.25rem;
  max-width: 85%;
  line-height: 1.3;
}

.classroom-player-sub {
  font-size: 0.8rem;
  color: #94A3B8;
}

.classroom-player-controls-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 3;
}

.classroom-control-icon-btn {
  background: none;
  border: none;
  color: #E2E8F0;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.classroom-control-icon-btn:hover {
  color: var(--primary);
}

.classroom-timeline-track {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
}

.classroom-timeline-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 9999px;
  width: 0%;
  transition: width 0.1s linear;
}

.classroom-time-display {
  font-size: 0.75rem;
  color: #CBD5E1;
  font-family: monospace;
}

.classroom-speed-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #CBD5E1;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.classroom-speed-btn:hover {
  background: rgba(14, 165, 233, 0.2);
  color: #FFFFFF;
}

/* Quick prev/next row directly under video */
.classroom-video-footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.classroom-progress-pill {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

/* Lesson Overview Header */
.classroom-overview-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.classroom-overview-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.classroom-overview-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.classroom-overview-desc {
  font-size: 0.875rem;
  color: var(--text-main);
  line-height: 1.5;
  opacity: 0.9;
}

/* Classroom Integrated Tabs Navigation */
.classroom-tabs-nav {
  display: flex;
  gap: 0.4rem;
  border-bottom: 2px solid var(--border-subtle);
  margin-bottom: 1.25rem;
  overflow-x: auto;
  padding-bottom: 2px;
}

.classroom-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.classroom-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
}

.classroom-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(14, 165, 233, 0.08);
}

.classroom-tab-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
}

.classroom-tab-btn.active .classroom-tab-badge {
  background: var(--primary);
  color: #FFFFFF;
}

/* Tab Content Panels */
.classroom-tab-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

/* Material & PDF Tab Styling */
.classroom-material-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.classroom-pdf-preview-box {
  width: 100%;
  height: 540px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: #0F172A;
  overflow: hidden;
  position: relative;
}

.classroom-pdf-preview-frame {
  width: 100%;
  height: 100%;
  border: none;
}

.classroom-pdf-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #F8FAFC;
  z-index: 5;
}

/* Flashcards Tab Styling */
.classroom-flashcards-box {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.classroom-flashcard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.classroom-card-3d {
  width: 100%;
  min-height: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
  position: relative;
}

.classroom-card-3d:hover {
  border-color: rgba(14, 165, 233, 0.35);
}

.classroom-card-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.classroom-card-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.6;
  white-space: pre-line;
  margin-bottom: 1.25rem;
}

.classroom-card-tip {
  font-size: 0.85rem;
  background: rgba(14, 165, 233, 0.08);
  border-left: 3px solid var(--primary);
  padding: 0.65rem 0.85rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-main);
  margin-top: 0.85rem;
}

.classroom-flashcard-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.classroom-eval-btns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-flash-hard {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #EF4444;
  font-weight: 600;
  font-size: 0.825rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-flash-hard:hover {
  background: #EF4444;
  color: #FFFFFF;
}

.btn-flash-med {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #F59E0B;
  font-weight: 600;
  font-size: 0.825rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-flash-med:hover {
  background: #F59E0B;
  color: #FFFFFF;
}

.btn-flash-easy {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10B981;
  font-weight: 600;
  font-size: 0.825rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-flash-easy:hover {
  background: #10B981;
  color: #FFFFFF;
}

/* Questions Tab Styling */
.classroom-questions-box {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.classroom-question-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.classroom-question-stem {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.classroom-alternatives-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.classroom-alt-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.classroom-alt-row:hover {
  border-color: rgba(14, 165, 233, 0.4);
  background: rgba(255, 255, 255, 0.04);
}

.classroom-alt-row.selected {
  border-color: var(--primary);
  background: rgba(14, 165, 233, 0.1);
}

.classroom-alt-row.strikethrough {
  text-decoration: line-through;
  opacity: 0.45;
  background: rgba(239, 68, 68, 0.04);
  border-color: rgba(239, 68, 68, 0.2);
}

.classroom-alt-row.correct-ans {
  border-color: #10B981 !important;
  background: rgba(16, 185, 129, 0.12) !important;
}

.classroom-alt-row.wrong-ans {
  border-color: #EF4444 !important;
  background: rgba(239, 68, 68, 0.12) !important;
}

.classroom-alt-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  font-weight: 700;
  font-size: 0.825rem;
  color: var(--text-main);
  flex-shrink: 0;
}

.classroom-alt-row.selected .classroom-alt-letter {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.classroom-alt-text {
  flex: 1;
  font-size: 0.925rem;
  color: var(--text-main);
  line-height: 1.5;
}

.classroom-alt-strike-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 0.25rem 0.45rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s ease;
}

.classroom-alt-strike-btn:hover {
  opacity: 1;
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.classroom-feedback-card {
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  line-height: 1.6;
  font-size: 0.925rem;
}

.classroom-feedback-card.correct {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid #10B981;
  color: var(--text-main);
}

.classroom-feedback-card.incorrect {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #EF4444;
  color: var(--text-main);
}

/* Sidebar Playlist Styling */
.classroom-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  position: sticky;
  top: 1rem;
}

.classroom-sidebar-header {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.classroom-sidebar-cover {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  border: 1px solid var(--border-subtle);
}

.classroom-sidebar-module-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.classroom-sidebar-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  margin: 0.5rem 0 0.35rem;
}

.classroom-sidebar-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #10B981);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.classroom-sidebar-progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.classroom-playlist-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

.classroom-playlist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.classroom-playlist-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-subtle);
}

.classroom-playlist-item.active {
  background: rgba(14, 165, 233, 0.12);
  border-color: var(--primary);
}

.classroom-playlist-item-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
}

.classroom-playlist-num {
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 20px;
  text-align: center;
}

.classroom-playlist-item.active .classroom-playlist-num {
  color: var(--primary);
}

.classroom-playlist-info {
  flex: 1;
  min-width: 0;
}

.classroom-playlist-title {
  font-size: 0.835rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.classroom-playlist-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.classroom-playlist-status {
  flex-shrink: 0;
  font-size: 0.85rem;
}

/* Light Mode Overrides for Classroom */
body.light-mode .classroom-top-bar,
body.light-mode .classroom-overview-card,
body.light-mode .classroom-tab-panel,
body.light-mode .classroom-sidebar,
body.light-mode .classroom-video-footer-nav {
  background: #FFFFFF !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

body.light-mode .classroom-back-btn {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #1E293B;
}

body.light-mode .classroom-overview-title,
body.light-mode .classroom-sidebar-module-name,
body.light-mode .classroom-card-text,
body.light-mode .classroom-question-stem,
body.light-mode .classroom-alt-text {
  color: #0F172A !important;
}

body.light-mode .classroom-overview-desc {
  color: #334155 !important;
}

body.light-mode .classroom-tab-btn {
  color: #64748B;
}

body.light-mode .classroom-tab-btn:hover {
  color: #0F172A;
  background: #F8FAFC;
}

body.light-mode .classroom-tab-btn.active {
  color: #0284C7;
  background: #E0F2FE;
  border-bottom-color: #0284C7;
}

body.light-mode .classroom-card-3d {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

body.light-mode .classroom-alt-row {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
}

body.light-mode .classroom-alt-row:hover {
  background: #F8FAFC !important;
  border-color: #94A3B8 !important;
}

body.light-mode .classroom-alt-row.selected {
  background: #E0F2FE !important;
  border-color: #0284C7 !important;
}

body.light-mode .classroom-alt-letter {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #0F172A;
}

body.light-mode .classroom-playlist-item {
  background: #FFFFFF;
}

body.light-mode .classroom-playlist-item:hover {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

body.light-mode .classroom-playlist-item.active {
  background: #E0F2FE !important;
  border-color: #0284C7 !important;
}

body.light-mode .classroom-playlist-title {
  color: #0F172A !important;
}

body.light-mode .classroom-sidebar-progress-track {
  background: #E2E8F0;
}

@media (max-width: 768px) {
  .classroom-top-bar {
    padding: 0.75rem 0.85rem;
    gap: 0.75rem;
  }
  .classroom-breadcrumb-wrap {
    width: 100%;
  }
  .classroom-top-actions {
    width: 100%;
    justify-content: space-between;
  }
  .classroom-top-actions .classroom-nav-btn {
    flex: 1;
    justify-content: center;
  }
  .classroom-video-footer-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.85rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    gap: 0.5rem;
  }
  .classroom-video-footer-nav button {
    max-width: 42% !important;
    padding: 0.45rem 0.65rem;
    font-size: 0.775rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .classroom-progress-pill {
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
  }
  .classroom-block-card {
    padding: 1rem 1.15rem;
  }
  .classroom-block-row {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .classroom-block-info {
    align-items: flex-start;
  }
  .classroom-block-icon {
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
  }
  .classroom-block-title {
    font-size: 1.05rem;
  }
  .classroom-block-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    gap: 0.75rem;
  }
  .classroom-block-action-btn {
    flex: 1;
    text-align: center;
    justify-content: center;
    padding: 0.65rem 1rem;
  }
  .classroom-pdf-preview-box {
    height: 380px;
  }
  .classroom-tab-btn {
    padding: 0.6rem 0.85rem;
    font-size: 0.825rem;
  }
}

/* Classroom Block Cards (Fixação e Flashcards) */
.classroom-block-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.classroom-block-card:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}
.classroom-block-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.classroom-block-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}
.classroom-block-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}
.classroom-block-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}
.classroom-block-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.classroom-block-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.classroom-block-count-badge {
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
  white-space: nowrap;
}
.classroom-block-action-btn {
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.classroom-block-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.classroom-block-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.classroom-block-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.classroom-block-feature i {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.classroom-block-feature div {
  display: flex;
  flex-direction: column;
}

.classroom-block-feature strong {
  font-size: 0.85rem;
  color: var(--text-main);
}

.classroom-block-feature span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Quick Strip below Lesson Header */
.classroom-lesson-blocks-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .classroom-lesson-blocks-strip {
    grid-template-columns: 1fr;
  }
}

.classroom-strip-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 0.75rem;
}

.classroom-strip-item:hover {
  background: rgba(14, 165, 233, 0.08);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.classroom-strip-item .strip-icon {
  font-size: 1.25rem;
}

.classroom-strip-item .strip-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.classroom-strip-item .strip-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.classroom-strip-item .strip-arrow {
  color: var(--text-muted);
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.classroom-strip-item:hover .strip-arrow {
  color: var(--primary);
  transform: translateX(3px);
}

/* Light mode overrides */
body.light-mode .classroom-block-card {
  background: #FFFFFF !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

body.light-mode .classroom-block-feature,
body.light-mode .classroom-strip-item {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}

body.light-mode .classroom-strip-item:hover {
  background: #E0F2FE !important;
  border-color: #0284C7 !important;
}

/* Social DRM Overlay for PDF Viewer */
.pdf-viewer-drm-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-35deg);
  pointer-events: none;
  z-index: 50;
  text-align: center;
  width: 90%;
  max-width: 650px;
  color: rgba(239, 68, 68, 0.45); /* Vermelho vivo com 45% de opacidade */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  user-select: none;
  -webkit-user-select: none;
}

.pdf-viewer-drm-overlay .drm-overlay-line-1 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  line-height: 1.4;
  text-shadow: 0 0 1px rgba(239, 68, 68, 0.25);
}

.pdf-viewer-drm-overlay .drm-overlay-line-2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.4;
  margin-top: 3px;
}

.pdf-viewer-drm-overlay .drm-overlay-line-3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 4px;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .pdf-viewer-drm-overlay .drm-overlay-line-1 {
    font-size: 0.92rem;
  }
  .pdf-viewer-drm-overlay .drm-overlay-line-2 {
    font-size: 0.8rem;
  }
  .pdf-viewer-drm-overlay .drm-overlay-line-3 {
    font-size: 0.68rem;
  }
}

/* ==========================================================================
   AMBULATÓRIO VIRTUAL - SÍNTESE MED (DESIGN SYSTEM & AUSCULTA/EXAMES)
   ========================================================================== */

.amb-container {
  padding: 0 0 3rem 0;
  color: var(--text-main);
  animation: fadeIn 0.3s ease-in-out;
}

.amb-header-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(59, 130, 246, 0.08) 50%, rgba(232, 148, 255, 0.06) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.85rem 2rem;
  margin-bottom: 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.amb-header-banner::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.amb-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 0.75rem;
}

.amb-main-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #FFFFFF;
}

.amb-main-title i {
  color: #10B981;
  filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.5));
}

.amb-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 780px;
  line-height: 1.5;
}

/* Nav Pills (Ausculta vs Exames) */
.amb-section-nav {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.amb-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.35rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid var(--border-subtle);
  background: rgba(17, 26, 48, 0.65);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
}

.amb-nav-btn:hover {
  background: rgba(22, 34, 64, 0.9);
  color: #FFFFFF;
  border-color: rgba(148, 185, 255, 0.35);
  transform: translateY(-1px);
}

.amb-nav-btn.active {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  border-color: #34D399;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
}

.amb-nav-btn.active.exames {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  border-color: #60A5FA;
  box-shadow: 0 4px 18px rgba(59, 130, 246, 0.35);
}

/* Medical Disclaimer Banner */
.amb-disclaimer-banner {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.25rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.825rem;
  line-height: 1.45;
  color: #FDE68A;
}

.amb-disclaimer-banner i {
  color: #F59E0B;
  font-size: 1.15rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Category Filter Bar */
.amb-category-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.amb-category-pill {
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.amb-category-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
}

.amb-category-pill.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10B981;
  color: #34D399;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

/* Disease Selection Cards Grid */
.amb-condition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.35rem;
}

.amb-condition-card {
  background: linear-gradient(145deg, #111A30 0%, #0E1629 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.amb-condition-card:hover {
  transform: translateY(-4px);
  border-color: rgba(148, 185, 255, 0.45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(148, 185, 255, 0.15);
}

.amb-condition-card:focus-visible {
  outline: 2px solid #10B981;
  outline-offset: 2px;
}

.amb-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  width: fit-content;
}

.amb-condition-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.35rem;
}

.amb-condition-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 1.15rem;
}

.amb-condition-meta {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  font-size: 0.785rem;
  color: var(--text-secondary);
  margin-bottom: 1.15rem;
}

.amb-condition-meta-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.amb-condition-meta-row:last-child {
  margin-bottom: 0;
}

.amb-condition-meta-row strong {
  color: #F8FAFC;
}

.amb-btn-start {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.amb-btn-start:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* ==========================================================================
   TELA DE AUSCULTA (TÓRAX INTERATIVO + CICLO CARDÍACO)
   ========================================================================== */

.amb-ausculta-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: rgba(17, 26, 48, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.35rem;
  margin-bottom: 1.5rem;
}

.amb-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.amb-back-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateX(-2px);
}

.amb-active-condition-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.amb-active-condition-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
}

/* Ausculta Workspace (2 Columns Grid) */
.amb-ausculta-workspace {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .amb-ausculta-workspace {
    grid-template-columns: 1fr;
  }
}

/* Thorax Card */
.amb-thorax-card {
  background: linear-gradient(145deg, #111A30 0%, #0C1222 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.amb-thorax-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.amb-thorax-hint {
  font-size: 0.785rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.amb-thorax-canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  background: radial-gradient(circle at 50% 50%, rgba(148, 185, 255, 0.05) 0%, rgba(12, 18, 34, 0.8) 75%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.amb-thorax-svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Foci Hotspots */
.amb-focus-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.amb-focus-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(17, 26, 48, 0.9);
  border: 2px solid #60A5FA;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #FFFFFF;
  box-shadow: 0 0 15px rgba(96, 165, 250, 0.35);
  transition: all 0.25s ease;
  position: relative;
}

.amb-focus-hotspot:hover .amb-focus-circle {
  transform: scale(1.15);
  border-color: #94B9FF;
  box-shadow: 0 0 22px rgba(148, 185, 255, 0.7);
}

.amb-focus-hotspot.active .amb-focus-circle {
  transform: scale(1.22);
  background: #10B981;
  border-color: #FFFFFF;
  color: #070B14;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.85);
}

.amb-focus-pulse {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 2px solid #10B981;
  opacity: 0;
  pointer-events: none;
}

.amb-focus-hotspot.active .amb-focus-pulse {
  animation: hotspotPulse 1.8s infinite;
}

@keyframes hotspotPulse {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Tooltip on Focus Hover */
.amb-focus-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(7, 11, 20, 0.95);
  border: 1px solid var(--border-active);
  color: #F8FAFC;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.725rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 30;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.amb-focus-hotspot:hover .amb-focus-tooltip,
.amb-focus-hotspot:focus-visible .amb-focus-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Animated Stethoscope Graphic Indicator */
.amb-stetho-target {
  position: absolute;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 15;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.amb-stetho-target::after {
  content: "";
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px dashed rgba(16, 185, 129, 0.85);
  animation: rotateStetho 8s linear infinite;
}

@keyframes rotateStetho {
  100% { transform: rotate(360deg); }
}

/* Audio Player Panel */
.amb-audio-panel {
  margin-top: 1.25rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
}

.amb-audio-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.amb-focus-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #34D399;
}

.amb-focus-status-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
}

.amb-focus-status-badge.playing .dot {
  animation: pulseDot 1s infinite alternate;
}

@keyframes pulseDot {
  0% { transform: scale(0.8); opacity: 0.4; }
  100% { transform: scale(1.3); opacity: 1; }
}

.amb-audio-controls-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.amb-audio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.06);
  color: #F8FAFC;
}

.amb-audio-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.amb-audio-btn.play-btn {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  border-color: #34D399;
  color: #FFFFFF;
}

.amb-audio-btn.play-btn:hover {
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.45);
}

.amb-audio-btn.play-btn.playing {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  border-color: #F87171;
}

.amb-audio-btn.loop-btn.active {
  background: rgba(59, 130, 246, 0.2);
  border-color: #60A5FA;
  color: #93C5FD;
}

.amb-vol-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.amb-vol-wrap input[type="range"] {
  width: 75px;
  accent-color: #10B981;
  cursor: pointer;
}

.amb-synth-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ==========================================================================
   ESQUEMA DO CICLO CARDÍACO & INTERPRETAÇÃO CLÍNICA
   ========================================================================== */

.amb-cycle-card {
  background: linear-gradient(145deg, #111A30 0%, #0C1222 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  margin-bottom: 1.5rem;
}

.amb-cycle-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.amb-cycle-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.amb-cycle-svg-wrap {
  position: relative;
  background: rgba(7, 11, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem;
  overflow: hidden;
}

.amb-cycle-scrubber-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #10B981;
  box-shadow: 0 0 10px #10B981, 0 0 20px #10B981;
  z-index: 10;
  pointer-events: none;
  transition: left 0.03s linear;
}

/* Semiologia & Interpretation Card */
.amb-interpretation-card {
  background: linear-gradient(145deg, #111A30 0%, #0E1629 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.amb-interp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
}

.amb-interp-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
}

.amb-interp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .amb-interp-grid {
    grid-template-columns: 1fr;
  }
}

.amb-interp-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.amb-interp-box-label {
  font-size: 0.725rem;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 0.35rem;
}

.amb-interp-box-val {
  font-size: 0.875rem;
  color: #F8FAFC;
  line-height: 1.45;
}

.amb-clinical-pearl-box {
  background: linear-gradient(135deg, rgba(232, 148, 255, 0.08) 0%, rgba(148, 185, 255, 0.05) 100%);
  border: 1px solid rgba(232, 148, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #E2E8F0;
}

.amb-clinical-pearl-box strong {
  color: #E894FF;
}

/* ==========================================================================
   INTERPRETAÇÃO DE EXAMES (ESTUDAR POR DOENÇA + DESAFIO CLÍNICO)
   ========================================================================== */

.amb-exams-mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(17, 26, 48, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.amb-mode-pills {
  display: flex;
  gap: 0.5rem;
}

.amb-mode-pill {
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.amb-mode-pill.active {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  border-color: #60A5FA;
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

.amb-exam-type-nav {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.35rem;
  flex-wrap: wrap;
}

.amb-exam-type-btn {
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.amb-exam-type-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.amb-exam-type-btn.active {
  background: rgba(59, 130, 246, 0.2);
  border-color: #3B82F6;
  color: #93C5FD;
}

/* Exam Card & Interactive Viewer */
.amb-exam-card {
  background: linear-gradient(145deg, #111A30 0%, #0E1629 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.amb-exam-viewer-frame {
  position: relative;
  background: #060913;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  overflow: hidden;
}

.amb-exam-svg-canvas {
  width: 100%;
  max-width: 820px;
  height: auto;
  border-radius: var(--radius-sm);
  background: #020617;
}

/* Exam Hotspot Pin */
.amb-exam-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.85);
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.7);
  transition: all 0.25s ease;
  z-index: 25;
}

.amb-exam-pin:hover, .amb-exam-pin.active {
  transform: translate(-50%, -50%) scale(1.3);
  background: #F59E0B;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.9);
}

/* Findings List / Pills */
.amb-findings-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.amb-finding-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.15rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.amb-finding-item:hover, .amb-finding-item.active {
  background: rgba(59, 130, 246, 0.1);
  border-color: #3B82F6;
  transform: translateX(4px);
}

.amb-finding-item-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #93C5FD;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.amb-finding-item-desc {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Desafio Clínico Quiz Card */
.amb-challenge-card {
  background: linear-gradient(145deg, #111A30 0%, #0E1629 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.amb-challenge-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #FBBF24;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.amb-vignette-box {
  background: rgba(0, 0, 0, 0.35);
  border-left: 4px solid #3B82F6;
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.5rem;
  font-size: 0.925rem;
  line-height: 1.6;
  color: #E2E8F0;
}

.amb-question-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  line-height: 1.45;
}

.amb-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.amb-option-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.885rem;
  color: #E2E8F0;
  line-height: 1.45;
}

.amb-option-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
}

.amb-option-card.selected {
  background: rgba(59, 130, 246, 0.15);
  border-color: #3B82F6;
  color: #FFFFFF;
}

.amb-option-letter {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.785rem;
  font-weight: 800;
  color: #94A3B8;
  flex-shrink: 0;
  margin-top: 1px;
}

.amb-option-card.selected .amb-option-letter {
  background: #3B82F6;
  color: #FFFFFF;
}

.amb-option-card.correct {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: #10B981 !important;
}

.amb-option-card.correct .amb-option-letter {
  background: #10B981 !important;
  color: #FFFFFF !important;
}

.amb-option-card.wrong {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: #EF4444 !important;
}

.amb-option-card.wrong .amb-option-letter {
  background: #EF4444 !important;
  color: #FFFFFF !important;
}

.amb-feedback-box {
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  animation: fadeIn 0.3s ease;
}

.amb-feedback-box.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #D1FAE5;
}

.amb-feedback-box.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #FEE2E2;
}

.amb-feedback-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   LIGHT THEME OVERRIDES
   ========================================================================== */

body.theme-light .amb-header-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(59, 130, 246, 0.06) 100%);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body.theme-light .amb-main-title {
  color: #0F172A;
}

body.theme-light .amb-nav-btn {
  background: #FFFFFF;
  border-color: #E2E8F0;
  color: #475569;
}

body.theme-light .amb-nav-btn:hover {
  background: #F8FAFC;
  color: #0F172A;
}

body.theme-light .amb-disclaimer-banner {
  background: #FFFBEB;
  border-color: #FCD34D;
  color: #92400E;
}

body.theme-light .amb-condition-card,
body.theme-light .amb-thorax-card,
body.theme-light .amb-cycle-card,
body.theme-light .amb-interpretation-card,
body.theme-light .amb-exam-card,
body.theme-light .amb-challenge-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

body.theme-light .amb-condition-title,
body.theme-light .amb-active-condition-name,
body.theme-light .amb-interp-title,
body.theme-light .amb-question-text {
  color: #0F172A;
}

body.theme-light .amb-condition-desc,
body.theme-light .amb-cycle-desc,
body.theme-light .amb-finding-item-desc {
  color: #475569;
}

body.theme-light .amb-condition-meta,
body.theme-light .amb-audio-panel,
body.theme-light .amb-vignette-box {
  background: #F8FAFC;
  border-color: #E2E8F0;
  color: #334155;
}

body.theme-light .amb-condition-meta-row strong {
  color: #0F172A;
}

body.theme-light .amb-ausculta-header-bar,
body.theme-light .amb-exams-mode-bar {
  background: #FFFFFF;
  border-color: #E2E8F0;
}

body.theme-light .amb-back-btn,
body.theme-light .amb-audio-btn {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #1E293B;
}

body.theme-light .amb-thorax-canvas-wrap {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

body.theme-light .amb-cycle-svg-wrap {
  background: #0B1120;
}

body.theme-light .amb-interp-box {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

body.theme-light .amb-interp-box-val {
  color: #0F172A;
}

body.theme-light .amb-clinical-pearl-box {
  background: #F5F3FF;
  border-color: #DDD6FE;
  color: #334155;
}

body.theme-light .amb-clinical-pearl-box strong {
  color: #7C3AED;
}

body.theme-light .amb-exam-viewer-frame {
  background: #0F172A;
}

body.theme-light .amb-finding-item {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

body.theme-light .amb-option-card {
  background: #F8FAFC;
  border-color: #E2E8F0;
  color: #1E293B;
}

body.theme-light .amb-option-letter {
  background: #E2E8F0;
  color: #475569;
}

/* ==========================================================================
   HEADER DROPDOWNS & CUSTOMIZE MODAL
   ========================================================================== */
.profile-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #0E1629;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
  z-index: 1050;
  min-width: 290px;
  max-width: 340px;
}

.notifications-dropdown-menu {
  position: fixed !important;
  top: 68px !important;
  right: 20px !important;
  background: #0E1629;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  z-index: 2500 !important;
  width: 360px;
  max-width: calc(100vw - 24px);
}

@media (max-width: 768px) {
  .notifications-dropdown-menu {
    top: 58px !important;
    right: 12px !important;
    left: auto !important;
    width: calc(100vw - 24px) !important;
  }
  #desempenho-global-stats-container {
    grid-template-columns: 1fr !important;
  }
}

body.theme-light .notifications-dropdown-menu,
body.theme-light .profile-dropdown-menu {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12) !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
}

.modal-backdrop.open,
.modal-backdrop[style*="display: flex"] {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.modal-card {
  background: #0F172A;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.75rem;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

body.theme-light .modal-card {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.15) !important;
}

.customize-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  gap: 0.75rem;
}

body.theme-light .customize-item-row {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}

/* ==========================================================================
   DR. SÍNTESE - ESTILO GOOGLE GEMINI COM HISTÓRICO DE CONVERSAS
   ========================================================================== */
.ai-history-sidebar {
  width: 270px;
  flex-shrink: 0;
  background: rgba(10, 16, 31, 0.95);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, width 0.25s ease;
  user-select: none;
}

body.theme-light .ai-history-sidebar {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}

body.theme-light #ai-chat-main-area {
  background: #FFFFFF !important;
}

.ai-session-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.825rem;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  gap: 0.5rem;
  border: 1px solid transparent;
}

.ai-session-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
}

body.theme-light .ai-session-item:hover {
  background: rgba(15, 23, 42, 0.05) !important;
  color: #0F172A !important;
}

.ai-session-item.active {
  background: rgba(79, 70, 229, 0.18);
  color: #FFFFFF;
  border-color: rgba(99, 102, 241, 0.4);
  font-weight: 600;
}

body.theme-light .ai-session-item.active {
  background: rgba(79, 70, 229, 0.1) !important;
  color: #4F46E5 !important;
  border-color: rgba(79, 70, 229, 0.25) !important;
}

.ai-session-del-btn {
  opacity: 0;
  color: #94A3B8;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 0.75rem;
  transition: opacity 0.15s, color 0.15s;
  padding: 3px 6px;
  border-radius: 4px;
}

.ai-session-item:hover .ai-session-del-btn {
  opacity: 1;
}

.ai-session-del-btn:hover {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.1);
}

/* Mobile toggle button & backdrop */
.ai-mobile-history-toggle {
  display: none !important;
}

.ai-history-backdrop {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
  z-index: 100;
  cursor: pointer;
}

@media (max-width: 768px) {
  .ai-mobile-history-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
    font-weight: 600;
  }
  .ai-history-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 285px;
    max-width: 85vw;
    z-index: 101;
    background: #0B1120 !important;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.95);
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
  body.theme-light .ai-history-sidebar {
    background: #FFFFFF !important;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.25);
  }
  .ai-history-sidebar.open {
    transform: translateX(0) !important;
  }
  .ai-history-backdrop.open {
    display: block !important;
  }
}

/* ==========================================================================
   MODAL TRILHA DE ESTUDO & VIDEO IFRAME EMBEDDING
   ========================================================================== */
#modal-trilha {
  z-index: 99999 !important;
}

#modal-trilha.open,
#modal-trilha[style*="display: flex"] {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.classroom-video-element,
.classroom-video-iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 420px;
  border-radius: 12px;
  display: block;
}

@media (max-width: 768px) {
  .classroom-video-element,
  .classroom-video-iframe {
    min-height: 240px;
  }
}

/* ==========================================================================
   TOAST NOTIFICATION CONTRAST & THEME AWARENESS
   ========================================================================== */
#sintese-app-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #0E1629 !important;
  color: #FFFFFF !important;
  border: 1px solid var(--border-active) !important;
  border-radius: var(--radius-md) !important;
  padding: 1rem 1.5rem !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
  z-index: 99999 !important;
  font-size: 0.9rem !important;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

body.theme-light #sintese-app-toast {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16) !important;
}

/* ==========================================================================
   CLASSROOM LAYOUT FIXES (IPAD & MOBILE RESPONSIVENESS)
   ========================================================================== */
.badge, .badge-primary, .badge-cyan, .badge-pink, .badge-emerald {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
}

@media (max-width: 1200px) {
  /* iPad e telas menores: Remove Dr. Síntese e Próximos Compromissos do Início */
  #view-inicio .dashboard-right {
    display: none !important;
  }
  #view-inicio .dashboard-grid {
    grid-template-columns: 1fr !important;
  }
  #view-inicio .dashboard-left {
    width: 100% !important;
    max-width: 100% !important;
  }

  .classroom-grid {
    grid-template-columns: 1fr !important;
  }
  .classroom-sidebar-col {
    width: 100% !important;
    margin-top: 1.5rem !important;
  }
  .classroom-block-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.85rem !important;
  }
  .classroom-block-actions {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-top: 0.5rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  }
  .classroom-block-action-btn {
    flex: 1 !important;
    text-align: center !important;
    justify-content: center !important;
  }
}

@media (max-width: 768px) {
  .classroom-container {
    padding: 0 0 140px 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  .classroom-video-wrapper {
    aspect-ratio: 16 / 9 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .classroom-player-center {
    padding: 0.5rem !important;
  }
  .classroom-player-title {
    font-size: 0.95rem !important;
  }
  .classroom-player-controls-bar {
    padding: 0.4rem 0.6rem !important;
    gap: 0.4rem !important;
  }
  .classroom-tabs-nav {
    display: flex !important;
    width: 100% !important;
    gap: 0.35rem !important;
    overflow-x: visible !important;
  }
  .classroom-tab-btn {
    flex: 1 !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0.65rem 0.5rem !important;
    font-size: 0.8rem !important;
    white-space: nowrap !important;
  }
  .classroom-tab-panel {
    padding: 1rem 0.75rem !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .classroom-notes-tab, .classroom-material-tab {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  #classroom-student-notes {
    min-height: 280px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
  }
  .classroom-pdf-preview-box {
    display: none !important;
  }
  .classroom-video-footer-nav {
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    padding: 0.6rem 0.85rem !important;
  }
  .classroom-video-footer-nav button {
    max-width: 100% !important;
    flex: 1 !important;
    min-width: 100px !important;
    font-size: 0.775rem !important;
  }
}

/* Dr. Síntese Desktop vs Mobile Header Switch */
.ai-topbar-desktop {
  display: flex !important;
}
.ai-topbar-mobile {
  display: none !important;
}

@media (max-width: 768px) {
  .ai-topbar-desktop {
    display: none !important;
  }
  .ai-topbar-mobile {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.65rem 0.85rem !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: #0B1120 !important;
  }
  body.theme-light .ai-topbar-mobile {
    background: #FFFFFF !important;
  }
}

/* ==========================================================================
   DR. SÍNTESE MOBILE FULLSCREEN MODE (GEMINI / CHATGPT STYLE)
   ========================================================================== */
.ai-widget-avatar {
  flex-shrink: 0 !important;
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  border-radius: 50% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.mobile-dr-sintese-mode .app-header,
body.mobile-dr-sintese-mode .desktop-only-header,
body.mobile-dr-sintese-mode .mobile-top-header,
body.mobile-dr-sintese-mode .mobile-bottom-bar,
body.mobile-dr-sintese-mode .mobile-bottom-nav,
body.mobile-dr-sintese-mode .app-sidebar,
body.mobile-dr-sintese-mode .sidebar-backdrop {
  display: none !important;
}

body.mobile-dr-sintese-mode .ai-topbar-desktop {
  display: none !important;
}

body.mobile-dr-sintese-mode .ai-topbar-mobile {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0.65rem 0.85rem !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: #0B1120 !important;
}

body.theme-light.mobile-dr-sintese-mode .ai-topbar-mobile {
  background: #FFFFFF !important;
}

body.mobile-dr-sintese-mode .app-layout {
  padding: 0 !important;
  margin: 0 !important;
}

body.mobile-dr-sintese-mode .app-content-wrapper {
  padding: 0 !important;
  margin: 0 !important;
}

body.mobile-dr-sintese-mode #view-ai-full {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  background: #070B14 !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100vh !important;
  height: 100dvh !important;
  width: 100vw !important;
}

body.theme-light.mobile-dr-sintese-mode #view-ai-full {
  background: #F8FAFC !important;
}

body.mobile-dr-sintese-mode #view-ai-full .glass-card {
  height: 100% !important;
  max-height: 100% !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body.mobile-dr-sintese-mode #ai-chat-main-area {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

body.mobile-dr-sintese-mode #ai-full-messages {
  flex: 1 !important;
  overflow-y: auto !important;
  padding-bottom: 1.5rem !important;
}

/* ==========================================================================
   TRILHAS MODAL: LARGE TOUCH TARGETS & ACCESSIBILITY ON MOBILE
   ========================================================================== */
.trilha-lesson-item-label {
  display: flex !important;
  align-items: center !important;
  gap: 0.85rem !important;
  padding: 0.75rem 0.85rem !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  user-select: none !important;
  transition: background 0.15s ease !important;
  margin-bottom: 4px !important;
}

.trilha-lesson-item-label:hover {
  background: rgba(56, 189, 248, 0.08) !important;
}

.trilha-lesson-item-checkbox {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  accent-color: #38BDF8 !important;
  cursor: pointer !important;
}

.trilha-lesson-item-title {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: var(--text-main) !important;
  line-height: 1.4 !important;
}

#trilha-lessons-selector-list {
  max-height: 440px !important;
}

