:root {
  --bg: #0f172a;
  --card-bg: #1b2336;
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #22c55e;
  --accent-fg: #0f172a;
  --accent-warm: #f97316;
  --accent-warm-fg: #0f172a;
  --border: #334155;
  --border-strong: #475569;
  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
}

.loader {
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader[hidden] {
  display: none;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }
}

.card {
  width: 100%;
  max-width: 360px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--border);
  object-fit: cover;
  margin-bottom: 16px;
  box-shadow: 0 0 0 3px var(--card-bg), 0 0 0 4px var(--border-strong);
}

.name {
  margin: 0 0 4px;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.title {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.badge {
  display: inline-block;
  margin: 0 0 24px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

.badge:empty {
  display: none;
}

.actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.btn,
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  padding: 12px 6px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 200ms, border-color 200ms, transform 150ms;
}

.btn-icon {
  display: flex;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-icon svg {
  width: 100%;
  height: 100%;
}

.btn {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn:hover {
  border-color: var(--border-strong);
  background: rgba(148, 163, 184, 0.08);
}

.btn-primary {
  display: block;
  margin-bottom: 10px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--accent-fg);
  font-weight: 600;
  text-align: center;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn-full {
  width: 100%;
  margin-bottom: 24px;
  background: var(--accent-warm);
  border-color: var(--accent-warm);
  color: var(--accent-warm-fg);
  font-weight: 600;
}

.btn-full:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn:active,
.btn-primary:active {
  transform: translateY(0);
}

.btn:focus-visible,
.btn-primary:focus-visible,
.links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 200ms;
}

.links a:hover {
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn-primary,
  .links a {
    transition: none;
  }
}
