.dashboard-page .page {
  width: min(1360px, 100%);
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.dashboard-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
}

.dashboard-profile-card,
.dashboard-side-panel,
.dashboard-nav,
.dashboard-section,
.dashboard-hero {
  border-radius: 26px;
  border: var(--border);
  background: linear-gradient(180deg, rgba(14, 18, 31, 0.98), rgba(10, 13, 24, 0.98));
  box-shadow: var(--shadow-md);
}

.dashboard-profile-card,
.dashboard-side-panel,
.dashboard-section,
.dashboard-hero {
  padding: 22px;
}

.dashboard-profile {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.dashboard-avatar {
  width: 74px;
  height: 74px;
  border-radius: 22px;
  border: 2px solid rgba(102, 235, 225, 0.28);
}

.dashboard-name {
  font-size: 22px;
  font-weight: 800;
}

.dashboard-handle {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

.dashboard-actions {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.dashboard-nav {
  padding: 10px;
  display: grid;
  gap: 8px;
}

.dashboard-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--muted);
}

.dashboard-nav a.active,
.dashboard-nav a:hover {
  color: var(--text);
  background: rgba(122, 110, 255, 0.14);
}

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

.dashboard-review-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  border: var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.dashboard-review-item span {
  color: var(--muted);
  font-size: 12px;
}

.dashboard-main {
  display: grid;
  gap: 22px;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
  position: relative;
  overflow: hidden;
}

.dashboard-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(102, 235, 225, 0.18), transparent 32%),
    radial-gradient(circle at left bottom, rgba(122, 110, 255, 0.22), transparent 34%);
  pointer-events: none;
}

.dashboard-hero-copy,
.dashboard-stat-grid {
  position: relative;
  z-index: 1;
}

.dashboard-hero-copy {
  display: grid;
  gap: 16px;
}

.dashboard-hero-title {
  font-size: 34px;
  line-height: 1.06;
  font-weight: 800;
}

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

.dashboard-stat {
  padding: 18px;
  border-radius: 20px;
  border: var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.dashboard-stat.highlight {
  background: linear-gradient(135deg, rgba(102, 235, 225, 0.16), rgba(122, 110, 255, 0.16));
}

.dashboard-stat-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-stat-value {
  margin: 8px 0 6px;
  font-size: 30px;
  font-weight: 800;
}

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

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

.dashboard-bot-card {
  --bot-accent: #7a6eff;
  border-radius: 24px;
  overflow: hidden;
  border: var(--border);
  background: linear-gradient(180deg, rgba(15, 18, 30, 0.98), rgba(10, 13, 22, 0.98));
}

.dashboard-bot-banner {
  min-height: 136px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, rgba(102, 235, 225, 0.74), rgba(122, 110, 255, 0.84));
}

.dashboard-bot-banner img {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.dashboard-status {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(8, 11, 22, 0.34);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.dashboard-bot-body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  padding: 18px;
}

.dashboard-bot-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.dashboard-bot-name {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.dashboard-bot-meta {
  color: var(--muted);
  line-height: 1.55;
}

.dashboard-bot-stats {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.dashboard-bot-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  border: var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12px;
}

.dashboard-bot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.empty-state {
  grid-column: 1 / -1;
}

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

  .dashboard-sidebar {
    position: static;
  }
}

@media (max-width: 860px) {
  .dashboard-hero,
  .dashboard-bot-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .dashboard-section-head,
  .dashboard-bot-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
