.stats-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
  position: relative;
  z-index: 1;
}

.stats-header {
  text-align: center;
  padding: 2rem 1rem 1rem;
}

.stats-title {
  font-size: clamp(2rem, 6vw, 3.6rem);
  margin: 0;
  line-height: 1.25;
  display: flex;
  flex-direction: column;
  gap: 0.2em;
  font-weight: 800;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.stats-title .title-line {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.1em;
}

.stats-title .accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stats-sub {
  margin-top: 1rem;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text);
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.stat-card {
  background: var(--card);
  border: 3px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stat-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stat-card-icon {
  font-size: 2.4rem;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.stat-card-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.stat-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.4rem 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.stat-line:last-child { border-bottom: none; }

.stat-label {
  font-weight: 600;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.stat-value {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text);
}

.stat-empty {
  color: var(--text-soft);
  font-style: italic;
  text-align: center;
  padding: 0.75rem 0;
}

.loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text);
  padding: 2rem;
  background: var(--card);
  border-radius: var(--radius);
}

.stats-actions {
  text-align: center;
  margin: 2rem 0 3rem;
}

.reset-btn {
  font: inherit;
  font-weight: 700;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 92, 92, 0.6);
  background: var(--card);
  color: #b32b2b;
  cursor: pointer;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  transition: transform 0.15s ease;
}
.reset-btn:hover { transform: translateY(-2px); background: rgba(255, 200, 200, 0.4); }

.no-profile {
  text-align: center;
  padding: 3rem 1rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.no-profile a {
  color: var(--primary-dark);
  font-weight: 700;
}
