/* Individual user dashboard — reuses org-modern tokens and project palette */
.ind-dashboard {
  max-width: 1200px;
}

.ind-dashboard-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--org-radius, 12px);
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 45%, #60a5fa 100%);
  color: #fff;
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.25);
}

.ind-dashboard-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 255, 255, 0.22) 0%, transparent 42%),
    radial-gradient(circle at 8% 92%, rgba(255, 255, 255, 0.08) 0%, transparent 38%);
  pointer-events: none;
}

.ind-dashboard-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.25rem;
}

.ind-dashboard-hero-avatar {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
}

.ind-dashboard-hero-text {
  flex: 1;
  min-width: 200px;
}

.ind-dashboard-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.88;
}

.ind-dashboard-hero-title {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.ind-dashboard-hero-meta {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.92;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.ind-dashboard-hero-meta i {
  opacity: 0.85;
}

.ind-dashboard-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.ind-dashboard-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.8125rem;
  font-weight: 500;
}

.ind-dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-self: center;
  margin-left: auto;
}

.ind-dashboard-stats {
  grid-template-columns: repeat(1, 1fr);
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .ind-dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .ind-dashboard-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ind-dashboard-stat-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.ind-dashboard-stat-link:hover {
  color: inherit;
}

.ind-dashboard-stat-link .org-modern-stat {
  height: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.ind-dashboard-stat-link:hover .org-modern-stat {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: var(--org-shadow-hover);
  transform: translateY(-2px);
}

.ind-dashboard-stat-foot {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--org-primary);
}

.ind-dashboard-stat-link:hover .ind-dashboard-stat-foot {
  color: var(--org-primary-hover);
}

.ind-dashboard-stat-foot i {
  font-size: 0.875rem;
  transition: transform 0.15s ease;
}

.ind-dashboard-stat-link:hover .ind-dashboard-stat-foot i {
  transform: translateX(3px);
}

.ind-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 992px) {
  .ind-dashboard-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
  }
}

.ind-dashboard-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ind-dashboard-quick-panel .ind-dashboard-actions {
  flex: 1;
}

.ind-dashboard-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 576px) {
  .ind-dashboard-actions {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ind-dashboard-account-panel {
  padding: 1.35rem 1.5rem;
}

.ind-dashboard-account-panel .ind-dashboard-details {
  flex: 1;
}

.ind-dashboard-account-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--org-border);
}

.ind-dashboard-account-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--org-border);
}

.ind-dashboard-account-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--org-primary);
  background: var(--org-primary-soft);
  flex-shrink: 0;
}

.ind-dashboard-account-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--org-headline);
  margin: 0;
}

.ind-dashboard-account-desc {
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
  color: var(--org-muted);
}

.ind-dashboard-details {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ind-dashboard-detail-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.65rem 1rem;
  align-items: start;
}

.ind-dashboard-detail-row dt {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--org-muted);
}

.ind-dashboard-detail-row dd {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--org-headline);
  word-break: break-word;
}

.ind-dashboard-detail-row dd a {
  color: var(--org-primary);
  text-decoration: none;
  font-weight: 600;
}

.ind-dashboard-detail-row dd a:hover {
  color: var(--org-primary-hover);
  text-decoration: underline;
}

@media (max-width: 575.98px) {
  .ind-dashboard-hero-actions {
    margin-left: 0;
    width: 100%;
  }

  .ind-dashboard-detail-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
