.analytics-workspace {
  padding: 38px clamp(22px, 3vw, 46px) 48px;
}

.analytics-header {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 18px;
  padding: 26px;
  background:
    radial-gradient(circle at 96% 0%, rgba(155, 92, 255, 0.15), transparent 30%),
    #111111;
}

.analytics-header h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 0.96;
  letter-spacing: 0;
}

.analytics-header p:not(.kicker) {
  max-width: 760px;
  margin: 12px 0 0;
  color: #b9b0bd;
  font-size: 15px;
}

.analytics-profile-link {
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(217, 86, 212, 0.58);
  border-radius: 999px;
  padding: 0 20px;
  background: linear-gradient(135deg, #62236e, #4d1b55);
  color: #ffffff;
  white-space: nowrap;
}

.analytics-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.analytics-stats article,
.analytics-panel {
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 16px;
  background: #111111;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.analytics-stats article {
  padding: 20px;
}

.analytics-stats span,
.analytics-stats small {
  display: block;
  color: #b9b0bd;
  font-size: 13px;
}

.analytics-stats strong {
  display: block;
  margin: 8px 0 5px;
  color: #ffffff;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
}

.analytics-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.analytics-panel {
  min-height: 260px;
  padding: 20px;
}

.analytics-panel.wide {
  grid-row: span 2;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 19px;
  letter-spacing: 0;
}

.panel-heading span {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(64, 214, 111, 0.16);
  color: #7cff9e;
  font-size: 12px;
}

.views-chart {
  min-height: 410px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  align-items: end;
  padding-top: 16px;
}

.chart-bar {
  min-width: 0;
  display: grid;
  gap: 10px;
  align-items: end;
}

.chart-bar i {
  min-height: 8px;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, #d956d4, #62236e);
  box-shadow: 0 0 24px rgba(217, 86, 212, 0.26);
}

.chart-bar span,
.chart-bar b {
  overflow: hidden;
  color: #b9b0bd;
  font-size: 12px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-bar b {
  color: #ffffff;
}

.rank-list,
.activity-list {
  display: grid;
  gap: 10px;
}

.rank-row,
.activity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.rank-row strong,
.activity-row strong {
  display: block;
  overflow: hidden;
  color: #ffffff;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row small,
.activity-row small {
  display: block;
  margin-top: 3px;
  color: #b9b0bd;
  font-size: 12px;
}

.rank-row span {
  color: #ffffff;
  font-size: 15px;
}

.empty-analytics {
  min-height: 150px;
  display: grid;
  place-items: center;
  color: #b9b0bd;
  text-align: center;
}

@media (max-width: 1180px) {
  .analytics-stats {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .analytics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .analytics-workspace {
    padding: 24px 16px;
  }

  .analytics-header {
    display: grid;
  }

  .analytics-stats {
    grid-template-columns: 1fr;
  }
}
