:root {
  color-scheme: dark;
  --bg: #070708;
  --surface: #111216;
  --surface-2: #181a20;
  --text: #f4f7fb;
  --muted: #aab4bd;
  --line: rgba(255, 255, 255, 0.11);
  --accent: #79f7c7;
  --hot: #ff5c8a;
  --gold: #f7cf5b;
  --violet: #8f7cff;
  --danger: #ff5c7a;
  --success: #6dffb1;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  overflow-x: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 8, 0.78);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.nav form,
.button,
.profile-location,
.profile-link,
.audio-bar,
.section-head a,
.inline-form,
td:first-child {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 750;
  letter-spacing: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(121, 247, 199, 0.55);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(121, 247, 199, 0.95), rgba(255, 92, 138, 0.45)),
    radial-gradient(circle at 70% 30%, #fff 0 9%, transparent 10%);
  box-shadow: 0 0 28px rgba(121, 247, 199, 0.22);
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(121, 247, 199, 0.18));
}

.nav {
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.nav a,
.link-button {
  color: var(--muted);
  transition: color 160ms ease;
}

.nav a:hover,
.link-button:hover {
  color: var(--text);
}

.link-button {
  border: 0;
  background: none;
  padding: 0;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: clamp(28px, 6vw, 84px);
  align-items: end;
  padding: 130px clamp(20px, 7vw, 92px) 80px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 7, 8, 0.96), rgba(7, 7, 8, 0.56) 52%, rgba(7, 7, 8, 0.82)),
    url("data:image/svg+xml,%3Csvg width='1600' height='1000' viewBox='0 0 1600 1000' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1' y1='0' y2='1'%3E%3Cstop stop-color='%230b1010'/%3E%3Cstop offset='0.38' stop-color='%2315131a'/%3E%3Cstop offset='0.72' stop-color='%2307090b'/%3E%3Cstop offset='1' stop-color='%23190d13'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='1600' height='1000' fill='url(%23g)'/%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M-80 690 C238 506 364 856 642 694 S1105 389 1692 542' stroke='%2379f7c7' stroke-opacity='.2' stroke-width='2'/%3E%3Cpath d='M-43 386 C279 233 501 405 729 337 S1172 141 1642 208' stroke='%23ff5c8a' stroke-opacity='.18' stroke-width='2'/%3E%3Cpath d='M80 900 L508 160 L734 820 L1080 90 L1490 770' stroke='%23f7cf5b' stroke-opacity='.14' stroke-width='2'/%3E%3C/g%3E%3Cg fill='%23ffffff' fill-opacity='.45'%3E%3Ccircle cx='1192' cy='242' r='2'/%3E%3Ccircle cx='1280' cy='570' r='2'/%3E%3Ccircle cx='922' cy='372' r='1.5'/%3E%3Ccircle cx='1450' cy='140' r='1.5'/%3E%3Ccircle cx='1008' cy='760' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-gridlines {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 75%, transparent);
}

.hero-content {
  position: relative;
  max-width: 760px;
  z-index: 2;
}

.hero-banner-logo {
  display: block;
  width: min(620px, 100%);
  height: auto;
  margin: 0 0 18px;
  object-fit: contain;
  filter:
    drop-shadow(0 24px 50px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 34px rgba(121, 247, 199, 0.12));
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.hero h1 {
  margin: 0;
  font-size: clamp(58px, 9vw, 132px);
  line-height: 0.86;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  margin: 28px 0 0;
  color: #c8d7df;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

.hero-stats span {
  display: inline-flex;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.hero-stats strong {
  color: var(--text);
}

.hero-showcase {
  position: relative;
  z-index: 2;
  min-height: 500px;
}

.showcase-card {
  border: 1px solid rgba(121, 247, 199, 0.22);
  border-radius: 8px;
  background: rgba(8, 14, 21, 0.72);
  backdrop-filter: blur(24px);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.42), 0 0 70px rgba(121, 247, 199, 0.16);
}

.showcase-main {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(360px, 100%);
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 28px;
}

.showcase-topline {
  width: 86%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--hot), var(--gold));
}

.showcase-avatar {
  width: 96px;
  height: 96px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background:
    radial-gradient(circle at 65% 30%, #fff 0 8%, transparent 9%),
    linear-gradient(135deg, var(--accent), var(--violet) 62%, var(--hot));
}

.showcase-main strong {
  font-size: 28px;
}

.showcase-main span,
.showcase-small span {
  color: var(--muted);
  font-size: 14px;
}

.showcase-link,
.showcase-player {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
}

.showcase-link.short {
  width: 78%;
}

.showcase-player {
  height: 38px;
  background: linear-gradient(90deg, rgba(121, 247, 199, 0.22), rgba(255, 92, 138, 0.13));
}

.showcase-small {
  position: absolute;
  top: 36px;
  left: 0;
  width: min(270px, 80%);
  display: grid;
  gap: 12px;
  padding: 18px;
}

.showcase-small svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.ticker-band {
  width: 100%;
  display: flex;
  gap: 12px;
  overflow: hidden;
  padding: 18px clamp(20px, 7vw, 92px);
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.ticker-band span {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #dfe8e9;
  background: rgba(0, 0, 0, 0.26);
  font-size: 13px;
  font-weight: 800;
}

.showcase-command {
  position: absolute;
  right: 28px;
  top: 0;
  display: grid;
  gap: 4px;
  padding: 15px 18px;
}

.showcase-command span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.showcase-command strong {
  color: var(--accent);
}

.button {
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  font-weight: 700;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
}

.button.primary {
  color: #041016;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--gold));
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
}

.button.danger {
  color: #fff;
  border-color: rgba(255, 92, 122, 0.42);
  background: rgba(255, 92, 122, 0.16);
}

.button:disabled,
.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.button svg,
.icon-button svg,
.profile-link svg,
td svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.feature-band,
.page-shell,
.dashboard-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.section-head span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.section-head h1,
.section-head h2 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feature-grid article,
.panel,
.auth-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 19, 27, 0.86);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.feature-grid article {
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.feature-grid article::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  opacity: 0.7;
  pointer-events: none;
}

.feature-grid svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.feature-grid h3,
.panel h2 {
  margin: 16px 0 8px;
}

.feature-grid p,
.panel p,
.auth-card p,
.landing-split p,
.control-room p,
.domain-band p,
.profile-gallery p {
  color: var(--muted);
  line-height: 1.6;
}

.profile-gallery,
.matrix-band {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 12px 0 96px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery-profile {
  min-height: 420px;
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.gallery-profile::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.9;
  background:
    linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.72)),
    linear-gradient(135deg, rgba(121, 247, 199, 0.18), transparent 46%);
}

.gallery-profile > * {
  position: relative;
  z-index: 1;
}

.gallery-profile strong {
  font-size: 28px;
}

.gallery-profile span {
  color: var(--muted);
}

.gallery-avatar {
  width: 86px;
  height: 86px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--hot));
  box-shadow: 0 0 55px rgba(121, 247, 199, 0.32);
}

.gallery-profile i {
  display: block;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.gallery-neon {
  background:
    linear-gradient(145deg, #07100e, #150e18),
    var(--surface);
}

.gallery-clean {
  background:
    linear-gradient(145deg, #111, #1c1c1c),
    var(--surface);
}

.gallery-heavy {
  background:
    linear-gradient(145deg, #070708, #21130f),
    var(--surface);
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.matrix-grid div {
  display: grid;
  gap: 8px;
  min-height: 130px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.matrix-grid strong {
  color: var(--text);
  font-size: 20px;
}

.matrix-grid span {
  color: var(--muted);
  line-height: 1.5;
}

.control-room {
  width: min(1180px, calc(100% - 40px));
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 28px;
  align-items: center;
  margin: 0 auto;
  padding: 20px 0 96px;
}

.console-preview {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.32);
}

.console-sidebar {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
  border-right: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.24);
}

.console-sidebar strong {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 20px;
}

.console-sidebar span {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
}

.console-main {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 24px;
}

.console-row,
.console-actions span,
.console-grid span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035));
}

.console-row {
  height: 52px;
}

.console-row.wide {
  height: 76px;
  background: linear-gradient(90deg, rgba(121, 247, 199, 0.18), rgba(255, 92, 138, 0.08));
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.console-grid span {
  min-height: 86px;
}

.console-actions {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 12px;
}

.console-actions span {
  min-height: 42px;
}

.landing-split {
  width: min(1180px, calc(100% - 40px));
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 28px;
  align-items: center;
  margin: 0 auto;
  padding: 40px 0 96px;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.preset-card {
  min-height: 280px;
  display: flex;
  align-items: end;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.preset-card span {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
  font-weight: 800;
}

.preset-neon {
  background:
    linear-gradient(160deg, rgba(121, 247, 199, 0.28), transparent 42%),
    linear-gradient(20deg, rgba(255, 92, 138, 0.3), #080b0d 55%);
}

.preset-solid {
  background:
    linear-gradient(145deg, #141414, #252018),
    linear-gradient(90deg, rgba(247, 207, 91, 0.16), transparent);
}

.preset-minimal {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    #05070b;
}

.flow-band {
  width: min(1180px, calc(100% - 40px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 auto 100px;
}

.flow-step {
  min-height: 124px;
  display: grid;
  align-content: space-between;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.flow-step span {
  color: var(--accent);
  font-weight: 900;
}

.flow-step strong {
  font-size: 20px;
}

.domain-band {
  width: min(1180px, calc(100% - 40px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 auto 110px;
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(121, 247, 199, 0.14), transparent 42%),
    linear-gradient(315deg, rgba(255, 92, 138, 0.12), transparent 38%),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.3);
}

.domain-band span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.domain-band h2 {
  margin: 10px 0 8px;
  font-size: clamp(34px, 6vw, 76px);
  line-height: 0.95;
}

.domain-band p {
  max-width: 620px;
  margin: 0;
}

.faq-band,
.final-cta {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.faq-band {
  padding: 0 0 96px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.faq-grid article {
  min-height: 190px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.faq-grid strong {
  font-size: 18px;
  line-height: 1.25;
}

.faq-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.final-cta {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-bottom: 110px;
  padding: clamp(32px, 7vw, 78px);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(121, 247, 199, 0.12), transparent 40%),
    linear-gradient(315deg, rgba(247, 207, 91, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.045);
}

.final-cta span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.final-cta h2 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(36px, 6vw, 78px);
  line-height: 0.94;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 120px 20px 60px;
}

.auth-card {
  width: min(460px, 100%);
  padding: 28px;
}

.auth-card h1 {
  margin: 0 0 24px;
  font-size: 42px;
  line-height: 1;
}

.stack-form,
.inline-form {
  gap: 14px;
}

.stack-form {
  display: grid;
}

label {
  display: grid;
  gap: 7px;
  color: #cbd8df;
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.25);
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(102, 227, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(102, 227, 255, 0.12);
}

input[type="color"] {
  min-height: 48px;
  padding: 4px;
}

.flash {
  position: fixed;
  top: 82px;
  right: clamp(14px, 4vw, 36px);
  z-index: 80;
  max-width: min(420px, calc(100% - 28px));
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 14, 20, 0.96);
  color: var(--text);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
}

.flash.error {
  border-color: rgba(255, 92, 122, 0.45);
}

.flash.success {
  border-color: rgba(109, 255, 177, 0.45);
}

.dashboard-shell,
.page-shell {
  padding-top: 120px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.side-stack {
  display: grid;
  gap: 16px;
}

.panel {
  padding: 22px;
}

.panel h2 {
  margin-top: 0;
}

.profile-url,
.settings-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.profile-url {
  display: grid;
  gap: 4px;
  padding: 14px;
}

.profile-url span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-url strong {
  color: var(--accent);
  overflow-wrap: anywhere;
}

.settings-block {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.settings-block h3 {
  margin: 0;
  font-size: 18px;
}

.settings-block p {
  margin: -6px 0 2px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: auto;
}

.asset-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.preview-panel {
  display: grid;
  gap: 14px;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mini-profile-preview {
  --mini-accent: var(--accent);
  --mini-panel: #071117;
  --mini-text: #f7fbff;
  --mini-radius: 8px;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--mini-accent) 35%, transparent);
  border-radius: var(--mini-radius);
  color: var(--mini-text);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--mini-accent) 16%, transparent), transparent 42%),
    color-mix(in srgb, var(--mini-panel) 88%, #000);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.32);
}

.mini-avatar {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--mini-accent);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-avatar span {
  font-size: 34px;
  font-weight: 900;
}

.mini-profile-preview strong {
  font-size: 24px;
}

.mini-profile-preview em {
  color: var(--mini-accent);
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}

.mini-profile-preview p {
  margin: 0;
  text-align: center;
}

.mini-links {
  width: 100%;
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.mini-links span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.mini-links svg {
  width: 16px;
  height: 16px;
}

.full-button {
  width: 100%;
}

.preset-panel {
  display: grid;
  gap: 14px;
}

.preset-panel p {
  margin: -6px 0 0;
}

.preset-actions {
  display: grid;
  gap: 10px;
}

.preset-action {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  text-align: left;
  background: rgba(255, 255, 255, 0.055);
}

.preset-action span {
  font-weight: 900;
}

.preset-action strong {
  color: var(--muted);
  font-size: 13px;
}

.preset-action.neon {
  border-color: rgba(121, 247, 199, 0.28);
  background: linear-gradient(135deg, rgba(121, 247, 199, 0.14), rgba(143, 124, 255, 0.08));
}

.preset-action.clean {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035));
}

.preset-action.heavy {
  border-color: rgba(255, 92, 138, 0.28);
  background: linear-gradient(135deg, rgba(255, 92, 138, 0.16), rgba(247, 207, 91, 0.08));
}

.inline-form {
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.inline-form input {
  flex: 1 1 180px;
}

.inline-form input[name="sort_order"] {
  flex-basis: 96px;
}

.link-editor-list {
  display: grid;
  gap: 12px;
}

.link-editor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.link-edit-form {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(220px, 1.6fr) minmax(120px, 0.7fr) 90px auto;
  gap: 10px;
  align-items: end;
}

.table-panel {
  overflow-x: auto;
}

.admin-create-panel {
  margin-bottom: 16px;
}

.admin-users-list {
  display: grid;
  gap: 14px;
}

.admin-user-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.admin-user-head,
.admin-actions-row,
.admin-compact-form {
  display: flex;
  align-items: center;
}

.admin-user-head {
  justify-content: space-between;
  gap: 12px;
}

.admin-user-head div {
  display: grid;
  gap: 4px;
}

.admin-user-head strong {
  font-size: 20px;
}

.admin-user-head span {
  color: var(--muted);
  font-size: 14px;
}

.admin-user-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.admin-actions-row {
  flex-wrap: wrap;
  gap: 10px;
}

.admin-compact-form {
  gap: 8px;
}

.admin-compact-form input {
  min-width: 150px;
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

td {
  color: #dfeaf0;
}

td:first-child {
  gap: 9px;
}

code {
  color: var(--accent);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.icon-button.danger {
  color: var(--danger);
}

.profile-page {
  --profile-bg: #05080d;
  --accent-alt: #a86dff;
  --link-text: #ffffff;
  --border-glow: #66e3ff;
  --shadow-glow: #66e3ff;
  --overlay-opacity: 0.58;
  --card-width: 440px;
  --card-radius: 8px;
  --link-radius: 8px;
  --avatar-size: 112px;
  --glow-strength: 0.45;
  --grain-opacity: 0.14;
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 96px 20px 36px;
  background: var(--profile-bg);
  color: var(--profile-text);
  overflow: hidden;
}

.font-inter {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.font-mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.font-serif {
  font-family: Georgia, "Times New Roman", serif;
}

.font-system {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.profile-background,
.image-bg,
.profile-shade {
  position: absolute;
  inset: 0;
}

.profile-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fit-contain .profile-background {
  object-fit: contain;
}

.fit-tile .profile-background.image-bg {
  background-size: 320px;
  background-repeat: repeat;
}

.fit-contain .profile-background.image-bg {
  background-size: contain;
  background-repeat: no-repeat;
}

.image-bg {
  background:
    radial-gradient(circle at 50% 15%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 32%),
    linear-gradient(145deg, var(--profile-bg), #05070b 55%, color-mix(in srgb, var(--accent-alt) 20%, #05070b));
  background-size: cover;
  background-position: center;
}

.animated-bg .image-bg {
  animation: slowPan 18s ease-in-out infinite alternate;
}

@keyframes slowPan {
  from {
    transform: scale(1.03) translate3d(-1%, -1%, 0);
  }

  to {
    transform: scale(1.08) translate3d(1%, 1%, 0);
  }
}

.profile-shade {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, calc(var(--overlay-opacity) * 0.45)), rgba(0, 0, 0, var(--overlay-opacity))),
    radial-gradient(circle at center, transparent 0, rgba(0, 0, 0, calc(var(--overlay-opacity) * 0.75)) 72%);
}

.profile-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 5px 5px;
  mix-blend-mode: overlay;
}

.cursor-light {
  position: fixed;
  inset: auto;
  z-index: 1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent), transparent 66%);
  transition: opacity 160ms ease;
}

.cursor-light.active {
  opacity: 1;
}

.trail-dot {
  position: fixed;
  z-index: 60;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: var(--accent);
  box-shadow: 0 0 24px var(--accent);
  animation: trailFade 520ms ease forwards;
}

@keyframes trailFade {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.8);
  }
}

.profile-card {
  position: relative;
  z-index: 2;
  width: min(var(--card-width), 100%);
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 30px;
  border: 1px solid color-mix(in srgb, var(--border-glow) 32%, transparent);
  border-radius: var(--card-radius);
  background: color-mix(in srgb, var(--profile-panel) calc(var(--profile-opacity) * 100%), transparent);
  backdrop-filter: blur(var(--profile-blur));
  box-shadow:
    0 28px 100px rgba(0, 0, 0, 0.45),
    0 0 calc(140px * var(--glow-strength)) color-mix(in srgb, var(--shadow-glow) 30%, transparent);
  transition: transform 160ms ease;
}

.layout-left {
  place-items: center start;
  padding-left: clamp(20px, 10vw, 150px);
}

.layout-left .profile-card {
  justify-items: start;
}

.layout-left .profile-card h1,
.layout-left .profile-bio {
  text-align: left;
}

.layout-wide .profile-card {
  width: min(720px, 100%);
  grid-template-columns: auto minmax(0, 1fr);
  justify-items: start;
  align-items: center;
}

.layout-wide .profile-links,
.layout-wide .audio-bar {
  grid-column: 1 / -1;
}

.layout-wide .profile-card h1,
.layout-wide .profile-bio {
  text-align: left;
}

.layout-minimal .profile-card {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.profile-badge {
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.avatar-frame {
  width: var(--avatar-size);
  height: var(--avatar-size);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--border-glow);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 calc(72px * var(--glow-strength)) color-mix(in srgb, var(--shadow-glow) 36%, transparent);
}

.avatar-rounded .avatar-frame {
  border-radius: 24px;
}

.avatar-square .avatar-frame {
  border-radius: var(--card-radius);
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-frame span {
  font-size: 46px;
  font-weight: 800;
}

.profile-card h1 {
  margin: 4px 0 0;
  font-size: 34px;
  line-height: 1.05;
  text-align: center;
}

.profile-location {
  gap: 6px;
  margin: 0;
  color: color-mix(in srgb, var(--profile-text) 78%, transparent);
  font-size: 14px;
}

.profile-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.profile-bio {
  margin: 0;
  max-width: 340px;
  color: color-mix(in srgb, var(--profile-text) 82%, transparent);
  line-height: 1.55;
  text-align: center;
}

.profile-links {
  width: 100%;
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.profile-link {
  min-height: 48px;
  justify-content: space-between;
  gap: 12px;
  padding: 0 13px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: var(--link-radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--link-text);
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.profile-link span {
  flex: 1;
  text-align: left;
}

.profile-link:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 66%, transparent);
  background: rgba(255, 255, 255, 0.14);
}

.links-solid .profile-link {
  border-color: transparent;
  background: color-mix(in srgb, var(--accent) 88%, #ffffff);
  color: #061016;
}

.links-outline .profile-link {
  background: transparent;
}

.links-neon .profile-link {
  border-color: color-mix(in srgb, var(--accent) 72%, transparent);
  box-shadow: 0 0 calc(34px * var(--glow-strength)) color-mix(in srgb, var(--shadow-glow) 26%, transparent);
}

.mono-icons .profile-link svg {
  color: var(--accent);
}

.empty-profile {
  margin: 8px 0 0;
  color: color-mix(in srgb, var(--profile-text) 68%, transparent);
  text-align: center;
}

.audio-bar {
  width: 100%;
  gap: 10px;
  margin-top: 4px;
  padding: 9px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.audio-bar span {
  flex: 1;
  min-width: 0;
  color: color-mix(in srgb, var(--profile-text) 86%, transparent);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.volume-slider {
  width: 96px;
  padding: 0;
}

.enter-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--profile-text);
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(12px);
  font-size: clamp(26px, 5vw, 58px);
  font-weight: 800;
}

.enter-overlay.hidden {
  display: none;
}

@media (max-width: 900px) {
  .feature-grid,
  .dashboard-grid,
  .landing-split,
  .control-room,
  .flow-band,
  .gallery-grid,
  .matrix-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 90vh;
    padding-top: 150px;
  }

  .hero-showcase {
    min-height: 420px;
  }

  .preset-grid {
    grid-template-columns: 1fr;
  }

  .console-preview {
    grid-template-columns: 1fr;
  }

  .console-sidebar {
    grid-template-columns: repeat(2, 1fr);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .console-sidebar strong {
    grid-column: 1 / -1;
  }

  .domain-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .preset-card {
    min-height: 180px;
  }

  .gallery-profile {
    min-height: 300px;
  }

  .link-edit-form {
    grid-template-columns: 1fr 1fr;
  }

  .admin-user-grid {
    grid-template-columns: 1fr 1fr;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .layout-wide .profile-card {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .layout-left {
    place-items: center;
    padding-left: 20px;
  }
}

@media (max-width: 560px) {
  .feature-band,
  .page-shell,
  .dashboard-shell {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    padding-inline: 18px;
  }

  .hero-actions,
  .button,
  .inline-form {
    width: 100%;
  }

  .hero-showcase {
    display: none;
  }

  .ticker-band {
    padding-inline: 14px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .link-editor-row,
  .link-edit-form,
  .admin-user-grid,
  .admin-user-head,
  .admin-actions-row,
  .admin-compact-form {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-user-head,
  .admin-actions-row,
  .admin-compact-form {
    flex-direction: column;
  }

  .profile-card {
    padding: 24px 18px;
  }

  .volume-slider {
    width: 74px;
  }
}
