/* ==========================================================================
   Marketing Revolution Academy - Luxury Dark & Gold with White Cards
   Fondo de página: Oscuro profundo (#0a0c10)
   Tarjetas de texto e info: Blancas (#ffffff)
   Textos interiores: Negros (#0f172a, #334155) y Dorados (#c59b27, #997514)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
  /* Fondo general del sitio */
  --bg-main: #0a0c10;

  /* Tarjetas de texto e información (BLANCAS) */
  --bg-card: #ffffff;
  --bg-card-hover: #fcfcfd;
  --bg-subtle: #f8fafc;
  --bg-input: #f8fafc;
  
  /* Bordes */
  --border-color: #e2e8f0;
  --border-dark: #232936;
  --border-gold: rgba(197, 155, 39, 0.45);
  --border-gold-hover: rgba(197, 155, 39, 0.85);

  /* Colores de texto dentro de tarjetas blancas */
  --text-card: #0f172a;
  --text-card-muted: #475569;
  --text-card-subtle: #64748b;

  /* Textos sobre fondo oscuro exterior */
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Tonos Dorados Premium */
  --gold-primary: #c59b27;
  --gold-dark: #997514;
  --gold-light: #dfba6c;
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #edd892 50%, #b38600 100%);
  --gold-gradient-subtle: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);

  --success: #059669;
  --danger: #dc2626;
  --warning: #d97706;
  --info: #2563eb;

  /* Tipografías: Montserrat (Principal), Playfair Display (Editorial/Lujo) y JetBrains Mono (Código/IDs) */
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-editorial: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.35), 0 2px 6px -1px rgba(0, 0, 0, 0.2);
  --shadow-luxury: 0 10px 30px -5px rgba(0, 0, 0, 0.45), 0 0 15px rgba(212, 175, 55, 0.2);
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400; /* Montserrat Regular */
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--gold-dark);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--gold-primary);
}

/* ==========================================================================
   TIPOGRAFÍA: MONTSERRAT BOLD (Títulos) & MONTSERRAT REGULAR (Cuerpo/UI)
   ========================================================================== */
h1, h2, h3, h4, h5, h6, .font-heading, .font-serif {
  font-family: var(--font-heading);
  font-weight: 700; /* Montserrat Bold */
  letter-spacing: -0.02em;
  line-height: 1.25;
}

h1 {
  font-size: 2.2rem;
  font-weight: 800; /* Montserrat ExtraBold para Títulos de Alto Impacto */
  letter-spacing: -0.03em;
}

h2 {
  font-size: 1.75rem;
  font-weight: 700; /* Montserrat Bold */
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.35rem;
  font-weight: 700; /* Montserrat Bold */
  letter-spacing: -0.015em;
}

h4 {
  font-size: 1.1rem;
  font-weight: 700; /* Montserrat Bold */
}

p, span, li, label, .font-regular {
  font-family: var(--font-body);
  font-weight: 400; /* Montserrat Regular */
}

strong, b, .font-bold {
  font-family: var(--font-body);
  font-weight: 700; /* Montserrat Bold */
}

/* Tipografía de Lujo Complementaria: Playfair Display */
.font-editorial, .text-editorial {
  font-family: var(--font-editorial);
  letter-spacing: 0.01em;
}

/* Tipografía Monospace Complementaria: JetBrains Mono */
code, pre, .font-mono {
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.text-gold {
  color: var(--gold-dark) !important;
}

.text-gold-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header & Barra Superior */
.mra-navbar {
  background: rgba(14, 17, 23, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.mra-nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.mra-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mra-brand:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.mra-brand-logo {
  height: 46px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
  transition: filter 0.3s ease;
}

.mra-brand:hover .mra-brand-logo {
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.45));
}

.community-brand-block {
  background: #0a0c10;
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1rem 1.4rem;
  margin: 0 auto 0.75rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.community-brand-block:hover {
  transform: translateY(-2px);
  border-color: var(--gold-primary);
  box-shadow: 0 6px 24px rgba(197, 155, 39, 0.35);
}

.community-brand-logo {
  height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

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

.mra-nav-item a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.5rem 0;
  position: relative;
  display: inline-block;
}

.mra-nav-item a:hover {
  color: #ffffff;
}

.mra-nav-item.active a {
  color: #ffffff;
  font-weight: 600;
}

.mra-nav-item.active a::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
  border-radius: 2px;
}

.mra-nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* User Profile Menu & Dropdown */
.mra-user-menu {
  position: relative;
}

.mra-avatar-btn {
  background: none;
  border: 2px solid var(--gold-primary);
  border-radius: 50%;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mra-avatar-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.mra-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--bg-subtle);
}

.mra-avatar-initials {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #252b38;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.mra-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 270px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-luxury);
  padding: 0.5rem 0;
  z-index: 1050;
}

.mra-dropdown-menu.show {
  display: block;
}

.mra-dropdown-header {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.mra-dropdown-email {
  font-size: 0.85rem;
  color: var(--text-card);
  font-weight: 600;
  word-break: break-all;
}

.mra-dropdown-badge {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.15rem 0.6rem;
  background: var(--gold-gradient-subtle);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  color: var(--gold-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mra-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  color: var(--text-card);
  font-size: 0.9rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.mra-dropdown-item:hover {
  background: var(--bg-subtle);
  color: var(--gold-dark);
}

.mra-dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0.4rem 0;
}

/* Layout General */
.mra-main {
  flex: 1;
  padding: 2.25rem 1.5rem;
}

.mra-container {
  max-width: 1300px;
  margin: 0 auto;
}

/* Flash Messages */
.mra-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 500;
}

.mra-alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.mra-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* Botones Luxury */
.btn-mra {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700; /* Montserrat Bold */
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.btn-mra-gold {
  background: #0f172a;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: none;
  border: 1px solid #0f172a;
}

.btn-mra-gold:hover {
  background: #1e293b;
  border-color: #1e293b;
  transform: translateY(-1px);
}

.btn-mra-outline-gold {
  background: transparent;
  color: #334155 !important;
  border: 1px solid #cbd5e1;
  font-weight: 600;
}

.btn-mra-outline-gold:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a !important;
}

.btn-mra-dark {
  background: #0f172a;
  color: #ffffff !important;
  border: 1px solid #0f172a;
}

.btn-mra-dark:hover {
  background: #1e293b;
  border-color: #334155;
}

.btn-mra-danger {
  background: #fef2f2;
  color: #b91c1c !important;
  border: 1px solid #fecaca;
  font-weight: 600;
}

.btn-mra-danger:hover {
  background: #fee2e2;
  color: #991b1b !important;
}

/* Formularios y Entradas dentro de tarjetas blancas */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-card);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-card);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.2);
}

/* ==========================================================================
   VISTA: CLASSROOM (Módulos con tarjetas BLANCAS y progreso %)
   ========================================================================== */
.classroom-header {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.75rem;
}

.module-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.module-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold-hover);
  box-shadow: var(--shadow-luxury);
}

.module-card-banner {
  height: 180px;
  background: #12151c;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.module-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.module-card:hover .module-card-img {
  transform: scale(1.05);
}

.module-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 12, 16, 0.85) 0%, rgba(10, 12, 16, 0.2) 60%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.module-banner-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800; /* Montserrat ExtraBold */
  color: #ffffff;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.module-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  background: #ffffff;
}

.module-card-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.4rem;
}

.module-card-desc {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.module-progress-wrapper {
  margin-top: auto;
}

.module-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.module-progress-badge {
  background: var(--gold-gradient-subtle);
  border: 1px solid var(--border-gold);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-sm);
  color: var(--gold-dark);
  font-weight: 700;
}

.progress-bar-container {
  height: 8px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.progress-bar-fill.complete {
  background: linear-gradient(90deg, #059669 0%, #10b981 100%);
}

/* ==========================================================================
   VISTA: VISOR DE LECCIÓN (Panel blanco con textos negros y dorados)
   ========================================================================== */
.lesson-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 2rem;
  align-items: start;
}

/* Panel Izquierdo: Lista de lecciones */
.lesson-sidebar {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
  box-shadow: var(--shadow-card);
}

.lesson-sidebar-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}

.lesson-sidebar-module {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.lesson-items-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lesson-item-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid var(--border-color);
}

.lesson-item-link:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

.lesson-item-link.active {
  background: var(--gold-gradient-subtle);
  border-color: var(--gold-primary);
  color: var(--gold-dark);
  font-weight: 700;
}

.lesson-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #cbd5e1;
  color: transparent;
  font-size: 0.8rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.lesson-check-icon.checked {
  background: var(--success);
  border-color: var(--success);
  color: #ffffff;
}

/* Panel Derecho: Video & Contenido */
.lesson-content {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
}

.lesson-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.lesson-main-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  margin-bottom: 2rem;
  border: 1px solid #e2e8f0;
}

.video-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.lesson-body-text {
  color: #1e293b;
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.lesson-body-text p {
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   VISTA: COMMUNITY & MEMBERS (Tarjetas BLANCAS)
   ========================================================================== */
.community-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
  align-items: start;
}

.post-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  border-color: var(--border-gold-hover);
  box-shadow: var(--shadow-luxury);
}

.post-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.post-author-name {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.98rem;
}

.post-meta {
  font-size: 0.82rem;
  color: #64748b;
}

.post-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.post-content {
  color: #334155;
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

/* Comentarios del post */
.comments-section {
  border-top: 1px solid #f1f5f9;
  padding-top: 1.25rem;
  margin-top: 1rem;
}

.comment-bubble {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.75rem;
}

.comment-author {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 0.25rem;
}

.comment-text {
  font-size: 0.9rem;
  color: #1e293b;
}

/* Directorio de Miembros */
.members-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.member-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-card);
}

.member-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.member-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.member-status-dot.online {
  background: var(--success);
  box-shadow: 0 0 8px rgba(5, 150, 105, 0.7);
}

.member-status-dot.offline {
  background: #94a3b8;
}

/* Barra lateral de estadísticas de comunidad (Blanca) */
.community-sidebar-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.hero-brand-block {
  background: #0a0c10;
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.25rem 2rem;
  margin: 0 auto 1.5rem auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  max-width: 420px;
}

.hero-brand-logo {
  height: 72px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 15px rgba(212, 175, 55, 0.35));
}

.community-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  padding: 1rem 0;
  margin: 1.25rem 0;
}

.stat-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
}

.stat-label {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
}

/* ==========================================================================
   VISTA: TABLAS Y DASHBOARD ADMIN / AFILIADOS (BLANCOS)
   ========================================================================== */
.stats-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-gradient);
}

.stat-card-title {
  font-size: 0.85rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.stat-card-value {
  font-size: 1.9rem;
  font-weight: 800;
  color: #0f172a;
}

.mra-table-responsive {
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.mra-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.mra-table th {
  background: #f8fafc;
  padding: 1rem 1.25rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
}

.mra-table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.92rem;
  color: #1e293b;
}

.mra-table tr:hover td {
  background: #f8fafc;
}

/* Footer */
.mra-footer {
  border-top: 1px solid var(--border-dark);
  background: #090b0e;
  padding: 2.25rem 1.5rem;
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
  .lesson-layout, .community-layout {
    grid-template-columns: 1fr;
  }
  .mra-nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .mra-nav-container {
    height: 64px;
    padding: 0 1rem;
  }
  .mra-brand-logo {
    height: 38px;
    max-width: 155px;
  }
}
