:root {
  --bg: #050505;
  --bg-elev: #0c0c0c;
  --ink: #f4f4f0;
  --muted: #b8b8b0;
  --dim: #8e8e86;
  --line: rgba(244, 244, 240, 0.08);
  --line-strong: rgba(244, 244, 240, 0.18);
  --accent: #ff2d4a;
  --accent-soft: rgba(255, 45, 74, 0.14);
  --ok: #3ecf8e;
  --ok-soft: rgba(62, 207, 142, 0.14);
  --warn: #f0c14b;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

/* Atmosphere */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 12% -10%, rgba(255, 45, 74, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 95% 15%, rgba(255, 255, 255, 0.05), transparent 50%),
    radial-gradient(ellipse 60% 50% at 50% 110%, rgba(255, 45, 74, 0.08), transparent 55%),
    linear-gradient(180deg, #070707 0%, #050505 100%);
}
.atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
  animation: gridDrift 28s linear infinite;
}
.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: 0.045;
  mix-blend-mode: overlay;
}
.scanline {
  position: fixed;
  left: 0;
  right: 0;
  height: 120px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255, 45, 74, 0.05), transparent);
  animation: scan 7s ease-in-out infinite;
  opacity: 0.7;
}

/* What's new */
.whats-new {
  position: relative;
  margin: 0 0 1.5rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(255, 45, 74, 0.35);
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 45, 74, 0.12), rgba(12, 12, 12, 0.95) 45%);
  animation: rise 0.75s var(--ease) both, whatsPulse 4.5s ease-in-out infinite;
}
.whats-new-glow {
  position: absolute;
  inset: -40% auto auto -10%;
  width: 55%;
  height: 120%;
  background: radial-gradient(circle, rgba(255, 45, 74, 0.28), transparent 70%);
  pointer-events: none;
  animation: whatsDrift 8s ease-in-out infinite alternate;
}
.whats-new-inner {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1.25rem;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  padding: 1.15rem 1.25rem 1.2rem;
}
.whats-new-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.whats-new h2 {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
  font-weight: 700;
}
.whats-new ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
  max-width: 42rem;
}
.whats-new li {
  position: relative;
  padding-left: 1.05rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}
.whats-new li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 45, 74, 0.55);
}
.whats-new-dismiss { margin: 0; }
@keyframes whatsPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 45, 74, 0); }
  50% { box-shadow: 0 0 28px rgba(255, 45, 74, 0.12); }
}
@keyframes whatsDrift {
  from { transform: translate(0, 0); }
  to { transform: translate(12%, 8%); }
}
@media (max-width: 720px) {
  .whats-new-inner { align-items: stretch; }
  .whats-new-dismiss { width: 100%; }
  .whats-new-dismiss .btn { width: 100%; }
}
@keyframes gridDrift {
  from { transform: translateY(0); }
  to { transform: translateY(72px); }
}
@keyframes scan {
  0%, 100% { top: -10%; opacity: 0; }
  15% { opacity: 0.7; }
  50% { top: 90%; opacity: 0.35; }
  85% { opacity: 0; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulseSoft {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.wrap {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.1rem clamp(1rem, 3.5vw, 2.25rem) 3.5rem;
}

a { color: inherit; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0.15rem 1.15rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  animation: rise 0.7s var(--ease) both;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  text-transform: lowercase;
  position: relative;
}
.brand::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 42%;
  height: 2px;
  background: var(--accent);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.brand:hover::after { transform: scaleX(1.65); }

.nav {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
}
.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.nav-link:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}
.nav-logout:hover {
  color: #ff8a9a;
  border-color: rgba(255, 45, 74, 0.35);
  background: var(--accent-soft);
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.28rem 0.85rem 0.28rem 0.28rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(255, 45, 74, 0.1), transparent 55%),
    rgba(255, 255, 255, 0.03);
  max-width: min(260px, 52vw);
}
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #111;
  flex-shrink: 0;
}
.user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
  padding-right: 0.15rem;
}
.user-name {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-handle {
  color: var(--dim);
  font-size: 0.68rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.55rem, 2.8vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 0.45rem;
  animation: rise 0.75s var(--ease) 0.05s both;
}
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}
.lede {
  color: var(--muted);
  max-width: 40rem;
  line-height: 1.6;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  animation: rise 0.8s var(--ease) 0.12s both;
}
.lede strong { color: var(--ink); font-weight: 600; }
.lede code,
.hint code {
  color: #f0efe8;
  font-weight: 600;
  font-size: 0.92em;
  padding: 0.12em 0.38em;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0 1.75rem;
  animation: rise 0.8s var(--ease) 0.18s both;
}
.stat {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255,255,255,0.04), transparent 55%);
  border-radius: var(--radius);
  padding: 1rem 1.05rem;
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
}
.stat .k {
  display: block;
  color: var(--dim);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}
.stat .v {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.panel {
  background: rgba(12, 12, 12, 0.82);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.35rem 1.45rem;
  margin: 1rem 0;
  backdrop-filter: blur(10px);
  animation: rise 0.75s var(--ease) 0.1s both;
}
.panel.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.1rem;
}
.panel.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr; }
  .panel.form-grid { grid-template-columns: 1fr; }
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.9rem;
}

/* —— Servers / fleet —— */
.fleet-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 0.35rem;
  animation: rise 0.65s var(--ease) both;
}
.fleet-kicker {
  margin: 0 0 0.55rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.fleet-copy { min-width: 0; }
.fleet-copy .lede { margin: 0; }
.fleet-stat {
  flex-shrink: 0;
  min-width: 7.5rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(255, 45, 74, 0.1), transparent 55%),
    rgba(255, 255, 255, 0.02);
  text-align: right;
}
.fleet-stat .k {
  display: block;
  color: var(--dim);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}
.fleet-stat .v {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.fleet-actions { margin-top: 1.1rem; }

.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.85rem;
  margin-top: 0.25rem;
}
.server-tile {
  --i: 0;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.95rem;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 50%),
    rgba(10, 10, 10, 0.72);
  overflow: hidden;
  transition:
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease),
    background 0.25s var(--ease);
  animation: rise 0.55s var(--ease) both;
  animation-delay: calc(0.04s * var(--i));
}
.server-tile-glow {
  position: absolute;
  inset: auto -20% -60% auto;
  width: 55%;
  height: 90%;
  background: radial-gradient(circle, rgba(255, 45, 74, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.server-tile:hover {
  border-color: rgba(255, 45, 74, 0.35);
  transform: translateY(-3px);
  background:
    linear-gradient(145deg, rgba(255, 45, 74, 0.08), transparent 48%),
    rgba(14, 14, 14, 0.9);
}
.server-tile:hover .server-tile-glow { opacity: 1; }
.server-tile:hover .server-tile-arrow {
  color: var(--accent);
  transform: translateX(3px);
}
.server-tile-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  background: #111;
  flex-shrink: 0;
}
.server-tile-icon.fallback {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--muted);
  background:
    linear-gradient(160deg, rgba(255, 45, 74, 0.15), transparent 60%),
    #141414;
}
.server-tile-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.server-tile-body strong {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.server-tile-sub {
  font-size: 0.8rem;
  color: var(--dim);
}
.server-tile-arrow {
  color: var(--dim);
  font-size: 1.15rem;
  transition: color 0.2s, transform 0.25s var(--ease);
}

.fleet-empty {
  margin-top: 1.25rem;
  padding: 2.25rem 1.5rem;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(255, 255, 255, 0.015);
  animation: rise 0.7s var(--ease) both;
}
.fleet-empty h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}
.fleet-empty .lede {
  margin: 0 auto 1.35rem;
  max-width: 28rem;
}
.fleet-empty .actions {
  justify-content: center;
}
.fleet-empty-visual {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}
.fleet-empty-visual span {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  animation: emptyPulse 2.4s ease-in-out infinite;
}
.fleet-empty-visual span:nth-child(2) {
  animation-delay: 0.2s;
  opacity: 0.7;
}
.fleet-empty-visual span:nth-child(3) {
  animation-delay: 0.4s;
  opacity: 0.45;
}
@keyframes emptyPulse {
  0%, 100% { transform: translateY(0); border-color: var(--line); }
  50% { transform: translateY(-4px); border-color: rgba(255, 45, 74, 0.35); }
}

@media (max-width: 640px) {
  .fleet-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .fleet-stat {
    text-align: left;
    width: 100%;
  }
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.05rem;
  background:
    linear-gradient(145deg, rgba(255, 45, 74, 0.06), transparent 42%),
    rgba(255, 255, 255, 0.025);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s, opacity 0.25s;
  position: relative;
  overflow: hidden;
  animation: rise 0.7s var(--ease) both;
}
.card-top {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.card-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
}
.card-off {
  opacity: 0.62;
}
.mod-toggle {
  flex-shrink: 0;
  margin: 0.15rem 0 0;
}
.switch {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  width: 42px;
  height: 24px;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.switch-ui {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--line-strong);
  transition: background 0.2s var(--ease), border-color 0.2s;
}
.switch-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f2f2f2;
  transition: transform 0.2s var(--ease);
}
.switch input:checked + .switch-ui {
  background: rgba(46, 204, 113, 0.35);
  border-color: rgba(46, 204, 113, 0.55);
}
.switch input:checked + .switch-ui::after {
  transform: translateX(18px);
}
.switch-locked {
  opacity: 0.45;
  cursor: not-allowed;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.09s; }
.card:nth-child(3) { animation-delay: 0.13s; }
.card:nth-child(4) { animation-delay: 0.17s; }
.card:nth-child(5) { animation-delay: 0.21s; }
.card:nth-child(6) { animation-delay: 0.25s; }
.card:nth-child(7) { animation-delay: 0.29s; }
.card:nth-child(8) { animation-delay: 0.33s; }
.card:nth-child(9) { animation-delay: 0.37s; }
.card:nth-child(10) { animation-delay: 0.41s; }
.card:nth-child(11) { animation-delay: 0.45s; }
.card:nth-child(12) { animation-delay: 0.49s; }
.card:hover {
  border-color: rgba(255, 45, 74, 0.55);
  transform: translateY(-4px);
  background:
    linear-gradient(145deg, rgba(255, 45, 74, 0.12), transparent 50%),
    rgba(255, 255, 255, 0.04);
}
.card .ico {
  font-size: 1.25rem;
  line-height: 1;
  filter: grayscale(0.2);
}
.card strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.card .blurb {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.5;
  flex: 1;
}
.card .meta { color: var(--dim); font-size: 0.78rem; }
.card .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  background: rgba(0, 0, 0, 0.35);
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dim);
}
.badge.on {
  color: var(--ok);
  border-color: rgba(62, 207, 142, 0.35);
  background: var(--ok-soft);
}
.badge.on::before {
  background: var(--ok);
  box-shadow: 0 0 8px rgba(62, 207, 142, 0.7);
  animation: pulseSoft 1.8s ease-in-out infinite;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 0;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn.primary {
  background: var(--ink);
  color: #000;
}
.btn.primary:hover {
  background: #fff;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.12);
}
.btn.ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.btn.ghost:hover { border-color: rgba(255,255,255,0.45); }
.btn.discord {
  background: linear-gradient(135deg, #5865F2, #4752c4);
  color: #fff;
  box-shadow: 0 12px 40px rgba(88, 101, 242, 0.28);
}
.btn.discord:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(88, 101, 242, 0.4);
}
.dash-login {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  width: 100%;
}
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.human-gate {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: min(100%, 22.5rem);
  padding: 0.95rem 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #101010;
  cursor: pointer;
  user-select: none;
}
.human-gate:hover {
  border-color: rgba(88, 101, 242, 0.55);
}
.human-gate:has(input:focus-visible) {
  outline: 2px solid #5865f2;
  outline-offset: 3px;
}
.human-gate input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.human-gate-check {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 2px solid #f4f4f0;
  border-radius: 6px;
  background: #050505;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.human-gate input:checked + .human-gate-check {
  background: #5865f2;
  border-color: #5865f2;
}
.human-gate input:checked + .human-gate-check::after {
  content: "";
  display: block;
  width: 7px;
  height: 13px;
  margin: 2px auto 0;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.human-gate-copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}
.human-gate-copy strong {
  font-size: 0.98rem;
  font-weight: 600;
}
.human-gate-copy small {
  color: var(--dim);
  font-size: 0.78rem;
}
.landing-cta {
  flex-direction: column;
  align-items: flex-start;
}
.landing-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
button.nav-link {
  font: inherit;
  cursor: pointer;
  background: transparent;
}
.btn.danger {
  background: var(--accent-soft);
  color: #ff8a9a;
  border: 1px solid rgba(255, 45, 74, 0.35);
}
.btn.sm { padding: 0.45rem 0.8rem; font-size: 0.8rem; }

.flash {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  animation: rise 0.5s var(--ease) both;
}
.flash.ok {
  border-color: rgba(62, 207, 142, 0.4);
  color: var(--ok);
  background: var(--ok-soft);
}
.flash.err {
  border-color: rgba(255, 45, 74, 0.4);
  color: #ff8f8f;
  background: var(--accent-soft);
}

label {
  display: block;
  margin: 0.9rem 0 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
input[type="text"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 0.78rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.55);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2rem;
  cursor: pointer;
}
select[multiple] {
  appearance: auto;
  background-image: none;
  padding-right: 0.9rem;
  min-height: 9rem;
  cursor: default;
}
select option {
  background: #111;
  color: #fff;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: rgba(255, 45, 74, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 45, 74, 0.12);
}
textarea { min-height: 110px; resize: vertical; }
.check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem 0 0.4rem;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  font-weight: 500;
}
.check input { width: auto; accent-color: var(--accent); }
.actions {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  grid-column: 1 / -1;
}
.crumb {
  color: var(--dim);
  font-size: 0.82rem;
  margin-bottom: 1rem;
  animation: rise 0.55s var(--ease) both;
}
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--accent); }
.hint {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  margin-top: 0.55rem;
  line-height: 1.65;
}
.hint strong { color: var(--ink); font-weight: 600; }
.muted { color: var(--muted); font-weight: 500; }

.sr-rows {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0.75rem 0 0.25rem;
}
.sr-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.sr-fields {
  display: grid;
  grid-template-columns: minmax(10rem, 1.4fr) minmax(8rem, 1fr) minmax(5rem, 0.7fr);
  gap: 0.65rem 0.85rem;
  flex: 1;
  min-width: 0;
}
.sr-row .sr-remove { flex-shrink: 0; margin-bottom: 0.15rem; }
@media (max-width: 720px) {
  .sr-fields { grid-template-columns: 1fr; }
  .sr-row { align-items: stretch; }
  .sr-row .sr-remove { width: 100%; }
}

.sr-panels {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.25rem 0 0.5rem;
}
.sr-panel {
  padding: 1rem 0 0.25rem;
  border-top: 1px solid var(--line);
}
.sr-panel:first-child { border-top: none; padding-top: 0.35rem; }
.sr-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  margin-bottom: 0.85rem;
}
.sr-panel-head > div { flex: 1; min-width: 10rem; }
.sr-panel-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 0.85rem;
  margin-bottom: 0.75rem;
}
.sr-panel-meta .full { grid-column: 1 / -1; }
.sr-panel-roles-h {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0.5rem 0 0.25rem;
  color: var(--ink);
}
@media (max-width: 720px) {
  .sr-panel-meta { grid-template-columns: 1fr; }
}

.hero-login {
  min-height: calc(100vh - 8rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 40rem;
  padding-top: 1rem;
}
.hero-login .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  animation: rise 0.6s var(--ease) both;
}
.hero-login .eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: var(--accent);
}
.hero-login h1 {
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
}
.hero-login .lede { font-size: 0.98rem; margin-bottom: 1.5rem; }
.hero-login .actions { animation: rise 0.85s var(--ease) 0.2s both; }

/* —— Landing (login start page) —— */
.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.5rem 3rem;
  align-items: center;
  min-height: auto;
  padding: 1.25rem 0 2.75rem;
}
.landing-hero-copy {
  max-width: 34rem;
  animation: rise 0.7s var(--ease) both;
}
.landing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}
.landing-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
}
.brand-mark {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
  background: linear-gradient(120deg, #fff 20%, #ff8a9a 55%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brandIn 0.9s var(--ease) both;
}
.landing-hero-copy h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--ink);
}
.landing-hero-copy .lede {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 38rem;
}
.landing-hero-visual {
  position: relative;
  min-height: 280px;
  animation: rise 0.9s var(--ease) 0.12s both;
}
.landing-hero-visual::before {
  content: "";
  position: absolute;
  inset: -12% -8% auto auto;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 45, 74, 0.28), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
  animation: glowPulse 5.5s ease-in-out infinite;
}
.ui-stage {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(18, 18, 18, 0.95), rgba(8, 8, 8, 0.98));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transform: perspective(900px) rotateY(-6deg) rotateX(3deg);
  transform-origin: center left;
  transition: transform 0.5s var(--ease);
}
.landing-hero-visual:hover .ui-stage {
  transform: perspective(900px) rotateY(-2deg) rotateX(1deg);
}
.ui-stage-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.ui-stage-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a3a3a;
}
.ui-stage-bar span:nth-child(1) { background: #ff5f57; }
.ui-stage-bar span:nth-child(2) { background: #febc2e; }
.ui-stage-bar span:nth-child(3) { background: #28c840; }
.ui-stage-bar em {
  margin-left: 0.55rem;
  font-style: normal;
  font-size: 0.72rem;
  color: var(--dim);
  letter-spacing: 0.02em;
}
.ui-stage-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  padding: 0.85rem;
}
.ui-mod {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.55rem;
  row-gap: 0.1rem;
  padding: 0.7rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  animation: rise 0.7s var(--ease) both;
}
.ui-mod:nth-child(1) { animation-delay: 0.15s; }
.ui-mod:nth-child(2) { animation-delay: 0.22s; }
.ui-mod:nth-child(3) { animation-delay: 0.29s; }
.ui-mod:nth-child(4) { animation-delay: 0.36s; }
.ui-mod:nth-child(5) { animation-delay: 0.43s; }
.ui-mod:nth-child(6) { animation-delay: 0.5s; }
.ui-mod i {
  grid-row: 1 / 3;
  align-self: center;
  font-style: normal;
  font-size: 1.1rem;
}
.ui-mod strong {
  font-size: 0.82rem;
  font-weight: 600;
}
.ui-mod small {
  font-size: 0.68rem;
  color: var(--ok);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ui-mod.dim {
  opacity: 0.72;
}
.ui-mod.dim small {
  color: var(--dim);
}

.landing-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem 3rem;
  align-items: center;
  padding: 3.25rem 0;
  border-top: 1px solid var(--line);
  animation: rise 0.75s var(--ease) both;
}
.landing-block.flip .landing-copy { order: 2; }
.landing-block.flip .landing-shot { order: 1; }
.landing-block.soft {
  grid-template-columns: 1fr;
  padding-bottom: 1rem;
}
.landing-copy h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.landing-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 34rem;
}
.landing-copy.wide p { max-width: 42rem; }
.actions.tight { margin-top: 1.25rem; }

.wrap-landing {
  max-width: 1200px;
}

.pillar-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 0.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
}
.pillar-row article {
  padding: 1.35rem 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}
.pillar-row h2 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.pillar-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.feature-showcase {
  padding: 0.25rem 0 1rem;
}
.feature-head {
  padding: 2.25rem 0 0.5rem;
  border-top: 1px solid var(--line);
  max-width: 40rem;
}
.feature-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}
.feature-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.feature-story {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 2.75rem 3.25rem;
  align-items: center;
  padding: 3.4rem 0;
  border-top: 1px solid var(--line);
}
.feature-story.flip .feature-copy { order: 2; }
.feature-story.flip .discord-shot { order: 1; }
.feature-num {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #ff8a9a;
}
.feature-copy h3 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.feature-copy p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}
.feature-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
.feature-copy li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.5;
}
.feature-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 45, 74, 0.55);
}

.discord-shot {
  margin: 0;
  padding: 0.7rem;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, #1a1b1e, #111214);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.discord-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.discord-shot-scroll {
  max-height: 560px;
  overflow: auto;
}

.how-block {
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--line);
}
.how-block h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  letter-spacing: -0.03em;
}
.how-lede {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 38rem;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}
.how-grid article {
  padding: 1.35rem 1.25rem 1.45rem;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
}
.how-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  margin-bottom: 0.75rem;
  border-radius: 7px;
  background: rgba(255, 45, 74, 0.2);
  color: #ff8a9a;
  font-size: 0.82rem;
  font-weight: 700;
}
.how-grid h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}
.how-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.landing-shot { min-width: 0; }
.cmd-shot,
.embed-shot,
.dash-shot {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(12, 12, 12, 0.9);
  padding: 1rem 1.1rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.cmd-line {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  margin-bottom: 0.4rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
}
.cmd-line.muted { color: var(--dim); }
.cmd-line .slash { color: var(--accent); font-weight: 700; }
.cmd-line .arg { color: #9ecbff; }
.cmd-reply {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-left: 3px solid var(--accent);
  background: rgba(255, 45, 74, 0.06);
  border-radius: 0 10px 10px 0;
}
.cmd-reply strong { font-size: 0.9rem; }
.cmd-reply span { font-size: 0.8rem; color: var(--muted); }

.embed-shot {
  display: flex;
  padding: 0;
  overflow: hidden;
}
.embed-shot-bar {
  width: 4px;
  flex-shrink: 0;
  background: var(--accent);
}
.embed-shot-body { padding: 0.9rem 1rem; }
.embed-shot-title {
  margin: 0 0 0.35rem;
  font-weight: 600;
  font-size: 0.98rem;
}
.embed-shot-desc {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
.embed-shot-btn {
  display: inline-flex;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  background: #5865f2;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
}

.dash-shot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}
.dash-shot-row .pill {
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.03);
}
.dash-shot-save {
  margin-top: 0.85rem;
  display: inline-flex;
  color: var(--ok);
  font-size: 0.82rem;
  font-weight: 600;
}

@keyframes brandIn {
  from { opacity: 0; transform: translateY(12px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.06); }
}

@media (max-width: 1100px) {
  .pillar-row,
  .how-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .landing-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 2rem;
    padding-top: 0.5rem;
  }
  .ui-stage { transform: none; }
  .landing-hero-visual:hover .ui-stage { transform: none; }
  .landing-block,
  .landing-block.flip {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 2.25rem 0;
  }
  .landing-block.flip .landing-copy,
  .landing-block.flip .landing-shot { order: unset; }
  .feature-story,
  .feature-story.flip {
    grid-template-columns: 1fr;
    gap: 1.35rem;
    padding: 2.25rem 0;
  }
  .feature-story.flip .feature-copy,
  .feature-story.flip .discord-shot { order: unset; }
  .discord-shot-scroll { max-height: 420px; }
}

.guild-head {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  margin-bottom: 0.25rem;
}
.guild-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin-bottom: 0.15rem;
}
.guild-title-row h1 {
  margin: 0;
}
.badge-premium {
  color: var(--warn);
  border-color: rgba(240, 193, 75, 0.35);
  background: rgba(240, 193, 75, 0.1);
}
.badge-premium::before {
  background: var(--warn);
  box-shadow: none;
  animation: none;
}
.badge-premium-lock {
  color: #c9a227;
  border-color: rgba(201, 162, 39, 0.45);
  background: rgba(201, 162, 39, 0.08);
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 600;
}
.badge-premium-lock::before {
  display: none;
}
.premium-lock {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 10px;
  background: rgba(201, 162, 39, 0.06);
}
.premium-lock-title {
  margin: 0 0 0.35rem;
  font-weight: 650;
  color: var(--text);
}
.form-locked {
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}
.card-locked {
  opacity: 0.82;
}
.card-locked:hover {
  opacity: 1;
}
.card-locked .blurb {
  opacity: 0.9;
}
.guild-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  background: #111;
  flex-shrink: 0;
}
.guild-icon.fallback {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--muted);
}
.quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 1.75rem;
  animation: rise 0.75s var(--ease) 0.15s both;
}

/* First-run onboarding */
.onboard {
  margin: 0 0 1.5rem;
  padding: 1.25rem 1.35rem 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 45, 74, 0.1), transparent 55%),
    var(--bg-elev);
  animation: rise 0.7s var(--ease) both;
}
.onboard-head {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.onboard-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.onboard h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 650;
}
.onboard .lede {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.onboard-progress {
  min-width: 4.5rem;
  text-align: right;
}
.onboard-progress-val {
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.1;
}
.onboard-progress-lbl {
  font-size: 0.72rem;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.onboard-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.onboard-step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
}
.onboard-step.is-next {
  border-color: rgba(255, 45, 74, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 45, 74, 0.12);
}
.onboard-step.is-done {
  opacity: 0.78;
}
.onboard-num {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-strong);
}
.onboard-step.is-done .onboard-num {
  background: var(--ok-soft);
  border-color: rgba(62, 207, 142, 0.35);
  color: var(--ok);
}
.onboard-step-body {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.onboard-step-body strong {
  font-size: 0.95rem;
}
.onboard-step-body span {
  color: var(--dim);
  font-size: 0.82rem;
  line-height: 1.35;
}
.onboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
  align-items: center;
}
.onboard-done { margin-bottom: 1rem; }

.setup-hints {
  margin: 0 0 1.35rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  animation: rise 0.7s var(--ease) 0.05s both;
}
.setup-hints-head h2 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 650;
}
.setup-hints-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}
.setup-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.82rem;
  background: rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.setup-chip:hover {
  border-color: rgba(255, 45, 74, 0.5);
  background: var(--accent-soft);
}

@media (max-width: 720px) {
  .onboard-step {
    grid-template-columns: auto 1fr;
  }
  .onboard-step .btn,
  .onboard-step .badge {
    grid-column: 2;
    justify-self: start;
  }
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.table th, .table td {
  text-align: left;
  padding: 0.7rem 0.55rem;
  border-bottom: 1px solid var(--line);
}
.table th {
  color: var(--dim);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.cmd-list {
  display: grid;
  gap: 0.65rem;
}
.cmd-cat {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.02);
}
.cmd-cat h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}
.cmd-cat p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.65;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.foot {
  margin-top: 3.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  color: var(--dim);
  font-size: 0.82rem;
}
.foot a {
  color: var(--muted);
  text-decoration: none;
}
.foot a:hover { color: var(--ink); }

.embed-editor {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.embed-h {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}
.table-wrap {
  overflow-x: auto;
  margin-top: 0.75rem;
}
.embed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.1rem;
}
@media (max-width: 720px) {
  .embed-grid { grid-template-columns: 1fr; }
}

.role-select-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.role-select-wrap select { flex: 1; min-width: 0; }
.role-swatch {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2);
}
.role-mention { font-weight: 600; }
select.role-select option[data-color] { font-weight: 600; }
.discord-embed {
  display: flex;
  border-radius: 4px;
  background: #2b2d31;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.discord-embed-bar {
  width: 4px;
  flex-shrink: 0;
  background: #5865F2;
}
.discord-embed-body {
  padding: 0.65rem 0.85rem;
  min-width: 0;
}
.discord-embed-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #f2f3f5;
  margin-bottom: 0.35rem;
  word-break: break-word;
}
.discord-embed-desc {
  font-size: 0.88rem;
  color: #dbdee1;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.45;
}

/* Moderation command toggles */
.mod-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 0 0 1.25rem;
}
.mod-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1.1rem;
  min-width: 7.5rem;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(160deg, rgba(255, 45, 74, 0.1), transparent 55%),
    rgba(255, 255, 255, 0.03);
}
.mod-stat-val {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.mod-stat-lbl {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mod-stat-links {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border-style: dashed;
}
.mod-cmd-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mod-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.85rem;
}
.mod-group-head .embed-h {
  margin: 0;
}
.mod-cmd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.mod-cmd-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), opacity 0.2s;
}
.mod-cmd-card:hover {
  border-color: rgba(255, 45, 74, 0.45);
  background: rgba(255, 45, 74, 0.06);
}
.mod-cmd-card.is-off {
  opacity: 0.55;
}
.mod-cmd-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.mod-cmd-name {
  display: block;
  font-weight: 600;
  color: #fff;
  font-size: 0.95rem;
}
.mod-cmd-slash {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.25);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
.mod-cmd-blurb {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}
.sticky-actions {
  position: sticky;
  bottom: 0.75rem;
  z-index: 5;
  padding: 0.75rem 1rem;
  margin: 0.25rem 0 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(12, 12, 16, 0.92);
  backdrop-filter: blur(8px);
}
.warn-auto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.1rem;
}
.warn-auto-grid .full {
  grid-column: 1 / -1;
}
@media (max-width: 720px) {
  .warn-auto-grid {
    grid-template-columns: 1fr;
  }
}

.locale-switch {
  display: inline-flex;
  align-items: center;
  margin: 0;
}
.locale-switch select {
  appearance: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-strong);
  color: #eee;
  border-radius: 8px;
  padding: 0.35rem 1.6rem 0.35rem 0.55rem;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #aaa 50%),
    linear-gradient(135deg, #aaa 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.locale-switch select:hover {
  border-color: rgba(255, 45, 74, 0.45);
}

.perm-role-picker {
  margin: 0.45rem 0 0.2rem;
}
.perm-role-search {
  width: 100%;
  margin-bottom: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.55);
  color: var(--ink);
  font: inherit;
}
.perm-role-list {
  max-height: 16.5rem;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.3rem;
}
.perm-role {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.48rem 0.62rem;
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
}
.perm-role:hover {
  background: rgba(255, 255, 255, 0.05);
}
.perm-role input {
  width: auto;
  flex-shrink: 0;
  accent-color: var(--accent);
}
.perm-role-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.perm-role.is-hidden {
  display: none;
}
.perm-role-empty {
  margin: 0;
  padding: 0.85rem 0.7rem;
  color: var(--muted);
  font-size: 0.9rem;
}

