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

:root {
  --background: 270 20% 4%;
  --foreground: 270 20% 95%;
  --primary: 270 80% 70%;
  --accent: 280 70% 60%;
  --destructive: 0 84.2% 60.2%;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* Background */
.bg-layer {
  position: fixed; inset: 0; z-index: 0;
}
.bg-image {
  position: absolute; inset: 0;
  background: url('background.png') center/cover no-repeat;
}
.bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    hsla(var(--background), 0.5),
    hsla(var(--background), 0.4),
    hsla(var(--background), 0.8));
}
@media (min-width: 768px) {
  .bg-overlay {
    background: linear-gradient(to right,
      hsla(var(--background), 0.3),
      hsla(var(--background), 0.6),
      hsla(var(--background), 0.95));
  }
}

/* Layout */
.content {
  position: relative; z-index: 10;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
}
@media (min-width: 768px) {
  .content {
    flex-direction: row; align-items: center; justify-content: flex-end;
  }
}
.content-inner {
  width: 100%; padding: 0 20px;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (min-width: 768px) {
  .content-inner { width: 420px; margin-right: 8%; }
}
@media (min-width: 1024px) {
  .content-inner { margin-right: 12%; }
}
.content-wrap {
  padding: 48px 0;
}
@media (min-width: 768px) {
  .content-wrap { padding: 32px 0; }
}

/* Header */
.header {
  margin-bottom: 32px; text-align: center;
  animation: fadeIn 0.5s ease forwards; opacity: 0;
}
@media (min-width: 768px) {
  .header { text-align: left; }
}
.avatar-wrap {
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.avatar {
  width: 64px; height: 64px; border-radius: 16px;
  background: hsla(var(--primary), 0.15);
  backdrop-filter: blur(24px);
  border: 1px solid hsla(var(--primary), 0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  box-shadow: 0 0 30px hsla(var(--primary), 0.15), inset 0 1px 0 hsla(var(--primary), 0.2);
}
@media (min-width: 768px) {
  .avatar { width: 56px; height: 56px; font-size: 26px; }
}
.header h1 {
  font-size: 20px; font-weight: 600; letter-spacing: -0.01em;
  color: hsl(var(--foreground));
}
.header .handle {
  font-size: 12px; color: hsla(var(--primary), 0.7); margin-top: 2px;
}
.header .bio {
  font-size: 14px; color: hsla(var(--foreground), 0.5);
  line-height: 1.6; margin-top: 12px;
  max-width: 280px; margin-left: auto; margin-right: auto;
}
@media (min-width: 768px) {
  .header .bio { margin-left: 0; }
}

/* Sections */
.sections { display: flex; flex-direction: column; gap: 20px; }

.section { opacity: 0; animation: fadeIn 0.5s ease forwards; }

.section-title {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.15em; color: hsla(var(--primary), 0.6);
  margin-bottom: 8px; padding: 0 8px;
  display: flex; align-items: center; gap: 8px;
}
.badge-18 {
  font-size: 10px; text-transform: none; letter-spacing: normal;
  font-weight: 500; padding: 2px 6px; border-radius: 6px;
  background: hsla(var(--primary), 0.2); color: hsl(var(--primary));
}

.section-card {
  border-radius: 16px;
  border: 1px solid hsla(var(--primary), 0.2);
  background: hsla(var(--primary), 0.08);
  backdrop-filter: blur(24px);
  padding: 4px 8px;
  box-shadow: 0 0 50px hsla(270, 80%, 70%, 0.12), inset 0 1px 0 hsla(270, 80%, 70%, 0.15);
}

/* Link Items */
.link-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; margin: 0 -4px; border-radius: 12px;
  text-decoration: none; color: inherit;
  transition: all 0.2s ease;
  opacity: 0; animation: fadeIn 0.5s ease forwards;
}
.link-item:hover { background: hsla(var(--primary), 0.1); }
.link-item:active { background: hsla(var(--primary), 0.15); transform: scale(0.98); }

.link-icon {
  width: 36px; height: 36px; border-radius: 12px;
  background: hsla(var(--primary), 0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.2s;
}
.link-item:hover .link-icon { background: hsla(var(--primary), 0.3); }

.link-icon svg, .link-icon img {
  width: 16px; height: 16px; color: hsla(var(--foreground), 0.7); fill: currentColor;
}

.link-name {
  font-size: 15px; color: hsla(var(--foreground), 0.9);
  transition: color 0.2s;
}
.link-item:hover .link-name { color: hsl(var(--foreground)); }

.link-lock {
  width: 12px; height: 12px; color: hsla(var(--primary), 0.4);
  margin-left: auto; flex-shrink: 0;
}
.link-chevron {
  width: 16px; height: 16px; color: hsla(var(--primary), 0.3);
  flex-shrink: 0; transition: all 0.2s;
}
.link-lock ~ .link-chevron { margin-left: 0; }
.link-chevron:first-of-type:not(.link-lock ~ .link-chevron) { margin-left: auto; }
.link-item:hover .link-chevron {
  color: hsla(var(--primary), 0.6); transform: translateX(2px);
}

/* Age Gate */
.age-overlay {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background: hsla(var(--background), 0.8);
  backdrop-filter: blur(24px);
  animation: fadeIn 0.3s ease forwards; opacity: 0;
}
.age-card {
  width: 100%; max-width: 300px; margin: 0 24px;
  border-radius: 24px;
  border: 1px solid hsla(var(--foreground), 0.08);
  background: hsla(var(--foreground), 0.05);
  backdrop-filter: blur(48px);
  padding: 28px; text-align: center;
  box-shadow: 0 8px 60px rgba(0,0,0,0.5), inset 0 1px 0 hsla(255,100%,100%,0.08);
}
.age-card .lock-icon {
  width: 20px; height: 20px; color: hsla(var(--foreground), 0.4);
  margin: 0 auto 12px;
}
.age-card h2 {
  font-size: 14px; font-weight: 600; color: hsl(var(--foreground)); margin-bottom: 4px;
}
.age-card p {
  font-size: 11px; color: hsla(var(--foreground), 0.35); margin-bottom: 20px;
}
.age-selects {
  display: flex; gap: 8px; margin-bottom: 12px;
}
.age-selects select {
  flex: 1; padding: 10px; border-radius: 12px;
  background: hsla(var(--foreground), 0.06);
  border: 1px solid hsla(var(--foreground), 0.08);
  color: hsl(var(--foreground)); font-size: 12px;
  outline: none; appearance: none; transition: colors 0.2s;
}
.age-selects select:last-child { flex: 0 0 96px; }
.age-error {
  font-size: 10px; color: hsl(var(--destructive)); margin-bottom: 8px;
}
.age-btn {
  width: 100%; padding: 10px; border-radius: 12px;
  background: hsla(var(--foreground), 0.1);
  border: 1px solid hsla(var(--foreground), 0.1);
  color: hsl(var(--foreground)); font-size: 12px; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
}
.age-btn:hover { background: hsla(var(--foreground), 0.15); }
.age-btn:active { transform: scale(0.97); }

.hidden { display: none !important; }
