:root {
  --bg: #0a0b0e;
  --surface: #12141a;
  --surface-2: #181b22;
  --surface-deep: #0d0f13;
  --border: #252934;
  --border-hi: #3a4052;
  --text: #f2efe9;
  --muted: #939aa9;
  --dim: #666d7d;
  --nothing-red: #d71921;
  --nothing-red-hover: #ef232b;
  --gold: #d4a143;
  --green: #48c484;
  --discord: #5865f2;
  --discord-hover: #4752c4;
  --mono: ui-monospace, "JetBrains Mono", "Cascadia Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  position: relative;
  overflow-x: hidden;
}

.dot-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, rgba(0, 0, 0, 0.35) 55%, transparent 90%);
  z-index: 0;
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 1020px;
  margin: 0 auto;
  padding: 22px 18px 72px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hidden { display: none !important; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.tiny { font-size: 0.76rem; }

code {
  font-family: var(--mono);
  font-size: 0.84em;
  background: var(--surface-deep);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--text);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border-hi);
  background: var(--surface-deep);
}

.kicker {
  font-family: var(--mono);
  font-size: 0.71rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chip-link,
.chip-btn {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.chip-link:hover,
.chip-btn:hover {
  border-color: var(--border-hi);
  background: var(--surface-2);
}

.chip-admin {
  border-color: rgba(215, 25, 33, 0.55);
  color: #ffb3b7;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 4px 3px 11px;
  font-size: 0.8rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(72, 196, 132, 0.7);
}

.status-dot.warn {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(212, 161, 67, 0.7);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}

.panel-handoff {
  border-color: rgba(72, 196, 132, 0.5);
  background: linear-gradient(180deg, rgba(72, 196, 132, 0.08), var(--surface));
}

.banner {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.86rem;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.banner-ok {
  border-color: rgba(72, 196, 132, 0.48);
  background: rgba(72, 196, 132, 0.1);
  color: #b7f5d4;
}

.banner-err {
  border-color: rgba(215, 25, 33, 0.55);
  background: rgba(215, 25, 33, 0.12);
  color: #ffc2c5;
}

.hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
  background: linear-gradient(135deg, rgba(215, 25, 33, 0.05) 0%, var(--surface) 42%, rgba(212, 161, 67, 0.04) 100%);
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-meta-row,
  .btn-row {
    justify-content: center;
  }
}

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

.rocket-bezel {
  width: 204px;
  height: 204px;
  border-radius: 50%;
  padding: 6px;
  background: radial-gradient(circle at 30% 30%, #2b3040, #0d0f13 75%);
  border: 1px solid var(--border-hi);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.65), 0 0 36px rgba(215, 25, 33, 0.12);
}

.rocket-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.hero-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.mono-pill {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--surface-deep);
  border: 1px solid var(--border);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mono-gold {
  color: var(--gold);
  border-color: rgba(212, 161, 67, 0.42);
}

.mono-ok {
  color: var(--green);
  border-color: rgba(72, 196, 132, 0.42);
}

.mono-red {
  color: #ff9ba0;
  border-color: rgba(215, 25, 33, 0.5);
}

.red-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nothing-red);
  display: inline-block;
}

h1 {
  margin: 0 0 8px;
  font-size: 1.85rem;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

h2 {
  margin: 4px 0 6px;
  font-size: 1.12rem;
}

.hero-sub {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.action-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gate-note {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-deep);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text);
}

.gate-warn {
  border-color: rgba(212, 161, 67, 0.45);
  background: rgba(212, 161, 67, 0.08);
}

.invite-pill {
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(72, 196, 132, 0.12);
  border: 1px solid rgba(72, 196, 132, 0.4);
  color: #b7f5d4;
  font-size: 0.82rem;
}

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

.btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--text);
  background: var(--surface-2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover:not(:disabled) {
  border-color: var(--border-hi);
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-lg {
  padding: 12px 22px;
  font-size: 0.94rem;
}

.btn-sm {
  padding: 7px 13px;
  font-size: 0.8rem;
}

.btn-red {
  background: var(--nothing-red);
  border-color: var(--nothing-red);
  color: #fff;
}

.btn-red:hover:not(:disabled) {
  background: var(--nothing-red-hover);
  border-color: var(--nothing-red-hover);
}

.btn-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

.btn-primary {
  background: var(--text);
  border-color: var(--text);
  color: #0a0b0e;
}

.btn-primary:hover:not(:disabled) {
  background: #ffffff;
}

.btn-discord {
  background: var(--discord);
  border-color: var(--discord);
  color: #fff;
}

.btn-discord:hover:not(:disabled) {
  background: var(--discord-hover);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-hi);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.step-card {
  padding: 18px;
}

.step-num {
  font-size: 0.74rem;
  color: var(--nothing-red);
  letter-spacing: 0.14em;
  margin-bottom: 6px;
}

.step-title {
  font-weight: 700;
  font-size: 0.96rem;
  margin-bottom: 6px;
}

.step-card p {
  margin: 0;
  line-height: 1.5;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.search-input {
  background: var(--surface-deep);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--text);
  font-size: 0.84rem;
  min-width: 220px;
}

.plugins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.plugin-tile {
  background: var(--surface-deep);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plugin-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.plugin-cat {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.plugin-new {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  border: 1px solid rgba(212, 161, 67, 0.45);
  border-radius: 999px;
  padding: 1px 7px;
}

.plugin-name {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.3;
}

.plugin-desc {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.48;
}

.handoff-fallback {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.copy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.copy-row code {
  padding: 7px 10px;
  flex: 1;
  word-break: break-all;
}

.spinner-inline {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--nothing-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
