/* fracture.lol */

:root {
  --bg: #0c0a0f;
  --surface: #131018;
  --surface-raised: #1a1622;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.13);
  --pink: #e8579a;
  --pink-subtle: rgba(232, 87, 154, 0.18);
  --pink-border: rgba(232, 87, 154, 0.3);
  --text: #ede9f4;
  --text-muted: #7e7490;
  --green: #3ecf72;
  --font: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

/* ——— Background ——— */
.bg-base {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 15% 0%, #1c0f2a 0%, transparent 60%),
              radial-gradient(ellipse 55% 45% at 90% 85%, #1a0820 0%, transparent 55%),
              var(--bg);
}

.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 48 L22 8 L28 32 L38 12 L50 52' fill='none' stroke='%23a855b5' stroke-width='0.7'/%3E%3Cpath d='M0 35 L18 25 M42 20 L60 40' fill='none' stroke='%23853d92' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  animation: pattern-drift 90s linear infinite;
}

@keyframes pattern-drift {
  to { background-position: 600px 360px; }
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 2;
}

.bg-glow-1 {
  width: min(60vw, 460px);
  height: min(60vw, 460px);
  background: #3d1260;
  opacity: 0.18;
  top: -15%;
  left: -10%;
}

.bg-glow-2 {
  width: min(45vw, 360px);
  height: min(45vw, 360px);
  background: #5c0f2e;
  opacity: 0.14;
  bottom: -10%;
  right: -8%;
}

/* ——— Nav pill ——— */
.site-header {
  position: relative;
  z-index: 20;
  padding: 1.25rem clamp(0.75rem, 2vw, 1.5rem) 0;
  display: flex;
  justify-content: center;
  animation: fade-down 0.55s ease-out both;
}

@keyframes fade-down {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  max-width: 100%;
  padding: 0.5rem 0.6rem 0.5rem 1rem;
  background: rgba(20, 14, 28, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-brand:hover { color: var(--pink); }

.nav-logo { display: flex; color: var(--pink); }

.nav-links {
  display: none;
  align-items: center;
  gap: 1.1rem;
}

@media (min-width: 860px) {
  .nav-links { display: flex; }
}

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-signup {
  flex-shrink: 0;
  padding: 0.42rem 0.95rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pink);
  text-decoration: none;
  border: 1px solid var(--pink-border);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.nav-signup:hover {
  background: var(--pink-subtle);
  color: #fff;
}

/* ——— Main ——— */
main {
  position: relative;
  z-index: 10;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

/* ——— Hero (centered) ——— */
.hero {
  text-align: center;
  padding-top: clamp(2.5rem, 8vh, 4.5rem);
  animation: fade-up 0.6s ease-out 0.06s both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.hero-tag svg { color: var(--pink); }
.hero-tag strong { color: var(--text); font-weight: 600; }

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-accent { color: var(--pink); }

.hero-sub {
  margin: 0 auto 2rem;
  max-width: 34rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ——— Claim row ——— */
.claim-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.claim-field {
  display: flex;
  align-items: center;
  flex: 1 1 220px;
  max-width: 340px;
  min-height: 46px;
  padding: 0 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s;
}

.claim-field:focus-within { border-color: var(--pink-border); }

.claim-prefix {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.claim-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  outline: none;
}

.claim-input::placeholder { color: #4a4057; }

.claim-btn {
  flex-shrink: 0;
  min-height: 46px;
  padding: 0 1.25rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--pink);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.claim-btn:hover { opacity: 0.85; }
.claim-btn:active { transform: scale(0.98); }

.trust-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 0 2.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* ——— Showcase card (centered, horizontal layout) ——— */
.showcase {
  margin-bottom: 2rem;
  animation: fade-up 0.65s ease-out 0.15s both;
}

.card-demo {
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(145deg, rgba(232, 87, 154, 0.35), rgba(110, 60, 180, 0.2) 50%, rgba(232, 87, 154, 0.2));
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.card-demo-inner {
  padding: 1.25rem 1.4rem;
  border-radius: 15px;
  background: #100d17;
}

.demo-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.demo-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-raised);
  border: 1.5px solid var(--pink-border);
  color: var(--pink);
  flex-shrink: 0;
}

.demo-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.demo-handle {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.demo-bio {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.demo-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.demo-link {
  display: block;
  padding: 0.55rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.demo-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.7rem;
  margin-bottom: 0.85rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.demo-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.demo-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.demo-stat svg { opacity: 0.6; }

/* ——— Scroll hint ——— */
.scroll-hint {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin: 0 0 1rem;
  padding: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.scroll-hint:hover { color: var(--text); }

.scroll-chevron {
  color: var(--pink);
  animation: chevron-bob 2s ease-in-out infinite;
}

@keyframes chevron-bob {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50%       { transform: translateY(4px); opacity: 1; }
}

/* ——— Features ——— */
.features {
  scroll-margin-top: 2rem;
  padding: clamp(2.5rem, 8vw, 4rem) 0 clamp(3rem, 10vw, 5rem);
  border-top: 1px solid var(--border);
  max-width: 860px;
  margin: 0 auto;
}

.features-inner {
  max-width: 860px;
  margin: 0 auto;
}

.features-heading {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.features-sub {
  margin: 0 0 2rem;
  max-width: 38rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.feature-grid {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-tile {
  padding: 1.2rem 1.1rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.25s, transform 0.25s ease;
}

.feature-tile:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
}

.ft-num {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--pink);
  letter-spacing: 0.04em;
}

.feature-tile h3 {
  margin: 0 0 0.3rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.feature-tile p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.features-cta { text-align: center; }

.features-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: var(--pink);
  border-radius: 999px;
  transition: opacity 0.2s;
}

.features-btn:hover { opacity: 0.85; }

/* ——— Footer ——— */
.site-footer {
  position: relative;
  z-index: 10;
  padding: 1.65rem clamp(1.25rem, 4vw, 2rem) 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand { font-weight: 700; font-size: 0.875rem; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.15rem;
}

.footer-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
  margin: 0;
  width: 100%;
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .footer-copy { width: auto; margin-left: auto; }
}

/* ——— Auth pages ——— */
.auth-main {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: calc(100vh - 180px);
  padding: clamp(2rem, 6vh, 4rem) clamp(1.25rem, 4vw, 2rem) 2rem;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 2rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  animation: fade-up 0.5s ease-out both;
}

.auth-title {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}

.auth-subtitle {
  margin: 0 0 1.5rem;
  font-size: 0.8375rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.55;
}

.auth-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.65rem 1rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.auth-google-btn:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
}

.auth-google-btn:active {
  transform: scale(0.985);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: lowercase;
}

.auth-field {
  margin-bottom: 0.85rem;
}

.auth-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.auth-field input {
  width: 100%;
  padding: 0.6rem 0.85rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s;
}

.auth-field input::placeholder {
  color: #4a4057;
}

.auth-field input:focus {
  border-color: var(--pink-border);
}

.auth-error {
  margin: 0 0 0.75rem;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: #e85757;
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.2s, margin 0.2s;
}

.auth-error.visible {
  opacity: 1;
  min-height: 1.2em;
}

.auth-submit-btn {
  display: block;
  width: 100%;
  padding: 0.65rem 1rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--pink);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.auth-submit-btn:hover {
  opacity: 0.85;
}

.auth-submit-btn:active {
  transform: scale(0.985);
}

.auth-switch {
  margin: 1.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

.auth-switch a {
  color: var(--pink);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.auth-switch a:hover {
  opacity: 0.8;
}

/* ——— Dashboard ——— */
.nav-active { color: var(--text) !important; }

.dash-main {
  position: relative;
  z-index: 10;
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vh, 2.5rem) clamp(1.25rem, 4vw, 2rem) 3rem;
  animation: fade-up 0.5s ease-out both;
}

/* URL bar */
.dash-url-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  background: rgba(62, 207, 114, 0.06);
  border: 1px solid rgba(62, 207, 114, 0.18);
  border-radius: 14px;
}

.dash-url-bar.visible { display: flex; }

.dash-url-left {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.dash-url-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash-url-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  word-break: break-all;
}

.dash-url-link:hover { text-decoration: underline; }

.dash-url-actions {
  display: flex;
  gap: 0.45rem;
  flex-shrink: 0;
}

.dash-url-copy,
.dash-url-visit {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s;
}

.dash-url-copy:hover,
.dash-url-visit:hover {
  border-color: var(--border-hover);
}

/* Tabs */
.dash-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  padding: 0.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.dash-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.5rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.dash-tab:hover { color: var(--text); }

.dash-tab.active {
  color: var(--text);
  background: var(--surface-raised);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.dash-tab svg { opacity: 0.5; flex-shrink: 0; }
.dash-tab.active svg { opacity: 0.9; }

.dash-tab-panel { display: none; }
.dash-tab-panel.active { display: block; }

@media (max-width: 480px) {
  .dash-tab { font-size: 0.7rem; gap: 0.25rem; padding: 0.5rem 0.3rem; }
  .dash-tab svg { width: 13px; height: 13px; }
}

/* Editor */
.dash-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.dash-section {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 1rem;
}

.dash-section-title {
  margin: 0 0 0.85rem;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Username claim */
.dash-claim-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.dash-claim-field {
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  min-height: 44px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s;
}

.dash-claim-field:focus-within { border-color: var(--pink-border); }

.dash-claim-prefix {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.dash-claim-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  outline: none;
}

.dash-claim-input::placeholder { color: #4a4057; }

.dash-username-status {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  min-height: 1.1em;
}

.dash-username-status.ok { color: var(--green); }
.dash-username-status.error { color: #e85757; }

/* Fields */
.dash-field {
  margin-bottom: 0.85rem;
}

.dash-field:last-child { margin-bottom: 0; }

.dash-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.dash-field input,
.dash-field textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.dash-field input::placeholder,
.dash-field textarea::placeholder { color: #4a4057; }

.dash-field input:focus,
.dash-field textarea:focus { border-color: var(--pink-border); }

/* Links */
.dash-link-row {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
  align-items: center;
}

.dash-link-title,
.dash-link-url {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
}

.dash-link-title { max-width: 35%; }

.dash-link-title:focus,
.dash-link-url:focus { border-color: var(--pink-border); }

.dash-link-title::placeholder,
.dash-link-url::placeholder { color: #4a4057; }

.dash-link-remove {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.dash-link-remove:hover {
  color: #e85757;
  border-color: rgba(232, 87, 87, 0.3);
}

.dash-add-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pink);
  background: transparent;
  border: 1px dashed var(--pink-border);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.dash-add-link:hover { background: var(--pink-subtle); }

/* Avatar preview */
.dash-avatar-preview {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--surface-raised);
  border: 2px solid var(--border);
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-avatar-preview.has-img { border-color: var(--pink-border); }

/* Upload area */
.dash-upload-area {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1.5px dashed var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.dash-upload-area:hover,
.dash-upload-area.drag {
  border-color: var(--pink-border);
  background: rgba(232, 87, 154, 0.04);
}

.dash-upload-wide {
  flex-direction: column;
  text-align: center;
  padding: 1.5rem 1rem;
}

.dash-upload-wide .dash-upload-text { align-items: center; }

.dash-upload-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.dash-upload-icon { color: var(--text-muted); }

.dash-upload-remove {
  display: inline-flex;
  align-items: center;
  margin-top: 0.5rem;
  padding: 0.35rem 0.7rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: #e85757;
  background: transparent;
  border: 1px solid rgba(232, 87, 87, 0.25);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.dash-upload-remove:hover { background: rgba(232, 87, 87, 0.1); }

/* Background preview */
.dash-bg-preview {
  margin-top: 0.6rem;
  height: 100px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0.5rem;
}

.dash-label-hint {
  font-size: 0.7rem;
  font-weight: 400;
  color: #5a4f6a;
}

/* Color picker row */
.dash-color-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dash-color-picker {
  width: 38px;
  height: 38px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  cursor: pointer;
  flex-shrink: 0;
}

.dash-color-picker::-webkit-color-swatch-wrapper { padding: 2px; }
.dash-color-picker::-webkit-color-swatch { border: none; border-radius: 4px; }

.dash-color-hex {
  width: 85px;
  padding: 0.5rem 0.65rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
}

.dash-color-hex:focus { border-color: var(--pink-border); }

.dash-color-arrow {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Select */
.dash-select {
  width: 100%;
  padding: 0.6rem 0.85rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237e7490' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.2rem;
}

.dash-select:focus { border-color: var(--pink-border); }

.dash-select option {
  background: var(--surface);
  color: var(--text);
}

.dash-select-sm {
  width: auto;
  min-width: 110px;
  max-width: 130px;
  padding: 0.55rem 2rem 0.55rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237e7490' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  flex-shrink: 0;
}

.dash-select-sm option {
  background: var(--surface);
  color: var(--text);
}

/* Social row input */
.dash-social-value {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
}

.dash-social-value:focus { border-color: var(--pink-border); }
.dash-social-value::placeholder { color: #4a4057; }

/* Status row */
.dash-status-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.dash-status-row input {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
}

.dash-status-row input:focus { border-color: var(--pink-border); }
.dash-status-row input::placeholder { color: #4a4057; }

/* Checkbox */
.dash-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}

.dash-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--pink);
  cursor: pointer;
}

/* Save */
.dash-save-btn {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: var(--pink);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.dash-save-btn:hover { opacity: 0.85; }
.dash-save-btn:active { transform: scale(0.985); }
.dash-save-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.dash-save-status {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  min-height: 1.2em;
}

.dash-save-status.ok { color: var(--green); }
.dash-save-status.error { color: #e85757; }

/* ——— Profile page ——— */
.profile-main {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: clamp(2rem, 6vh, 4rem) clamp(1rem, 4vw, 2rem) 2rem;
}

.profile-main.loaded { animation: fade-up 0.45s ease-out both; }

.profile-loading {
  display: flex;
  justify-content: center;
  padding-top: 30vh;
}

.profile-spinner {
  width: 28px;
  height: 28px;
  border: 2.5px solid var(--border);
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Card wrapper — holds glass panel + glow, handles tilt */
.pf-card-wrap {
  width: 100%;
  max-width: 540px;
  position: relative;
  transition: transform 0.25s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Glass card */
.pf-card {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  background: rgba(16, 13, 23, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.pf-card-body {
  padding: clamp(2rem, 5vw, 2.75rem) clamp(1.5rem, 4vw, 2.25rem);
}

/* Banner */
.pf-banner {
  width: 100%;
  height: 140px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pf-banner + .pf-card-body { padding-top: clamp(1rem, 3vw, 1.5rem); }
.pf-banner + .pf-card-body .pf-avatar { margin-top: -44px; box-shadow: 0 4px 16px rgba(0,0,0,0.4); }

.pf-avatar {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-raised);
  border: 2.5px solid var(--pink-border);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--pink);
  overflow: hidden;
}

.pf-avatar.has-img { padding: 0; }

.pf-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.pf-name {
  margin: 0 0 0.2rem;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Profile badges */
.pf-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.25rem 0 0.4rem;
}

.pf-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.pf-badge-pill svg {
  flex-shrink: 0;
}

.pf-handle {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.pf-bio {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  white-space: pre-line;
}

/* Socials row */
.pf-socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.pf-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.2s, background 0.2s;
}

.pf-social:hover {
  border-color: var(--pink-border);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
}

.pf-social svg {
  width: 18px;
  height: 18px;
}

/* Links */
.pf-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.pf-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.pf-link:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.pf-link svg {
  opacity: 0.35;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.pf-link:hover svg { opacity: 0.65; }

/* Audio player */
.pf-audio {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.85rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.pf-audio-play {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.pf-audio-play:hover { opacity: 0.85; }
.pf-audio-play:active { transform: scale(0.92); }

.pf-audio-play svg { display: block; }

.pf-audio-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pf-audio-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.pf-audio-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
}

.pf-audio-progress {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  transition: width 0.15s linear;
}

.pf-audio-time {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 2.5em;
  text-align: right;
}

/* Spotify embed */
.pf-spotify {
  margin-bottom: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
}

.pf-spotify iframe {
  display: block;
  border-radius: 12px;
}

/* Badge */
.pf-badge { padding-top: 1.5rem; }

.pf-badge a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.pf-badge a:hover { color: var(--pink); }
.pf-badge svg { color: var(--pink); }

/* ── Effects layer ── */
.pf-effects {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.pf-fx {
  position: absolute;
  display: block;
  border-radius: 50%;
  top: -5%;
}

/* Snow */
.pf-fx-snow {
  background: rgba(255, 255, 255, 0.8);
  animation: fx-fall linear infinite;
}

@keyframes fx-fall {
  0%   { transform: translateY(-10vh) translateX(0); }
  100% { transform: translateY(110vh) translateX(30px); }
}

/* Particles (float up) */
.pf-fx-particles {
  background: rgba(232, 87, 154, 0.5);
  top: auto;
  bottom: -5%;
  animation: fx-rise linear infinite;
}

@keyframes fx-rise {
  0%   { transform: translateY(10vh) translateX(0); opacity: 0; }
  20%  { opacity: 0.6; }
  100% { transform: translateY(-110vh) translateX(-20px); opacity: 0; }
}

/* Stars (twinkle in place) */
.pf-fx-stars {
  background: #fff;
  top: unset;
  animation: fx-twinkle ease-in-out infinite;
}

@keyframes fx-twinkle {
  0%, 100% { opacity: 0.1; transform: scale(0.8); }
  50%      { opacity: 0.8; transform: scale(1.2); }
}

/* Rain */
.pf-fx-rain {
  background: rgba(180, 200, 255, 0.3);
  border-radius: 2px;
  animation: fx-rain linear infinite;
}

@keyframes fx-rain {
  0%   { transform: translateY(-10vh); }
  100% { transform: translateY(110vh); }
}

/* Stars need random placement across the viewport */
.pf-fx-stars {
  top: calc(var(--seed, 50) * 1%);
}

/* Fireflies */
.pf-fx-fireflies {
  background: rgba(255, 230, 80, 0.6);
  top: unset;
  box-shadow: 0 0 6px 2px rgba(255, 230, 80, 0.3);
  animation: fx-firefly ease-in-out infinite;
}

@keyframes fx-firefly {
  0%   { opacity: 0; transform: translate(0, 0); }
  25%  { opacity: 0.9; }
  50%  { opacity: 0.3; transform: translate(30px, -40px); }
  75%  { opacity: 0.8; }
  100% { opacity: 0; transform: translate(-20px, 30px); }
}

/* Status */
.pf-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.15rem 0 0.3rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pf-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* View counter */
.pf-views {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  opacity: 0.7;
}

.pf-views svg { opacity: 0.5; }

/* Unmute overlay */
.pf-unmute-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2rem;
  pointer-events: none;
  animation: fade-up 0.3s ease-out both;
}

.pf-unmute-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  pointer-events: all;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  animation: unmute-bob 2s ease-in-out infinite;
}

@keyframes unmute-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* 404 */
.profile-not-found {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 30;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.profile-not-found.visible {
  display: flex;
  animation: fade-up 0.4s ease-out both;
}

.profile-not-found h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 700;
  color: var(--pink);
  letter-spacing: -0.04em;
}

.profile-not-found p {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  color: var(--text-muted);
}

.profile-claim-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.3rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: var(--pink);
  border-radius: 999px;
  transition: opacity 0.2s;
}

.profile-claim-btn:hover { opacity: 0.85; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
