/* IELTSNex Dashboard */
.dash-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 48px 0 32px;
  flex-wrap: wrap;
}
.dash-hero-copy { max-width: 560px; }
.dash-hero h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 600; margin: 8px 0 10px; }
.dash-lede { color: var(--muted); font-size: .95rem; line-height: 1.55; }

.dash-streak-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--ref-shadow);
  min-width: 130px;
}
.dash-streak-number { font-size: 2.4rem; font-weight: 700; color: var(--red); line-height: 1; }
.dash-streak-label { font-size: .85rem; color: var(--muted); }
.dash-xp { font-size: .8rem; color: var(--muted); margin-top: 6px; padding: 3px 10px; border-radius: 99px; background: var(--soft); }

/* Plan section */
.dash-plan { padding: 24px 0; }
.dash-plan h2, .dash-skills h2, .dash-recent h2, .dash-actions h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.dash-plan-body {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.dash-plan-body strong { font-size: .95rem; }
.dash-plan-body p { color: var(--muted); font-size: .85rem; margin: 0; }
.dash-plan-body a {
  margin-left: auto;
  padding: 8px 16px;
  border-radius: 99px;
  background: var(--red);
  color: #fff;
  font-size: .85rem;
  text-decoration: none;
  white-space: nowrap;
}
.dash-plan-body a:hover { opacity: .9; }

/* Skill grid */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.dash-skill-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--ref-shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dash-skill-card h3 { font-size: .95rem; font-weight: 600; margin: 0; display: flex; align-items: center; gap: 8px; }
.dash-skill-card h3 svg { width: 18px; height: 18px; stroke: var(--red); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dash-skill-meta { font-size: .82rem; color: var(--muted); line-height: 1.5; }
.dash-skill-score { font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.dash-skill-card a {
  margin-top: auto;
  font-size: .82rem;
  color: var(--red);
  text-decoration: none;
}
.dash-skill-card a:hover { text-decoration: underline; }

/* Recent list */
.dash-recent-list { display: flex; flex-direction: column; gap: 8px; }
.dash-recent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-size: .85rem;
}
.dash-recent-item .dash-tag {
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--soft);
  color: var(--red);
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
}
.dash-recent-item .dash-info { flex: 1; color: var(--ink); }
.dash-recent-item .dash-date { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.dash-empty { color: var(--muted); font-size: .88rem; padding: 12px 0; }

/* Action links */
.dash-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.dash-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  text-decoration: none;
  color: var(--ink);
  font-size: .88rem;
  font-weight: 500;
  transition: border-color .15s, box-shadow .15s;
}
.dash-links a:hover { border-color: var(--red); box-shadow: 0 2px 8px rgb(0 0 0 / .06); }
.dash-links a svg { width: 20px; height: 20px; stroke: var(--red); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Responsive */
@media (max-width: 640px) {
  .dash-hero { padding: 32px 0 24px; }
  .dash-streak-card { flex-direction: row; gap: 12px; padding: 14px 20px; min-width: unset; }
  .dash-streak-number { font-size: 1.8rem; }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-links { grid-template-columns: 1fr; }
  .dash-plan-body { flex-direction: column; align-items: flex-start; }
  .dash-plan-body a { margin-left: 0; }
}
