:root {
  --bg: #000000;
  --bg-soft: #050505;
  --panel: #080808;
  --panel-2: #0d0d0d;
  --border: #1a1a1a;
  --border-strong: #2a2a2a;
  --text: #ffffff;
  --muted: #a3a3a3;
  --muted-2: #737373;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.03), transparent 30%),
    linear-gradient(180deg, #000000 0%, #020202 100%);
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.12;
  pointer-events: none;
}

.orb-1,
.orb-2 {
  background: rgba(255, 255, 255, 0.22);
}

.orb-1 {
  width: 280px;
  height: 280px;
  top: -80px;
  left: -50px;
}

.orb-2 {
  width: 320px;
  height: 320px;
  right: -90px;
  bottom: -80px;
}

.app-shell {
  width: min(980px, calc(100% - 32px));
  margin: 44px auto;
  display: grid;
  gap: 22px;
}

.card {
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.94), rgba(5, 5, 5, 0.98));
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero,
.profile {
  padding: 30px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #cfcfcf;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.subtext {
  max-width: 700px;
  color: var(--muted);
  line-height: 1.7;
  margin: 14px 0 0;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  margin-top: 24px;
}

input {
  width: 100%;
  border: 1px solid var(--border);
  background: #030303;
  color: var(--text);
  border-radius: 16px;
  padding: 16px 18px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input::placeholder {
  color: var(--muted-2);
}

input:focus {
  border-color: #3a3a3a;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
  background: #060606;
}

button,
.action {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 15px 18px;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button:hover,
.action:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
}

button {
  background: linear-gradient(180deg, #121212 0%, #090909 100%);
  color: #ffffff;
}

button:active,
.action:active {
  transform: translateY(0);
}

.status {
  min-height: 24px;
  margin-top: 14px;
  color: var(--muted);
}

.profile-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  background: #050505;
}

.profile-meta h2 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: #101010;
  border: 1px solid var(--border);
  color: #d6d6d6;
  font-size: 0.88rem;
}

.muted {
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.7;
}

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

.stat-box {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #0b0b0b 0%, #070707 100%);
  border: 1px solid var(--border);
}

.stat-label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.stat-box strong {
  font-size: 1.25rem;
  color: #ffffff;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.action.primary {
  background: linear-gradient(180deg, #141414 0%, #0a0a0a 100%);
  color: #ffffff;
}

.action.secondary {
  color: var(--text);
  background: #070707;
}

.ai-panel {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
  border: 1px solid var(--border);
}

.ai-panel h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.ai-panel p {
  margin: 0;
  line-height: 1.75;
  color: #d0d0d0;
}

.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100% - 20px, 980px);
    margin: 20px auto;
  }

  .hero,
  .profile {
    padding: 22px;
  }

  .search-row,
  .profile-head,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .profile-head {
    align-items: start;
  }

  .avatar {
    width: 82px;
    height: 82px;
  }

  .action-row {
    flex-direction: column;
  }

  .action,
  button {
    width: 100%;
  }
}
