/* ============================================================
   Chemistry Made Easy — Premium Student Dashboard
   ============================================================
   Vanilla CSS conversion of the Quicksand/Inter premium design.
   Dark-mode support via [data-theme="dark"] selectors.
   ============================================================ */

/* ── Typography ──────────────────────────────────────────────── */
.pdash-wrap {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

/* ── Auth Gate ────────────────────────────────────────────────── */
.student-gate { min-height: 60vh; }
.student-gate__card {
  text-align: center;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.student-gate__card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}
.student-gate__card p {
  color: var(--text-secondary);
  max-width: 360px;
}

/* ══════════════════════════════════════════════════════════════
   HEADER: Welcome + XP Bar
   ══════════════════════════════════════════════════════════════ */
.pdash-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0 2rem;
}

.pdash-header__title {
  font-family: 'Quicksand', 'Inter', sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 800;
  color: var(--text-primary, #0f172a);
  margin-bottom: 0.2rem;
}

.pdash-header__sub {
  color: var(--text-secondary, #64748b);
  font-size: 0.95rem;
  font-weight: 500;
}

.pdash-header__xp {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card, #ffffff);
  padding: 0.75rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--border-color, #e2e8f0);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  cursor: default;
  transition: border-color 0.2s;
}

.pdash-header__xp:hover {
  border-color: var(--color-teal, #14b8a6);
}

.pdash-xp__info {
  text-align: right;
}

.pdash-xp__level {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-primary, #1e293b);
}

.pdash-xp__bar {
  width: 140px;
  height: 6px;
  background: var(--bg-secondary, #f1f5f9);
  border-radius: 999px;
  margin-top: 0.4rem;
  overflow: hidden;
}

.pdash-xp__fill {
  height: 100%;
  background: var(--color-teal, #0d9488);
  border-radius: 999px;
  transition: width 0.6s ease;
}

.pdash-xp__text {
  font-size: 0.75rem;
  color: var(--text-secondary, #64748b);
  font-weight: 600;
  margin-top: 0.3rem;
}

.pdash-header__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ecfdf5;
  color: var(--color-teal, #0d9488);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid #a7f3d0;
  overflow: hidden;
  flex-shrink: 0;
}

.pdash-header__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

[data-theme="dark"] .pdash-header__avatar {
  background: rgba(20,184,166,0.15);
  border-color: rgba(20,184,166,0.3);
}

/* ══════════════════════════════════════════════════════════════
   TWO-COLUMN GRID
   ══════════════════════════════════════════════════════════════ */
.pdash-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .pdash-grid {
    grid-template-columns: 7fr 5fr;
  }
}

.pdash-grid__left,
.pdash-grid__right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ══════════════════════════════════════════════════════════════
   CARD BASE
   ══════════════════════════════════════════════════════════════ */
.pdash-card {
  background: var(--bg-card, #ffffff);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid var(--border-color, #e2e8f0);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.pdash-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pdash-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary, #1e293b);
  margin: 0;
}

.pdash-card__sub {
  font-size: 0.85rem;
  color: var(--text-secondary, #64748b);
  margin: 0.15rem 0 0;
}

.pdash-card__link {
  color: var(--color-teal, #0d9488);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
}

.pdash-card__link:hover {
  text-decoration: underline;
}

.pdash-empty {
  color: var(--text-secondary, #94a3b8);
  font-size: 0.9rem;
  text-align: center;
  padding: 2rem 1rem;
}

/* ══════════════════════════════════════════════════════════════
   AI HERO BANNER (Priority Action Plan)
   ══════════════════════════════════════════════════════════════ */
.pdash-hero {
  background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
  border-radius: 20px;
  padding: 2rem 2rem 2.5rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(15,118,110,0.2);
}

.pdash-hero__bg {
  position: absolute;
  right: -1rem;
  bottom: -2rem;
  width: 12rem;
  height: 12rem;
  opacity: 0.1;
  pointer-events: none;
  color: #ffffff;
}

.pdash-hero__bg svg {
  width: 100%;
  height: 100%;
}

.pdash-hero__body {
  position: relative;
  z-index: 1;
  max-width: 85%;
}

.pdash-hero__tag {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
}

.pdash-hero__title {
  font-family: 'Quicksand', 'Inter', sans-serif;
  font-size: clamp(1.4rem, 3vw, 1.7rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.25;
  color: #ffffff;
}

.pdash-hero__desc {
  color: #ccfbf1;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 480px;
}

.pdash-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  color: #0f766e;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.15s, box-shadow 0.15s;
}

.pdash-hero__btn:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  color: #0f766e;
}

.pdash-hero__btn:active {
  transform: scale(0.98);
}

/* ══════════════════════════════════════════════════════════════
   MISTAKE VAULT (Interactive)
   ══════════════════════════════════════════════════════════════ */
.pdash-mistake {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary, #f8fafc);
  border: 1px solid var(--border-color, #f1f5f9);
  border-radius: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.pdash-mistake:last-child { margin-bottom: 0; }

.pdash-mistake:hover {
  border-color: var(--color-teal, #14b8a6);
  box-shadow: 0 2px 8px rgba(20,184,166,0.08);
}

.pdash-mistake__badge {
  background: #fef2f2;
  color: #dc2626;
  padding: 0.35rem 0.6rem;
  border-radius: 0.75rem;
  font-weight: 800;
  font-size: 0.8rem;
  white-space: nowrap;
  align-self: flex-start;
  flex-shrink: 0;
}

[data-theme="dark"] .pdash-mistake__badge {
  background: rgba(220,38,38,0.12);
}

.pdash-mistake__content {
  flex: 1;
  min-width: 0;
}

.pdash-mistake__text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary, #334155);
  line-height: 1.4;
  margin-bottom: 0.3rem;
}

.pdash-mistake__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.pdash-mistake__type {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary, #64748b);
  background: var(--bg-card, #ffffff);
  padding: 0.15rem 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color, #e2e8f0);
}

.pdash-mistake__expand {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-teal, #0d9488);
  transition: transform 0.2s;
}

.pdash-mistake--open .pdash-mistake__expand {
  transform: rotate(180deg) translateY(1px);
}

/* ── Expandable detail panel ── */
.pdash-mistake__detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.25s ease;
  margin-top: 0;
}

.pdash-mistake--open .pdash-mistake__detail {
  max-height: 400px;
  opacity: 1;
  margin-top: 0.75rem;
}

.pdash-mistake__row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color, #f1f5f9);
}

.pdash-mistake__row:last-of-type { border-bottom: none; }

.pdash-mistake__row-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary, #94a3b8);
}

.pdash-mistake__row-wrong {
  font-size: 0.85rem;
  font-weight: 600;
  color: #dc2626;
}

.pdash-mistake__row-correct {
  font-size: 0.85rem;
  font-weight: 600;
  color: #059669;
}

.pdash-mistake__row-fb {
  font-size: 0.85rem;
  color: var(--text-primary, #475569);
  line-height: 1.45;
  font-style: italic;
}

.pdash-mistake__retry {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--color-teal, #14b8a6);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.pdash-mistake__retry:hover {
  background: #0d9488;
  transform: scale(1.02);
  color: #ffffff;
}

/* ══════════════════════════════════════════════════════════════
   RECENT EXAMS
   ══════════════════════════════════════════════════════════════ */
.pdash-recent {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pdash-exam {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 1rem;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.pdash-exam:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border-color: var(--color-teal, #14b8a6);
}

.pdash-exam__score {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.pdash-exam__score-label {
  font-size: 0.45rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.8;
  margin-bottom: 0.1rem;
}

.pdash-exam__score--great { background: #ecfdf5; color: #059669; }
.pdash-exam__score--ok    { background: #fffbeb; color: #d97706; }
.pdash-exam__score--bad   { background: #fef2f2; color: #dc2626; }

[data-theme="dark"] .pdash-exam__score--great { background: rgba(5,150,105,0.12); }
[data-theme="dark"] .pdash-exam__score--ok    { background: rgba(217,119,6,0.12); }
[data-theme="dark"] .pdash-exam__score--bad   { background: rgba(220,38,38,0.12); }

.pdash-exam__info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary, #1e293b);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.pdash-exam__info p {
  font-size: 0.8rem;
  color: var(--text-secondary, #64748b);
  font-weight: 500;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   QUICK STATS (2x2 grid)
   ══════════════════════════════════════════════════════════════ */
.pdash-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.pdash-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.75rem;
  background: var(--bg-secondary, #f8fafc);
  border-radius: 0.75rem;
}

.pdash-stat__value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary, #1e293b);
}

.pdash-stat__value--teal  { color: var(--color-teal, #0d9488); }
.pdash-stat__value--amber { color: #d97706; }

.pdash-stat__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ══════════════════════════════════════════════════════════════
   QUICK TOOLS (2x2 grid)
   ══════════════════════════════════════════════════════════════ */
.pdash-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.pdash-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--bg-secondary, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 1rem;
  color: var(--text-secondary, #64748b);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
}

.pdash-tool svg {
  color: var(--text-secondary, #94a3b8);
  transition: color 0.2s;
}

.pdash-tool:hover {
  border-color: var(--color-teal, #14b8a6);
  background: var(--bg-card, #ffffff);
  color: var(--color-teal, #0d9488);
  box-shadow: 0 4px 16px rgba(20,184,166,0.1);
}

.pdash-tool:hover svg {
  color: var(--color-teal, #0d9488);
}

/* ══════════════════════════════════════════════════════════════
   SIGN OUT
   ══════════════════════════════════════════════════════════════ */
.pdash-signout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem;
  background: transparent;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 1rem;
  color: var(--text-secondary, #64748b);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.pdash-signout:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: #fef2f2;
}

[data-theme="dark"] .pdash-signout:hover {
  background: rgba(239,68,68,0.08);
}

/* ══════════════════════════════════════════════════════════════
   KNOWLEDGE MAP GRID (retained from existing)
   ══════════════════════════════════════════════════════════════ */
.dash-kmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
}

.dash-kmap-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-color, #e2e8f0);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.dash-kmap-cell:hover {
  border-color: var(--color-teal, #14b8a6);
  box-shadow: 0 2px 8px rgba(20,184,166,0.1);
  transform: translateY(-1px);
}

.dash-kmap-cell__ring {
  position: relative;
  width: 56px;
  height: 56px;
  margin-bottom: 0.5rem;
}

.dash-kmap-cell__ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.dash-kmap-cell__ring-bg {
  stroke: var(--bg-secondary, #e2e8f0);
}

.dash-kmap-cell__ring-fg {
  stroke: var(--color-teal, #14b8a6);
  transition: stroke-dashoffset 0.6s ease;
}

.dash-kmap-cell__pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary, #64748b);
}

.dash-kmap-cell__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary, #1e293b);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

/* ── AQA / IB Toggle ─────────────────────────────────────────── */
.dash-curriculum-toggle {
  display: inline-flex;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border-color, #e2e8f0);
  background: var(--bg-secondary, #f1f5f9);
}

.dash-curriculum-toggle__btn {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-secondary, #64748b);
  transition: all 0.2s;
}

.dash-curriculum-toggle__btn.active {
  background: var(--color-teal, #14b8a6);
  color: #fff;
  box-shadow: 0 1px 4px rgba(20,184,166,0.3);
}

/* ══════════════════════════════════════════════════════════════
   PROMOTIONAL BANNER (retained from existing)
   ══════════════════════════════════════════════════════════════ */
.dash-promo {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #0c1929 0%, #0f2942 40%, #0d3b4f 70%, #0a4040 100%);
  margin-top: 1.5rem;
}

.dash-promo__gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(20,184,166,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.dash-promo__content {
  position: relative;
  padding: 2rem 2rem;
  color: #ffffff;
}

.dash-promo__title {
  font-family: 'Quicksand', 'Inter', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.dash-promo__text {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  max-width: 500px;
  line-height: 1.5;
}

.dash-promo__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-teal, #14b8a6);
  color: #ffffff;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s;
}

.dash-promo__btn:hover {
  background: #0d9488;
  color: #ffffff;
}

/* ══════════════════════════════════════════════════════════════
   DARK MODE OVERRIDES
   ══════════════════════════════════════════════════════════════ */
[data-theme="dark"] .pdash-card {
  background: var(--bg-card, #1e293b);
  border-color: var(--border-color, rgba(255,255,255,0.06));
}

[data-theme="dark"] .pdash-header__xp {
  background: var(--bg-card, #1e293b);
  border-color: var(--border-color, rgba(255,255,255,0.06));
}

[data-theme="dark"] .pdash-stat {
  background: var(--bg-secondary, rgba(255,255,255,0.04));
}

[data-theme="dark"] .pdash-tool {
  background: var(--bg-secondary, rgba(255,255,255,0.04));
  border-color: var(--border-color, rgba(255,255,255,0.06));
}

[data-theme="dark"] .pdash-mistake {
  background: var(--bg-secondary, rgba(255,255,255,0.04));
  border-color: var(--border-color, rgba(255,255,255,0.06));
}

[data-theme="dark"] .pdash-exam {
  border-color: var(--border-color, rgba(255,255,255,0.06));
}

[data-theme="dark"] .dash-kmap-cell {
  border-color: var(--border-color, rgba(255,255,255,0.06));
}

/* ══════════════════════════════════════════════════════════════
   LOADING SKELETON
   ══════════════════════════════════════════════════════════════ */
.pdash-loading .pdash-card,
.pdash-loading .pdash-hero,
.pdash-loading .pdash-stats {
  position: relative;
  overflow: hidden;
}
.pdash-loading .pdash-card::after,
.pdash-loading .pdash-hero::after,
.pdash-loading .pdash-stats::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.06) 40%,
    rgba(255,255,255,0.12) 50%,
    rgba(255,255,255,0.06) 60%,
    transparent 100%);
  animation: pdash-shimmer 1.5s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
}
@keyframes pdash-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}


/* ══════════════════════════════════════════════════════════════
   TREND INDICATOR
   ══════════════════════════════════════════════════════════════ */
.pdash-trend {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 2px;
  min-height: 1em;
}
.pdash-trend--up   { color: #10b981; }
.pdash-trend--down { color: #f59e0b; }
.pdash-trend--steady { color: #94a3b8; }


/* ══════════════════════════════════════════════════════════════
   KNOWLEDGE MAP EMPTY STATE
   ══════════════════════════════════════════════════════════════ */
.pdash-kmap-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--text-secondary, #94a3b8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.pdash-kmap-empty p {
  font-size: 0.88rem;
  max-width: 320px;
  line-height: 1.5;
}


/* ══════════════════════════════════════════════════════════════
   MISTAKE VAULT — VIEW ALL BUTTON
   ══════════════════════════════════════════════════════════════ */
.pdash-viewall {
  display: block;
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.5rem;
  border: 1px dashed var(--border-color, rgba(148,163,184,0.2));
  border-radius: 12px;
  background: transparent;
  color: var(--color-teal, #14b8a6);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pdash-viewall:hover {
  background: rgba(20,184,166,0.08);
  border-color: var(--color-teal, #14b8a6);
}


/* ══════════════════════════════════════════════════════════════
   AVATAR PROFILE LINK
   ══════════════════════════════════════════════════════════════ */
.pdash-header__avatar-link {
  text-decoration: none;
  color: inherit;
  border-radius: 50%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pdash-header__avatar-link:hover {
  transform: scale(1.08);
}
.pdash-header__avatar-link:hover .pdash-header__avatar {
  box-shadow: 0 0 0 3px var(--color-teal, #14b8a6), 0 4px 12px rgba(0,0,0,0.15);
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .pdash-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .pdash-hero__body {
    max-width: 100%;
  }

  .pdash-hero {
    padding: 1.5rem;
  }

  .pdash-hero__title {
    font-size: 1.3rem;
  }

  .dash-kmap-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}
