:root {
  --bg: #0b0b0d;
  --panel: #111216;
  --text: #f5f7fb;
  --muted: #9aa3b2;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 55px;
  --max-width: 760px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.05), transparent 32%),
    linear-gradient(180deg, #0b0b0d 0%, #0a0b0f 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  padding: 24px;
  display: grid;
  place-items: center;
}

.card {
  width: min(100%, var(--max-width));
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 10px 8px 8px;
}

.avatar,
.avatar-fallback {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.avatar {
  object-fit: cover;
  display: block;
  background: #1a1c22;
}

.avatar-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #1e2230, #171922);
  font-size: 30px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.bio {
  max-width: 560px;
  margin: 0;
  color: #d6dae3;
  line-height: 1.6;
  font-size: 0.98rem;
}

.links {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.link-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.link-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.link-btn.is-disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.link-btn.is-disabled:hover {
  transform: none;
  border-color: var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
}

.link-left {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.link-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.brand-icon {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.brand-fallback {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
}

.link-text {
  min-width: 0;
}

.link-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.link-desc {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.socials {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.social {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.social:hover {
  transform: translateY(-1px);
  opacity: 1;
}

.social .brand-icon {
  opacity: 0.82;
}

.footer {
  margin-top: 22px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (min-width: 860px) {
  .page {
    padding: 26px;
  }

  .card {
    padding: 38px;
  }

  .links {
    gap: 16px;
  }

  .link-btn {
    padding: 20px 20px;
  }
}

@media (max-width: 520px) {
  .page {
    padding: 14px;
  }

  .card {
    padding: 18px;
    border-radius: 24px;
  }

  .avatar,
  .avatar-fallback {
    width: 74px;
    height: 74px;
  }

  .link-btn {
    padding: 16px;
    border-radius: 22px;
  }

  .link-icon {
    width: 28px;
    height: 28px;
  }

  .link-desc {
    white-space: normal;
  }
}
