:root {
  --bg: #0b1220;
  --bg-soft: #101a2f;
  --panel: rgba(16, 26, 47, 0.82);
  --panel-strong: rgba(13, 21, 39, 0.96);
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(148, 163, 184, 0.28);
  --text: #e5eefc;
  --muted: #96a3b8;
  --accent: #67e8f9;
  --accent-2: #7c3aed;
  --success: #34d399;
  --error: #fb7185;
  --warning: #fbbf24;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(103, 232, 249, 0.12), transparent 32%),
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.15), transparent 28%),
    linear-gradient(180deg, #07101d, #0b1220 34%, #09111c);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  padding: 32px 18px 72px;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.page-shell {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.hero {
  margin-bottom: 28px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(103, 232, 249, 0.08);
  border: 1px solid rgba(103, 232, 249, 0.2);
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 18px 0 10px;
  font-size: clamp(2rem, 3vw, 3.6rem);
  line-height: 1.02;
}

.hero__text {
  margin: 0 0 22px;
  max-width: 850px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 1.02rem;
}

.search-card,
.status-box,
.profile-hero-card,
.data-card {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.search-card {
  padding: 22px;
}

.search-card__label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 600;
}

.search-card__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.search-card input {
  width: 100%;
  padding: 17px 18px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(4, 10, 22, 0.72);
  color: var(--text);
  font-size: 1rem;
  outline: none;
}

.search-card input:focus {
  border-color: rgba(103, 232, 249, 0.45);
  box-shadow: 0 0 0 4px rgba(103, 232, 249, 0.08);
}

.search-card button {
  border: 0;
  border-radius: 16px;
  padding: 0 20px;
  min-width: 140px;
  background: linear-gradient(135deg, var(--accent), #38bdf8 56%, var(--accent-2));
  color: #06101d;
  font-weight: 800;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.search-card button:hover {
  transform: translateY(-1px);
}

.search-card button:disabled {
  cursor: wait;
  opacity: 0.75;
  transform: none;
}

.search-card__hint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.status-box {
  padding: 16px 18px;
  margin-bottom: 22px;
  color: var(--text);
  border-left: 5px solid rgba(148, 163, 184, 0.3);
}

.status-box--idle {
  border-left-color: rgba(148, 163, 184, 0.3);
}

.status-box--loading {
  border-left-color: var(--warning);
}

.status-box--success {
  border-left-color: var(--success);
}

.status-box--error {
  border-left-color: var(--error);
}

.profile-view.hidden {
  display: none;
}

.profile-hero-card {
  padding: 28px;
  margin-bottom: 22px;
  background:
    linear-gradient(180deg, rgba(20, 31, 54, 0.94), rgba(10, 16, 30, 0.96)),
    radial-gradient(circle at top left, rgba(103, 232, 249, 0.08), transparent 32%),
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.1), transparent 26%);
}

.profile-hero-card__main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.profile-hero-card__eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.profile-hero-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2.6vw, 3rem);
  line-height: 1.06;
  word-break: break-word;
}

.profile-hero-card__idblock {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.id-pill {
  min-width: 240px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(7, 12, 24, 0.68);
}

.id-pill__label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.id-pill__value {
  font-weight: 700;
  word-break: break-all;
}

.profile-hero-card__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-highlight {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: rgba(7, 12, 24, 0.72);
}

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

.stat-highlight strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1.1;
}

.stat-highlight small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.83rem;
}

.profile-hero-card__meta {
  color: var(--muted);
  font-size: 0.94rem;
}

.groups-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.data-card {
  padding: 22px;
}

.data-card h3 {
  margin: 0 0 16px;
  font-size: 1.08rem;
}

.data-card__body {
  display: grid;
  gap: 12px;
}

.data-row {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.data-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.data-row__label {
  color: var(--muted);
  font-size: 0.93rem;
}

.data-row__value {
  word-break: break-word;
  font-weight: 600;
}

.value--empty {
  color: #64748b;
}

@media (max-width: 960px) {
  .profile-hero-card__stats,
  .groups-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    padding: 18px 12px 48px;
  }

  .search-card__row,
  .profile-hero-card__stats,
  .groups-grid,
  .data-row {
    grid-template-columns: 1fr;
  }

  .search-card button {
    min-height: 56px;
  }

  .data-row {
    gap: 6px;
  }
}
