/* ==========================================================
   4C ACADEMY — STYLES SYSTEM (v2.1)
   Plataforma Educativa Guiada e Interactiva de 9 Etapas
   ========================================================== */

:root {
  --bg-primary: #101114;
  --bg-card: rgba(26, 27, 34, 0.88);
  --bg-card-hover: rgba(36, 37, 46, 0.95);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(212, 175, 55, 0.4);
  
  --text-primary: #F3F4F6;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;

  /* Official Brand Palette from Avatar Sheet */
  --earth-primary: #794E41;
  --earth-dark: #5C382E;
  --earth-light: #9B6758;
  --gold-primary: #D4AF37;
  --gold-glow: rgba(212, 175, 55, 0.35);
  --green-mentor: #2E7D32;
  --green-light: #4CAF50;
  --fire-orange: #FF6B35;
  --blue-accent: #3B82F6;
  --purple-accent: #8B5CF6;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-main: 0 12px 36px -5px rgba(0, 0, 0, 0.65);
  --glass-backdrop: blur(16px);
  --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.hidden {
  display: none !important;
}

body.dark-theme {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(121, 78, 65, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(46, 125, 50, 0.14) 0%, transparent 45%);
}

h1, h2, h3, h4, .brand-title {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

/* ==========================================================
   CLASSROOM POP-UP MODAL OVERLAY STYLES
   ========================================================== */
.class-viewer-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 11, 14, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.class-viewer-modal.hidden {
  display: none !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.class-modal-card {
  max-width: 920px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(22, 24, 30, 0.96);
  border: 2px solid var(--gold-primary);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  padding: 28px;
  border-radius: var(--radius-lg);
  animation: modalPopIn 0.3s ease-out;
}

@keyframes modalPopIn {
  from { opacity: 0; transform: scale(0.95) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* 9 STEP CONNECTORS PROGRESS BAR */
.step-nav-bar-9 {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow-x: auto;
}

.step-9-pill {
  flex: 1;
  text-align: center;
  padding: 6px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.step-9-pill .num {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  margin-right: 4px;
  font-size: 0.65rem;
  line-height: 18px;
}

.step-9-pill.active {
  background: var(--earth-primary);
  color: #FFF;
  border: 1px solid var(--gold-primary);
  box-shadow: 0 2px 8px rgba(121, 78, 65, 0.5);
}

.step-9-pill.active .num {
  background: var(--gold-primary);
  color: #101114;
}

.step-9-pill.completed {
  background: rgba(46, 125, 50, 0.2);
  color: var(--green-light);
}

/* GAMIFIED EXERCISES CARDS */
.interactive-exercise-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.sortable-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  color: #FFF;
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.sortable-item:hover {
  border-color: var(--gold-primary);
  background: rgba(255, 255, 255, 0.08);
}

.sortable-item .item-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--earth-primary);
  color: #FFF;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

/* REGISTRATION MODAL */
.registration-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 14, 0.85);
  backdrop-filter: blur(12px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.registration-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.registration-card {
  max-width: 460px;
  width: 100%;
  border: 2px solid var(--gold-primary);
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

.registration-header h2 {
  font-size: 1.5rem;
  color: #FFF;
  margin-bottom: 6px;
}

.registration-header p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.user-avatar-initials {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--earth-primary), var(--gold-primary));
  color: #FFF;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 4px 12px var(--gold-glow);
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-main);
  transition: var(--transition-fast);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.glass-card.highlight-border {
  border-color: var(--border-accent);
  box-shadow: 0 10px 30px -5px rgba(212, 175, 55, 0.25);
}

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top Navigation Bar */
.top-header {
  height: 70px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  background: linear-gradient(135deg, var(--earth-primary), var(--gold-primary));
  color: #FFF;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px var(--gold-glow);
}

.brand-title {
  font-weight: 700;
  font-size: 1.15rem;
  color: #FFF;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  max-width: 100%;
}

.nav-links-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-divider-vertical {
  width: 1px;
  height: 24px;
  background: rgba(212, 175, 55, 0.35);
  margin: 0 4px;
  flex-shrink: 0;
}

.nav-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.nav-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-btn.active {
  background: var(--earth-primary);
  color: #FFF;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(121, 78, 65, 0.4);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.coin-badge, .streak-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-avatar-mini {
  position: relative;
}

.user-level-tag {
  position: absolute;
  bottom: -6px;
  right: -8px;
  background: var(--green-mentor);
  color: #FFF;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.main-content {
  flex: 1;
  padding: 32px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

.content-view {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.content-view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* MÓDULO 5: EL CLIENTE TE INVESTIGA — DESIGN SYSTEM */
.client-flow-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}

.flow-step-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.flow-step-card:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold-primary);
  transform: translateX(4px);
}

.flow-step-icon {
  font-size: 1.2rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  flex-shrink: 0;
}

.flow-arrow-connector {
  text-align: center;
  color: var(--gold-primary);
  font-size: 0.85rem;
  margin: -6px 0;
  opacity: 0.6;
}

.power-quote-banner {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(46, 125, 50, 0.15));
  border-left: 4px solid var(--gold-primary);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #FFF;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.trust-checklist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

.trust-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.trust-check-item.checked {
  background: rgba(46, 125, 50, 0.2);
  border-color: var(--green-light);
}

.real-cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0;
}

.real-case-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: all 0.3s ease;
}

.real-case-card:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.15);
}

.modo-cliente-banner {
  background: linear-gradient(135deg, #1E1B18, #2A241E);
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.25);
  margin: 20px 0;
}

/* OFFICIAL JESSIKA COACH AVATAR CARD & LIVE VOICE ENGINE */
.hero-coach-card {
  display: flex;
  gap: 32px;
  align-items: center;
  margin-bottom: 32px;
  background: linear-gradient(135deg, rgba(38, 27, 24, 0.95), rgba(20, 30, 22, 0.95));
  border: 1px solid rgba(121, 78, 65, 0.45);
}

.coach-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
  width: 240px;
  text-align: center;
}

.avatar-glow {
  position: absolute;
  inset: -12px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  animation: floatGlow 4s ease-in-out infinite alternate;
}

@keyframes floatGlow {
  0% { opacity: 0.5; transform: scale(0.98); }
  100% { opacity: 0.9; transform: scale(1.04); }
}

/* Official Welcome Portrait (Uncropped, Harmonious 140px x 190px) */
.welcome-avatar-wrapper {
  position: relative;
  width: 140px;
  height: 190px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  background: #141518;
}

.welcome-official-portrait {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
}

/* Hide floating persistent widget on routine screens for clean UX */
.floating-jessika-widget {
  display: none !important;
}

.official-avatar-card {
  position: relative;
  z-index: 1;
  background: rgba(12, 12, 15, 0.6);
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
  animation: breathe 3.5s ease-in-out infinite alternate;
}

@keyframes breathe {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-3px); }
}

.avatar-badge-tag {
  background: var(--earth-dark);
  color: var(--gold-primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 10px;
  border: 1px solid var(--border-accent);
}

.avatar-character-frame {
  position: relative;
  width: 160px;
  height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--gold-primary);
  box-shadow: var(--shadow-main);
  background: #141518;
  margin: 0 auto;
  transition: all 0.4s ease;
  animation: subtleHeadSway 5s ease-in-out infinite alternate;
}

@keyframes subtleHeadSway {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(0.8deg); }
  100% { transform: translateY(0px) rotate(-0.5deg); }
}

/* Talking Animation Overlay on Avatar Image */
.avatar-character-frame.speaking img {
  animation: talkingGlow 0.4s ease-in-out infinite alternate;
}

@keyframes talkingGlow {
  0% { filter: brightness(1) contrast(1); transform: scale(1.02); }
  100% { filter: brightness(1.12) contrast(1.06); transform: scale(1.05); }
}

/* Talking Waveform Mouth Effect Overlay */
.avatar-character-frame.speaking::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--gold-primary), var(--green-light), var(--gold-primary));
  box-shadow: 0 0 12px var(--gold-primary);
  animation: mouthWave 0.3s ease-in-out infinite alternate;
  z-index: 15;
}

@keyframes mouthWave {
  0% { opacity: 0.4; height: 3px; }
  100% { opacity: 1; height: 8px; }
}

.avatar-official-img,
.avatar-character-frame img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
  border-radius: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* Floating Jessika Companion Widget 24/7 */
.floating-jessika-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(16, 17, 20, 0.92);
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-full);
  padding: 8px 18px 8px 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px var(--gold-glow);
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-jessika-widget:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.8), 0 0 25px var(--gold-glow);
}

.widget-avatar-frame {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold-primary);
  position: relative;
  flex-shrink: 0;
}

.widget-avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.widget-text-box {
  display: flex;
  flex-direction: column;
}

.widget-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.widget-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* Floating Emotion Badge on Avatar */
.avatar-emotion-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(16, 17, 20, 0.85);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(8px);
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  animation: badgePop 0.3s ease;
}

@keyframes badgePop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* BULLETPROOF JESSIKA AVATAR FRAME CONTAINER */
.avatar-character-frame {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden !important; /* MÁSCARA ESTRICTA PARA OCULTAR LAS DEMÁS POSTURAS */
  border: 3px solid var(--gold-primary);
  background: var(--dark-surface);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* JESSIKA OFFICIAL 10 EMOTIONS SPRITE SYSTEM (500% W x 200% H) */
.avatar-character-frame .avatar-official-img {
  width: 500% !important;
  height: 200% !important;
  max-width: none !important;
  max-height: none !important;
  display: block;
  transition: margin 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s ease;
  object-fit: fill !important;
}

/* EMOCIÓN 1: BIENVENIDA (Imagen Principal Limpia dedicada) */
.avatar-character-frame.emotion-bienvenida .avatar-official-img {
  width: 100% !important;
  height: 100% !important;
  margin-left: 0 !important;
  margin-top: 0 !important;
  object-fit: cover !important;
  object-position: center 15% !important;
}

/* EMOCIÓN 2: PENSANDO (Tarjeta 2 - Fila 1 Columna 2) */
.avatar-character-frame.emotion-pensando .avatar-official-img {
  margin-left: -100% !important;
  margin-top: 0% !important;
}

/* EMOCIÓN 3: EXPLICANDO (Tarjeta 3 - Fila 1 Columna 3) */
.avatar-character-frame.emotion-explicando .avatar-official-img {
  margin-left: -200% !important;
  margin-top: 0% !important;
}

/* EMOCIÓN 4: APLAUDIENDO (Tarjeta 4 - Fila 1 Columna 4) */
.avatar-character-frame.emotion-aplaudiendo .avatar-official-img {
  margin-left: -300% !important;
  margin-top: 0% !important;
}

/* EMOCIÓN 5: CELEBRANDO (Tarjeta 5 - Fila 1 Columna 5) */
.avatar-character-frame.emotion-celebrando .avatar-official-img,
.avatar-character-frame.emotion-orgullosa .avatar-official-img {
  margin-left: -400% !important;
  margin-top: 0% !important;
}

/* EMOCIÓN 6: ESCUCHANDO (Tarjeta 6 - Fila 2 Columna 1) */
.avatar-character-frame.emotion-escuchando .avatar-official-img {
  margin-left: 0% !important;
  margin-top: -100% !important;
}

/* EMOCIÓN 7: SORPRENDIDA (Tarjeta 7 - Fila 2 Columna 2) */
.avatar-character-frame.emotion-sorprendida .avatar-official-img {
  margin-left: -100% !important;
  margin-top: -100% !important;
}

/* EMOCIÓN 8: MOTIVANDO (Tarjeta 8 - Fila 2 Columna 3) */
.avatar-character-frame.emotion-motivando .avatar-official-img {
  margin-left: -200% !important;
  margin-top: -100% !important;
}

/* EMOCIÓN 9: APOYO / ERROR (Tarjeta 9 - Fila 2 Columna 4) */
.avatar-character-frame.emotion-apoyo .avatar-official-img,
.avatar-character-frame.emotion-error .avatar-official-img {
  margin-left: -300% !important;
  margin-top: -100% !important;
}

/* EMOCIÓN 10: CERTIFICADO (Tarjeta 10 - Fila 2 Columna 5) */
.avatar-character-frame.emotion-certificado .avatar-official-img {
  margin-left: -400% !important;
  margin-top: -100% !important;
}

@keyframes headTilt {
  0% { transform: scale(1.45) rotate(0deg); }
  50% { transform: scale(1.45) rotate(1.2deg); }
  100% { transform: scale(1.45) rotate(-1deg); }
}

.avatar-blink-overlay {
  position: absolute;
  top: 36%;
  left: 28%;
  width: 44%;
  height: 8%;
  background: rgba(230, 180, 148, 0.95);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: blinkEye 4.5s infinite;
}

@keyframes blinkEye {
  0%, 96%, 100% { opacity: 0; transform: scaleY(0); }
  98% { opacity: 0.95; transform: scaleY(1); }
}

.emotion-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
}

.emotion-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.emotion-chip.active, .emotion-chip:hover {
  background: var(--earth-primary);
  color: #FFF;
  border-color: var(--gold-primary);
  box-shadow: 0 2px 8px rgba(121, 78, 65, 0.5);
}

/* Voice Player Button & Wave indicator */
.voice-control-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-voice {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.btn-voice:hover {
  background: var(--gold-primary);
  color: #101114;
  box-shadow: 0 4px 14px var(--gold-glow);
}

.btn-voice.speaking {
  background: var(--green-mentor);
  color: #FFF;
  border-color: var(--green-light);
  animation: pulseVoice 1.2s infinite alternate;
}

@keyframes pulseVoice {
  0% { transform: scale(1); box-shadow: 0 0 4px var(--green-light); }
  100% { transform: scale(1.04); box-shadow: 0 0 16px var(--green-light); }
}

.coach-speech-content {
  flex: 1;
}

.speech-bubble {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
}

.speech-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.coach-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFF;
}

.coach-role {
  font-size: 0.78rem;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.speech-text {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #E5E7EB;
  margin-bottom: 12px;
}

.speech-quote-footer {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 8px;
}

.daily-mission-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(46, 125, 50, 0.12);
  border: 1px solid rgba(76, 175, 80, 0.35);
  padding: 16px 20px;
  border-radius: var(--radius-md);
}

.mission-icon {
  width: 48px;
  height: 48px;
  background: var(--green-mentor);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #FFF;
  flex-shrink: 0;
}

.mission-details {
  flex: 1;
}

.mission-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-light);
  font-weight: 700;
}

.mission-title {
  font-size: 1.05rem;
  color: #FFF;
  margin: 2px 0 4px;
}

.mission-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Action Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--earth-primary), var(--earth-dark));
  color: #FFF;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--earth-light), var(--earth-primary));
  transform: translateY(-2px);
}

.glow-btn {
  box-shadow: 0 4px 16px rgba(121, 78, 65, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Stats Overview Grid */
.stats-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.stat-title {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #FFF;
}

.stat-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.progress-bar-container {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-primary), var(--earth-primary));
  border-radius: var(--radius-full);
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.igc-badge-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.igc-tag {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.igc-tag.green { background: rgba(76, 175, 80, 0.15); color: var(--green-light); }
.igc-tag.gold { background: rgba(212, 175, 55, 0.15); color: var(--gold-primary); }

.streak-mini-days {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.streak-mini-days .day {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.streak-mini-days .day.active {
  background: var(--fire-orange);
  color: #FFF;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

/* Dashboard Columns */
.dashboard-columns {
  display: flex;
  gap: 24px;
}

.flex-2 { flex: 2; }
.flex-1 { flex: 1; }

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

.card-header-row h2 {
  font-size: 1.15rem;
  font-weight: 600;
}

.sub-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.skill-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.skill-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.skill-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.bar-fill.green { background: var(--green-light); }
.bar-fill.gold { background: var(--gold-primary); }

.quick-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.quick-btn,
.quiz-opt-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  color: #FFFFFF;
  cursor: pointer !important;
  pointer-events: auto !important;
  text-align: left;
  transition: var(--transition-fast);
  width: 100%;
}

.quick-btn:hover,
.quiz-opt-btn:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold-primary);
  transform: translateX(4px);
}

.icon-box {
  width: 38px;
  height: 38px;
  background: rgba(121, 78, 65, 0.25);
  color: var(--earth-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.btn-text strong {
  display: block;
  font-size: 0.92rem;
  color: #FFF;
}

.btn-text span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.recent-simulations-list h3 {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.history-info strong {
  display: block;
  font-size: 0.85rem;
}

.history-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.score-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.score-badge.green { background: rgba(76, 175, 80, 0.2); color: var(--green-light); }

.text-gold { color: var(--gold-primary); }
.text-green { color: var(--green-light); }
.text-fire { color: var(--fire-orange); }
.text-muted { color: var(--text-muted); }
.icon-gold { color: var(--gold-primary); font-size: 1.2rem; }
.icon-green { color: var(--green-light); font-size: 1.2rem; }
.icon-fire { color: var(--fire-orange); font-size: 1.2rem; }

/* CERTIFICATE GENERATOR STYLES */
.certificate-generator-wrapper {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
}

.cert-controls-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cert-diploma-card {
  background: #0D0E10;
  border: 4px double var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8);
  color: #F3F4F6;
  text-align: center;
  overflow: hidden;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 60%);
}

.diploma-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  user-select: none;
  font-family: 'Outfit', sans-serif;
}

.diploma-header {
  margin-bottom: 24px;
}

.diploma-badge-logo {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--earth-primary), var(--gold-primary));
  color: #FFF;
  font-size: 1.8rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 4px 16px var(--gold-glow);
}

.diploma-header h2 {
  font-size: 1.8rem;
  color: var(--gold-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.diploma-header p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.diploma-recipient {
  margin: 28px 0;
}

.diploma-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.student-certified-name {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #FFF;
  margin: 8px 0;
  border-bottom: 2px solid var(--gold-primary);
  display: inline-block;
  padding-bottom: 4px;
}

.certified-title {
  font-size: 1.2rem;
  color: var(--green-light);
  font-weight: 600;
  margin-top: 6px;
}

.diploma-body-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #D1D5DB;
  max-width: 650px;
  margin: 0 auto 32px;
}

.diploma-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
}

.founder-signature {
  text-align: left;
}

.signature-line {
  font-family: 'Brush Script MT', cursive, sans-serif;
  font-size: 1.8rem;
  color: var(--gold-primary);
  margin-bottom: 4px;
}

.founder-title {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.cert-qr-box {
  background: #FFF;
  padding: 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.cert-verification-details {
  text-align: right;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cert-id-code {
  font-family: monospace;
  color: var(--gold-primary);
  font-weight: 700;
}

/* SIMULATOR LAYOUT */
.simulator-layout {
  display: grid;
  grid-template-columns: 320px 1fr 340px;
  gap: 20px;
  height: calc(100vh - 140px);
}

.scenario-selector-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.custom-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #FFF;
  padding: 10px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  outline: none;
}

.client-profile-card {
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.client-avatar {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--gold-primary);
}

.client-details h4 { font-size: 0.95rem; color: #FFF; }
.client-details span { font-size: 0.75rem; color: var(--text-secondary); display: block; margin-bottom: 6px; }

.client-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { font-size: 0.65rem; background: rgba(255, 255, 255, 0.06); padding: 2px 6px; border-radius: 4px; color: var(--text-secondary); }

.simulator-options { display: flex; flex-direction: column; gap: 12px; }

.toggle-control {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.mirror-btn { width: 100%; font-size: 0.8rem; }

.coach-mini-hint {
  display: flex;
  gap: 10px;
  background: rgba(121, 78, 65, 0.2);
  border: 1px dashed var(--earth-light);
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  line-height: 1.4;
  color: #E5E7EB;
  margin-top: auto;
}

.coach-avatar-tiny {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--gold-primary);
  flex-shrink: 0;
}

.coach-avatar-tiny img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 18% 28%;
  transform: scale(1.4);
}

/* Chat Workspace */
.chat-workspace-panel {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.2);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}
.status-dot.online { background: var(--green-light); box-shadow: 0 0 8px var(--green-light); }

.chat-messages-container {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message-bubble {
  max-width: 80%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  line-height: 1.5;
  position: relative;
}

.message-bubble.client {
  background: rgba(255, 255, 255, 0.07);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.message-bubble.user {
  background: linear-gradient(135deg, var(--earth-dark), var(--earth-primary));
  align-self: flex-end;
  color: #FFF;
  border-bottom-right-radius: 4px;
}

.mind-bubble {
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: #DDD6FE;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-input-area {
  padding: 16px;
  border-top: 1px solid var(--border-color);
  background: rgba(0,0,0,0.3);
}

.suggested-responses {
  margin-bottom: 10px;
}

.suggest-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

.chip-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  cursor: pointer;
  margin-right: 6px;
  margin-bottom: 6px;
  text-align: left;
  transition: var(--transition-fast);
}

.chip-btn:hover {
  border-color: var(--gold-primary);
  color: #FFF;
}

.input-wrapper {
  display: flex;
  gap: 12px;
}

.input-wrapper textarea {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: #FFF;
  font-size: 0.9rem;
  outline: none;
  resize: none;
}

/* Feedback Report Panel */
.feedback-report-panel {
  overflow-y: auto;
}

.report-section-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
}

.report-section-box h4 {
  font-size: 0.88rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.report-section-box ul {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding-left: 16px;
  line-height: 1.5;
}

/* AUDITOR IA 360 */
.auditor-header-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.auditor-title-group h2 { font-size: 1.3rem; margin-bottom: 6px; }
.auditor-title-group p { font-size: 0.88rem; color: var(--text-secondary); }

.auditor-rule-badge {
  background: rgba(46, 125, 50, 0.15);
  border: 1px solid var(--green-light);
  color: var(--green-light);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
}

.auditor-workspace-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}

.auditor-type-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tab-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--earth-primary);
  color: #FFF;
  border-color: var(--earth-light);
}

.custom-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: #FFF;
  padding: 12px;
  font-size: 0.88rem;
  outline: none;
}

.width-full { width: 100%; margin-top: 16px; }

.audit-score-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.c-score-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: var(--radius-md);
  text-align: center;
}

.c-score-box strong { font-size: 1.4rem; display: block; }
.c-score-box span { font-size: 0.75rem; color: var(--text-muted); }

/* JOURNEY & MODULES */
.journey-header { margin-bottom: 24px; }

.journey-modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  transition: var(--transition-fast);
}

.module-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
}

.module-number {
  font-size: 0.75rem;
  color: var(--gold-primary);
  font-weight: 700;
  text-transform: uppercase;
}

.module-card h3 { font-size: 1.1rem; color: #FFF; margin: 6px 0 10px; }
.module-card p { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.4; }

/* GAMIFICATION & BADGES */
.gamification-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.badge-card {
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 14px;
  border-radius: var(--radius-md);
}

.badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.badge-info h4 { font-size: 0.9rem; color: #FFF; }
.badge-info p { font-size: 0.75rem; color: var(--text-secondary); margin-top: 4px; }

.shop-list { display: flex; flex-direction: column; gap: 14px; }

.shop-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.shop-info { flex: 1; }
.shop-info strong { font-size: 0.9rem; display: block; color: #FFF; }
.shop-info span { font-size: 0.78rem; color: var(--text-muted); }

/* MARKETPLACE PROFILE */
.marketplace-profile-card { padding: 32px; }

.profile-header-banner {
  display: flex;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.profile-avatar-large img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid var(--gold-primary);
}

.profile-main-info h2 { font-size: 1.4rem; color: #FFF; }
.badge-consultant {
  font-size: 0.75rem;
  background: var(--green-mentor);
  color: #FFF;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  margin-left: 8px;
}

.profile-title { font-size: 0.92rem; color: var(--gold-primary); margin: 4px 0 10px; }

.profile-meta {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.profile-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.detail-box h4 { font-size: 0.95rem; margin-bottom: 12px; color: var(--text-primary); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

/* Responsive Mobile First */
@media (max-width: 1024px) {
  .simulator-layout { grid-template-columns: 1fr; height: auto; }
  .certificate-generator-wrapper { grid-template-columns: 1fr; }
  .stats-overview-grid { grid-template-columns: 1fr; }
  .dashboard-columns { flex-direction: column; }
  .journey-modules-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .navbar { flex-direction: column; gap: 12px; padding: 16px; }
  .nav-links { width: 100%; overflow-x: auto; }
  .hero-coach-card { flex-direction: column; text-align: center; }
  .journey-modules-grid { grid-template-columns: 1fr; }
  .diploma-footer { flex-direction: column; align-items: center; gap: 16px; }
}

/* BIBLIOTECA DE INDUSTRIAS — DESIGN SYSTEM */
.industry-categories-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 20px;
  scrollbar-width: thin;
}

.industry-cat-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.industry-cat-chip:hover,
.industry-cat-chip.active {
  background: linear-gradient(135deg, var(--gold-primary), #B8860B);
  color: #FFF;
  border-color: var(--gold-primary);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

.industry-subcats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.industry-subcat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.25s ease;
}

.industry-subcat-card:hover,
.industry-subcat-card.active {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

.industry-subcat-card i {
  font-size: 1.3rem;
  color: var(--gold-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.industry-spec-sheet {
  background: rgba(22, 23, 27, 0.95);
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.industry-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

.spec-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.spec-box h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* MODAL SYSTEM OVERLAY */
.modal-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(8px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 9990 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.modal-backdrop.hidden {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* SELECT & DROPDOWN POPUP OPTIONS — HIGH CONTRAST BLACK TEXT */
select.custom-select,
.custom-select {
  background: rgba(22, 23, 27, 0.95) !important;
  color: #FFFFFF !important;
  border: 1px solid var(--gold-primary) !important;
  border-radius: var(--radius-md) !important;
  padding: 12px 16px !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  width: 100% !important;
  cursor: pointer !important;
  outline: none !important;
}

select.custom-select:focus,
.custom-select:focus {
  border-color: var(--gold-primary) !important;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4) !important;
}

/* HIGH VISIBILITY BLACK TEXT FOR POPUP DROPDOWN OPTIONS & CATEGORIES */
select.custom-select option,
.custom-select option,
select option {
  background-color: #FFFFFF !important;
  color: #111111 !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  padding: 10px !important;
}

select.custom-select optgroup,
.custom-select optgroup,
select optgroup {
  background-color: #E2E8F0 !important;
  color: #000000 !important;
  font-weight: 800 !important;
  font-size: 1rem !important;
  font-style: normal !important;
  padding: 8px 6px !important;
}

.modal-container {
  background: rgba(22, 23, 27, 0.96) !important;
  border: 2px solid var(--gold-primary) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.35) !important;
}

/* ==========================================================
   PRINT STYLES FOR DIPLOMA CERTIFICATE EXPORT (PDF)
   ========================================================== */
@media print {
  body {
    background: #FFFFFF !important;
    color: #111111 !important;
  }

  /* Hide navigation, sidebars, controls, overlays */
  .sidebar,
  .top-header,
  .cert-controls-panel,
  .modal-backdrop,
  .floating-jessika-widget,
  .nav-btn,
  .btn-primary,
  .btn-secondary {
    display: none !important;
  }

  /* Position Diploma full-width and centered on print page */
  .main-content {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  #view-certificates {
    display: block !important;
  }

  .certificate-generator-wrapper {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .cert-diploma-card {
    background: #FFFFFF !important;
    border: 8px double #D4AF37 !important;
    color: #111111 !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 40px !important;
    margin: 0 auto !important;
    page-break-inside: avoid !important;
  }

  .diploma-header h2,
  .diploma-recipient h1,
  .cert-gold-seal span,
  .signature-line {
    color: #996515 !important;
  }

  .diploma-body-text,
  .diploma-header p,
  .diploma-label,
  .cert-verification-details span {
    color: #222222 !important;
  }
}

/* ========================================== */
/* WHATSAPP UI STYLES FOR SIMULATOR           */
/* ========================================== */
.whatsapp-chat-panel {
  background: #0B141A !important;
  border: 1px solid rgba(37, 211, 102, 0.35) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6) !important;
}

.whatsapp-chat-header {
  background: #1F2C34 !important;
  border-bottom: 1px solid #2A3942 !important;
  padding: 12px 18px !important;
}

.wa-brand-icon {
  font-size: 1.6rem;
  color: #25D366;
  margin-right: 8px;
}

.whatsapp-messages-container {
  background-color: #0B141A !important;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) !important;
  background-size: 20px 20px !important;
  padding: 18px !important;
}

.wa-date-divider {
  text-align: center;
  margin: 10px 0;
}

.wa-date-chip {
  background: #182229;
  color: #8696A0;
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wa-msg-client {
  background: #202C33 !important;
  color: #E9EDEF !important;
  border-radius: 8px 8px 8px 0px !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
  padding: 10px 14px !important;
  max-width: 82% !important;
  border: none !important;
}

.wa-msg-user {
  background: #005C4B !important;
  color: #E9EDEF !important;
  border-radius: 8px 8px 0px 8px !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
  padding: 10px 14px !important;
  max-width: 82% !important;
  border: none !important;
}

.wa-msg-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 0.68rem;
  color: rgba(241, 241, 241, 0.6);
  margin-top: 4px;
}

.wa-double-check {
  color: #53BDEB;
  font-size: 0.8rem;
}

.whatsapp-input-area {
  background: #202C33 !important;
  border-top: 1px solid #2A3942 !important;
  padding: 12px 16px !important;
}

.wa-input-box {
  background: #2A3942 !important;
  border: 1.5px solid var(--gold-primary) !important;
  color: #E9EDEF !important;
  border-radius: 14px !important;
  padding: 14px 18px !important;
  font-size: 1rem !important;
  min-height: 54px !important;
  height: 54px !important;
}

.wa-send-btn {
  background: #00A884 !important;
  color: #FFF !important;
  border-radius: 50% !important;
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 8px rgba(0,168,132,0.4) !important;
}

.wa-send-btn:hover {
  background: #06CF9C !important;
  transform: scale(1.05) !important;
}

/* SENIOR IA EXECUTIVE THICK CHAT BAR (v=84) */
#trainer-user-input, .thick-senior-chat-input {
  height: 58px !important;
  min-height: 58px !important;
  padding: 14px 20px !important;
  font-size: 1.05rem !important;
  border-radius: 14px !important;
  background: rgba(15, 15, 15, 0.98) !important;
  border: 2px solid var(--gold-primary) !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.35) !important;
  transition: all 0.2s ease-in-out !important;
}

#trainer-user-input:focus, .thick-senior-chat-input:focus {
  border-color: #FFF !important;
  box-shadow: 0 0 22px rgba(212, 175, 55, 0.6) !important;
}

/* Responsive Welcome Video Player (v=101) */
.welcome-video-container {
  flex: 1.1;
  min-width: 290px;
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

#welcome-post-ad-video {
  width: 100% !important;
  height: auto !important;
  max-height: 75vh !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #000 !important;
  border-radius: 18px !important;
  display: block !important;
  cursor: pointer !important;
}

@media (max-width: 768px) {
  .welcome-video-container {
    max-width: 100% !important;
  }
  #welcome-post-ad-video {
    max-height: 70vh !important;
    object-fit: contain !important;
    object-position: center !important;
  }
}

/* ========================================== */
/* SIDEBAR & NEW LAYOUT STYLES                */
/* ========================================== */
.sidebar-left {
  width: 260px;
  flex-shrink: 0;
  background: rgba(15, 16, 20, 0.95);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  overflow-y: auto;
  transition: transform 0.3s ease;
  z-index: 900;
}

.sidebar-section {
  margin-bottom: 32px;
}

.sidebar-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 800;
  margin-bottom: 12px;
  padding-left: 8px;
  letter-spacing: 1px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-nav .nav-btn {
  justify-content: flex-start;
  padding: 12px 16px;
  width: 100%;
  border-radius: 12px;
  font-size: 0.95rem;
}

.highlight-nav .nav-btn {
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.3);
}

@media (max-width: 992px) {
  .nav-brand .brand-sub {
    display: none;
  }
  .top-header {
    padding: 12px 16px !important;
  }
}

/* ==========================================================
   PARTNERS 4C — SISTEMA DE ESTILOS Y COMPONENTES
   ========================================================== */
.partner-hero-banner {
  background: linear-gradient(135deg, rgba(212,175,55,0.15) 0%, rgba(26,27,34,0.95) 50%, rgba(46,125,50,0.12) 100%);
  border: 1.5px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  margin-bottom: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
}

.partner-modalities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.partner-modality-card {
  background: rgba(22, 24, 30, 0.9);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.partner-modality-card:hover, .partner-modality-card.selected {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.06);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.15);
  transform: translateY(-2px);
}

.partner-modality-card.featured {
  border-color: var(--gold-primary);
  position: relative;
}

.kpi-grid-partners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card-partner {
  background: rgba(26, 27, 34, 0.95);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.kpi-card-partner .kpi-icon {
  font-size: 1.4rem;
  color: var(--gold-primary);
  margin-bottom: 8px;
}

.kpi-card-partner .kpi-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFF;
  font-family: 'Outfit', sans-serif;
}

.kpi-card-partner .kpi-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.partner-table-container {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: rgba(18, 19, 24, 0.95);
}

.partner-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.partner-table th {
  background: rgba(255, 255, 255, 0.04);
  padding: 14px 16px;
  color: var(--gold-primary);
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.partner-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.partner-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.partner-badge.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.partner-badge.validated {
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.partner-badge.paid {
  background: rgba(46, 125, 50, 0.2);
  color: #4CAF50;
  border: 1px solid #4CAF50;
}

.partner-badge.canceled, .partner-badge.refunded, .partner-badge.rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.partner-badge.commercial {
  background: rgba(212, 175, 55, 0.18);
  color: var(--gold-primary);
  border: 1px solid var(--gold-primary);
}

.partner-badge.referral {
  background: rgba(139, 92, 246, 0.15);
  color: #C084FC;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.partner-tabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 20px;
  overflow-x: auto;
}

.partner-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.partner-tab-btn:hover {
  color: #FFF;
  background: rgba(255, 255, 255, 0.05);
}

.partner-tab-btn.active {
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--gold-primary);
}

.kit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.kit-card {
  background: rgba(22, 24, 30, 0.95);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-fast);
}

.kit-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.partner-link-box {
  background: rgba(0, 0, 0, 0.5);
  border: 1.5px solid var(--gold-primary);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.partner-link-box input {
  background: transparent;
  border: none;
  color: #FFF;
  font-weight: 700;
  font-size: 0.95rem;
  flex: 1;
  min-width: 200px;
  outline: none;
}

/* ==========================================================
   DIRECTOR CREATIVO 4C — ESTILOS TDAH-FRIENDLY & RESPONSIVE
   ========================================================== */
.creative-subtab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.creative-subtab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFF;
}

.creative-subtab-btn.active {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.creative-view-mode-btn {
  background: transparent;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.creative-view-mode-btn.active {
  background: var(--gold-primary);
  color: #000;
  font-weight: 800;
}

.wizard-pane {
  display: none;
}

.wizard-pane.active {
  display: block;
}

/* Tarjetas de 3 Segundos */
.seconds-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 14px 0;
}

.second-card {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.second-card.recommended {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.08);
}

.second-card-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.second-card-item {
  font-size: 0.8rem;
  color: #DDD;
  line-height: 1.4;
}

.second-card-item strong {
  color: var(--text-secondary);
  font-size: 0.76rem;
  display: block;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Acordeón de Días del Plan */
.plan-day-card {
  background: rgba(20, 22, 28, 0.95);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-fast);
}

.plan-day-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
}

.plan-day-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  background: rgba(255, 255, 255, 0.02);
  flex-wrap: wrap;
  gap: 10px;
}

.plan-day-body {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: none;
}

.plan-day-card.expanded .plan-day-body {
  display: block;
}

.plan-day-card.expanded .day-chevron-icon {
  transform: rotate(180deg);
}

.day-chevron-icon {
  transition: transform 0.2s ease;
}

.hook-option-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.hook-option-box:hover {
  border-color: var(--gold-primary);
}

.hook-option-box.recommended {
  border: 1.5px solid var(--gold-primary);
  background: rgba(212, 175, 55, 0.12);
}

.script-box-4c {
  background: rgba(0, 0, 0, 0.6);
  border-left: 4px solid #4CAF50;
  padding: 14px 16px;
  border-radius: 6px;
  margin: 12px 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #FFF;
}

.prompt-box-ai {
  background: #0B0B0E;
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 12px 14px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 0.82rem;
  color: #E0E0E0;
  word-break: break-word;
  margin: 10px 0;
}

.copy-chip-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFF;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.copy-chip-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

/* Vista Adaptativa Móvil de Tarjetas de 3 Segundos */
@media (max-width: 768px) {
  .seconds-breakdown-grid {
    grid-template-columns: 1fr;
  }
  .creative-tabs-nav {
    width: 100%;
    overflow-x: auto;
  }
}

/* Estilos de Impresión / Guardar PDF */
@media print {
  body * {
    visibility: hidden;
  }
  #view-creative-director, #view-creative-director * {
    visibility: visible;
  }
  #view-creative-director {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #FFF !important;
    color: #000 !important;
  }
  .sidebar-left, .navbar, .creative-tabs-nav, button, select, input {
    display: none !important;
  }
  .plan-day-body {
    display: block !important;
  }
}

/* Modo Dueña & Locked Badges */
.badge-tag-mini.lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.2);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* JOURNEY 14 MODULES GRID */
.journey-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.module-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-main);
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}

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

.module-number {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.module-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: #FFF;
}

.module-card p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary);
  flex-grow: 1;
  margin-bottom: 16px;
}

/* SIDEBAR NAVIGATION SYSTEM */
.sidebar-left {
  width: 280px;
  min-width: 280px;
  background: rgba(16, 17, 21, 0.96);
  border-right: 1px solid var(--border-color);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  max-height: calc(100vh - 70px);
  position: sticky;
  top: 70px;
  z-index: 99;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding-left: 10px;
  margin-bottom: 4px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-nav .nav-btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  justify-content: flex-start;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all 0.2s ease;
  background: transparent;
  text-align: left;
}

.sidebar-nav .nav-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFF;
}

.sidebar-nav .nav-btn.active {
  background: linear-gradient(135deg, rgba(212,175,55,0.2), rgba(121,78,65,0.3));
  border-color: var(--gold-primary);
  color: #FFF;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

/* Mobile Menu Toggle Base */
#mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--gold-primary);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

#mobile-menu-toggle:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold-primary);
}

/* Sidebar Backdrop for Mobile */
#sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999990;
  opacity: 0;
  transition: opacity 0.25s ease;
}

@media (max-width: 1024px) {
  #mobile-menu-toggle {
    display: inline-flex !important;
  }
  .mobile-sidebar-header {
    display: flex !important;
  }
  .sidebar-left {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    max-height: 100vh !important;
    width: 290px !important;
    max-width: 85vw !important;
    z-index: 999999 !important;
    background: rgba(14, 15, 18, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 10px 0 30px rgba(0,0,0,0.85) !important;
    padding-top: 20px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .sidebar-left.active {
    transform: translateX(0) !important;
  }
  .main-content {
    padding: 16px !important;
  }
}




