:root {
  --lime: #99ec3a;
  --lime-dim: #6fb81f;
  --ink: #061008;
  --panel: #0d1710;
  --panel-2: #122016;
  --line: rgba(153, 236, 58, 0.22);
  --text: #e9f6dc;
  --muted: #9bb08a;
  --font: "Space Grotesk", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  background: var(--ink);
  color: var(--text);
  overflow-x: hidden;
}

.has-cursor, .has-cursor * { cursor: none !important; }
.ifrid-cursor,
.ifrid-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-100px, -100px);
}
.ifrid-cursor {
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  background: var(--lime);
  box-shadow: 0 0 16px var(--lime);
}
.ifrid-cursor-ring {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1.5px solid var(--lime);
  transition: width .18s, height .18s, margin .18s, background .18s;
}
body.cursor-on .ifrid-cursor-ring {
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  background: rgba(153, 236, 58, 0.12);
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(153, 236, 58, 0.16), transparent 55%),
    radial-gradient(700px 420px at -10% 80%, rgba(153, 236, 58, 0.08), transparent 50%),
    linear-gradient(#061008, #08140c);
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(153, 236, 58, 0.04) 1px, transparent 1px);
  background-size: 100% 7px;
  animation: scan 8s linear infinite;
  opacity: .35;
  pointer-events: none;
}
@keyframes scan { to { background-position: 0 70px; } }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  backdrop-filter: blur(16px);
  background: rgba(6, 16, 8, 0.72);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; width: min(1120px, calc(100% - 32px)); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.brand img { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 0 18px rgba(153, 236, 58, 0.35); }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a.is-active, .nav a:hover { color: var(--lime); }
.nav-discord {
  padding: 8px 14px;
  border: 1px solid var(--lime);
  border-radius: 999px;
  color: var(--lime) !important;
}
.nav-toggle { display: none; background: none; border: 0; color: var(--lime); font-size: 1.4rem; }

.hero {
  position: relative;
  margin: 28px 0 48px;
  min-height: 380px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(6, 16, 8, 0.2), rgba(6, 16, 8, 0.86)),
    radial-gradient(circle at 30% 40%, rgba(153, 236, 58, 0.2), transparent 42%),
    linear-gradient(120deg, #0b1a10, #061008 55%, #123018);
}
.hero-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  right: 8%;
  top: 18%;
  background: radial-gradient(circle, rgba(153, 236, 58, 0.45), transparent 68%);
  filter: blur(8px);
  animation: pulse 4.5s ease-in-out infinite;
}
.hero-logo {
  position: absolute;
  right: 7%;
  top: 50%;
  width: 210px;
  transform: translateY(-50%);
  filter: drop-shadow(0 0 28px rgba(153, 236, 58, 0.55));
  animation: float 5s ease-in-out infinite;
}
.hero-copy { position: relative; padding: 72px 48px; max-width: 640px; }
.hero-copy p.kicker { color: var(--lime); letter-spacing: .22em; text-transform: uppercase; font-size: .75rem; margin: 0 0 10px; }
.hero-copy h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: .95; margin: 0 0 16px; }
.hero-copy p.lead { color: var(--muted); font-size: 1.08rem; max-width: 46ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}
.btn-lime { background: var(--lime); color: #071109; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
@keyframes pulse { 50% { opacity: .55; transform: scale(1.08); } }
@keyframes float { 50% { transform: translateY(-56%); } }

.grid { display: grid; gap: 18px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  animation: rise .7s ease both;
}
.card h3 { margin: 0 0 8px; color: var(--lime); }
.card p { margin: 0; color: var(--muted); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.section { padding: 12px 0 64px; }
.section h2 { font-size: 1.8rem; margin: 0 0 8px; }
.section .sub { color: var(--muted); margin: 0 0 24px; }

.cmd-grid { display: grid; gap: 12px; }
.cmd-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(13, 23, 16, 0.8);
}
.cmd-uses {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cmd-card code {
  color: var(--lime);
  font-size: .9rem;
  background: rgba(153, 236, 58, 0.1);
  padding: 5px 10px;
  border-radius: 999px;
}
.cmd-card p {
  margin: 0;
  color: var(--muted);
  flex: 1;
  min-width: 220px;
}
.cat-title {
  margin: 28px 0 12px;
  color: var(--lime);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .78rem;
}

.people { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.person {
  padding: 28px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.person strong { display: block; font-size: 1.3rem; }
.person span { color: var(--lime); font-size: .9rem; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: inherit;
  text-decoration: none;
}
.contact-card svg { width: 28px; height: 28px; color: var(--lime); }
.form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.form input, .form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #071109;
  color: var(--text);
  font: inherit;
}
.form button { justify-self: start; border: 0; cursor: pointer; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: center;
}
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand img { width: 38px; height: 38px; }
.footer-brand p { margin: 4px 0 0; color: var(--muted); font-size: .85rem; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--lime);
  transition: transform .2s, background .2s, box-shadow .2s;
}
.footer-social a svg { width: 20px; height: 20px; }
.footer-social a:hover {
  transform: translateY(-4px) scale(1.06);
  background: rgba(153, 236, 58, 0.12);
  box-shadow: 0 8px 20px rgba(153, 236, 58, 0.2);
}
.footer-copy { color: var(--muted); font-size: .85rem; }

.dash .kicker { color: var(--lime); letter-spacing: .18em; text-transform: uppercase; font-size: .75rem; margin: 0 0 8px; }
.dash h2 { margin: 0 0 8px; }
.dash h3 { margin: 28px 0 8px; }
.setup-note {
  max-width: 62ch;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(13, 23, 16, 0.8);
  color: var(--muted);
}
.setup-note a, .setup-note code { color: var(--lime); }
.dash-user {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(13, 23, 16, 0.8);
  margin-bottom: 12px;
}
.dash-user img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(153, 236, 58, 0.3);
}
.dash-user h2 { margin: 0; }
.dash-user .sub { margin: 4px 0 0; }
.dash-user #logout { margin-left: auto; }
.guild-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 14px;
}
.guild-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(13, 23, 16, 0.85);
  text-align: center;
  color: inherit;
  text-decoration: none;
  min-height: 168px;
}
.guild-card strong { font-size: .95rem; }
.guild-icon {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  object-fit: cover;
}
.guild-fallback {
  display: grid;
  place-items: center;
  background: rgba(153, 236, 58, 0.12);
  color: var(--lime);
  font-weight: 700;
}
.guild-badge {
  font-size: .72rem;
  color: #f0c36a;
  border: 1px solid rgba(240, 195, 106, 0.35);
  border-radius: 999px;
  padding: 2px 8px;
}
.guild-add {
  background: transparent;
  border: 1px dashed rgba(153, 236, 58, 0.38);
}
.guild-add span { color: var(--muted); font-size: .82rem; }
.guild-plus {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  color: var(--lime);
  background: rgba(153, 236, 58, 0.08);
}
.owner-panel {
  margin-top: 36px;
  padding-top: 8px;
}
.restrict-list { display: grid; gap: 10px; }
.restrict-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(13, 23, 16, 0.8);
}
.restrict-row .guild-icon { width: 52px; height: 52px; border-radius: 16px; }
.restrict-row a { color: inherit; text-decoration: none; }
.restrict-row span { display: block; color: var(--muted); font-size: .85rem; margin-top: 4px; }
.restrict-row.is-restricted { border-color: rgba(240, 195, 106, 0.35); }
.btn-warn { background: transparent; border: 1px solid rgba(240, 195, 106, 0.5); color: #f0c36a; }
button.btn { font: inherit; cursor: pointer; }

.back-link { color: var(--lime); text-decoration: none; }
.config-panel {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(13, 23, 16, 0.8);
}
.config-panel h3 { margin: 0 0 8px; }
.perm-grid { display: grid; gap: 14px; }
.perm-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(6, 16, 8, 0.45);
}
.perm-card h4 { margin: 0 0 10px; color: var(--lime); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; min-height: 32px; }
.chip, .chip-role {
  border: 1px solid var(--line);
  background: rgba(153, 236, 58, 0.1);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  cursor: pointer;
}
.hint { color: var(--muted); font-size: .85rem; }
.field, .field-inline { display: grid; gap: 6px; margin: 8px 0 12px; color: var(--muted); }
.field input, .field select, .field-inline select {
  width: min(420px, 100%);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #071109;
  color: var(--text);
  font: inherit;
}
.config-panel code { color: var(--lime); }

.toast-host {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  display: grid;
  gap: 10px;
  pointer-events: none;
}
.toast {
  min-width: 240px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(13, 23, 16, 0.96);
  color: var(--text);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  transform: translateX(120%);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}
.toast.is-in {
  transform: translateX(0);
  opacity: 1;
}
.toast.is-out {
  transform: translateX(120%);
  opacity: 0;
}
.toast-ok { border-color: rgba(153, 236, 58, 0.5); }
.toast-error {
  border-color: rgba(232, 118, 86, 0.55);
  color: #ffd7cc;
}

.server-shell {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 8px;
}
.server-nav { display: grid; gap: 8px; }
.server-nav button, .kind-tabs button {
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.server-nav button.is-active, .kind-tabs button.is-active {
  color: var(--ink);
  background: var(--lime);
  font-weight: 700;
}
.server-main .config-panel { margin-top: 0; margin-bottom: 18px; }
.prefix-card { text-align: left; }
.prefix-now {
  margin: 8px 0 4px;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: .95;
  color: var(--lime);
  text-shadow: 0 0 24px rgba(153, 236, 58, 0.35);
}
.kind-tabs { display: flex; gap: 8px; margin: 12px 0; }
.search-input {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #071109;
  color: var(--text);
  font: inherit;
}
.pick-list { display: grid; gap: 8px; }
.pick-row {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(6, 16, 8, 0.45);
  overflow: hidden;
}
.pick-head {
  width: 100%;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.pick-head img, .list-fallback {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
}
.list-fallback {
  display: grid;
  place-items: center;
  background: rgba(153, 236, 58, 0.12);
  color: var(--lime);
  font-size: .8rem;
  font-weight: 700;
}
.pick-head small { display: block; color: var(--muted); margin-top: 2px; }
.pick-body { padding: 0 12px 14px 64px; }
.pick-body p { margin: 0 0 8px; color: var(--muted); font-size: .85rem; }
.cmd-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.cmd-check {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
}
.pick-row.is-open { border-color: rgba(153, 236, 58, 0.45); }

@media (max-width: 860px) {
  .cards-3, .people, .contact-grid { grid-template-columns: 1fr; }
  .hero-logo { width: 140px; right: 4%; }
  .hero-copy { padding: 48px 24px; }
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    right: 16px;
    top: 64px;
    flex-direction: column;
    background: var(--panel);
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
  }
  .site-header.is-open .nav { display: flex; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .restrict-row { grid-template-columns: 52px 1fr; }
  .restrict-row .btn { grid-column: 1 / -1; justify-self: start; }
  .server-shell { grid-template-columns: 1fr; }
  .server-nav { grid-template-columns: 1fr 1fr; }
  .pick-body { padding-left: 12px; }
}
