.dashboard-page {
  display: grid;
  gap: 18px;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.dashboard-page[data-load-state="loading"] {
  opacity: 0;
  pointer-events: none;
}

.hero {
  background: linear-gradient(140deg, #f2f7ff, #eef6f1);
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 2rem;
  line-height: 1.15;
}

.hero p {
  margin: 0;
  color: #55637e;
  max-width: 760px;
}

.hero-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid #dbe5f6;
  background: #fff;
  color: #0f172a;
  border-radius: 11px;
  padding: 10px 14px;
  font-weight: 600;
  font-family: inherit;
}

.hero-btn.primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-color: transparent;
  color: #fff;
}

.hero-btn.manual {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.3);
}

.hero-btn.manual:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px 0 rgba(79, 70, 229, 0.4);
}

.dashboard-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card {
  display: grid;
  gap: 6px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.92), rgba(240, 246, 255, 0.82));
  backdrop-filter: blur(8px);
  border-color: rgba(191, 204, 233, 0.8);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.14);
  border-color: rgba(99, 129, 239, 0.42);
}

.stat-label {
  color: #64748b;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
}

.stat-sub {
  color: #64748b;
  font-size: 0.9rem;
}

.goal-track {
  width: 100%;
  height: 10px;
  background: #e8edf8;
  border-radius: 999px;
  overflow: hidden;
}

.goal-fill {
  height: 100%;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  width: 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.section-head a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.list-block {
  display: grid;
  gap: 10px;
}

.list-item {
  border: 1px solid #dfe7f5;
  border-radius: 12px;
  background: #fff;
  padding: 11px 12px;
}

.list-item h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.list-item p {
  margin: 0;
  font-size: 0.86rem;
  color: #60708a;
}

.list-empty {
  color: #6b7b93;
  font-size: 0.92rem;
  padding: 8px 0;
}

.quick-links {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quick-link-card {
  text-decoration: none;
  color: inherit;
  border: 1px solid #dbe5f6;
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.94), rgba(242, 248, 255, 0.84));
  padding: 12px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.quick-link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(88, 120, 239, 0.45);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.14);
}

.quick-link-card h3 {
  margin: 0 0 5px;
  font-size: 0.98rem;
}

.quick-link-card p {
  margin: 0;
  font-size: 0.86rem;
  color: #64748b;
}

@media (max-width: 1080px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid.two-col {
    grid-template-columns: 1fr;
  }

  .quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .quick-links {
    grid-template-columns: 1fr;
  }
}
