.medugo-dash-body {
  min-height: 100vh;
  background: radial-gradient(1200px 520px at 85% -10%, rgba(59, 130, 246, 0.2), transparent 60%), #060b18;
}

.medugo-dash-header {
  background: rgba(4, 10, 24, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  padding: 0;
}

.medugo-dash-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 64px;
  gap: 12px;
}

.medugo-dash-nav > .logo { order: 1; justify-self: start; }
.medugo-dash-nav > .medugo-dash-links { order: 2; justify-self: center; }
.medugo-dash-nav > .medugo-dash-actions { order: 3; justify-self: end; }
.medugo-dash-nav .logo { margin-right: 8px; }

.medugo-dash-nav .logo > span { color: #fff; }
.medugo-dash-nav .logo .logo-go {
  background: linear-gradient(90deg, var(--primary-color), #60a5fa, #f43f5e, var(--primary-color));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: logoFlow 4s linear infinite;
}
@keyframes logoFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: -150% 50%; }
}

.medugo-dash-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 18px;
}

.medugo-dash-links a {
  color: #c7d2fe;
  text-decoration: none;
  font-weight: 600;
}

.medugo-dash-links a.active,
.medugo-dash-links a:hover { color: #fff; }

.play-link {
  position: relative;
  color: #fff !important;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--primary-color) 65%, transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--primary-color) 32%, transparent), rgba(59, 130, 246, 0.2));
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary-color) 45%, transparent);
  animation: playPulse 1.6s ease-in-out infinite;
}
@keyframes playPulse {
  0%, 100% { transform: translateY(0); box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary-color) 40%, transparent); }
  50% { transform: translateY(-1px) scale(1.02); box-shadow: 0 0 14px 2px color-mix(in srgb, var(--primary-color) 35%, transparent); }
}

.medugo-dash-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dash-coin-chip,
.dash-account-chip {
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.7);
  color: #e2e8f0;
  border-radius: 999px;
  min-height: 38px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.coin-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.avatar-head {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.head-layer {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  transform: translateY(-7%) scale(2.05) !important;
  transform-origin: 50% 14% !important;
  object-fit: contain !important;
  object-position: center !important;
}

.head-layer[src=""], .head-layer:not([src]) { display: none; }

.medugo-dash-main { padding-top: 14px; padding-bottom: 20px; }

.dash-loading-screen {
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 5;
}

.dash-loading-content {
  border: 1px solid rgba(148,163,184,.3);
  background: rgba(7, 16, 34, 0.85);
  border-radius: 14px;
  padding: 18px 20px;
  text-align: center;
  color: #dbeafe;
}

.dash-spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  border-radius: 999px;
  border: 3px solid rgba(148,163,184,.3);
  border-top-color: var(--primary-color);
  animation: dashSpin .8s linear infinite;
}

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

.dashboard-hidden {
  display: none !important;
}

.dash-shell {
  border: 1px solid rgba(59, 130, 246, 0.25);
  background: linear-gradient(180deg, rgba(10, 20, 42, 0.9), rgba(8, 16, 34, 0.92));
  border-radius: 18px;
  padding: 12px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.dash-card {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--primary-color) 8%, #0b1730) 0%, rgba(7, 16, 34, 0.86) 55%, rgba(5, 12, 28, 0.92) 100%);
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  min-width: 0;
}

.dash-card-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  min-width: 0;
}

.dash-card-header h3 {
  margin: 0;
  color: #e2e8f0;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  min-width: 0;
}

.dash-card-header .material-symbols-outlined {
  font-size: 18px;
  color: color-mix(in srgb, var(--primary-color) 65%, #e2e8f0);
}

.dash-filters { display: inline-flex; gap: 6px; }
.dash-filters { flex-shrink: 0; }
.dash-card-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dash-filters select {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.26);
  color: #dbeafe;
  border-radius: 8px;
  padding: 2px 8px;
  height: 28px;
  font-size: 12px;
  min-width: 84px;
  white-space: nowrap;
}

.leaderboard-list {
  display: grid;
  gap: 6px;
  max-height: 340px;
  overflow: auto;
  padding-right: 4px;
}

.leaderboard-card {
  min-height: 430px;
  max-height: 430px;
  display: flex;
  flex-direction: column;
}

.leaderboard-card .leaderboard-list {
  flex: 1;
}

.leaderboard-item {
  display: grid;
  grid-template-columns: 24px 24px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
  background: rgba(10, 18, 36, 0.7);
  color: #dbeafe;
  overflow: hidden;
  position: relative;
}

.leaderboard-item.top-1 {
  border: 1px solid rgba(245, 158, 11, 0.55);
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.18), rgba(10, 18, 36, 0.7));
}
.leaderboard-item.top-2 {
  border: 1px solid rgba(203, 213, 225, 0.5);
  background: linear-gradient(90deg, rgba(203, 213, 225, 0.14), rgba(10, 18, 36, 0.7));
}
.leaderboard-item.top-3 {
  border: 1px solid rgba(180, 83, 9, 0.5);
  background: linear-gradient(90deg, rgba(180, 83, 9, 0.16), rgba(10, 18, 36, 0.7));
}
.leaderboard-item.top-1::after,
.leaderboard-item.top-2::after,
.leaderboard-item.top-3::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.22) 50%, transparent 70%);
  transform: translateX(-130%);
  animation: rankShine 2.8s linear infinite;
  pointer-events: none;
}
@keyframes rankShine {
  to { transform: translateX(130%); }
}
.leaderboard-rank.top-1 { color: #f59e0b; font-weight: 800; }
.leaderboard-rank.top-2 { color: #cbd5e1; font-weight: 800; }
.leaderboard-rank.top-3 { color: #b45309; font-weight: 800; }
.leader-rank-badge {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(96,165,250,.35));
}

.leader-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #dbeafe;
  text-decoration: none;
  min-width: 0;
}
.leader-user:hover { text-decoration: underline; }
.leader-avatar {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.35);
}
.leader-user span {
  display: inline-block;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.streak-meta { display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }

.streak-chip {
  color: #cbd5e1;
  font-size: 11px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.7);
  border-radius: 999px;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.streak-chip.current {
  border-color: color-mix(in srgb, var(--primary-color) 65%, #fff);
  color: #fff;
  min-width: 24px;
}

.streak-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  max-height: 300px;
  overflow: auto;
  padding-right: 4px;
}

.streak-card {
  min-height: 430px;
  max-height: 430px;
  display: flex;
  flex-direction: column;
}

.calendar-separator {
  grid-column: 1 / -1;
  color: #93c5fd;
  font-size: 12px;
  margin-top: 6px;
}

.calendar-day {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  padding: 4px;
  text-align: center;
  color: #cbd5e1;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.calendar-day.is-active {
  border-color: color-mix(in srgb, var(--primary-color) 70%, #fff);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--primary-color) 30%, transparent) inset,
    0 0 16px color-mix(in srgb, var(--primary-color) 25%, transparent);
  transform: translateY(-1px);
}

.calendar-day.is-today { background: rgba(59, 130, 246, 0.18); }

.day-icon .material-symbols-outlined { font-size: 16px; }
.calendar-day.is-active .day-icon .material-symbols-outlined {
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.65), 0 0 24px rgba(249, 115, 22, 0.55);
  animation: flameFlicker .55s ease-in-out infinite alternate;
}
@keyframes flameFlicker {
  0% { transform: scale(1) rotate(-5deg) translateY(0); filter: drop-shadow(0 0 3px rgba(251,191,36,.6)); }
  100% { transform: scale(1.16) rotate(5deg) translateY(-1px); filter: drop-shadow(0 0 11px rgba(251,191,36,.8)); }
}
.day-label { font-size: 11px; }

.streak-note { color: #94a3b8; font-size: 12px; margin: 8px 0 0; }

.rank-badge-img { width: 120px; max-width: 100%; display: block; margin: 6px auto; }
.rank-badge-img { filter: drop-shadow(0 7px 12px rgba(249,115,22,.35)); }
.rank-title { margin: 4px 0; color: #fff; }
.xp-amount { margin: 2px 0; color: #e2e8f0; font-weight: 700; }
.xp-label { margin: 0; color: #94a3b8; font-size: 12px; }
.rank-progress-wrap { margin: 8px 0 6px; }
.rank-progress-track {
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: rgba(148,163,184,.28);
  overflow: hidden;
}
.rank-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  transition: width .35s ease;
}

.next-rank-panel {
  margin-top: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  padding: 8px;
  background: rgba(9, 18, 38, 0.75);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}
.next-rank-badge {
  width: 70px;
  height: auto;
  display: block;
  margin: 0;
  justify-self: end;
  filter: drop-shadow(0 6px 12px rgba(96,165,250,.35));
}
.next-rank-text { text-align: left; }
.next-rank-label {
  margin: 0;
  color: #94a3b8;
  font-size: 11px;
}
.next-rank-name {
  margin: 4px 0 2px;
  color: #e2e8f0;
  font-weight: 700;
}
.next-rank-requirement {
  margin: 0;
  color: color-mix(in srgb, var(--primary-color) 70%, #dbeafe);
  font-size: 12px;
}

.ghost-btn {
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.65);
  color: #dbeafe;
  border-radius: 8px;
  padding: 4px 8px;
  cursor: pointer;
}

.xp-track { margin-bottom: 10px; }
.progress-summary {
  margin: 0 0 8px;
  color: #cbd5e1;
  font-size: 13px;
}
.xp-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.26);
  overflow: hidden;
}
.xp-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  transition: width .35s ease;
}

.daily-progress-list { display: grid; gap: 6px; }
.daily-progress-list.is-collapsed { display: none; }
.daily-progress-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  border-radius: 8px;
  background: rgba(10, 18, 36, 0.7);
}

.status-icon.completed { color: #22c55e; }
.status-icon.incomplete { color: #ef4444; }

.rewards-card { grid-column: 1 / span 2; }
.rewards-points-label {
  margin: 0;
  color: #94a3b8;
  font-size: 12px;
}
.rewards-points-value {
  margin: 4px 0 10px;
  color: #fff;
  font-size: 34px;
  font-weight: 800;
}
.rewards-btn {
  min-height: 34px;
  padding: 6px 10px;
}
.rewards-forecast {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 6px 0 10px;
}
.reward-forecast-chip {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  padding: 8px;
  background: rgba(10, 18, 36, 0.72);
}
.reward-forecast-label {
  margin: 0;
  color: #93c5fd;
  font-size: 11px;
}
.reward-forecast-value {
  margin: 4px 0 0;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.rewards-note {
  margin: 10px 0 0;
  color: #93c5fd;
  font-size: 12px;
}

.avatar-card { grid-column: 3 / span 2; }
.player-avatar-link {
  text-decoration: none;
  display: block;
}
.player-avatar-stage {
  width: 180px;
  height: 180px;
  margin: 6px auto 0;
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.25);
  background: radial-gradient(70% 80% at 50% 20%, rgba(59,130,246,.2), rgba(8,16,34,.95));
  overflow: hidden;
}
.player-avatar-stage .avatar-stack {
  position: absolute;
  inset: 0;
  transform-origin: 50% 62%;
}
.player-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.player-layer[src=""], .player-layer:not([src]) { display: none; }

.avatar-live {
  --avatar-look-x: 0px;
  --avatar-look-y: 0px;
  --avatar-look-tilt: 0deg;
  --avatar-bob-delay: 0s;
  --avatar-eye-shift: 0px;
  animation: avatarLiveBob 3.4s ease-in-out infinite;
  animation-delay: var(--avatar-bob-delay);
  will-change: transform;
}

.avatar-live::after {
  content: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at calc(42% + var(--avatar-eye-shift)) 40%, rgba(12,16,22,.96) 0 1.45%, transparent 2.05%),
    radial-gradient(ellipse at calc(58% + var(--avatar-eye-shift)) 40%, rgba(12,16,22,.96) 0 1.45%, transparent 2.05%);
  opacity: .86;
  animation: avatarLiveBlink 5.6s ease-in-out infinite;
}

.player-avatar-stage .avatar-live .player-layer[id$="-head"] {
  animation: avatarAccessoryFloat 3.4s ease-in-out infinite;
  animation-delay: var(--avatar-bob-delay);
  will-change: transform;
}

.avatar-head.avatar-live {
  animation: none;
}

@keyframes avatarLiveBob {
  0%, 100% { transform: translate3d(var(--avatar-look-x), 0, 0) rotate(var(--avatar-look-tilt)) scale(1); }
  45% { transform: translate3d(var(--avatar-look-x), -5px, 0) rotate(var(--avatar-look-tilt)) scale(1.012, .992); }
  70% { transform: translate3d(var(--avatar-look-x), -2px, 0) rotate(var(--avatar-look-tilt)) scale(.998, 1.006); }
}

@keyframes avatarAccessoryFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  48% { transform: translateY(-2px) rotate(-.8deg); }
}

@keyframes avatarLiveBlink {
  0%, 88%, 93%, 100% { transform: scaleY(1); opacity: .58; }
  90%, 91% { transform: scaleY(.08); opacity: .18; }
}

@media (prefers-reduced-motion: reduce) {
  .avatar-live,
  .avatar-live::after,
  .avatar-live .player-layer[id$="-head"],
  .avatar-live .head-layer[id$="-hat"] {
    animation: none !important;
  }
}

.modal-overlay.hidden { display: none; }
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 20, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}
.modal {
  width: min(480px, 92vw);
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: #0b1730;
  border-radius: 12px;
  padding: 14px;
  color: #e2e8f0;
  position: relative;
  overflow: hidden;
}
.reward-modal {
  width: min(620px, 94vw);
  text-align: center;
  background: linear-gradient(180deg, rgba(11, 23, 48, 0.74), rgba(8, 16, 34, 0.68));
  border-color: color-mix(in srgb, var(--primary-color) 45%, rgba(148, 163, 184, 0.32));
  box-shadow: 0 16px 40px rgba(2, 8, 23, 0.6);
  animation: rewardModalGlow 3.2s ease-in-out infinite;
}
.reward-modal-title {
  margin: 2px 0 12px;
  font-size: 24px;
  color: #f8fafc;
}
.reward-summary-line {
  margin: 0 0 12px;
  color: #cbd5e1;
  font-size: 13px;
}
.reward-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.reward-stat-card {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(12, 24, 50, 0.62), rgba(8, 16, 34, 0.56));
  padding: 12px 10px;
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 6px;
  animation: rewardCardGlow 2.6s ease-in-out infinite;
}
.reward-stat-icon {
  font-size: 30px;
  color: color-mix(in srgb, var(--primary-color) 75%, #f8fafc);
  animation: rewardIconPulse 1.6s ease-in-out infinite;
}
.reward-stat-label {
  margin: 0;
  color: #94a3b8;
  font-size: 12px;
}
.reward-coins,
.reward-streak {
  margin: 0;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
}
.reward-modal #claim-reward-btn {
  min-width: 140px;
  border-color: var(--primary-color) !important;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-color-hover)) !important;
  color: #fff !important;
}

.reward-modal #claim-reward-btn:hover,
.reward-modal #claim-reward-btn:focus-visible {
  border-color: var(--primary-color) !important;
  background: color-mix(in srgb, var(--primary-color) 85%, #ffffff 15%) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary-color) 35%, transparent), 0 10px 22px color-mix(in srgb, var(--primary-color) 35%, transparent);
}
.reward-roadmap-wrap {
  margin: 4px 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  padding: 10px;
  background: rgba(8, 15, 32, 0.68);
}
.reward-roadmap-title {
  margin: 0 0 8px;
  color: #dbeafe;
  font-size: 12px;
}
.reward-roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.reward-step {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  padding: 8px 6px;
  background: rgba(10, 18, 36, 0.76);
  text-align: center;
}
.reward-step-day {
  margin: 0;
  color: #93c5fd;
  font-size: 11px;
}
.reward-step-coins {
  margin: 4px 0 0;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.reward-step.today {
  border-color: color-mix(in srgb, var(--primary-color) 65%, #fff);
  box-shadow: 0 0 18px color-mix(in srgb, var(--primary-color) 22%, transparent);
}
.reward-step.next {
  border-color: rgba(34, 197, 94, 0.5);
}
.reward-info-body p {
  margin: 8px 0;
  color: #dbeafe;
  font-size: 14px;
}

.quests-list {
  max-height: 46vh;
  overflow: auto;
  display: grid;
  gap: 8px;
  margin: 8px 0 12px;
}
.quest-row {
  border: 1px solid rgba(148,163,184,.25);
  border-radius: 8px;
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.quest-title { color: #dbeafe; font-size: 14px; }
.quest-state { color: #94a3b8; font-size: 12px; }
.quest-start-btn {
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 8px;
}
.reward-confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.reward-confetti .reward-confetti-piece {
  position: absolute;
  font-size: 18px;
  line-height: 1;
  opacity: .95;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 10px rgba(59,130,246,.45));
  animation: confettiDrift var(--dur, 1.8s) ease-out forwards;
}
@keyframes confettiDrift {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(0, 0) scale(0.65) rotate(0deg);
  }
  12% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(var(--tx, 0px), var(--ty, -140px)) scale(1.15) rotate(var(--rot, 220deg));
  }
}
@keyframes rewardIconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes rewardModalGlow {
  0%, 100% {
    box-shadow: 0 16px 40px rgba(2, 8, 23, 0.6), 0 0 0 1px color-mix(in srgb, var(--primary-color) 14%, transparent) inset;
  }
  50% {
    box-shadow: 0 18px 44px rgba(2, 8, 23, 0.68), 0 0 22px color-mix(in srgb, var(--primary-color) 22%, transparent), 0 0 0 1px color-mix(in srgb, var(--primary-color) 28%, transparent) inset;
  }
}

@keyframes rewardCardGlow {
  0%, 100% {
    border-color: color-mix(in srgb, var(--primary-color) 28%, rgba(148, 163, 184, 0.28));
    box-shadow: 0 0 0 rgba(0,0,0,0);
  }
  50% {
    border-color: color-mix(in srgb, var(--primary-color) 52%, rgba(148, 163, 184, 0.3));
    box-shadow: 0 0 16px color-mix(in srgb, var(--primary-color) 18%, transparent);
  }
}

.ranks-list { max-height: 48vh; overflow: auto; display: grid; gap: 6px; margin-bottom: 10px; }
.rank-item {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  padding: 8px;
}
.rank-item.is-current {
  border-color: color-mix(in srgb, var(--primary-color) 70%, #fff);
}
.rank-item-level { color: #93c5fd; font-size: 12px; display: block; }

.dashboard-grid.is-loading { opacity: .7; }

.leaderboard-list::-webkit-scrollbar,
.streak-calendar::-webkit-scrollbar,
.ranks-list::-webkit-scrollbar,
.quests-list::-webkit-scrollbar { width: 8px; }
.leaderboard-list::-webkit-scrollbar-thumb,
.streak-calendar::-webkit-scrollbar-thumb,
.ranks-list::-webkit-scrollbar-thumb,
.quests-list::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--primary-color) 45%, rgba(148,163,184,.4));
  border-radius: 999px;
}

.debug-actions {
  display: grid;
  gap: 10px;
  margin: 10px 0 12px;
}

.medugo-mobile-row-wrap { display: none; border-top: 0; }
.medugo-mobile-auth-row { display: none; }

@media (max-width: 1100px) {
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .rewards-card { grid-column: 1 / -1; }
  .avatar-card { grid-column: 1 / -1; }
  .dash-card-header h3 { font-size: 18px; }
}

@media (max-width: 760px) {
  .medugo-dash-nav > .medugo-dash-links { display: none; }
  .medugo-dash-nav { grid-template-columns: auto 1fr auto auto; }
  .medugo-dash-nav > .logo { order: 1; }
  .medugo-dash-nav > .medugo-dash-actions { order: 2; margin-left: auto; }
  .medugo-dash-nav > .hamburger { order: 3; }
  .medugo-dash-nav > .medugo-dash-links { order: 4; }
  .medugo-dash-actions { display: none; }
  .medugo-dash-nav .hamburger { display: inline-flex !important; }
  .medugo-mobile-row-wrap { display: block; max-height: 0; overflow: hidden; transition: max-height .25s ease; background: rgba(8,14,28,.96); }
  .medugo-mobile-row-wrap.is-open { max-height: 210px; }
  .medugo-mobile-row { display: flex; justify-content: center; gap: 8px; padding: 8px 10px; }
  .medugo-mobile-row li { flex: 0 0 auto; }
  .medugo-mobile-row a { min-width: 78px; border-radius: 10px; background: rgba(15,23,42,.45); padding: 8px 10px; }
  .medugo-mobile-auth-row { display: flex; justify-content: center; gap: 8px; padding: 0 10px 10px; }
  .medugo-mobile-auth-row .dash-account-chip, .medugo-mobile-auth-row .dash-coin-chip { min-height: 34px; padding: 4px 9px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .rewards-card { grid-column: auto; }
  .medugo-dash-main { padding-left: 12px; padding-right: 12px; }
  .reward-cards { grid-template-columns: 1fr; }
  .reward-roadmap { grid-template-columns: 1fr 1fr; }
  .rewards-forecast { grid-template-columns: 1fr; }
}
