:root {
  --bg: #090b16;
  --panel: rgba(21, 27, 51, 0.78);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #ecf2ff;
  --muted: #a8b3cc;
  --accent: #74a2ff;
  --accent-soft: rgba(116, 162, 255, 0.18);
  --success: #8ee2bc;
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 15% 15%, #17274f 0%, #090b16 45%), var(--bg);
  position: relative;
}

.bg-glow {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(131, 174, 255, 0.24), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(64, 224, 208, 0.14), transparent 42%);
  pointer-events: none;
}

.layout {
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px 24px;
  display: grid;
  gap: 24px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.hero {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 28px;
  align-items: center;
}

.avatar-wrap {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(145deg, #8ab8ff, #9dffd9);
}

#avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #0c1228;
}

.badge {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #b7cdfc;
}

h1 {
  margin: 8px 0 10px;
  font-size: clamp(1.8rem, 2.6vw, 2.7rem);
}

.bio {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.inline-link {
  text-decoration: none;
  color: #d7e6ff;
  font-size: 0.86rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 5px 10px;
  border-radius: 999px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.inline-link:hover {
  border-color: rgba(141, 191, 255, 0.8);
  color: #ffffff;
}

.stats {
  margin: 18px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stat-pill {
  background: var(--accent-soft);
  border: 1px solid rgba(144, 184, 255, 0.28);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 11px;
  text-decoration: none;
  color: #f6f9ff;
  background: linear-gradient(135deg, #5a8eff, #67d5ff);
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(101, 176, 255, 0.35);
}

.section-head h2 {
  margin: 0;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.overview,
.repos,
.activity {
  padding: 24px;
}

.overview-grid {
  margin-top: 18px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.overview-item {
  background: rgba(10, 16, 34, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
}

.overview-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.overview-value {
  margin: 10px 0 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.section-head-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.repo-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.repo-controls input,
.repo-controls select {
  background: rgba(7, 11, 25, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
}

.repos-grid {
  margin-top: 20px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.repo-card {
  background: rgba(10, 16, 34, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.repo-card:hover {
  border-color: rgba(116, 162, 255, 0.45);
  transform: translateY(-2px);
}

.repo-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.repo-name {
  margin: 0;
  font-size: 1.02rem;
}

.repo-visibility {
  font-size: 0.74rem;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #cce0ff;
}

.repo-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
  min-height: 40px;
}

.repo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.repo-lang,
.repo-size,
.repo-license {
  font-size: 0.74rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 8px;
  border-radius: 999px;
  color: #cce0ff;
}

.repo-card footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.repo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #c1d4f7;
  font-size: 0.82rem;
}

.repo-link {
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
}

.activity-list {
  margin: 18px 0 0;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}

.activity-item {
  background: rgba(10, 16, 34, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  color: #dce7ff;
}

.activity-time {
  color: var(--muted);
  font-size: 0.82rem;
  margin-left: 8px;
}

.empty,
.error {
  padding: 16px;
  border-radius: 10px;
}

.empty {
  background: rgba(139, 162, 195, 0.12);
  border: 1px solid rgba(155, 190, 236, 0.24);
  color: #d2e4ff;
}

.error {
  background: rgba(255, 120, 120, 0.14);
  border: 1px solid rgba(255, 150, 150, 0.3);
  color: #ffd5d5;
}

.accent {
  color: var(--success);
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .avatar-wrap {
    margin: 0 auto;
  }

  .quick-links,
  .stats,
  .repo-controls {
    justify-content: center;
  }

  .hero-content .btn {
    margin: 0 auto;
  }
}
