/* ─── Dashboard Hero Section ─────────────────────────── */
.dashboard-hero {
  background:
    radial-gradient(480px 260px at 105% -10%, rgba(139, 92, 246, .5), transparent 65%),
    radial-gradient(420px 240px at -5% 115%, rgba(34, 227, 238, .26), transparent 60%),
    linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-2xl, var(--radius-xl));
  padding: var(--space-xl) var(--space-2xl);
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(139, 92, 246, .18), 0 0 26px rgba(34, 227, 238, .12);
}

.dashboard-hero::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.dashboard-hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 40%;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.hero-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.level-ring {
  width: 80px;
  height: 80px;
  transform: rotate(-90deg);
}

.level-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 5;
}

.level-ring-fill {
  fill: none;
  stroke: url(#heroRingGrad);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 201;
  stroke-dashoffset: 201;
  transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-avatar {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  backdrop-filter: blur(4px);
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-greeting-eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-wide, .04em);
  text-transform: uppercase;
  color: rgba(255, 255, 255, .65);
}

.hero-greeting {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 800;
  letter-spacing: var(--tracking-tight, -0.02em);
  margin-top: 2px;
  margin-bottom: 4px;
  background: linear-gradient(100deg, #fff 30%, var(--neon-cyan, #22e3ee) 75%, var(--violet-300, #b9a6fb));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-context {
  font-size: var(--text-sm);
  opacity: 0.8;
  margin-bottom: var(--space-sm);
}

.hero-level-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: 4px 14px;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  backdrop-filter: blur(4px);
}

.hero-xp-bar {
  margin-top: var(--space-sm);
  height: 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
  max-width: 280px;
}

.hero-xp-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: #f1c40f;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.level-hint { font-size: var(--text-sm); opacity: 0.95; margin: 6px 0 2px; }
.level-hint strong { color: #f1c40f; }
.level-tip { font-size: var(--text-xs); opacity: 0.75; margin: 0; }

.hero-cta-empty {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  max-width: 220px;
  text-align: center;
  flex-shrink: 0;
}

.hero-stats {
  display: flex;
  gap: var(--space-lg);
  flex-shrink: 0;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  display: block;
}

.hero-stat-label {
  font-size: var(--text-xs);
  opacity: 0.7;
}

@media (max-width: 640px) {
  .dashboard-hero {
    flex-direction: column;
    padding: var(--space-lg);
    text-align: center;
  }
  .hero-stats { justify-content: center; }
  .hero-xp-bar { max-width: 100%; }
}
