.home-welcome { margin-bottom: 32px }
.home-greeting { font-size: 36px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; font-family: 'Space Grotesk', sans-serif }
.home-greeting .wave { display: inline-block; animation: wave 2.5s infinite; transform-origin: 70% 70% }
@keyframes wave { 0%, 100% { transform: rotate(0) } 10% { transform: rotate(14deg) } 20% { transform: rotate(-8deg) } 30% { transform: rotate(14deg) } 40% { transform: rotate(-4deg) } 50% { transform: rotate(10deg) } 60%, 100% { transform: rotate(0) } }
.home-subtitle { font-size: 16px; color: var(--text-secondary); line-height: 1.6 }

.home-kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 36px }
.home-kpi { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-lg); padding: 24px; display: flex; align-items: flex-start; gap: 16px; transition: all .3s var(--ease); box-shadow: var(--shadow-sm) }
.home-kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-md) }
.home-kpi-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0 }
.home-kpi-icon.fire { background: linear-gradient(135deg, rgba(239, 68, 68, .1), rgba(245, 158, 11, .1)); color: #ef4444 }
.home-kpi-icon.check { background: rgba(16, 185, 129, .1); color: var(--success) }
.home-kpi-icon.trophy { background: rgba(245, 158, 11, .1); color: var(--accent) }
.home-kpi-icon.clock { background: rgba(37, 99, 235, .1); color: var(--primary) }
.home-kpi-content { flex: 1; min-width: 0 }
.home-kpi-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; font-weight: 500; margin-bottom: 4px }
.home-kpi-value { font-size: 24px; font-weight: 800; font-family: 'Space Grotesk', sans-serif; color: var(--text-primary); margin-bottom: 8px }
.home-kpi-bar { height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; margin-bottom: 6px }
.home-kpi-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #3b82f6); border-radius: 3px; transition: width .8s var(--ease) }
.home-kpi-bar-fill.green { background: linear-gradient(90deg, var(--success), #34d399) }
.home-kpi-sub { font-size: 12px; color: var(--text-muted) }
.home-kpi-badges { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px }
.home-badge { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: all .3s var(--ease) }
.home-badge.earned { background: rgba(245, 158, 11, .15) }
.home-badge.locked { opacity: .2; filter: grayscale(1) }

.home-section { margin-bottom: 32px }
.home-section-title { font-size: 18px; font-weight: 600; color: var(--text-primary); margin-bottom: 16px; display: flex; align-items: center; gap: 10px }
.home-section-title i { color: var(--primary); font-size: 16px }

.home-next-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-lg); padding: 24px; display: flex; align-items: center; gap: 20px; cursor: pointer; transition: all .3s var(--ease); box-shadow: var(--shadow-sm) }
.home-next-card:hover { border-color: #93c5fd; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37, 99, 235, .1) }
.home-next-card.completed-card { cursor: default; border-color: rgba(16, 185, 129, .3) }
.home-next-num { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--primary), #3b82f6); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 22px; font-family: 'Space Grotesk', sans-serif; color: #fff; flex-shrink: 0 }
.home-next-body { flex: 1; min-width: 0 }
.home-next-body h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; color: var(--text-primary) }
.home-next-body p { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; line-height: 1.5 }
.home-next-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text-muted) }
.home-next-meta span { display: flex; align-items: center; gap: 4px }
.home-next-meta i { font-size: 11px }
.home-next-btn { flex-shrink: 0 }

.home-activity-list { display: flex; flex-direction: column; gap: 10px }
.home-activity-item { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); font-size: 14px; color: var(--text-secondary); transition: all .2s var(--ease) }
.home-activity-item:hover { border-color: #cbd5e1; background: #f8fafc }
.home-activity-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0 }
.home-activity-icon.blue { background: var(--primary-light); color: var(--primary) }
.home-activity-icon.green { background: var(--success-light); color: var(--success) }
.home-activity-icon.amber { background: var(--accent-light); color: var(--accent) }

.home-badges-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px }
.home-badge-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-lg); padding: 20px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; transition: all .3s var(--ease); box-shadow: var(--shadow-sm) }
.home-badge-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md) }
.home-badge-card-icon { font-size: 32px; line-height: 1; display: block }
.home-badge-card-name { font-size: 12px; font-weight: 700; color: var(--text-primary); font-family: 'Space Grotesk', sans-serif; letter-spacing: 0.2px }
.home-badge-earned { background: linear-gradient(135deg, #FFFBEB, #FEF3C7); border-color: #FDE68A }
.home-badge-earned .home-badge-card-icon { animation: badgeShine 3s ease-in-out infinite }
.home-badge-locked { opacity: .45; filter: grayscale(1) }
.home-badge-locked .home-badge-card-name { color: var(--text-muted) }
@keyframes badgeShine { 0%, 100% { transform: scale(1) } 50% { transform: scale(1.08) } }

.home-leaderboard-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px }
.home-leaderboard-header .home-section-title { margin-bottom: 0 }
.home-leaderboard-link { background: none; border: none; color: var(--primary); font-size: 13px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius); transition: all .2s var(--ease) }
.home-leaderboard-link:hover { background: var(--primary-light); color: #1d4ed8 }
.home-leaderboard { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm) }
.home-lb-row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--card-border); transition: all .2s var(--ease) }
.home-lb-row:last-child { border-bottom: none }
.home-lb-row:hover { background: #f8fafc }
.home-lb-me { background: linear-gradient(90deg, rgba(37, 99, 235, .04), rgba(37, 99, 235, .02)); border-left: 3px solid var(--primary) }
.home-lb-rank { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; font-family: 'Space Grotesk', sans-serif; color: var(--text-muted); background: #f1f5f9; flex-shrink: 0 }
.home-lb-rank.gold { background: linear-gradient(135deg, #FEF3C7, #FDE68A); color: #b45309 }
.home-lb-rank.silver { background: linear-gradient(135deg, #f1f5f9, #e2e8f0); color: #475569 }
.home-lb-rank.bronze { background: linear-gradient(135deg, #FED7AA, #FDBA74); color: #9a3412 }
.home-lb-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #2563eb, #3b82f6); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; color: #fff; flex-shrink: 0; font-family: 'Space Grotesk', sans-serif }
.home-lb-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px }
.home-lb-name { font-size: 14px; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 8px }
.home-lb-level { font-size: 12px; color: var(--text-muted) }
.home-lb-you { font-size: 10px; font-weight: 700; color: var(--primary); background: var(--primary-light); padding: 2px 8px; border-radius: 10px; text-transform: uppercase; letter-spacing: .5px }
.home-lb-bar-wrap { flex: 0 0 120px }
.home-lb-bar { height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden }
.home-lb-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #3b82f6); border-radius: 3px; transition: width .8s var(--ease) }
.home-lb-xp { font-size: 13px; font-weight: 700; color: var(--text-primary); font-family: 'Space Grotesk', sans-serif; min-width: 60px; text-align: right }

.resume-banner { background: linear-gradient(135deg, #2563eb, #3b82f6, #1d4ed8); border-radius: var(--radius-lg); padding: 18px 24px; margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; transition: all .3s var(--ease); box-shadow: 0 4px 20px rgba(37, 99, 235, .25); position: relative; overflow: hidden }
.resume-banner::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .15), transparent); animation: bannerShimmer 3s ease-in-out infinite }
@keyframes bannerShimmer { 0% { left: -100% } 50% { left: 100% } 100% { left: 100% } }
.resume-banner:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37, 99, 235, .35) }
.resume-banner-content { display: flex; flex-direction: column; gap: 2px }
.resume-banner-label { font-size: 12px; color: rgba(255, 255, 255, .8); font-weight: 500; text-transform: uppercase; letter-spacing: .5px }
.resume-banner-module { font-size: 20px; font-weight: 700; color: #fff; font-family: 'Space Grotesk', sans-serif }
.resume-banner-arrow { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .2); border: none; color: #fff; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s var(--ease); flex-shrink: 0 }
.resume-banner-arrow:hover { background: rgba(255, 255, 255, .35); transform: scale(1.1) }

.formation-complete-banner { background: var(--card-bg); border: 2px solid rgba(16, 185, 129, .3); border-radius: var(--radius-lg); padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; box-shadow: var(--shadow-sm) }
.formation-complete-banner:hover { box-shadow: var(--shadow-md) }
.formation-complete-left { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0 }
.formation-complete-check { font-size: 32px; color: var(--success); flex-shrink: 0 }
.formation-complete-title { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px }
.formation-complete-sub { font-size: 14px; color: var(--text-secondary); line-height: 1.5; margin: 0 }
.formation-complete-btn { flex-shrink: 0; white-space: nowrap }

@media (max-width: 768px) {
  .home-greeting { font-size: 24px }
  .home-subtitle { font-size: 14px }
  .home-kpi-grid { grid-template-columns: 1fr; gap: 12px; margin-bottom: 24px }
  .home-kpi { padding: 16px; gap: 12px }
  .home-kpi-icon { width: 40px; height: 40px; font-size: 16px; border-radius: 12px }
  .home-kpi-value { font-size: 20px; margin-bottom: 6px }
  .home-next-card { flex-direction: column; align-items: flex-start; padding: 16px; gap: 14px }
  .home-next-num { width: 44px; height: 44px; font-size: 18px; border-radius: 12px }
  .home-next-body h3 { font-size: 14px }
  .home-next-meta { gap: 10px; font-size: 11px }
  .home-next-btn { width: 100% }
  .home-next-btn .btn { width: 100%; justify-content: center }
  .resume-banner { padding: 14px 16px; flex-direction: column; gap: 12px; align-items: flex-start }
  .resume-banner-module { font-size: 15px }
  .resume-banner-arrow { width: 36px; height: 36px; font-size: 14px; align-self: flex-end }
  .formation-complete-banner { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px }
  .formation-complete-title { font-size: 16px }
  .formation-complete-sub { font-size: 13px }
  .formation-complete-btn { width: 100% }
  .formation-complete-btn .btn { width: 100%; justify-content: center }
  .home-badges-grid { grid-template-columns: repeat(2, 1fr); gap: 8px }
  .home-badge-card { padding: 14px 8px }
  .home-badge-card-icon { font-size: 26px }
  .home-badge-card-name { font-size: 11px }
  .home-section-title { font-size: 16px }
  .home-lb-bar-wrap { display: none }
  .home-lb-row { padding: 12px 14px; gap: 10px }
  .home-lb-xp { font-size: 12px; min-width: 50px }
  .home-activity-item { padding: 12px 14px; font-size: 13px }
}
@media (max-width: 480px) {
  .home-greeting { font-size: 20px }
  .home-kpi-grid { gap: 10px }
  .home-kpi { padding: 14px }
  .home-badges-grid { grid-template-columns: repeat(2, 1fr) }
}
