:root {
  --bg-top: #6d5cff;
  --bg-mid: #3a2870;
  --bg-bot: #08050f;
  --pill: rgba(12, 10, 22, 0.72);
  --text: #f5f3ff;
  --muted: rgba(245, 243, 255, 0.62);
  --accent: #a78bfa;
  --hot: #f472b6;
  --malibu: #60a5fa;
  --radius: 16px;
  --font: "Inter", system-ui, sans-serif;
}

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

html,
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-bot);
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 38%, var(--bg-bot) 72%);
  pointer-events: none;
}

body > header,
body > main,
body > a.back-portfolio,
.shell {
  position: relative;
  z-index: 2;
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 45% at 50% -5%, rgba(255, 255, 255, 0.12), transparent 55%);
}

.floaters {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.floaters span {
  position: absolute;
  font-weight: 800;
  font-size: 2rem;
  opacity: 0.06;
  animation: drift 20s ease-in-out infinite;
}

.floaters span:nth-child(1) {
  left: 10%;
  top: 15%;
}
.floaters span:nth-child(2) {
  left: 75%;
  top: 22%;
  animation-delay: -5s;
}
.floaters span:nth-child(3) {
  left: 55%;
  top: 70%;
  animation-delay: -9s;
}

@keyframes drift {
  50% {
    transform: translateY(-18px) rotate(6deg);
  }
}

.shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
}

.nav-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: 920px;
  margin: 1rem auto 0;
  padding: 0.55rem 0.65rem 0.55rem 1rem;
  background: var(--pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(16px);
}

.nav-logo {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nav-logo span {
  opacity: 0.55;
}

.nav-links {
  display: none;
  gap: 1.1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s, background 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--hot));
  color: #fff;
}

.btn-malibu {
  background: var(--malibu);
  color: #0b1220;
}

.hero {
  max-width: 920px;
  margin: 0 auto;
  padding: 4rem 1.25rem 3rem;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero p.lead {
  margin: 1.25rem auto 0;
  max-width: 36rem;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.05rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.claim {
  margin: 2.5rem auto 0;
  max-width: 420px;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.claim-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.claim-row {
  display: flex;
  gap: 0.5rem;
}

.claim-prefix {
  padding: 0.65rem 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.claim-row input {
  flex: 1;
  min-width: 0;
  border: none;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
}

.claim-msg {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  min-height: 1.2em;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.stat {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.stat strong {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.02em;
}

.stat span {
  color: var(--muted);
  font-size: 0.85rem;
}

.pricing {
  max-width: 920px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.pricing h2,
.faq h2,
.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 1.5rem;
}

.pricing-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .nav-links {
    display: flex;
  }
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.price-card {
  padding: 1.5rem;
  border-radius: calc(var(--radius) + 4px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.price-card.featured {
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 0 40px rgba(167, 139, 250, 0.15);
}

.price-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.price-card .amount {
  margin: 0.35rem 0 0.75rem;
  font-size: 1.75rem;
  font-weight: 800;
}

.price-card ul {
  margin: 0 0 1.25rem;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.faq {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.25rem 4rem;
}

.faq details {
  margin-bottom: 0.65rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.85rem 1rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.footer {
  max-width: 920px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  display: grid;
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer h4 {
  margin: 0 0 0.5rem;
  color: var(--text);
  font-size: 0.85rem;
}

.footer a {
  display: block;
  margin: 0.25rem 0;
}

.footer a:hover {
  color: var(--text);
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.auth-card {
  width: min(400px, 100%);
  padding: 1.75rem;
  border-radius: calc(var(--radius) + 4px);
  background: rgba(12, 10, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
}

.auth-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.auth-card p.sub {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.field {
  margin-bottom: 0.85rem;
}

.field label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
}

.field textarea {
  min-height: 80px;
  resize: vertical;
}

.auth-error {
  color: #fca5a5;
  font-size: 0.85rem;
  min-height: 1.25em;
  margin-bottom: 0.5rem;
}

.auth-card .btn-primary {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.25rem;
}

.auth-switch {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.auth-switch a {
  color: var(--malibu);
}

.dashboard {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

.dash-grid {
  display: grid;
  gap: 1rem;
}

.panel {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.panel h2 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.plan-badge {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.plan-free {
  background: rgba(255, 255, 255, 0.1);
}

.plan-premium {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(245, 158, 11, 0.2));
  color: #fcd34d;
}

.lock-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.profile-public {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5rem 1rem 6rem;
}

.profile-card {
  width: min(420px, 100%);
  padding: 0 1.25rem 1.5rem;
  border-radius: calc(var(--radius) + 6px);
  background: rgba(22, 18, 34, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
}

.profile-banner {
  height: 88px;
  margin: 0 -1.25rem;
  border-radius: calc(var(--radius) + 6px) calc(var(--radius) + 6px) 0 0;
  background: linear-gradient(120deg, #8b5cf6, #ec4899, #6366f1);
}

.avatar-wrap {
  width: fit-content;
  margin: -44px auto 0;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--hot));
}

.avatar-wrap img {
  display: block;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #161222;
}

.profile-name {
  text-align: center;
  margin: 0.75rem 0 0;
  font-size: 1.5rem;
}

.profile-slug {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.25rem 0 0.75rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.profile-bio {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.link-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.link-stack a {
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.15s;
}

.link-stack a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.audio-dock {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  font-size: 0.8rem;
}

.audio-dock button {
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
}

.back-portfolio {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  font-size: 0.82rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.dash-tab {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.dash-tab.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(167, 139, 250, 0.45);
}

.dash-easy .dash-hello {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.dash-easy .dash-sub {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.easy-actions {
  margin-bottom: 1rem;
}

.field-title {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.grad-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.grad-swatch {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
}

.grad-swatch.active {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.45);
}

.upload-card {
  position: relative;
  display: block;
  margin: 0 0 0.85rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.upload-card strong {
  display: block;
  font-size: 0.92rem;
}

.upload-card span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.upload-card input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.dash-panel {
  display: none;
}

.dash-panel.active {
  display: block;
}

.dash-panel.full {
  grid-column: 1 / -1;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
}

.toggle-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.preview-banner {
  height: 72px;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  background: linear-gradient(120deg, #8b5cf6, #ec4899);
  background-size: cover;
  background-position: center;
}

.hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0.35rem 0 0;
}

.links-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.link-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 0.45rem;
}

.link-row input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font: inherit;
}

.link-remove {
  min-width: 40px;
  padding: 0.45rem 0.55rem;
}

@media (max-width: 640px) {
  .link-row {
    grid-template-columns: 1fr auto;
  }
  .link-row [data-link-url] {
    grid-column: 1 / -1;
  }
}

.save-bar {
  position: sticky;
  bottom: 0;
  padding: 1rem 0;
  background: linear-gradient(transparent, rgba(8, 5, 15, 0.95) 35%);
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.save-ok {
  color: #86efac;
  font-size: 0.85rem;
}
