:root {
  --bg-deep: #030306;
  --bg: #08080d;
  --surface: #0e0e14;
  --surface2: #14141c;
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f4f7;
  --muted: #9ca3b0;
  --muted2: #6b7280;
  --accent: #f59e0b;
  --accent-soft: rgba(245, 158, 11, 0.14);
  --accent-glow: rgba(245, 158, 11, 0.28);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1080px;
  --font-sans: "Outfit", ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  --font-display: "Syne", var(--font-sans);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
  font-weight: 450;
  letter-spacing: -0.01em;
}

.theme-light {
  --bg-deep: #f8f8fa;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface2: #f3f4f6;
  --stroke: rgba(15, 23, 42, 0.1);
  --stroke-strong: rgba(15, 23, 42, 0.16);
  --text: #0f172a;
  --muted: #475569;
  --muted2: #64748b;
  --accent: #d97706;
  --accent-soft: rgba(217, 119, 6, 0.12);
  --accent-glow: rgba(217, 119, 6, 0.2);
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
}

.theme-amber {
  --accent: #f59e0b;
  --accent-soft: rgba(245, 158, 11, 0.14);
  --accent-glow: rgba(245, 158, 11, 0.28);
}

.theme-rose {
  --accent: #f472b6;
  --accent-soft: rgba(244, 114, 182, 0.16);
  --accent-glow: rgba(244, 114, 182, 0.32);
}

.theme-crimson {
  --accent: #ef4444;
  --accent-soft: rgba(239, 68, 68, 0.16);
  --accent-glow: rgba(239, 68, 68, 0.28);
}

.theme-violet {
  --accent: #a78bfa;
  --accent-soft: rgba(167, 139, 250, 0.18);
  --accent-glow: rgba(167, 139, 250, 0.3);
}

.theme-emerald {
  --accent: #34d399;
  --accent-soft: rgba(52, 211, 153, 0.14);
  --accent-glow: rgba(52, 211, 153, 0.26);
}

.theme-ocean {
  --accent: #22d3ee;
  --accent-soft: rgba(34, 211, 238, 0.14);
  --accent-glow: rgba(34, 211, 238, 0.28);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

.page {
  padding: 24px 0 88px;
}

/* Background */
.noise {
  pointer-events: none;
  position: fixed;
  inset: -40%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.06;
  z-index: 0;
  animation: drift 18s linear infinite;
}
@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-4%, 3%, 0);
  }
}

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 520px at 15% -20%, var(--accent-glow), transparent 55%),
    radial-gradient(ellipse 700px 480px at 95% 15%, rgba(99, 102, 241, 0.08), transparent 50%),
    radial-gradient(ellipse 800px 600px at 50% 120%, rgba(255, 255, 255, 0.03), transparent 55%),
    linear-gradient(180deg, var(--bg-deep), var(--bg));
}

.theme-light .bg-mesh {
  background:
    radial-gradient(ellipse 900px 520px at 20% -10%, var(--accent-soft), transparent 55%),
    radial-gradient(ellipse 700px 480px at 90% 20%, rgba(99, 102, 241, 0.06), transparent 50%),
    linear-gradient(180deg, #f8fafc, #eef2f7);
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(3, 3, 6, 0.92), rgba(3, 3, 6, 0.75));
  backdrop-filter: blur(20px) saturate(1.2);
}
.theme-light .topbar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78));
}
.topbar-inner {
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
  line-height: 1;
}
.brand-sub {
  font-size: 0.75rem;
  color: var(--muted2);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-form {
  margin: 0;
}


.home-landing {
  padding: clamp(32px, 8vw, 72px) 0 48px;
}
.home-landing__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(28px, 5vw, 48px);
  align-items: stretch;
}
@media (max-width: 880px) {
  .home-landing__grid {
    grid-template-columns: 1fr;
  }
}

.home-kicker {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.home-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 5.75rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.95;
  background: linear-gradient(135deg, #fff 30%, rgba(255, 255, 255, 0.82) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.theme-light .home-title {
  background: linear-gradient(135deg, #0f172a 20%, #334155 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.home-lines {
  margin: clamp(22px, 4vw, 36px) 0 0;
  max-width: 38ch;
}
.home-simple {
  margin: 0 0 0.65em;
  font-size: clamp(1.02rem, 2.4vw, 1.2rem);
  color: var(--muted);
  font-weight: 450;
  line-height: 1.6;
}
.home-simple:last-child {
  margin-bottom: 0;
}
.home-simple--dim {
  color: var(--muted2);
  font-size: clamp(0.92rem, 2vw, 1.05rem);
}

.home-actions {
  margin-top: clamp(28px, 5vw, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn-home {
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.btn-home--ghost {
  border: 1px solid var(--stroke-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}
.btn-home--ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}
.btn-home--solid {
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: linear-gradient(165deg, #fbbf24, var(--accent));
  color: #1a0f00;
  box-shadow: 0 16px 40px rgba(245, 158, 11, 0.25);
}
.btn-home--solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(245, 158, 11, 0.35);
}
.btn-home:active {
  transform: translateY(0);
}

.home-panel {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--stroke);
  background: linear-gradient(165deg, var(--surface2), var(--surface));
  padding: 28px 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.home-panel__glow {
  position: absolute;
  width: 200px;
  height: 200px;
  right: -60px;
  top: -60px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
}
.home-panel__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted2);
  margin-bottom: 18px;
}
.home-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.home-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.45;
}
.home-steps span {
  flex: 0 0 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


.hero {
  padding: 32px 0 40px;
  display: block;
}
.hero-title {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.hero-sub {
  margin: 8px 0 0;
  text-align: center;
  color: var(--muted);
  line-height: 1.55;
}

.center {
  display: flex;
  justify-content: center;
}

.hero-card {
  width: min(540px, 100%);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  background-color: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 26px 22px;
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, var(--accent-soft), transparent 45%);
  opacity: 0.5;
  pointer-events: none;
}

.profile-card {
  width: min(560px, 100%);
  margin: 0 auto;
}
.profile-head {
  text-align: center;
  padding-top: 4px;
}
.avatar-round {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  border: 2px solid var(--stroke-strong);
  background: var(--surface2);
  overflow: hidden;
  margin: 0 auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.avatar-round img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.display {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.bio {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.65;
}
.link-list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.link-btn:hover {
  transform: translateY(-2px);
  border-color: var(--stroke-strong);
  background: rgba(255, 255, 255, 0.05);
}
.divider {
  height: 1px;
  background: var(--stroke);
  margin: 18px 0;
}

.h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--text);
}
.lead {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 54ch;
}

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

.surface {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  background-color: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}
.surface::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 38%);
  opacity: 0.35;
}
.p-18 {
  padding: 18px;
}
.p-22 {
  padding: 22px;
}
.stack-12 > * + * {
  margin-top: 12px;
}
.stack-16 > * + * {
  margin-top: 16px;
}
.stack-20 > * + * {
  margin-top: 20px;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.section-sub {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 0.875rem;
}

.btn {
  appearance: none;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 650;
  letter-spacing: -0.02em;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
}
.btn:hover {
  transform: translateY(-1px);
  border-color: var(--stroke-strong);
  background: rgba(255, 255, 255, 0.06);
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.btn.primary {
  border-color: rgba(245, 158, 11, 0.5);
  background: linear-gradient(165deg, #fbbf24, var(--accent));
  color: #1a0f00;
  box-shadow: 0 14px 36px rgba(245, 158, 11, 0.22);
}
.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(245, 158, 11, 0.32);
}
.btn.danger {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.12);
}
.btn.btn-sm {
  padding: 8px 13px;
  font-size: 0.8125rem;
}
.btn-lg {
  padding: 13px 22px;
  font-size: 0.95rem;
}
.w-100 {
  width: 100%;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

label {
  display: block;
  font-weight: 650;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  outline: none;
  font-family: inherit;
  font-size: 0.95rem;
}
.theme-light input,
.theme-light textarea,
.theme-light select {
  background: rgba(255, 255, 255, 0.95);
}
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
textarea {
  resize: vertical;
  min-height: 92px;
}

.muted {
  color: var(--muted);
}
.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.right {
  margin-left: auto;
}

.avatar {
  width: 108px;
  height: 108px;
  border-radius: 20px;
  border: 1px solid var(--stroke);
  background: var(--surface2);
  overflow: hidden;
  position: relative;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.verified-badge {
  display: inline-flex;
  vertical-align: middle;
  flex-shrink: 0;
  cursor: help;
}
.verified-badge--explain:focus-visible .verified-badge__svg,
.verified-badge--explain:hover .verified-badge__svg {
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.45));
}
.verified-badge__svg {
  display: block;
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.35));
}
.verified-badge__disc {
  fill: var(--accent);
}
.verified-badge__check {
  stroke: #1a1008;
  stroke-width: 2.15;
}
.theme-light .verified-badge__check {
  stroke: #422006;
}


.status-badge {
  display: inline-flex;
  vertical-align: middle;
  flex-shrink: 0;
  line-height: 0;
  cursor: help;
}
.status-badge__svg {
  display: block;
}
.status-badge--hammer .status-badge__svg {
  filter: drop-shadow(0 2px 8px rgba(239, 68, 68, 0.38));
}
.status-badge--freeze .status-badge__svg {
  filter: drop-shadow(0 2px 8px rgba(34, 211, 238, 0.38));
}
.status-badge--explain.status-badge--hammer:focus-visible .status-badge__svg,
.status-badge--explain.status-badge--hammer:hover .status-badge__svg {
  filter: drop-shadow(0 0 12px rgba(239, 68, 68, 0.52));
}
.status-badge--explain.status-badge--freeze:focus-visible .status-badge__svg,
.status-badge--explain.status-badge--freeze:hover .status-badge__svg {
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.52));
}
.status-badge--hammer .status-badge__disc {
  fill: #ef4444;
}
.theme-light .status-badge--hammer .status-badge__disc {
  fill: #dc2626;
}
.status-badge--hammer .status-badge__hammer-head,
.status-badge--hammer .status-badge__hammer-handle {
  fill: #1a1008;
}
.theme-light .status-badge--hammer .status-badge__hammer-head,
.theme-light .status-badge--hammer .status-badge__hammer-handle {
  fill: #422006;
}
.status-badge--freeze .status-badge__disc {
  fill: #22d3ee;
}
.theme-light .status-badge--freeze .status-badge__disc {
  fill: #0891b2;
}
.status-badge--freeze .status-badge__snowflake {
  stroke: #0c1222;
  stroke-width: 2;
}
.theme-light .status-badge--freeze .status-badge__snowflake {
  stroke: #0f172a;
  stroke-width: 2;
}

/* Public profile layout */
.profile-public {
  max-width: 520px;
  margin: 0 auto;
  padding-bottom: 48px;
}
.profile-shell {
  border-radius: 24px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.profile-cover {
  position: relative;
  margin: 0;
  height: clamp(148px, 32vw, 220px);
  overflow: hidden;
}
.profile-cover__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-cover__fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--surface2) 0%, var(--surface) 45%, rgba(245, 158, 11, 0.12) 100%);
}
.profile-cover__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 40%, rgba(3, 3, 6, 0.85));
}
.theme-light .profile-cover__shade {
  background: linear-gradient(to bottom, transparent 35%, rgba(248, 250, 252, 0.92));
}

.profile-inner {
  padding: 0 22px 28px;
}
.profile-identity {
  text-align: center;
  margin-top: -52px;
  position: relative;
  z-index: 2;
}
.profile-avatar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}
.profile-avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 4px solid var(--surface);
  background: var(--surface2);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-avatar__letter {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--muted);
}
.profile-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.profile-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.profile-bio {
  margin: 14px auto 0;
  max-width: 42ch;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1rem;
}

.profile-section {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--stroke);
}
.profile-section:first-of-type {
  margin-top: 26px;
}
.profile-section__title {
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted2);
}
.profile-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.profile-link {
  display: block;
  text-align: center;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.profile-link:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.06);
}

.profile-tracks {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.profile-track {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.03), transparent);
}
.profile-track__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.profile-track__audio {
  width: 100%;
  height: 36px;
  margin: 0;
  accent-color: var(--accent);
}

.profile-empty {
  text-align: center;
  margin-top: 20px;
  font-size: 0.95rem;
}

/* Edit profile preview (me) */
.profile-edit-preview {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--stroke);
}
.profile-edit-banner {
  aspect-ratio: 21 / 9;
  min-height: 120px;
  background: var(--surface2);
}
.profile-edit-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-edit-banner__empty {
  height: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  font-size: 0.9rem;
}
.profile-edit-banner-tools {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--stroke);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.profile-edit-form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.t-caption {
  font-size: 0.78rem;
  width: 100%;
  margin: 0;
}
@media (min-width: 520px) {
  .t-caption {
    width: auto;
    margin-left: auto;
  }
}

.toast {
  border-left: 3px solid var(--accent);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.toast.bad {
  border-left-color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.22);
}

.table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--stroke);
}
.table th,
.table td {
  text-align: left;
  padding: 12px 12px;
  border-bottom: 1px solid var(--stroke);
  vertical-align: top;
}
.table th {
  color: var(--muted2);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.fade-in {
  animation: fadeUp 0.65s var(--ease) both;
}

.t-12 {
  font-size: 12px;
}


.card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  background-color: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.pad-lg {
  padding: 28px;
}


.banner-upload-form {
  margin: 0;
}
.file-upload-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.input-file {
  flex: 1;
  min-width: 180px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--stroke-strong);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.85rem;
  color: var(--muted);
}
.theme-light .input-file {
  background: rgba(255, 255, 255, 0.8);
}

/* Auth & notice pages */
.auth-page {
  align-items: start;
}
.auth-card {
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle at 100% 0%, var(--accent-soft), transparent 65%);
  pointer-events: none;
}
.auth-kicker {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.auth-aside .pill {
  align-self: flex-start;
}

.notice-page {
  max-width: 520px;
  margin: 0 auto;
  padding-bottom: 48px;
}
.notice-card {
  text-align: left;
}
.notice-kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted2);
}
.notice-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.notice-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 8px;
}
.notice-name-row .notice-title {
  margin: 0;
}
.notice-lead {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}
.notice-card .muted a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.code-inline {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
}


.admin-page {
  max-width: 100%;
}
.admin-hero {
  border-radius: calc(var(--radius) + 2px);
}
.admin-kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.admin-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.admin-hero__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.admin-stat {
  text-align: right;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(245, 158, 11, 0.06);
}
.admin-stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.admin-stat__label {
  font-size: 0.75rem;
  color: var(--muted2);
  margin-top: 4px;
  display: block;
}
.admin-table-card {
  padding: 0;
  overflow: hidden;
}
.admin-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.admin-table td {
  vertical-align: middle;
}
.admin-user-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.admin-user-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.admin-user-meta {
  font-size: 0.85rem;
  margin-top: 4px;
}
.admin-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.pill--ok {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}
.pill--warn {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.admin-form {
  margin: 0;
}

.admin-row-blocked td {
  background: rgba(239, 68, 68, 0.04);
}

.admin-row-frost td {
  background: rgba(56, 189, 248, 0.05);
}

.blocked-page .blocked-card,
.frost-page .frost-card {
  text-align: center;
}

.blocked-icon-head,
.frost-icon-head {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}
.err404-page {
  position: relative;
  padding: clamp(28px, 8vw, 56px) 0 72px;
  overflow: hidden;
}
.err404-glow {
  position: absolute;
  width: min(520px, 90vw);
  height: min(520px, 90vw);
  border-radius: 50%;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--accent-glow), transparent 62%);
  pointer-events: none;
  opacity: 0.85;
}
.err404-card {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 40px);
  border-radius: 24px;
  text-align: center;
  overflow: hidden;
}
.err404-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(165deg, rgba(245, 158, 11, 0.08), transparent 45%);
}
.err404-code {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4rem, 18vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.95;
  background: linear-gradient(180deg, rgba(251, 191, 36, 1), rgba(245, 158, 11, 0.75));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.err404-title {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  letter-spacing: -0.04em;
}
.err404-sub {
  margin-top: 12px;
  max-width: 38ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.err404-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.err404-brand {
  margin-top: 28px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}


.profile-edit-hit {
  position: relative;
  cursor: pointer;
  display: block;
  overflow: hidden;
}
.profile-edit-hit:focus-within .profile-edit-hit__hint,
.profile-edit-hit:hover .profile-edit-hit__hint {
  opacity: 1;
}
.profile-edit-hit__hint {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(3, 3, 6, 0.72);
  color: rgba(245, 158, 11, 0.95);
  border: 1px solid rgba(245, 158, 11, 0.35);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
  pointer-events: none;
}
.theme-light .profile-edit-hit__hint {
  background: rgba(255, 255, 255, 0.88);
  color: var(--accent);
}
.profile-edit-banner.profile-edit-hit {
  border-radius: 14px;
  min-height: 120px;
  border: 1px solid var(--stroke);
}
.profile-edit-banner.profile-edit-hit img {
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
  display: block;
}
.profile-edit-hit--square {
  border-radius: 20px;
}
.profile-edit-hit--square img,
.profile-edit-hit--square .avatar__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 2rem;
  background: var(--surface2);
}
.profile-edit-user-row {
  align-items: flex-start;
  gap: 18px;
  margin-top: 20px;
}
.profile-edit-meta {
  flex: 1;
  min-width: 200px;
}
.profile-name-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.profile-name-text {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}
.profile-link-line {
  margin-top: 8px;
}
.avatar-hint-profile {
  margin: 14px 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
}


.media-crop {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 3, 6, 0.72);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.28s var(--ease),
    visibility 0.28s step-end;
}
.media-crop--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.28s var(--ease),
    visibility 0s;
}
.media-crop__dialog {
  width: min(420px, 100%);
  padding: 20px;
  border-radius: 22px;
  max-height: min(94vh, 860px);
  overflow: auto;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.65);
}
.media-crop__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.media-crop__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.media-crop__icon-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 10px;
  line-height: 0;
}
.media-crop__icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.media-crop__tip {
  margin: 0 0 12px;
  font-size: 0.82rem;
  line-height: 1.45;
}
.media-crop__viewport-wrap {
  padding: 4px;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), transparent);
}
.media-crop__viewport {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto;
  background: repeating-conic-gradient(
      rgba(255, 255, 255, 0.035) 0% 25%,
      rgba(255, 255, 255, 0.07) 0% 50%
    )
    50% / 14px 14px;
  border: 2px solid var(--stroke-strong);
  cursor: grab;
  touch-action: none;
}
.media-crop__viewport:active {
  cursor: grabbing;
}
.media-crop__viewport--circle {
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(245, 158, 11, 0.25);
}
.media-crop__viewport:not(.media-crop__viewport--circle) {
  border-radius: 14px;
}
.media-crop__layer {
  flex-shrink: 0;
  transform-origin: center center;
  display: inline-block;
  line-height: 0;
}
.media-crop__layer img {
  display: block;
  max-width: none;
}
.media-crop__toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}
.media-crop__rot-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.media-crop__slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.media-crop__zoom-label {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.media-crop__zoom {
  width: 100%;
  accent-color: var(--accent);
}
.media-crop__rot {
  flex: 1;
  min-width: 92px;
}
.media-crop__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--stroke);
}
.media-crop__fab {
  appearance: none;
  border: 2px solid rgba(245, 158, 11, 0.55);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: linear-gradient(165deg, #fcd34d, var(--accent));
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.32);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.media-crop__fab:hover {
  transform: scale(1.04);
  box-shadow: 0 16px 40px rgba(245, 158, 11, 0.45);
}

.theme-light .media-crop {
  background: rgba(15, 23, 42, 0.4);
}


.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  pointer-events: none;
  max-width: min(420px, calc(100vw - 36px));
}
.toast-stack .toast-push {
  pointer-events: auto;
}
.toast-push {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--stroke-strong);
  background: linear-gradient(165deg, var(--surface2), var(--surface));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
  cursor: pointer;
}
.toast-push--show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.toast-push__icon-wrap {
  flex-shrink: 0;
  line-height: 0;
  margin-top: 2px;
}
.toast-icon-svg.toast-icon-svg--accent {
  color: var(--accent);
}
.toast-icon-svg.toast-icon-svg--bad circle {
  filter: drop-shadow(0 2px 6px rgba(239, 68, 68, 0.35));
}
.toast-push__text {
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text);
  font-weight: 550;
}
.toast-push--ok {
  border-color: rgba(245, 158, 11, 0.35);
}
.toast-push--bad {
  border-color: rgba(239, 68, 68, 0.4);
  background: linear-gradient(165deg, rgba(239, 68, 68, 0.12), var(--surface));
}
.toast-push--info {
  border-color: rgba(255, 255, 255, 0.12);
}
.theme-light .toast-push {
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
}
