:root {
  --bg: #080b13;
  --bg-soft: #0d1220;
  --panel: rgba(16, 22, 36, .78);
  --panel-solid: #111827;
  --panel-raised: #172033;
  --line: rgba(157, 175, 214, .14);
  --line-strong: rgba(157, 175, 214, .26);
  --text: #f4f7ff;
  --muted: #8e9ab4;
  --muted-bright: #b8c2d8;
  --accent: #8c7bff;
  --accent-2: #55d6ff;
  --success: #54e6a3;
  --danger: #ff7594;
  --shadow: 0 24px 90px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; overflow-x: hidden; color: var(--text); background: radial-gradient(900px 500px at 100% -10%, rgba(76, 105, 255, .31), transparent 70%), radial-gradient(700px 500px at -12% 40%, rgba(155, 61, 255, .22), transparent 70%), var(--bg); font: 15px/1.5 'DM Sans', sans-serif; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.ambient { position: fixed; z-index: -1; pointer-events: none; filter: blur(10px); border-radius: 999px; opacity: .45; animation: drift 14s ease-in-out infinite alternate; }
.ambient-one { width: 360px; height: 360px; top: 28%; left: -220px; background: #642dff; }
.ambient-two { width: 300px; height: 300px; right: -180px; bottom: 4%; background: #087cbb; animation-delay: -5s; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(25px, -18px, 0) scale(1.08); } }
.app-shell { width: min(1320px, calc(100% - 56px)); margin: 0 auto; padding: 24px 0 60px; }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 13px; background: linear-gradient(145deg, rgba(140, 123, 255, .25), rgba(85, 214, 255, .1)); box-shadow: 0 8px 30px rgba(94, 79, 229, .22); }
.brand-mark img { width: 38px; height: 38px; object-fit: contain; }
.brand strong { display: block; font: 700 20px/1 'Space Grotesk', sans-serif; letter-spacing: -.03em; }
.brand small { display: block; margin-top: 5px; color: var(--accent-2); font-size: 9px; font-weight: 700; letter-spacing: .23em; }
.top-actions { display: flex; gap: 10px; }
.ghost-link { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted-bright); text-decoration: none; transition: border-color .2s, background .2s, transform .2s; }
.ghost-link:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .06); transform: translateY(-1px); }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--accent-2); font-size: 10px; font-weight: 700; letter-spacing: .2em; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px rgba(84, 230, 163, .1), 0 0 16px var(--success); }
.landing { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr); align-items: center; gap: 80px; min-height: calc(100vh - 140px); padding: 54px 0 70px; }
.landing-copy { animation: rise .65s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.landing h1 { max-width: 700px; margin: 22px 0 22px; font: 700 clamp(44px, 6.5vw, 84px)/.98 'Space Grotesk', sans-serif; letter-spacing: -.07em; }
.landing h1 em { color: var(--accent-2); font-style: normal; text-shadow: 0 0 50px rgba(85, 214, 255, .22); }
.lede { max-width: 600px; margin: 0; color: var(--muted-bright); font-size: 18px; line-height: 1.7; }
.primary-button { display: inline-flex; align-items: center; gap: 13px; margin-top: 30px; padding: 14px 19px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 13px; color: #fff; background: linear-gradient(135deg, #7867ff, #55bfff); box-shadow: 0 16px 38px rgba(94, 97, 255, .3); font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, filter .2s; }
.primary-button:hover { filter: brightness(1.08); box-shadow: 0 20px 46px rgba(94, 97, 255, .4); transform: translateY(-2px); }
.primary-button .arrow { margin-left: 12px; font-size: 19px; }
.primary-button.compact { margin-top: 18px; padding: 11px 15px; font-size: 13px; }
.discord-icon { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 7px; color: #646dff; background: #fff; font-size: 13px; }
.micro { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; color: var(--muted); font-size: 12px; }
.micro span { color: var(--success); font-size: 10px; }
.landing-art { position: relative; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 28px; background: #05070d; box-shadow: var(--shadow); animation: rise .8s .08s ease both; }
.landing-art::after { position: absolute; inset: 0; content: ''; pointer-events: none; background: linear-gradient(145deg, rgba(126, 109, 255, .16), transparent 35%, rgba(32, 185, 255, .12)); }
.landing-art img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; opacity: .9; }
.art-glow { position: absolute; width: 60%; height: 60%; top: 19%; left: 20%; border-radius: 50%; background: #7d60ff; filter: blur(90px); opacity: .22; }
.art-badge { position: absolute; right: 18px; bottom: 18px; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; color: #e2e7ff; background: rgba(5, 8, 15, .7); backdrop-filter: blur(12px); font-size: 11px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px rgba(84, 230, 163, .12); }
.control-center { padding: 42px 0 0; }
.dashboard-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.dashboard-header h1 { margin: 13px 0 8px; font: 700 clamp(30px, 4vw, 47px)/1 'Space Grotesk', sans-serif; letter-spacing: -.06em; }
.dashboard-header h1 span { color: var(--accent-2); }
.dashboard-subtitle { max-width: 680px; margin: 0; color: var(--muted); }
.account-pill { display: flex; align-items: center; gap: 10px; min-width: 210px; padding: 8px 9px 8px 8px; border: 1px solid var(--line); border-radius: 15px; background: rgba(13, 19, 32, .66); }
.account-pill img, .avatar-fallback { width: 36px; height: 36px; border-radius: 11px; object-fit: cover; }
.avatar-fallback { display: grid; place-items: center; color: var(--accent-2); background: rgba(140, 123, 255, .16); }
.account-pill strong, .account-pill small { display: block; }
.account-pill strong { font-size: 12px; }
.account-pill small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.icon-button { width: 30px; height: 30px; margin-left: auto; border: 1px solid var(--line); border-radius: 9px; color: var(--muted-bright); background: transparent; cursor: pointer; transition: background .2s, color .2s; }
.icon-button:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.panel-glass { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(19, 27, 44, .86), rgba(12, 17, 29, .76)); box-shadow: 0 18px 55px rgba(0, 0, 0, .16); backdrop-filter: blur(18px); }
.server-picker { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 18px; border-radius: 17px; }
.picker-copy { display: flex; align-items: center; gap: 12px; }
.picker-copy strong, .picker-copy small { display: block; }
.picker-copy strong { font-size: 13px; }
.picker-copy small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.picker-icon { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 11px; color: var(--accent-2); background: rgba(85, 214, 255, .1); font-size: 18px; }
.select-wrap { position: relative; width: min(450px, 100%); }
.select-wrap select { width: 100%; appearance: none; padding: 12px 40px 12px 14px; border: 1px solid var(--line-strong); border-radius: 11px; outline: none; color: var(--text); background: rgba(4, 8, 16, .65); cursor: pointer; }
.select-wrap select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(140, 123, 255, .15); }
.select-wrap option { color: var(--text); background: #111827; }
.select-arrow { position: absolute; top: 9px; right: 15px; pointer-events: none; color: var(--accent-2); font-size: 20px; }
.server-workspace { margin-top: 18px; }
.empty-workspace { display: grid; min-height: 500px; place-items: center; border: 1px dashed var(--line-strong); border-radius: 20px; background: rgba(7, 11, 19, .34); }
.empty-state { max-width: 330px; text-align: center; }
.empty-state h2 { margin: 16px 0 5px; font: 600 25px 'Space Grotesk', sans-serif; }
.empty-state p, .error-card p { margin: 0; color: var(--muted); font-size: 13px; }
.empty-orbit { display: grid; width: 100px; height: 100px; margin: auto; place-items: center; border: 1px solid rgba(140, 123, 255, .34); border-radius: 50%; background: radial-gradient(circle, rgba(140, 123, 255, .22), transparent 65%); box-shadow: 0 0 0 16px rgba(140, 123, 255, .04), 0 0 55px rgba(140, 123, 255, .2); animation: float 4s ease-in-out infinite; }
.empty-orbit img { width: 76px; height: 76px; object-fit: contain; }
@keyframes float { 50% { transform: translateY(-7px); } }
.workspace-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 19px; border-radius: 17px; }
.selected-server { display: flex; align-items: center; gap: 12px; }
.guild-avatar { display: grid; width: 48px; height: 48px; place-items: center; overflow: hidden; border-radius: 15px; color: #d9d8ff; background: linear-gradient(145deg, rgba(140, 123, 255, .35), rgba(85, 214, 255, .2)); font: 700 20px 'Space Grotesk'; }
.guild-avatar img { width: 100%; height: 100%; object-fit: cover; }
.selected-server h2 { margin: 3px 0 2px; font: 600 21px/1.05 'Space Grotesk', sans-serif; }
.online-badge { color: var(--success); font-size: 10px; }
.online-badge i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 9px currentColor; }
.save-area { display: flex; align-items: center; gap: 9px; }
.save-status { min-width: 120px; color: var(--muted); font-size: 11px; text-align: right; }
.save-status.dirty { color: var(--accent-2); }
.save-status.success { color: var(--success); }
.save-status.error { color: var(--danger); }
.button { padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted-bright); background: rgba(255, 255, 255, .04); cursor: pointer; transition: background .2s, border-color .2s; }
.button:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .08); }
.settings-layout { display: grid; grid-template-columns: 265px minmax(0, 1fr); gap: 18px; margin-top: 18px; align-items: start; }
.category-nav { display: grid; gap: 4px; padding: 9px; border-radius: 17px; }
.category-button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 10px; border: 1px solid transparent; border-radius: 12px; color: var(--muted-bright); background: transparent; text-align: left; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.category-button:hover { color: #fff; background: rgba(255, 255, 255, .045); transform: translateX(2px); }
.category-button.active { border-color: rgba(140, 123, 255, .26); color: #fff; background: linear-gradient(100deg, rgba(140, 123, 255, .2), rgba(85, 214, 255, .05)); }
.category-button b { margin-left: auto; color: var(--muted); font-size: 19px; font-weight: 400; }
.category-button strong, .category-button small { display: block; }
.category-button strong { font-size: 12px; }
.category-button small { margin-top: 1px; color: var(--muted); font-size: 10px; }
.category-icon { display: grid; width: 29px; height: 29px; flex: 0 0 29px; place-items: center; border-radius: 9px; color: var(--accent-2); background: rgba(85, 214, 255, .08); font-size: 15px; }
.category-panel { min-height: 420px; padding: 24px; border-radius: 17px; animation: panel-in .32s ease both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.category-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.category-heading > div { display: flex; align-items: center; gap: 12px; }
.category-heading-icon { display: grid; width: 41px; height: 41px; place-items: center; border: 1px solid rgba(140, 123, 255, .25); border-radius: 13px; color: var(--accent-2); background: linear-gradient(145deg, rgba(140, 123, 255, .18), rgba(85, 214, 255, .08)); font-size: 20px; }
.category-heading h2 { margin: 4px 0 0; font: 600 24px/1 'Space Grotesk', sans-serif; }
.category-heading > p { max-width: 330px; margin: 8px 0 0; color: var(--muted); font-size: 12px; text-align: right; }
.category-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; padding-top: 21px; }
.toggle-card { display: flex; align-items: center; justify-content: space-between; grid-column: 1 / -1; gap: 18px; min-height: 72px; padding: 14px 15px; border: 1px solid rgba(140, 123, 255, .26); border-radius: 13px; background: linear-gradient(100deg, rgba(140, 123, 255, .13), rgba(85, 214, 255, .045)); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.toggle-card:hover { border-color: rgba(140, 123, 255, .52); transform: translateY(-1px); }
.toggle-card.is-off { border-color: var(--line); background: rgba(255, 255, 255, .025); }
.toggle-copy strong, .toggle-copy small { display: block; }
.toggle-copy strong { font-size: 13px; }
.toggle-copy small { max-width: 660px; margin-top: 3px; color: var(--muted); font-size: 11px; }
.switch { position: relative; display: inline-block; width: 43px; height: 24px; flex: 0 0 43px; }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.slider { position: absolute; inset: 0; border-radius: 999px; background: #283247; transition: .22s; }
.slider::before { position: absolute; width: 18px; height: 18px; bottom: 3px; left: 3px; content: ''; border-radius: 50%; background: #aab5ce; box-shadow: 0 2px 7px rgba(0, 0, 0, .3); transition: .22s; }
.switch input:checked + .slider { background: linear-gradient(90deg, #7968ff, #50cfff); }
.switch input:checked + .slider::before { transform: translateX(19px); background: #fff; }
.field { display: grid; gap: 7px; }
.field > span { color: var(--muted-bright); font-size: 11px; }
.field input { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; outline: none; color: var(--text); background: rgba(4, 8, 16, .55); transition: border-color .2s, box-shadow .2s; }
.field input::placeholder { color: #59647b; }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(140, 123, 255, .12); }
.install-card { display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: 25px; min-height: 360px; padding: 34px; border-radius: 20px; }
.install-art { display: grid; width: 155px; height: 155px; place-items: center; border-radius: 50%; background: radial-gradient(circle, rgba(140, 123, 255, .28), transparent 68%); }
.install-art img { width: 145px; height: 145px; object-fit: contain; }
.install-card h2 { margin: 8px 0; font: 600 30px/1.05 'Space Grotesk', sans-serif; }
.install-card p { max-width: 570px; margin: 0; color: var(--muted); }
.loading-card { display: grid; min-height: 420px; place-items: center; align-content: center; gap: 14px; border: 1px dashed var(--line); border-radius: 20px; color: var(--muted); }
.loader { width: 30px; height: 30px; border: 2px solid rgba(140, 123, 255, .22); border-top-color: var(--accent-2); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-card { display: grid; min-height: 300px; place-items: center; align-content: center; gap: 8px; padding: 25px; border: 1px solid rgba(255, 117, 148, .25); border-radius: 18px; background: rgba(255, 117, 148, .05); text-align: center; }
.error-card > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: var(--danger); background: rgba(255, 117, 148, .13); font-weight: 700; }
.error-card h2 { margin: 3px 0 0; font: 600 23px 'Space Grotesk', sans-serif; }
.error-card.standalone { max-width: 500px; min-height: 300px; margin: 120px auto; }
@media (max-width: 950px) { .landing { grid-template-columns: 1fr; gap: 35px; padding-top: 50px; } .landing-art { width: min(560px, 100%); } .dashboard-header { flex-direction: column; } .account-pill { align-self: stretch; width: fit-content; } }
@media (max-width: 760px) { .app-shell { width: min(100% - 32px, 620px); padding-top: 16px; } .landing h1 { font-size: clamp(42px, 14vw, 68px); } .server-picker, .workspace-top { align-items: stretch; flex-direction: column; } .select-wrap { width: 100%; } .save-area { flex-wrap: wrap; } .save-status { width: 100%; min-width: 0; text-align: left; } .settings-layout { grid-template-columns: 1fr; } .category-nav { display: flex; overflow-x: auto; padding: 6px; } .category-button { min-width: 150px; } .category-button b { display: none; } .category-panel { padding: 18px; } .category-heading { display: block; } .category-heading > p { max-width: none; margin: 13px 0 0; text-align: left; } .category-content { grid-template-columns: 1fr; } .install-card { grid-template-columns: 1fr; justify-items: center; padding: 25px; text-align: center; } .install-card .eyebrow { justify-content: center; } .install-card p { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* Shared form controls for server resources and birthday messages. */
.field select,.field textarea{width:100%;box-sizing:border-box;background:#101522;color:#edf1ff;border:1px solid #30394d;border-radius:12px;padding:12px 14px;font:inherit;outline:none}
.field textarea{resize:vertical;min-height:130px;line-height:1.6}
.field select:focus,.field textarea:focus{border-color:#8e86ff;box-shadow:0 0 0 3px #8e86ff24}
.field select option{background:#101522;color:#edf1ff}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
