/* ══════════════════════════════════════════════════════════════════════
   PAGE: /home (Dashboard)
   Prefijos: .dashboard-*, .hero-*, .stats-*, .upsell-*, .areas-*,
   .area-mini-*, .area-icon-*, .area-name, .area-progress-*,
   .area-heat-bar, .mission-*, .side-cards-stack, .dashboard-pills

   Incluye referencias dispersas a streak en dashboard (.streak-badge,
   .streak-visual-*) que pertenecen a esta página (no se movieron a
   features/streak.css por estar embebidas en bloques dashboard).

   Extraído de learning.css y responsive.css en Round 3.1.
   ══════════════════════════════════════════════════════════════════════ */

/* ─── 1. Desktop (from learning.css 650-1102) ──────────────────────── */
/* Dashboard Header */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 48px;
}

.dashboard-title {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: var(--fw-extra);
  line-height: 1.2;
  letter-spacing: -1px;
  max-width: 700px;
}

.dashboard-title-highlight {
  color: var(--violet);
}

.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFF0F7;
  color: var(--magenta);
  border: 1px solid #FFE4F0;
  padding: 10px 20px;
  border-radius: 14px;
  font-weight: var(--fw-bold);
  font-size: 1rem;
}

/* Grid Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 32px;
  margin-bottom: 48px;
  align-items: start;
}

/* Plan del Dia Card */
.hero-card {
  background: var(--bg-white);
  border-radius: 50%;
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: var(--violet-light);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.hero-badge {
  display: inline-flex;
  background: var(--violet-light);
  color: var(--violet);
  font-size: 0.65rem;
  font-weight: var(--fw-extra);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
  align-self: flex-start;
  z-index: 1;
}

.hero-title {
  font-size: 1.75rem;
  font-weight: var(--fw-bold);
  margin-bottom: 12px;
  z-index: 1;
  position: relative;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 400px;
  line-height: 1.5;
  z-index: 1;
  position: relative;
}

.hero-btn {
  align-self: flex-start;
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

/* Side Cards Stack */
.side-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.stats-card {
  background: var(--bg-white);
  border-radius: 50%;
  padding: 32px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

.stats-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: var(--fw-bold);
  margin-bottom: 24px;
  color: var(--text-primary);
}

.stats-header .icon-sm {
  color: var(--blue);
}

.stats-score {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.stats-score-main {
  font-size: 3rem;
  font-weight: var(--fw-extra);
  color: var(--violet);
  line-height: 1;
}

.stats-score-total {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: var(--fw-medium);
}

.stats-bar-bg {
  width: 100%;
  height: 8px;
  background: var(--border-subtle);
  border-radius: 4px;
  margin-bottom: 24px;
  overflow: hidden;
}

.stats-bar-fill {
  height: 100%;
  background: var(--violet);
  border-radius: 4px;
  transition: width 1s ease;
}

.upsell-card {
  background: #FDFBFF;
  border-radius: 50%;
  padding: 24px;
  border: 2px dashed #D6C2FF;
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}

.upsell-card:hover {
  background: var(--violet-light);
  border-color: var(--violet);
}

.upsell-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--violet);
  color: white;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upsell-content {
  flex: 1;
}

.upsell-title {
  font-weight: var(--fw-bold);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

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

.upsell-arrow {
  color: var(--violet);
}

/* Areas Grid */
.areas-section-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}

.areas-section-title {
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
}

.areas-section-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.areas-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.area-mini-card {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  min-height: 0;
}

.area-mini-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.area-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  align-self: flex-start;
}

.area-name {
  font-weight: var(--fw-bold);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.area-progress-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.area-progress-bar-bg {
  width: 100%;
  height: 6px;
  background: var(--border-subtle);
  border-radius: 3px;
  overflow: hidden;
}

.area-progress-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease;
}



.streak-visual {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Stagger Animation */
.stagger-in {
  opacity: 0;
  transform: translateY(10px);
  animation: staggerFadeIn 0.5s ease forwards;
}

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


.streak-visual-bar-bg {
  width: 100px;
  height: 6px;
  background: #FFE4F0;
  border-radius: 4px;
  overflow: hidden;
}

.streak-visual-bar-fill {
  height: 100%;
  background: var(--magenta);
  border-radius: 4px;
  transition: width 1s ease;
}

.streak-visual-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: var(--fw-medium);
}

.mission-card {
  background: var(--bg-white);
  border-radius: 50%;
  padding: 32px;
  border: 1px solid var(--violet-light);
  box-shadow: 0 10px 30px -10px rgba(108, 43, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: visible;
}

.mission-header {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: var(--fw-bold);
  font-size: 1.2rem;
  color: var(--violet-dark);
}

.mission-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mission-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.mission-progress-bar-bg {
  flex: 1;
  height: 8px;
  background: var(--border-subtle);
  border-radius: 4px;
  overflow: hidden;
}

.mission-progress-bar-fill {
  height: 100%;
  background: var(--green);
  border-radius: 4px;
  transition: width 1s ease;
}

.mission-progress-text {
  font-size: 0.85rem;
  font-weight: var(--fw-bold);
  color: var(--text-secondary);
}

.area-heat-bar {
  background: linear-gradient(90deg,
      var(--area-color) 0%,
      color-mix(in srgb, var(--area-color), white 30%) 100%);
  border-radius: 4px;
  height: 8px;
  transition: width 1s ease;
}

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

  .dashboard-header {
    flex-direction: column;
  }
}

@media (max-width: 900px) {
  .dashboard-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .main-content {
    padding: 24px;
  }

  .mission-content {
    flex-direction: column;
    text-align: center;
  }

}


/* ─── 2. Mobile @media (max-width: 768px) (from responsive.css 569-847) ─ */
@media (max-width: 768px) {
  /* ═════════════════════════════════════════════════════════════════════
     PHASE 2: DASHBOARD
     Compact, single-column, breathing room — app-native feel.
     ═════════════════════════════════════════════════════════════════════ */

  /* ── Dashboard Header Premium Mobile Hero ── */
  .dashboard-header {
    background: linear-gradient(135deg, #FF2A85 0%, #8A2BE2 100%) !important;
    border-radius: 28px !important;
    padding: 32px 24px !important;
    color: #FFFFFF !important;
    margin-top: 16px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 16px 32px rgba(138, 43, 226, 0.25) !important;
    text-align: left !important;
    position: relative;
    overflow: hidden;
    flex-direction: column !important;
  }

  .dashboard-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
  }

  .dashboard-header>div {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    z-index: 1;
    position: relative;
    width: 100%;
  }

  .dashboard-title {
    color: #FFFFFF !important;
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
    margin-bottom: 8px !important;
    justify-content: flex-start !important;
    width: 100% !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .dashboard-title span.material-symbols-outlined {
    color: #FFD700 !important;
  }

  .dashboard-header div[style*="color: var(--text-secondary)"] {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1rem !important;
  }

  .dashboard-header div[style*="color: var(--text-secondary)"] span {
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.2) !important;
    padding: 2px 8px !important;
    border-radius: 12px !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
  }

  /* ── Streak Badge Premium Inline ── */
  .streak-visual {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 20px !important;
    padding: 16px !important;
    margin-top: 24px !important;
    width: 100% !important;
    z-index: 1;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
  }

  .streak-badge {
    background: transparent !important;
    border: none !important;
    color: #FFFFFF !important;
    padding: 0 !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    margin-bottom: 12px !important;
    box-shadow: none !important;
    justify-content: flex-start !important;
  }

  .streak-badge .streak-pulse {
    color: #FFB020 !important;
    font-size: 24px !important;
  }

  .streak-visual-bar-bg {
    background: rgba(255, 255, 255, 0.2) !important;
    height: 6px !important;
    border-radius: 4px !important;
    margin-bottom: 8px !important;
  }

  .streak-visual-bar-fill {
    background: #FFFFFF !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8) !important;
    border-radius: 4px !important;
  }

  .streak-visual-text {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    text-align: left !important;
    display: block !important;
  }

  /* ── Dashboard Grid — Single column ── */
  .dashboard-grid {
    grid-template-columns: 1fr !important;
    gap: var(--m-gap-lg) !important;
    margin-bottom: var(--m-gap-xl) !important;
  }

  .side-cards-stack {
    gap: var(--m-gap-lg);
  }

  /* ── Mission Card — Compact Mobile Premium ── */
  .mission-card {
    padding: 24px !important;
    border-radius: 24px !important;
    background: #FFFFFF !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0, 0, 0, 0.02) !important;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
    gap: var(--m-gap-lg) !important;
  }

  .mission-header {
    font-size: 1.05rem;
    gap: 8px;
  }

  .mission-content {
    gap: var(--m-gap-md);
  }




  .mission-progress {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-top: 4px;
  }

  .mission-progress-text {
    font-size: 0.8rem;
  }

  /* ── Stats Cards — Compact Mobile Premium ── */
  .stats-card {
    padding: 24px !important;
    border-radius: 24px !important;
    background: #FFFFFF !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0, 0, 0, 0.02) !important;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
  }

  .stats-header {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    margin-bottom: var(--m-gap-lg);
    color: var(--text-primary) !important;
    letter-spacing: -0.2px !important;
  }

  .stats-score-main {
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    letter-spacing: -1px !important;
  }


  /* ── Areas Grid — 2 tight columns ── */
  .areas-section-header {
    margin-bottom: var(--m-gap-lg);
    flex-direction: column;
    gap: 2px;
  }

  .areas-section-title {
    font-size: 1.05rem;
  }

  .areas-section-sub {
    font-size: 0.78rem;
  }

  .areas-grid-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--m-gap-md) !important;
  }

  .area-mini-card {
    padding: 14px !important;
    border-radius: 14px !important;
  }

  .area-icon-box {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    margin-bottom: 10px;
  }

  .area-icon-box .material-symbols-outlined {
    font-size: 18px;
  }

  .area-name {
    font-size: 0.82rem;
  }

  .area-progress-text {
    font-size: 0.7rem;
    margin-bottom: 8px;
  }

  /* ── Upsell Card — Compact ── */
  .upsell-card {
    padding: 14px !important;
    border-radius: var(--m-card-r) !important;
    gap: var(--m-gap-md);
  }

  .upsell-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
  }

  .upsell-title {
    font-size: 0.88rem;
  }

  .upsell-text {
    font-size: 0.75rem;
  }


  /* ── Quick Actions Pills — Scrollable ── */
  .dashboard-pills {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: nowrap !important;
    gap: var(--m-gap-sm);
    padding-bottom: 4px;
  }

  .dashboard-pills::-webkit-scrollbar {
    display: none;
  }

  .dashboard-pills .pill-tag {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.78rem;
    padding: 6px 12px;
  }
}


/* ─── 3. OVERHAUL VISUAL V2 (from learning.css 587-994) ──────────────── */
/* Dashboard gamified UI: aura-breathe glow system, xp-bar, radar chart, */
/* empty-state-creative, section-fade-in animations. */
/* */
/* NOTA: incluye reglas profile mobile MIXED al final del bloque responsive */
/* (.profile-layout, .profile-hero, .profile-stats-grid en @media max-width: */
/* 900px y 768px). Deberían moverse a profile.css en Round 7 cleanup. */
/* ══════════════════════════════════════════════════════════════════════════
   OVERHAUL VISUAL V2 — Gamified UI System
   ══════════════════════════════════════════════════════════════════════════ */


/* ── 2. Aura Viva — Ambient Glow System ──────────────────────────────── */
.area-mini-card {
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.area-mini-card::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background: radial-gradient(ellipse at center,
      var(--card-glow, rgba(108, 43, 255, 0.06)) 0%,
      transparent 70%);
  z-index: -1;
  opacity: var(--card-glow-opacity, 0);
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.area-mini-card:hover {
  transform: translateY(-4px);
}

.area-mini-card:hover::before {
  opacity: 1;
}

/* Per-area glow tokens */
.area-mini-card[data-area="matematicas"] {
  --card-glow: rgba(0, 229, 255, 0.12);
}

.area-mini-card[data-area="lectura-critica"] {
  --card-glow: rgba(255, 152, 0, 0.12);
}

.area-mini-card[data-area="ciencias-naturales"] {
  --card-glow: rgba(0, 200, 83, 0.12);
}

.area-mini-card[data-area="sociales-y-ciudadanas"] {
  --card-glow: rgba(211, 47, 47, 0.12);
}

.area-mini-card[data-area="ingles"] {
  --card-glow: rgba(98, 0, 234, 0.12);
}

/* Hover shadows per area */
.area-mini-card[data-area="matematicas"]:hover {
  box-shadow: var(--shadow-mat);
}

.area-mini-card[data-area="lectura-critica"]:hover {
  box-shadow: var(--shadow-lec);
}

.area-mini-card[data-area="ciencias-naturales"]:hover {
  box-shadow: var(--shadow-nat);
}

.area-mini-card[data-area="sociales-y-ciudadanas"]:hover {
  box-shadow: var(--shadow-soc);
}

.area-mini-card[data-area="ingles"]:hover {
  box-shadow: var(--shadow-eng);
}

/* Glow intensity levels (set via JS data-glow attr) */
.area-mini-card[data-glow="none"]::before {
  opacity: 0;
}

.area-mini-card[data-glow="low"]::before {
  opacity: 0.4;
}

.area-mini-card[data-glow="medium"]::before {
  opacity: 0.7;
}

.area-mini-card[data-glow="high"]::before {
  opacity: 1;
  animation: aura-breathe 3s ease-in-out infinite;
}

@keyframes aura-breathe {

  0%,
  100% {
    opacity: 0.8;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

/* ── 3. Area-colored border accent ───────────────────────────────────── */
.area-mini-card[data-area="matematicas"] {
  border-left: 3px solid var(--area-mat);
}

.area-mini-card[data-area="lectura-critica"] {
  border-left: 3px solid var(--area-lec);
}

.area-mini-card[data-area="ciencias-naturales"] {
  border-left: 3px solid var(--area-nat);
}

.area-mini-card[data-area="sociales-y-ciudadanas"] {
  border-left: 3px solid var(--area-soc);
}

.area-mini-card[data-area="ingles"] {
  border-left: 3px solid var(--area-eng);
}

/* ── 4. Gamified Stat Cards ──────────────────────────────────────────── */
.progress-stat-card {
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.progress-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-violet-sm);
}

/* ── 5. XP-Style Progress Bars (gradient) ────────────────────────────── */
.xp-bar-bg {
  width: 100%;
  height: 10px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.xp-bar-fill {
  height: 100%;
  border-radius: 5px;
  position: relative;
  transition: width 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.xp-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.25), transparent);
  border-radius: 5px 5px 0 0;
}

/* ── 6. Radar Chart — Premium Pentagrama ─────────────────────────────── */
.radar-chart-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: var(--sp-lg) 0;
  min-height: 420px;
}

.radar-chart-svg {
  width: 100%;
  height: auto;
}

.radar-label {
  font-family: var(--font-family);
  pointer-events: none;
}

.radar-value-label {
  font-family: var(--font-family);
  pointer-events: none;
}

.radar-dot {
  cursor: pointer;
  filter: drop-shadow(0 0 0px transparent);
  transition: filter 0.3s ease;
}

.radar-dot:hover {
  filter: drop-shadow(0 0 10px currentColor);
}

.radar-polygon-fill {
  transform-origin: center;
  animation: radarReveal 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes radarReveal {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Callout tooltip */
.radar-callout-box {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  background: var(--bg-white, #fff);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 10px 20px;
  border-radius: var(--r-md);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  transform: translate(-50%, -50%) scale(0.7);
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  z-index: 20;
  white-space: nowrap;
}

.radar-callout-box.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ── 7. Creative Empty States ────────────────────────────────────────── */
.empty-state-creative {
  text-align: center;
  padding: var(--sp-3xl) var(--sp-xl);
  background: linear-gradient(180deg, rgba(108, 43, 255, 0.03) 0%, transparent 100%);
  border-radius: var(--r-xl);
  border: 2px dashed rgba(108, 43, 255, 0.12);
}

.empty-state-creative .empty-icon-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(108, 43, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-lg);
}

.empty-state-creative .empty-icon-ring .material-symbols-outlined {
  font-size: 36px;
  color: var(--violet);
  opacity: 0.5;
}

.empty-state-creative .empty-mascot {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(108, 43, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-lg);
  border: 2px dashed rgba(108, 43, 255, 0.15);
}

.empty-state-creative h3 {
  font-size: 1.1rem;
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-sm);
  color: var(--text-primary);
}

.empty-state-creative p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 300px;
  margin: 0 auto var(--sp-lg);
  line-height: 1.6;
}

/* ── 8. Profile Player Hub — Duolingo-Inspired Redesign ──────────────── */

/* 2-Column Layout */

body.dark-mode .settings-label {
  color: #e0e0e0;
}

body.dark-mode .form-input {
  background: var(--bg-primary);
  border-color: var(--border);
  color: var(--text-primary);
}

/* ── 9. Unified micro-interaction for all interactive cards ──────────── */
.stats-card,
.hero-card,
.progress-area-card,
.progress-route-item,
.progress-recommendation-card,
.hub-utility-card,
.hub-module-card {
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.stats-card:hover,
.hero-card:hover,
.progress-area-card:hover,
.progress-route-item:hover,
.hub-utility-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-violet-md);
}

/* ── 10. Section fade-in for Progress/Profile pages ──────────────────── */
.section-fade-in {
  opacity: 0;
  transform: translateY(16px);
  animation: sectionReveal 0.6s ease forwards;
}

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

.section-fade-in:nth-child(1) {
  animation-delay: 0ms;
}

.section-fade-in:nth-child(2) {
  animation-delay: 80ms;
}

.section-fade-in:nth-child(3) {
  animation-delay: 160ms;
}

.section-fade-in:nth-child(4) {
  animation-delay: 240ms;
}

.section-fade-in:nth-child(5) {
  animation-delay: 320ms;
}

.section-fade-in:nth-child(6) {
  animation-delay: 400ms;
}

/* ── 11. Responsive adjustments for overhaul ─────────────────────────── */
@media (max-width: 900px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-sidebar {
    order: 2;
  }
}

@media (max-width: 768px) {
  .profile-hero {
    flex-direction: column;
    text-align: center;
  }

  .profile-hero-since {
    justify-content: center;
  }

  .profile-hero-badges {
    justify-content: center;
  }

  .profile-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-achievements-grid {
    justify-content: center;
  }

  .radar-chart-container {
    min-height: 280px;
  }
}




/* ─── Mobile touch states (extracted from compound selector in responsive.css Round 10.5) ── */
@media (max-width: 768px) {
  /* Kill hover transforms on touch devices */
  .area-mini-card:hover,
  .stats-card:hover,
  .mission-card:hover,
  .upsell-card:hover {
    transform: none !important;
    box-shadow: inherit;
  }

  /* Active press feedback instead of hover */
  .area-mini-card:active,
  .upsell-card:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
  }
}
