:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: #0b0b0b;
  color: #fff;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("https://cdn.getallmylinks.com/cdn-cgi/image/w=860,h=1864,q=90,f=auto,onerror=redirect/https://images.getallmylinks.com/backgrounds/user-profile-2f1815810-2ftmp-3911-1774300397701-6a3bfe8faa52b987837931.webp");
  background-size: cover;
  background-position: center;
  filter: brightness(0.48) contrast(1.05);
  transform: scale(1.04);
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.6));
  z-index: -1;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.profile-card {
  width: min(95vw, 480px);
  padding: 20px;
  border-radius: 28px;
  background: rgba(22, 22, 22, 0.78);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-image {
  width: 100%;
  height: clamp(320px, 52vw, 460px);
  display: block;
  border-radius: 20px;
  object-fit: cover;
  object-position: center top;
  margin-bottom: 18px;
}

h1 {
  margin: 0 0 16px;
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.social-links {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.pill-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: #111;
  background: #fff;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.pill-link img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.link-card img { position: relative; z-index: 1; }
.link-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.link-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  text-decoration: none;
  background: #111;
  min-height: 118px;
}

/* Badge base */
.link-card .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

/* Lock badge: black circle with white lock */
.link-card .lock-badge {
  background: #000;
  border: 2px solid rgba(255,255,255,0.06);
}
.link-card .lock-badge svg { width: 20px; height: 20px; }

/* Instagram badge: colorful gradient with subtle white ring */
.link-card .insta-badge {
  background: transparent;
  border-radius: 50%;
}
.link-card .insta-badge svg { width: 20px; height: 20px; display: block; border-radius: 50%; }

/* Slight upward offset for small screens */
@media (max-width: 560px) {
  .link-card .badge { top: 8px; left: 8px; width: 32px; height: 32px; }
}

.link-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 0.9;
}

.link-card span {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.82));
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.65);
  z-index: 40;
}

.featured {
  min-height: 180px;
  aspect-ratio: 1.05 / 1;
}

.link-card.featured img {
  height: 100%;
}

/* Make CTA labels uppercase and style icon placements */
.link-card .cta {
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  position: absolute;
  left: 16px;
  bottom: 12px;
  padding: 10px 14px;
  border-radius: 10px;
}

.link-card .cta .icon svg {
  display: inline-block;
  vertical-align: middle;
}


/* Image animation for featured card */
.link-card.featured img {
  transform-origin: center;
  animation: img-float 8000ms ease-in-out infinite;
  transition: transform 240ms ease, filter 240ms ease;
}

.link-card.featured:hover img {
  transform: scale(1.04) translateY(-6px);
  filter: brightness(1.06) saturate(1.02);
}

@keyframes img-float {
  0% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.03) translateY(-6px); }
  100% { transform: scale(1) translateY(0); }
}

/* Verified check styling */
.verified {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
}
.verified svg { display: block; }

/* Improved verified badge styling */
.verified {
  margin-left: 10px;
}
.verified svg { width: 20px; height: 20px; display: block; }
.verified { vertical-align: middle; display: inline-flex; align-items: center; margin-left: 8px; }
.verified { transition: transform 160ms cubic-bezier(.2,.9,.3,1); }
.verified:hover { transform: translateY(-2px) scale(1.06); }
.verified svg { filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35)); }

/* External verified badge image */
.love-badge {
  display: inline-block;
  margin-left: 8px;
  font-size: 1.1em;
  vertical-align: middle;
  filter: drop-shadow(0 2px 10px rgba(255, 76, 76, 0.55));
  animation: heart-bounce 1.8s ease-in-out infinite;
}

@keyframes heart-bounce {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.12); }
  50% { transform: scale(0.96); }
  75% { transform: scale(1.08); }
}

@media (max-width:560px){ .love-badge{ margin-left:6px; } }

@media (prefers-reduced-motion: reduce) {
  .verified, .verified svg { transition: none !important; transform: none !important; }
  .love-badge { animation: none !important; }
}

/* Icon sizing inside CTA */
.cta .icon { display: inline-flex; align-items: center; }
.cta .icon svg { width: 14px; height: 14px; }

@media (prefers-reduced-motion: reduce) {
  .link-card.featured img,
  .link-card.featured .cta {
    animation: none !important;
    transition: none !important;
  }
}

.stacked-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
}

.footer-links a {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 560px) {
  .page-shell {
    min-height: 100dvh;
    padding: max(12px, env(safe-area-inset-top)) 10px max(12px, env(safe-area-inset-bottom));
    align-items: flex-start;
  }

  .profile-card {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border-radius: 18px;
  }

  .hero-image {
    height: clamp(260px, 58vw, 340px);
    margin-bottom: 12px;
    border-radius: 14px;
  }

  h1 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    line-height: 1.1;
  }

  .social-links {
    gap: 8px;
    margin-bottom: 12px;
  }

  .pill-link {
    padding: 10px 12px;
    font-size: 0.95rem;
  }

  .link-grid {
    gap: 10px;
    margin-bottom: 12px;
  }

  .link-card {
    min-height: 100px;
    border-radius: 14px;
  }

  .featured {
    min-height: 150px;
  }

  .stacked-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .link-card span {
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  .link-card.featured .cta {
    left: 12px;
    right: 12px;
    bottom: 10px;
    padding: 10px 12px;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-align: center;
  }
}

@media (max-width: 390px) {
  .profile-card {
    padding: 10px;
  }

  .hero-image {
    height: 220px;
    border-radius: 12px;
  }

  h1 {
    font-size: 1.55rem;
  }

  .love-badge {
    font-size: 0.95em;
  }

  .pill-link {
    padding: 9px 10px;
    font-size: 0.9rem;
  }

  .link-card span {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .link-card.featured .cta {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    padding: 9px 10px;
  }
}

/* CTA animation for featured link */
.link-card.featured .cta {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(255,82,82,0.24), rgba(255,154,108,0.22), rgba(255,98,98,0.18));
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff !important;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform-origin: center;
  animation: cta-pulse 1600ms ease-in-out infinite;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 10px 28px rgba(255,88,88,0.22), 0 0 30px rgba(255,120,120,0.18);
}

.link-card.featured:hover .cta {
  transform: translateY(-8px) scale(1.04);
  filter: brightness(1.08);
  animation-duration: 900ms;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 16px 42px rgba(255,88,88,0.34), 0 0 42px rgba(255,120,120,0.24);
}

@keyframes cta-pulse {
  0% { transform: translateY(0) scale(1); box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 10px 28px rgba(255,88,88,0.22), 0 0 30px rgba(255,120,120,0.18); }
  45% { transform: translateY(-6px) scale(1.04); box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 18px 42px rgba(255,88,88,0.34), 0 0 42px rgba(255,120,120,0.22); }
  100% { transform: translateY(0) scale(1); box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 10px 28px rgba(255,88,88,0.22), 0 0 30px rgba(255,120,120,0.18); }
}

@media (prefers-reduced-motion: reduce) {
  .link-card.featured .cta {
    animation: none !important;
    transition: none !important;
  }
}
