:root {
  --link-font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --link-text: #f5f5f5;
  --link-muted: rgba(255, 255, 255, 0.72);
  --link-card-bg: rgba(255, 255, 255, 0.08);
  --link-card-border: rgba(255, 255, 255, 0.14);
  --link-item-bg: rgba(255, 255, 255, 0.1);
  --link-item-hover: rgba(255, 255, 255, 0.16);
  --link-accent: #e60023;
  --link-glow: rgba(230, 0, 35, 0.35);
}

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

body.link-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--link-font);
  color: var(--link-text);
  background: #0a0c0d;
}

.link-page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 20%, var(--link-glow), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08), transparent 40%),
    linear-gradient(160deg, var(--link-bg-start, #101415), var(--link-bg-end, #1a1f22));
}

.theme-midnight {
  --link-bg-start: #0d1012;
  --link-bg-end: #171b1f;
  --link-accent: #e60023;
  --link-glow: rgba(230, 0, 35, 0.28);
}

.theme-rose {
  --link-bg-start: #1a0b10;
  --link-bg-end: #3b1020;
  --link-accent: #ff4d6d;
  --link-glow: rgba(255, 77, 109, 0.35);
}

.theme-ocean {
  --link-bg-start: #07131f;
  --link-bg-end: #0d2a3f;
  --link-accent: #3ec6ff;
  --link-glow: rgba(62, 198, 255, 0.3);
}

.theme-sunset {
  --link-bg-start: #1f1028;
  --link-bg-end: #4a1f2f;
  --link-accent: #ff8c42;
  --link-glow: rgba(255, 140, 66, 0.32);
}

.theme-ember {
  --link-bg-start: #1a1008;
  --link-bg-end: #3a1f0d;
  --link-accent: #ffb347;
  --link-glow: rgba(255, 179, 71, 0.3);
}

.link-page-main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
}

.link-card {
  width: 100%;
  max-width: 440px;
  padding: 2rem 1.5rem 1.5rem;
  border-radius: 2rem;
  background: var(--link-card-bg);
  border: 1px solid var(--link-card-border);
  backdrop-filter: blur(20px);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.link-card-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.link-avatar {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
  border: 3px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.link-avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--link-accent), rgba(255, 255, 255, 0.2));
  color: #fff;
}

.link-card-header h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.link-bio {
  margin: 0;
  color: var(--link-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: var(--link-item-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.link-item:hover {
  transform: translateY(-2px);
  background: var(--link-item-hover);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

.link-item-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.link-item--instagram .link-item-icon { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.link-item--pinterest .link-item-icon { background: #e60023; }
.link-item--facebook .link-item-icon { background: #1877f2; }
.link-item--linkedin .link-item-icon { background: #0a66c2; font-size: 0.8rem; }
.link-item--x .link-item-icon { background: #111; border: 1px solid rgba(255,255,255,0.15); }
.link-item--youtube .link-item-icon { background: #ff0000; }
.link-item--tiktok .link-item-icon { background: #010101; border: 1px solid rgba(255,255,255,0.12); }
.link-item--telegram .link-item-icon { background: #229ed9; }
.link-item--email .link-item-icon { background: #5c6bc0; }
.link-item--website .link-item-icon { background: var(--link-accent); }

.link-item-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.link-item-title {
  font-weight: 700;
  font-size: 0.98rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-item-sub {
  font-size: 0.78rem;
  color: var(--link-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.link-item-arrow {
  color: var(--link-muted);
  font-size: 1.1rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.link-item:hover .link-item-arrow {
  transform: translateX(3px);
  color: var(--link-accent);
}

.link-card-footer {
  margin-top: 1.5rem;
  text-align: center;
}

.link-powered {
  font-size: 0.78rem;
  color: var(--link-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.link-powered:hover {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 480px) {
  .link-card {
    padding: 1.5rem 1rem 1rem;
    border-radius: 1.5rem;
  }

  .link-card-header h1 {
    font-size: 1.5rem;
  }
}
