.dashboard-page { padding-top: 28px; }
.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: stretch;
  gap: 22px;
  margin-bottom: 24px;
}
.premium-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(228,231,236,.90);
  border-radius: 30px;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(238,244,255,.94)),
    radial-gradient(circle at 10% 0%, rgba(36,84,255,.18), transparent 28rem);
  box-shadow: var(--shadow);
}
.premium-hero:before {
  content: "";
  position: absolute;
  right: -70px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(36,84,255,.10);
}
.premium-hero > * { position: relative; z-index: 1; }
.premium-hero h1 { font-size: clamp(2.1rem, 4.5vw, 4rem); }
.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.hero-status-panel {
  display: grid;
  gap: 12px;
  align-content: center;
}
.status-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  padding: 16px;
}
.status-card span { color: var(--muted); font-weight: 760; }
.status-card strong { font-size: 1rem; }
.compact-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: stretch; }
.action-tile {
  min-height: 150px;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow-soft);
}
.action-tile span {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: white;
  font-weight: 950;
  font-size: 1.2rem;
}
.dashboard-stats { margin-bottom: 26px; }
.dashboard-section { padding-bottom: 0; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) 360px; gap: 22px; align-items: start; }
.side-panel { position: sticky; top: 92px; display: grid; gap: 18px; }
.action-card { display: grid; gap: 16px; }
.builder-card { border-top: 4px solid var(--primary); }
.insight-card { align-content: start; }

.management-grid { display: grid; gap: 16px; }
.management-card {
  display: grid;
  gap: 14px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.management-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.analytics-list { display: grid; gap: 16px; }
.analytics-card { display: grid; gap: 16px; }
.pro-analytics-card { border-left: 4px solid var(--primary); }
.analytics-top { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.analytics-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.78);
}
.metric strong { display: block; font-size: 1.35rem; letter-spacing: -.035em; }
.metric span { color: var(--muted); font-size: .84rem; font-weight: 760; }
.builder-panel { display: grid; gap: 16px; }
.builder-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255,255,255,.78);
  display: grid;
  gap: 12px;
}
.compact-builder p { max-height: 3.4em; overflow: hidden; }
.question-builder { border-left: 4px solid var(--primary); }
.system-health { display: grid; gap: 12px; min-width: 320px; }
.health-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.76);
}
.courses-panel { max-height: 680px; overflow: auto; }
.course-head { align-items: start; }
.module-sidebar { max-height: calc(100vh - 122px); overflow: auto; }

@media (max-width: 1040px) {
  .dashboard-hero, .dashboard-grid, .dashboard-strip { grid-template-columns: 1fr; }
  .side-panel { position: static; }
  .analytics-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .system-health { min-width: 0; }
}
@media (max-width: 620px) {
  .premium-hero { padding: 22px; border-radius: 24px; }
  .analytics-metrics, .compact-panel { grid-template-columns: 1fr; }
  .action-tile { min-height: 110px; }
}

.dashboard-ring {
  --value: 0;
  width: 154px;
  height: 154px;
  margin: 0 auto 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: conic-gradient(#ffffff var(--value), rgba(255,255,255,.14) 0);
  position: relative;
}
.dashboard-ring:before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: inherit;
  background: linear-gradient(145deg, var(--dark), var(--dark-2));
}
.dashboard-ring strong, .dashboard-ring span { position: relative; z-index: 1; color: #fff; }
.dashboard-ring strong { align-self: end; font-size: 2rem; letter-spacing: -.05em; }
.dashboard-ring span { align-self: start; color: rgba(255,255,255,.62); font-size: .82rem; font-weight: 850; }
.hero-kpi-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hero-kpi-list > div { padding: 13px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(255,255,255,.08); }
.hero-kpi-list strong { display: block; color: #fff; font-size: 1.4rem; }
.hero-kpi-list span { color: rgba(255,255,255,.62); font-size: .82rem; font-weight: 850; }
.focus-list { display: grid; gap: 9px; }
.focus-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 11px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.70); }
.focus-row span { color: var(--muted); font-weight: 800; }
.focus-row strong { color: var(--ink); }
.mini-health .focus-row { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.08); }
.mini-health .focus-row span, .mini-health .focus-row strong { color: rgba(255,255,255,.80); }
.catalog-item {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.74);
}
.catalog-item strong { display: block; color: var(--ink); }
.catalog-item span:not(.badge) { display: block; color: var(--muted); font-size: .84rem; margin-top: 3px; }
.pro-stat .stat-icon { width: 46px; }
.shimmer-card { position: relative; overflow: hidden; }
.shimmer-card:after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.68), transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
@media (max-width: 640px) { .catalog-item { grid-template-columns: 1fr; align-items: start; } }

/* Professional dashboard polish */
.landing-hero { padding-top: 54px; }
.product-panel { display: grid; gap: 18px; align-content: start; }
.product-top { display: flex; align-items: center; justify-content: space-between; color: #fff; font-weight: 950; }
.product-chart { display: flex; align-items: end; gap: 12px; height: 160px; padding: 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 24px; background: rgba(255,255,255,.08); }
.product-chart span { flex: 1; min-height: 26px; border-radius: 999px 999px 8px 8px; background: linear-gradient(180deg, #ffffff, rgba(255,255,255,.24)); }
.mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mini-stat { padding: 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(255,255,255,.08); }
.mini-stat strong { display: block; color: #fff; }
.mini-stat span { color: rgba(255,255,255,.62); font-size: .84rem; font-weight: 800; }
.demo-card { display: grid; gap: 6px; color: #fff; }
.demo-card span:not(.kbd) { color: rgba(255,255,255,.66); }
.compact-section { padding-top: 22px; }
.feature-grid .card { min-height: 150px; }
.pro-hero { margin-bottom: 18px; }
.hero-kpi-card { border: 1px solid rgba(255,255,255,.10); border-radius: var(--radius-xl); background: linear-gradient(145deg, var(--dark), var(--dark-2)); box-shadow: 0 28px 80px rgba(15,23,42,.18); padding: 24px; display: grid; gap: 14px; align-content: center; }
.dashboard-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 18px 0 24px; }
.page-tight { padding-top: 12px; padding-bottom: 34px; }
.compact-head { margin-bottom: 16px; }
.compact-head h2 { font-size: clamp(1.35rem, 2.3vw, 2.1rem); }
.skeleton-card { min-height: 140px; overflow: hidden; }
.skeleton-card:after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent); animation: shimmer 1.2s infinite; }
.pro-course-card { padding: 0; overflow: hidden; }
.pro-course-card:before { display: none; }
.pro-course-card > :not(.course-cover) { margin-left: 18px; margin-right: 18px; }
.pro-course-card > :last-child { margin-bottom: 18px; }
.course-cover { height: 132px; overflow: hidden; border-radius: 18px 18px 0 0; background: linear-gradient(145deg, var(--primary), #17b978); }
.course-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-fallback { display: grid; place-items: center; color: #fff; font-size: 3rem; font-weight: 950; letter-spacing: -.08em; }
.course-summary { min-height: 44px; }
.module-number { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: var(--primary-soft); color: var(--primary-dark); font-weight: 950; }
.module-detail-card { min-height: 420px; }
.result-card { margin-top: 18px; }
.course-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.module-sidebar { align-self: start; }
.compact-help { align-content: start; }
.pro-table { box-shadow: var(--shadow-soft); }
@media (max-width: 1040px) { .dashboard-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .dashboard-strip, .mini-grid { grid-template-columns: 1fr; } .course-top { flex-direction: column; align-items: start; } }

/* Final dashboard polish */
.pro-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(228,231,236,.92);
  border-radius: 32px;
  padding: 30px;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(238,244,255,.94));
  box-shadow: var(--shadow);
}
.pro-hero:before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -90px;
  top: -100px;
  border-radius: 999px;
  background: rgba(36,84,255,.12);
}
.pro-hero > * { position: relative; z-index: 1; }
.pro-hero h1 { font-size: clamp(2rem, 4.5vw, 3.8rem); }
.dashboard-strip .stat-card { min-height: 124px; }
.hero-kpi-card .badge { width: max-content; }
.hero-kpi-card h3 { color: #fff; }
.hero-kpi-card p { color: rgba(255,255,255,.68); }
.hero-kpi-card .kbd { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.18); color: #fff; }
.stat-card h3 { margin: 0; }
.stat-card p { font-size: .9rem; }
.shimmer-card { position: relative; }
@media (max-width: 1040px) {
  .dashboard-hero.pro-hero { grid-template-columns: 1fr; }
}

/* Premium dashboard refinements */
.dashboard-hero .lead {
  max-width: 52ch;
}
.hero-kpi-card,
.dashboard-hero-panel {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(127,154,255,.22), transparent 28%),
    linear-gradient(145deg, #101828, #17233a);
  box-shadow: 0 28px 80px rgba(15,23,42,.22);
  padding: 24px;
  display: grid;
  gap: 14px;
  align-content: center;
}
.hero-kpi-card .eyebrow,
.dashboard-hero-panel .eyebrow {
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.12);
}
.hero-kpi-card .status-pill,
.dashboard-hero-panel .status-pill {
  width: max-content;
}
.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.dashboard-kpi {
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.07);
}
.dashboard-kpi span {
  display: block;
  color: rgba(255,255,255,.66);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.dashboard-kpi strong {
  display: block;
  color: #fff;
  font-size: 1.45rem;
  letter-spacing: -.04em;
  margin-top: 4px;
}
.dashboard-quick-list {
  display: grid;
  gap: 8px;
}
.dashboard-quick-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.07);
}
.dashboard-quick-item span {
  color: rgba(255,255,255,.66);
  font-size: .82rem;
  font-weight: 780;
}
.dashboard-quick-item strong {
  color: #fff;
  font-size: .96rem;
}
.dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.dashboard-hero-actions .btn {
  min-height: 40px;
}
.dashboard-side-card {
  display: grid;
  gap: 14px;
}
.dashboard-side-card .focus-row {
  padding: 10px 12px;
}
.dashboard-side-card .badge {
  width: max-content;
}
.dashboard-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dashboard-ribbon .badge {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.10);
  color: rgba(255,255,255,.86);
}
.dashboard-empty-card {
  display: grid;
  gap: 10px;
  align-content: start;
}
.dashboard-empty-card h2,
.dashboard-empty-card h3,
.dashboard-empty-card p {
  color: #fff;
}
.dashboard-empty-card p {
  color: rgba(255,255,255,.66);
}

@media (max-width: 640px) {
  .dashboard-kpi-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
