:root {
  --bg: #0b0c10;
  --surface: #13141a;
  --border: #1e2030;
  --accent: #00ffc8;
  --accent2: #ff4f7b;
  --text: #e8eaf0;
  --muted: #5a5f7a;
  --card: #181920;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 200, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 200, .03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 24px;
}

header {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.logo {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
}
.logo span { color: var(--accent); }

.tagline {
  color: var(--muted);
  font-size: .75rem;
  margin-top: 6px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.search-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.search-wrap {
  flex: 1;
  position: relative;
}

.prefix {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: .85rem;
  pointer-events: none;
}

input {
  width: 100%;
  padding: 12px 12px 12px 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: .9rem;
  outline: none;
  transition: border-color .2s;
}
input:hover { border-color: var(--accent); }
input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
input::placeholder { color: var(--muted); }

.btn {
  background: var(--accent);
  border: none;
  padding: 12px 22px;
  cursor: pointer;
  color: var(--bg);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: opacity .2s, transform .1s;
}
.btn:hover { opacity: .85; }
.btn:active { transform: scale(.97); }
.btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.status {
  display: none;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: rgba(0, 255, 200, .04);
  font-size: .82rem;
  margin-bottom: 20px;
  color: var(--accent);
}
.status.show { display: block; }
.status.error {
  border-color: var(--accent2);
  background: rgba(255, 79, 123, .04);
  color: var(--accent2);
}

@keyframes spin { to { transform: rotate(360deg); } }

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

.profile-card {
  display: none;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 24px;
  margin-top: 20px;
  position: relative;
  animation: fadeUp .3s ease;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.profile-card.show { display: block; }

.card-top {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: block;
  opacity: 0;
  transition: opacity .2s;
}
.profile-card.show .avatar {
  opacity: 1;
}

.card-info { flex: 1; }

.card-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 2px;
}

.card-login { color: var(--accent); font-size: .78rem; margin-bottom: 8px; }
.card-bio   { color: var(--muted); font-size: .8rem; line-height: 1.5; margin-bottom: 12px; }

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: .75rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.card-meta .val { color: var(--text); margin-left: 4px; }

.profile-link {
  display: inline-block;
  color: var(--accent);
  font-size: .75rem;
  text-decoration: none;
  border: 1px solid var(--accent);
  padding: 4px 12px;
  transition: background .2s;
}
.profile-link:hover { background: rgba(0, 255, 200, .1); }

.repos-section {
  margin-top: 20px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.repos-title {
  font-family: 'Syne', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.repo-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  gap: 10px;
  flex-wrap: wrap;
}
.repo-item:last-child { border-bottom: none; }

.repo-name {
  color: var(--accent);
  font-size: .8rem;
  text-decoration: none;
  font-weight: 500;
}
.repo-name:hover { text-decoration: underline; }

.repo-meta {
  display: flex;
  gap: 12px;
  font-size: .72rem;
  color: var(--muted);
  flex-wrap: wrap;
  align-items: center;
}
.star-icon { color: #f5c518; }

.empty { color: var(--muted); font-size: .78rem; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }