/* Meteor control panel — follows the meteorsystem.hu brand (ink, violet → pink, Bricolage + IBM Plex). */
@font-face { font-family: "Bricolage Grotesque"; src: url(/brand/bricolage-grotesque-800.ttf) format("truetype"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url(/brand/bricolage-grotesque-500.ttf) format("truetype"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(/brand/ibm-plex-sans-400.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(/brand/ibm-plex-sans-500.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(/brand/ibm-plex-sans-600.ttf) format("truetype"); font-weight: 600 700; font-display: swap; }

:root {
  color-scheme: dark;
  --ink: #06040b;
  --ink-2: #0b0716;
  --panel: #110b1d;
  --panel-2: #170f28;
  --line: #241837;
  --line-2: #3a2862;
  --text: #f2ecfb;
  --muted: #a397bf;
  --dim: #6f6590;
  --violet: #9b5cff;
  --violet-deep: #6d28d9;
  --lilac: #d7beff;
  --pink: #ff2bf1;
  --ok: #5be3a8;
  --warn: #ffc857;
  --err: #ff5d7a;
  --grad: linear-gradient(120deg, #8b4dff, #b04bff 55%, #ff2bf1);
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --r: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
body {
  min-height: 100vh;
  color: var(--text);
  background: var(--ink);
  font: 15px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
/* starfield + nebula */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1px 1px at 12% 18%, #fff9 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 12%, #fff7 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 38% 64%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 86% 58%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 84%, #fff5 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 34%, #fff7 50%, transparent 51%),
    radial-gradient(1px 1px at 93% 88%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 4% 46%, #fff5 50%, transparent 51%),
    radial-gradient(900px 520px at 85% -8%, #6d28d955, transparent 70%),
    radial-gradient(700px 480px at -5% 105%, #ff2bf11c, transparent 70%);
  background-size: 420px 420px, 380px 380px, 520px 520px, 460px 460px, 360px 360px, 600px 600px, 500px 500px, 440px 440px, auto, auto;
}
body::after {
  content: ""; position: fixed; top: -10vh; left: 70vw; width: 260px; height: 2px; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, transparent, #d7beff 70%, #fff);
  transform: rotate(-28deg); opacity: 0; animation: streak 9s var(--ease) 2s infinite;
  filter: drop-shadow(0 0 6px #ff2bf1);
}
@keyframes streak { 0% { opacity: 0; transform: translate(0, 0) rotate(152deg); } 4% { opacity: 1; } 14% { opacity: 0; transform: translate(-420px, 230px) rotate(152deg); } 100% { opacity: 0; } }

a { color: var(--lilac); text-decoration: none; }
a:hover { color: #fff; }
img { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; border-radius: 8px; }
.ico { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--ink) 72%, transparent); backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid #ffffff0d;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 800 21px/1 var(--display); letter-spacing: -.4px; }
.brand:hover { color: var(--text); }
.brand img { width: 30px; height: 30px; filter: drop-shadow(0 0 10px #ff2bf166); }
.brand b { background: linear-gradient(90deg, var(--lilac), var(--violet) 60%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.topbar-guild { display: flex; align-items: center; gap: 10px; color: var(--muted); min-width: 0; font-weight: 500; }
.topbar-guild img, .topbar-guild .initials { width: 26px; height: 26px; border-radius: 8px; font-size: 11px; }
.topbar-guild .sep { color: var(--line-2); }
.topbar-guild span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang-picker { position: relative; display: inline-flex; align-items: center; }
.lang-picker > svg { position: absolute; left: 12px; width: 17px; height: 17px; stroke: var(--lilac); fill: none; stroke-width: 1.8; pointer-events: none; z-index: 1; }
.lang-select { width: auto !important; max-width: 165px; padding: 8px 32px 8px 38px !important; border-radius: 11px !important; font-size: 13.5px; font-weight: 600; background-color: var(--panel) !important; }
.user { display: flex; align-items: center; gap: 10px; }
.user img { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 2px var(--line-2); }
.account-menu { position: relative; }
.account-menu summary { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 4px 10px 4px 5px; border: 1px solid var(--line-2); border-radius: 13px; background: var(--panel); cursor: pointer; list-style: none; transition: border-color .15s, background .15s; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary:hover, .account-menu[open] summary { border-color: var(--violet); background: var(--panel-2); }
.account-menu summary > .ico { width: 15px; height: 15px; transform: rotate(90deg); color: var(--muted); }
.account-menu[open] summary > .ico { transform: rotate(-90deg); }
.account-name { max-width: 135px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
.account-popover { position: absolute; top: calc(100% + 10px); right: 0; z-index: 30; min-width: 210px; padding: 6px; border: 1px solid var(--line-2); border-radius: 15px; background: var(--panel-2); box-shadow: 0 18px 50px #0009; }
.account-caption { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 9px 11px; color: var(--dim); font-size: 12px; font-weight: 600; }
.account-popover a, .account-popover button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 11px; border: 0; border-radius: 9px; background: transparent; color: var(--text); text-align: left; font-size: 13px; cursor: pointer; }
.account-popover a:hover, .account-popover button:hover { background: #9b5cff22; }
.account-popover .ico { width: 16px; height: 16px; color: var(--lilac); }
.account-divider { height: 1px; margin: 5px; background: var(--line-2); }
.account-popover button { color: var(--err); }
.account-popover button .ico { color: var(--err); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 12px;
  border: 1px solid var(--line-2); background: #ffffff08; color: var(--text); cursor: pointer; font-weight: 600; white-space: nowrap;
  transition: transform .15s var(--ease), border-color .15s, background .15s, box-shadow .15s;
}
.btn:hover { border-color: var(--violet); background: #9b5cff14; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.primary { border: 0; background: var(--grad); color: #fff; box-shadow: 0 8px 24px -12px #ff2bf1e6, inset 0 1px 0 #ffffff40; }
.btn.primary:hover { box-shadow: 0 12px 30px -10px #ff2bf1, inset 0 1px 0 #ffffff55; transform: translateY(-1px); }
.btn.ghost { border-color: transparent; background: none; color: var(--muted); }
.btn.ghost:hover { color: #fff; background: #ffffff0a; }
.btn.danger { color: var(--err); }
.btn.danger:hover { border-color: var(--err); background: #ff5d7a14; }
.btn.small { padding: 7px 12px; font-size: 13.5px; border-radius: 10px; }
.btn.large { padding: 14px 24px; font-size: 16px; border-radius: 14px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- layout ---------- */
main { max-width: 1280px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 40px) 140px; }
.loading { display: grid; place-items: center; min-height: 50vh; }
.spinner { width: 38px; height: 38px; border-radius: 50%; background: conic-gradient(from 0deg, transparent, var(--pink)); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 0); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 0); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.muted { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line-2); background: #9b5cff12; color: var(--lilac); font-size: 12.5px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.h1 { font: 800 clamp(26px, 3.4vw, 36px)/1.1 var(--display); letter-spacing: -.8px; margin: 0 0 8px; }
.lead { color: var(--muted); margin: 0 0 28px; font-size: 16px; max-width: 70ch; }
.server-picker-head { text-align: center; margin: 12px auto 36px; }
.server-picker-head .lead { margin: 10px auto 0; }
.grad-text { background: linear-gradient(95deg, #fff 10%, var(--lilac) 45%, var(--violet) 70%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- landing ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); grid-template-areas: "head art" "details art"; gap: 0 36px; align-items: center; margin: 34px 0 26px; min-height: 490px; }
.hero-head { grid-area: head; align-self: end; }
.hero-details { grid-area: details; align-self: start; }
.hero h1 { font: 800 clamp(42px, 5.5vw, 74px)/1 var(--display); letter-spacing: -2.4px; margin: 0 0 26px; }
.hero p { color: var(--muted); font-size: 18px; max-width: 54ch; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { grid-area: art; position: relative; display: grid; place-items: center; aspect-ratio: 1; min-width: 0; }
.hero-art::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, #ff2bf155, transparent 65%); filter: blur(20px); }
.hero-art img { position: relative; width: 78%; filter: drop-shadow(0 0 36px #ff2bf177); animation: float 6s ease-in-out infinite; }
.orbit { position: absolute; inset: 4%; border-radius: 50%; border: 1px dashed #d7beff33; animation: spin 60s linear infinite; }
.orbit::after { content: ""; position: absolute; top: 8%; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--lilac); box-shadow: 0 0 14px var(--pink); }
@keyframes float { 50% { transform: translateY(-14px) rotate(-3deg); } }
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 0 76px; }
.stats-strip div { position: relative; padding: 20px 22px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(150deg, #1a102a, var(--panel)); overflow: hidden; }
.stats-strip div::before { content: ""; position: absolute; top: 0; left: 22px; width: 46px; height: 2px; background: var(--grad); }
.stats-strip b { display: block; font: 800 32px/1 var(--display); letter-spacing: -.8px; }
.stats-strip span { color: var(--muted); font-size: 13.5px; }
.section-title { font: 800 clamp(26px, 3.2vw, 40px)/1.1 var(--display); letter-spacing: -1px; margin: 0 0 8px; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 28px; }
.feature { position: relative; padding: 24px; border-radius: var(--r); background: linear-gradient(180deg, #ffffff07, transparent), var(--panel); border: 1px solid var(--line); transition: border-color .2s, transform .2s var(--ease); overflow: hidden; }
.feature:hover { border-color: var(--line-2); transform: translateY(-3px); }
.feature::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .2s; }
.feature:hover::after { opacity: .7; }
.feature .tile { width: 44px; height: 44px; margin-bottom: 16px; }
.feature b { display: block; font: 700 18px/1.2 var(--display); margin-bottom: 6px; }
.feature span { color: var(--muted); font-size: 14.5px; }
.tile { display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, #9b5cff33, #ff2bf122); border: 1px solid #d7beff2e; color: var(--lilac); }
.tile .ico { width: 22px; height: 22px; }
.footer { margin-top: 80px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--dim); font-size: 13.5px; }

/* ---------- server picker ---------- */
.server-picker-head { margin: 28px auto 40px; }
.server-picker-head .h1 { font-size: clamp(30px, 4vw, 44px); }
.server-counts { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.server-counts > span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); color: var(--muted); font-size: 13px; }
.server-counts .ico { width: 15px; height: 15px; color: var(--lilac); }
.state-dot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.state-dot.on { background: var(--ok); box-shadow: 0 0 8px #5be3a888; }
.guild-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 14px; }
.guild-card { position: relative; display: flex; align-items: center; gap: 15px; min-height: 110px; padding: 18px; border-radius: 17px; background: linear-gradient(125deg, #1a102c, #100b1b 75%); border: 1px solid var(--line); color: var(--text); overflow: hidden; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.guild-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--grad); opacity: 0; transition: opacity .2s; }
.guild-card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 14px 35px #0005; color: var(--text); }
.guild-card:hover::before { opacity: 1; }
.guild-card img, .guild-card .initials { position: relative; flex: none; width: 58px; height: 58px; border-radius: 17px; box-shadow: 0 10px 25px #0006; }
.initials { display: grid; place-items: center; background: linear-gradient(135deg, var(--violet-deep), #2a1748); color: #fff; font: 800 22px var(--display); }
.guild-card-copy { display: flex; flex: 1; flex-direction: column; gap: 5px; min-width: 0; }
.guild-card .gname { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 17px/1.2 var(--display); }
.guild-card-meta { display: flex; flex-wrap: wrap; gap: 5px 10px; min-width: 0; }
.guild-card-status { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12.5px; }
.guild-card-detail { display: inline-flex; align-items: center; gap: 4px; min-width: 0; color: var(--muted); font-size: 12px; white-space: nowrap; }
.guild-card-detail .ico { width: 13px; height: 13px; }
.guild-card-detail.rank { color: var(--lilac); }
.rank-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guild-card-arrow { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border: 1px solid var(--line-2); border-radius: 10px; color: var(--lilac); transition: transform .2s, background .2s; }
.guild-card:hover .guild-card-arrow { transform: translateX(3px); background: #9b5cff22; }
.guild-card.off img, .guild-card.off .initials { filter: saturate(.65); }
.empty-state { padding: 30px; border: 1px dashed var(--line-2); border-radius: var(--r); background: #9b5cff0a; text-align: center; }

/* ---------- dashboard ---------- */
.dash { display: grid; grid-template-columns: 264px 1fr; gap: 26px; align-items: start; }
.side { position: sticky; top: 82px; padding: 10px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); max-height: calc(100vh - 100px); overflow-y: auto; }
.side { scrollbar-width: none; }
.side::-webkit-scrollbar { display: none; }
.side-guild { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 2px 2px 8px; padding: 8px 7px 15px; border-bottom: 1px solid var(--line); }
.side-guild img, .side-guild .initials { flex: none; width: 40px; height: 40px; border-radius: 12px; font-size: 13px; }
.side-guild > div:last-child { display: flex; flex-direction: column; min-width: 0; }
.side-guild strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 14px/1.2 var(--display); }
.side-guild span { color: var(--dim); font-size: 11px; }
.side-label { padding: 10px 12px 6px; color: var(--dim); font-size: 11.5px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; }
.side a { position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; }
.side a:hover { background: #ffffff08; color: var(--text); }
.side a.active { background: linear-gradient(90deg, #9b5cff2e, #9b5cff08); color: #fff; }
.side a.active::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--grad); }
.side a.active .ico { color: var(--lilac); }
.side .dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.side .dot.on { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.side hr { border: 0; border-top: 1px solid var(--line); margin: 8px 4px; }
.content { min-width: 0; }
.module-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(110deg, #9b5cff14, #110b1d 65%); }
.module-head .tile { width: 54px; height: 54px; border-radius: 16px; }
.module-head .tile .ico { width: 26px; height: 26px; }
.module-head .grow { flex: 1; min-width: 0; }
.module-head .h1 { margin: 0 0 2px; }
.module-head p { margin: 0; color: var(--muted); }
.card { border-radius: var(--r); padding: 24px; margin-bottom: 18px; background: linear-gradient(180deg, #ffffff05, transparent 120px), var(--panel); border: 1px solid var(--line); box-shadow: 0 12px 30px #0002; }
.card-title { display: flex; align-items: center; gap: 10px; font: 700 17px var(--display); margin: 0 0 4px; }
.card-sub { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
.page-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.page-heading-icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border: 1px solid #d7beff33; border-radius: 14px; background: #9b5cff20; color: var(--lilac); }
.page-heading-icon .ico { width: 24px; height: 24px; }
.page-heading .h1 { margin: 0; }
.page-heading .lead { margin: 3px 0 0; }

/* ---------- form fields ---------- */
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 22px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label, .field .label { font-weight: 600; font-size: 14px; color: #e6def6; }
.field .hint { color: var(--dim); font-size: 12.8px; }
.field.invalid input, .field.invalid select, .field.invalid textarea, .field.invalid .chips { border-color: var(--err); box-shadow: 0 0 0 3px #ff5d7a22; }
.field .error { color: var(--err); font-size: 13px; }
input[type=text], input[type=number], input[type=url], select, textarea {
  width: 100%; padding: 11px 13px; border-radius: 11px; outline: none;
  background: var(--ink-2); border: 1px solid var(--line-2); transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: #4b3780; }
input:focus, select:focus, textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px #9b5cff2e; }
textarea { min-height: 110px; resize: vertical; }
select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a397bf' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
input[type=color] { width: 58px; height: 42px; padding: 3px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--ink-2); cursor: pointer; }
.counter { align-self: flex-end; color: var(--dim); font-size: 12px; }

.switch { display: inline-flex; align-items: center; gap: 11px; cursor: pointer; user-select: none; font-weight: 600; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { position: relative; width: 44px; height: 26px; flex: none; border-radius: 99px; background: var(--line-2); transition: background .2s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px #0006; transition: transform .2s var(--ease); }
.switch input:checked + .track { background: var(--grad); box-shadow: 0 0 14px -2px #ff2bf199; }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--pink); outline-offset: 2px; }

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 46px; padding: 6px; border-radius: 11px; background: var(--ink-2); border: 1px solid var(--line-2); }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 6px 4px 11px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line-2); font-size: 13px; }
.chip .swatch { width: 9px; height: 9px; border-radius: 50%; }
.chip button { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 0 3px; font-size: 16px; line-height: 1; }
.chip button:hover { color: var(--err); }
.chips select { width: auto; flex: 1; min-width: 150px; border: 0; background-color: transparent; padding: 5px 30px 5px 8px; box-shadow: none; }

.items { display: flex; flex-direction: column; gap: 12px; }
.item { border-radius: 13px; background: var(--ink-2); border: 1px solid var(--line-2); }
.item-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; }
.item-head .chev { color: var(--dim); transition: transform .2s; }
.item:not(.collapsed) .item-head .chev { transform: rotate(90deg); }
.item-head b { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.item-body { padding: 6px 16px 18px; border-top: 1px solid var(--line); }
.item.collapsed .item-body { display: none; }

.command-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.command { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 11px; background: var(--ink-2); border: 1px solid var(--line); font: 500 13.5px ui-monospace, "JetBrains Mono", Consolas, monospace; color: #e6def6; }

/* ---------- save bar & toasts ---------- */
.savebar {
  position: fixed; left: 50%; bottom: 22px; z-index: 30; transform: translate(-50%, 160%); transition: transform .3s var(--ease);
  display: flex; align-items: center; gap: 12px; width: min(680px, calc(100% - 32px)); padding: 12px 12px 12px 22px;
  border-radius: 16px; background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(14px);
  border: 1px solid var(--line-2); box-shadow: 0 20px 50px -20px #000, 0 0 0 1px #ff2bf122;
}
.savebar.show { transform: translate(-50%, 0); }
.savebar span { flex: 1; font-weight: 600; }
#toasts { position: fixed; top: 78px; right: 18px; z-index: 50; display: flex; flex-direction: column; gap: 10px; }
.toast { max-width: 380px; padding: 12px 16px; border-radius: 13px; background: var(--panel); border: 1px solid var(--line-2); border-left: 3px solid var(--violet); box-shadow: 0 16px 40px -16px #000; animation: in .25s var(--ease); }
.toast.ok { border-left-color: var(--ok); }
.toast.err { border-left-color: var(--err); }
.toast.warn { border-left-color: var(--warn); }
@keyframes in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- profile, tables, stats ---------- */
.profile-intro { display: flex; align-items: center; gap: 18px; margin: 16px 0 32px; }
.profile-intro > img { width: 68px; height: 68px; border: 2px solid var(--line-2); border-radius: 20px; box-shadow: 0 12px 30px #0006; }
.profile-intro .h1 { margin: 2px 0 4px; }
.profile-intro .lead { margin: 0; }
.profile-user { color: var(--lilac); font-size: 12px; font-weight: 600; letter-spacing: .5px; }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); gap: 14px; }
.profile-grid .empty-state { grid-column: 1 / -1; }
.profile-row { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); flex-wrap: wrap; }
.profile-row img, .profile-row .initials { flex: none; width: 48px; height: 48px; border-radius: 15px; font-size: 15px; }
.profile-name { flex: 1; min-width: 150px; }
.profile-name b { font: 700 16px/1.2 var(--display); }
.badges { display: flex; gap: 6px; margin-top: 5px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; font-size: 12px; background: #ffffff08; border: 1px solid var(--line-2); color: var(--muted); }
.badge::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }
.badge.on { color: var(--ok); border-color: #5be3a855; background: #5be3a810; }
.badge.on::before { background: var(--ok); }
.profile-actions { display: flex; align-items: center; width: 100%; padding-top: 12px; border-top: 1px solid var(--line); }
.profile-actions .btn { width: 100%; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 14px 12px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.table th { color: var(--dim); font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.table tbody tr:hover { background: #9b5cff0b; }
.table tr:last-child td { border-bottom: 0; }
.table code { font-size: 12.5px; color: var(--muted); word-break: break-all; }
.table-card { overflow-x: auto; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { padding: 20px; border-radius: var(--r); background: linear-gradient(135deg, #1b102e, var(--panel)); border: 1px solid var(--line); }
.stat b { display: block; margin-top: 4px; font: 800 28px/1 var(--display); }
.stat span { color: var(--muted); font-size: 13px; }

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 0 18px; min-height: 390px; margin-top: 18px; }
  .hero h1 { font-size: clamp(38px, 5.6vw, 54px); letter-spacing: -1.8px; }
  .hero-art { width: 100%; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .dash { grid-template-columns: 1fr; }
  .side { position: static; display: flex; overflow-x: auto; gap: 4px; max-height: none; }
  .side-guild { display: none; }
  .side a { flex: none; }
  .side a.active::before, .side .dot, .side hr, .side-label { display: none; }
  .fields { grid-template-columns: 1fr; }
  .topbar-guild { display: none; }
}
@media (max-width: 680px) {
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 0; min-height: 0; margin: 30px 0 24px; }
  .hero-art { width: min(68vw, 280px); margin: 14px auto 0; }
  .hero h1 { font-size: clamp(38px, 9vw, 54px); margin-top: 0; }
  .hero p { font-size: 16px; margin-bottom: 24px; }
  .stats-strip { margin-bottom: 54px; }
  .stats-strip div { padding: 16px; }
}
@media (max-width: 560px) {
  .user .name, .topbar .nav-text { display: none; }
  .brand span { display: none; }
  .topbar { gap: 8px; padding: 11px 12px; }
  .topbar-right, .user { gap: 5px; }
  .user .btn.small { padding: 8px; }
  .lang-select { max-width: 48px; color: transparent; }
  .account-name { display: none; }
  .account-menu summary { padding-right: 6px; }
  .account-menu summary > .ico { display: none; }
  .module-head { flex-wrap: wrap; gap: 12px; padding: 16px; }
  .module-head .grow { flex-basis: calc(100% - 68px); }
  .module-head > .switch { margin-left: 66px; }
}
@media (max-width: 420px) {
  .topbar { gap: 6px; padding: 10px; }
  .topbar-right, .user { gap: 2px; }
  .user .btn.small { padding: 7px; }
  .account-menu summary { padding: 3px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* command reference */
.commands-intro { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin: 12px 0 28px; }
.commands-intro .h1 { margin: 12px 0 8px; }
.commands-intro .lead { margin: 0; }
.cmd-search-wrap { position: relative; flex: none; width: min(320px, 35%); }
.cmd-search-wrap > .ico { position: absolute; top: 50%; left: 14px; transform: translateY(-50%); width: 17px; height: 17px; color: var(--lilac); pointer-events: none; }
.cmd-search { margin: 0; padding-left: 42px !important; }
.commands-layout > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.command-group { margin: 0; min-width: 0; }
.command-group-tile { width: 36px; height: 36px; border-radius: 10px; }
.command-group-tile .ico { width: 18px; height: 18px; }
.cmd-table { display: flex; flex-direction: column; }
.cmd-row { display: grid; grid-template-columns: minmax(150px, .8fr) 1.2fr; gap: 6px 16px; padding: 12px 0; border-top: 1px solid var(--line); align-items: baseline; }
.cmd-row:hover { background: #9b5cff0a; }
.cmd-name { font: 600 14px ui-monospace, "JetBrains Mono", Consolas, monospace; color: var(--lilac); }
.cmd-args { font: 13px ui-monospace, "JetBrains Mono", Consolas, monospace; color: var(--dim); }
.cmd-alias { color: var(--dim); font-size: 13px; }
@media (max-width: 980px) { .commands-layout > div { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .commands-intro { display: block; }
  .cmd-search-wrap { width: 100%; margin-top: 20px; }
  .cmd-row { grid-template-columns: 1fr; }
}

/* ---------- MeteorBot help chat ---------- */
#meteor-chat { position: fixed; right: 22px; bottom: 22px; z-index: 60; transition: bottom .3s var(--ease); }
/* On narrower screens the save bar reaches the corner: the chat button steps up while it is shown. */
@media (max-width: 1000px) { body:has(.savebar.show) #meteor-chat { bottom: 106px; } }
.chat-launcher { position: relative; display: grid; place-items: center; width: 60px; height: 60px; margin-left: auto; padding: 0; border: 1px solid #d7beff88; border-radius: 20px; background: linear-gradient(145deg, #281343, #100a1d); box-shadow: 0 12px 36px #000b, 0 0 26px #a239ff44; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s; }
.chat-launcher:hover { transform: translateY(-3px); box-shadow: 0 16px 42px #000b, 0 0 35px #c442ff77; }
.chat-launcher img { width: 42px; height: 42px; object-fit: contain; }
.chat-notice { position: absolute; top: 5px; right: 5px; width: 9px; height: 9px; border: 2px solid var(--panel); border-radius: 50%; background: var(--ok); box-shadow: 0 0 9px var(--ok); }
.chat-panel { display: flex; flex-direction: column; width: min(380px, calc(100vw - 32px)); height: min(520px, calc(100dvh - 115px)); margin-bottom: 12px; border: 1px solid var(--line-2); border-radius: 20px; background: #110b1df7; box-shadow: 0 22px 70px #000c; backdrop-filter: blur(18px); overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-header { display: flex; align-items: center; gap: 11px; padding: 15px 17px; border-bottom: 1px solid var(--line); background: linear-gradient(110deg, #9b5cff1a, #ff2bf10c); }
.chat-header > img { width: 38px; height: 38px; object-fit: contain; }
.chat-header > div { display: flex; flex-direction: column; min-width: 0; }
.chat-header strong { font: 800 17px/1.2 var(--display); }
.chat-header span { color: var(--muted); font-size: 12px; }
.chat-close { margin-left: auto; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 25px; line-height: 1; cursor: pointer; }
.chat-close:hover { background: #ffffff10; color: var(--text); }
.chat-messages { display: flex; flex: 1; flex-direction: column; gap: 12px; min-height: 0; padding: 18px 16px; overflow-y: auto; scrollbar-width: thin; }
.chat-message { max-width: 90%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 13px 13px 13px 4px; background: var(--panel-2); font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
.chat-message.visitor { align-self: flex-end; border-color: #b04bff66; border-radius: 13px 13px 4px 13px; background: linear-gradient(120deg, #6d28d9, #a43ae4); color: #fff; }
.chat-message p { margin: 0; white-space: pre-line; }
.chat-q { display: block; margin: 0 0 4px; color: var(--text); font-size: 13.5px; }
.chat-message p + .chat-q, .chat-lines + .chat-q { margin-top: 10px; }
.chat-lines { margin: 2px 0 0; padding-left: 16px; color: var(--muted); }
.chat-lines li + li { margin-top: 3px; }
.chat-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chat-message .chat-links a { margin: 0; padding: 5px 9px; border: 1px solid var(--line-2); border-radius: 8px; background: #9b5cff12; font-size: 12.5px; text-decoration: none; }
.chat-message .chat-links a:hover { background: #9b5cff28; }
.chat-message a { display: inline-block; margin: 9px 10px 0 0; color: var(--lilac); font-weight: 600; }
.chat-message a:hover { color: #fff; }
.chat-suggestions { display: flex; gap: 6px; padding: 4px 14px 10px; overflow-x: auto; scrollbar-width: none; }
.chat-suggestions::-webkit-scrollbar { display: none; }
.chat-suggestions button { flex: none; padding: 6px 9px; border: 1px solid var(--line-2); border-radius: 8px; background: #9b5cff12; color: var(--lilac); font-size: 11.5px; cursor: pointer; }
.chat-suggestions button:hover { background: #9b5cff28; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--ink-2); font-size: 13px; }
.chat-form input:focus { outline: none; border-color: var(--violet); }
.chat-send { flex: none; width: 39px; border: 0; border-radius: 10px; background: var(--grad); color: #fff; font-size: 22px; cursor: pointer; }
.chat-send:hover { filter: brightness(1.12); }
.chat-send:disabled { opacity: .5; cursor: wait; }
@media (max-width: 560px) {
  #meteor-chat { right: 12px; bottom: 12px; }
  .chat-panel { width: calc(100vw - 24px); height: min(510px, calc(100dvh - 90px)); }
  body:has(.savebar.show) #meteor-chat { bottom: 126px; }
}

.module-off { border-color: var(--warn); color: var(--warn); padding: 14px 18px; font-weight: 500; }

/* ---------- statistics & announcements ---------- */
.heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.range { display: flex; gap: 8px; }
.stats .stat small { display: block; margin-top: 6px; color: var(--dim); font-size: 12.5px; }
.chart { display: block; width: 100%; height: auto; margin-top: 8px; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-axis { fill: var(--dim); font: 500 11px var(--body); }
.chart-bar { fill: var(--violet); transition: opacity .15s; }
.chart-bar.zero { fill: var(--line-2); }
.chart-bar:hover { opacity: .75; }
.chart-line { fill: none; stroke: var(--violet); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart-dot { fill: var(--panel); stroke: var(--violet); stroke-width: 2; }
.card.notice { border-color: #ffc85755; color: var(--warn); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.two-col .card { margin-bottom: 18px; }
.toplist { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.toplist li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: #ffffff05; border: 1px solid var(--line); }
.toplist .rank { width: 22px; text-align: center; color: var(--dim); font-weight: 700; }
.toplist li:nth-child(1) .rank { color: #ffd166; } .toplist li:nth-child(2) .rank { color: #d9dee8; } .toplist li:nth-child(3) .rank { color: #e0a272; }
.toplist img, .toplist .avatar-ph { width: 28px; height: 28px; border-radius: 50%; background: var(--line-2); flex: none; }
.toplist .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toplist b { font-variant-numeric: tabular-nums; }
.announce-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.preview-card { position: sticky; top: 84px; }
.a-buttons { display: grid; gap: 8px; }
.a-button-row { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px; }
.a-actions { display: flex; justify-content: flex-end; margin-top: 20px; }
.dc-preview { background: #313338; border-radius: 12px; padding: 14px 16px; color: #dbdee1; font: 15px/1.375 "gg sans", "Noto Sans", var(--body); }
.dc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.dc-head img { width: 40px; height: 40px; border-radius: 50%; }
.dc-head b { color: #f2f3f5; font-weight: 600; }
.dc-tag { background: #5865f2; color: #fff; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; }
.dc-content { white-space: pre-wrap; overflow-wrap: anywhere; margin: 2px 0 6px 50px; }
.dc-mention { background: #5865f24d; color: #c9cdfb; border-radius: 3px; padding: 0 2px; }
.dc-embed { display: flex; gap: 12px; margin: 4px 0 6px 50px; max-width: 520px; background: #2b2d31; border-left: 4px solid; border-radius: 4px; padding: 10px 14px 14px 12px; }
.dc-embed-main { flex: 1; min-width: 0; }
.dc-title { color: #f2f3f5; font-weight: 700; margin-bottom: 6px; overflow-wrap: anywhere; }
.dc-desc { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.dc-image { display: block; max-width: 100%; border-radius: 6px; margin-top: 12px; }
.dc-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; flex: none; }
.dc-footer { margin-top: 8px; font-size: 12px; color: #b5bac1; }
.dc-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-left: 50px; }
.dc-button { background: #4e5058; color: #fff; border-radius: 4px; padding: 6px 14px; font-size: 14px; font-weight: 500; }
.badge.scheduled { color: var(--warn); } .badge.sent { color: var(--ok); } .badge.failed, .badge.cancelled { color: var(--err); }
@media (max-width: 960px) {
  .announce-layout, .two-col { grid-template-columns: 1fr; }
  .preview-card { position: static; }
}
@media (max-width: 560px) {
  .a-button-row { grid-template-columns: 1fr; }
  .dc-content, .dc-embed, .dc-buttons { margin-left: 0; }
}

/* ---------- live status (/status) ---------- */
.st-heading { align-items: flex-end; flex-wrap: wrap; }
.st-heading .lead { margin: 4px 0 0; }
.st-now { display: flex; align-items: center; gap: 12px; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.st-pill { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 600; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.st-pill.ok { color: var(--ok); border-color: #5be3a855; background: #5be3a814; }
.st-pill.warn { color: var(--warn); border-color: #ffc85755; background: #ffc85714; }
.st-pill.bad { color: var(--err); border-color: #ff5d7a66; background: #ff5d7a14; }
.st-section .card-title { margin-bottom: 16px; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.st-tile { padding: 14px 16px 12px; border-radius: 13px; background: var(--ink-2); border: 1px solid var(--line); min-width: 0; }
.st-label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: var(--muted); font-size: 13px; }
.st-state { font-size: 12px; font-weight: 600; white-space: nowrap; }
.st-state.warn { color: var(--warn); }
.st-state.bad { color: var(--err); }
.st-head { display: flex; align-items: baseline; gap: 6px; margin: 2px 0 10px; }
.st-value { font: 800 28px/1.1 var(--display); letter-spacing: -.6px; font-variant-numeric: tabular-nums; color: var(--text); }
.st-unit { color: var(--muted); font-size: 13px; }
.st-sub:empty { display: none; }
.st-plot { position: relative; touch-action: pan-y; cursor: crosshair; }
.st-chart { display: block; width: 100%; height: 64px; overflow: visible; }
.st-line { fill: none; stroke: var(--violet); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.st-area { fill: var(--violet); opacity: .12; }
.st-cross { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; display: none; }
.st-dot { position: absolute; display: none; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 2px var(--ink-2); pointer-events: none; }
.st-scale { position: absolute; top: -14px; right: 0; font-size: 11px; color: var(--muted); pointer-events: none; font-variant-numeric: tabular-nums; }
.st-tip { position: absolute; bottom: calc(100% + 6px); transform: translateX(-50%); padding: 4px 8px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text); font-size: 12px; white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; z-index: 2; }
.st-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px 12px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.st-facts dt { color: var(--muted); font-size: 12.5px; }
.st-facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.st-message { max-width: 520px; margin: 12vh auto 0; text-align: center; }
.st-message p { margin: 0 0 16px; color: var(--muted); }
.st-note { margin: 4px 2px 0; font-size: 13.5px; }
.st-note a { color: var(--lilac); }
.st-tile[hidden], .st-section[hidden] { display: none; }

/* ===== Server settings layout v3: grouped sidebar, overview, settings rows ===== */
.dash { grid-template-columns: 272px minmax(0, 1fr); gap: 28px; }
.content { max-width: 940px; }
.side { padding: 12px 10px; }
.side-guild { color: var(--text); }
.side-guild:hover { background: none !important; }
.side-search { width: 100%; margin: 4px 0 6px; padding: 9px 12px 9px 34px !important; border-radius: 10px !important; font-size: 13.5px;
  background: var(--ink-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236f6590' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center !important; }
.side-group + .side-group { margin-top: 4px; }
.side-group .side-label { padding: 12px 12px 4px; font-size: 10.5px; }
.side a { padding: 8px 12px; font-size: 14px; }
.side a .side-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .side-back { margin-top: 8px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; padding-top: 12px; color: var(--dim); }

.crumbs { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; color: var(--dim); font-size: 13px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumb-sep { width: 13px; height: 13px; opacity: .6; }
.crumb-current { color: var(--text); font-weight: 600; }
.module-head.card { padding: 20px 22px; margin-bottom: 16px; }
.head-switch { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 16px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line-2); font-weight: 600; font-size: 14px; color: var(--muted); }
.notice { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: #ffc85712; border: 1px solid #ffc85744; color: var(--warn); font-size: 14px; }
.notice .ico { flex: none; }

.settings-card { padding: 0; overflow: hidden; }
.settings-card .card-head { padding: 20px 24px 16px; border-bottom: 1px solid var(--line); }
.settings-card .card-sub { margin: 0; }
.settings-list { display: flex; flex-direction: column; }
.settings-card > .settings-list > .row { padding: 18px 24px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 340px); gap: 8px 28px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.settings-list > .row:first-child { border-top: 0; }
.row.stack { grid-template-columns: 1fr; align-items: start; }
.row.bool { grid-template-columns: minmax(0, 1fr) auto; }
.row-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.row-text label { font-weight: 600; font-size: 14.5px; color: #eee7fb; }
.row-text .hint { color: var(--dim); font-size: 13px; line-height: 1.45; }
.row-control { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.row.bool .row-control { align-items: flex-end; }
.row .error { grid-column: 1 / -1; }
.row input[type=color] { align-self: flex-start; }
.item-body .settings-list > .row { padding: 14px 0; }
.item-body .row { grid-template-columns: minmax(0, 1fr) minmax(200px, 300px); }
.item-body .row.stack { grid-template-columns: 1fr; }
.item-body .row.bool { grid-template-columns: minmax(0, 1fr) auto; }

.overview-head { display: flex; align-items: center; gap: 20px; padding: 22px 24px; background: linear-gradient(115deg, #9b5cff1f, var(--panel) 60%); }
.overview-head img, .overview-head .initials { width: 64px; height: 64px; border-radius: 20px; flex: none; }
.overview-head .grow { flex: 1; min-width: 0; }
.overview-head .h1 { margin: 0 0 4px; }
.overview-head p { margin: 0; }
.overview-stats { display: flex; gap: 10px; }
.overview-stats div { min-width: 92px; padding: 10px 14px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line-2); text-align: center; }
.overview-stats b { display: block; font: 800 20px/1.1 var(--display); }
.overview-stats span { color: var(--dim); font-size: 12px; }
.overview-group { margin-top: 26px; }
.group-title { margin: 0 0 12px; font: 700 13px var(--body); letter-spacing: 1.3px; text-transform: uppercase; color: var(--dim); }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.mod-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); transition: border-color .15s, transform .15s var(--ease), opacity .15s; }
.mod-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.mod-card.off { opacity: .8; }
.mod-card.off:hover { opacity: 1; }
.mod-link { position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.mod-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.mod-top .tile { width: 38px; height: 38px; border-radius: 11px; }
.mod-top .tile .ico { width: 19px; height: 19px; }
.mod-top .switch { position: relative; z-index: 2; }
.mod-card b { font: 700 15.5px/1.25 var(--display); }
.mod-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mod-open { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--lilac); font-size: 13px; font-weight: 600; }
.mod-open .ico { width: 14px; height: 14px; transition: transform .15s var(--ease); }
.mod-card:hover .mod-open .ico { transform: translateX(3px); }

/* The top bar has five links, the language picker and the account: below this width only their icons fit. */
/* The sidebar already names the server; in the top bar it only fits on wide screens. */
@media (max-width: 1600px) { .topbar-guild { display: none; } }
@media (max-width: 1180px) {
  .topbar .nav-text, .account-name { display: none; }
  .user .btn.small { padding: 8px 10px; }
}
@media (max-width: 760px) {
  .lang-select { max-width: 48px; color: transparent; }
}
@media (max-width: 960px) {
  .dash { grid-template-columns: 1fr; gap: 18px; }
  .content { max-width: none; }
  .side { position: static; display: flex; overflow-x: auto; gap: 4px; max-height: none; }
  .side { padding: 8px; }
  .side-group { display: contents; }
  .side-search, .side .side-back { display: none; }
  .row, .item-body .row { grid-template-columns: 1fr; }
  .row.bool, .item-body .row.bool { grid-template-columns: minmax(0, 1fr) auto; }
  .overview-head { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .settings-card > .settings-list > .row { padding: 16px; }
  .settings-card .card-head { padding: 16px; }
  .module-head.card { flex-wrap: wrap; }
  .overview-stats { width: 100%; }
  .overview-stats div { flex: 1; }
}

/* ===== Server pages: full screen width, centred, equal side margins ===== */
main.wide { max-width: 1880px; padding-left: clamp(16px, 3.2vw, 64px); padding-right: clamp(16px, 3.2vw, 64px); }
main.wide .dash { grid-template-columns: 280px minmax(0, 1fr); gap: clamp(20px, 2.2vw, 36px); }
main.wide .content { max-width: none; }
main.wide .row { grid-template-columns: minmax(0, 1fr) minmax(240px, 460px); }
main.wide .row.stack { grid-template-columns: 1fr; }
main.wide .row.bool { grid-template-columns: minmax(0, 1fr) auto; }
main.wide .mod-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
@media (max-width: 960px) {
  main.wide .dash { grid-template-columns: 1fr; }
  main.wide .row, main.wide .item-body .row { grid-template-columns: 1fr; }
  main.wide .row.bool { grid-template-columns: minmax(0, 1fr) auto; }
}

/* ===== Server pages: sidebar and content scroll independently (desktop) ===== */
@media (min-width: 961px) {
  body:has(main.wide) { overflow: hidden; }
  main.wide { padding-top: 22px; padding-bottom: 0; }
  main.wide .dash { height: calc(100dvh - 73px - 44px); align-items: stretch; }
  main.wide .side { position: static; top: auto; height: 100%; max-height: none; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
  main.wide .content { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 0 8px 140px 2px; scrollbar-width: none; }
  main.wide .side::-webkit-scrollbar, main.wide .content::-webkit-scrollbar { display: none; }
}

/* ===== Premium ===== */
:root { --gold: #ffc857; --gold-2: #ff9f43; }
.premium-link { color: var(--gold) !important; }
.premium-link:hover { background: #ffc85714 !important; }
.pro-badge { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 2px 9px 2px 7px; border-radius: 99px; vertical-align: 2px;
  background: linear-gradient(120deg, #ffc85726, #ff9f4318); border: 1px solid #ffc85766; color: var(--gold); font: 700 11px/1.6 var(--body); letter-spacing: .4px; text-transform: uppercase; }
.pro-badge .ico { width: 12px; height: 12px; }
.pro-badge.big { font-size: 12px; padding: 3px 11px 3px 9px; vertical-align: 6px; }
.pro-badge:hover { color: #fff; border-color: var(--gold); }
.side .pro-dot { margin-left: auto; color: var(--gold); font-size: 12px; font-weight: 700; }
.row.locked .row-control { opacity: .45; pointer-events: none; }
.row.locked .row-text label { color: var(--muted); }
.items-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.items-count { color: var(--dim); font-size: 13px; }
.pro-upsell { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-size: 13px; font-weight: 600; }
.pro-upsell .ico { width: 14px; height: 14px; }

.pro-hero { display: flex; align-items: center; gap: 18px; padding: 22px 24px; background: linear-gradient(115deg, #ffc8571a, var(--panel) 55%); }
.pro-hero.active { border-color: #ffc85755; }
.pro-hero .tile { width: 54px; height: 54px; border-radius: 16px; color: var(--gold); background: linear-gradient(135deg, #ffc85733, #ff9f4322); border-color: #ffc85755; }
.pro-hero .tile .ico { width: 26px; height: 26px; }
.pro-hero .grow { flex: 1; min-width: 0; }
.pro-hero .h1 { margin: 0 0 2px; }
.pro-hero p { margin: 0; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 18px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.plan.highlight { border-color: transparent; background: linear-gradient(var(--panel), var(--panel)) padding-box, linear-gradient(130deg, var(--gold), var(--pink), var(--violet)) border-box; border: 1.5px solid transparent; box-shadow: 0 20px 50px -24px #ff2bf199; }
.plan-tag { position: absolute; top: -11px; right: 18px; padding: 3px 10px; border-radius: 99px; background: linear-gradient(120deg, var(--gold), var(--gold-2)); color: #1a1206; font-size: 11.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; }
.plan-name { font: 700 18px var(--display); }
.plan-price { display: flex; align-items: baseline; gap: 8px; }
.plan-price span { font: 800 38px/1 var(--display); letter-spacing: -1px; }
.plan-price small { color: var(--muted); font-size: 14px; }
.plan p { margin: 0; font-size: 14px; }
.plan .btn { margin-top: auto; }
.pro-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 20px; margin: 4px 0 18px; padding: 0; list-style: none; }
.pro-features li { display: flex; align-items: flex-start; gap: 10px; color: #e6def6; font-size: 14.5px; }
.pro-features .ico { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--ok); }
.pro-page { max-width: 1180px; margin: 0 auto; }
.pro-title { font-size: clamp(32px, 4.6vw, 52px); margin-top: 16px; }
.pro-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; align-items: start; }
.pro-columns .card { display: flex; flex-direction: column; gap: 6px; }
.pro-columns .card > .btn { align-self: flex-start; }
.card-editor { display: flex; flex-direction: column; gap: 14px; }
.card-editor .badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; }
.card-editor .badge .ico { width: 13px; height: 13px; }
.card-preview { width: 100%; aspect-ratio: 1100 / 360; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--line); object-fit: cover; }
.card-editor > .btn { align-self: flex-start; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.theme-tile { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 11px; background: var(--ink-2); border: 1px solid var(--line-2); color: var(--text); cursor: pointer; font-weight: 600; font-size: 13.5px; }
.theme-tile .swatch { width: 22px; height: 22px; flex: none; border-radius: 7px; background: linear-gradient(135deg, var(--a), var(--b)); }
.theme-tile.on { border-color: var(--gold); box-shadow: 0 0 0 2px #ffc85744; }
.admin-grant { display: grid; grid-template-columns: 150px minmax(0, 1fr) 170px 100px auto; gap: 10px; margin: 6px 0 18px; }
@media (max-width: 760px) { .admin-grant { grid-template-columns: 1fr 1fr; } .pro-hero { flex-wrap: wrap; } }
.pro-notice { background: linear-gradient(110deg, #ffc8571c, #ff2bf10f) !important; border-color: #ffc85766 !important; color: var(--gold) !important; }
.pro-notice span { flex: 1; }
.pro-notice b { color: #fff; }

/* Status colours: Premium modules glow gold, active ones green, inactive ones grey */
.side .dot { background: #4a4166; box-shadow: none; }
.side .dot.on { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.side .dot.pro { background: #8a6d2c; }
.side .dot.pro.on { background: var(--gold); box-shadow: 0 0 10px var(--gold), 0 0 2px var(--gold); }
.side a.pro { color: #f3d58a; }
.side a.pro .ico { color: var(--gold); filter: drop-shadow(0 0 5px #ffc85799); }
.side a.pro.active { background: linear-gradient(90deg, #ffc85730, #ffc85708); }
.mod-card .mod-top .switch input:checked + .track { background: linear-gradient(90deg, #2fb985, var(--ok)); box-shadow: 0 0 12px -2px #5be3a8aa; }
.mod-card.pro { border-color: #ffc85766; background: linear-gradient(160deg, #ffc85714, var(--panel) 55%); box-shadow: 0 0 0 1px #ffc85722, 0 12px 34px -18px #ffc857aa; }
.mod-card.pro .tile { color: var(--gold); background: linear-gradient(135deg, #ffc85733, #ff9f4322); border-color: #ffc85755; }
.mod-card.pro b::after { content: 'PREMIUM'; margin-left: 8px; padding: 1px 7px; border-radius: 99px; border: 1px solid #ffc85766; color: var(--gold); font: 700 10px/1.6 var(--body); letter-spacing: .5px; vertical-align: 2px; }
.mod-card.pro .switch input:checked + .track { background: linear-gradient(90deg, var(--gold-2), var(--gold)); box-shadow: 0 0 12px -2px #ffc857cc; }
.mod-card.off:not(.pro) { opacity: .8; }
.mod-card.off:not(.pro) .tile { filter: grayscale(.7); }

.setup-card { margin-bottom: 24px; padding: clamp(16px, 3vw, 24px); }
.setup-heading, .setup-item-title { display: flex; align-items: center; gap: 12px; }
.setup-heading { justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.setup-heading h2, .setup-item h3 { margin: 0; }
.setup-heading h2 { font-size: 1.125rem; }
.setup-heading p { margin: 4px 0 0; }
.setup-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.setup-item { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; border: 1px solid rgba(167, 139, 250, .22); background: rgba(139, 92, 246, .055); border-radius: 12px; padding: 14px; min-width: 0; }
.setup-item-title h3 { font-size: .96rem; }
.setup-item ul { margin: 0; padding-inline-start: 19px; overflow-wrap: anywhere; font-size: .85rem; }
.setup-item li + li { margin-top: 6px; }
.setup-status { border-radius: 999px; padding: 3px 9px; font-size: .75rem; font-weight: 650; background: rgba(148, 163, 184, .14); }
.setup-status.ready { color: #86efac; background: rgba(34, 197, 94, .12); }
.setup-status.attention { color: #fde68a; background: rgba(245, 158, 11, .12); }
.setup-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: #c4b5fd; font-size: .85rem; }
.setup-link .ico { width: 15px; height: 15px; }

/* ===== Module settings in separate boxes; switch boxes close while switched off ===== */
.set-box { margin-bottom: 14px; }
.set-box-head { display: flex; align-items: center; gap: 18px; padding: 18px 24px; }
.set-box-head .card-title { margin: 0; }
.set-box-head > .grow { flex: 1; min-width: 0; }
.set-box-head .card-sub { margin: 4px 0 0; }
.toggle-box .set-box-body { border-top: 1px solid var(--line); }
.set-box-off { display: none; align-items: center; gap: 8px; margin: 0; padding: 12px 24px; color: var(--muted); font-size: 13.5px; background: #ffffff05; border-bottom: 1px solid var(--line); }
.set-box-off svg { width: 16px; height: 16px; flex: none; }
.toggle-box.closed .set-box-off { display: flex; }
.toggle-box .set-box-body > .settings-list { transition: opacity .2s, filter .2s; }
.toggle-box.closed .set-box-body > .settings-list { opacity: .45; filter: grayscale(.6); }
.toggle-box.closed { background: var(--panel); }
.toggle-box.closed .set-box-head .card-title { color: var(--muted); }
.toggle-box:not(.closed) { border-color: #5be3a83d; }
.toggle-box .switch input:checked + .track { background: linear-gradient(90deg, #2fb985, var(--ok)); box-shadow: 0 0 12px -2px #5be3a8aa; }
.set-box .settings-list > .row:first-child { border-top: 0; }
.set-box-body > .settings-list > .row { padding: 18px 24px; }
@media (max-width: 960px) { .set-box-body > .settings-list > .row { padding: 16px; } }
@media (max-width: 560px) { .set-box-head { padding: 16px; } }

/* ===== Landing page: one bot instead of six, demo video, why, steps, FAQ, CTA ===== */
.replace, .demo, .why, .steps, .faq, .cta-band { margin: 0 0 96px; }
.replace { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 44px; align-items: center; }
.replace-copy .eyebrow { margin-bottom: 16px; }
.replace-copy .lead { margin: 14px 0 0; }
.replace-visual { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, .8fr); gap: 18px; align-items: center; }
.replace-bots { display: grid; gap: 8px; }
.replace-bot { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px dashed var(--line-2); border-radius: 12px; color: var(--muted); font-size: 14px; background: #ffffff05; text-decoration: line-through; text-decoration-color: #ff5a7a99; animation: fade-up .5s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
.replace-x { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 7px; background: #ff5a7a1f; color: #ff7b93; }
.replace-x .ico { width: 14px; height: 14px; transform: rotate(45deg); }
.replace-arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 26px -4px #ff2bf1aa; }
.replace-arrow .ico { width: 20px; height: 20px; color: #fff; }
.replace-meteor { display: grid; justify-items: center; gap: 8px; padding: 28px 18px; border-radius: 20px; text-align: center; background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; box-shadow: 0 24px 60px -28px #ff2bf1aa; }
.replace-meteor img { width: 72px; height: 72px; filter: drop-shadow(0 0 18px #ff2bf177); }
.replace-meteor b { font: 800 24px/1 var(--display); }
.replace-meteor span { color: var(--muted); font-size: 13.5px; }
.demo-frame { position: relative; margin-top: 26px; border-radius: 20px; padding: 1.5px; background: var(--grad); box-shadow: 0 40px 90px -40px #ff2bf1aa; }
.demo-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 19px; background: #07040d; }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.why-item { padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(180deg, #ffffff07, transparent), var(--panel); }
.why-item .tile { width: 44px; height: 44px; margin-bottom: 16px; }
.why-item b { display: block; font: 700 18px/1.25 var(--display); margin-bottom: 6px; }
.why-item span { color: var(--muted); font-size: 14.5px; }
.steps-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0; margin: 26px 0 0; counter-reset: none; }
.steps-list li { position: relative; display: grid; gap: 6px; padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.steps-list li:not(:last-child)::after { content: ""; position: absolute; top: 46px; right: -17px; width: 18px; height: 2px; background: var(--grad); }
.step-no { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 8px; border-radius: 12px; background: var(--grad); color: #fff; font: 800 18px/1 var(--display); }
.steps-list b { font: 700 18px/1.25 var(--display); }
.steps-list span:not(.step-no) { color: var(--muted); font-size: 14.5px; }
.faq { max-width: 860px; }
.faq .section-title { margin-bottom: 22px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); margin-bottom: 10px; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ico { width: 18px; height: 18px; flex: none; color: var(--muted); transition: transform .2s var(--ease); }
.faq-item[open] summary .ico { transform: rotate(180deg); }
.faq-item p { margin: 0; padding: 0 22px 20px; color: var(--muted); }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: 40px; border-radius: 24px; background: radial-gradient(120% 140% at 0% 0%, #8b4dff33, transparent 60%), radial-gradient(120% 140% at 100% 100%, #ff2bf12e, transparent 60%), var(--panel); border: 1px solid var(--line-2); }
.cta-band .lead { margin: 8px 0 0; }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 960px) {
  .replace { grid-template-columns: 1fr; gap: 28px; }
  .why-grid, .steps-list { grid-template-columns: 1fr 1fr; }
  .steps-list li::after { display: none; }
}
@media (max-width: 600px) {
  .replace-visual { grid-template-columns: 1fr; justify-items: stretch; }
  .replace-arrow { justify-self: center; transform: rotate(90deg); }
  .why-grid, .steps-list { grid-template-columns: 1fr; }
  .replace, .demo, .why, .steps, .faq, .cta-band { margin-bottom: 64px; }
  .cta-band { padding: 26px 20px; }
}
@media (prefers-reduced-motion: reduce) { .replace-bot { animation: none; } }

/* Landing: named single-purpose bots */
.replace-bot { text-decoration: none; }
.replace-name { display: grid; gap: 1px; min-width: 0; }
.replace-name b { color: var(--text); font: 700 15px/1.2 var(--display); text-decoration: line-through; text-decoration-color: #ff5a7acc; text-decoration-thickness: 2px; }
.replace-name small { color: var(--muted); font-size: 12.5px; }

/* FAQ page: one box per question */
.faq-group { margin: 0 0 34px; }
.faq-group-title { font-size: 18px; margin: 0 0 14px; }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.faq-box { margin: 0; min-width: 0; }
.faq-q { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 8px; font-weight: 600; }
.faq-q .ico { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--lilac); }
.faq-a { margin: 0; color: var(--muted); line-height: 1.55; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* TikTok accounts in the social module */
.role-labels { display: grid; gap: 8px; }
.role-label { display: grid; grid-template-columns: minmax(120px, 220px) 1fr; align-items: center; gap: 10px; }
.role-label .chip { justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .role-label { grid-template-columns: 1fr; gap: 4px; } }
.tiktok-list { display: grid; gap: 8px; margin-bottom: 10px; }
.tiktok-account { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.tiktok-account img { border-radius: 50%; flex: none; }
.tiktok-account b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Privacy policy and terms pages */
.legal { max-width: 760px; margin: 0 auto; padding: 32px 16px 60px; line-height: 1.65; }
.legal h1 { margin: 0 0 4px; }
.legal h2 { margin: 28px 0 8px; font-size: 19px; }
.legal p, .legal li { color: var(--muted); }

/* Module settings: one tab per box, only the chosen box is shown */
.set-box[hidden] { display: none; }
.set-tabs { display: flex; gap: 6px; margin: 0 0 14px; padding: 6px; overflow-x: auto; scrollbar-width: thin; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.set-tab { flex: none; padding: 9px 16px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: 600 14px var(--body); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.set-tab:hover { color: var(--text); background: #ffffff08; }
.set-tab.active { color: var(--text); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.set-tab:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

.tiktok-soon { display: block; margin-top: 8px; }
.switch-tab { display: inline-flex; align-items: center; gap: 8px; }
.tab-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); transition: background .2s, box-shadow .2s; }
.switch-tab.on .tab-dot { background: var(--ok); box-shadow: 0 0 8px var(--ok); }

/* ---------- /request page: the team's custom work ---------- */
.rq { max-width: 1080px; margin: 0 auto; padding: 0 20px 48px; }
.rq-icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.rq-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: end; padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.rq-display { font: 800 clamp(38px, 5.6vw, 72px)/1 var(--display); letter-spacing: -.035em; margin: 0 0 24px; max-width: 16ch; text-wrap: balance; }
.rq-lead { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 52ch; margin: 0 0 32px; }
.rq-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rq-index { display: flex; flex-direction: column; border-top: 1px solid var(--line-2); }
.rq-index a { display: flex; align-items: center; gap: 14px; padding: 16px 4px; border-bottom: 1px solid var(--line-2); color: var(--text); font: 600 18px var(--display); }
.rq-index a .rq-icon { color: var(--lilac); }
.rq-index a:hover { color: #fff; background: #9b5cff0d; }

.rq-section { padding: 72px 0 0; }
.rq-h2 { font: 800 clamp(28px, 3.4vw, 40px)/1.1 var(--display); letter-spacing: -.02em; margin: 0 0 28px; }

.rq-service { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2.2fr) auto; gap: 32px; align-items: start; padding: 32px 0; border-top: 1px solid var(--line); }
.rq-service:last-child { border-bottom: 1px solid var(--line); }
.rq-service-name { display: flex; align-items: center; gap: 14px; }
.rq-service-name .rq-icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; border: 1px solid var(--line-2); color: var(--lilac); }
.rq-service h3 { font: 700 21px/1.2 var(--display); margin: 0; }
.rq-service-body p { margin: 0 0 16px; color: #d9d0ea; font-size: 16px; line-height: 1.65; max-width: 62ch; }
.rq-includes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; color: var(--muted); font-size: 14.5px; }
.rq-includes li { position: relative; padding-inline-start: 20px; }
.rq-includes li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .45em; width: 9px; height: 5px; border-inline-start: 2px solid var(--violet); border-bottom: 2px solid var(--violet); transform: rotate(-45deg); }

.rq-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.rq-steps li { counter-increment: step; position: relative; padding-top: 52px; }
.rq-steps li::before { content: counter(step); position: absolute; top: 0; inset-inline-start: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--violet); color: var(--lilac); font: 700 16px var(--display); background: var(--ink); z-index: 1; }
.rq-steps li:not(:last-child)::after { content: ""; position: absolute; top: 18px; inset-inline-start: 44px; inset-inline-end: -20px; height: 1px; background: var(--line-2); }
.rq-steps h3 { font: 700 18px/1.25 var(--display); margin: 0 0 8px; }
.rq-steps p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

.rq-send { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 48px; margin-top: 80px; padding: 40px; border-radius: 22px; border: 1px solid var(--line-2); background: var(--panel); }
.rq-send-side .rq-h2 { margin-bottom: 14px; }
.rq-send-side p { margin: 0; max-width: 34ch; line-height: 1.6; }
.rq-login p, .rq-sent p { margin: 0 0 20px; color: #d9d0ea; font-size: 16px; line-height: 1.6; max-width: 52ch; }
.rq-sent h3 { font: 700 24px var(--display); margin: 0 0 8px; }
.rq-form { display: flex; flex-direction: column; gap: 22px; }
.rq-form > .btn { align-self: flex-start; }
.rq-who { margin: 0; font-size: 14px; }
.rq-kinds { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rq-kinds legend { padding: 0; margin-bottom: 10px; font-weight: 600; font-size: 14px; color: #e6def6; }
.rq-kind { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--ink-2); cursor: pointer; font-weight: 600; }
.rq-kind .rq-icon { color: var(--muted); }
.rq-kind:hover { border-color: #4b3780; }
.rq-kind input { position: absolute; opacity: 0; pointer-events: none; }
.rq-kind:has(input:checked) { border-color: var(--violet); background: #9b5cff17; }
.rq-kind:has(input:checked) .rq-icon { color: var(--lilac); }
.rq-kind:has(input:focus-visible) { outline: 2px solid var(--violet); outline-offset: 2px; }
.rq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rq-error { margin: 0; color: var(--err); font-size: 14px; }
.rq-mine { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.rq-mine h3 { font: 700 17px var(--display); margin: 0 0 6px; }
.rq-mine ul { list-style: none; margin: 0; padding: 0; }
.rq-mine li { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.rq-mine-kind { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.rq-mine-kind .rq-icon { width: 18px; height: 18px; color: var(--muted); }
.rq-status { padding: 3px 10px; border-radius: 99px; font-size: 12.5px; border: 1px solid var(--line-2); color: var(--muted); }
.rq-status.accepted { color: var(--ok); border-color: #5be3a855; }
.rq-status.declined { color: var(--err); border-color: #ff5d7a55; }

.rq-faq details { border-top: 1px solid var(--line); }
.rq-faq details:last-child { border-bottom: 1px solid var(--line); }
.rq-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font: 600 18px var(--display); }
.rq-faq summary::-webkit-details-marker { display: none; }
.rq-faq summary::after { content: ""; flex: none; width: 9px; height: 9px; border-inline-end: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s var(--ease); }
.rq-faq details[open] summary::after { transform: rotate(-135deg); }
.rq-faq summary:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; border-radius: 4px; }
.rq-faq p { margin: 0 0 22px; color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 68ch; }

@media (max-width: 900px) {
  .rq-hero { grid-template-columns: 1fr; gap: 40px; padding: 48px 0; }
  .rq-service { grid-template-columns: 1fr; gap: 16px; }
  .rq-service > .btn { justify-self: start; }
  .rq-steps { grid-template-columns: 1fr 1fr; }
  .rq-steps li:nth-child(2)::after { display: none; }
  .rq-send { grid-template-columns: 1fr; gap: 24px; padding: 28px 22px; }
}
@media (max-width: 560px) {
  .rq { padding: 0 16px 40px; }
  .rq-includes, .rq-kinds, .rq-row, .rq-steps { grid-template-columns: 1fr; }
  .rq-steps li::after { display: none; }
  .rq-send { margin-top: 56px; }
}
@media (prefers-reduced-motion: reduce) { .rq-faq summary::after { transition: none; } }
