:root {
  --bg-0: rgba(8, 10, 16, 0.82);
  --bg-1: #080a10;
  --bg-2: rgba(18, 22, 33, 0.78);
  --bg-3: rgba(28, 34, 50, 0.9);
  --bg-4: rgba(40, 48, 66, 0.96);
  --bg-solid: #0e121c;
  --bg-hover: rgba(46, 55, 74, 0.96);
  --border: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.05);
  --text: #eceff4;
  --text-dim: #a3adc2;
  --text-mute: #606a80;
  --green: #3dffc4;
  --green-dim: #28e8a8;
  --green-soft: rgba(61, 255, 196, 0.1);
  --green-glow: rgba(61, 255, 196, 0.19);
  --amber: #ffc857;
  --amber-soft: rgba(255, 96, 144, 0.1);
  --blue: #7ab4ff;
  --orange: #ffb84d;
  --red: #ff5e7a;
  --purple: #b89aff;
  --cyan: #18e5ff;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --shadow: 0 18px 56px rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.32);
  --glass: blur(22px) saturate(150%);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Inter', sans-serif;
  --scroll-size: 11px;
  --scroll-pad: 2px;
  --scroll-thumb: rgba(255, 255, 255, 0.15);
  --scroll-thumb-hover: rgba(61, 255, 196, 0.5);
  --scroll-thumb-active: rgba(61, 255, 196, 0.7);
  --scroll-track: rgba(255, 255, 255, 0.03);
  /* Aliases used by existing website markup */
  --bg: var(--bg-1);
  --dim: var(--text-dim);
  --mute: var(--text-mute);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}

*::-webkit-scrollbar {
  width: var(--scroll-size);
  height: var(--scroll-size);
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background-color: var(--scroll-thumb);
  border: var(--scroll-pad) solid transparent;
  background-clip: padding-box;
  border-radius: 9999px;
}
*::-webkit-scrollbar-thumb:hover {
  background-color: var(--scroll-thumb-hover);
}

html,
body {
  min-height: 100%;
  background: var(--bg-1);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  isolation: isolate;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: var(--purple);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ========== Video + synthwave fallback ========== */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, #020010 0%, #0a0028 15%, #1a0040 30%, #380058 50%, #600040 70%, #901028 88%, #d04018 100%);
}

.bg-fallback::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(2px 2px at 10% 15%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 25% 8%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 40% 22%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 55% 12%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(2px 2px at 70% 18%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 85% 6%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 15% 30%, rgba(255, 200, 255, 0.7), transparent),
    radial-gradient(2px 2px at 48% 35%, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1.5px 1.5px at 82% 42%, rgba(255, 200, 255, 0.5), transparent);
  animation: starTwinkle 3s ease-in-out infinite alternate;
  opacity: 0.9;
}

.bg-fallback::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 22vh;
  transform: translateX(-50%);
  width: 380px;
  height: 190px;
  border-radius: 0 0 190px 190px;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 14px,
      rgba(0, 0, 0, 0.15) 14px,
      rgba(0, 0, 0, 0.15) 15px
    ),
    linear-gradient(180deg, #ffe060 0%, #ffc030 8%, #ff9020 20%, #ff6020 35%, #e03010 50%, #c02010 65%, #901010 80%, #600808 100%);
  border-top: 2px solid rgba(255, 200, 80, 0.6);
  box-shadow:
    0 0 60px rgba(255, 120, 30, 0.5),
    0 0 120px rgba(255, 60, 10, 0.3),
    0 0 200px rgba(255, 20, 0, 0.15);
  animation: sunGlow 3s ease-in-out infinite alternate;
}

.bg-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  filter: brightness(0.7) saturate(1.2);
  opacity: 1;
}

.bg-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 80% 70% at 50% 20%, transparent 20%, rgba(4, 2, 12, 0.35) 70%, rgba(4, 2, 12, 0.72) 100%),
    linear-gradient(180deg, rgba(4, 2, 12, 0.28) 0%, transparent 28%, transparent 55%, rgba(4, 2, 12, 0.75) 100%);
}

/* Legacy class from older markup */
.bg {
  display: none;
}

.top,
.wrap,
.foot {
  position: relative;
  z-index: 1;
}

/* ========== Header ========== */
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-0);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 6px 0 48px rgba(0, 0, 0, 0.3);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.brand:hover {
  text-decoration: none;
}

.mark,
.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  color: #04140a;
  background: #1e2530;
  object-fit: cover;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 40px rgba(179, 136, 255, 0.3),
    0 0 80px rgba(24, 229, 255, 0.1);
  animation: brandPulse 5s ease-in-out infinite;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text strong {
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.035em;
}
.brand-text small {
  color: var(--text-mute);
  font-size: 11px;
  font-weight: 500;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
}
.nav a {
  display: inline-flex;
  align-items: center;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 13px;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
}
.nav a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--purple);
  border-radius: 0 3px 3px 0;
  transform: scaleY(0);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
  transform: translateY(-1px);
}
.nav a:hover::before {
  transform: scaleY(0.5);
}
.nav a.active {
  background: linear-gradient(135deg, rgba(179, 136, 255, 0.1), rgba(24, 229, 255, 0.04));
  color: var(--purple);
  font-weight: 650;
  border-color: rgba(179, 136, 255, 0.25);
  box-shadow: 0 0 30px rgba(179, 136, 255, 0.1) inset;
  transform: none;
}
.nav a.active::before {
  transform: scaleY(1);
}

.auth-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.who {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
}
.who:hover {
  color: var(--purple);
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 20px 72px;
  animation: pageEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.foot {
  border-top: 1px solid rgba(179, 136, 255, 0.08);
  padding: 28px 20px 36px;
  background: var(--bg-0);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
}
.foot-inner {
  max-width: 1080px;
  margin: 0 auto 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.foot-links a {
  color: var(--text-dim);
  font-size: 13px;
}
.foot-links a:hover {
  color: var(--purple);
}
.copy {
  max-width: 1080px;
  margin: 0 auto;
  font-size: 12px;
}

/* ========== Background music control ========== */
.bgm-embed {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}
.bgm-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 44px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(179, 136, 255, 0.28);
  background: rgba(12, 14, 22, 0.78);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4), 0 0 24px rgba(179, 136, 255, 0.12);
  cursor: pointer;
}
.bgm-btn:hover {
  border-color: rgba(24, 229, 255, 0.4);
  color: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 28px rgba(24, 229, 255, 0.16);
}
.bgm-btn.is-on {
  border-color: rgba(61, 255, 196, 0.4);
  color: var(--green);
}
.bgm-btn i {
  font-size: 12px;
  width: 12px;
  text-align: center;
}

@media (max-width: 720px) {
  .bgm-btn {
    right: 12px;
    bottom: 12px;
    padding: 0 10px;
  }
}

h1 {
  font-size: clamp(1.85rem, 3.4vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.15;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text) 20%, var(--purple) 60%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2 {
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.muted,
.hint {
  color: var(--text-dim);
}
.hint {
  font-size: 13px;
}
.kicker {
  color: var(--purple);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.hero {
  display: grid;
  gap: 22px;
  margin-bottom: 32px;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: var(--bg-2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft), 0 0 80px rgba(179, 136, 255, 0.06);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(179, 136, 255, 0.16), rgba(24, 229, 255, 0.05) 50%, transparent 70%);
  pointer-events: none;
  animation: heroGlowPulse 3s ease-in-out infinite alternate;
}
.hero > * {
  position: relative;
  z-index: 1;
}
.hero p {
  color: var(--text-dim);
  max-width: 52ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.soon-pill {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 13px;
  border: 1px solid rgba(255, 200, 87, 0.35);
  background: rgba(255, 200, 87, 0.1);
  color: var(--amber);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.card,
.panel {
  background: var(--bg-2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.card h2,
.panel h2 {
  margin-bottom: 10px;
}
.card:hover {
  border-color: rgba(179, 136, 255, 0.4);
  transform: translateY(-4px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 0 2px rgba(179, 136, 255, 0.15),
    0 0 40px rgba(179, 136, 255, 0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 13px;
  font-weight: 650;
  font-size: 13px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  color: inherit;
  background: transparent;
  white-space: nowrap;
  user-select: none;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  transition: transform 0.15s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn:active:not(:disabled) {
  transform: scale(0.97);
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple) 0%, #7c50e0 40%, var(--cyan) 100%);
  background-size: 200% 100%;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 4px 24px rgba(179, 136, 255, 0.3);
  animation: btnGradientShift 6s ease infinite;
}
.btn-primary:hover:not(:disabled) {
  filter: brightness(1.06);
  box-shadow: 0 8px 36px rgba(179, 136, 255, 0.45), 0 0 60px rgba(24, 229, 255, 0.1);
  transform: translateY(-2px);
}
.btn-primary:active:not(:disabled) {
  transform: scale(0.96) translateY(0);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  color: var(--text) !important;
}
.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.14);
}
.btn-ghost {
  color: var(--text-dim) !important;
  border-color: transparent;
}
.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text) !important;
}
.btn-danger {
  background: rgba(255, 94, 122, 0.1);
  border-color: rgba(255, 94, 122, 0.25);
  color: var(--red) !important;
}
.btn-danger:hover:not(:disabled) {
  background: rgba(255, 94, 122, 0.18);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.list-item {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-decoration: none !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, background 0.2s ease, box-shadow 0.25s ease;
}
.list-item:hover {
  border-color: rgba(179, 136, 255, 0.4);
  background: linear-gradient(135deg, rgba(179, 136, 255, 0.08), rgba(24, 229, 255, 0.03));
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}
.list-item .title {
  font-weight: 700;
  margin-bottom: 4px;
}
.list-item .meta {
  font-size: 12px;
  color: var(--text-mute);
}
.list-item .summary {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 6px;
}

/* News byline — founder uses launcher purple */
.news-byline:not(.news-byline-founder),
.news-author:not(.is-founder) {
  display: inline;
  font-weight: 650;
  color: var(--text-dim);
  vertical-align: baseline;
}
.news-byline:not(.news-byline-founder) .news-byline-name {
  color: var(--text-dim);
  font-weight: 650;
}
.news-byline.news-byline-founder,
.news-byline.news-byline-founder .news-byline-name,
.news-byline.news-byline-founder .news-byline-sep,
.news-byline.news-byline-founder .news-founder-text,
p.meta .news-byline.news-byline-founder,
p.meta.muted .news-byline.news-byline-founder,
p.meta.muted .news-byline.news-byline-founder .news-byline-name,
p.meta.muted .news-byline.news-byline-founder .news-byline-sep,
p.meta.muted .news-byline.news-byline-founder .news-founder-text,
.list-item .meta .news-byline.news-byline-founder,
.list-item .meta .news-byline.news-byline-founder .news-byline-name,
.list-item .meta .news-byline.news-byline-founder .news-byline-sep,
.list-item .meta .news-byline.news-byline-founder .news-founder-text {
  color: var(--purple) !important;
  font-weight: 700 !important;
}
.news-byline.news-byline-founder .news-founder-text {
  font-weight: 800 !important;
  color: var(--purple) !important;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border: 1px solid var(--border-soft);
  text-transform: capitalize;
}
.badge-green {
  background: var(--green-soft);
  color: var(--purple);
  border-color: rgba(61, 255, 196, 0.16);
}
.badge-blue {
  background: rgba(106, 168, 255, 0.12);
  color: var(--blue);
  border-color: rgba(106, 168, 255, 0.2);
}

.ubadge-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  vertical-align: middle;
}
.ubadge-row-wrap {
  display: flex;
}
.ubadge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  white-space: nowrap;
  text-transform: none;
  line-height: 1.2;
}
.ubadge-lg {
  padding: 6px 12px;
  font-size: 13px;
  gap: 7px;
}
.ubadge-fa {
  font-size: 0.95em;
  width: 1em;
  text-align: center;
}
.ubadge-lg .ubadge-fa {
  font-size: 1.05em;
}
.ubadge-label {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ubadge-green {
  background: rgba(61, 255, 196, 0.12);
  color: var(--green);
  border-color: rgba(61, 255, 196, 0.35);
  box-shadow: 0 0 12px rgba(61, 255, 196, 0.08);
}
.ubadge-blue {
  background: rgba(122, 180, 255, 0.14);
  color: var(--blue);
  border-color: rgba(122, 180, 255, 0.38);
  box-shadow: 0 0 12px rgba(122, 180, 255, 0.08);
}
.ubadge-amber {
  background: rgba(255, 200, 87, 0.14);
  color: var(--amber);
  border-color: rgba(255, 200, 87, 0.4);
  box-shadow: 0 0 12px rgba(255, 200, 87, 0.08);
}
.ubadge-red {
  background: rgba(255, 94, 122, 0.14);
  color: var(--red);
  border-color: rgba(255, 94, 122, 0.4);
  box-shadow: 0 0 12px rgba(255, 94, 122, 0.08);
}
.ubadge-purple {
  background: rgba(184, 154, 255, 0.14);
  color: var(--purple);
  border-color: rgba(184, 154, 255, 0.4);
  box-shadow: 0 0 12px rgba(184, 154, 255, 0.08);
}
.ubadge-muted {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-mute);
  border-color: rgba(255, 255, 255, 0.12);
}
.ubadge-green .ubadge-fa { color: var(--green); }
.ubadge-blue .ubadge-fa { color: var(--blue); }
.ubadge-amber .ubadge-fa { color: var(--amber); }
.ubadge-red .ubadge-fa { color: var(--red); }
.ubadge-purple .ubadge-fa { color: var(--purple); }

.user-link {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.user-link:hover {
  color: var(--purple);
  text-decoration: underline;
}

.mod-bar {
  margin-bottom: 14px;
  border-color: rgba(184, 154, 255, 0.35);
  background: rgba(184, 154, 255, 0.06);
}
.post-deleted {
  opacity: 0.65;
  border-style: dashed;
}
.profile-card .title {
  font-size: 1.1rem;
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 6px;
}

.form-grid {
  display: grid;
  gap: 14px;
  max-width: 420px;
}
.form-row {
  display: grid;
  gap: 6px;
  position: relative;
  z-index: 2;
  pointer-events: auto;
}
.form-row label {
  font-size: 12px;
  font-weight: 650;
  color: var(--text-dim);
}
.input,
.select,
select.input,
textarea.input {
  width: 100%;
  background: rgba(6, 8, 14, 0.78);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 11px 14px;
  color: var(--text);
  font: inherit;
  outline: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  -webkit-appearance: auto;
  appearance: auto;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
input.input,
textarea.input {
  cursor: text;
}
.input:focus,
.select:focus,
select.input:focus,
textarea.input:focus {
  border-color: rgba(184, 154, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(184, 154, 255, 0.12);
  background: rgba(6, 8, 14, 0.92);
}
textarea.input {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}
.checkbox-row input[type='checkbox'] {
  width: 16px;
  height: 16px;
  accent-color: var(--purple);
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

.flash {
  padding: 12px 14px;
  border-radius: 13px;
  margin-bottom: 18px;
  font-size: 14px;
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.flash-success {
  background: var(--green-soft);
  border-color: rgba(61, 255, 196, 0.3);
  color: var(--green);
}
.flash-error {
  background: rgba(255, 94, 122, 0.1);
  border-color: rgba(255, 94, 122, 0.35);
  color: var(--red);
}
.flash-info {
  background: rgba(122, 180, 255, 0.1);
  border-color: rgba(122, 180, 255, 0.3);
  color: var(--blue);
}

.article {
  max-width: 720px;
}
.article .body {
  color: var(--text-dim);
  margin-top: 16px;
}
.article .body p {
  margin-bottom: 0.85em;
}
.article .body a {
  word-break: break-all;
}

.faq-list {
  display: grid;
  gap: 10px;
}
.faq-item {
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.faq-item[open] {
  border-color: rgba(179, 136, 255, 0.28);
  background: rgba(179, 136, 255, 0.05);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-weight: 650;
  color: var(--text);
  user-select: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::before {
  content: '▸';
  display: inline-block;
  width: 1.1em;
  color: var(--purple);
  transition: transform 0.15s ease;
}
.faq-item[open] summary::before {
  transform: rotate(90deg);
}
.faq-item summary:hover {
  background: rgba(255, 255, 255, 0.03);
}
.faq-body {
  padding: 0 16px 16px 2.2em;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}
.faq-body a {
  word-break: break-all;
}

.req {
  color: var(--red);
  font-weight: 700;
}
.opt {
  color: var(--text-mute);
  font-weight: 500;
  font-size: 12px;
}
.field-hint {
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 4px;
}
.abuse-fields {
  display: grid;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 94, 122, 0.35);
  background: rgba(255, 94, 122, 0.06);
}
.abuse-fields.hidden,
.abuse-fields[hidden] {
  display: none !important;
}
.abuse-banner {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: var(--text-dim);
}
.abuse-banner strong {
  color: var(--red);
}
.form-check .check-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
  line-height: 1.45;
}
.form-check input[type='checkbox'] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--red);
  flex-shrink: 0;
}

.post {
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.03);
}
.post-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text-mute);
}
.post-head strong {
  color: var(--text);
}
.post-body {
  color: var(--text-dim);
}
.post-body p {
  margin-bottom: 0.7em;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  position: relative;
  z-index: 5;
}

.table-cats {
  width: 100%;
  border-collapse: collapse;
}
.table-cats th,
.table-cats td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.table-cats th {
  font-size: 12px;
  color: var(--text-mute);
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.table-cats a {
  color: var(--text);
  font-weight: 700;
}
.table-cats a:hover {
  color: var(--purple);
}

.pagination {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

@keyframes brandPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.06) inset,
      0 0 40px rgba(179, 136, 255, 0.3),
      0 0 80px rgba(24, 229, 255, 0.1);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.1) inset,
      0 0 60px rgba(179, 136, 255, 0.5),
      0 0 100px rgba(24, 229, 255, 0.2);
  }
}
@keyframes btnGradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes heroGlowPulse {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}
@keyframes starTwinkle {
  from {
    opacity: 0.65;
  }
  to {
    opacity: 1;
  }
}
@keyframes sunGlow {
  from {
    box-shadow:
      0 0 50px rgba(255, 120, 30, 0.4),
      0 0 100px rgba(255, 60, 10, 0.22);
  }
  to {
    box-shadow:
      0 0 80px rgba(255, 140, 40, 0.6),
      0 0 160px rgba(255, 60, 10, 0.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .wrap,
  .hero::after,
  .brand-icon,
  .mark,
  .btn-primary {
    animation: none !important;
  }
}

.who-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}
.who small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.wrap-wide {
  max-width: 1180px;
}

.form-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}
.form-inline .form-row {
  min-width: 220px;
  flex: 1;
}

.table-wrap {
  overflow-x: auto;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.data th,
table.data td {
  text-align: left;
  vertical-align: top;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border-soft);
}
table.data th {
  color: var(--text-mute);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
table.data a {
  color: var(--text);
  font-weight: 650;
}
.nowrap {
  white-space: nowrap;
}
.inline-form {
  margin: 0;
}
.revoke-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.input-sm {
  min-width: 160px;
  padding: 6px 10px;
  font-size: 12px;
}
.btn-small {
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
}
.pill-ban,
.pill-kick {
  background: rgba(255, 94, 122, 0.14);
  color: var(--red);
}
.pill-timeout,
.pill-warn {
  background: rgba(255, 200, 87, 0.14);
  color: var(--amber);
}
.pill-unban,
.pill-untimeout,
.pill-revoke_warn {
  background: rgba(61, 255, 196, 0.12);
  color: var(--green);
}
.pill-pin {
  background: rgba(179, 136, 255, 0.16);
  color: var(--purple);
}

.transcript-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.transcript-row > a {
  flex: 1;
  color: inherit;
  text-decoration: none !important;
}
.row-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.announce-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 16px;
  align-items: start;
}
@media (max-width: 860px) {
  .announce-grid {
    grid-template-columns: 1fr;
  }
}
textarea.input {
  min-height: 120px;
  resize: vertical;
}
.preview-text {
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 14px;
  color: var(--text);
  font: inherit;
}
.d-embed {
  display: flex;
  background: #2b2d31;
  border-radius: 8px;
  overflow: hidden;
  max-width: 520px;
}
.d-embed-bar {
  width: 4px;
  background: #b89aff;
  flex-shrink: 0;
}
.d-embed-body {
  padding: 12px 14px 10px;
  min-width: 0;
  flex: 1;
}
.d-embed-title {
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}
.d-embed-desc {
  white-space: pre-wrap;
  word-break: break-word;
  color: #dbdee1;
  font-size: 14px;
  line-height: 1.4;
}
.d-embed-img {
  display: block;
  max-width: 100%;
  border-radius: 8px;
  margin-top: 10px;
}
.d-embed-foot {
  margin-top: 10px;
  font-size: 12px;
  color: #949ba4;
}

@media (max-width: 720px) {
  .top {
    padding: 12px 14px;
  }
  .nav {
    order: 3;
    width: 100%;
  }
  .hero {
    padding: 22px;
  }
  .wrap {
    padding: 22px 14px 56px;
  }
}
