/* Wisp: the website and the dashboard. Dark, with a violet glow. */
:root {
  --bg: #08080e; --bg-2: #0d0d16; --surface: #12121d; --surface-2: #181826; --surface-3: #1f1f30;
  --line: rgba(255, 255, 255, 0.07); --line-2: rgba(255, 255, 255, 0.12);
  --text: #ededf5; --muted: #9b9bb4; --faint: #6b6b85;
  --accent: #7c5cff; --accent-2: #a78bfa; --accent-3: #c4b5fd; --accent-glow: rgba(124, 92, 255, 0.35);
  --green: #22c55e; --amber: #f59e0b; --red: #ef4444; --blue: #3b82f6; --pink: #ec4899;
  --radius: 14px; --radius-lg: 20px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--accent-3); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.hidden { display: none !important; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
  font-weight: 650; font-size: 14px; cursor: pointer; transition: transform 0.12s, background 0.15s, border-color 0.15s, box-shadow 0.2s; white-space: nowrap; text-decoration: none; }
.btn:hover { background: var(--surface-3); border-color: rgba(255, 255, 255, 0.18); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.primary { background: linear-gradient(180deg, #8b6dff, #6d4cf5); border-color: rgba(255, 255, 255, 0.18); color: #fff; box-shadow: 0 8px 30px -8px var(--accent-glow), 0 1px 0 rgba(255, 255, 255, 0.25) inset; }
.btn.primary:hover { background: linear-gradient(180deg, #9a80ff, #7a5bff); box-shadow: 0 10px 36px -6px var(--accent-glow), 0 1px 0 rgba(255, 255, 255, 0.25) inset; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.danger { color: #fca5a5; }
.btn.danger:hover { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.35); }
.btn.big { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn svg { width: 18px; height: 18px; flex: none; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 700; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted); }
.pill.green { color: #86efac; background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.25); }
.pill.amber { color: #fcd34d; background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.25); }
.pill.red { color: #fca5a5; background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.25); }
.pill.violet { color: var(--accent-3); background: rgba(124, 92, 255, 0.12); border-color: rgba(124, 92, 255, 0.3); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: var(--text); }
.logo:hover { color: var(--text); }
.logo .mark { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, #b9a6ff, #7c5cff 55%, #4c2fd6); box-shadow: 0 6px 24px -6px var(--accent-glow), 0 1px 0 rgba(255, 255, 255, 0.35) inset; }
.logo .mark svg { width: 18px; height: 18px; }

/* ==================== the website ==================== */
.site { overflow-x: hidden; }
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); background: rgba(8, 8, 14, 0.7); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.nav .links { display: flex; gap: 26px; margin-left: 12px; }
.nav .links a { color: var(--muted); font-weight: 600; font-size: 14px; }
.nav .links a:hover { color: var(--text); }
.nav .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
@media (max-width: 760px) { .nav .links { display: none; } .nav .right .btn.ghost { display: none; } }

.glow-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.glow-bg::before { content: ""; position: absolute; width: 900px; height: 900px; left: 50%; top: -420px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(124, 92, 255, 0.28), transparent); }
.glow-bg::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 75%); }

.hero { position: relative; padding: 90px 0 70px; text-align: center; }
.hero .badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); font-size: 13px; font-weight: 600; color: var(--muted); }
.hero .badge b { background: var(--accent); color: #fff; padding: 2px 9px; border-radius: 99px; font-size: 11px; letter-spacing: 0.04em; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 800; margin: 26px auto 18px; max-width: 900px; }
.grad { background: linear-gradient(100deg, #fff 10%, var(--accent-3) 45%, var(--accent) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); max-width: 640px; margin: 0 auto 32px; }
.hero .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .fine { margin-top: 16px; font-size: 13px; color: var(--faint); display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.hero .fine span::before { content: "✓ "; color: var(--green); font-weight: 800; }

/* A mock Discord window */
.discord { position: relative; margin: 64px auto 0; max-width: 980px; border-radius: 18px; border: 1px solid var(--line-2); background: #1e1f22; box-shadow: 0 50px 120px -30px rgba(124, 92, 255, 0.35), 0 30px 60px -30px #000; overflow: hidden; text-align: left; display: grid; grid-template-columns: 72px 220px 1fr; min-height: 470px; }
.discord .rail { background: #1e1f22; padding: 12px 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.discord .rail i { width: 48px; height: 48px; border-radius: 16px; background: #313338; display: block; }
.discord .rail i.on { background: linear-gradient(135deg, #8b6dff, #5b3bdb); border-radius: 14px; }
.discord .chans { background: #2b2d31; padding: 14px 8px; font-size: 14px; color: #949ba4; }
.discord .chans .sv { color: #f2f3f5; font-weight: 700; padding: 0 8px 12px; border-bottom: 1px solid #1f2023; margin: 0 -8px 10px; padding-left: 16px; }
.discord .chans .cat { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; padding: 12px 8px 4px; }
.discord .chans .c { padding: 5px 8px; border-radius: 5px; }
.discord .chans .c.on { background: #404249; color: #f2f3f5; }
.discord .chat { background: #313338; padding: 18px 20px; display: flex; flex-direction: column; gap: 16px; }
.dmsg { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.dmsg .av { width: 40px; height: 40px; border-radius: 50%; background: #5865f2; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 16px; }
.dmsg .av.bot { background: linear-gradient(135deg, #8b6dff, #5b3bdb); }
.dmsg .av.bot svg { width: 22px; height: 22px; }
.dmsg .who { font-weight: 600; color: #f2f3f5; font-size: 15px; }
.dmsg .who .tag { background: #5865f2; color: #fff; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; margin-left: 4px; vertical-align: 2px; }
.dmsg .who time { color: #949ba4; font-size: 12px; font-weight: 500; margin-left: 6px; }
.dmsg .txt { color: #dbdee1; font-size: 15px; }
.dmsg .txt .mention { background: rgba(88, 101, 242, 0.3); color: #c9cdfb; padding: 0 2px; border-radius: 3px; font-weight: 500; }
.dembed { margin-top: 6px; max-width: 520px; background: #2b2d31; border-left: 4px solid var(--accent); border-radius: 4px; padding: 10px 14px 12px; }
.dembed .t { color: #f2f3f5; font-weight: 700; font-size: 15px; }
.dembed .d { color: #dbdee1; font-size: 14px; margin-top: 2px; white-space: pre-wrap; word-break: break-word; }
.dembed .f { color: #949ba4; font-size: 12px; margin-top: 8px; }
.dembed img { border-radius: 6px; margin-top: 10px; max-width: 100%; }
.dbtns { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.dbtns span { background: #4e5058; color: #fff; padding: 5px 14px; border-radius: 4px; font-size: 14px; font-weight: 500; }
.dbtns span.p { background: #5865f2; } .dbtns span.g { background: #248046; }
.wcard { margin-top: 8px; width: min(440px, 100%); aspect-ratio: 1100 / 420; border-radius: 10px; background: radial-gradient(circle at 15% 10%, rgba(124, 92, 255, 0.45), transparent 55%), radial-gradient(circle at 95% 100%, rgba(124, 92, 255, 0.3), transparent 50%), linear-gradient(135deg, #0f0f1a, #191530);
  border: 1px solid rgba(255, 255, 255, 0.08); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.wcard .ava { width: 26%; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(135deg, #f472b6, #8b5cf6); border: 3px solid var(--accent); box-shadow: 0 0 30px var(--accent-glow); margin-bottom: 6px; }
.wcard b { color: var(--accent-2); letter-spacing: 0.3em; font-size: 11px; } .wcard strong { color: #fff; font-size: 20px; line-height: 1.1; } .wcard small { color: rgba(255, 255, 255, 0.6); font-size: 11px; }
@media (max-width: 860px) { .discord { grid-template-columns: 1fr; } .discord .rail, .discord .chans { display: none; } }

.section { padding: 100px 0; position: relative; }
.section.tight { padding: 60px 0; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); }
.section h2 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.08; letter-spacing: -0.035em; margin: 12px 0 14px; font-weight: 800; }
.section .sub { color: var(--muted); font-size: 17px; max-width: 620px; }
.center { text-align: center; } .center .sub { margin: 0 auto; }

.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stats-strip div { background: var(--bg-2); padding: 26px; text-align: center; }
.stats-strip b { display: block; font-size: 34px; letter-spacing: -0.03em; font-weight: 800; }
.stats-strip span { color: var(--muted); font-size: 14px; }
@media (max-width: 700px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }
.feature { position: relative; padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent), var(--bg-2); transition: border-color 0.2s, transform 0.2s; overflow: hidden; }
.feature:hover { border-color: rgba(124, 92, 255, 0.4); transform: translateY(-2px); }
.feature::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(124, 92, 255, 0.12), transparent 40%); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.feature:hover::after { opacity: 1; }
.feature .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(124, 92, 255, 0.12); border: 1px solid rgba(124, 92, 255, 0.25); color: var(--accent-3); margin-bottom: 16px; }
.feature .ic svg { width: 21px; height: 21px; }
.feature h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }
.feature.big { grid-column: span 2; }
@media (max-width: 620px) { .feature.big { grid-column: auto; } }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px; background: rgba(34, 197, 94, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386efac' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat; }
.checks li b { color: var(--text); font-weight: 650; }

.mock-dash { border-radius: var(--radius-lg); border: 1px solid var(--line-2); background: var(--bg-2); box-shadow: 0 40px 100px -40px rgba(124, 92, 255, 0.4); overflow: hidden; }
.mock-dash .top { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mock-dash .top i { width: 10px; height: 10px; border-radius: 50%; background: #2a2a3a; }
.mock-dash .body { display: grid; grid-template-columns: 150px 1fr; min-height: 330px; }
.mock-dash .side { border-right: 1px solid var(--line); padding: 14px 10px; display: grid; gap: 4px; align-content: start; }
.mock-dash .side span { font-size: 12px; color: var(--muted); padding: 7px 10px; border-radius: 8px; }
.mock-dash .side span.on { background: rgba(124, 92, 255, 0.15); color: var(--accent-3); font-weight: 700; }
.mock-dash .main { padding: 20px; display: grid; gap: 12px; align-content: start; }
.mock-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; }
.mock-row small { display: block; color: var(--faint); font-weight: 500; }
.tog { width: 38px; height: 22px; border-radius: 99px; background: #2a2a3c; position: relative; flex: none; }
.tog::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: 0.2s; }
.tog.on { background: var(--accent); } .tog.on::after { left: 19px; }

.price-card { position: relative; max-width: 460px; margin: 48px auto 0; padding: 36px; border-radius: 26px; background: linear-gradient(180deg, rgba(124, 92, 255, 0.12), rgba(124, 92, 255, 0.02)), var(--bg-2); border: 1px solid rgba(124, 92, 255, 0.35); box-shadow: 0 40px 100px -40px rgba(124, 92, 255, 0.5); text-align: left; }
.price-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(160deg, rgba(196, 181, 253, 0.6), transparent 40%, transparent 60%, rgba(124, 92, 255, 0.5)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.price-card .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(180deg, #8b6dff, #6d4cf5); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; padding: 5px 14px; border-radius: 99px; text-transform: uppercase; box-shadow: 0 8px 24px -6px var(--accent-glow); }
.price-card .amount { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 4px; }
.price-card .amount b { font-size: 60px; letter-spacing: -0.05em; font-weight: 800; }
.price-card .amount span { color: var(--muted); font-weight: 600; }
.price-card .btn { width: 100%; margin-top: 26px; }

.faq { max-width: 760px; margin: 40px auto 0; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-2); font-size: 22px; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

.cta-band { position: relative; border-radius: 28px; padding: 64px 32px; text-align: center; overflow: hidden; border: 1px solid rgba(124, 92, 255, 0.3); background: radial-gradient(600px 300px at 50% 0%, rgba(124, 92, 255, 0.35), transparent), var(--bg-2); }
.cta-band h2 { margin-top: 0; }

.footer { border-top: 1px solid var(--line); padding: 40px 0 50px; color: var(--faint); font-size: 14px; }
.footer .wrap { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.footer nav { margin-left: auto; display: flex; gap: 22px; }
.footer nav a { color: var(--muted); }

.legal { max-width: 760px; margin: 0 auto; padding: 70px 0 90px; }
.legal h1 { font-size: 40px; letter-spacing: -0.03em; }
.legal h2 { font-size: 20px; margin-top: 34px; }
.legal p, .legal li { color: var(--muted); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ==================== the dashboard ==================== */
.app { display: grid; grid-template-columns: 272px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: 1px solid var(--line); background: var(--bg-2); padding: 18px 14px 24px; display: flex; flex-direction: column; gap: 6px; scrollbar-width: thin; }
.sidebar .logo { padding: 4px 8px 16px; }
.server-switch { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; margin-bottom: 10px; width: 100%; text-align: left; }
.server-switch:hover { border-color: var(--line-2); }
.server-switch .name { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-switch .chev { margin-left: auto; color: var(--faint); }
.gicon { width: 36px; height: 36px; border-radius: 11px; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: linear-gradient(135deg, #3b2f73, #22223a); color: #fff; overflow: hidden; }
.gicon img { width: 100%; height: 100%; object-fit: cover; }
.gicon.lg { width: 64px; height: 64px; border-radius: 18px; font-size: 20px; }
.nav-group { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); padding: 14px 10px 6px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; border: 0; background: none; width: 100%; text-align: left; }
.nav-item svg { width: 18px; height: 18px; flex: none; opacity: 0.85; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.on { background: linear-gradient(90deg, rgba(124, 92, 255, 0.18), rgba(124, 92, 255, 0.05)); color: #fff; box-shadow: inset 2px 0 0 var(--accent); }
.nav-item.on svg { color: var(--accent-3); opacity: 1; }
.nav-item .state { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: #2d2d42; }
.nav-item .state.on { background: var(--green); box-shadow: 0 0 8px rgba(34, 197, 94, 0.7); }
.sidebar .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--line); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #f472b6, #8b5cf6); flex: none; overflow: hidden; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.main { min-width: 0; position: relative; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 14px 32px; background: rgba(8, 8, 14, 0.75); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); min-height: 64px; }
.topbar .crumbs { color: var(--muted); font-size: 14px; font-weight: 600; display: flex; gap: 8px; align-items: center; min-width: 0; }
.topbar .crumbs b { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; }
.content { padding: 30px 32px 140px; max-width: 1180px; }
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 60; left: 0; top: 0; width: 290px; transform: translateX(-102%); transition: transform 0.25s; box-shadow: 30px 0 60px rgba(0, 0, 0, 0.5); }
  .sidebar.open { transform: none; }
  .menu-btn { display: inline-flex; }
  .topbar, .content { padding-left: 18px; padding-right: 18px; }
}
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 55; }

.page-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 26px; }
.page-head .ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; flex: none; background: linear-gradient(135deg, rgba(124, 92, 255, 0.25), rgba(124, 92, 255, 0.08)); border: 1px solid rgba(124, 92, 255, 0.3); color: var(--accent-3); }
.page-head .ic svg { width: 25px; height: 25px; }
.page-head h1 { margin: 0; font-size: 28px; letter-spacing: -0.03em; line-height: 1.15; }
.page-head p { margin: 4px 0 0; color: var(--muted); max-width: 640px; }
.page-head .act { margin-left: auto; display: flex; gap: 10px; align-items: center; flex: none; }
@media (max-width: 640px) { .page-head { flex-wrap: wrap; } .page-head .act { margin-left: 0; width: 100%; } }

.card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card h2 { margin: 0 0 4px; font-size: 17px; letter-spacing: -0.01em; }
.card > .hint { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.card.off { opacity: 0.55; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .grid.two, .grid.three { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .grid.four { grid-template-columns: 1fr; } }

/* Fields */
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
@media (max-width: 820px) { .fields { grid-template-columns: 1fr; } }
.field { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.field.wide { grid-column: 1 / -1; }
.field > label, .field .lbl { font-size: 13px; font-weight: 700; color: #d7d7e4; display: flex; align-items: center; gap: 8px; }
.field .help { font-size: 12.5px; color: var(--faint); margin-top: -2px; }
.input, .select, textarea.input { width: 100%; height: 42px; padding: 0 13px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); transition: border-color 0.15s, box-shadow 0.15s; outline: none; }
textarea.input { height: auto; min-height: 96px; padding: 11px 13px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, textarea.input:focus { border-color: rgba(124, 92, 255, 0.7); box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.15); }
.select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239b9bb4' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.unit-wrap { position: relative; }
.unit-wrap .unit { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 13px; pointer-events: none; }
.unit-wrap .input { padding-right: 70px; }
.vars { display: flex; gap: 6px; flex-wrap: wrap; }
.vars button { border: 1px dashed var(--line-2); background: transparent; color: var(--accent-3); font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; padding: 3px 8px; border-radius: 7px; cursor: pointer; }
.vars button:hover { border-color: var(--accent); background: rgba(124, 92, 255, 0.1); }
.color-row { display: flex; gap: 10px; align-items: center; }
.color-row input[type="color"] { width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--bg-2); padding: 4px; cursor: pointer; }
.color-row input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; } .color-row input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 7px; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatches button { width: 24px; height: 24px; border-radius: 7px; border: 2px solid transparent; cursor: pointer; }
.swatches button.on { border-color: #fff; }

/* Switch rows */
.switch-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 13px; border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; }
.switch-row:hover { border-color: var(--line-2); }
.switch-row .t { font-weight: 650; font-size: 14px; }
.switch-row .d { font-size: 12.5px; color: var(--faint); }
.switch { position: relative; width: 44px; height: 26px; flex: none; margin-left: auto; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: #2a2a3c; transition: background 0.2s, box-shadow 0.2s; border: 1px solid rgba(255, 255, 255, 0.06); }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.22s cubic-bezier(0.3, 1.4, 0.5, 1); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); }
.switch input:checked + span { background: var(--accent); box-shadow: 0 0 18px -2px var(--accent-glow); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.switch.big { width: 52px; height: 30px; } .switch.big span::after { width: 22px; height: 22px; } .switch.big input:checked + span::after { transform: translateX(22px); }

/* Rule cards (auto-moderation) */
.rule { border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); overflow: hidden; }
.rule .rule-head { display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; }
.rule .rule-head .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); flex: none; }
.rule .rule-head .ic svg { width: 18px; height: 18px; }
.rule.on .rule-head .ic { background: rgba(124, 92, 255, 0.15); color: var(--accent-3); }
.rule .rule-body { padding: 4px 18px 18px; border-top: 1px solid var(--line); padding-top: 16px; }

/* Pickers (channels and roles) */
.picker { position: relative; }
.picker .box { min-height: 42px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 5px 36px 5px 8px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; position: relative; }
.picker .box::after { content: ""; position: absolute; right: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239b9bb4' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/16px no-repeat; }
.picker.open .box { border-color: rgba(124, 92, 255, 0.7); box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.15); }
.picker .ph { color: var(--faint); padding: 0 5px; font-size: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px 0 9px; border-radius: 8px; background: var(--surface-3); font-size: 13px; font-weight: 600; max-width: 100%; }
.chip .x { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; color: var(--faint); cursor: pointer; border: 0; background: none; padding: 0; }
.chip .x:hover { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.chip .rdot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.chip.single { background: none; padding-left: 5px; height: 30px; }
.chip .hash { color: var(--faint); font-weight: 700; }
.pop { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); border-radius: 13px; border: 1px solid var(--line-2); background: #151522; box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.7); overflow: hidden; }
.pop input { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 12px 14px; outline: none; }
.pop .opts { max-height: 280px; overflow-y: auto; padding: 6px; }
.pop .opt { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 550; }
.pop .opt:hover, .pop .opt.hl { background: var(--surface-3); }
.pop .opt.sel { color: var(--accent-3); }
.pop .opt.sel::after { content: "✓"; margin-left: auto; font-weight: 800; }
.pop .opt.dis { opacity: 0.45; cursor: not-allowed; }
.pop .grp { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); padding: 10px 10px 4px; }
.pop .none { padding: 14px; color: var(--faint); font-size: 14px; }

/* Lists of items (role menus, commands…) */
.items { display: grid; gap: 12px; }
.item { border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); }
.item-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 18px; cursor: pointer; }
.item-head .n { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); font-size: 12px; font-weight: 800; flex: none; }
.item-head .ttl { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.item-head .tools { margin-left: auto; display: flex; gap: 4px; flex: none; }
.icon-btn { width: 32px; height: 32px; border-radius: 9px; border: 0; background: transparent; color: var(--faint); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn.del:hover { background: rgba(239, 68, 68, 0.12); color: #fca5a5; }
.icon-btn svg { width: 17px; height: 17px; }
.item-body { padding: 4px 18px 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.item .item { background: var(--surface); }
.add-btn { width: 100%; height: 48px; border-radius: 14px; border: 1.5px dashed var(--line-2); background: transparent; color: var(--muted); font-weight: 650; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.add-btn:hover { border-color: var(--accent); color: var(--accent-3); background: rgba(124, 92, 255, 0.05); }
.add-btn svg { width: 18px; height: 18px; }
.empty { padding: 34px; text-align: center; color: var(--faint); border: 1px dashed var(--line-2); border-radius: 16px; }

/* Save bar */
.savebar { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 140%); z-index: 70; width: min(720px, calc(100% - 28px)); display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 20px; border-radius: 16px;
  background: rgba(20, 20, 32, 0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line-2); box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.8); transition: transform 0.35s cubic-bezier(0.3, 1.3, 0.5, 1); }
.savebar.show { transform: translate(-50%, 0); }
.savebar.shake { animation: shake 0.4s; }
@keyframes shake { 20%, 60% { transform: translate(calc(-50% - 6px), 0); } 40%, 80% { transform: translate(calc(-50% + 6px), 0); } }
.savebar .msg { font-weight: 650; font-size: 14px; }
.savebar .acts { margin-left: auto; display: flex; gap: 8px; }
@media (min-width: 961px) { .savebar { left: calc(50% + 136px); } }

/* Toasts */
.toasts { position: fixed; top: 18px; right: 18px; z-index: 90; display: grid; gap: 10px; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 13px; background: #1a1a29; border: 1px solid var(--line-2); box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7); font-weight: 600; font-size: 14px; animation: tin 0.3s cubic-bezier(0.3, 1.3, 0.5, 1); max-width: 380px; }
.toast.ok::before { content: "✓"; color: #86efac; font-weight: 800; }
.toast.err::before { content: "!"; width: 20px; height: 20px; border-radius: 50%; background: rgba(239, 68, 68, 0.2); color: #fca5a5; display: grid; place-items: center; font-weight: 800; font-size: 12px; flex: none; }
@keyframes tin { from { opacity: 0; transform: translateY(-10px) scale(0.97); } }

/* Overview */
.stat { position: relative; overflow: hidden; }
.stat .k { font-size: 13px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.stat .v { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; margin-top: 4px; }
.stat .chg { font-size: 12px; font-weight: 700; color: var(--faint); }
.stat svg.spark { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 56px; opacity: 0.9; }
.hero-card { position: relative; overflow: hidden; display: flex; gap: 20px; align-items: center; padding: 26px; background: radial-gradient(600px 220px at 0% 0%, rgba(124, 92, 255, 0.22), transparent), var(--surface); }
.hero-card h1 { margin: 0; font-size: 26px; letter-spacing: -0.03em; }
.hero-card .act { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 700px) { .hero-card { flex-wrap: wrap; } .hero-card .act { margin-left: 0; } }
.mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.mod-tile { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; transition: border-color 0.15s; }
.mod-tile:hover { border-color: var(--line-2); }
.mod-tile .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); flex: none; }
.mod-tile.on .ic { background: rgba(124, 92, 255, 0.15); color: var(--accent-3); }
.mod-tile .ic svg { width: 19px; height: 19px; }
.mod-tile .t { font-weight: 700; font-size: 14px; } .mod-tile .d { font-size: 12px; color: var(--faint); }
.activity { display: grid; gap: 2px; }
.activity div { display: flex; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.activity div:last-child { border-bottom: 0; }
.activity time { margin-left: auto; color: var(--faint); font-size: 12px; white-space: nowrap; }

/* Tables */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.lb-row .rk { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: var(--surface-2); }
.lb-row .rk.g1 { background: linear-gradient(135deg, #fde68a, #f59e0b); color: #3b2500; } .lb-row .rk.g2 { background: linear-gradient(135deg, #e5e7eb, #9ca3af); color: #1f2937; } .lb-row .rk.g3 { background: linear-gradient(135deg, #fdba74, #c2410c); color: #2a1000; }
.bar { height: 7px; border-radius: 99px; background: var(--surface-3); overflow: hidden; min-width: 80px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-3)); border-radius: inherit; }

/* Discord previews in the dashboard */
.preview { border-radius: 16px; background: #313338; padding: 16px; border: 1px solid rgba(255, 255, 255, 0.06); }
.preview-label { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }

/* Server picker */
.servers { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.server-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); padding: 22px; display: flex; flex-direction: column; gap: 16px; transition: border-color 0.2s, transform 0.2s; }
.server-card:hover { border-color: rgba(124, 92, 255, 0.4); transform: translateY(-2px); }
.server-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 80px; background: linear-gradient(135deg, rgba(124, 92, 255, 0.25), rgba(236, 72, 153, 0.12)); opacity: 0.6; }
.server-card > * { position: relative; }
.server-card .nm { font-weight: 800; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-card .btn { width: 100%; }

.plan { position: relative; overflow: hidden; }
.plan .amount b { font-size: 46px; letter-spacing: -0.04em; font-weight: 800; }
.loader { display: grid; place-items: center; min-height: 60vh; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(124, 92, 255, 0.2); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.banner { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; margin-bottom: 20px; border: 1px solid rgba(245, 158, 11, 0.3); background: rgba(245, 158, 11, 0.07); font-size: 14px; }
.banner.violet { border-color: rgba(124, 92, 255, 0.35); background: rgba(124, 92, 255, 0.08); }
.banner.red { border-color: rgba(239, 68, 68, 0.35); background: rgba(239, 68, 68, 0.07); }
.banner .btn { margin-left: auto; flex: none; }
@media (max-width: 640px) { .banner { flex-wrap: wrap; } .banner .btn { margin-left: 0; } }
.kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; padding: 2px 6px; border-radius: 6px; background: var(--surface-3); border: 1px solid var(--line-2); }
.is-off { opacity: 0.6; transition: opacity 0.2s; }
.is-off:focus-within, .is-off:hover { opacity: 1; }
svg.i { width: 18px; height: 18px; flex: none; }
.activity svg.i { color: var(--faint); }
.features { grid-auto-flow: dense; }
.switch { display: inline-block; vertical-align: middle; }
.grid > .card + .card { margin-top: 0; }
.grid.wide-side { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .grid.wide-side { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .topbar .right .pill, .topbar .crumbs > span { display: none; }
  .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat .v { font-size: 26px; }
  .content { padding-top: 20px; }
}
@media (max-width: 900px) { .hide-sm { display: none !important; } }
.footer nav { flex-wrap: wrap; }
.legal .lead-p { font-size: 17px; color: var(--text) !important; margin: 18px 0 26px; }
.legal .toc { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); margin-bottom: 20px; }
.legal .toc a { font-size: 13px; padding: 5px 11px; border-radius: 8px; background: var(--surface-2); color: var(--muted); }
.legal .toc a:hover { color: var(--text); }
.legal section { scroll-margin-top: 90px; }
.legal ul { padding-left: 20px; } .legal li { margin: 6px 0; }
.live-pill { display: inline-flex; align-items: center; gap: 9px; margin-top: 14px; padding: 7px 14px; border-radius: 99px; font-size: 13px; font-weight: 700; color: #86efac; background: rgba(34, 197, 94, 0.08); border: 1px solid rgba(34, 197, 94, 0.25); }
.live-pill.off { color: var(--muted); background: rgba(255, 255, 255, 0.03); border-color: var(--line-2); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); animation: live 2s infinite; display: inline-block; }
.live-pill.off .live-dot { background: var(--faint); animation: none; }
.live-dot.sm { width: 6px; height: 6px; vertical-align: 1px; margin-left: 4px; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
