/* ── Reset & base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --accent:  #ff2d78;
  --accent2: #7c3aed;
  --bg:      #0f0f14;
  --card-bg: rgba(255, 255, 255, 0.04);
  --border:  rgba(255, 255, 255, 0.09);
  --text:    #f0f0f5;
  --muted:   rgba(240, 240, 245, 0.5);
  --radius:  20px;
  --r-btn:   14px;
}

html, body {
  min-height: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 16px 60px;
  overflow-x: hidden;
}

/* ── Background blobs ── */
.bg-blur {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-blur::before, .bg-blur::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.22;
}
.bg-blur::before {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #ff2d78, transparent 70%);
  top: -100px; left: -100px;
  animation: floatA 10s ease-in-out infinite alternate;
}
.bg-blur::after {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #7c3aed, transparent 70%);
  bottom: -80px; right: -80px;
  animation: floatB 12s ease-in-out infinite alternate;
}
@keyframes floatA { from { transform: translate(0,0); } to { transform: translate(60px,60px); } }
@keyframes floatB { from { transform: translate(0,0); } to { transform: translate(-50px,-50px); } }

/* ── Card ── */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 28px 32px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05) inset, 0 40px 80px rgba(0,0,0,0.5);
  animation: fadeUp 0.45s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Loading spinner ── */
.spinner-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Avatar ── */
.avatar-wrapper {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 16px;
}
.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background-color: #1e1e2e;
  position: relative;
  z-index: 1;
}
.avatar-wrapper::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  z-index: 0;
  animation: rotateRing 4s linear infinite;
}
@keyframes rotateRing { to { transform: rotate(360deg); } }

/* ── Profile text ── */
.username {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  background: linear-gradient(90deg, #fff, rgba(255,255,255,0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bio {
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ── Stats ── */
.stats {
  display: flex;
  align-items: center;
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 0;
  margin-bottom: 28px;
}
.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.stat-num {
  font-size: 1.1rem;
  font-weight: 700;
}
.stat-label {
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* ── Link buttons ── */
.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.link-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--r-btn);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
}
.link-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.15s ease;
}
.link-btn:hover { transform: translateY(-2px) scale(1.01); box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
.link-btn:hover::before { background: rgba(255,255,255,0.07); }
.link-btn:active { transform: translateY(0) scale(0.99); }
.link-icon { width: 22px; height: 22px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.link-icon svg { width: 100%; height: 100%; }
.link-label { flex: 1; }
.link-arrow { font-size: 1rem; opacity: 0.55; transition: opacity 0.15s, transform 0.15s; }
.link-btn:hover .link-arrow { opacity: 1; transform: translateX(3px); }

/* ── Section labels dentro de links ── */
.link-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding-top: 4px;
}
.link-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Footer ── */
.footer {
  margin-top: 28px;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ── 404 / Error ── */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  text-align: center;
}
.not-found-emoji { font-size: 3rem; }
.not-found h2 {
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(90deg, #fff, rgba(255,255,255,0.6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.not-found p { font-size: 0.875rem; color: var(--muted); }
.btn-back {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding: 13px 24px;
  border-radius: var(--r-btn);
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-back:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

/* ── Home landing ── */
.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  padding: 8px 0;
}
.home-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  border: 1px solid rgba(255,45,120,0.35);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.home-title {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 30%, rgba(255,255,255,0.55));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.home-sub {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 300px;
}
.demo-section {
  width: 100%;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.demo-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 2px;
}
.demo-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--r-btn);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.demo-pill:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.18);
  transform: translateX(3px);
}
.demo-pill span { color: var(--muted); font-size: 0.8rem; }

/* ── Responsive ── */
@media (max-width: 480px) {
  body { padding: 20px 12px 48px; }
  .card { padding: 32px 20px 28px; }
  .username { font-size: 1.2rem; }
  .home-title { font-size: 1.6rem; }
}
