*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(145deg, #0a0a0f 0%, #0f0f1a 40%, #0a0a0f 100%);
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 48px 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ── Profile ── */

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  border: 2px solid #2a2a2a;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 8px 32px rgba(0, 0, 0, 0.5);
}

.name {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
  background: linear-gradient(135deg, #f0f0f5 0%, #a0a0b0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.handle {
  font-size: 14px;
  color: #555;
  margin-bottom: 6px;
}

.bio {
  font-size: 14px;
  color: #777;
  text-align: center;
  line-height: 1.5;
  max-width: 360px;
}

/* ── Link List ── */

.link-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.link-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  background: linear-gradient(135deg, #1a1a1e 0%, #16161a 100%);
  color: #e0e0e0;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-radius: 12px;
  border: 1px solid #25252b;
  transition: background 0.25s ease, transform 0.15s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.link-item:hover {
  background: linear-gradient(135deg, #22222a 0%, #1c1c22 100%);
  border-color: #3a3a46;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.link-item:active {
  transform: scale(0.97);
}

.link-item:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.6);
  outline-offset: 2px;
}

.link-icon {
  font-size: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  line-height: 1;
}

.link-icon img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}

.link-text {
  flex: 1;
  text-align: center;
  letter-spacing: 0.01em;
}

/* Status dot (for healthchecked services) */

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 6px currentColor;
}

/* ── Donation Button ── */

.footer-links {
  width: 100%;
}

.donation {
  background: linear-gradient(135deg, #1e1a1a 0%, #1a1616 100%);
  border-color: #332828;
}

.donation:hover {
  background: linear-gradient(135deg, #2a1e1e 0%, #221a1a 100%);
  border-color: #ff5e5b;
}

.donation .link-text {
  color: #ff5e5b;
  font-weight: 600;
}

/* ── Responsive ── */

@media (min-width: 640px) {
  body {
    padding: 64px 24px;
  }

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

  .name {
    font-size: 26px;
  }

  .bio {
    font-size: 15px;
  }

  .link-item {
    padding: 18px 24px;
    font-size: 16px;
  }

  .link-icon {
    font-size: 26px;
  }

  .link-icon img {
    width: 32px;
    height: 32px;
  }
}
