:root {
  --bg: #0c0e12;
  --surface: #12151b;
  --surface-2: #181c23;
  --surface-3: #1e232c;
  --border: rgba(255,255,255,.075);
  --text: #f3f5f7;
  --muted: #8e96a3;
  --muted-2: #606875;
  --lime: #c7ff4a;
  --lime-soft: rgba(199,255,74,.12);
  --purple: #7c6cf2;
  --orange: #ffb25b;
  --red: #ff6b72;
  --green: #46d69a;
  --sidebar: 252px;
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); color: var(--text); }
.live-server-switcher select { width: 145px; color: var(--text); background: transparent; border: 0; outline: 0; font-weight: 700; }
.live-server-switcher option { background: #15101f; }
.live-card { padding: 26px; margin-top: 18px; line-height: 1.65; }
.live-gap { margin-top: 18px; }
.live-loading { color: var(--muted); padding: 50px 0; text-align: center; }
.live-error { color: var(--red); margin-top: 14px !important; }
.live-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.live-table th,.live-table td { padding: 13px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.live-table th { color: var(--muted); font-size: 10px; letter-spacing: 1px; }
.live-table code { color: var(--lime); }
.config-card input[type="checkbox"] { width: 21px; height: 21px; accent-color: var(--lime); }
.field small { color: var(--muted); margin-top: 6px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.is-hidden { display: none !important; }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .035; z-index: 999; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); }

/* Onboarding */
.onboarding-shell { min-height: 100vh; position: relative; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; }
.landing-header { height: 82px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 5vw, 76px); border-bottom: 1px solid rgba(255,255,255,.045); position: relative; z-index: 3; }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 800 21px "Manrope", sans-serif; letter-spacing: -.4px; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--lime); color: #0c1102; box-shadow: 0 0 26px rgba(199,255,74,.12); }
.brand-mark svg { width: 22px; fill: currentColor; stroke: none; }
.brand-mark img, .bot-logo img, .mini-bot img, .preview-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.status-pill { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #b0b6bf; }
.status-pill i { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 5px rgba(70,214,154,.09); }
.avatar { width: 38px; height: 38px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); background: linear-gradient(145deg,#323946,#20252d); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.avatar-small { width: 34px; height: 34px; border-radius: 50%; }
.onboarding-main { width: min(1240px, calc(100% - 48px)); margin: auto; display: grid; grid-template-columns: 1fr .88fr; align-items: center; gap: clamp(46px, 8vw, 120px); padding: 64px 0 80px; position: relative; }
.glow { position: absolute; border-radius: 50%; filter: blur(0); pointer-events: none; }
.glow-one { width: 660px; height: 660px; right: -320px; top: -230px; background: radial-gradient(circle, rgba(132,105,255,.12), transparent 66%); }
.glow-two { width: 520px; height: 520px; left: -280px; bottom: -320px; background: radial-gradient(circle, rgba(199,255,74,.07), transparent 67%); }
.onboarding-copy, .connect-card-wrap { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: #a5acb7; font: 700 11px "Manrope", sans-serif; letter-spacing: 2px; margin-bottom: 23px; }
.eyebrow span { width: 25px; height: 25px; display: grid; place-items: center; color: #0d1008; background: var(--lime); border-radius: 50%; font-size: 10px; letter-spacing: 0; }
.onboarding-copy h1 { font: 700 clamp(48px, 6.2vw, 82px)/.99 "Manrope", sans-serif; letter-spacing: -4px; margin: 0 0 28px; max-width: 680px; }
.onboarding-copy h1 em { font-weight: 400; color: var(--lime); font-style: normal; }
.lead { color: #9ba2ad; font-size: 17px; line-height: 1.65; max-width: 560px; margin: 0 0 42px; }
.steps-row { display: flex; align-items: center; max-width: 540px; }
.mini-step { display: flex; align-items: center; gap: 9px; color: #606875; font-size: 11px; white-space: nowrap; }
.mini-step b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #343a44; font-size: 10px; }
.mini-step.active { color: #dce1e7; }
.mini-step.active b { color: var(--lime); border-color: rgba(199,255,74,.45); background: rgba(199,255,74,.07); }
.step-line { height: 1px; background: #292e36; flex: 1; min-width: 18px; margin: 0 10px; }
.connect-card-wrap { max-width: 470px; margin-left: auto; }
.connect-card { border: 1px solid rgba(255,255,255,.1); background: linear-gradient(155deg, rgba(26,30,38,.98), rgba(15,18,23,.98)); border-radius: 24px; padding: 40px 40px 33px; position: relative; overflow: hidden; box-shadow: 0 34px 90px rgba(0,0,0,.38); }
.connect-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg,rgba(255,255,255,.03),transparent 35%); pointer-events: none; }
.card-accent { position: absolute; height: 3px; top: 0; left: 90px; right: 90px; background: var(--lime); box-shadow: 0 0 28px rgba(199,255,74,.7); border-radius: 0 0 10px 10px; }
.bot-orbit { position: relative; width: 116px; height: 116px; margin: 0 auto 26px; display: grid; place-items: center; }
.orbit-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(199,255,74,.14); animation: rotate 14s linear infinite; }
.orbit-ring::after { content: ""; position: absolute; inset: 13px; border: 1px dashed rgba(255,255,255,.07); border-radius: 50%; }
.orbit-ring i { position: absolute; width: 5px; height: 5px; background: var(--lime); border-radius: 50%; box-shadow: 0 0 9px var(--lime); }
.orbit-ring i:nth-child(1) { left: 6px; top: 28px; }.orbit-ring i:nth-child(2) { right: 7px; bottom: 28px; }.orbit-ring i:nth-child(3) { left: 54px; bottom: -3px; }
@keyframes rotate { to { transform: rotate(360deg); } }
.bot-logo { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(145deg, #d8ff7f, #b3ee2f); color: #141a06; box-shadow: 0 0 40px rgba(199,255,74,.18); }
.bot-logo svg { width: 39px; fill: currentColor; stroke: none; }
.online-dot { position: absolute; right: 20px; bottom: 18px; width: 15px; height: 15px; border-radius: 50%; background: var(--green); border: 4px solid #171b20; }
.connect-content { text-align: center; position: relative; z-index: 1; }
.small-label { color: var(--lime); font: 700 9px "Manrope", sans-serif; letter-spacing: 2px; }
.connect-content h2 { font: 700 23px/1.25 "Manrope",sans-serif; letter-spacing: -.6px; margin: 10px 0 12px; }
.connect-content > p { font-size: 13px; line-height: 1.65; color: #8e96a3; margin: 0 auto 24px; max-width: 360px; }
.primary-button { width: 100%; min-height: 54px; border: 0; border-radius: 12px; background: var(--lime); color: #121605; padding: 0 18px; display: flex; align-items: center; justify-content: center; gap: 11px; font-weight: 700; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; position: relative; }
.primary-button svg { width: 21px; fill: currentColor; stroke: none; }
.primary-button > span { position: absolute; right: 17px; font-size: 19px; transition: transform .2s; }
.primary-button:hover { transform: translateY(-2px); background: #d1ff68; box-shadow: 0 12px 34px rgba(199,255,74,.15); }
.primary-button:hover > span { transform: translateX(3px); }
.trust-row { display: flex; justify-content: center; gap: 20px; margin-top: 17px; color: #69717d; font-size: 9px; }
.trust-row span { display: flex; align-items: center; gap: 5px; }
.trust-row svg { width: 13px; color: #8a929d; }
.floating-chip { position: absolute; background: rgba(25,29,36,.94); border: 1px solid rgba(255,255,255,.085); border-radius: 10px; color: #aeb4bd; font-size: 10px; padding: 9px 12px; box-shadow: 0 14px 34px rgba(0,0,0,.28); backdrop-filter: blur(12px); z-index: 2; }
.floating-chip span { color: var(--lime); font-weight: 700; margin-right: 6px; }
.chip-one { right: -44px; top: 62px; }.chip-two { left: -50px; bottom: 72px; }
.landing-footer { min-height: 58px; padding: 0 clamp(24px, 5vw, 76px); display: flex; justify-content: space-between; align-items: center; color: #525965; font-size: 10px; border-top: 1px solid rgba(255,255,255,.04); }
.landing-footer div { display: flex; gap: 25px; }
.landing-footer a:hover { color: #aab1bb; }

/* Interactive cosmic ambience */
:root { --mouse-x: 72vw; --mouse-y: 24vh; --tilt-x: 0px; --tilt-y: 0px; }
.cursor-aurora { position: fixed; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(420px circle at var(--mouse-x) var(--mouse-y), rgba(119,82,255,.11), transparent 65%), radial-gradient(220px circle at calc(var(--mouse-x) + 80px) calc(var(--mouse-y) - 40px), rgba(62,216,255,.045), transparent 70%); transition: opacity .3s ease; }
.cosmic-vortex { position: absolute; width: 680px; height: 390px; pointer-events: none; z-index: 0; transform: translate3d(var(--tilt-x),var(--tilt-y),0) rotate(-7deg); transition: transform .55s cubic-bezier(.2,.8,.2,1); opacity: .78; }
.cosmic-vortex-landing { right: 20%; top: 9%; }
.cosmic-vortex-setup { right: -170px; top: 50px; width: 620px; height: 360px; opacity: .58; }
.cosmic-vortex span { position: absolute; left: 50%; top: 50%; display: block; transform: translate(-50%,-50%); border-radius: 50%; }
.vortex-halo { width: 96%; height: 75%; background: radial-gradient(ellipse,rgba(108,73,255,.18) 0,rgba(94,54,255,.07) 38%,transparent 70%); filter: blur(34px); animation: haloBreathe 5s ease-in-out infinite alternate; }
.vortex-ring { border: 1px solid rgba(177,154,255,.2); box-shadow: 0 0 18px rgba(115,76,255,.18), inset 0 0 24px rgba(117,82,255,.08); }
.vortex-ring::before,.vortex-ring::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; background: conic-gradient(from 20deg,transparent 0 15%,rgba(180,155,255,.5) 24%,transparent 33% 58%,rgba(105,73,255,.35) 70%,transparent 82%); filter: blur(7px); opacity: .8; }
.vortex-ring::after { inset: 5px; opacity: .35; filter: blur(13px); }
.ring-a { width: 92%; height: 45%; animation: vortexSpin 17s linear infinite; }
.ring-b { width: 73%; height: 34%; transform: translate(-50%,-50%) rotate(8deg); animation: vortexSpinReverse 12s linear infinite; }
.ring-c { width: 52%; height: 24%; border-color: rgba(205,190,255,.34); animation: vortexPulse 4.2s ease-in-out infinite; }
.vortex-core { width: 39%; height: 18%; background: radial-gradient(ellipse,#020207 20%,#05040e 57%,rgba(75,43,171,.72) 72%,transparent 78%); box-shadow: 0 0 25px rgba(10,4,30,.95),0 0 42px rgba(123,78,255,.34); }
@keyframes vortexSpin { to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes vortexSpinReverse { to { transform: translate(-50%,-50%) rotate(-352deg); } }
@keyframes vortexPulse { 0%,100% { transform: translate(-50%,-50%) scale(.94); opacity: .62; } 50% { transform: translate(-50%,-50%) scale(1.05); opacity: 1; } }
@keyframes haloBreathe { to { opacity: .62; transform: translate(-50%,-50%) scale(1.1); } }

/* Quick setup */
.setup-shell { min-height: 100vh; position: relative; overflow: hidden; background: radial-gradient(circle at 75% 5%,rgba(93,63,203,.09),transparent 34%),#0c0e12; }
.setup-header { height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(22px,4vw,64px); border-bottom: 1px solid rgba(255,255,255,.055); position: relative; z-index: 3; backdrop-filter: blur(15px); }
.setup-header-status { display: grid; grid-template-columns: 8px auto auto; gap: 8px; align-items: center; font-size: 10px; color: #78808c; }
.setup-header-status i { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 5px rgba(70,214,154,.08); }
.setup-header-status b { color: #d4d8de; font-weight: 600; padding-left: 8px; border-left: 1px solid var(--border); }
.setup-layout { position: relative; z-index: 2; width: min(1280px,calc(100% - 48px)); min-height: calc(100vh - 76px); margin: 0 auto; padding: clamp(34px,5vh,64px) 0; display: grid; grid-template-columns: 300px minmax(0,840px); gap: clamp(28px,4vw,58px); justify-content: center; align-items: start; }
.setup-sidebar-panel { padding: 7px 0; }
.setup-intro { padding: 0 8px 25px; }
.setup-kicker { color: #9b8dff; font-size: 9px; font-weight: 800; letter-spacing: 2px; }
.setup-intro h1 { margin: 11px 0 10px; font: 700 27px/1.15 "Segoe UI Variable Display","Segoe UI",sans-serif; letter-spacing: -.9px; }
.setup-intro p { margin: 0; color: #777f8c; font-size: 11px; line-height: 1.55; }
.setup-server-card { min-height: 69px; display: grid; grid-template-columns: 40px 1fr 24px; gap: 11px; align-items: center; margin: 0 0 26px; padding: 12px; border: 1px solid rgba(255,255,255,.08); background: rgba(20,23,30,.78); border-radius: 12px; box-shadow: 0 16px 35px rgba(0,0,0,.18); }
.setup-server-card .server-icon { width: 40px; height: 40px; }
.setup-server-card small,.setup-server-card strong,.setup-server-card em { display: block; }
.setup-server-card small { color: #555d69; font-size: 7px; letter-spacing: .8px; }
.setup-server-card strong { margin: 3px 0 2px; font-size: 11px; }
.setup-server-card em { color: #6c7480; font-size: 8px; font-style: normal; }
.connected-check { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: rgba(70,214,154,.09); font-size: 9px; }
.setup-step-list { position: relative; list-style: none; padding: 0; margin: 0 0 28px; }
.setup-step-list::before { content: ""; position: absolute; left: 21px; top: 25px; bottom: 26px; width: 1px; background: #262b33; }
.setup-step-list li { position: relative; }
.setup-step-list button { width: 100%; min-height: 62px; display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 11px; padding: 8px 8px 8px 0; text-align: left; border: 0; color: #69717d; background: transparent; cursor: pointer; border-radius: 10px; }
.setup-step-list button:hover { background: rgba(255,255,255,.025); }
.setup-step-list i { position: relative; z-index: 1; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #303640; background: #0f1116; color: #68707b; font-style: normal; font-size: 10px; transition: .2s; }
.setup-step-list strong,.setup-step-list small { display: block; }
.setup-step-list strong { color: #7d8591; font-size: 10px; font-weight: 600; }
.setup-step-list small { color: #4f5762; font-size: 8px; margin-top: 4px; }
.setup-step-list li.active i { color: #151905; background: var(--lime); border-color: var(--lime); box-shadow: 0 0 24px rgba(199,255,74,.15); }
.setup-step-list li.active strong { color: #f0f2f4; }
.setup-step-list li.active small { color: #777f8a; }
.setup-step-list li.done i { color: var(--green); border-color: rgba(70,214,154,.25); background: #102019; }
.setup-time { display: flex; gap: 10px; align-items: flex-start; padding: 0 9px; color: #5e6671; }
.setup-time > span { color: #8f82ef; font-size: 18px; }
.setup-time strong,.setup-time small { display: block; }
.setup-time strong { color: #878f9a; font-size: 9px; font-weight: 600; }
.setup-time small { margin-top: 3px; font-size: 7px; line-height: 1.4; }
.setup-card { min-height: 675px; overflow: hidden; border: 1px solid rgba(255,255,255,.09); border-radius: 19px; background: linear-gradient(155deg,rgba(24,28,35,.96),rgba(15,18,23,.97)); box-shadow: 0 34px 100px rgba(0,0,0,.36); position: relative; }
.setup-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(118deg,rgba(255,255,255,.025),transparent 28%); }
.setup-card-top { min-height: 47px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; color: #7e8793; font-size: 8px; font-weight: 700; letter-spacing: 1.1px; }
.autosave-state { display: flex; align-items: center; gap: 7px; color: #5f6873; letter-spacing: 0; font-weight: 400; }
.autosave-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.setup-progress-line { height: 2px; background: rgba(255,255,255,.045); }
.setup-progress-line i { height: 100%; display: block; background: linear-gradient(90deg,var(--purple),var(--lime)); box-shadow: 0 0 12px rgba(124,108,242,.45); transition: width .4s ease; }
.setup-content { position: relative; min-height: 537px; padding: 35px 38px 24px; animation: fadeUp .3s ease both; }
.setup-heading { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 29px; }
.setup-number { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #b6aaff; background: rgba(124,108,242,.1); border: 1px solid rgba(124,108,242,.17); font-size: 10px; font-weight: 700; }
.setup-heading h2 { margin: 0 0 7px; font: 700 22px/1.2 "Segoe UI Variable Display","Segoe UI",sans-serif; letter-spacing: -.6px; }
.setup-heading p { margin: 0; max-width: 610px; color: #737c88; font-size: 10px; line-height: 1.55; }
.setup-section { margin-bottom: 24px; }
.compact-section { margin-bottom: 19px; }
.setup-label-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 10px; }
.setup-label-row label { color: #aeb4bd; font-size: 9px; font-weight: 600; }
.setup-label-row > span { color: #59616d; font-size: 8px; }
.setup-label-row code { color: var(--lime); background: rgba(199,255,74,.06); padding: 3px 6px; border-radius: 4px; }
.prefix-picker { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; }
.prefix-option { min-height: 69px; display: grid; place-items: center; align-content: center; gap: 5px; border: 1px solid rgba(255,255,255,.075); border-radius: 10px; background: #12151a; color: #7e8792; cursor: pointer; transition: .18s; }
.prefix-option:hover { border-color: rgba(124,108,242,.32); transform: translateY(-1px); }
.prefix-option b { color: #d4d8de; font: 700 18px ui-monospace,SFMono-Regular,Consolas,monospace; }
.prefix-option span { font-size: 7px; }
.prefix-option.selected { border-color: rgba(199,255,74,.38); background: rgba(199,255,74,.055); box-shadow: inset 0 0 0 1px rgba(199,255,74,.05); }
.prefix-option.selected b { color: var(--lime); }
.custom-prefix { display: grid; gap: 6px; margin-top: 10px; }
.custom-prefix span,.setup-field > span { color: #68717c; font-size: 7px; font-weight: 700; letter-spacing: .7px; }
.custom-prefix input,.setup-field input,.setup-field select { width: 100%; height: 40px; border: 1px solid var(--border); border-radius: 8px; background: #0e1115; color: #d9dde2; padding: 0 11px; outline: 0; font-size: 9px; }
.custom-prefix input:focus,.setup-field input:focus,.setup-field select:focus { border-color: rgba(199,255,74,.28); }
.setup-hint { margin: 8px 0 0; color: #505864; font-size: 7px; }
.setup-two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 15px; }
.setup-field { display: grid; gap: 7px; }
.setup-switch-row,.reaction-master { width: 100%; min-height: 62px; display: grid; grid-template-columns: 38px 1fr 40px; gap: 12px; align-items: center; border: 1px solid var(--border); border-radius: 10px; background: #14171d; text-align: left; padding: 11px 13px; cursor: pointer; }
.switch-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; color: #a99cff; background: rgba(124,108,242,.1); }
.switch-icon svg { width: 17px; }
.setup-switch-row strong,.setup-switch-row small,.reaction-master strong,.reaction-master small { display: block; }
.setup-switch-row strong,.reaction-master strong { font-size: 9px; }
.setup-switch-row small,.reaction-master small { margin-top: 4px; color: #5c6470; font-size: 7px; }
.setup-switch-row > i,.reaction-master > i { width: 37px; height: 21px; padding: 3px; border-radius: 20px; background: #2a3038; }
.setup-switch-row > i b,.reaction-master > i b { display: block; width: 15px; height: 15px; border-radius: 50%; background: #7b838e; transition: .2s; }
.setup-switch-row.active > i,.reaction-master.active > i { background: var(--lime); }
.setup-switch-row.active > i b,.reaction-master.active > i b { transform: translateX(16px); background: #111505; }
.safety-presets { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.safety-preset { min-height: 104px; position: relative; display: grid; align-content: start; gap: 6px; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: #12151a; text-align: left; cursor: pointer; }
.safety-preset > span { color: #8174df; font-size: 17px; }
.safety-preset strong { font-size: 9px; }
.safety-preset strong em { position: absolute; top: 10px; right: 9px; color: var(--lime); font-size: 6px; font-style: normal; letter-spacing: .7px; }
.safety-preset small { color: #59616d; font-size: 7px; line-height: 1.45; }
.safety-preset.selected { border-color: rgba(124,108,242,.4); background: rgba(124,108,242,.075); }
.setup-modules { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.setup-module { min-height: 55px; display: grid; grid-template-columns: 33px 1fr 22px; gap: 9px; align-items: center; padding: 9px; border: 1px solid var(--border); border-radius: 9px; background: #12151a; text-align: left; cursor: pointer; }
.setup-module-icon { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 8px; color: #9b8fff; background: rgba(124,108,242,.09); }
.setup-module-icon svg { width: 15px; }
.setup-module strong,.setup-module small { display: block; }
.setup-module strong { color: #b4bac2; font-size: 8px; }
.setup-module small { color: #535b66; font-size: 7px; margin-top: 3px; }
.setup-module > i { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid #313741; border-radius: 6px; color: #626b76; font-size: 9px; font-style: normal; }
.setup-module.selected { border-color: rgba(199,255,74,.18); background: rgba(199,255,74,.035); }
.setup-module.selected > i { color: var(--lime); background: rgba(199,255,74,.08); border-color: rgba(199,255,74,.2); }
.reaction-master { grid-template-columns: 1fr 40px; margin-bottom: 18px; }
.reaction-builder { display: grid; grid-template-columns: minmax(0,1.18fr) minmax(240px,.82fr); gap: 20px; transition: opacity .2s; }
.reaction-builder.disabled { opacity: .35; pointer-events: none; filter: grayscale(.4); }
.reaction-form { min-width: 0; }
.setup-title-field { margin: 0 0 14px; }
.role-mapping-head { display: flex; justify-content: space-between; color: #69717d; font-size: 7px; font-weight: 700; margin: 0 0 7px; }
.role-mapping-head small { color: #505863; font-weight: 400; }
.reaction-role-rows { display: grid; gap: 7px; }
.reaction-role-row { display: grid; grid-template-columns: 85px minmax(0,1fr) 28px; gap: 7px; align-items: end; }
.reaction-role-row label { display: grid; gap: 5px; }
.reaction-role-row label span { color: #555e69; font-size: 6px; }
.reaction-role-row input,.reaction-role-row select { width: 100%; height: 36px; border: 1px solid var(--border); background: #0e1115; color: #cbd0d6; border-radius: 7px; padding: 0 9px; outline: 0; font-size: 8px; }
.reaction-role-row input { font-size: 15px; text-align: center; }
.remove-role { width: 28px; height: 36px; border: 1px solid var(--border); border-radius: 7px; background: #171a20; color: #626b76; cursor: pointer; }
.remove-role:hover { color: var(--red); border-color: rgba(255,107,114,.2); }
.add-role { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; height: 35px; margin-top: 8px; border: 1px dashed #343a44; border-radius: 7px; background: transparent; color: #757e89; font-size: 8px; cursor: pointer; }
.add-role:hover { color: var(--lime); border-color: rgba(199,255,74,.25); }.add-role svg { width: 13px; }
.reaction-preview { min-width: 0; padding: 13px; border: 1px solid var(--border); border-radius: 10px; background: rgba(11,13,17,.5); }
.reaction-preview > span { display: block; color: #5d6570; font-size: 7px; font-weight: 700; letter-spacing: .8px; margin-bottom: 9px; }
.reaction-preview > p { display: flex; gap: 7px; margin: 10px 0 0; color: #555d68; font-size: 7px; line-height: 1.45; }.reaction-preview > p i { flex: 0 0 auto; width: 6px; height: 6px; margin-top: 2px; border-radius: 50%; background: var(--orange); }
.role-preview-discord { border-radius: 8px; background: #2b2d31; padding: 13px; }
.role-preview-message { display: grid; grid-template-columns: 29px minmax(0,1fr); gap: 8px; }
.role-preview-message > div > strong { font-size: 8px; }.role-preview-message > div > small { display: block; color: #858992; font-size: 6px; margin-top: 2px; }
.role-preview-embed { margin-top: 7px; padding: 10px; border-left: 3px solid #8b7cf6; border-radius: 3px; background: #232428; }
.role-preview-embed > b { font-size: 8px; }.role-preview-embed > p { color: #a3a6ad; font-size: 7px; line-height: 1.45; }
.role-preview-embed > div { display: grid; gap: 5px; }
.role-preview-embed > div span { min-height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 8px; border-radius: 4px; background: #4e5058; color: #f0f1f2; font-size: 8px; }
.role-preview-embed > div span b { font-weight: 500; }
.review-heading .setup-number { color: #141a05; background: var(--lime); border-color: var(--lime); }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.review-card { min-height: 105px; display: grid; grid-template-columns: 37px 1fr auto; gap: 11px; align-items: center; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: #12151a; }
.review-card > span { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 9px; color: #9d91f8; background: rgba(124,108,242,.1); }.review-card > span svg { width: 17px; }
.review-card small,.review-card strong,.review-card p { display: block; }.review-card small { color: #565e69; font-size: 6px; letter-spacing: .7px; }.review-card strong { color: #cdd1d6; margin-top: 4px; font-size: 9px; }.review-card strong code { color: var(--lime); }.review-card p { margin: 4px 0 0; color: #5d6571; font-size: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.review-card button { align-self: start; border: 0; background: transparent; color: #887bed; font-size: 7px; cursor: pointer; }
.review-ready { min-height: 65px; display: flex; gap: 12px; align-items: center; margin-top: 17px; padding: 13px; border: 1px solid rgba(70,214,154,.14); border-radius: 10px; background: rgba(70,214,154,.04); }
.review-ready > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: rgba(70,214,154,.1); }
.review-ready strong { display: block; color: #bec4cb; font-size: 9px; }.review-ready p { margin: 4px 0 0; color: #626b76; font-size: 7px; }
.setup-error { min-height: 24px; padding: 0 38px; color: #ff858b; font-size: 8px; }
.setup-actions { min-height: 66px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; border-top: 1px solid var(--border); background: rgba(10,12,16,.35); }
.setup-actions > div { display: flex; align-items: center; gap: 9px; }
.setup-back,.setup-defaults { height: 36px; border: 0; background: transparent; color: #737b86; font-size: 9px; cursor: pointer; }.setup-back:disabled { opacity: .25; cursor: default; }.setup-back:not(:disabled):hover,.setup-defaults:hover { color: #c5cad0; }
.setup-next { height: 38px; min-width: 112px; display: flex; align-items: center; justify-content: center; gap: 14px; border: 0; border-radius: 8px; background: var(--lime); color: #111504; padding: 0 15px; font-size: 9px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 24px rgba(199,255,74,.1); }.setup-next:hover { background: #d1ff68; transform: translateY(-1px); }.setup-next span { font-size: 13px; }

/* Reaction Roles dashboard */
.role-dashboard-hero { min-height: 260px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; padding: 28px 32px; margin-bottom: 16px; overflow: hidden; background: radial-gradient(circle at 80% 15%,rgba(124,108,242,.12),transparent 38%),linear-gradient(120deg,rgba(124,108,242,.06),#13161b 46%); }
.role-hero-copy > span { color: #8e81ec; font-size: 7px; font-weight: 800; letter-spacing: 1.3px; }.role-hero-copy h2 { margin: 8px 0; font: 700 21px "Segoe UI Variable Display","Segoe UI",sans-serif; }.role-hero-copy p { max-width: 510px; color: #737b87; font-size: 9px; line-height: 1.55; }.role-hero-copy > div { display: flex; gap: 8px; margin-top: 17px; }
.role-hero-preview { max-width: 330px; justify-self: end; width: 100%; box-shadow: 0 16px 40px rgba(0,0,0,.2); }
.role-dashboard-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 16px; }
.dashboard-role-list { padding: 5px 18px; }.dashboard-role-row { min-height: 67px; display: grid; grid-template-columns: 38px 1fr auto auto; gap: 11px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.045); }.dashboard-role-row:last-child { border: 0; }
.dashboard-role-emoji { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: rgba(124,108,242,.09); font-size: 17px; }.dashboard-role-row strong { font-size: 9px; }.dashboard-role-row p { margin: 4px 0 0; color: #5d6570; font-size: 7px; }
.role-check { display: grid; grid-template-columns: 25px 1fr; gap: 9px; align-items: center; min-height: 48px; border-bottom: 1px solid rgba(255,255,255,.045); }.role-check i { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: var(--orange); background: rgba(255,178,91,.08); font-size: 8px; font-style: normal; }.role-check.done i { color: var(--green); background: rgba(70,214,154,.08); }.role-check strong,.role-check small { display: block; }.role-check strong { font-size: 8px; }.role-check small { color: #5d6570; font-size: 7px; margin-top: 3px; }
.nav-badge.setup-done-badge { color: var(--green); background: rgba(70,214,154,.08); }
.progress-track.complete i { width: 100%; }

/* Dashboard shell */
.dashboard-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) 1fr; background: #0e1014; }
.sidebar { background: #0d0f13; border-right: 1px solid var(--border); position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 20; display: flex; flex-direction: column; padding: 0 13px 14px; }
.sidebar-brand { height: 72px; padding: 0 8px; }
.sidebar-brand .brand-mark { width: 31px; height: 31px; border-radius: 9px; }
.sidebar-brand .brand-mark svg { width: 20px; }
.server-switcher { min-height: 64px; border: 1px solid var(--border); background: #15181e; border-radius: 10px; padding: 10px; display: grid; grid-template-columns: 36px 1fr 15px; align-items: center; gap: 10px; cursor: pointer; margin-bottom: 19px; }
.server-icon { width: 36px; height: 36px; display: grid; place-items: center; background: linear-gradient(145deg,#6d62d9,#4d45a7); border-radius: 10px; font-size: 10px; font-weight: 800; }
.server-switcher small { color: #646c78; display: block; font-size: 7px; letter-spacing: .9px; margin-bottom: 3px; }
.server-switcher strong { font-size: 12px; font-weight: 600; }
.server-switcher > svg { width: 15px; color: #67707c; }
.main-nav { overflow-y: auto; scrollbar-width: none; padding-bottom: 10px; }
.nav-label { display: block; color: #4e5560; font-size: 8px; font-weight: 700; letter-spacing: 1.2px; padding: 16px 11px 7px; }
.nav-item { width: 100%; border: 0; background: transparent; color: #848c98; border-radius: 8px; height: 40px; padding: 0 11px; display: flex; align-items: center; gap: 11px; cursor: pointer; font-size: 12px; text-align: left; transition: .18s ease; margin: 1px 0; position: relative; }
.nav-item:hover { color: #d5d9df; background: rgba(255,255,255,.035); }
.nav-item.active { color: #f5f7f8; background: rgba(199,255,74,.085); }
.nav-item.active::before { content: ""; position: absolute; left: -13px; width: 2px; height: 22px; background: var(--lime); box-shadow: 0 0 10px rgba(199,255,74,.45); }
.nav-icon svg { width: 17px; height: 17px; }
.nav-item.active .nav-icon { color: var(--lime); }
.nav-badge { margin-left: auto; background: #252a32; color: #9ca4ae; border-radius: 6px; min-width: 22px; padding: 3px 6px; font-size: 8px; text-align: center; }
.nav-badge.warm { color: var(--orange); background: rgba(255,178,91,.1); }
.sidebar-bottom { margin-top: auto; }
.bot-health { min-height: 51px; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 9px 10px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(70,214,154,.08); }
.bot-health strong, .bot-health small, .user-card strong, .user-card small { display: block; }
.bot-health strong { font-size: 10px; font-weight: 600; }.bot-health small { color: #59616c; font-size: 8px; margin-top: 2px; }
.user-card { border: 0; width: 100%; background: transparent; display: grid; grid-template-columns: 34px 1fr 20px; align-items: center; gap: 9px; text-align: left; padding: 12px 7px 3px; cursor: pointer; border-radius: 8px; }
.user-card:hover { background: rgba(255,255,255,.025); }.user-card strong { font-size: 10px; }.user-card small { font-size: 8px; color: #59616c; margin-top: 3px; }.user-card > svg { width: 17px; color: #5e6671; }
.dashboard-area { grid-column: 2; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 15; height: 72px; border-bottom: 1px solid var(--border); background: rgba(14,16,20,.9); backdrop-filter: blur(20px); display: flex; align-items: center; justify-content: space-between; padding: 0 30px; }
.breadcrumbs { display: flex; align-items: center; gap: 9px; font-size: 11px; color: #646c78; }
.breadcrumbs b { color: #3e444e; font-weight: 400; }.breadcrumbs strong { color: #dce0e5; font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.search-box { width: 205px; height: 35px; border: 1px solid var(--border); border-radius: 8px; background: #13161b; display: flex; align-items: center; padding: 0 9px; gap: 8px; transition: .2s; }
.search-box:focus-within { border-color: rgba(199,255,74,.25); }.search-box svg { width: 14px; color: #68717c; }.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #e5e8eb; font-size: 10px; }.search-box input::placeholder { color: #59616d; }
kbd { border: 1px solid #303640; background: #1b1f26; color: #626b76; border-radius: 4px; font: 8px inherit; padding: 3px 5px; white-space: nowrap; }
.icon-button { width: 35px; height: 35px; border: 1px solid var(--border); border-radius: 8px; background: #13161b; display: grid; place-items: center; cursor: pointer; }.icon-button:hover { background: #1a1e24; }.icon-button svg { width: 16px; }.notification-button { position: relative; }.notification-button i { position: absolute; top: 7px; right: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 2px #14171c; }
.help-button { height: 35px; border: 1px solid var(--border); border-radius: 8px; background: #13161b; padding: 0 12px; display: flex; align-items: center; gap: 7px; color: #929aa5; font-size: 10px; cursor: pointer; }.help-button span { width: 16px; height: 16px; display: grid; place-items: center; border: 1px solid #4a515c; border-radius: 50%; font-size: 8px; }
.menu-button { display: none; }
.view-container { width: min(1240px, calc(100% - 60px)); margin: 0 auto; padding: 34px 0 64px; animation: fadeUp .35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(7px); } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.page-head .eyebrow { margin-bottom: 9px; color: var(--lime); font-size: 8px; letter-spacing: 1.7px; }.page-head .eyebrow span { width: 5px; height: 5px; font-size: 0; }
.page-title { font: 700 29px "Manrope",sans-serif; letter-spacing: -1px; margin: 0 0 7px; }.page-subtitle { margin: 0; color: #747c88; font-size: 11px; }
.button-row { display: flex; gap: 9px; }.secondary-button, .small-primary { height: 36px; border-radius: 8px; padding: 0 13px; border: 1px solid var(--border); background: #16191f; font-size: 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }.secondary-button:hover { background: #1c2027; }.secondary-button svg { width: 14px; }.small-primary { border: 0; background: var(--lime); color: #111504; font-weight: 700; }.small-primary:hover { background: #d2ff6b; }

/* Shared cards */
.card { background: #13161b; border: 1px solid var(--border); border-radius: 12px; }
.welcome-banner { min-height: 153px; background: linear-gradient(112deg, rgba(199,255,74,.095), rgba(199,255,74,.015) 55%, rgba(124,108,242,.055)); position: relative; overflow: hidden; padding: 27px 31px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.welcome-banner::before { content: ""; position: absolute; width: 250px; height: 250px; right: 30px; top: -140px; border: 1px solid rgba(199,255,74,.11); border-radius: 50%; box-shadow: 0 0 0 35px rgba(199,255,74,.025), 0 0 0 70px rgba(199,255,74,.015); }
.welcome-banner h2 { font: 700 20px "Manrope",sans-serif; margin: 0 0 8px; letter-spacing: -.4px; }.welcome-banner h2 span { color: var(--lime); }.welcome-banner p { color: #8b939e; max-width: 530px; font-size: 11px; line-height: 1.55; margin: 0; }.welcome-banner .small-primary { margin-top: 18px; }
.welcome-art { margin-right: 48px; width: 95px; height: 95px; position: relative; z-index: 1; display: grid; place-items: center; }.welcome-art::before { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(199,255,74,.24); border-radius: 25px; transform: rotate(45deg); }.welcome-art .bot-logo { width: 55px; height: 55px; border-radius: 17px; }.welcome-art .bot-logo svg { width: 29px; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 17px; }
.stat-card { padding: 18px 19px; min-height: 112px; position: relative; overflow: hidden; }.stat-card::after { content: ""; position: absolute; width: 75px; height: 75px; border-radius: 50%; right: -28px; top: -28px; background: var(--tint,rgba(199,255,74,.04)); }.stat-top { display: flex; justify-content: space-between; align-items: center; color: #737b86; font-size: 9px; }.stat-icon { width: 29px; height: 29px; border-radius: 8px; display: grid; place-items: center; color: var(--accent,var(--lime)); background: var(--tint,rgba(199,255,74,.08)); }.stat-icon svg { width: 15px; }.stat-number { font: 700 24px "Manrope",sans-serif; letter-spacing: -.8px; margin-top: 14px; }.stat-note { color: #5e6672; font-size: 8px; margin-left: 7px; }.stat-note.up { color: var(--green); }.stat-note.warn { color: var(--orange); }
.content-grid { display: grid; grid-template-columns: 1.45fr .75fr; gap: 16px; }.card-header { min-height: 57px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }.card-header h3 { margin: 0; font: 600 12px "Manrope",sans-serif; }.card-header p { margin: 3px 0 0; color: #5d6570; font-size: 8px; }.card-header a { color: var(--lime); font-size: 8px; }.activity-list { padding: 4px 19px 8px; }.activity { display: grid; grid-template-columns: 31px 1fr auto; gap: 10px; align-items: center; min-height: 59px; border-bottom: 1px solid rgba(255,255,255,.045); }.activity:last-child { border-bottom: 0; }.activity-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; background: var(--tint); color: var(--accent); }.activity-icon svg { width: 14px; }.activity strong { display: block; font-size: 9px; font-weight: 600; }.activity p { font-size: 8px; color: #5f6772; margin: 3px 0 0; }.activity time { color: #515963; font-size: 7px; }
.quick-actions { padding: 13px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }.quick-action { min-height: 78px; padding: 12px; background: #171a20; border: 1px solid rgba(255,255,255,.055); border-radius: 9px; cursor: pointer; text-align: left; transition: .2s; }.quick-action:hover { border-color: rgba(199,255,74,.2); transform: translateY(-1px); }.quick-action svg { width: 17px; color: var(--lime); margin-bottom: 9px; }.quick-action strong { display: block; font-size: 9px; }.quick-action small { color: #5f6772; font-size: 7px; }
.setup-progress { padding: 19px; }.progress-top { display: flex; align-items: end; justify-content: space-between; margin-bottom: 11px; }.progress-top span { color: #69717c; font-size: 8px; }.progress-top strong { color: var(--lime); font-size: 12px; }.progress-track { height: 5px; border-radius: 8px; background: #252a31; overflow: hidden; margin-bottom: 18px; }.progress-track i { display: block; width: 72%; height: 100%; background: var(--lime); border-radius: inherit; box-shadow: 0 0 8px rgba(199,255,74,.25); }.checklist { display: grid; gap: 10px; }.check-row { display: flex; align-items: center; gap: 9px; font-size: 8px; color: #727a85; }.check-row i { width: 17px; height: 17px; border: 1px solid #343b44; border-radius: 5px; display: grid; place-items: center; font-style: normal; font-size: 8px; }.check-row.done { color: #adb4bd; }.check-row.done i { background: rgba(199,255,74,.09); border-color: rgba(199,255,74,.25); color: var(--lime); }

/* Config pages */
.config-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(260px,.6fr); gap: 16px; }.config-card { padding: 0; overflow: hidden; }.config-section { padding: 20px; border-bottom: 1px solid var(--border); }.config-section:last-child { border-bottom: 0; }.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 52px; }.setting-row + .setting-row { border-top: 1px solid rgba(255,255,255,.045); }.setting-copy strong { display: block; font-size: 10px; font-weight: 600; }.setting-copy p { color: #626a75; font-size: 8px; line-height: 1.45; margin: 4px 0 0; }.toggle { width: 37px; height: 21px; border: 0; background: #2a3038; border-radius: 20px; padding: 3px; cursor: pointer; transition: .2s; flex: 0 0 auto; }.toggle i { display: block; width: 15px; height: 15px; border-radius: 50%; background: #7b838e; transition: .2s; }.toggle.on { background: var(--lime); }.toggle.on i { transform: translateX(16px); background: #111505; }.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 13px; }.field { display: grid; gap: 7px; }.field.full { grid-column: 1/-1; }.field label { color: #737b86; font-size: 8px; font-weight: 600; }.field input,.field select,.field textarea { width: 100%; border: 1px solid var(--border); background: #0f1216; color: #ccd1d7; border-radius: 8px; padding: 10px 11px; outline: 0; font-size: 9px; }.field textarea { min-height: 85px; resize: vertical; line-height: 1.55; }.field input:focus,.field select:focus,.field textarea:focus { border-color: rgba(199,255,74,.25); }.side-card { padding: 18px; align-self: start; }.side-card h3 { font: 600 11px "Manrope",sans-serif; margin: 0 0 14px; }.preview-discord { background: #292c32; border-radius: 9px; padding: 15px; }.preview-message { display: grid; grid-template-columns: 31px 1fr; gap: 9px; }.preview-avatar { width: 31px; height: 31px; border-radius: 50%; background: var(--lime); color: #111505; display: grid; place-items: center; font-size: 8px; font-weight: 800; }.preview-message strong { font-size: 9px; }.bot-tag { background: #5b5fef; color: white; font-size: 6px; padding: 2px 4px; border-radius: 2px; margin-left: 4px; }.preview-message time { color: #7d828d; font-size: 7px; margin-left: 4px; }.preview-message p { font-size: 8px; color: #c2c5ca; margin: 4px 0 0; line-height: 1.55; }.preview-embed { border-left: 3px solid var(--lime); background: #22252a; margin-top: 7px; padding: 10px; border-radius: 3px; }.preview-embed b { display: block; font-size: 8px; margin-bottom: 5px; }.preview-embed small { color: #9da2aa; font-size: 7px; }.tips { margin-top: 13px; padding: 13px; border: 1px solid rgba(199,255,74,.1); background: rgba(199,255,74,.035); border-radius: 8px; color: #7c8490; font-size: 8px; line-height: 1.55; }.tips b { color: var(--lime); }
.module-list { display: grid; gap: 10px; }.module-row { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--border); background: #15181e; border-radius: 9px; }.module-icon { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--tint,rgba(199,255,74,.08)); color: var(--accent,var(--lime)); }.module-icon svg { width: 17px; }.module-row strong { display: block; font-size: 10px; }.module-row p { font-size: 8px; color: #626a75; margin: 4px 0 0; }.module-action { color: #8d95a0; background: #20242b; border: 1px solid var(--border); border-radius: 7px; padding: 7px 10px; font-size: 8px; cursor: pointer; }.module-action:hover { color: var(--lime); }
.log-table { width: 100%; border-collapse: collapse; }.log-table th { text-align: left; color: #555e69; font-size: 7px; letter-spacing: .8px; padding: 12px 18px; border-bottom: 1px solid var(--border); }.log-table td { padding: 13px 18px; border-bottom: 1px solid rgba(255,255,255,.04); color: #8c949f; font-size: 8px; }.log-table tr:last-child td { border-bottom: 0; }.log-table td strong { color: #cbd0d6; font-size: 9px; }.tag { display: inline-flex; border-radius: 5px; padding: 4px 7px; font-size: 7px; background: rgba(199,255,74,.08); color: var(--lime); }.tag.orange { color: var(--orange); background: rgba(255,178,91,.08); }.tag.red { color: var(--red); background: rgba(255,107,114,.08); }.empty-mini { padding: 30px; text-align: center; color: #626a75; font-size: 9px; }

/* Commands */
.command-summary { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 16px; padding: 20px; margin-bottom: 15px; background: linear-gradient(115deg,rgba(124,108,242,.11),rgba(19,22,27,.98) 48%,rgba(255,178,91,.04)); overflow: hidden; position: relative; }
.command-summary::after { content: ""; position: absolute; width: 180px; height: 180px; right: -65px; top: -100px; border: 1px solid rgba(124,108,242,.16); border-radius: 50%; box-shadow: 0 0 0 28px rgba(124,108,242,.025); }
.command-summary-icon { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; color: #a99cff; background: rgba(124,108,242,.12); border: 1px solid rgba(124,108,242,.18); }
.command-summary-icon svg { width: 24px; }
.command-summary > div:nth-child(2) { position: relative; z-index: 1; }
.command-summary > div:nth-child(2) > span { color: #8f83ed; font-size: 7px; font-weight: 800; letter-spacing: 1.3px; display: block; margin-bottom: 4px; }
.command-summary > div:nth-child(2) > strong { display: block; font: 700 18px "Segoe UI Variable Display","Segoe UI",sans-serif; }
.command-summary > div:nth-child(2) > p { margin: 4px 0 0; color: #68717d; font-size: 8px; }
.command-summary-stats { display: flex; gap: 8px; position: relative; z-index: 1; }
.command-summary-stats span { min-width: 66px; padding: 10px; border: 1px solid var(--border); background: rgba(8,10,13,.36); border-radius: 8px; color: #6d7580; font-size: 7px; text-align: center; }
.command-summary-stats b { display: block; color: #dce0e5; font-size: 13px; margin-bottom: 2px; }
.command-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.command-search { flex: 1; min-width: 190px; height: 38px; border: 1px solid var(--border); background: #13161b; border-radius: 8px; display: flex; align-items: center; gap: 8px; padding: 0 11px; }
.command-search:focus-within { border-color: rgba(124,108,242,.38); }.command-search svg { width: 15px; color: #676f7a; }.command-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #e0e3e7; font-size: 9px; }
.command-filters { display: flex; padding: 3px; border: 1px solid var(--border); background: #12151a; border-radius: 8px; }
.command-filter { height: 30px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: #69717c; font-size: 8px; cursor: pointer; }.command-filter:hover { color: #b8bec6; }.command-filter.active { color: #fff; background: #252a32; box-shadow: 0 2px 7px rgba(0,0,0,.2); }
.command-groups { display: grid; gap: 14px; }.command-group.filtered-out,.command-row.filtered-out { display: none; }
.command-group .card-header h3 { display: flex; align-items: center; gap: 8px; }.command-group .card-header h3 svg { width: 15px; color: #a99cff; }
.command-list { padding: 0 18px; }
.command-row { min-height: 64px; display: grid; grid-template-columns: minmax(0,1fr) 86px 31px 38px; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.045); }.command-row:last-child { border-bottom: 0; }
.command-main { min-width: 0; display: grid; grid-template-columns: 128px minmax(0,1fr); align-items: center; gap: 13px; }
.command-main code { color: #b6aefe; background: rgba(124,108,242,.085); border: 1px solid rgba(124,108,242,.12); border-radius: 6px; padding: 7px 8px; font: 600 9px ui-monospace,SFMono-Regular,Consolas,monospace; white-space: nowrap; }
.command-main strong { display: block; font-size: 9px; font-weight: 600; }.command-main p { margin: 4px 0 0; color: #5f6772; font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.permission-pill { justify-self: start; color: #727a86; background: #1d2128; border-radius: 5px; padding: 5px 7px; font-size: 7px; }
.command-copy { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--border); background: #181b21; border-radius: 7px; color: #68717c; cursor: pointer; }.command-copy:hover { color: #b6aefe; border-color: rgba(124,108,242,.2); }.command-copy svg { width: 13px; }.command-row .toggle { justify-self: end; }

/* modal & toast */
.modal-backdrop { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(3,4,7,.78); backdrop-filter: blur(10px); animation: fadeIn .2s ease; }.discord-modal { width: min(440px,100%); border-radius: 16px; background: #313338; padding: 30px 34px 25px; box-shadow: 0 30px 100px rgba(0,0,0,.55); position: relative; animation: modalIn .28s ease both; }.modal-close { position: absolute; right: 15px; top: 12px; border: 0; background: transparent; color: #9297a1; font-size: 24px; cursor: pointer; }.discord-logo { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin: 0 auto 14px; background: #5865f2; }.discord-logo svg { width: 27px; fill: white; stroke: none; }.discord-kicker { text-align: center; font-size: 8px; letter-spacing: 1.4px; color: #a8abb2; margin: 0 0 7px; }.discord-modal h2 { text-align: center; font-size: 20px; line-height: 1.35; margin: 0 0 23px; }.auth-bot-row { display: flex; align-items: center; gap: 10px; padding: 11px; background: rgba(0,0,0,.15); border-radius: 7px; margin-bottom: 17px; }.mini-bot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: #141904; }.mini-bot svg { width: 21px; fill: currentColor; stroke: none; }.auth-bot-row strong,.auth-bot-row small { display: block; }.auth-bot-row strong { font-size: 11px; }.auth-bot-row small { color: #979ba3; font-size: 8px; margin-top: 3px; }.auth-bot-row small span { color: #65d28a; }.select-label { display: block; font-size: 8px; font-weight: 700; color: #b5b8bf; margin: 0 0 7px; }.select-wrap { position: relative; }.select-wrap select { appearance: none; width: 100%; background: #1e1f22; border: 1px solid #1a1b1e; border-radius: 4px; color: #dbdee1; padding: 11px 34px 11px 11px; outline: none; font-size: 10px; }.select-wrap svg { width: 15px; position: absolute; right: 11px; top: 11px; pointer-events: none; color: #8a8d94; }.permissions { margin: 19px 0; }.permissions p { font-size: 9px; color: #aeb1b7; }.permissions div { font-size: 9px; color: #b8bbc2; margin-top: 8px; }.permissions span { color: #5fcb83; margin-right: 7px; }.discord-button { width: 100%; height: 44px; color: white; background: #5865f2; border: 0; border-radius: 4px; font-weight: 600; font-size: 11px; cursor: pointer; }.discord-button:hover { background: #4752c4; }.discord-button.loading { color: transparent; position: relative; pointer-events: none; }.discord-button.loading::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: white; border-radius: 50%; left: calc(50% - 8px); top: 13px; animation: rotate 1s linear infinite; }.auth-note { color: #777b84; font-size: 7px; text-align: center; line-height: 1.4; margin: 13px 0 0; }.toast { position: fixed; top: 86px; right: 24px; z-index: 300; width: min(370px,calc(100% - 32px)); min-height: 76px; padding: 14px 40px 14px 14px; display: grid; grid-template-columns: 35px 1fr; gap: 11px; align-items: center; background: #181c21; border: 1px solid rgba(70,214,154,.22); box-shadow: 0 18px 55px rgba(0,0,0,.4); border-radius: 11px; transform: translateX(calc(100% + 30px)); opacity: 0; transition: .35s ease; }.toast.show { transform: translateX(0); opacity: 1; }.toast-icon { width: 35px; height: 35px; border-radius: 9px; display: grid; place-items: center; background: rgba(70,214,154,.1); color: var(--green); }.toast strong { font-size: 10px; }.toast p { color: #737c87; font-size: 8px; margin: 4px 0 0; }.toast button { position: absolute; right: 11px; top: 9px; background: transparent; border: 0; color: #68717b; cursor: pointer; font-size: 17px; }
@keyframes fadeIn { from { opacity: 0; } } @keyframes modalIn { from { opacity: 0; transform: translateY(13px) scale(.98); } }

@media (max-width: 980px) {
  .onboarding-main { grid-template-columns: 1fr; max-width: 650px; padding-top: 55px; }.onboarding-copy { text-align: center; }.onboarding-copy h1,.onboarding-copy .lead { margin-left: auto; margin-right: auto; }.eyebrow,.steps-row { justify-content: center; }.connect-card-wrap { margin: 0 auto; width: 100%; }.stats-grid { grid-template-columns: 1fr 1fr; }.content-grid,.config-grid { grid-template-columns: 1fr; }
  .command-summary { grid-template-columns: 52px 1fr; }.command-summary-stats { grid-column: 1/-1; }.command-toolbar { flex-wrap: wrap; }.command-search { flex-basis: 100%; }.command-filters { flex: 1; overflow-x: auto; }
  .cosmic-vortex-landing { right: calc(50% - 340px); top: 17%; }.role-dashboard-grid { grid-template-columns: 1fr; }.role-dashboard-grid .side-card { width: 100%; }
}
@media (max-width: 760px) {
  .dashboard-shell { display: block; }.sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: 20px 0 60px rgba(0,0,0,.4); }.sidebar.open { transform: translateX(0); }.dashboard-area { grid-column: auto; }.menu-button { display: grid; }.topbar { padding: 0 16px; justify-content: flex-start; gap: 12px; }.topbar-actions { margin-left: auto; }.search-box { display: none; }.help-button { width: 35px; padding: 0; justify-content: center; }.help-button:not(:hover) { font-size: 0; }.view-container { width: calc(100% - 32px); padding-top: 26px; }.page-head { align-items: flex-start; }.welcome-art { display: none; }.welcome-banner { padding: 25px; }.field-grid { grid-template-columns: 1fr; }.field.full { grid-column: auto; }.chip-one { right: -10px; }.chip-two { left: -10px; }
  .setup-layout { width: calc(100% - 28px); min-height: auto; grid-template-columns: 1fr; gap: 20px; padding: 28px 0 45px; }.setup-sidebar-panel { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 0; }.setup-intro { padding: 0; }.setup-intro h1 { font-size: 23px; }.setup-server-card { min-width: 245px; margin: 0; }.setup-step-list { grid-column: 1/-1; display: grid; grid-template-columns: repeat(4,1fr); margin: 0; }.setup-step-list::before { left: 12.5%; right: 12.5%; top: 21px; bottom: auto; width: auto; height: 1px; }.setup-step-list button { grid-template-columns: 1fr; justify-items: center; text-align: center; min-height: 67px; gap: 4px; padding: 0 3px; }.setup-step-list i { width: 34px; height: 34px; }.setup-step-list small { display: none; }.setup-step-list strong { font-size: 8px; }.setup-time { display: none; }.setup-card { min-height: 0; }.setup-content { min-height: 0; }.reaction-builder { grid-template-columns: 1fr; }.reaction-preview { display: grid; grid-template-columns: minmax(0,1fr) minmax(230px,.8fr); gap: 12px; align-items: start; }.reaction-preview > span { grid-column: 1/-1; }.role-dashboard-hero { grid-template-columns: 1fr; }.role-hero-preview { justify-self: start; max-width: 420px; }
}
@media (max-width: 560px) {
  .landing-header { height: 70px; }.status-pill { display: none; }.onboarding-main { width: calc(100% - 30px); gap: 42px; padding: 45px 0 65px; }.onboarding-copy h1 { font-size: 45px; letter-spacing: -2.5px; }.lead { font-size: 14px; }.steps-row { display: none; }.connect-card { padding: 33px 20px 27px; }.floating-chip { display: none; }.landing-footer { padding: 18px 20px; flex-direction: column; gap: 12px; }.stats-grid { grid-template-columns: 1fr; }.page-head { display: block; }.button-row { margin-top: 18px; }.page-title { font-size: 25px; }.welcome-banner { min-height: 180px; }.quick-actions { grid-template-columns: 1fr; }.topbar-actions .notification-button { display: none; }.log-table th:nth-child(3),.log-table td:nth-child(3) { display: none; }
  .command-summary-stats { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }.command-toolbar .small-primary { width: 100%; justify-content: center; }.command-main { grid-template-columns: 1fr; gap: 4px; padding: 10px 0; }.command-row { grid-template-columns: minmax(0,1fr) 31px 38px; }.permission-pill { display: none; }.command-main p { white-space: normal; line-height: 1.4; }.command-list { padding: 0 12px; }
  .cosmic-vortex { transform: scale(.72) translate3d(var(--tilt-x),var(--tilt-y),0) rotate(-7deg); }.cosmic-vortex-landing { right: calc(50% - 340px); top: 18%; }.setup-header { height: 68px; padding: 0 15px; }.setup-header-status { grid-template-columns: 7px auto; }.setup-header-status > span { display: none; }.setup-header-status b { padding-left: 0; border: 0; }.setup-layout { width: calc(100% - 20px); padding-top: 20px; }.setup-sidebar-panel { grid-template-columns: 1fr; }.setup-intro { text-align: center; padding: 0 10px; }.setup-intro p { max-width: 330px; margin: auto; }.setup-server-card { min-width: 0; width: 100%; }.setup-step-list strong { display: none; }.setup-step-list button { min-height: 46px; }.setup-card { border-radius: 14px; }.setup-card-top { padding: 0 18px; }.autosave-state { font-size: 0; }.setup-content { padding: 26px 18px 18px; }.setup-heading { gap: 10px; margin-bottom: 23px; }.setup-heading h2 { font-size: 18px; }.setup-heading p { font-size: 9px; }.setup-number { width: 34px; height: 34px; }.prefix-picker { grid-template-columns: 1fr 1fr; }.setup-two-columns,.safety-presets,.setup-modules,.review-grid { grid-template-columns: 1fr; }.safety-preset { min-height: 82px; }.reaction-preview { display: block; }.reaction-preview > span { display: block; }.reaction-role-row { grid-template-columns: 69px minmax(0,1fr) 28px; }.setup-error { padding: 0 18px; }.setup-actions { min-height: 72px; padding: 0 16px; }.setup-defaults { display: none; }.setup-next { min-width: 105px; }.review-card { grid-template-columns: 35px 1fr auto; }.role-dashboard-hero { padding: 23px 19px; }.role-hero-copy > div { flex-direction: column; align-items: stretch; }.role-hero-copy button { justify-content: center; }.dashboard-role-row { grid-template-columns: 38px 1fr auto; padding: 9px 0; }.dashboard-role-row .tag { display: none; }.dashboard-role-row .module-action { grid-column: 2/-1; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* =========================================================
   Aazizo cosmic visual system — ultraviolet / magenta / steel
   ========================================================= */
:root {
  --bg: #05030b;
  --surface: #0d0916;
  --surface-2: #120d1d;
  --surface-3: #191126;
  --border: rgba(194,157,255,.13);
  --text: #f7f3ff;
  --muted: #9990a8;
  --muted-2: #655d72;
  --lime: #a76cff;
  --lime-soft: rgba(167,108,255,.13);
  --purple: #ee5fce;
  --orange: #d89cff;
  --red: #ff6a9d;
  --green: #58ddc1;
  --sidebar: 274px;
}

body { background: #05030b; }
.noise { opacity: .055; mix-blend-mode: soft-light; }
.brand { font-family: "Segoe UI Variable Display","Segoe UI",sans-serif; font-size: 22px; letter-spacing: -.65px; }
.brand-mark { width: 42px; height: 42px; padding: 0; overflow: hidden; border-radius: 50%; background: #07040d; border: 1px solid rgba(185,119,255,.38); box-shadow: 0 0 26px rgba(130,52,255,.27); }
.brand-mark img { transform: scale(1.08); }

/* Landing page inspired by the supplied cosmic references */
.onboarding-shell { background: radial-gradient(circle at 50% -8%,rgba(102,41,214,.23),transparent 35%),linear-gradient(180deg,#070312 0%,#05030b 64%,#07040d 100%); }
.onboarding-shell::before { content: ""; position: absolute; inset: 64px 0 auto; height: 1px; background: linear-gradient(90deg,transparent,rgba(201,153,255,.22),transparent); z-index: 3; }
.landing-header { height: 64px; border: 0; background: linear-gradient(90deg,rgba(7,3,18,.96),rgba(88,42,148,.62) 48%,rgba(7,3,18,.94)); backdrop-filter: blur(18px); }
.landing-header .brand > span:last-child { background: linear-gradient(90deg,#fff 20%,#c3a6ff 70%,#ef72d5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.status-pill { color: #81778f; }
.status-pill i { background: #a66cff; box-shadow: 0 0 0 5px rgba(166,108,255,.09),0 0 18px rgba(166,108,255,.5); }
.avatar { border-color: rgba(193,156,255,.15); background: linear-gradient(145deg,#21152f,#0d0915); }
.onboarding-main { width: min(1180px,calc(100% - 48px)); grid-template-columns: 1fr; align-content: center; gap: 30px; padding: 185px 0 48px; }
.onboarding-copy { width: 100%; max-width: 1030px; margin: 0 auto; text-align: center; }
.onboarding-copy .eyebrow { justify-content: center; margin-bottom: 18px; color: #bdaee0; letter-spacing: 2.6px; }
.onboarding-copy .eyebrow span { width: 28px; height: 28px; color: #f6eaff; background: rgba(168,105,255,.13); border: 1px solid rgba(197,156,255,.27); box-shadow: 0 0 24px rgba(150,78,255,.15); }
.onboarding-copy h1 { max-width: none; margin: 0 auto 23px; font: 500 clamp(50px,5.7vw,78px)/1.01 "Segoe UI Variable Display","Segoe UI",sans-serif; letter-spacing: -4.4px; }
.onboarding-copy h1 em { display: inline-block; font-weight: 500; background: linear-gradient(92deg,#ffffff 5%,#d7bdff 48%,#ef77d7 96%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 680px; margin: 0 auto 29px; color: #a49aac; font-size: 16px; line-height: 1.58; }
.steps-row { max-width: 520px; margin: 0 auto; justify-content: center; }
.mini-step { color: #5f576b; }
.mini-step b { border-color: rgba(187,147,255,.16); background: rgba(255,255,255,.015); }
.mini-step.active { color: #cfc4dc; }
.mini-step.active b { color: #d6baff; border-color: rgba(177,112,255,.42); background: rgba(151,83,255,.11); box-shadow: 0 0 19px rgba(139,66,255,.12); }
.step-line { background: linear-gradient(90deg,rgba(151,87,255,.28),rgba(255,255,255,.045)); }
.connect-card-wrap { width: 100%; max-width: 870px; margin: 0 auto; }
.connect-card { min-height: 184px; display: grid; grid-template-columns: 132px minmax(0,1fr); align-items: center; gap: 28px; padding: 24px 30px; border-radius: 23px; border-color: rgba(197,155,255,.17); background: linear-gradient(135deg,rgba(23,14,37,.88),rgba(8,6,15,.91)); backdrop-filter: blur(24px); box-shadow: 0 30px 90px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.04); }
.connect-card::after { background: radial-gradient(circle at 86% 0,rgba(200,82,221,.09),transparent 38%),linear-gradient(120deg,rgba(255,255,255,.035),transparent 30%); }
.card-accent { left: 32%; right: 32%; height: 2px; background: linear-gradient(90deg,transparent,#9b63ff,#f162cf,transparent); box-shadow: 0 0 25px rgba(185,89,255,.7); }
.bot-orbit { margin: 0; width: 126px; height: 126px; }
.orbit-ring { border-color: rgba(181,123,255,.28); box-shadow: inset 0 0 30px rgba(138,61,255,.06),0 0 28px rgba(136,56,255,.08); }
.orbit-ring::after { border-color: rgba(230,199,255,.11); }
.orbit-ring i { background: #d26fff; box-shadow: 0 0 12px #c24fff; }
.connect-card .bot-logo { width: 78px; height: 78px; border-radius: 50%; background: #07040d; border: 1px solid rgba(199,153,255,.32); box-shadow: 0 0 35px rgba(119,42,255,.26); }
.online-dot { background: #a66cff; border-color: #110a1c; box-shadow: 0 0 14px rgba(166,108,255,.65); }
.connect-content { display: grid; grid-template-columns: minmax(0,1fr) 300px; grid-template-rows: auto auto auto auto; column-gap: 28px; text-align: left; align-items: center; }
.connect-content .small-label,.connect-content h2,.connect-content > p,.connect-content .trust-row { grid-column: 1; }
.small-label { color: #c79dff; }
.connect-content h2 { margin: 7px 0 7px; font-size: 21px; letter-spacing: -.5px; }
.connect-content > p { max-width: 460px; margin: 0; color: #887f93; font-size: 11px; }
.connect-content .primary-button { grid-column: 2; grid-row: 1/5; width: 100%; }
.primary-button,.small-primary,.setup-next { color: white; background: linear-gradient(110deg,#7448e8,#b354e9 52%,#e55abc); box-shadow: 0 12px 34px rgba(126,61,221,.2),inset 0 1px 0 rgba(255,255,255,.18); }
.primary-button:hover,.small-primary:hover,.setup-next:hover { color: white; background: linear-gradient(110deg,#8257f1,#c15bf0 52%,#ee67c8); box-shadow: 0 15px 40px rgba(143,63,235,.31); }
.trust-row { justify-content: flex-start; margin-top: 13px; color: #5f576b; }
.floating-chip { color: #afa4bc; border-color: rgba(193,153,255,.16); background: rgba(16,10,25,.9); }
.floating-chip span { color: #c98aff; }
.landing-footer { color: #4e4659; border-color: rgba(190,146,255,.07); }
.glow-one { background: radial-gradient(circle,rgba(142,61,255,.12),transparent 66%); }
.glow-two { background: radial-gradient(circle,rgba(231,62,167,.07),transparent 67%); }
.cursor-aurora,.dashboard-cursor-aurora { position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .85; background: radial-gradient(ellipse 470px 190px at var(--mouse-x) var(--mouse-y),rgba(237,68,169,.1),transparent 66%),radial-gradient(ellipse 240px 330px at calc(var(--mouse-x) - 110px) calc(var(--mouse-y) + 90px),rgba(105,51,224,.07),transparent 72%); filter: saturate(1.15); }
.cosmic-vortex { opacity: .94; }
.cosmic-vortex-landing { width: 920px; height: 470px; left: 50%; right: auto; top: -125px; transform: translate3d(calc(-50% + var(--tilt-x)),var(--tilt-y),0) rotate(-2deg); }
.vortex-halo { background: radial-gradient(ellipse,rgba(222,97,255,.32) 0,rgba(114,56,255,.13) 38%,transparent 72%); filter: blur(38px); }
.vortex-ring { border-color: rgba(204,170,255,.35); box-shadow: 0 0 25px rgba(142,76,255,.34),inset 0 0 30px rgba(223,117,255,.14); }
.vortex-ring::before,.vortex-ring::after { background: conic-gradient(from 20deg,transparent 0 11%,rgba(255,218,255,.82) 20%,rgba(205,104,255,.38) 26%,transparent 37% 57%,rgba(120,71,255,.62) 69%,transparent 82%); }
.vortex-core { width: 38%; height: 18%; background: radial-gradient(ellipse,#010005 28%,#05000b 58%,rgba(50,13,89,.85) 68%,rgba(255,209,255,.95) 73%,rgba(194,91,255,.7) 77%,transparent 82%); box-shadow: 0 0 20px rgba(255,217,255,.65),0 0 55px rgba(172,76,255,.58),0 0 105px rgba(114,48,232,.32); }

/* Quick setup in the same brand language */
.setup-shell { background: radial-gradient(circle at 72% -4%,rgba(115,48,220,.2),transparent 37%),radial-gradient(circle at 12% 86%,rgba(224,60,164,.055),transparent 30%),#06040c; }
.setup-header { background: rgba(7,4,13,.58); border-color: rgba(193,152,255,.08); }
.setup-header-status i,.autosave-state i { background: #b17aff; box-shadow: 0 0 13px rgba(164,94,255,.52); }
.cosmic-vortex-setup { right: -165px; top: 18px; opacity: .5; }
.setup-kicker { color: #bd8fff; }
.setup-intro h1 { color: #f6f1fb; font-weight: 580; }
.setup-intro p { color: #81788c; }
.setup-server-card { border-color: rgba(191,146,255,.15); background: linear-gradient(135deg,rgba(24,15,38,.86),rgba(12,8,19,.8)); }
.server-icon { color: white; background: linear-gradient(145deg,#7955df,#b34cca); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.connected-check { color: #c898ff; background: rgba(171,105,255,.11); }
.setup-step-list::before { background: linear-gradient(#6e46a0,#282230); }
.setup-step-list i { border-color: rgba(190,148,255,.16); background: #0b0711; }
.setup-step-list li.active i { color: white; border-color: transparent; background: linear-gradient(145deg,#754fe0,#d14ebc); box-shadow: 0 0 26px rgba(165,70,236,.3); }
.setup-step-list li.done i { color: #d5b8ff; border-color: rgba(171,103,255,.3); background: rgba(130,65,208,.12); }
.setup-time > span { color: #bd77ff; }
.setup-card { border-color: rgba(198,157,255,.16); background: linear-gradient(145deg,rgba(21,14,33,.96),rgba(8,6,13,.98)); box-shadow: 0 34px 100px rgba(0,0,0,.44),0 0 70px rgba(101,43,193,.055); }
.setup-progress-line i { background: linear-gradient(90deg,#6c4be0,#b15cfa 55%,#ed60c7); box-shadow: 0 0 16px rgba(171,81,245,.42); }
.setup-number { color: #d6bbff; border-color: rgba(175,119,255,.23); background: rgba(139,73,222,.13); }
.setup-label-row code { color: #d49dff; background: rgba(166,94,255,.09); }
.prefix-option,.safety-preset,.setup-module { border-color: rgba(197,156,255,.1); background: rgba(10,7,16,.72); }
.prefix-option:hover,.safety-preset:hover,.setup-module:hover { border-color: rgba(193,118,255,.34); background: rgba(128,61,210,.07); }
.prefix-option.selected { border-color: rgba(197,121,255,.5); background: linear-gradient(145deg,rgba(129,66,216,.16),rgba(209,74,184,.055)); box-shadow: inset 0 0 0 1px rgba(208,157,255,.04),0 0 28px rgba(112,48,203,.08); }
.prefix-option.selected b { color: #d9b0ff; }
.custom-prefix input,.setup-field input,.setup-field select,.reaction-role-row input,.reaction-role-row select { border-color: rgba(195,153,255,.12); background: #09060f; }
.custom-prefix input:focus,.setup-field input:focus,.setup-field select:focus { border-color: rgba(190,112,255,.48); box-shadow: 0 0 0 3px rgba(155,84,230,.08); }
.setup-switch-row,.reaction-master { border-color: rgba(198,157,255,.12); background: rgba(10,7,16,.72); }
.switch-icon,.setup-module-icon { color: #c99cff; background: rgba(150,81,231,.13); }
.setup-switch-row > i,.reaction-master > i,.toggle { background: #2a2231; }
.setup-switch-row.active > i,.reaction-master.active > i,.toggle.on { background: linear-gradient(100deg,#8354e7,#d04fc2); }
.setup-switch-row.active > i b,.reaction-master.active > i b,.toggle.on i { background: white; }
.safety-preset > span { color: #bf83ff; }
.safety-preset strong em { color: #d895ff; }
.safety-preset.selected { border-color: rgba(190,111,255,.46); background: linear-gradient(145deg,rgba(112,61,193,.15),rgba(219,76,184,.055)); }
.setup-module.selected { border-color: rgba(198,124,255,.3); background: rgba(142,71,219,.09); }
.setup-module.selected > i { color: #e0c1ff; border-color: rgba(194,124,255,.27); background: rgba(170,94,244,.13); }
.reaction-preview { border-color: rgba(191,148,255,.13); background: rgba(7,5,12,.62); }
.role-preview-embed { border-left-color: #bd6cff; }
.review-heading .setup-number { color: white; border-color: transparent; background: linear-gradient(145deg,#7d52e8,#d953bd); }
.review-card { border-color: rgba(197,155,255,.11); background: rgba(9,6,14,.72); }
.review-card > span { color: #c898ff; background: rgba(147,79,224,.13); }
.review-card strong code,.review-card button { color: #d493ff; }
.review-ready { border-color: rgba(189,119,255,.2); background: linear-gradient(100deg,rgba(110,55,187,.11),rgba(215,69,178,.045)); }
.review-ready > span { color: #debaff; background: rgba(165,91,238,.15); }
.setup-actions { background: rgba(5,3,9,.58); border-color: rgba(195,153,255,.09); }

/* Full dashboard redesign */
.dashboard-shell { position: relative; isolation: isolate; background: radial-gradient(circle at 77% -8%,rgba(121,49,219,.16),transparent 31%),radial-gradient(circle at 20% 102%,rgba(217,59,162,.045),transparent 27%),#06040b; }
.dashboard-shell::before { content: ""; position: fixed; z-index: 0; left: 49%; top: -205px; width: 720px; height: 340px; pointer-events: none; border-radius: 50%; background: radial-gradient(ellipse,rgba(2,0,5,.98) 0 23%,rgba(119,47,211,.42) 28%,rgba(237,123,255,.25) 32%,rgba(98,45,202,.09) 43%,transparent 68%); filter: blur(2px); opacity: .6; }
.dashboard-cursor-aurora { z-index: 0; opacity: .45; }
.sidebar { z-index: 20; width: var(--sidebar); padding: 0 16px 16px; border-right-color: rgba(193,153,255,.09); background: rgba(7,5,12,.78); backdrop-filter: blur(26px); }
.sidebar-brand { height: 78px; padding: 0 7px; }
.sidebar-brand .brand-mark { width: 38px; height: 38px; border-radius: 50%; }
.sidebar-brand > span:last-child { background: linear-gradient(90deg,#fff,#caa8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.server-switcher { min-height: 70px; margin-bottom: 20px; padding: 11px; border-color: rgba(198,159,255,.12); border-radius: 14px; background: linear-gradient(135deg,rgba(27,18,42,.86),rgba(12,8,18,.72)); box-shadow: inset 0 1px 0 rgba(255,255,255,.025); }
.main-nav { padding-right: 1px; }
.nav-label { color: #554c61; padding: 18px 11px 8px; letter-spacing: 1.5px; }
.nav-item { height: 44px; margin: 2px 0; padding: 0 12px; border-radius: 11px; color: #8c8399; }
.nav-item:hover { color: #e3dce9; background: rgba(167,103,255,.055); }
.nav-item.active { color: white; background: linear-gradient(90deg,rgba(128,70,213,.22),rgba(222,74,183,.07)); box-shadow: inset 0 0 0 1px rgba(193,139,255,.09); }
.nav-item.active::before { left: -16px; width: 3px; height: 25px; border-radius: 0 5px 5px 0; background: linear-gradient(#9c6bff,#ed62c5); box-shadow: 0 0 18px rgba(171,84,244,.65); }
.nav-item.active .nav-icon { color: #c893ff; }
.nav-badge { color: #a69cac; background: rgba(186,147,255,.1); }
.nav-badge.warm { color: #eba2d4; background: rgba(231,89,187,.1); }
.nav-badge.setup-done-badge { color: #cfa5ff; background: rgba(165,95,235,.12); }
.bot-health { border-color: rgba(194,154,255,.08); }
.pulse-dot { background: #ac76ff; box-shadow: 0 0 0 5px rgba(163,98,255,.08),0 0 15px rgba(160,84,255,.45); }
.user-card:hover { background: rgba(166,103,255,.05); }
.dashboard-area { position: relative; z-index: 1; }
.topbar { height: 78px; padding: 0 34px; border-bottom-color: rgba(195,155,255,.09); background: rgba(7,5,12,.64); backdrop-filter: blur(26px); }
.breadcrumbs { color: #645a70; }.breadcrumbs b { color: #403849; }.breadcrumbs strong { color: #ded6e7; }
.search-box,.icon-button,.help-button { border-color: rgba(195,154,255,.12); background: rgba(14,9,21,.72); }
.search-box:focus-within { border-color: rgba(190,117,255,.39); box-shadow: 0 0 0 3px rgba(155,83,231,.07); }
.notification-button i { background: #d06dff; box-shadow: 0 0 0 2px #0e0915,0 0 12px rgba(197,94,255,.6); }
.view-container { width: min(1260px,calc(100% - 68px)); padding: 42px 0 72px; }
.page-head { margin-bottom: 31px; }
.page-head .eyebrow { color: #b67dff; letter-spacing: 1.9px; }.page-head .eyebrow span { background: #d65bc7; box-shadow: 0 0 12px rgba(210,79,193,.6); }
.page-title { margin-bottom: 8px; font: 580 34px "Segoe UI Variable Display","Segoe UI",sans-serif; letter-spacing: -1.25px; }
.page-subtitle { color: #7e748a; font-size: 11px; }
.card { border-color: rgba(198,159,255,.11); border-radius: 18px; background: linear-gradient(145deg,rgba(17,11,27,.92),rgba(9,7,14,.92)); box-shadow: inset 0 1px 0 rgba(255,255,255,.018),0 16px 40px rgba(0,0,0,.1); }
.welcome-banner { min-height: 172px; padding: 32px 35px; border-color: rgba(196,130,255,.18); background: radial-gradient(circle at 85% 30%,rgba(119,62,214,.18),transparent 31%),linear-gradient(110deg,rgba(83,45,145,.2),rgba(14,9,22,.88) 51%,rgba(210,72,177,.06)); }
.welcome-banner::before { width: 330px; height: 330px; right: -45px; top: -220px; border-color: rgba(203,148,255,.17); box-shadow: 0 0 0 42px rgba(150,83,230,.035),0 0 0 84px rgba(212,76,184,.018); }
.welcome-banner h2 { font-size: 23px; font-weight: 580; }.welcome-banner h2 span { color: #d9adff; }
.welcome-banner p { color: #8d8398; }
.welcome-art::before { border-color: rgba(197,125,255,.33); box-shadow: 0 0 35px rgba(125,52,228,.14); }
.welcome-art .bot-logo { border-radius: 50%; background: #07040d; box-shadow: 0 0 28px rgba(123,49,231,.25); }
.stat-card { min-height: 125px; padding: 21px 22px; }
.stat-card:nth-child(1) { --accent:#b987ff !important; --tint:rgba(162,97,240,.12) !important; }.stat-card:nth-child(2) { --accent:#e574cf !important; --tint:rgba(222,91,191,.1) !important; }.stat-card:nth-child(3) { --accent:#997bff !important; --tint:rgba(116,91,235,.12) !important; }.stat-card:nth-child(4) { --accent:#c899ff !important; --tint:rgba(184,121,247,.1) !important; }
.stat-card::after { background: radial-gradient(circle,var(--tint),transparent 69%); }
.stat-icon { width: 34px; height: 34px; border-radius: 10px; }
.stat-number { margin-top: 17px; font-size: 27px; font-weight: 620; }
.stat-note.up,.stat-note.warn { color: #c999ff; }
.card-header { min-height: 65px; padding: 0 22px; border-bottom-color: rgba(195,155,255,.08); }.card-header h3 { font-size: 13px; font-weight: 580; }.card-header p { color: #62596e; }.card-header a { color: #c38cff; }
.activity { min-height: 65px; border-color: rgba(194,154,255,.065); }.activity-icon { color: #c18dff !important; background: rgba(150,86,225,.1) !important; }.activity strong { font-size: 10px; }.activity p { color: #665d72; }
.quick-action { min-height: 88px; border-color: rgba(195,155,255,.095); border-radius: 12px; background: rgba(13,9,20,.76); }.quick-action:hover { border-color: rgba(190,115,255,.3); background: rgba(115,60,188,.09); box-shadow: 0 10px 30px rgba(0,0,0,.12); }.quick-action svg { color: #c18cff; }
.setup-progress { padding: 21px; }.progress-top strong { color: #ca96ff; }.progress-track { background: #251c2e; }.progress-track i { background: linear-gradient(90deg,#7b4ce1,#e05abd); box-shadow: 0 0 13px rgba(185,77,232,.3); }.check-row.done i { color: #cca0ff; border-color: rgba(183,113,255,.26); background: rgba(142,73,216,.11); }
.secondary-button,.module-action,.command-copy { border-color: rgba(196,155,255,.12); background: rgba(20,13,30,.8); }.secondary-button:hover,.module-action:hover { color: #d7b3ff; border-color: rgba(190,119,255,.28); background: rgba(110,57,181,.1); }
.config-section { border-color: rgba(194,155,255,.08); }.field input,.field select,.field textarea { border-color: rgba(195,155,255,.11); background: #09060f; }.field input:focus,.field select:focus,.field textarea:focus { border-color: rgba(190,116,255,.42); box-shadow: 0 0 0 3px rgba(156,83,230,.07); }
.module-row { border-color: rgba(196,156,255,.1); background: rgba(12,8,18,.74); }.module-icon { color: #c692ff !important; background: rgba(150,84,224,.11) !important; }
.tips { color: #83788e; border-color: rgba(189,119,255,.16); background: rgba(126,61,205,.06); }.tips b { color: #d2a2ff; }
.tag,.tag.orange,.tag.red { color: #d29cff; background: rgba(157,86,225,.11); }
.preview-embed { border-left-color: #b96dff; }
.command-summary { border-color: rgba(190,129,255,.16); background: radial-gradient(circle at 92% 10%,rgba(213,77,183,.1),transparent 31%),linear-gradient(115deg,rgba(109,58,187,.16),rgba(12,8,19,.96) 53%); }
.command-summary::after { border-color: rgba(192,125,255,.22); box-shadow: 0 0 0 28px rgba(156,79,228,.03); }.command-summary-icon { color: #d1a3ff; background: rgba(143,75,219,.14); border-color: rgba(190,124,255,.22); }.command-summary > div:nth-child(2) > span { color: #bc83ff; }
.command-search,.command-filters { border-color: rgba(195,155,255,.11); background: rgba(12,8,18,.85); }.command-search:focus-within { border-color: rgba(188,113,255,.4); }.command-filter.active { background: rgba(137,71,209,.18); }.command-group .card-header h3 svg { color: #c18dff; }.command-main code { color: #d2a5ff; border-color: rgba(189,123,255,.18); background: rgba(145,75,218,.12); }.command-copy:hover { color: #d6afff; border-color: rgba(190,119,255,.28); }
.role-dashboard-hero { border-color: rgba(192,125,255,.18); background: radial-gradient(circle at 82% 12%,rgba(189,75,221,.14),transparent 38%),linear-gradient(120deg,rgba(97,50,166,.14),rgba(11,7,17,.98) 48%); }.role-hero-copy > span { color: #be87ff; }.dashboard-role-emoji { background: rgba(151,83,224,.12); }.role-check.done i,.role-check i { color: #d1a4ff; background: rgba(152,83,224,.11); }
.log-table th,.log-table td { border-color: rgba(194,154,255,.07); }

@media (max-width: 980px) {
  .onboarding-main { max-width: none; padding-top: 175px; }.connect-card-wrap { max-width: 780px; }.connect-content { grid-template-columns: minmax(0,1fr) 270px; }
  .cosmic-vortex-landing { left: 50%; right: auto; top: -125px; }
}

@media (max-width: 760px) {
  .onboarding-main { padding-top: 155px; }.onboarding-copy h1 { letter-spacing: -3px; }.connect-card { grid-template-columns: 104px minmax(0,1fr); gap: 20px; }.bot-orbit { width: 104px; height: 104px; }.connect-content { display: block; }.connect-content .primary-button { margin-top: 18px; }.trust-row { justify-content: flex-start; }
  .sidebar { width: var(--sidebar); }.topbar { height: 72px; }.view-container { width: calc(100% - 32px); padding-top: 31px; }
  .role-dashboard-hero { padding: 26px; }
}

@media (max-width: 560px) {
  .landing-header { height: 70px; }.onboarding-shell::before { top: 70px; }.onboarding-main { width: calc(100% - 24px); gap: 25px; padding: 190px 0 45px; }.onboarding-copy h1 { font-size: 43px; letter-spacing: -2.5px; }.lead { font-size: 14px; margin-bottom: 23px; }.connect-card { display: block; min-height: 0; padding: 27px 20px; }.connect-card .bot-orbit { margin: 0 auto 18px; }.connect-content { text-align: center; }.connect-content > p { margin: 0 auto; }.trust-row { justify-content: center; }.cosmic-vortex-landing { width: 700px; height: 390px; top: -100px; transform: translate3d(calc(-50% + var(--tilt-x)),var(--tilt-y),0) rotate(-2deg); }
  .setup-card { border-color: rgba(198,157,255,.17); }.setup-server-card { background: rgba(17,11,27,.88); }.setup-step-list li.active i { background: linear-gradient(145deg,#754fe0,#d14ebc); }
  .page-title { font-size: 29px; }.welcome-banner { min-height: 195px; padding: 27px 22px; }.card { border-radius: 15px; }.stat-card { min-height: 116px; }.role-dashboard-hero { padding: 23px 19px; }
}

/* Native animated event horizon */
.cosmic-vortex { display: none; }
.event-horizon-shadow { position: absolute; z-index: 0; left: 50%; top: 0; width: min(260px,18vw); height: auto; aspect-ratio: 1; border: 7px solid rgba(255,250,255,.98); border-radius: 50%; background: radial-gradient(circle at 50% 53%,#020006 0 41%,#110122 48%,#41106f 54%,#8d3ed2 59%,#df9dff 64%,#fff8ff 68%,#f6d5ff 71%,#be76ff 76%,#7441e6 82%,#27147f 88%,#080119 96%); box-shadow: inset 0 -18px 34px rgba(176,80,231,.66),inset 0 0 26px rgba(0,0,0,.9),0 0 6px rgba(255,253,255,1),0 0 17px rgba(255,229,255,1),0 0 34px rgba(238,156,255,.98),0 0 68px rgba(166,100,255,.86),0 0 118px rgba(104,65,255,.66),0 0 180px rgba(69,39,211,.42); transform: translate(-50%,-50%); pointer-events: none; }
.event-horizon-shadow::before,.event-horizon-shadow::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.event-horizon-shadow::before { inset: -13px; border: 11px solid rgba(229,177,255,.86); filter: blur(3px); box-shadow: 0 0 22px rgba(209,130,255,.78); animation: horizonBreath 5.4s ease-in-out infinite alternate; }
.event-horizon-shadow::after { inset: -33px; border: 17px solid rgba(126,93,255,.52); filter: blur(10px); box-shadow: 0 0 52px rgba(91,55,231,.58); animation: horizonBreath 7.6s ease-in-out infinite alternate-reverse; }
.event-horizon-canvas { position: absolute; z-index: 1; left: 0; top: 0; width: 100%; height: 220px; pointer-events: none; opacity: .88; filter: saturate(1.05) contrast(1.01) drop-shadow(0 0 18px rgba(181,82,255,.4)); -webkit-mask-image: linear-gradient(to bottom,#000 0 78%,transparent 100%); mask-image: linear-gradient(to bottom,#000 0 78%,transparent 100%); }
.onboarding-copy,.connect-card-wrap { z-index: 2; }
@keyframes horizonBreath { to { transform: scale(1.018); opacity: .72; } }
.setup-horizon-canvas { top: 64px; height: 275px; opacity: .64; -webkit-mask-image: linear-gradient(90deg,transparent 5%,#000 48%,#000 100%); mask-image: linear-gradient(90deg,transparent 5%,#000 48%,#000 100%); }

@media (max-width: 760px) {
  .event-horizon-canvas { top: 0; height: 230px; }
  .event-horizon-shadow { top: 0; width: min(250px,58vw); height: auto; }
  .setup-horizon-canvas { top: 60px; height: 230px; opacity: .52; }
}

@media (max-width: 560px) {
  .event-horizon-canvas { top: 0; height: 210px; }
  .event-horizon-shadow { top: 0; width: 230px; height: auto; }
  .setup-horizon-canvas { top: 58px; height: 205px; }
}

/* ================================================================
   AAZIZO COSMIC GLASS — COMPLETE VISUAL REDESIGN
   ================================================================ */
:root {
  --bg: #050208;
  --surface: rgba(15, 9, 23, .78);
  --surface-2: rgba(24, 13, 37, .72);
  --surface-3: rgba(35, 18, 53, .82);
  --border: rgba(215, 170, 255, .13);
  --text: #faf7ff;
  --muted: #aaa0b6;
  --muted-2: #73697f;
  --purple: #a66cff;
  --lime: #d759f3;
  --lime-soft: rgba(197, 91, 255, .14);
  --orange: #f09adf;
  --green: #66e6b3;
  --sidebar: 278px;
  font-family: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
}

body {
  background:
    radial-gradient(circle at 72% 12%, rgba(112, 47, 205, .11), transparent 25%),
    radial-gradient(circle at 18% 86%, rgba(215, 56, 177, .07), transparent 30%),
    #050208;
}

.noise { opacity: .022; mix-blend-mode: soft-light; }

/* Landing — editorial split hero */
.onboarding-shell {
  isolation: isolate;
  min-height: 100svh;
  grid-template-rows: 102px minmax(0, 1fr) 58px;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    radial-gradient(circle at 76% 43%, rgba(123, 62, 227, .16), transparent 28%),
    radial-gradient(circle at 16% 46%, rgba(209, 64, 191, .07), transparent 25%),
    linear-gradient(145deg, #07030c, #030105 62%, #08030d);
  background-size: 72px 72px, 72px 72px, auto, auto, auto;
}

.onboarding-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  height: auto;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(218, 171, 255, .06), transparent),
    radial-gradient(ellipse at 68% 48%, transparent 0 29%, rgba(183, 109, 255, .06) 29.2% 29.4%, transparent 29.7%);
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 82%, transparent);
}

#onboarding > .event-horizon-shadow,
#onboarding > .event-horizon-canvas,
#onboarding > .glow { display: none; }

.landing-header {
  position: relative;
  z-index: 20;
  width: min(1480px, calc(100% - 48px));
  height: 72px;
  margin: 20px auto 0;
  padding: 0 18px 0 14px;
  border: 1px solid rgba(226, 188, 255, .13);
  border-radius: 22px;
  background: linear-gradient(120deg, rgba(20, 10, 31, .88), rgba(10, 5, 17, .7));
  box-shadow: 0 18px 70px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.035);
  backdrop-filter: blur(24px) saturate(1.25);
}

.landing-header::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(210, 136, 255, .55), transparent);
}

.brand { gap: 12px; font-weight: 730; letter-spacing: -.6px; }
.brand-mark { width: 44px; height: 44px; border-color: rgba(206, 149, 255, .3); box-shadow: 0 0 26px rgba(134, 66, 239, .22); }
.landing-header .brand > span:last-child { font-size: 20px; }

.landing-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.045);
  border-radius: 999px;
  background: rgba(255,255,255,.018);
}

.landing-nav a {
  padding: 9px 15px;
  border-radius: 999px;
  color: #a99fb3;
  font-size: 12px;
  transition: color .2s ease, background .2s ease;
}

.landing-nav a:hover { color: #fff; background: rgba(180, 104, 255, .12); }
.status-pill { border: 1px solid rgba(117, 234, 184, .12); background: rgba(32, 122, 88, .08); padding: 9px 12px; border-radius: 999px; }

.onboarding-main {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(440px, .9fr) minmax(560px, 1.1fr);
  grid-template-areas:
    "copy visual"
    "connect visual";
  grid-template-rows: minmax(280px, auto) auto;
  align-items: center;
  gap: 24px 42px;
  width: min(1460px, calc(100% - 72px));
  min-height: 0;
  margin: 0 auto;
  padding: 36px 0 28px;
}

.onboarding-copy {
  grid-area: copy;
  align-self: end;
  width: auto;
  max-width: 640px;
  margin: 0;
  text-align: left;
}

.onboarding-copy .eyebrow {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 8px 12px;
  border: 1px solid rgba(201, 144, 255, .18);
  border-radius: 999px;
  background: rgba(152, 79, 231, .07);
  color: #d5b1ff;
  letter-spacing: 2.6px;
}

.onboarding-copy h1 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(56px, 5vw, 78px);
  line-height: .98;
  letter-spacing: -5px;
  text-align: left;
}

.onboarding-copy h1 em {
  display: inline-block;
  padding-bottom: 7px;
  background: linear-gradient(100deg, #fff 5%, #dcb5ff 42%, #bd6dff 70%, #ee66c6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}

.onboarding-copy .lead {
  max-width: 580px;
  margin: 24px 0 26px;
  color: #aba1b4;
  font-size: 16px;
  line-height: 1.7;
  text-align: left;
}

.steps-row { width: min(100%, 560px); margin: 0; justify-content: flex-start; }
.mini-step { flex: 0 0 auto; }
.step-line { flex: 1 1 52px; max-width: 68px; background: rgba(255,255,255,.07); }
.mini-step b { background: rgba(173, 94, 255, .09); border-color: rgba(205, 142, 255, .25); }
.mini-step.active b { color: #fff; background: linear-gradient(145deg, #7346d9, #d04fc7); box-shadow: 0 0 26px rgba(180, 75, 234, .28); }

.black-hole-stage {
  grid-area: visual;
  position: relative;
  align-self: stretch;
  min-height: 650px;
  overflow: visible;
  pointer-events: none;
  --hole-ring-size: 35%;
}

.black-hole-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8% -8% 4% -6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(159, 80, 255, .2), rgba(101, 47, 194, .06) 43%, transparent 70%);
  filter: blur(28px);
  animation: cosmicPulse 7s ease-in-out infinite alternate;
}

.black-hole-aura {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 20deg, transparent, rgba(150, 72, 255, .13), transparent 30%, rgba(229, 73, 190, .09), transparent 68%, rgba(104, 76, 255, .14), transparent);
  filter: blur(22px);
  transform: translate(-47%, -50%);
  animation: auraSpin 22s linear infinite;
}

.black-hole-orbit {
  position: absolute;
  z-index: 2;
  inset: 0;
  transform: translate3d(var(--tilt-x), var(--tilt-y), 0);
  transform-origin: 52% 49%;
  transition: transform .38s cubic-bezier(.2,.8,.2,1);
  animation: none;
  mix-blend-mode: normal;
}

.black-hole-photo {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  --hole-image-width: min(900px, 124%);
  mix-blend-mode: normal;
}

.black-hole-core {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: var(--hole-ring-size);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #000;
  box-shadow: 0 0 32px rgba(0,0,0,.96);
}

.black-hole-photo-base,
.black-hole-photo-flow {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: var(--hole-image-width);
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
  transform-origin: 50% 50%;
  clip-path: inset(5.8% 0 4.5% 0);
  mix-blend-mode: normal;
  filter: saturate(1.04) contrast(1.04) brightness(.98) drop-shadow(0 28px 48px rgba(60, 14, 118, .34));
}

.black-hole-photo-base {
  animation: blackHolePhotoFloat 7.5s ease-in-out infinite alternate;
}

.black-hole-photo-flow {
  z-index: 2;
  opacity: .38;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(166deg, transparent 26%, #000 43% 57%, transparent 74%);
  mask-image: linear-gradient(166deg, transparent 26%, #000 43% 57%, transparent 74%);
  animation: blackHolePlasmaFlow 3.6s ease-in-out infinite alternate;
}

.black-hole-photo-ring {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: var(--hole-ring-size);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg, transparent 0 10%, rgba(255,255,255,.62) 13%, rgba(224,133,255,.2) 22%, transparent 31% 57%, rgba(143,92,255,.45) 64%, transparent 77% 100%);
  -webkit-mask: radial-gradient(circle, transparent 0 45%, #000 48% 52%, transparent 56%);
  mask: radial-gradient(circle, transparent 0 45%, #000 48% 52%, transparent 56%);
  mix-blend-mode: screen;
  filter: blur(.55px);
  opacity: .68;
  animation: blackHolePhotonOrbit 4.4s linear infinite;
}

.black-hole-photo-shimmer {
  position: absolute;
  z-index: 4;
  left: 4%;
  top: 47%;
  width: 92%;
  height: 12%;
  transform: rotate(14deg);
  background: linear-gradient(90deg, transparent 0 18%, rgba(129,79,255,.08) 34%, rgba(255,255,255,.34) 49%, rgba(231,77,204,.1) 62%, transparent 82%);
  filter: blur(8px);
  mix-blend-mode: screen;
  animation: blackHoleShimmer 3.1s ease-in-out infinite;
}

.orbit-trace {
  position: absolute;
  z-index: 1;
  left: 51%;
  top: 50%;
  width: 86%;
  height: 38%;
  border: 1px solid rgba(195, 137, 255, .12);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-9deg);
}

.trace-one { animation: orbitBreathe 8s ease-in-out infinite alternate; }
.trace-two { width: 104%; height: 47%; opacity: .42; animation: orbitBreathe 11s ease-in-out infinite alternate-reverse; }

.cosmic-chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid rgba(222, 180, 255, .16);
  border-radius: 13px;
  background: rgba(12, 6, 20, .68);
  box-shadow: 0 16px 35px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.04);
  backdrop-filter: blur(16px);
  color: #c9bfce;
  font-size: 11px;
  letter-spacing: .25px;
}

.cosmic-chip i { width: 7px; height: 7px; border-radius: 50%; background: #61e5ad; box-shadow: 0 0 14px #61e5ad; }
.cosmic-chip strong { color: #e7bdff; font-size: 15px; }
.cosmic-chip-one { top: 19%; right: 4%; }
.cosmic-chip-two { bottom: 21%; left: 2%; }
.cosmic-chip-three { right: 7%; bottom: 10%; }

.connect-card-wrap {
  grid-area: connect;
  width: 100%;
  max-width: 650px;
  margin: 0;
  align-self: start;
}

.connect-card {
  min-height: 176px;
  padding: 25px 26px;
  border: 1px solid rgba(216, 164, 255, .16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 6% 50%, rgba(164, 77, 236, .15), transparent 23%),
    linear-gradient(130deg, rgba(25, 13, 38, .9), rgba(11, 6, 18, .78));
  box-shadow: 0 24px 60px rgba(0,0,0,.3), inset 0 1px rgba(255,255,255,.04);
  backdrop-filter: blur(22px);
}

.connect-card .card-accent { left: 18%; right: 18%; height: 1px; background: linear-gradient(90deg, transparent, #b66eff, #ef5abb, transparent); }
.connect-card .bot-orbit { width: 106px; min-width: 106px; height: 106px; }
.connect-card .bot-logo { width: 72px; height: 72px; box-shadow: 0 0 38px rgba(143, 67, 232, .28); }
.connect-content { display: block; min-width: 0; text-align: left; }
.connect-content .small-label,
.connect-content h2,
.connect-content > p,
.connect-content .trust-row,
.connect-content .primary-button { width: 100%; }
.connect-content h2 { font-size: 20px; letter-spacing: -.55px; }
.connect-content > p { max-width: 500px; margin: 0 0 17px; color: #92889e; }
.primary-button { height: 48px; border-radius: 13px; background: linear-gradient(110deg, #7549e6, #b449e0 55%, #df4cae); box-shadow: 0 14px 32px rgba(151, 56, 211, .24); }
.connect-content .primary-button { display: flex; margin-top: 0; }
.connect-content .trust-row { display: flex; justify-content: flex-start; margin-top: 13px; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(177, 62, 221, .36); }
.floating-chip { border-color: rgba(218, 169, 255, .15); background: rgba(11, 5, 18, .78); backdrop-filter: blur(16px); }
.chip-one { right: -22px; top: 28px; }
.chip-two { left: -22px; bottom: 20px; }

.landing-footer {
  position: relative;
  z-index: 4;
  width: min(1480px, calc(100% - 48px));
  margin: auto;
  padding: 0 10px;
  border: 0;
  color: #5d5368;
}

@keyframes blackHoleFloat {
  0% { transform: translate3d(var(--tilt-x), var(--tilt-y), 0); }
  100% { transform: translate3d(calc(var(--tilt-x) + 4px), calc(var(--tilt-y) - 6px), 0); }
}
@keyframes auraSpin { to { transform: translate(-47%, -50%) rotate(360deg); } }
@keyframes photonSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes cosmicPulse { to { opacity: .66; transform: scale(1.06); } }
@keyframes orbitBreathe { to { opacity: .24; transform: translate(-50%, -50%) rotate(-6deg) scale(1.035); } }
@keyframes blackHolePhotoFloat {
  from { transform: translate(-50.4%, -49.6%) scale(1.006); }
  to { transform: translate(-49.6%, -50.4%) scale(1.018); }
}
@keyframes blackHolePlasmaFlow {
  from { transform: translate(-50.8%, -50.2%) scale(1.005); filter: saturate(1.02) contrast(1.03) brightness(.72); }
  to { transform: translate(-49.2%, -49.8%) scale(1.028); filter: saturate(1.18) contrast(1.09) brightness(1.14); }
}
@keyframes blackHolePhotonOrbit { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes blackHoleShimmer {
  0%,100% { opacity: .12; transform: translateX(-8%) rotate(14deg); }
  50% { opacity: .82; transform: translateX(8%) rotate(14deg); }
}

/* Quick Setup — floating command deck */
.setup-shell {
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, rgba(124, 65, 225, .16), transparent 31%),
    radial-gradient(circle at 8% 82%, rgba(220, 65, 185, .08), transparent 28%),
    #050208;
}

.setup-shell::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: url("aazizo-space-background.png") center / cover no-repeat;
  opacity: .1;
  filter: saturate(.75) blur(1px);
}

#quickSetup .setup-horizon-canvas { display: none; }
.setup-shell > *:not(.cursor-aurora) { position: relative; z-index: 2; }

.setup-header {
  width: min(1480px, calc(100% - 48px));
  height: 72px;
  margin: 20px auto 0;
  padding: 0 18px 0 14px;
  border: 1px solid rgba(222, 178, 255, .13);
  border-radius: 22px;
  background: rgba(15, 8, 24, .72);
  box-shadow: 0 18px 60px rgba(0,0,0,.3);
  backdrop-filter: blur(24px);
}

.setup-layout {
  width: min(1460px, calc(100% - 72px));
  min-height: calc(100svh - 130px);
  margin: 0 auto;
  padding: 30px 0 38px;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 22px;
}

.setup-sidebar-panel,
.setup-card {
  border: 1px solid rgba(218, 169, 255, .14);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(22, 11, 34, .84), rgba(9, 5, 15, .78));
  box-shadow: 0 30px 80px rgba(0,0,0,.3), inset 0 1px rgba(255,255,255,.035);
  backdrop-filter: blur(24px);
}

.setup-sidebar-panel { padding: 32px 26px; }
.setup-intro h1 { font-size: 34px; letter-spacing: -1.7px; }
.setup-server-card { border-color: rgba(208, 155, 255, .14); background: rgba(133, 70, 207, .07); border-radius: 18px; }
.setup-step-list li { border-radius: 15px; }
.setup-step-list li.active { background: linear-gradient(90deg, rgba(154, 79, 236, .14), rgba(154, 79, 236, .02)); }
.setup-step-list li.active i { background: linear-gradient(145deg, #7547e2, #d450bd); box-shadow: 0 0 22px rgba(190, 72, 222, .28); }
.setup-card { padding: 30px 34px; }
.setup-progress-line { height: 4px; border-radius: 999px; background: rgba(255,255,255,.045); }
.setup-progress-line i { background: linear-gradient(90deg, #774bdf, #d24cbe); box-shadow: 0 0 18px rgba(201, 75, 218, .35); }
.setup-field,
.setup-module,
.safety-preset,
.reaction-form,
.review-card { border-color: rgba(214, 166, 255, .12); background: rgba(255,255,255,.018); border-radius: 17px; }
.setup-next { border-radius: 13px; background: linear-gradient(105deg, #754ae3, #d04bbd); }

/* Dashboard — floating mission-control panels */
.dashboard-shell {
  position: relative;
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr);
  gap: 16px;
  min-height: 100svh;
  padding: 16px;
  overflow: clip;
  background:
    linear-gradient(rgba(255,255,255,.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px),
    radial-gradient(circle at 87% 5%, rgba(131, 63, 228, .13), transparent 28%),
    radial-gradient(circle at 42% 102%, rgba(220, 65, 184, .055), transparent 30%),
    #050208;
  background-size: 64px 64px, 64px 64px, auto, auto, auto;
}

.dashboard-cursor-aurora { opacity: .5; }
.sidebar {
  position: sticky;
  top: 16px;
  left: auto;
  width: auto;
  height: calc(100svh - 32px);
  padding: 14px 12px;
  border: 1px solid rgba(216, 169, 255, .12);
  border-radius: 26px;
  background: linear-gradient(165deg, rgba(20, 10, 31, .92), rgba(8, 4, 13, .88));
  box-shadow: 0 28px 80px rgba(0,0,0,.34), inset 0 1px rgba(255,255,255,.035);
  backdrop-filter: blur(24px);
}

.sidebar::before {
  content: "";
  position: absolute;
  left: 20%; right: 20%; top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(210, 139, 255, .62), transparent);
}

.sidebar-brand { min-height: 58px; padding: 5px 9px 13px; }
.server-switcher { margin: 5px 3px 18px; border-color: rgba(215, 169, 255, .13); border-radius: 17px; background: rgba(149, 77, 218, .065); }
.server-switcher .server-icon { background: linear-gradient(145deg, #713fd1, #d04bbf); box-shadow: 0 10px 24px rgba(165, 62, 205, .2); }
.main-nav { padding: 0 2px; min-height: 0; flex: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #713fd1 transparent; }
.sidebar > .sidebar-brand, .sidebar > .server-switcher, .sidebar > .sidebar-bottom { flex-shrink: 0; }
.nav-label { margin: 18px 10px 8px; color: #665c72; letter-spacing: 2px; }
.nav-item { min-height: 43px; margin-bottom: 3px; padding: 0 11px; border: 1px solid transparent; border-radius: 13px; color: #91889c; }
.nav-item:hover { color: #efe7f7; border-color: rgba(202, 145, 255, .08); background: rgba(181, 100, 255, .055); }
.nav-item.active { color: #fff; border-color: rgba(211, 154, 255, .14); background: linear-gradient(90deg, rgba(132, 70, 220, .23), rgba(207, 70, 190, .09)); box-shadow: inset 3px 0 #bd70ff; }
.nav-item.active .nav-icon { color: #d59aff; }
.nav-badge { border: 1px solid rgba(211, 161, 255, .1); background: rgba(179, 92, 239, .09); }
.sidebar-bottom { padding: 10px 5px 3px; }
.bot-health { border-color: rgba(255,255,255,.045); }
.user-card { border-radius: 14px; }

.dashboard-area {
  grid-column: 2;
  min-width: 0;
  padding: 0;
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 16px;
  height: 68px;
  padding: 0 16px 0 20px;
  border: 1px solid rgba(216, 169, 255, .11);
  border-radius: 22px;
  background: rgba(11, 6, 18, .76);
  box-shadow: 0 20px 60px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.03);
  backdrop-filter: blur(24px);
}

.search-box { height: 40px; border-color: rgba(215, 168, 255, .11); border-radius: 12px; background: rgba(255,255,255,.025); }
.icon-button,.help-button { border-color: rgba(214, 164, 255, .11); border-radius: 12px; background: rgba(255,255,255,.022); }
.view-container { width: 100%; max-width: none; padding: 32px 12px 48px; }
.page-head { margin-bottom: 28px; }
.page-title { font-size: clamp(32px, 3vw, 46px); letter-spacing: -2.2px; }
.page-subtitle { color: #958b9f; }

.card,
.stat-card,
.side-card,
.compact-section,
.config-card,
.welcome-banner,
.role-dashboard-hero,
.reaction-builder,
.reaction-preview {
  border-color: rgba(214, 164, 255, .115);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(20, 10, 31, .78), rgba(10, 5, 16, .74));
  box-shadow: 0 24px 65px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.03);
  backdrop-filter: blur(18px);
}

.welcome-banner {
  min-height: 190px;
  padding: 34px 36px;
  background:
    radial-gradient(circle at 87% 40%, rgba(181, 86, 245, .2), transparent 24%),
    linear-gradient(125deg, rgba(39, 18, 58, .92), rgba(12, 6, 19, .82));
}
.welcome-banner::after { background-image: url("aazizo-space-background.png"); background-size: cover; background-position: center 44%; opacity: .14; }
.stat-card { min-height: 142px; padding: 22px; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.stat-card:hover { transform: translateY(-3px); border-color: rgba(214, 153, 255, .22); background: linear-gradient(145deg, rgba(29, 14, 44, .85), rgba(12, 6, 19, .78)); }
.stat-icon { border-radius: 13px; background: rgba(178, 86, 236, .1); color: #d18aff; }
.stat-number { letter-spacing: -1.5px; }
.card-header { border-color: rgba(255,255,255,.05); }
.activity-list > * + *, .log-table > * + * { border-color: rgba(255,255,255,.045); }
.quick-action { border-color: rgba(211, 161, 255, .09); border-radius: 15px; background: rgba(255,255,255,.016); }
.quick-action:hover { border-color: rgba(210, 145, 255, .2); background: rgba(173, 82, 235, .07); transform: translateY(-2px); }
.toggle.on { background: linear-gradient(90deg, #7345d8, #ce4fbd); }
.small-primary,.save-action,.demo-action { border-radius: 12px; background: linear-gradient(105deg, #7549e2, #cf4cbd); }
.field input,.field select,.field textarea,.command-search input,.reaction-form input,.reaction-form select { border-color: rgba(216, 168, 255, .11); border-radius: 12px; background: rgba(255,255,255,.022); }

@media (max-width: 1180px) {
  .landing-nav { display: none; }
  .onboarding-main { grid-template-columns: minmax(390px, .9fr) minmax(470px, 1.1fr); width: calc(100% - 48px); gap: 20px; }
  .black-hole-stage { min-height: 590px; }
  .onboarding-copy h1 { font-size: clamp(51px, 5.7vw, 68px); }
  .cosmic-chip-two { left: -2%; }
  .dashboard-shell { grid-template-columns: 252px minmax(0,1fr); }
}

@media (max-width: 920px) {
  .onboarding-shell { display: block; min-height: 100svh; }
  .landing-header { width: calc(100% - 28px); margin-top: 14px; }
  .onboarding-main {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: "visual" "copy" "connect";
    grid-template-rows: 390px auto auto;
    width: min(690px, calc(100% - 34px));
    padding: 8px 0 46px;
    gap: 26px;
  }
  .black-hole-stage { min-height: 390px; height: 390px; }
  .black-hole-stage { --hole-ring-size: 39%; }
  .black-hole-photo { --hole-image-width: min(860px, 135%); }
  .cosmic-chip-one { right: 4%; top: 14%; }
  .cosmic-chip-two { left: 4%; bottom: 13%; }
  .cosmic-chip-three { right: 5%; bottom: 7%; }
  .onboarding-copy { align-self: auto; max-width: 660px; text-align: center; }
  .onboarding-copy h1,.onboarding-copy .lead { margin-left: auto; margin-right: auto; text-align: center; }
  .onboarding-copy h1 { font-size: clamp(50px, 9vw, 70px); }
  .onboarding-copy .eyebrow { margin-left: auto; margin-right: auto; }
  .steps-row { margin: 0 auto; justify-content: center; }
  .connect-card-wrap { margin: 0 auto; }
  .landing-footer { width: calc(100% - 34px); min-height: 60px; }

  .setup-layout { width: calc(100% - 34px); grid-template-columns: 1fr; padding-top: 20px; }
  .setup-sidebar-panel { position: static; }
}

@media (max-width: 760px) {
  .dashboard-shell { display: block; min-height: 100svh; padding: 0; overflow: visible; }
  .sidebar { position: fixed; z-index: 60; top: 0; left: 0; width: 282px; height: 100svh; border-width: 0 1px 0 0; border-radius: 0 24px 24px 0; transform: translateX(-102%); }
  .sidebar.open { transform: translateX(0); }
  .dashboard-area { width: 100%; padding: 0; }
  .topbar { top: 10px; height: 62px; margin: 10px 12px 0; padding: 0 13px; border-radius: 18px; }
  .view-container { width: 100%; padding: 30px 14px 36px; }
  .page-title { font-size: 32px; }
  .welcome-banner { min-height: 210px; padding: 28px 24px; }
}

@media (max-width: 560px) {
  .landing-header { height: 64px; border-radius: 18px; }
  .landing-header .brand-mark { width: 40px; height: 40px; }
  .status-pill { display: none; }
  .onboarding-main { grid-template-rows: 292px auto auto; width: calc(100% - 24px); gap: 20px; }
  .black-hole-stage { min-height: 292px; height: 292px; }
  .black-hole-stage { --hole-ring-size: 50%; }
  .black-hole-photo { --hole-image-width: 176%; }
  .orbit-trace { width: 110%; }
  .trace-two { width: 132%; }
  .cosmic-chip { padding: 8px 10px; font-size: 9px; }
  .cosmic-chip-one { top: 11%; right: 0; }
  .cosmic-chip-two { left: 0; bottom: 8%; }
  .cosmic-chip-three { display: none; }
  .onboarding-copy .eyebrow { margin-bottom: 16px; font-size: 9px; letter-spacing: 1.8px; }
  .onboarding-copy h1 { font-size: clamp(43px, 13vw, 58px); letter-spacing: -3.2px; }
  .onboarding-copy .lead { margin: 18px auto 22px; font-size: 14px; }
  .steps-row { width: 100%; }
  .mini-step span { font-size: 9px; }
  .connect-card { display: block; padding: 24px 20px; }
  .connect-card .bot-orbit { margin: 0 auto 18px; }
  .connect-content { text-align: center; }
  .connect-content > p { margin-left: auto; margin-right: auto; }
  .trust-row { justify-content: center; }
  .floating-chip { display: none; }
  .landing-footer { flex-direction: column; justify-content: center; gap: 9px; padding: 22px 0; }
  .setup-header { width: calc(100% - 24px); height: 64px; margin-top: 12px; border-radius: 18px; }
  .setup-header-status span { display: none; }
  .setup-layout { width: calc(100% - 24px); }
  .setup-sidebar-panel,.setup-card { border-radius: 22px; }
  .setup-card { padding: 24px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .black-hole-orbit,.black-hole-aura,.black-hole-stage::before,.orbit-trace,.black-hole-photo-base,.black-hole-photo-flow,.black-hole-photo-ring,.black-hole-photo-shimmer { animation: none !important; }
}

/* Compact Remak-inspired horizon + dependency-free GhostCursor shader */


.black-hole-stage {
  min-height: 590px;
  overflow: hidden;
  border-radius: 34px;
  --integrated-horizon-size: min(560px, 84%);
}

.black-hole-stage::before {
  inset: 0 -4% 4%;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(159, 80, 255, .2), rgba(101, 47, 194, .055) 43%, transparent 70%);
}

.integrated-horizon {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  transform: translate3d(var(--tilt-x), var(--tilt-y), 0);
  transform-origin: 50% 28%;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
  isolation: isolate;
}

.integrated-horizon::before {
  content: "";
  position: absolute;
  z-index: -2;
  left: 50%;
  top: 180px;
  width: 76%;
  height: 240px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 0, rgba(128, 67, 239, .19), rgba(79, 34, 170, .06) 39%, transparent 72%);
  filter: blur(16px);
}

.integrated-horizon::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 286px;
  width: 72%;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(208, 162, 255, .22), rgba(255,255,255,.34), rgba(148, 93, 255, .2), transparent);
  box-shadow: 0 0 28px rgba(146, 77, 255, .2);
}

.integrated-horizon-glow {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: -225px;
  width: var(--integrated-horizon-size);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle,
    #000 0 38%,
    rgba(2, 0, 7, .995) 39% 43%,
    rgba(255, 253, 255, .99) 44.5% 46.2%,
    rgba(220, 169, 255, .76) 47.5%,
    rgba(126, 66, 255, .37) 52%,
    rgba(83, 37, 193, .14) 61%,
    transparent 72%);
  filter: saturate(1.08);
  animation: integratedHorizonBreath 5.2s cubic-bezier(.45, .05, .55, .95) infinite;
  will-change: transform, filter;
}

.integrated-horizon-glow::before,
.integrated-horizon-glow::after {
  content: "";
  position: absolute;
  inset: -4%;
  border: 2px solid rgba(178, 115, 255, .24);
  border-radius: 50%;
  box-shadow:
    0 0 18px rgba(255,255,255,.42),
    0 0 44px rgba(166,92,255,.48),
    0 0 96px rgba(96,43,237,.34),
    inset 0 0 35px rgba(203,143,255,.2);
  animation: integratedEchoBreath 5.2s ease-in-out infinite;
}

.integrated-horizon-glow::after {
  inset: -9%;
  border-color: rgba(113, 67, 231, .12);
  filter: blur(3px);
  animation-delay: -2.6s;
}

.integrated-photon-flow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 12deg,
    transparent 0 9%, rgba(255,255,255,.82) 12%, transparent 17% 34%,
    rgba(171,99,255,.52) 39%, transparent 46% 67%,
    rgba(239,183,255,.6) 72%, transparent 80% 100%);
  -webkit-mask: radial-gradient(circle, transparent 0 43.5%, #000 44.5% 47.2%, transparent 48.5%);
  mask: radial-gradient(circle, transparent 0 43.5%, #000 44.5% 47.2%, transparent 48.5%);
  mix-blend-mode: screen;
  filter: blur(.6px);
  animation: integratedPhotonDrift 17s linear infinite;
}

.integrated-lens-band {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 258px;
  width: min(660px, 92%);
  height: 132px;
  transform: translateX(-50%);
  border-top: 1px solid rgba(229, 195, 255, .2);
  border-radius: 50%;
  box-shadow: 0 -12px 42px rgba(137, 73, 255, .1);
  opacity: .72;
  animation: integratedLensBreath 5.2s ease-in-out infinite;
}

.integrated-particle-field {
  position: absolute;
  z-index: 0;
  inset: 168px 6% 5%;
  opacity: .52;
}

.integrated-particle {
  position: absolute;
  width: var(--particle-size, 2px);
  height: var(--particle-size, 2px);
  border-radius: 50%;
  background: rgba(213, 181, 255, .74);
  box-shadow: 0 0 7px rgba(169, 95, 255, .82);
  animation: integratedParticleBlink var(--duration) ease-in-out var(--delay) infinite;
}

.black-hole-stage .orbit-trace {
  z-index: 0;
  top: 54%;
  border-color: rgba(195, 137, 255, .09);
}

.black-hole-stage .cosmic-chip { z-index: 5; }

@keyframes integratedHorizonBreath {
  0%, 100% { transform: translateX(-50%) translateY(-3px) scale(.982); filter: saturate(1.03) brightness(.88); }
  48% { transform: translateX(-50%) translateY(3px) scale(1.025); filter: saturate(1.16) brightness(1.17); }
}

@keyframes integratedEchoBreath {
  0%, 100% { opacity: .4; transform: scale(.99); }
  50% { opacity: .82; transform: scale(1.035); }
}

@keyframes integratedPhotonDrift { to { transform: rotate(360deg); } }

@keyframes integratedLensBreath {
  0%, 100% { opacity: .28; transform: translateX(-50%) scaleX(.98); }
  50% { opacity: .74; transform: translateX(-50%) scaleX(1.035); }
}

@keyframes integratedParticleBlink {
  0%, 100% { opacity: .08; transform: translateY(0) scale(.7); }
  50% { opacity: .72; transform: translateY(5px) scale(1.25); }
}

@media (max-width: 1180px) {
  .black-hole-stage { min-height: 540px; --integrated-horizon-size: min(520px, 88%); }
  .integrated-horizon-glow { top: -215px; }
  .integrated-lens-band { top: 238px; }
}

@media (max-width: 920px) {
  .black-hole-stage { min-height: 360px; height: 360px; --integrated-horizon-size: min(500px, 82%); }
  .onboarding-main { grid-template-rows: 360px auto auto; }
  .integrated-horizon-glow { top: -205px; }
  .integrated-lens-band { top: 228px; }
  .integrated-horizon::after { top: 252px; }
  .integrated-particle-field { inset: 128px 5% 2%; }
  .cosmic-chip-one { top: 20%; }
  .cosmic-chip-two { bottom: 10%; }
  .cosmic-chip-three { bottom: 5%; }
}

@media (max-width: 560px) {
  .black-hole-stage { min-height: 280px; height: 280px; --integrated-horizon-size: 430px; }
  .onboarding-main { grid-template-rows: 280px auto auto; }
  .integrated-horizon-glow { top: -180px; }
  .integrated-lens-band { top: 195px; width: 118%; }
  .integrated-horizon::after { top: 214px; width: 92%; }
  .integrated-particle-field { inset: 104px 1% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .integrated-horizon-glow,
  .integrated-horizon-glow::before,
  .integrated-horizon-glow::after,
  .integrated-photon-flow,
  .integrated-lens-band,
  .integrated-particle { animation: none !important; }
}
/* Command reference: no cursor-reactive decoration. */
.cursor-aurora, .dashboard-cursor-aurora { display: none; }
.command-toolbar { flex-wrap: wrap; }
.command-filters { flex-wrap: wrap; overflow: visible; gap: 7px; }
.command-search { flex: 1 1 100%; }
.command-row { grid-template-columns: minmax(0, 1fr) minmax(100px, 190px) 34px; }
.command-main { min-width: 0; }
.command-main > code { overflow-wrap: anywhere; flex-shrink: 0; }
.command-main p, .command-usage code { overflow-wrap: anywhere; white-space: normal; }
.command-main .command-usage { margin-top: 7px; }
.permission-pill { white-space: normal; text-align: center; }
.command-explanation, .related-commands > p { color: var(--muted); line-height: 1.6; margin: 18px 0; }
.related-commands { margin-top: 32px; }
.related-commands > h2 { font-size: 22px; }
.related-commands .command-group { margin-top: 16px; }
@media (max-width: 760px) {
  .command-row { grid-template-columns: minmax(0, 1fr) 34px; }
  .command-main { grid-column: 1 / -1; flex-wrap: wrap; }
  .permission-pill { justify-self: start; }
  .command-copy { grid-column: 2; }
}

/* ==========================================================================
   Server-Auswahl, Einstellungs-Kacheln, Kennzahlen und Tabellen.
   Das Markup dafuer bestand bereits, die Gestaltung fehlte vollstaendig.
   ========================================================================== */

/* --- Server-Auswahl ------------------------------------------------------ */
.guild-picker-shell { min-height: 100vh; display: flex; flex-direction: column; background:
  radial-gradient(1200px 700px at 78% -10%, rgba(124,108,242,.20), transparent 60%),
  radial-gradient(900px 600px at 10% 110%, rgba(199,255,74,.05), transparent 55%), var(--bg); }
.picker-header { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px clamp(20px, 5vw, 56px); border-bottom: 1px solid var(--border); }
.picker-logout { background: rgba(255,255,255,.04); border: 1px solid var(--border); color: var(--muted);
  border-radius: 9px; padding: 9px 16px; font-size: 12px; cursor: pointer; transition: .18s; }
.picker-logout:hover { color: var(--text); border-color: rgba(194,157,255,.35); background: rgba(255,255,255,.07); }

.guild-picker-main { width: min(920px, 100%); margin: 0 auto; padding: clamp(28px, 6vw, 64px) clamp(20px, 5vw, 40px) 56px; }
.picker-intro { text-align: center; margin-bottom: 34px; }
.picker-intro h1 { font-size: clamp(26px, 4vw, 40px); line-height: 1.15; margin: 16px 0 12px; letter-spacing: -.5px; }
.picker-intro p { color: var(--muted); font-size: 15px; max-width: 560px; margin: 0 auto; line-height: 1.6; }

.picker-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: clamp(20px, 3vw, 30px); box-shadow: 0 28px 70px rgba(0,0,0,.45); }
.picker-account { display: flex; align-items: center; gap: 14px; padding-bottom: 22px; margin-bottom: 24px;
  border-bottom: 1px solid var(--border); }
.picker-account > span:first-child { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #14091f;
  background: linear-gradient(140deg, var(--purple), #b79bff); }
.picker-account small { display: block; color: var(--muted); font-size: 10px; letter-spacing: 1.1px; }
.picker-account strong { font-size: 15px; }
.picker-account > i { margin-left: auto; width: 9px; height: 9px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px rgba(70,214,154,.14); }

.picker-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.picker-section-head span { color: var(--muted); font-size: 10px; letter-spacing: 1.2px; }
.picker-section-head h2 { font-size: 18px; margin: 5px 0 0; }
.picker-count { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 9px;
  border-radius: 9px; background: rgba(124,108,242,.16); color: #c6bcff; font-size: 13px; font-weight: 700; }
.picker-divider { height: 1px; background: var(--border); margin: 28px 0; }
.picker-footnote { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 26px 0 0;
  color: var(--muted); font-size: 12px; text-align: center; }
.refresh-guilds { background: rgba(255,255,255,.04); border: 1px solid var(--border); color: var(--muted);
  border-radius: 9px; padding: 8px 14px; font-size: 12px; cursor: pointer; transition: .18s; }
.refresh-guilds:hover { color: var(--text); border-color: rgba(194,157,255,.35); }

.guild-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 12px; }
.guild-choice-card { display: flex; flex-wrap: wrap; align-items: center; gap: 13px;
  padding: 14px; border: 1px solid var(--border); border-radius: 13px; background: rgba(255,255,255,.022);
  transition: .18s; }
.guild-choice-card > .guild-choice-icon { flex: 0 0 46px; }
.guild-choice-card > .guild-choice-copy { flex: 1 1 130px; }
.guild-choice-card > .guild-action { flex: 0 0 auto; margin-left: auto; }
.guild-choice-card:hover { border-color: rgba(194,157,255,.35); background: rgba(255,255,255,.05); transform: translateY(-1px); }
.guild-choice-card.is-installed { border-color: rgba(70,214,154,.22); }
.guild-choice-icon { width: 46px; height: 46px; border-radius: 13px; overflow: hidden; display: grid;
  place-items: center; background: rgba(124,108,242,.16); color: #cfc6ff; font-weight: 700; font-size: 15px; }
.guild-choice-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.guild-choice-copy { min-width: 0; }
.guild-choice-copy strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; }
.guild-choice-copy span { display: flex; align-items: center; gap: 6px; margin-top: 4px;
  color: var(--muted); font-size: 11px; }
.guild-choice-copy span i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: 0 0 6px; }
.guild-action { border-radius: 9px; padding: 9px 14px; font-size: 12px; font-weight: 600; cursor: pointer;
  white-space: nowrap; text-decoration: none; transition: .18s; border: 1px solid transparent; }
.guild-open { background: linear-gradient(120deg, var(--purple), #a68bff); color: #120a20; }
.guild-open:hover { filter: brightness(1.1); }
.guild-install { background: transparent; border-color: var(--border); color: var(--muted); }
.guild-install:hover { color: var(--text); border-color: rgba(194,157,255,.4); }
.guild-empty { grid-column: 1/-1; padding: 26px; text-align: center; color: var(--muted); font-size: 13px;
  border: 1px dashed var(--border); border-radius: 13px; }

/* --- Einstellungs-Kacheln mit echtem Schalter ---------------------------- */
.settings-layout { display: grid; gap: 16px; }
.settings-panel, .control-panel, .editor-panel, .table-panel, .connection-panel, .roadmap-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: 15px; padding: 20px; }
.dual-panels, .editor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.narrow-editor { max-width: 620px; }
.panel-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.panel-heading h2, .panel-heading h3 { font-size: 15px; margin: 0; }
.panel-heading p { color: var(--muted); font-size: 12px; margin: 3px 0 0; line-height: 1.5; }
.panel-icon { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(124,108,242,.15); color: #c6bcff; }
.panel-icon svg { width: 18px; height: 18px; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.rules-grid { display: grid; gap: 10px; }
.setting-tile { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px;
  padding: 15px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.022);
  cursor: pointer; transition: .18s; }
.setting-tile:hover { border-color: rgba(194,157,255,.3); background: rgba(255,255,255,.045); }
.setting-tile.setting-master { background: linear-gradient(115deg, rgba(124,108,242,.14), rgba(255,255,255,.02) 60%);
  border-color: rgba(124,108,242,.3); }
.setting-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(124,108,242,.15); color: #c6bcff; }
.setting-icon svg { width: 19px; height: 19px; display: block; }
.setting-tile .setting-copy > span { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.setting-tile .setting-copy strong { display: inline; font-size: 14px; font-weight: 600; }
.setting-tile .setting-copy p { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 4px 0 0; }
.setting-state { font-style: normal; font-size: 10px; letter-spacing: .6px; padding: 3px 8px; border-radius: 20px;
  background: rgba(255,255,255,.06); color: var(--muted); }
.setting-state::after { content: "AUS"; }
.setting-checkbox { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.switch-control { width: 46px; height: 26px; flex: 0 0 46px; border-radius: 20px; padding: 3px;
  background: rgba(255,255,255,.1); transition: .2s; display: block; }
.switch-control i { display: block; width: 20px; height: 20px; border-radius: 50%; background: #8b93a0;
  transition: .2s; }
.setting-checkbox:checked ~ .switch-control { background: linear-gradient(120deg, var(--purple), #a68bff); }
.setting-checkbox:checked ~ .switch-control i { transform: translateX(20px); background: #fff; }
.setting-checkbox:focus-visible ~ .switch-control { outline: 2px solid rgba(194,157,255,.7); outline-offset: 2px; }
.setting-tile:has(.setting-checkbox:checked) { border-color: rgba(124,108,242,.34); }
.setting-tile:has(.setting-checkbox:checked) .setting-state { background: rgba(124,108,242,.2); color: #cfc6ff; }
.setting-tile:has(.setting-checkbox:checked) .setting-state::after { content: "AN"; }
.rule-count { color: var(--muted); font-size: 12px; margin-left: auto; }

/* --- Kennzahlen ---------------------------------------------------------- */
.overview-grid { display: grid; gap: 16px; }
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.metric-card { position: relative; display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 13px;
  padding: 17px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; }
.metric-card small { display: block; color: var(--muted); font-size: 10px; letter-spacing: 1.1px; }
.metric-card strong { display: block; font-size: 24px; margin-top: 5px; letter-spacing: -.5px; }
.metric-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(124,108,242,.15); color: #c6bcff; }
.metric-icon svg { width: 20px; height: 20px; }
.metric-card > i { position: absolute; right: -30px; top: -30px; width: 96px; height: 96px; border-radius: 50%;
  background: rgba(124,108,242,.07); }
.metric-card.accent .metric-icon { background: rgba(199,255,74,.13); color: var(--lime); }
.metric-card.accent > i { background: rgba(199,255,74,.05); }
.metric-card.success .metric-icon { background: rgba(70,214,154,.14); color: var(--green); }
.metric-card.success > i { background: rgba(70,214,154,.05); }

/* --- Tabellen ------------------------------------------------------------ */
.table-panel { padding: 0; overflow: hidden; }
.table-panel .panel-heading { padding: 20px 20px 0; margin-bottom: 14px; }
.table-scroll { overflow-x: auto; }
.modern-table { width: 100%; border-collapse: collapse; min-width: 420px; }
.modern-table th { text-align: left; color: var(--muted); font-size: 10px; letter-spacing: 1px;
  padding: 12px 20px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02); font-weight: 600; }
.modern-table td { padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.04); font-size: 13px; }
.modern-table tr:last-child td { border-bottom: 0; }
.user-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--muted); }
.warning-level { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px;
  border-radius: 8px; background: rgba(255,178,91,.13); color: var(--orange); font-weight: 700; font-size: 12px; }
.table-empty { padding: 34px 20px; text-align: center; color: var(--muted); font-size: 13px; }

/* --- Kleinteile ---------------------------------------------------------- */
.action-primary, .inline-action { border-radius: 10px; padding: 11px 18px; font-size: 13px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; transition: .18s; }
.action-primary { background: linear-gradient(120deg, var(--purple), #a68bff); color: #120a20; }
.action-primary:hover { filter: brightness(1.1); }
.inline-action { background: transparent; border-color: var(--border); color: var(--muted); }
.inline-action:hover { color: var(--text); border-color: rgba(194,157,255,.4); }
.live-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 20px;
  background: rgba(70,214,154,.12); color: var(--green); font-size: 11px; font-weight: 600; }
.category-pill { display: inline-flex; padding: 6px 12px; border-radius: 20px; background: rgba(255,255,255,.05);
  color: var(--muted); font-size: 11px; }
.module-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.module-chips span { padding: 6px 11px; border-radius: 8px; background: rgba(255,255,255,.045);
  color: var(--muted); font-size: 11px; }
.modern-field { display: grid; gap: 7px; margin-bottom: 15px; }
.modern-field > span { color: var(--muted); font-size: 10px; letter-spacing: 1.1px; }
.modern-field input, .modern-field select, .modern-field textarea { width: 100%; border: 1px solid var(--border);
  background: rgba(255,255,255,.02); color: var(--text); border-radius: 10px; padding: 12px 14px;
  font-size: 13px; font-family: inherit; outline: 0; transition: .18s; }
.modern-field textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.modern-field input:focus, .modern-field select:focus, .modern-field textarea:focus {
  border-color: rgba(194,157,255,.45); background: rgba(255,255,255,.04); }
.modern-field small { color: var(--muted); font-size: 11px; }
.role-checklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 9px;
  max-height: 310px; overflow-y: auto; padding: 10px; border: 1px solid var(--border); border-radius: 12px;
  background: rgba(255,255,255,.015); }
.role-choice { position: relative; cursor: pointer; }
.modern-field .role-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.role-choice span { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.06); border-radius: 9px; color: var(--muted); background: rgba(255,255,255,.02); }
.role-choice span i { width: 15px; height: 15px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.22); border-radius: 4px; }
.role-choice input:checked + span { border-color: rgba(194,157,255,.45); color: var(--text); background: rgba(139,92,246,.13); }
.role-choice input:checked + span i { background: var(--purple); border-color: var(--purple); box-shadow: inset 0 0 0 3px #17121f; }
.role-choice input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.command-table { width: 100%; border-collapse: collapse; }
.compact { font-size: 12px; }
.connection-line { display: flex; align-items: center; gap: 10px; padding: 11px 0; color: var(--muted); font-size: 13px; }
.connection-line + .connection-line { border-top: 1px solid rgba(255,255,255,.04); }
.nav-symbol { display: inline-grid; place-items: center; width: 18px; height: 18px; }
.nav-symbol svg { width: 15px; height: 15px; }
.space-emblem, .space-stage img { max-width: 100%; height: auto; }

@media (max-width: 720px) {
  .guild-card-grid { grid-template-columns: 1fr; }
  .setting-tile { grid-template-columns: 36px 1fr auto; gap: 11px; padding: 13px; }
  .picker-panel { padding: 18px; }
  .metric-card strong { font-size: 20px; }
}

/* --- Nachtrag: Login-Buehne und Abschnitte der Server-Auswahl ------------ */
.picker-section { margin-bottom: 4px; }

.space-stage { position: relative; display: grid; place-items: center; min-height: clamp(280px, 40vw, 420px);
  margin: 8px 0; }
.space-ring { position: absolute; border: 1px solid rgba(194,157,255,.16); border-radius: 50%;
  pointer-events: none; }
.ring-first { width: clamp(230px, 32vw, 340px); aspect-ratio: 1; animation: ring-drift 26s linear infinite; }
.ring-second { width: clamp(310px, 44vw, 460px); aspect-ratio: 1; border-color: rgba(194,157,255,.09);
  animation: ring-drift 38s linear infinite reverse; }
@keyframes ring-drift { to { transform: rotate(360deg); } }
.space-emblem { position: relative; width: clamp(140px, 20vw, 210px); height: auto; border-radius: 50%;
  filter: drop-shadow(0 18px 44px rgba(124,108,242,.42)); }

.space-feature { position: absolute; display: flex; align-items: center; gap: 10px; padding: 11px 15px;
  border: 1px solid var(--border); border-radius: 13px; backdrop-filter: blur(9px);
  background: rgba(18,12,30,.78); box-shadow: 0 14px 34px rgba(0,0,0,.42); max-width: 210px; }
.space-feature strong { display: block; font-size: 13px; }
.space-feature span, .space-feature small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.feature-mod { top: 6%; left: 0; }
.feature-ticket { bottom: 10%; left: 6%; }
.feature-ai { top: 34%; right: 0; }
.space-caption { display: block; text-align: center; color: var(--muted); font-size: 11px;
  letter-spacing: 1.4px; margin-top: 12px; }

@media (max-width: 860px) {
  .space-stage { min-height: auto; padding: 18px 0; }
  .space-ring { display: none; }
  .space-feature { position: static; max-width: none; margin-top: 10px; }
  .space-stage { display: flex; flex-direction: column; align-items: center; }
}

/* Native Dropdowns: Windows darf kein helles Menue mit heller Schrift bauen. */
select {
  color-scheme: dark;
}

select option,
select optgroup {
  color: #f4efff;
  background-color: #171020;
}

select option:disabled {
  color: #82778f;
  background-color: #120c19;
}

/* Fehler-Toast: rot statt gruen. Ohne diese Regeln zeigt auch eine
   Fehlermeldung die Erfolgsfarben. */
.toast.error { border-color: rgba(255,107,114,.32); }
.toast.error .toast-icon { background: rgba(255,107,114,.12); color: var(--red); font-weight: 700; }

.moderation-rule { min-width: 0; margin: 24px 0; padding: 20px; border: 1px solid rgba(198,157,255,.2); border-radius: 16px; scroll-margin-top: 110px; }
.settings-layout, .settings-panel { min-width: 0; }
.moderation-rule legend { padding: 0 10px; font-weight: 700; color: #e4d2ff; }
.moderation-rule .editor-grid { margin-top: 0; }
.policy-preview { padding: 14px; border-left: 3px solid #a970ff; background: rgba(169,112,255,.07); color: #c9bed6; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }

/* Warnung, wenn der Serverprozess aelter ist als der Code auf der Platte.
   Siehe /api/version in server.py und checkServerVersion() in app.js. */
.stale-banner { position: fixed; inset: 0 0 auto 0; z-index: 400; display: flex; flex-direction: column; gap: 3px; padding: 11px 20px; background: linear-gradient(90deg,#4a2410,#5c2a12); border-bottom: 1px solid rgba(255,154,107,.4); color: #ffe2d2; font-size: 12px; line-height: 1.5; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.stale-banner strong { font-size: 13px; color: #ffb894; }
.stale-banner code { font-family: ui-monospace,Menlo,monospace; background: rgba(0,0,0,.3); border-radius: 4px; padding: 1px 5px; }

/* Echter Quick-Setup-Assistent innerhalb des Live-Dashboards. */
.quick-setup-layout { display: grid; grid-template-columns: minmax(170px,220px) minmax(0,1fr); gap: 22px; align-items: start; }
.quick-stepper { position: sticky; top: 92px; display: grid; gap: 8px; margin: 0; padding: 14px; list-style: none; border: 1px solid rgba(198,157,255,.13); border-radius: 18px; background: rgba(14,9,22,.82); }
.quick-stepper li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; min-height: 48px; padding: 7px 9px; border-radius: 12px; color: #6f6879; font-size: 11px; font-weight: 650; }
.quick-stepper i { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(198,157,255,.14); border-radius: 50%; font-style: normal; }
.quick-stepper li.active { color: #f4efff; background: rgba(151,76,228,.13); }
.quick-stepper li.active i { color: white; border-color: transparent; background: linear-gradient(145deg,#7547e2,#d450bd); box-shadow: 0 0 20px rgba(190,72,222,.25); }
.quick-stepper li.done { color: #bda0dc; }.quick-stepper li.done i { color: #d9b8ff; background: rgba(145,74,220,.12); }
.quick-review { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; padding: 16px; border: 1px solid rgba(198,157,255,.13); border-radius: 14px; background: rgba(132,66,202,.06); }
.quick-review strong { width: 100%; color: #f4efff; font-size: 12px; }.quick-review span { padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.05); color: #b9adc6; font-size: 10px; }
@media (max-width: 820px) { .quick-setup-layout { grid-template-columns: 1fr; }.quick-stepper { position: static; grid-template-columns: repeat(4,1fr); }.quick-stepper li { grid-template-columns: 1fr; justify-items: center; text-align: center; }.quick-stepper span { font-size: 8px; } }
