@property --border-spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes border-spin {
  to {
    --border-spin: 360deg;
  }
}

@keyframes ambient-drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.55;
  }
  50% {
    transform: translate(2%, -3%) scale(1.06);
    opacity: 0.78;
  }
}

@keyframes frame-shimmer {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.88;
  }
}

@keyframes marquee-x {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes ring-pulse {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(1.03);
  }
}

@keyframes stat-border-pulse {
  0%,
  100% {
    opacity: 0.62;
  }
  50% {
    opacity: 1;
  }
}

@keyframes playful-shine {
  to {
    transform: translateX(120%);
  }
}

@keyframes scroll-hint-line {
  0% {
    transform: scaleY(0.25);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0.2);
    transform-origin: bottom;
  }
}

@keyframes modal-bg-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modal-panel-in {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

:root {
  --bg-deep: #020208;
  --bg-mid: #080a12;
  --panel: rgba(10, 12, 20, 0.82);
  --panel-solid: #0c0e18;
  --text: #f4f4fb;
  --muted: #969bb8;
  --brand: #5eead4;
  --brand-2: #8b5cf6;
  --brand-warm: #fbbf24;
  --ok: #34d399;
  --danger: #fb7185;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
  --glow-mix: rgba(94, 234, 212, 0.48);
  --glow-mix-2: rgba(139, 92, 246, 0.5);
  --surface-radius: 22px;
  --nav-h: 72px;
  /* Synced from real masthead bar height in motion.js (fallback --nav-h). */
  --masthead-h: var(--nav-h);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-playful: cubic-bezier(0.34, 1.56, 0.64, 1);
  --pointer-x: 50%;
  --pointer-y: 38%;
  --scroll-pct: 0;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
}

body[data-theme="light"] {
  --bg-deep: #f4f1eb;
  --bg-mid: #ebe6df;
  --panel: rgba(255, 253, 250, 0.88);
  --panel-solid: #fffdf9;
  --text: #121018;
  --muted: #5a5468;
  --brand: #0d9488;
  --brand-2: #6d28d9;
  --brand-warm: #c2410c;
  --ok: #059669;
  --danger: #be123c;
  --shadow: 0 24px 70px rgba(18, 14, 28, 0.09);
  --glow-mix: rgba(13, 148, 136, 0.38);
  --glow-mix-2: rgba(109, 40, 217, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  letter-spacing: 0.01em;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 100% 70% at 50% -25%, rgba(139, 92, 246, 0.14), transparent 52%),
    linear-gradient(175deg, var(--bg-deep), var(--bg-mid) 50%, #030308 100%);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body[data-theme="light"] {
  background-image:
    radial-gradient(ellipse 90% 55% at 12% 0%, rgba(251, 191, 36, 0.11), transparent 50%),
    linear-gradient(178deg, #faf7f2, #ebe6df);
}

body.modal-lock {
  overflow: hidden;
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  height: 3px;
  width: 100%;
  pointer-events: none;
  background: transparent;
}

.scroll-progress::before {
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(calc(var(--scroll-pct, 0) / 100));
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand-warm));
  box-shadow: 0 0 24px rgba(94, 234, 212, 0.35);
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  margin: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 250;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.16), transparent 68%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.35s ease;
  will-change: transform;
}

body[data-theme="light"] .cursor-glow {
  mix-blend-mode: multiply;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.09), transparent 68%);
}

.site-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.site-backdrop__liquid {
  position: absolute;
  inset: -15%;
  /* Fixed focal point — avoids repainting the full backdrop on every mousemove (major input lag). */
  background: radial-gradient(
    circle max(45vw, 320px) at 50% 42%,
    rgba(94, 234, 212, 0.09),
    transparent 62%
  );
}

body[data-theme="light"] .site-backdrop__liquid {
  background: radial-gradient(
    circle max(50vw, 360px) at 48% 40%,
    rgba(109, 40, 217, 0.06),
    transparent 60%
  );
}

.site-backdrop__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  animation: ambient-drift 22s ease-in-out infinite;
}

.site-backdrop__orb--a {
  width: min(58vw, 560px);
  height: min(58vw, 560px);
  top: -14%;
  left: -10%;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.2), transparent 68%);
}

.site-backdrop__orb--b {
  width: min(48vw, 460px);
  height: min(48vw, 460px);
  top: 38%;
  right: -12%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.26), transparent 64%);
  animation-delay: -7s;
}

.site-backdrop__orb--c {
  width: min(52vw, 500px);
  height: min(52vw, 500px);
  bottom: -20%;
  left: 22%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.07), transparent 72%);
  animation-delay: -14s;
}

body[data-theme="light"] .site-backdrop__orb--a {
  background: radial-gradient(circle, rgba(13, 148, 136, 0.14), transparent 68%);
}

body[data-theme="light"] .site-backdrop__orb--b {
  background: radial-gradient(circle, rgba(109, 40, 217, 0.11), transparent 64%);
}

.site-backdrop__grid {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 72% 62% at 50% 42%, #000 18%, transparent 70%);
}

body[data-theme="light"] .site-backdrop__grid {
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(18, 14, 28, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 14, 28, 0.045) 1px, transparent 1px);
}

.site-backdrop__grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.viewport-frame {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.viewport-frame__corner {
  position: absolute;
  width: min(76px, 11vw);
  height: min(76px, 11vw);
  animation: frame-shimmer 6s ease-in-out infinite;
}

.viewport-frame__corner--tl {
  top: 16px;
  left: 16px;
  border-top: 1px solid rgba(94, 234, 212, 0.42);
  border-left: 1px solid rgba(94, 234, 212, 0.42);
}

.viewport-frame__corner--tr {
  top: 16px;
  right: 16px;
  border-top: 1px solid rgba(139, 92, 246, 0.42);
  border-right: 1px solid rgba(139, 92, 246, 0.42);
  animation-delay: -1.5s;
}

.viewport-frame__corner--bl {
  bottom: 16px;
  left: 16px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.36);
  border-left: 1px solid rgba(139, 92, 246, 0.36);
  animation-delay: -3s;
}

.viewport-frame__corner--br {
  bottom: 16px;
  right: 16px;
  border-bottom: 1px solid rgba(94, 234, 212, 0.4);
  border-right: 1px solid rgba(94, 234, 212, 0.4);
  animation-delay: -4.5s;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  /* No backdrop-filter here: it creates a containing block that clamps
     position:fixed children (mobile drawer) to the header height. */
  background: rgba(4, 6, 12, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body[data-theme="light"] .masthead {
  background: rgba(255, 252, 248, 0.94);
  border-bottom-color: rgba(18, 14, 28, 0.07);
}

.masthead__bar {
  position: relative;
  z-index: 3;
  width: min(1680px, 94vw);
  margin: 0 auto;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
}

.logo.masthead__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}

.masthead__logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(94, 234, 212, 0.18));
}

.masthead__wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

@media (max-width: 600px) {
  .masthead__wordmark {
    display: none;
  }
}

.masthead__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  color: inherit;
}

.masthead__burger-line {
  display: block;
  height: 2px;
  width: 22px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.25s var(--ease-out),
    opacity 0.2s ease;
}

body.nav-is-open .masthead__burger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

body.nav-is-open .masthead__burger-line:nth-child(2) {
  opacity: 0;
}

body.nav-is-open .masthead__burger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.masthead__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
}

.masthead__nav a:not(.btn) {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  position: relative;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.masthead__nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0;
  transform: scaleX(0.4);
  transition:
    opacity 0.25s ease,
    transform 0.35s var(--ease-out);
}

.masthead__nav a:not(.btn):hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.masthead__nav a:not(.btn):hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-link__index {
  display: inline-block;
  margin-right: 0.35rem;
  font-size: 0.62rem;
  opacity: 0.45;
}

.masthead__nav-muted {
  opacity: 0.85;
}

.user-menu {
  position: relative;
  margin-left: 0.35rem;
}

.user-menu > summary {
  list-style: none;
}

.user-menu > summary::-webkit-details-marker {
  display: none;
}

.user-menu__trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.user-menu__avatar {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.user-menu__dot {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #f43f5e;
  border: 2px solid rgba(10, 12, 20, 0.9);
}

.user-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.55rem);
  min-width: 220px;
  padding: 0.4rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(8, 10, 16, 0.96);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.42);
  display: none;
  z-index: 30;
}

.user-menu[open] .user-menu__panel {
  display: block;
}

.user-menu__item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  margin: 0;
}

.masthead__cta {
  margin-left: 0.35rem;
}

.masthead__drawer-backdrop {
  display: none;
}

@media (max-width: 1200px) {
  .masthead__burger {
    display: inline-flex;
  }

  /* Tap surface behind the vertical drawer (below header bar). */
  .masthead__drawer-backdrop {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--masthead-h);
    bottom: 0;
    z-index: 1;
    background: rgba(2, 4, 10, 0.62);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.32s var(--ease-out),
      visibility 0.32s;
  }

  body[data-theme="light"] .masthead__drawer-backdrop {
    background: rgba(18, 14, 28, 0.38);
  }

  body.nav-is-open .masthead__drawer-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Vertical drawer under the masthead — no horizontal scrolling strip. */
  .masthead__nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--masthead-h);
    width: 100%;
    max-width: 100vw;
    max-height: min(
      calc(100dvh - var(--masthead-h) - env(safe-area-inset-bottom, 0px)),
      calc(100vh - var(--masthead-h) - env(safe-area-inset-bottom, 0px))
    );
    box-sizing: border-box;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 0.75rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
    margin: 0;
    background: rgba(4, 6, 12, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0 0 22px 22px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
    transform: translateY(calc(-100% - 18px));
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 2;
    transition:
      transform 0.4s var(--ease-out),
      opacity 0.3s ease,
      visibility 0.4s;
  }

  body[data-theme="light"] .masthead__nav {
    background: rgba(255, 252, 248, 0.98);
    border-top-color: rgba(18, 14, 28, 0.08);
    box-shadow: 0 28px 80px rgba(18, 14, 28, 0.14);
  }

  body.nav-is-open .masthead__nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .masthead__nav a:not(.btn) {
    flex-shrink: 0;
    padding: 1rem 0.65rem;
    font-size: 0.85rem;
    border-radius: 12px;
    border-bottom: none;
  }

  .masthead__nav a:not(.btn) + a:not(.btn) {
    margin-top: 2px;
  }

  .masthead__cta {
    flex-shrink: 0;
    margin: 0.85rem 0 0;
    margin-left: 0;
    justify-content: center;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    min-height: 48px;
    padding: 0.88rem 1.15rem;
  }

  .user-menu {
    width: 100%;
    margin: 0.35rem 0 0;
  }

  .user-menu__trigger {
    width: 100%;
    justify-content: flex-start;
    border-radius: 12px;
    padding: 0.5rem 0.65rem;
    height: auto;
  }

  .user-menu__avatar {
    width: 30px;
    height: 30px;
  }

  .user-menu__panel {
    position: static;
    display: none;
    margin-top: 0.35rem;
    min-width: 0;
    box-shadow: none;
    border-radius: 10px;
  }

  .user-menu__item {
    width: 100%;
  }

  body.nav-drawer-lock {
    overflow: hidden;
    touch-action: none;
  }
}

@media (max-width: 1200px) and (prefers-reduced-motion: reduce) {
  .masthead__nav {
    transition-duration: 0.01ms;
  }

  .masthead__drawer-backdrop {
    transition-duration: 0.01ms;
  }
}

.container.main-stage {
  position: relative;
  z-index: 2;
  width: min(1680px, 94vw);
  margin: 0 auto;
  padding: 1.25rem 0 4rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.95s var(--ease-out);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.flash-stack [data-reveal] {
  transition-duration: 0.55s;
}

.hero-cinematic {
  position: relative;
  min-height: min(100vh, 920px);
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 1.5rem) 0 4rem;
  margin-bottom: 0;
}

.hero-cinematic__layers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-cinematic__mesh {
  position: absolute;
  inset: -10%;
  background: radial-gradient(ellipse 70% 55% at 50% 40%, rgba(139, 92, 246, 0.09), transparent 62%);
}

.hero-cinematic__ring {
  position: absolute;
  border: 1px solid rgba(94, 234, 212, 0.15);
  border-radius: 50%;
  animation: ring-pulse 10s ease-in-out infinite;
}

.hero-cinematic__ring--a {
  width: min(72vw, 620px);
  height: min(72vw, 620px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
}

.hero-cinematic__ring--b {
  width: min(92vw, 820px);
  height: min(92vw, 820px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  border-color: rgba(139, 92, 246, 0.12);
  animation-delay: -4s;
}

.hero-cinematic__inner {
  position: relative;
  z-index: 1;
  width: min(1680px, 94vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.hero-cinematic__copy .page-kicker {
  margin-bottom: 0.65rem;
}

.hero-cinematic__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height:0.98;
  letter-spacing: -0.045em;
}

.hero-cinematic__title-line {
  display: block;
  opacity: 0;
  transform: translateY(42px);
  transition:
    opacity 0.75s var(--ease-out),
    transform 0.9s var(--ease-out);
}

.hero-cinematic__copy.is-visible .hero-cinematic__title-line {
  opacity: 1;
  transform: translateY(0);
}

.hero-cinematic__copy.is-visible .hero-cinematic__title-line:nth-child(1) {
  transition-delay: 0.06s;
}

.hero-cinematic__copy.is-visible .hero-cinematic__title-line:nth-child(2) {
  transition-delay: 0.14s;
}

.hero-cinematic__copy.is-visible .hero-cinematic__title-line:nth-child(3) {
  transition-delay: 0.22s;
}

.hero-cinematic__title-line--accent {
  background: linear-gradient(105deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-cinematic__lede {
  max-width: 48ch;
  color: var(--muted);
  font-size: 1.06rem;
  margin: 0 0 1.5rem;
}

.hero-cinematic__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-cinematic__brand {
  display: grid;
  gap: 1.25rem;
  justify-items: center;
}

.hero-cinematic__logo-board {
  padding: 1.25rem;
  border-radius: calc(var(--surface-radius) + 6px);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

body[data-theme="light"] .hero-cinematic__logo-board {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(18, 14, 28, 0.08);
}

.hero-logo--screen img {
  display: block;
  max-height: clamp(120px, min(28vw, 34vh), 280px);
  width: auto;
  max-width: min(100%, 380px);
  margin: 0 auto;
  object-fit: contain;
}

.hero--home .hero-cinematic__stats {
  width: 100%;
  max-width: 380px;
}

.scroll-hint {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.scroll-hint__line {
  width: 1px;
  height: 52px;
  background: linear-gradient(180deg, var(--brand), transparent);
  animation: scroll-hint-line 2.4s ease-in-out infinite;
}

.hero--contact {
  position: relative;
  min-height: auto;
  padding: calc(var(--nav-h) + 2rem) 0 3.5rem;
  overflow: hidden;
}

.contact-hero__inner {
  position: relative;
  z-index: 1;
  width: min(920px, 94vw);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.contact-hero__head {
  text-align: center;
}

.contact-hero__title {
  margin: 0.35rem 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.04em;
}

.contact-hero__lede {
  max-width: 52ch;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.55;
}

.contact-hero__lede a {
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid rgba(94, 234, 212, 0.35);
}

.contact-hero__lede a:hover {
  border-bottom-color: var(--brand);
}

.contact-card {
  margin-bottom: 0;
}

.contact-form {
  position: relative;
  display: grid;
  gap: 1.1rem;
}

.contact-form__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-form__field {
  display: grid;
  gap: 0.35rem;
}

.contact-form__field span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.72rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(94, 234, 212, 0.45);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.12);
}

body[data-theme="light"] .contact-form input,
body[data-theme="light"] .contact-form textarea {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(18, 14, 28, 0.12);
}

.contact-form .btn {
  justify-self: start;
  margin-top: 0.25rem;
}

.page-kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0;
  transition:
    letter-spacing 0.45s var(--ease-playful),
    color 0.35s ease,
    transform 0.35s var(--ease-playful);
}

.hero-cinematic__copy:hover .page-kicker,
.panel-head:hover .page-kicker {
  letter-spacing: 0.26em;
  transform: translateX(3px);
}

.page-kicker--alt {
  color: var(--brand-2);
}

.marquee {
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.25);
  padding: 0.55rem 0;
  margin-bottom: 1.5rem;
}

body[data-theme="light"] .marquee {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(18, 14, 28, 0.06);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-x 42s linear infinite;
}

.marquee__track span {
  flex-shrink: 0;
  padding-right: 3rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-disclaimer {
  position: relative;
  isolation: isolate;
  border-radius: var(--surface-radius);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.75rem;
  background: linear-gradient(135deg, rgba(14, 16, 28, 0.94), rgba(8, 10, 18, 0.92));
  box-shadow: var(--shadow);
}

.home-disclaimer::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--border-spin),
    rgba(94, 234, 212, 0.45),
    rgba(139, 92, 246, 0.35),
    rgba(251, 191, 36, 0.25),
    rgba(94, 234, 212, 0.45)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
  animation: border-spin 16s linear infinite;
}

.home-disclaimer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.home-disclaimer-badge {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.38rem 0.58rem;
  border-radius: 8px;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.home-disclaimer-text {
  flex: 1;
  min-width: min(100%, 260px);
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
}

.home-disclaimer-text strong {
  color: #fff;
}

body[data-theme="light"] .home-disclaimer {
  background: linear-gradient(135deg, rgba(255, 253, 250, 0.97), rgba(240, 236, 230, 0.96));
}

body[data-theme="light"] .home-disclaimer-text strong {
  color: var(--text);
}

.home-about-snippet {
  margin-bottom: 1.25rem;
}

.home-about-snippet__inner {
  width: min(1680px, 94vw);
  margin: 0 auto;
  padding: 1.25rem 1.35rem;
  border-radius: var(--surface-radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.home-about-snippet__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home-about-snippet__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

.home-about-snippet__text strong {
  color: var(--text);
}

body[data-theme="light"] .home-about-snippet__inner {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(18, 14, 28, 0.08);
}

.site-footer {
  position: relative;
  z-index: 2;
  margin-top: 2rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(4, 6, 12, 0.5);
}

.site-footer__inner {
  width: min(1680px, 94vw);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  text-align: center;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.25rem;
}

.site-footer__nav a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

.site-footer__nav a:hover {
  color: var(--brand);
}

.site-footer__tagline {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

.site-footer__copy {
  margin: 0;
  font-size: 0.78rem;
}

body[data-theme="light"] .site-footer {
  background: rgba(255, 252, 248, 0.88);
  border-top-color: rgba(18, 14, 28, 0.07);
}

.split-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.split-panels__panel {
  padding: 1.25rem;
  border-radius: var(--surface-radius);
  background: var(--panel);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

body[data-theme="light"] .split-panels__panel {
  border-color: rgba(18, 14, 28, 0.07);
}

.split-panels__panel--servers {
  border-color: rgba(94, 234, 212, 0.12);
}

.panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel-head__title {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  letter-spacing: -0.03em;
}

.page-hero {
  margin-bottom: 1.5rem;
  padding: 1.5rem 0 1rem;
}

.page-hero--compact {
  padding: 0.5rem 0 0.25rem;
}

.page-hero__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.5rem;
  align-items: end;
  padding: 1.35rem 1.5rem;
  border-radius: var(--surface-radius);
  background: var(--panel);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
}

body[data-theme="light"] .page-hero__grid {
  border-color: rgba(18, 14, 28, 0.07);
}

.page-hero--servers .page-hero__grid {
  border-color: rgba(94, 234, 212, 0.14);
}

.page-hero__title {
  margin: 0.2rem 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.page-hero__lede {
  max-width: 56ch;
  margin: 0 0 1rem;
  font-size: 1.02rem;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.page-hero__stats {
  justify-self: end;
  min-width: min(100%, 300px);
}

.catalog-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(1.35rem, 3vw, 2.25rem);
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.sticky-filters {
  position: sticky;
  top: calc(var(--nav-h) + 6px);
  z-index: 25;
  padding: 1.05rem 1.2rem;
  margin-bottom: 0;
  border-radius: calc(var(--surface-radius) - 2px);
  background: rgba(6, 8, 14, 0.88);
  backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(94, 234, 212, 0.04);
}

.catalog-toolbar--servers {
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(94, 234, 212, 0.06);
}

body[data-theme="light"] .sticky-filters {
  background: rgba(255, 253, 250, 0.94);
  border-color: rgba(18, 14, 28, 0.09);
  box-shadow: 0 10px 36px rgba(18, 14, 28, 0.07);
}

.listing-grid--catalog[data-reveal]:not(.is-visible) {
  transform: translateY(14px);
}

.listing-grid--catalog[data-reveal].is-visible {
  transform: translateY(0);
}

.filters__form {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 0.65rem;
}

.filters__form--servers {
  grid-template-columns: 2fr 1fr auto;
}

.filters__tags {
  margin-top: 0.85rem;
}

.filters__tags .tag-chip {
  transition:
    transform 0.22s var(--ease-out),
    box-shadow 0.22s ease,
    border-color 0.2s ease;
}

.filters__tags .tag-chip:hover {
  transform: translateY(-3px) rotate(-2deg) scale(1.03);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

body[data-theme="light"] .filters__tags .tag-chip:hover {
  box-shadow: 0 6px 18px rgba(18, 14, 28, 0.08);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.stats div {
  position: relative;
  padding: 0.85rem 0.5rem;
  text-align: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  cursor: default;
  transition:
    transform 0.4s var(--ease-playful),
    box-shadow 0.35s ease,
    border-color 0.3s ease;
}

.stats div:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(94, 234, 212, 0.28);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.35),
    0 0 36px rgba(139, 92, 246, 0.12);
}

.stats div::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.35), transparent 45%, rgba(139, 92, 246, 0.25));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: stat-border-pulse 5s ease-in-out infinite;
}

.stats div:nth-child(2)::before {
  animation-duration: 5.8s;
  animation-delay: -1.2s;
}

.stats div:nth-child(3)::before {
  animation-duration: 6.4s;
  animation-delay: -2.4s;
}

.stats strong {
  font-family: var(--font-display);
  font-size: 1.42rem;
  display: block;
}

.stats span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.btn {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1.28rem;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  background-size: 160% 160%;
  color: #050508;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow: 0 6px 28px rgba(139, 92, 246, 0.28);
  transition:
    transform 0.28s var(--ease-playful),
    box-shadow 0.28s ease,
    filter 0.28s ease,
    background-position 0.45s var(--ease-out);
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.06) saturate(1.08);
  background-position: 90% 50%;
  box-shadow:
    0 14px 44px rgba(94, 234, 212, 0.22),
    0 8px 32px rgba(139, 92, 246, 0.35);
}

.btn:active {
  transform: translateY(-1px) scale(0.99);
}

.btn.btn-magnetic {
  --mag-x: 0px;
  --mag-y: 0px;
}

.btn.btn-magnetic:hover {
  transform: translate(var(--mag-x), var(--mag-y)) translateY(-3px) scale(1.02);
}

.btn.btn-magnetic:active {
  transform: translate(var(--mag-x), var(--mag-y)) translateY(-1px) scale(0.99);
}

.btn:not(.btn-ghost)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 36%,
    rgba(255, 255, 255, 0.22) 48%,
    transparent 62%
  );
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
}

.btn:not(.btn-ghost):hover::before {
  opacity: 1;
  animation: playful-shine 0.85s var(--ease-out) forwards;
}

.btn-sm {
  padding: 0.48rem 0.85rem;
  font-size: 0.68rem;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.btn-ghost:hover {
  border-color: rgba(94, 234, 212, 0.45);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.btn-ghost:active {
  transform: translateY(0);
}

.btn.btn-ghost.btn-magnetic:hover {
  transform: translate(var(--mag-x), var(--mag-y)) translateY(-2px);
}

.btn.btn-ghost.btn-magnetic:active {
  transform: translate(var(--mag-x), var(--mag-y)) translateY(0);
}

body[data-theme="light"] .btn {
  color: #fff;
}

body[data-theme="light"] .btn-ghost {
  color: var(--text);
  border-color: rgba(18, 14, 28, 0.14);
}

.btn-discord {
  background: linear-gradient(135deg, #5865f2, #7289ff);
  color: #fff;
  box-shadow: 0 6px 28px rgba(88, 101, 242, 0.38);
}

.hero,
.new-post,
.profile-card {
  position: relative;
  isolation: isolate;
  border-radius: var(--surface-radius);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.15rem;
  background: var(--panel);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.hero::before,
.new-post::before,
.profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--border-spin),
    transparent 40deg,
    var(--glow-mix) 120deg,
    var(--glow-mix-2) 200deg,
    transparent 280deg
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
  animation: border-spin 18s linear infinite;
}

.hero > *,
.new-post > *,
.profile-card > * {
  position: relative;
  z-index: 1;
}

.profile-layout {
  display: grid;
  gap: 1.25rem;
}

.profile-spotlight .profile-top {
  margin-top: -2.25rem;
}

.profile-spotlight__meta h1 {
  margin: 0.15rem 0;
  font-family: var(--font-display);
}

.profile-form-card__title {
  margin-top: 0;
  font-family: var(--font-display);
}

.admin-section__heading {
  font-family: var(--font-display);
  margin-top: 0;
}

.admin-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

body[data-theme="light"] .admin-row {
  border-bottom-color: rgba(18, 14, 28, 0.08);
}

.admin-row__main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.admin-row__title {
  font-weight: 600;
}

.admin-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
  align-items: center;
}

.admin-row__actions form {
  display: inline;
}

.site-announcement {
  position: relative;
  z-index: 120;
  padding: 0.65rem 1.35rem;
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.45;
  background: linear-gradient(92deg, rgba(94, 234, 212, 0.14), rgba(139, 92, 246, 0.16));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-theme="light"] .site-announcement {
  background: linear-gradient(92deg, rgba(13, 148, 136, 0.12), rgba(109, 40, 217, 0.09));
  border-bottom-color: rgba(18, 14, 28, 0.08);
}

.admin-hero-actions {
  flex-wrap: wrap;
}

.admin-dash {
  margin-bottom: 1.25rem;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.admin-stat-card {
  padding: 1rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-stat-card--accent {
  border-color: rgba(251, 191, 36, 0.38);
  background: rgba(251, 191, 36, 0.07);
}

.admin-stat-card__value {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.admin-stat-card__label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.admin-subpanel__title {
  margin: 0 0 0.65rem;
  font-size: 1.02rem;
  font-family: var(--font-display);
}

.admin-mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.admin-mini-list__row {
  display: grid;
  gap: 0.12rem;
  font-size: 0.87rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-bullet-list {
  margin: 0;
  padding-left: 1.15rem;
  line-height: 1.55;
  font-size: 0.9rem;
}

.admin-bullet-list li {
  margin-bottom: 0.35rem;
}

.admin-settings-form textarea {
  max-width: 100%;
}

.admin-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  grid-column: 1 / -1;
}

.admin-checkbox-row input {
  width: auto;
  margin-top: 0.28rem;
}

.admin-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 1rem;
}

.admin-filter-bar__search {
  flex: 1;
  min-width: 220px;
}

.admin-row--tall {
  grid-template-columns: 1fr;
  align-items: start;
}

.admin-row--post {
  grid-template-columns: 1fr auto;
}

.admin-row__stack {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: flex-end;
}

.admin-inline-form {
  display: inline;
}

.admin-ban-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  width: 100%;
  max-width: 540px;
}

.admin-ban-form__input {
  flex: 1;
  min-width: 200px;
}

.admin-ban-note {
  font-size: 0.87rem;
  color: var(--danger);
}

.admin-row__actions--wrap {
  flex-direction: column;
  align-items: flex-end;
}

.admin-pill {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.48rem;
  border-radius: 6px;
  font-size: 0.6rem;
  font-family: var(--font-mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  vertical-align: middle;
}

.admin-pill--warn {
  background: rgba(251, 191, 36, 0.22);
  color: var(--brand-warm);
}

.admin-row--comment {
  grid-template-columns: 1fr auto;
  align-items: start;
}

.admin-comment-body {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.admin-tag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.65rem;
}

.admin-tag-cell {
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 0.35rem;
}

.admin-tag-name {
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

.card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  isolation: isolate;
  border-radius: 20px;
  border: none;
  background: linear-gradient(168deg, rgba(18, 20, 34, 0.96), rgba(8, 10, 17, 0.93));
  overflow: hidden;
  transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateZ(0);
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--border-spin),
    transparent,
    rgba(94, 234, 212, 0.5),
    rgba(139, 92, 246, 0.65),
    rgba(251, 191, 36, 0.35),
    transparent
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 4;
  animation: border-spin 9s linear infinite;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 90% 70% at 10% 0%, rgba(139, 92, 246, 0.09), transparent 58%);
  pointer-events: none;
  z-index: 0;
}

.card:hover {
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.48),
    0 0 50px rgba(94, 234, 212, 0.06);
}

.card--clickable:not(.card--empty).card--pressed {
  transition:
    transform 0.12s ease,
    filter 0.12s ease,
    box-shadow 0.12s ease;
  filter: brightness(0.93) saturate(1.12);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(94, 234, 212, 0.15);
}

.card--clickable:not(.card--empty) {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.card--clickable:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}

.card--clickable .card-media {
  transition: transform 0.65s var(--ease-out);
}

.card--clickable:hover .card-media {
  transform: scale(1.055);
}

.card--clickable:hover::after {
  background: radial-gradient(ellipse 110% 85% at 25% 0%, rgba(139, 92, 246, 0.16), transparent 58%);
}

.card--clickable .card-content::after {
  content: "View listing →";
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.45;
  padding-top: 0.15rem;
  transition:
    opacity 0.3s ease,
    color 0.3s ease,
    transform 0.35s var(--ease-out);
}

.card--clickable:hover .card-content::after {
  opacity: 1;
  color: var(--brand);
  transform: translateX(5px);
}

.card--clickable .card-content:has(.card-actions--footer)::after {
  display: none;
}

.card-actions--footer {
  margin-top: 0.25rem;
  justify-content: flex-end;
}

.card__edit {
  position: relative;
  z-index: 6;
}

.card--server::before {
  animation-duration: 7s;
}

body[data-theme="light"] .card {
  background: linear-gradient(168deg, rgba(255, 253, 250, 0.98), rgba(242, 237, 232, 0.96));
}

.card-media {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #06070f;
}

.card-content {
  position: relative;
  z-index: 1;
  padding: 1rem;
  display: grid;
  gap: 0.55rem;
}

.card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  min-height: 3rem;
}

.card--empty p {
  min-height: 0;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.05rem;
}

.listing-grid--catalog {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.listing-grid-single {
  grid-template-columns: 1fr;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pill {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.22rem 0.58rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    transform 0.35s var(--ease-playful),
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.card:hover .pill {
  transform: translateY(-2px) rotate(-1.2deg);
  border-color: rgba(94, 234, 212, 0.28);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.card:hover .pill.price {
  transform: translateY(-2px) rotate(1deg);
}

.pill.price {
  color: var(--ok);
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.22);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag-chip,
.tag-mini span {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    transform 0.3s var(--ease-playful),
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.25s ease;
}

.tag-mini span {
  display: inline-block;
}

.tag-mini span:hover {
  transform: translateY(-3px) scale(1.04) rotate(-2deg);
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

a.tag-chip:hover {
  border-color: rgba(94, 234, 212, 0.35);
}

.tag-chip.active {
  background: rgba(139, 92, 246, 0.28);
  border-color: rgba(139, 92, 246, 0.45);
}

body[data-theme="light"] .tag-chip,
body[data-theme="light"] .tag-mini span {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(18, 14, 28, 0.08);
}

.create-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.create-choice-card {
  position: relative;
  isolation: isolate;
  border-radius: 18px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(165deg, rgba(18, 22, 38, 0.94), rgba(8, 10, 18, 0.94));
  display: grid;
  gap: 0.7rem;
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s ease;
}

.create-choice-card h2,
.create-choice-card h3,
.create-choice-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.28rem;
}

.create-choice-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--border-spin), rgba(139, 92, 246, 0.25), rgba(94, 234, 212, 0.85), rgba(139, 92, 246, 0.35));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 0;
  animation: border-spin 10s linear infinite;
}

.create-choice-card > * {
  position: relative;
  z-index: 1;
}

.create-choice-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.create-choice-card-server::before {
  animation-duration: 7s;
}

.create-choice-card-server {
  background: linear-gradient(165deg, rgba(10, 30, 38, 0.94), rgba(6, 14, 22, 0.94));
}

body[data-theme="light"] .create-choice-card {
  background: linear-gradient(165deg, rgba(255, 253, 250, 0.97), rgba(236, 232, 226, 0.95));
}

.create-post-modal-panel {
  inset: 14vh 12vw;
  max-width: 920px;
  margin: 0 auto;
}

.modal-panel__title {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
}

.modal-panel__lede {
  margin-bottom: 1.25rem;
}

.modal-panel--narrow {
  max-width: 720px;
  margin: 0 auto;
}

.grid-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.grid-form textarea,
.grid-form .btn,
.grid-form label {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 8, 14, 0.88);
  color: var(--text);
  padding: 0.78rem 0.88rem;
  border-radius: 12px;
  font-family: inherit;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(94, 234, 212, 0.45);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.12);
}

body[data-theme="light"] input,
body[data-theme="light"] select,
body[data-theme="light"] textarea {
  background: var(--panel-solid);
  border-color: rgba(18, 14, 28, 0.12);
}

textarea {
  resize: vertical;
}

.muted {
  color: var(--muted);
}

.form-hint {
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
  max-width: 72ch;
}

.req-flag {
  font-weight: 700;
  color: var(--brand);
  font-size: 0.82em;
}

.opt-flag {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.82em;
}

.editor-sync-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.flash {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  margin-bottom: 0.75rem;
}

.flash-success {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.42);
}

.flash-error {
  background: rgba(251, 113, 133, 0.12);
  border: 1px solid rgba(251, 113, 133, 0.42);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 160;
}

.modal.hidden {
  display: none !important;
}

.modal.modal--open:not(.hidden) .modal-backdrop {
  animation: modal-bg-in 0.45s var(--ease-out) forwards;
}

.modal.modal--open:not(.hidden) .modal-panel {
  animation: modal-panel-in 0.55s var(--ease-out) forwards;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 2, 8, 0.76);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: absolute;
  inset: 4vh 4vw;
  border-radius: var(--surface-radius);
  padding: 1.2rem;
  overflow-y: auto;
  background: linear-gradient(168deg, rgba(12, 14, 24, 0.98), rgba(8, 10, 18, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.modal-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--border-spin), rgba(94, 234, 212, 0.35), rgba(139, 92, 246, 0.55), rgba(94, 234, 212, 0.35));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
  animation: border-spin 14s linear infinite;
}

.modal-panel > * {
  position: relative;
  z-index: 1;
}

body[data-theme="light"] .modal-panel {
  background: linear-gradient(168deg, rgba(255, 253, 250, 0.98), rgba(248, 244, 239, 0.98));
}

.modal-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

.modal-layout {
  display: grid;
  gap: 1rem;
}

.modal-main {
  display: grid;
  gap: 0.85rem;
}

.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #000;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.video-tab {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
}

.video-tab.active {
  background: rgba(139, 92, 246, 0.35);
  border-color: rgba(139, 92, 246, 0.55);
}

.post-body {
  color: #cfd5ee;
  white-space: pre-wrap;
  line-height: 1.55;
}

body[data-theme="light"] .post-body {
  color: #3d3648;
}

.post-body p {
  margin: 0 0 0.55rem;
}

.modal-interactions {
  margin-top: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.upload-limit-note {
  font-size: 0.82em;
  font-weight: 600;
  color: var(--muted);
}

.post-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.55rem;
}

.gallery-thumb {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 11px;
  overflow: hidden;
  cursor: zoom-in;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.gallery-thumb:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 234, 212, 0.45);
}

.gallery-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  vertical-align: middle;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
}

.gallery-lightbox.hidden {
  display: none !important;
}

.gallery-lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 2, 8, 0.9);
  cursor: zoom-out;
}

.gallery-lightbox-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  pointer-events: none;
}

.gallery-lightbox-img {
  pointer-events: auto;
  max-width: min(96vw, 1400px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 12px;
}

.gallery-lightbox-close,
.gallery-lightbox-prev,
.gallery-lightbox-next {
  pointer-events: auto;
  position: absolute;
  border-radius: 999px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(18, 22, 36, 0.94);
  color: #fff;
  font-size: 1.45rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox-close {
  top: 1rem;
  right: 1rem;
}

.gallery-lightbox-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-lightbox-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.comment {
  padding: 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
}

.editor-toolbar {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.editor-toolbar button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 9px;
  padding: 0.38rem 0.62rem;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.html-editor {
  grid-column: 1 / -1;
  min-height: 220px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 8, 14, 0.88);
  color: var(--text);
  padding: 0.78rem;
}

body[data-theme="light"] .html-editor {
  background: var(--panel-solid);
}

.profile-banner {
  height: 172px;
  border-radius: calc(var(--surface-radius) - 4px);
  border-width: 2px;
  border-style: solid;
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

hr {
  border: 0;
  height: 1px;
  margin: 1rem 0;
  background: linear-gradient(90deg, transparent, rgba(94, 234, 212, 0.22), rgba(139, 92, 246, 0.28), transparent);
}

.hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .hero-cinematic__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-cinematic__copy {
    order: 2;
  }

  .hero-cinematic__brand {
    order: 1;
  }

  .hero-cinematic__lede {
    margin-inline: auto;
  }

  .hero-cinematic__actions {
    justify-content: center;
  }

  .page-hero__grid {
    grid-template-columns: 1fr;
  }

  .page-hero__stats {
    justify-self: stretch;
  }

  .split-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .filters__form,
  .filters__form--servers,
  .filters__form--market-extended {
    grid-template-columns: 1fr;
  }

  .grid-form {
    grid-template-columns: 1fr;
  }

  .create-choice-grid {
    grid-template-columns: 1fr;
  }

  .admin-split {
    grid-template-columns: 1fr;
  }

  .admin-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .admin-row__actions {
    justify-content: flex-start;
  }

  .admin-row__stack {
    align-items: stretch;
  }

  .modal-panel {
    inset: 2vh 3vw;
  }

  .create-post-modal-panel {
    inset: 10vh 5vw;
  }
}

/* Cookie consent */
.cookie-consent {
  position: fixed;
  z-index: 12000;
  inset-inline: 1rem;
  bottom: 1rem;
  max-width: min(42rem, calc(100% - 2rem));
  margin-inline: auto;
  padding: 0;
}

.cookie-consent__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: rgba(12, 14, 22, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
}

.cookie-consent__text {
  margin: 0;
  flex: 1 1 220px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(232, 234, 248, 0.92);
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

/* Publish overlay (multipart uploads) */
.publish-overlay {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(6, 8, 14, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}

.publish-overlay--visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.publish-overlay__card {
  min-width: min(22rem, 100%);
  padding: 1.75rem 1.5rem;
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(26, 30, 46, 0.98), rgba(14, 16, 28, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.publish-overlay__title {
  margin: 0 0 1rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.publish-overlay__track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.publish-overlay__fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7c5cff, #4fd1c5);
  transition: width 0.15s ease-out;
}

.publish-overlay__fill--indeterminate {
  width: 40% !important;
  animation: publish-bar-scan 1.1s ease-in-out infinite alternate;
}

@keyframes publish-bar-scan {
  from {
    transform: translateX(-40%);
  }

  to {
    transform: translateX(220%);
  }
}

.publish-overlay__pct {
  margin: 0.65rem 0 0;
  font-variant-numeric: tabular-nums;
  min-height: 1.25em;
}

.publish-overlay__hint {
  margin: 0.35rem 0 0;
}

/* Masthead unread badge */
.masthead__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  margin-left: 0.35rem;
  padding: 0 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  border-radius: 999px;
  background: #f43f5e;
  color: #fff;
  vertical-align: middle;
}

/* Homepage hero search */
.hero-global-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.45rem;
  border-radius: 14px;
  background: rgba(8, 10, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-global-search input[type="search"] {
  flex: 1 1 180px;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: inherit;
}

.hero-global-search .btn {
  align-self: stretch;
}

/* Extended marketplace filters */
.filters__form--market-extended {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.filters__check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  white-space: nowrap;
}

.filters__save-row {
  margin: 0.5rem 0 0;
}

/* Notifications page */
.notification-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.notification-list__item {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
}

.notification-list__item--unread {
  border-color: rgba(124, 92, 255, 0.35);
  background: rgba(124, 92, 255, 0.06);
}

.notification-list__item p {
  margin: 0;
}

/* Rules TOC */
.rules-toc {
  margin-bottom: 1.5rem;
}

.rules-toc__list {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  line-height: 1.7;
}

.rules-body h2 {
  scroll-margin-top: 6rem;
}

/* Server meta (listing + modal) */
.server-meta-dl {
  display: grid;
  grid-template-columns: minmax(8rem, 11rem) 1fr;
  gap: 0.5rem 1.25rem;
  margin: 0;
}

.server-meta-dl dt {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(232, 234, 248, 0.65);
}

.server-meta-dl dd {
  margin: 0;
}

.post-server-meta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.post-server-meta h3 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .server-meta-dl {
    grid-template-columns: 1fr;
  }

  .server-meta-dl dt {
    margin-top: 0.35rem;
  }

  .server-meta-dl dt:first-child {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .marquee__track {
    animation: none;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
