/**
 * MING Components CSS v23.0
 * ═══════════════════════════════════════════════════════════════════════════
 * Estilos para componentes de tokens, share, y loading
 * 
 * Agregar después de tus estilos principales
 */

/* ═══════════════════════════════════════════════════════════════════════════
   TOKEN DISPLAY
   ═══════════════════════════════════════════════════════════════════════════ */

.token-display {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #f5e6d3 0%, #e8d4bc 100%);
  border: 1px solid #d4b896;
  border-radius: 20px;
  font-weight: 600;
  color: #8b4513;
  box-shadow: 0 2px 4px rgba(139, 69, 19, 0.1);
}

.token-display .token-icon {
  font-size: 1.1em;
}

.token-display .token-count {
  font-size: 1em;
  min-width: 20px;
  text-align: center;
}

.token-display.token-low {
  background: linear-gradient(135deg, #ffe6e6 0%, #ffcccc 100%);
  border-color: #ff9999;
  color: #cc0000;
}

.token-display.token-zero {
  animation: pulse-warning 1.5s ease-in-out infinite;
}

@keyframes pulse-warning {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SHARE BUTTONS
   ═══════════════════════════════════════════════════════════════════════════ */

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 15px 0;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  color: white;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-btn:active {
  transform: translateY(0);
}

.share-btn[data-platform="twitter"] {
  background: #1DA1F2;
}

.share-btn[data-platform="facebook"] {
  background: #4267B2;
}

.share-btn[data-platform="whatsapp"] {
  background: #25D366;
}

.share-btn[data-platform="telegram"] {
  background: #0088cc;
}

.share-btn[data-platform="linkedin"] {
  background: #0A66C2;
}

.share-btn[data-platform="copy"] {
  background: #6c757d;
}

.share-btn[data-platform="instagram"] {
  background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.share-btn[data-platform="tiktok"] {
  background: #010101;
}

.share-icon {
  font-size: 1.2em;
  display: flex;
  align-items: center;
}

.share-icon svg {
  width: 18px;
  height: 18px;
}

.share-label {
  font-size: 13px;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LOADING OVERLAY
   ═══════════════════════════════════════════════════════════════════════════ */

#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(253, 245, 230, 0.95);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-content {
  text-align: center;
  padding: 30px;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #e8d4bc;
  border-top-color: #8b4513;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-size: 18px;
  color: #8b4513;
  margin-bottom: 10px;
}

.loading-subtext {
  font-size: 14px;
  color: #a0826d;
}

/* ═══════════════════════════════════════════════════════════════════════════
   INTERPRETATION MODULES
   ═══════════════════════════════════════════════════════════════════════════ */

.interpretation-module {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(139, 69, 19, 0.08);
  border: 1px solid #e8d4bc;
}

.module-title {
  font-size: 1.25rem;
  color: #8b4513;
  margin: 0 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #f5e6d3;
}

.module-content {
  color: #333;
  line-height: 1.7;
}

.module-content p {
  margin: 0 0 16px 0;
}

.module-content p:last-child {
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GET TOKENS MODAL
   ═══════════════════════════════════════════════════════════════════════════ */

#get-tokens-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal-content {
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-title {
  font-size: 1.5rem;
  color: #8b4513;
  margin: 0 0 16px 0;
}

.modal-text {
  color: #666;
  margin-bottom: 24px;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-btn {
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-btn-primary {
  background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
  color: white;
  border: none;
}

.modal-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

.modal-btn-secondary {
  background: transparent;
  color: #8b4513;
  border: 2px solid #8b4513;
}

.modal-btn-secondary:hover {
  background: #f5e6d3;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TIER BUTTONS
   ═══════════════════════════════════════════════════════════════════════════ */

.tier-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tier-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 69, 19, 0.25);
}

.tier-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.tier-btn .cost {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 14px;
}

.tier-btn.unlocked {
  background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
}

.tier-btn.unlocked .cost {
  display: none;
}

/* Spinner dentro de botón */
.tier-btn .spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 14px 20px;
  border-radius: 10px;
  color: white;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideIn 0.3s ease;
  max-width: 350px;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.toast-success {
  background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
}

.toast.toast-error {
  background: linear-gradient(135deg, #c62828 0%, #d32f2f 100%);
}

.toast.toast-info {
  background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
}

.toast.toast-warning {
  background: linear-gradient(135deg, #ef6c00 0%, #f57c00 100%);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 600px) {
  .share-buttons {
    gap: 8px;
  }
  
  .share-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .share-btn .share-name {
    display: none;
  }
  
  .modal-content {
    padding: 24px;
  }
  
  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
  
  .toast {
    max-width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BIRTH ESSENCE - Tu Momento Cósmico (Estética Minimalista)
   ═══════════════════════════════════════════════════════════════════════════ */

.birth-essence {
  margin-top: var(--space-5, 24px);
  padding: var(--space-5, 24px);
  background: var(--surface-card, #fff);
  border: 1px solid var(--ming-200, #ddd);
}

.birth-essence__header {
  display: flex;
  align-items: center;
  gap: var(--space-3, 12px);
  margin-bottom: var(--space-4, 16px);
  padding-bottom: var(--space-3, 12px);
  border-bottom: 1px solid var(--ming-200, #eee);
}

.birth-essence__icon {
  width: 24px;
  height: 24px;
  opacity: 0.6;
}

.birth-essence__title {
  font-weight: 600;
  color: var(--ming-ink, #1a1a1a);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.birth-essence__date {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ming-ink, #1a1a1a);
  margin-bottom: var(--space-5, 24px);
  padding: var(--space-4, 16px);
  background: var(--ming-paper, #f8f8f8);
  border: 1px solid var(--ming-200, #eee);
}

.birth-essence__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3, 12px);
  margin-bottom: var(--space-5, 24px);
}

.birth-essence__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-4, 16px);
  background: var(--ming-paper, #f8f8f8);
  border: 1px solid var(--ming-200, #eee);
}

.birth-essence__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ming-ink-soft, #666);
  font-weight: 600;
}

.birth-essence__value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ming-ink, #1a1a1a);
}

.birth-essence__effect {
  font-size: 0.8rem;
  color: var(--ming-cerulean, #6997a5);
  font-style: italic;
  line-height: 1.4;
}

.birth-essence__synthesis {
  padding: var(--space-4, 16px);
  background: var(--ming-paper, #f8f8f8);
  border-left: 3px solid var(--ming-cerulean, #6997a5);
}

.birth-essence__synthesis p {
  margin: 0 0 var(--space-2, 8px) 0;
  line-height: 1.6;
  color: var(--ming-ink, #1a1a1a);
  font-size: 0.9rem;
}

.birth-essence__synthesis p:last-child {
  margin-bottom: 0;
}

.birth-essence__synthesis strong {
  color: var(--ming-forest, #073b2f);
}

/* Dark mode */
[data-theme="dark"] .birth-essence {
  background: var(--surface-card);
  border-color: var(--ming-300);
}

[data-theme="dark"] .birth-essence__date,
[data-theme="dark"] .birth-essence__item,
[data-theme="dark"] .birth-essence__synthesis {
  background: rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 480px) {
  .birth-essence__grid {
    grid-template-columns: 1fr;
  }
  
  .birth-essence {
    padding: var(--space-4, 16px);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SERVICES SECTION - Nueva estructura con secciones
   ═══════════════════════════════════════════════════════════════════════════ */

.services-section {
  margin-bottom: var(--space-6, 24px);
}

.services-section__header {
  display: flex;
  align-items: center;
  gap: var(--space-3, 12px);
  margin-bottom: var(--space-4, 16px);
  padding-bottom: var(--space-2, 8px);
  border-bottom: 1px solid var(--border-default, #e0e0e0);
}

.services-section__icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  opacity: 0.8;
}

.services-section__title {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ming-forest, #2d504f);
  letter-spacing: 0.02em;
}

.services-section__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-3, 12px);
}

/* Service Button Updates */
.service-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2, 8px);
  padding: var(--space-4, 16px) var(--space-3, 12px);
  background: var(--ming-paper, #faf8f5);
  border: 1px solid var(--border-default, #e0e0e0);
  border-radius: var(--radius-md, 8px);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.service-btn:hover {
  border-color: var(--ming-jade, #6a9b7e);
  background: var(--ming-cream, #f5f3f0);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 80, 79, 0.1);
}

.service-btn__icon-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-btn__svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.85;
  filter: grayscale(20%);
  transition: all 0.2s ease;
}

.service-btn:hover .service-btn__svg {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05);
}

.service-btn__name {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ming-forest, #2d504f);
}

.service-btn__desc {
  font-size: 0.75rem;
  color: var(--text-muted, #6a6a6a);
  line-height: 1.3;
}

.service-btn__badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.service-btn__badge--free {
  background: var(--ming-jade-light, #e8f5e9);
  color: var(--ming-jade-dark, #2e7d32);
}

.service-btn__badge--cost {
  background: var(--ming-gold-light, #fff8e1);
  color: var(--ming-gold-dark, #f57c00);
}

/* Quick reading highlight */
.service-btn--quick {
  border-color: var(--ming-jade, #6a9b7e);
  background: linear-gradient(to bottom, #f8fff8, var(--ming-paper, #faf8f5));
}

/* Premium highlight */
.service-btn--premium {
  border-color: var(--ming-gold, #c9a959);
  background: linear-gradient(to bottom, #fffcf5, var(--ming-paper, #faf8f5));
}

/* ═══════════════════════════════════════════════════════════════════════════
   ESSENCE LAYOUT - Dos columnas
   ═══════════════════════════════════════════════════════════════════════════ */

.essence-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5, 20px);
  margin-bottom: var(--space-4, 16px);
  align-items: stretch;
}

.essence-column {
  min-width: 0; /* Prevenir overflow */
}

.essence-column--daymaster {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-5, 20px);
  background: var(--ming-paper, #faf8f5);
  border-radius: var(--radius-lg, 12px);
  border: 1px solid var(--border-default, #e0e0e0);
}

.essence-column--daymaster .dm-showcase {
  margin-bottom: 0;
}

/* Contenedor de descripción separado - full width */
.dm-desc-container {
  background: var(--ming-paper, #faf8f5);
  border-radius: var(--radius-lg, 12px);
  border: 1px solid var(--border-default, #e0e0e0);
  padding: var(--space-4, 16px);
  margin-bottom: var(--space-4, 16px);
}

.dm-desc-container .dm-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ming-ink, #333);
  text-align: left;
  margin: 0;
}

.essence-column--cosmic .birth-essence {
  height: 100%;
  margin: 0;
}

.birth-essence__grid--compact {
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2, 8px);
}

.birth-essence__grid--compact .birth-essence__item {
  padding: var(--space-2, 8px);
}

.birth-essence__grid--compact .birth-essence__label {
  font-size: 0.65rem;
}

.birth-essence__grid--compact .birth-essence__value {
  font-size: 0.85rem;
}

.birth-essence__grid--compact .birth-essence__effect {
  font-size: 0.7rem;
}

/* Síntesis full width */
.birth-essence__synthesis {
  margin-top: var(--space-3, 12px);
}

/* Responsive: una columna en móvil */
@media (max-width: 768px) {
  .essence-layout {
    grid-template-columns: 1fr;
    gap: var(--space-4, 16px);
  }
  
  .services-section__grid {
    grid-template-columns: 1fr;
  }
  
  .birth-essence__grid--compact {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PILLAR CARDS - Mejoras de flip y presentación
   ═══════════════════════════════════════════════════════════════════════════ */

/* Mejorar la presentación del front de las tarjetas */
.paper-card__front .pcard-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-4, 16px);
  padding: var(--space-4, 16px);
}

.paper-card__front .pcard-image {
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
}

.paper-card__front .pcard-image__svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%) contrast(1.1);
  opacity: 0.9;
}

.paper-card__front .pcard-info {
  flex: 1;
  text-align: left;
}

.paper-card__front .pcard-animal {
  display: flex;
  align-items: center;
  gap: var(--space-2, 8px);
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ming-forest, #2d504f);
}

.paper-card__front .pcard-animal__icon {
  width: 24px;
  height: 24px;
  filter: grayscale(80%);
  opacity: 0.7;
}

.paper-card__front .pcard-traits {
  font-size: 0.85rem;
  color: var(--text-muted, #6a6a6a);
  margin-top: var(--space-1, 4px);
}

/* Indicador de flip más visible */
.pcard-footer {
  padding: var(--space-2, 8px);
  text-align: center;
  border-top: 1px dashed var(--border-light, #e8e8e8);
}

.pcard-tap {
  font-size: 0.75rem;
  color: var(--ming-jade, #6a9b7e);
  font-style: italic;
}

/* Animación de flip mejorada */
.paper-card {
  perspective: 1000px;
  cursor: pointer;
}

.paper-card__inner {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.paper-card.flipped .paper-card__inner {
  transform: rotateY(180deg);
}

.paper-card__front,
.paper-card__back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.paper-card__back {
  transform: rotateY(180deg);
}

/* Dark mode para servicios */
[data-theme="dark"] .service-btn {
  background: var(--surface-card);
  border-color: var(--border-default);
}

[data-theme="dark"] .service-btn:hover {
  background: var(--surface-hover);
}

[data-theme="dark"] .services-section__title {
  color: var(--text-primary);
}

[data-theme="dark"] .essence-column--daymaster {
  background: var(--surface-card);
  border-color: var(--border-default);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BRANCH RELATIONS — Estilos para relaciones entre ramas v1.0
   ═══════════════════════════════════════════════════════════════════════════ */

.ming-relations-section {
  margin-top: var(--space-8);
}

.ming-relations-group {
  margin-bottom: var(--space-6);
}

.ming-relations-group-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.ming-relations-group-title svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.ming-relation-item {
  padding: var(--space-4);
  border: 1px solid var(--border-default);
  margin-bottom: var(--space-3);
  background: var(--surface-card);
}

.ming-relation-item--positive {
  border-left: 3px solid var(--ming-jade);
}

.ming-relation-item--negative {
  border-left: 3px solid var(--el-fire);
}

.ming-relation-item--neutral {
  border-left: 3px solid var(--ming-400);
}

.ming-relation-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-2);
  flex-wrap: wrap;
  gap: var(--space-2);
}

.ming-relation-name {
  font-family: var(--font-chinese);
  font-size: var(--text-lg);
  color: var(--text-primary);
}

.ming-relation-badge {
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-2);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.ming-relation-badge--positive {
  background: var(--ming-jade-light);
  color: var(--ming-jade);
}

.ming-relation-badge--negative {
  background: var(--el-fire-light);
  color: var(--el-fire);
}

.ming-relation-pillars {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.ming-relation-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.ming-relation-result {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-accent);
}

/* ═══════════════════════════════════════════════════════════════════════════
   GROWTH STAGES — Tabla de etapas de crecimiento
   ═══════════════════════════════════════════════════════════════════════════ */

.ming-stages-section {
  margin-top: var(--space-8);
}

.ming-stages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin: var(--space-4) 0;
}

@media (max-width: 480px) {
  .ming-stages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ming-stage-card {
  padding: var(--space-4);
  border: 1px solid var(--border-default);
  background: var(--surface-card);
  text-align: center;
}

.ming-stage-pillar {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-1);
}

.ming-stage-branch {
  font-family: var(--font-chinese);
  font-size: var(--text-2xl);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.ming-stage-name {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.ming-stage-name-chinese {
  font-family: var(--font-chinese);
  margin-right: var(--space-1);
}

.ming-stage-strength {
  display: flex;
  justify-content: center;
  gap: 2px;
}

.ming-stage-dot {
  width: 8px;
  height: 8px;
  border: 1px solid var(--border-default);
  background: transparent;
}

.ming-stage-dot--filled {
  background: var(--ming-gold);
  border-color: var(--ming-gold);
}

.ming-stages-summary {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
}

.ming-stages-average {
  font-size: var(--text-lg);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.ming-stages-interpretation {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ═══════════════════════════════════════════════════════════════════════════
   AUXILIARY STARS — Panel de estrellas auxiliares
   ═══════════════════════════════════════════════════════════════════════════ */

.ming-stars-section {
  margin-top: var(--space-8);
}

.ming-stars-group {
  margin-bottom: var(--space-6);
}

.ming-stars-group-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.ming-star-item {
  padding: var(--space-4);
  border: 1px solid var(--border-default);
  margin-bottom: var(--space-3);
  background: var(--surface-card);
}

.ming-star-item--positive {
  border-left: 3px solid var(--ming-gold);
}

.ming-star-item--challenging {
  border-left: 3px solid var(--ming-violet);
}

.ming-star-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
  flex-wrap: wrap;
  gap: var(--space-2);
}

.ming-star-name {
  font-size: var(--text-base);
  color: var(--text-primary);
}

.ming-star-name-chinese {
  font-family: var(--font-chinese);
  margin-right: var(--space-2);
}

.ming-star-pillar {
  font-size: var(--text-xs);
  color: var(--text-muted);
  background: var(--surface-elevated);
  padding: var(--space-1) var(--space-2);
}

.ming-star-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ═══════════════════════════════════════════════════════════════════════════
   EDUCATIONAL BLOCKS — Bloques explicativos
   ═══════════════════════════════════════════════════════════════════════════ */

.ming-edu-block {
  padding: var(--space-4);
  background: var(--ming-cream-soft);
  border-left: 3px solid var(--ming-gold);
  margin-bottom: var(--space-6);
}

[data-theme="dark"] .ming-edu-block {
  background: var(--surface-elevated);
}

.ming-edu-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.ming-edu-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION INTRO — Intros educativas para cada sección
   ═══════════════════════════════════════════════════════════════════════════ */

.ming-section-intro {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
}

.ming-section-intro p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-3);
}

.ming-section-intro p:last-child {
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   EMPTY STATES — Estados vacíos
   ═══════════════════════════════════════════════════════════════════════════ */

.ming-empty-state {
  padding: var(--space-6);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
  background: var(--surface-elevated);
  border: 1px dashed var(--border-default);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SUMMARY ROW — Fila de resumen
   ═══════════════════════════════════════════════════════════════════════════ */

.ming-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.ming-summary-positive {
  color: var(--ming-jade);
}

.ming-summary-negative {
  color: var(--el-fire);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ICONS — Íconos inline SVG
   ═══════════════════════════════════════════════════════════════════════════ */

.ming-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
}

.ming-icon--positive {
  color: var(--ming-jade);
}

.ming-icon--negative {
  color: var(--el-fire);
}

.ming-icon--neutral {
  color: var(--text-muted);
}
