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

/* ==========================================================================
   1. PRO CUSTOM STYLING (CLEAN COVERS)
   ========================================================================== */
.pro-glow {
  border-color: rgba(245, 158, 11, 0.25);
}

.active-warning-pulse {
  border-color: rgba(224, 60, 27, 0.4);
}

/* ==========================================================================
   2. CUSTOM DARK MODE SCROLLBAR
   ========================================================================== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #020617;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e03c1b;
}

/* ==========================================================================
   3. SPA TRANSITION & ANIMATIONS
   ========================================================================== */
.fade-in {
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   4. CIRCULAR PROGRESS SVG CHART
   ========================================================================== */
.progress-ring__circle {
  transition: stroke-dashoffset 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

/* ==========================================================================
   5. PRO GLASSMORPHISM
   ========================================================================== */
.glass-effect {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ==========================================================================
   6. EXTRA DECORATIONS & ALIGNMENTS
   ========================================================================== */
/* Smooth button zooms on hover */
.pro-hover-zoom {
  transition: transform 0.2s ease-in-out;
}

.pro-hover-zoom:hover {
  transform: translateY(-1px);
}

/* Line-clamping utilities for pro layout */
.truncate-3-lines {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   7. STREAK GLOWING & FIRE EFFECT
   ========================================================================== */
.streak-fire-glow {
  border-color: rgba(245, 158, 11, 0.15);
}

/* ==========================================================================
   8. DAILY CHALLENGE HERO HIGHLIGHT
   ========================================================================== */
.daily-challenge-highlight {
  border-color: rgba(243, 146, 0, 0.2);
}

/* ==========================================================================
   9. BRAND LOGO — ARCADE FLAME & WORDMARK
   ========================================================================== */
@keyframes brandFlameFlicker {

  0%,
  100% {
    transform: scale(1, 1) translateY(0) rotate(0deg);
    filter: drop-shadow(0 0 6px rgba(255, 184, 0, 0.8)) drop-shadow(0 0 14px rgba(224, 60, 27, 0.45));
  }

  20% {
    transform: scale(1.06, 0.94) translateY(-2px) rotate(-2deg);
    filter: drop-shadow(0 0 10px rgba(255, 230, 102, 0.95)) drop-shadow(0 0 20px rgba(243, 146, 0, 0.6));
  }

  45% {
    transform: scale(0.96, 1.05) translateY(1px) rotate(1deg);
    filter: drop-shadow(0 0 8px rgba(255, 184, 0, 0.7)) drop-shadow(0 0 16px rgba(224, 60, 27, 0.5));
  }

  70% {
    transform: scale(1.03, 0.98) translateY(-1px) rotate(2deg);
    filter: drop-shadow(0 0 12px rgba(255, 230, 102, 0.85)) drop-shadow(0 0 22px rgba(243, 146, 0, 0.55));
  }
}

@keyframes brandGlowPulse {

  0%,
  100% {
    opacity: 0.55;
    transform: translateX(-50%) scale(1);
  }

  50% {
    opacity: 0.9;
    transform: translateX(-50%) scale(1.15);
  }
}

@keyframes brandTitleBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

@keyframes brandSparkPop {

  0%,
  100% {
    opacity: 0;
    transform: scale(0.5) rotate(45deg);
  }

  40%,
  60% {
    opacity: 1;
    transform: scale(1) rotate(45deg);
  }
}

@keyframes brandStarSpin {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }

  50% {
    transform: scale(1.2) rotate(18deg);
  }
}

.brand-flame-glow {
  animation: brandGlowPulse 2.8s ease-in-out infinite;
}

.brand-flame-svg {
  animation: brandFlameFlicker 2s steps(4, end) infinite;
  transform-origin: center bottom;
}

.brand-spark {
  animation: brandSparkPop 3s steps(3, end) infinite;
  box-shadow: 0 0 6px rgba(255, 230, 102, 0.9);
}

.brand-spark-2 {
  animation-delay: 1s;
}

.brand-star-badge {
  animation: brandStarSpin 3.5s ease-in-out infinite;
}

.brand-logo-wrap {
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.brand-title {
  font-family: 'Bungee', cursive;
  flex: 1;
  min-width: 0;
  width: 100%;
  font-size: clamp(1.15rem, 4.2vw, 1.35rem);
  line-height: 1;
  letter-spacing: 0.01em;
  color: #fff;
  -webkit-text-stroke: 1px rgba(15, 5, 5, 0.85);
  paint-order: stroke fill;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.12);
  animation: brandTitleBounce 4s ease-in-out infinite;
}

@media (min-width: 768px) {
  .brand-title {
    font-size: 1.82rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }
}

.brand-logo--hero {
  gap: 0.75rem;
  overflow: visible;
  flex-direction: row;
  align-items: center;
}

.brand-logo--hero .brand-title {
  flex: 0 1 auto;
  width: auto;
  font-size: clamp(1.65rem, 6vw, 2.35rem);
  white-space: nowrap;
}

.brand-logo--hero .brand-flame-icon {
  width: 3.75rem;
  height: 4.25rem;
  padding: 0.35rem 0.25rem 0;
  overflow: visible;
}

.brand-logo--hero .brand-flame-glow {
  width: 3.5rem;
  height: 4rem;
}

.brand-logo--hero .brand-flame-svg {
  width: 3rem;
  height: 3.5rem;
}

.brand-flame-icon {
  overflow: visible;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-logo-wrap:hover .brand-flame-svg {
  animation-duration: 1.4s;
}

.brand-logo-wrap:hover .brand-title {
  animation-duration: 2.8s;
}

.brand-logo-wrap:hover .brand-flame-icon {
  transform: scale(1.08);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   10. LANDING PAGE — CLEAN AUTH
   ========================================================================== */
.landing-page {
  overflow: visible;
}

.landing-grid-bg {
  position: absolute;
  inset: -20px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.landing-season-badge {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(224, 60, 27, 0.2);
}

.landing-hero-title {
  color: #fff;
}

.landing-hero-accent {
  display: inline;
}

.landing-quest-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.landing-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.landing-quest-card {
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.55);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.landing-quest-card:hover {
  transform: translateY(-1px);
}

.landing-quest-card--free {
  border-color: rgba(14, 165, 233, 0.15);
}

.landing-quest-card--pro {
  border-color: rgba(255, 184, 0, 0.15);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.7) 0%, rgba(69, 26, 3, 0.1) 100%);
}

.landing-auth-panel {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.92) 0%, rgba(7, 11, 19, 0.95) 100%);
  border: 1px solid rgba(255, 184, 0, 0.1);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 15px 35px -15px rgba(0, 0, 0, 0.7);
}

.landing-auth-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: #e03c1b;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.landing-auth-tabs {
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-auth-tab {
  color: #94a3b8;
}

.landing-auth-tab--active {
  color: #fff;
  background: rgba(224, 60, 27, 0.2);
  border: 1px solid rgba(224, 60, 27, 0.25);
}

.landing-form-title {
  color: #fff;
}

.landing-field-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.landing-field-input {
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.landing-field-input:focus {
  border-color: rgba(255, 184, 0, 0.4);
}

.landing-btn-primary {
  color: #fff;
  background: #e03c1b;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-btn-primary:hover {
  background: #c43218;
}

.landing-btn-secondary {
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.landing-btn-secondary:hover {
  background: rgba(51, 65, 85, 0.9);
  color: #fff;
}

.landing-main {
  max-width: none;
}

/* ==========================================================================
   11. REDISEÑO DEL SIDEBAR - COMPONENTES
   ========================================================================== */

/* Ocultar barra de scroll en navegación del sidebar */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

/* Rótulos de sección del menú */
.nav-section-title {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  /* Slate 500 */
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 1rem;
  margin-bottom: 0.35rem;
  padding-left: 1.5rem;
  pointer-events: none;
  opacity: 0.75;
}

.level-card-glow {
  border-color: rgba(255, 184, 0, 0.12);
}

/* ==========================================================================
   12. INTEGRACIÓN DE PUBLICIDAD & INTERSTITIALS
   ========================================================================== */
.oposrtve-ad-placeholder {
  transition: all 0.3s ease-in-out;
  min-width: 120px;
}

.pro-promotion-fallback {
  box-shadow: 0 10px 30px -15px rgba(245, 158, 11, 0.08);
}

.pro-promotion-fallback button {
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
  transition: all 0.2s ease-in-out;
}

.pro-promotion-fallback button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.25);
}

/* Modal Interstitial */
#interstitial-ad-modal {
  scrollbar-width: none;
}

#interstitial-ad-modal::-webkit-scrollbar {
  display: none;
}

#interstitial-progress-circle {
  transition: stroke-dashoffset 1s linear;
}

/* Interstitial grande — máxima visibilidad y monetización */
#interstitial-ad-modal {
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(8px);
}

.interstitial-ad-frame {
  width: 100%;
  max-width: 728px;
  min-height: 420px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .interstitial-ad-frame {
    min-height: 280px;
    max-width: 728px;
  }
}

.interstitial-ad-frame .mock-ad-placeholder {
  width: 100%;
  min-height: inherit;
}

/* Layout simulador con publicidad lateral */
.exam-with-ads-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.exam-ad-rail {
  display: none;
}

@media (min-width: 1024px) {
  .exam-with-ads-layout:not(.no-ads) {
    grid-template-columns: 160px minmax(0, 1fr) 160px;
  }
  
  .exam-with-ads-layout.no-ads {
    grid-template-columns: minmax(0, 1fr);
  }

  .exam-with-ads-layout:not(.no-ads) .exam-simulator-main {
    grid-column: 2;
  }

  .exam-with-ads-layout.no-ads .exam-simulator-main {
    grid-column: auto;
  }

  .exam-ad-rail {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 6.5rem;
    min-height: 600px;
    width: 100%;
  }

  .exam-ad-rail .mock-ad-placeholder,
  .exam-ad-rail .pro-promotion-fallback {
    min-height: 600px;
    height: 100%;
  }
}

@media (min-width: 1280px) {
  .exam-with-ads-layout:not(.no-ads) {
    grid-template-columns: 180px minmax(0, 1fr) 180px;
  }
}

/* ==========================================================================
   13. RESPONSIVE SIDEBAR & VIEWPORT OPTIMIZATIONS
   ========================================================================== */

/* Optimización para pantallas bajas (portátiles pequeños) */
@media (min-width: 768px) and (max-height: 860px) {
  header#app-header .brand-logo-wrap {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }

  #user-sidebar-footer .sidebar-user-panel {
    padding: 0.75rem 1.5rem !important;
    gap: 0.75rem !important;
  }

  #user-sidebar-footer .sidebar-level-row #user-level-val {
    font-size: 1rem !important;
  }

  #user-sidebar-footer #user-streak-val {
    font-size: 0.8125rem !important;
  }

  #nav-tabs .sidebar-nav-item {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }

  .nav-section-title {
    margin-top: 0.5rem !important;
    margin-bottom: 0.15rem !important;
  }

  #pro-btn.sidebar-pro-cta {
    padding: 0.75rem 1.25rem !important;
  }

  #user-profile-badge {
    padding: 0.625rem 1.25rem !important;
  }
}

@media (min-width: 768px) and (max-height: 720px) {
  #user-sidebar-footer .sidebar-streak-row {
    display: none !important;
  }

  #user-sidebar-footer #level-reward-preview {
    padding-top: 0.5rem !important;
  }

  #user-sidebar-footer #user-xp-bar,
  #user-sidebar-footer #level-reward-progress-bar {
    height: 0.25rem !important;
  }

  #pro-btn.sidebar-pro-cta {
    padding: 0.625rem 1.25rem !important;
  }
}

/* Optimización para tablets (ajustar ancho del sidebar para más espacio de lectura) */
@media (min-width: 768px) and (max-width: 1024px) {
  header#app-header {
    width: 14rem !important;
    /* 224px */
  }

  #main-wrapper {
    padding-left: 14rem !important;
    /* 224px */
  }

  header#app-header .brand-logo-wrap {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  #pro-btn.sidebar-pro-cta {
    padding: 0.875rem 1.25rem !important;
  }

  #user-sidebar-footer .sidebar-user-panel {
    padding: 0.875rem 1.25rem !important;
  }

  #user-profile-badge {
    padding: 0.875rem 1.25rem !important;
  }
}

/* Ajustes de alineación y altura en cabecera móvil (evitar desbordamiento vertical) */
@media (max-width: 767px) {
  #user-profile-badge-mobile {
    padding: 0 !important;
    background: transparent !important;
  }

  #user-nav-actions {
    gap: 0.5rem !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 0 !important;
  }

  #user-avatar-mobile {
    width: 2rem !important;
    height: 2rem !important;
  }
}

/* ==========================================================================
   14. SISTEMA DE DISEÑO UI — Opositón
   ========================================================================== */

/* --- Modales --- */
.ui-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.ui-modal-panel {
  position: relative;
  width: 100%;
  max-width: 32rem;
  max-height: 92vh;
  overflow-y: auto;
  padding: 1.5rem;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 0.875rem;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.55);
  text-align: left;
}

@media (min-width: 640px) {
  .ui-modal-panel {
    padding: 1.75rem 2rem;
  }
}

.ui-modal-panel--md {
  max-width: 36rem;
}

.ui-modal-panel--lg {
  max-width: 44rem;
}

.ui-modal-panel--xl {
  max-width: 52rem;
}

.ui-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #94a3b8;
  transition: color 0.15s ease;
}

.ui-modal-close:hover {
  color: #fff;
}

.ui-modal-header {
  padding-right: 2rem;
  margin-bottom: 1.25rem;
}

.ui-modal-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}

.ui-modal-desc {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.55;
}

/* --- Tipografía y etiquetas --- */
.ui-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #94a3b8;
}

.ui-section-heading {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
}

.ui-section-desc {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.5;
}

.ui-meta {
  font-size: 0.75rem;
  color: #64748b;
}

/* --- Paneles de contenido (un solo nivel) --- */
.ui-panel {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 0.875rem;
  padding: 1.25rem 1.5rem;
}

.ui-panel--flat {
  background: rgba(2, 6, 23, 0.35);
  border-color: #1e293b;
}

.ui-divider {
  border-top: 1px solid #1e293b;
  margin: 1.25rem 0;
}

/* --- Vista previa de preguntas --- */
.ui-question-preview {
  padding: 1rem 1.25rem;
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid #1e293b;
  border-radius: 0.5rem;
  max-height: min(420px, 50vh);
  overflow-y: auto;
}

.ui-question-preview__text {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.ui-option-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.ui-option-row {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.5rem 0.625rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #94a3b8;
  border-radius: 0.375rem;
}

.ui-option-row__letter {
  flex-shrink: 0;
  width: 1.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-align: center;
}

.ui-option-row--correct {
  color: #34d399;
  background: rgba(16, 185, 129, 0.08);
}

.ui-option-row--chosen {
  color: #f87171;
  background: rgba(224, 60, 27, 0.08);
}

.ui-option-row__tag {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  opacity: 0.85;
}

/* --- Botones --- */
.ui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.625rem 1.125rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ui-btn-secondary {
  color: #cbd5e1;
  background: #1e293b;
  border: 1px solid #334155;
}

.ui-btn-secondary:hover {
  background: #334155;
  color: #fff;
}

.ui-btn-primary {
  color: #fff;
  background: #e03c1b;
  border: 1px solid transparent;
}

.ui-btn-primary:hover {
  background: #b8270d;
}

.ui-btn-warning {
  color: #0f172a;
  background: #f59e0b;
  border: 1px solid transparent;
}

.ui-btn-warning:hover {
  background: #d97706;
}

.ui-btn-ghost {
  color: #94a3b8;
  background: transparent;
  border: 1px solid #334155;
}

.ui-btn-ghost:hover {
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.5);
}

/* --- Campos de formulario --- */
.ui-input,
.ui-textarea,
.ui-select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: #f1f5f9;
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 0.5rem;
  transition: border-color 0.15s ease;
}

.ui-input:focus,
.ui-textarea:focus,
.ui-select:focus {
  outline: none;
  border-color: #e03c1b;
}

.ui-textarea {
  resize: vertical;
  min-height: 6rem;
  line-height: 1.55;
}

/* --- Badges --- */
.ui-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid transparent;
}

.ui-badge--pending {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.25);
}

.ui-badge--success {
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
}

.ui-badge--muted {
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.6);
  border-color: #334155;
}

.ui-badge--info {
  color: #38bdf8;
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.25);
}

/* --- Tarjetas de listado --- */
.ui-list-card {
  padding: 1rem 1.25rem;
  background: rgba(2, 6, 23, 0.3);
  border: 1px solid #1e293b;
  border-radius: 0.625rem;
}

.ui-list-card + .ui-list-card {
  margin-top: 0.75rem;
}

/* --- Contenedor principal más ancho --- */
.ui-content-wide {
  max-width: 56rem;
}

.ui-content-full {
  max-width: none;
}

/* --- Simulador: opciones más legibles --- */
.ui-sim-option {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #cbd5e1;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid #1e293b;
  border-radius: 0.625rem;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ui-sim-option:hover {
  background: rgba(30, 41, 59, 0.45);
  border-color: #334155;
}

.ui-sim-option--selected {
  color: #fff;
  background: rgba(224, 60, 27, 0.08);
  border-color: rgba(224, 60, 27, 0.45);
}

.ui-sim-option--correct {
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.4);
}

.ui-sim-option--wrong {
  color: #fca5a5;
  background: rgba(224, 60, 27, 0.08);
  border-color: rgba(224, 60, 27, 0.35);
  opacity: 0.85;
}

.ui-sim-option__badge {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 0.375rem;
}

/* ==========================================================================
   15. SIDEBAR — NAVEGACIÓN SIN ACCENT BARS
   PROHIBIDO: border-left / ::before con franja de color en ítems del sidebar.
   ========================================================================== */

#nav-tabs {
  width: 100%;
}

#nav-tabs .sidebar-nav-item,
#nav-tabs .sidebar-nav-item--active {
  width: 100%;
  border-radius: 0;
}

/* Mi Perfil: solo en sidebar ancho; en tablet usar rueda dentada del footer */
@media (max-width: 1023px) {
  #tab-profile {
    display: none !important;
  }
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
  text-align: left;
  background: transparent;
  border: none;
  border-left: none;
  box-shadow: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

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

.sidebar-nav-item--active {
  color: #fff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
}

/* Refuerzo: nunca aplicar franja lateral en nav del sidebar */
#nav-tabs .sidebar-nav-item,
#nav-tabs .sidebar-nav-item--active {
  border-left: none !important;
  box-shadow: none !important;
}

#nav-tabs .sidebar-nav-item::before,
#nav-tabs .sidebar-nav-item::after,
#nav-tabs .sidebar-nav-item--active::before,
#nav-tabs .sidebar-nav-item--active::after {
  content: none !important;
  display: none !important;
}

.sidebar-nav-item__icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: inherit;
  opacity: 0.9;
}

.sidebar-nav-item__label {
  flex: 1;
  text-align: left;
}

.sidebar-pro-cta {
  display: none;
  flex-direction: column;
  gap: 0.375rem;
  width: 100%;
  padding: 1rem 1.5rem;
  border: none;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(224, 60, 27, 0.12) 55%, rgba(15, 23, 42, 0.4) 100%);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 236, 179, 0.12);
}

@media (min-width: 768px) {
  .sidebar-pro-cta {
    display: flex;
  }
}

.sidebar-pro-cta:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.28) 0%, rgba(224, 60, 27, 0.16) 55%, rgba(30, 41, 59, 0.5) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 236, 179, 0.2), 0 0 24px rgba(245, 158, 11, 0.08);
}

.sidebar-pro-cta__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.sidebar-pro-cta__copy {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  flex: 1;
  min-width: 0;
}

.sidebar-pro-cta__icon {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.35), rgba(245, 158, 11, 0.2));
  color: #fde68a;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
}

.sidebar-pro-cta__title {
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fde68a;
  line-height: 1.2;
}

.sidebar-pro-cta__badge {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fbbf24;
  opacity: 0.9;
}

.sidebar-pro-cta__arrow {
  color: #fbbf24;
  opacity: 0.85;
  flex-shrink: 0;
}

.sidebar-pro-cta__desc {
  font-size: 0.6875rem;
  color: #cbd5e1;
  line-height: 1.45;
  padding-left: 3rem;
  display: block;
}

#user-sidebar-footer {
  width: 100%;
}

.sidebar-user-panel {
  width: 100%;
}

.sidebar-streak-row {
  width: 100%;
}

.mobile-nav-bar {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 0.875rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.5);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: none;
  border-left: none;
  padding: 0.25rem 0.5rem;
  transition: color 0.15s ease;
}

.mobile-nav-item--active {
  color: #f1f5f9;
  font-weight: 700;
  background: transparent;
  border-left: none;
}

.mobile-nav-item__icon {
  width: 1.25rem;
  height: 1.25rem;
}