/* Ajex.Theta — design system (graphite + chrome + aurora). Created & Developed by Abdulaziz */
:root {
  --bg: #121419; --bg-2: #171A20; --panel: #1C1F26; --panel-2: #222630; --panel-3: #2A2F3A; --hover: #2C313C;
  --line: #2B303A; --line-2: #383E4A; --text: #EDEFF3; --text-2: #B7BDC8; --muted: #8A919E;
  --cyan: #22E4FF; --blue: #3D8BFF; --violet: #8B5CFF; --pink: #FF4FD8; --gold: #F5C451;
  --ok: #2BD98A; --warn: #F5A524; --err: #FF4D6A; --info: #3D8BFF;
  --aurora: linear-gradient(90deg, #22E4FF 0%, #3D8BFF 35%, #8B5CFF 68%, #FF4FD8 100%);
  --aurora-soft: linear-gradient(90deg, rgba(34,228,255,.16), rgba(139,92,255,.16), rgba(255,79,216,.16));
  --chrome: linear-gradient(180deg, #FFFFFF 0%, #DCE1E8 42%, #8C96A6 52%, #D6DCE4 70%, #FFFFFF 100%);
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 22px;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 16px 40px -24px rgba(0,0,0,.9);
  --shadow-pop: 0 30px 70px -20px rgba(0,0,0,.85), 0 0 0 1px var(--line-2);
  --font: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --font-display: 'Alexandria', 'IBM Plex Sans Arabic', 'Segoe UI', sans-serif;
  --font-latin: 'Saira', 'Alexandria', 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.2,.7,.2,1);
  --sidebar: 272px; --topbar: 64px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
[lang="en"] body, body.en { --font-display: 'Saira', 'Alexandria', 'Segoe UI', sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: rgba(139,92,255,.45); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-size: .92em; }
.latin { font-family: var(--font-latin); }
.muted { color: var(--muted); }
.t2 { color: var(--text-2); }
.nowrap { white-space: nowrap; }
.grad-text { background: var(--aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chrome-text { background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #343a46; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease); white-space: nowrap; user-select: none; }
.btn:hover { background: var(--hover); border-color: #4a5160; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: linear-gradient(135deg, #3D8BFF, #8B5CFF 60%, #C04BEB); border-color: transparent; color: #fff; box-shadow: 0 10px 26px -12px rgba(139,92,255,.8); }
.btn-primary:hover { background: linear-gradient(135deg, #4F97FF, #9A70FF 60%, #CC5EF2); border-color: transparent; box-shadow: 0 14px 30px -12px rgba(139,92,255,.95); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--panel-2); color: var(--text); border-color: var(--line); }
.btn-danger { background: rgba(255,77,106,.12); border-color: rgba(255,77,106,.35); color: #FF8DA0; }
.btn-danger:hover { background: rgba(255,77,106,.2); border-color: rgba(255,77,106,.6); }
.btn-ok { background: rgba(43,217,138,.12); border-color: rgba(43,217,138,.35); color: #7DF0BC; }
.btn-ok:hover { background: rgba(43,217,138,.2); }
.btn-sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn-xs { height: 28px; padding: 0 9px; font-size: 12.5px; border-radius: 7px; gap: 6px; }
.btn-icon { width: 40px; padding: 0; }
.btn-sm.btn-icon { width: 32px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 12px; }

/* ---------- form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: 12px; color: var(--muted); }
.input, .select, .textarea { width: 100%; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); transition: border-color .2s, box-shadow .2s; }
.textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.6; }
.input:hover, .select:hover, .textarea:hover { border-color: #4a5160; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139,92,255,.22); }
.input.invalid { border-color: var(--err); box-shadow: 0 0 0 3px rgba(255,77,106,.18); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 30px; }
[dir="rtl"] .select { background-position: 13px 18px, 18px 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--panel-3); border: 1px solid var(--line-2); transition: background .2s; }
.switch span::after { content: ''; position: absolute; top: 2px; inset-inline-start: 2px; width: 18px; height: 18px; border-radius: 50%; background: #cfd5df; transition: transform .2s var(--ease), background .2s; }
.switch input:checked + span { background: linear-gradient(90deg, #3D8BFF, #8B5CFF); border-color: transparent; }
.switch input:checked + span::after { transform: translateX(18px); background: #fff; }
[dir="rtl"] .switch input:checked + span::after { transform: translateX(-18px); }
.search { position: relative; }
.search svg { position: absolute; top: 50%; inset-inline-start: 12px; width: 17px; height: 17px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search .input { padding-inline-start: 38px; }

/* ---------- surfaces ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card-head h3 { margin: 0; font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.card-head h3 svg { width: 18px; height: 18px; color: var(--violet); }
.card-body { padding: 18px; }
.card-body.flush { padding: 0; }
.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }

/* KPI */
.kpi { position: relative; padding: 18px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); overflow: hidden; display: flex; gap: 14px; align-items: center; }
.kpi::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--kpi, var(--aurora)); opacity: .9; }
.kpi-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--kpi-c, #8B5CFF) 16%, transparent); color: var(--kpi-c, #8B5CFF); flex: none; }
.kpi-icon svg { width: 22px; height: 22px; }
.kpi-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi-value { font: 700 26px/1.15 var(--font-latin); letter-spacing: .01em; }
.kpi-sub { font-size: 12px; color: var(--text-2); }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; background: var(--panel-3); color: var(--text-2); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-ok { background: rgba(43,217,138,.12); color: #7DF0BC; border-color: rgba(43,217,138,.25); }
.b-warn { background: rgba(245,165,36,.12); color: #FFC66B; border-color: rgba(245,165,36,.25); }
.b-err { background: rgba(255,77,106,.12); color: #FF94A6; border-color: rgba(255,77,106,.28); }
.b-info { background: rgba(61,139,255,.13); color: #8DB9FF; border-color: rgba(61,139,255,.28); }
.b-violet { background: rgba(139,92,255,.14); color: #BBA3FF; border-color: rgba(139,92,255,.3); }
.b-pink { background: rgba(255,79,216,.13); color: #FF9BE9; border-color: rgba(255,79,216,.28); }
.b-cyan { background: rgba(34,228,255,.11); color: #8BF2FF; border-color: rgba(34,228,255,.25); }
.b-gold { background: rgba(245,196,81,.12); color: #FFD98A; border-color: rgba(245,196,81,.28); }
.live-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex: none; }
.live-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ok); opacity: 0; animation: ping 1.8s ease-out infinite; }
.live-dot.off { background: var(--err); }
.live-dot.off::after { display: none; }
@keyframes ping { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

/* table */
.table-wrap { width: 100%; overflow-x: auto; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.tbl th { text-align: start; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: none; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--bg-2); position: sticky; top: 0; z-index: 1; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr:hover { background: rgba(255,255,255,.025); }
.tbl tbody tr.clickable { cursor: pointer; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .actions { display: flex; gap: 6px; justify-content: flex-end; }
.cell-main { font-weight: 600; }
.cell-sub { font-size: 12px; color: var(--muted); }
.avatar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font: 700 13px var(--font-latin); color: #fff; flex: none; background: linear-gradient(135deg, #3D8BFF, #8B5CFF); }
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person > div { min-width: 0; }
.empty { padding: 44px 20px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty > svg { width: 34px; height: 34px; opacity: .6; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* tabs */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; max-width: 100%; }
.tab { height: 34px; padding: 0 14px; border-radius: 9px; border: 0; background: transparent; color: var(--text-2); font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.tab:hover { color: var(--text); background: var(--panel-2); }
.tab.active { background: var(--panel-3); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,.05) inset; }
.tab .count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; font-size: 11px; background: rgba(139,92,255,.25); color: #D4C6FF; }

/* overlays */
.overlay { position: fixed; inset: 0; background: rgba(6,7,10,.66); backdrop-filter: blur(6px); z-index: 80; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .18s ease; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-xl); box-shadow: var(--shadow-pop); animation: pop .22s var(--ease); }
.modal.wide { width: min(880px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.drawer { position: fixed; inset-block: 0; inset-inline-end: 0; width: min(720px, 100%); background: var(--panel); border-inline-start: 1px solid var(--line-2); z-index: 81; display: flex; flex-direction: column; box-shadow: var(--shadow-pop); animation: slide .26s var(--ease); }
[dir="rtl"] .drawer { animation-name: slide-rtl; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
@keyframes slide-rtl { from { transform: translateX(-40px); opacity: 0; } }
.toasts { position: fixed; bottom: 20px; inset-inline-start: 20px; z-index: 120; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 40px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px; border-radius: 12px; background: #23272F; border: 1px solid var(--line-2); box-shadow: var(--shadow-pop); animation: pop .22s var(--ease); font-size: 14px; }
.toast svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.toast.ok svg { color: var(--ok); } .toast.err svg { color: var(--err); } .toast.info svg { color: var(--cyan); }
.skeleton { background: linear-gradient(90deg, var(--panel-2), var(--panel-3), var(--panel-2)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- app shell ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; width: var(--sidebar); flex: none; background: var(--bg-2); border-inline-end: 1px solid var(--line); display: flex; flex-direction: column; z-index: 40; }
.brand { display: flex; align-items: center; gap: 12px; padding: 18px 18px 14px; }
.brand img { width: 40px; height: 40px; }
.brand-name { font: 700 17px/1.1 var(--font-latin); letter-spacing: .14em; }
.brand-name span { color: transparent; background: var(--aurora); -webkit-background-clip: text; background-clip: text; }
.brand-sub { font-size: 11.5px; color: var(--muted); letter-spacing: .02em; }
.nav { flex: 1; overflow-y: auto; padding: 6px 12px 14px; }
.nav-group { margin-top: 14px; }
.nav-group-title { font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 0 10px 6px; letter-spacing: .03em; }
.nav a { display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 10px; border-radius: 10px; color: var(--text-2); font-weight: 500; font-size: 14px; position: relative; transition: background .15s, color .15s; }
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.nav a:hover { background: var(--panel); color: var(--text); }
.nav a.active { background: linear-gradient(90deg, rgba(139,92,255,.2), rgba(61,139,255,.08)); color: #fff; }
[dir="rtl"] .nav a.active { background: linear-gradient(270deg, rgba(139,92,255,.2), rgba(61,139,255,.08)); }
.nav a.active::before { content: ''; position: absolute; inset-inline-start: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--aurora); }
.nav a .pill { margin-inline-start: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 99px; font-size: 11px; font-weight: 700; display: grid; place-items: center; background: rgba(255,77,106,.9); color: #fff; }
.side-foot { padding: 12px 18px 16px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; height: var(--topbar); display: flex; align-items: center; gap: 12px; padding: 0 22px; background: rgba(18,20,25,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .search { flex: 1; max-width: 420px; }
.top-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.status-chip { display: inline-flex; align-items: center; gap: 9px; height: 36px; padding: 0 12px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text-2); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; }
[dir="rtl"] .user-chip { padding: 4px 12px 4px 6px; }
.user-chip .avatar { width: 30px; height: 30px; border-radius: 50%; font-size: 12px; }
.user-chip .who { line-height: 1.2; }
.user-chip .who b { font-size: 13px; display: block; }
.user-chip .who small { font-size: 11px; color: var(--muted); }
.content { padding: 24px; width: 100%; max-width: 1560px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font: 700 25px/1.25 var(--font-display); }
.page-head p { margin: 5px 0 0; color: var(--muted); font-size: 14px; max-width: 760px; }
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; display: flex; gap: 6px; align-items: center; }
.menu-btn { display: none; }
.scrim { display: none; }
.dropdown { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 220px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-pop); padding: 6px; z-index: 60; animation: pop .16s var(--ease); }
.dropdown button, .dropdown a { display: flex; width: 100%; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 8px; border: 0; background: none; cursor: pointer; font-size: 14px; color: var(--text-2); text-align: start; }
.dropdown button:hover, .dropdown a:hover { background: var(--panel-2); color: var(--text); }
.dropdown svg { width: 17px; height: 17px; }

/* list items */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); min-width: 0; }
.list-item:last-child { border-bottom: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sev { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.sev svg { width: 18px; height: 18px; }
.sev.critical { background: rgba(255,77,106,.15); color: var(--err); }
.sev.high { background: rgba(245,165,36,.15); color: var(--warn); }
.sev.medium { background: rgba(139,92,255,.15); color: #B9A2FF; }
.sev.low { background: rgba(61,139,255,.15); color: #8DB9FF; }

/* bars & charts */
.bar { height: 8px; border-radius: 99px; background: var(--panel-3); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: var(--aurora); }
.chart { width: 100%; height: 220px; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font-latin); }

/* map */
.map { position: relative; width: 100%; aspect-ratio: 4 / 5; max-height: 76vh; border-radius: var(--r); overflow: hidden; background: #0d1015; border: 1px solid var(--line); }
.map svg { width: 100%; height: 100%; }
.unit { cursor: pointer; }
.unit circle.halo { animation: halo 2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes halo { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(2.2); opacity: 0; } }

/* live screens */
.screens { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.screen { border-radius: var(--r); overflow: hidden; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; }
.screen-img { position: relative; aspect-ratio: 16 / 9; background: #0b0d11 center / cover no-repeat; }
.screen-img img { width: 100%; height: 100%; object-fit: cover; }
.screen-img .tag { position: absolute; top: 8px; inset-inline-start: 8px; }
.screen-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; }
.screen-actions { display: flex; gap: 6px; padding: 0 12px 12px; flex-wrap: wrap; }

/* profile */
.profile-hero { display: flex; gap: 18px; align-items: center; padding: 20px; flex-wrap: wrap; }
.profile-hero .avatar { width: 64px; height: 64px; border-radius: 18px; font-size: 22px; }
.stat-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.stat-chip { padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.stat-chip small { display: block; font-size: 12px; color: var(--muted); }
.stat-chip b { font: 700 18px var(--font-latin); }
.inv { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.inv-item { position: relative; padding: 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); min-height: 86px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.inv-item .qty { font: 700 12px var(--font-latin); color: var(--text-2); }
.inv-item .slot { position: absolute; top: 8px; inset-inline-end: 9px; font: 600 10px var(--font-latin); color: var(--muted); }
.inv-item.weapon { border-color: rgba(255,79,216,.35); background: linear-gradient(160deg, rgba(255,79,216,.08), transparent 70%), var(--bg-2); }
.inv-item button { position: absolute; bottom: 8px; inset-inline-end: 8px; opacity: 0; transition: opacity .15s; }
.inv-item:hover button { opacity: 1; }
.action-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.action-grid .btn { justify-content: flex-start; height: 42px; }

/* login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { position: relative; overflow: hidden; background: radial-gradient(70% 60% at 50% 40%, #2C3039, #15171C 70%); border-inline-end: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 22px; padding: 40px; text-align: center; }
.login-art::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(circle at 50% 45%, #000 30%, transparent 75%); }
.login-art img { position: relative; width: min(300px, 60%); filter: drop-shadow(0 30px 60px rgba(139,92,255,.35)); animation: float 6s ease-in-out infinite; }
.login-art h2 { position: relative; margin: 0; font: 700 30px var(--font-latin); letter-spacing: .2em; }
.login-art p { position: relative; margin: 0; color: var(--text-2); max-width: 420px; }
@keyframes float { 50% { transform: translateY(-10px); } }
.login-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login-box { width: min(400px, 100%); display: flex; flex-direction: column; gap: 18px; }
.login-box h1 { margin: 0; font: 700 28px var(--font-display); }
.alert { padding: 12px 14px; border-radius: 12px; border: 1px solid; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.alert.err { background: rgba(255,77,106,.08); border-color: rgba(255,77,106,.3); color: #FFB1BE; }
.alert.info { background: rgba(61,139,255,.08); border-color: rgba(61,139,255,.3); color: #B9D3FF; }
.alert.warn { background: rgba(245,165,36,.08); border-color: rgba(245,165,36,.3); color: #FFD69A; }

.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item { display: flex; gap: 12px; padding: 10px 0; position: relative; }
.tl-item::before { content: ''; position: absolute; inset-inline-start: 7px; top: 26px; bottom: -6px; width: 2px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-dot { width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--bg); background: var(--violet); flex: none; margin-top: 4px; z-index: 1; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.rank-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.perm-group { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.perm-group h4 { margin: 0 0 10px; font-size: 13px; color: var(--text-2); }
.perm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) { .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .g-main, .g-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 960px) {
  .sidebar { position: fixed; inset-block: 0; inset-inline-start: 0; transform: translateX(-100%); transition: transform .25s var(--ease); box-shadow: var(--shadow-pop); }
  [dir="rtl"] .sidebar { transform: translateX(100%); }
  .app.nav-open .sidebar { transform: none; }
  .app.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 35; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 0 14px; }
  .topbar .search { display: none; }
  .content { padding: 16px; }
  .login { grid-template-columns: 1fr; }
  .login-art { min-height: 260px; padding: 28px; }
  .login-art img { width: 120px; }
  .login-art p { display: none; }
  .user-chip .who { display: none; }
}
@media (max-width: 640px) {
  .g-2, .g-4 { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 8px; }
  .page-head h1 { font-size: 21px; }
  .status-chip .txt { display: none; }
  .tbl.cards thead { display: none; }
  .tbl.cards, .tbl.cards tbody, .tbl.cards tr, .tbl.cards td { display: block; width: 100%; }
  .tbl.cards tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .tbl.cards td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: 12px; }
  .tbl.cards td::before { content: attr(data-label); color: var(--muted); font-size: 12px; flex: none; }
  .tbl.cards td.actions-cell::before { content: none; }
  .tbl.cards .actions { justify-content: flex-start; flex-wrap: wrap; }
  .modal { border-radius: 18px; }
  .toasts { inset-inline: 12px; bottom: 12px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- servers & services (multi-server panel) ---------- */
.switch-wrap { position: relative; min-width: 0; }
.server-switch { display: flex; align-items: center; gap: 10px; height: 40px; max-width: 280px; padding: 0 12px 0 6px; border-radius: 12px; border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--panel-2), var(--panel)); cursor: pointer; font-weight: 600; font-size: 14px; }
[dir="rtl"] .server-switch { padding: 0 6px 0 12px; }
.server-switch:hover { border-color: #4a5160; }
.server-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--aurora-soft); color: var(--cyan); flex: none; }
.server-ic svg { width: 17px; height: 17px; }
.server-name { min-width: 0; }
.server-switch .chev { width: 16px; height: 16px; color: var(--muted); flex: none; }
.server-menu { inset-inline-start: 0; inset-inline-end: auto; min-width: 300px; max-width: min(360px, calc(100vw - 24px)); }
.server-menu .menu-title { padding: 6px 10px 8px; font-size: 12px; color: var(--muted); font-weight: 600; }
.server-menu button.active { background: var(--panel-2); color: var(--text); box-shadow: inset 2px 0 0 var(--violet); }
[dir="rtl"] .server-menu button.active { box-shadow: inset -2px 0 0 var(--violet); }
.server-menu .grow { flex: 1; min-width: 0; text-align: start; }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.svc-chips { display: inline-flex; gap: 4px; flex: none; }
.svc-chip { font: 700 10px/18px var(--font-latin); font-style: normal; min-width: 22px; padding: 0 5px; border-radius: 6px; text-align: center; color: var(--muted); background: var(--panel-3); opacity: .5; }
.svc-chip.on { opacity: 1; color: #fff; }
.svc-chip.svc-basic.on { background: #3D8BFF; }
.svc-chip.svc-plus.on { background: #8B5CFF; }
.svc-chip.svc-pro.on { background: linear-gradient(135deg, #8B5CFF, #FF4FD8); }

.empty.big { padding: 70px 20px; gap: 14px; }
.empty.big > svg { width: 46px; height: 46px; color: var(--violet); opacity: .85; }
.empty.big b { color: var(--text); font-size: 16px; max-width: 520px; }

.welcome { padding: 22px; margin-bottom: 16px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: linear-gradient(120deg, rgba(34,228,255,.10), rgba(139,92,255,.14) 50%, rgba(255,79,216,.10)), var(--panel); }
.welcome .welcome-mark { width: 64px; height: 64px; }
.welcome h1 { margin: 0; font: 700 24px var(--font-display); }
.welcome p { margin: 4px 0 0; }
.welcome .grow { flex: 1; }

.svc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.svc-card { position: relative; padding: 18px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.svc-card::before { content: ''; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--svc); }
.svc-card::after { content: ''; position: absolute; inset-inline-end: -60px; top: -60px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--svc) 22%, transparent), transparent 70%); pointer-events: none; }
.svc-card-head { display: flex; align-items: center; gap: 12px; }
.svc-card-head b { display: block; font: 700 17px var(--font-display); }
.svc-card-head small { color: var(--muted); font-size: 12.5px; }
.svc-card p { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.75; flex: 1; }
.svc-count { font-size: 13px; color: var(--muted); }
.svc-count b { color: var(--text); font-size: 18px; }
.svc-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; color: var(--svc); background: color-mix(in srgb, var(--svc) 15%, transparent); border: 1px solid color-mix(in srgb, var(--svc) 30%, transparent); }
.svc-ic svg { width: 20px; height: 20px; }

.server-card { display: flex; flex-direction: column; }
.server-card.current { border-color: rgba(139,92,255,.55); box-shadow: var(--shadow), 0 0 0 1px rgba(139,92,255,.25), 0 18px 50px -30px rgba(139,92,255,.7); }
.server-card.is-off { opacity: .72; }
.server-head { display: flex; align-items: flex-start; gap: 14px; padding: 18px; }
.server-head h3 { margin: 0; font: 700 18px var(--font-display); }
.server-mark { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; background: linear-gradient(135deg, #2a3040, #1b1f28); border: 1px solid var(--line-2); color: var(--cyan); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.server-mark svg { width: 22px; height: 22px; }
.server-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.server-meta a { color: #8DB9FF; }
.server-meta a:hover { text-decoration: underline; }
.svc-toggles { display: grid; gap: 8px; padding: 0 18px 16px; }
.svc-toggle { --svc: var(--violet); display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; transition: border-color .2s, background .2s; }
.svc-toggle .svc-ic { width: 34px; height: 34px; border-radius: 10px; }
.svc-toggle .svc-ic svg { width: 17px; height: 17px; }
.svc-toggle .grow { flex: 1; min-width: 0; }
.svc-toggle b { display: block; font-size: 14px; }
.svc-toggle small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svc-toggle.on { border-color: color-mix(in srgb, var(--svc) 45%, transparent); background: color-mix(in srgb, var(--svc) 7%, var(--bg-2)); }
.svc-toggle:not(.on) .svc-ic { filter: grayscale(1); opacity: .6; }
.server-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); margin-top: auto; }

.checks { display: grid; gap: 8px; }
.check-tile { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; }
.check-tile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.check-box { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; margin-top: 1px; background: var(--panel); }
.check-box svg { width: 14px; height: 14px; opacity: 0; color: #fff; }
.check-tile input:checked ~ .check-box { background: linear-gradient(135deg, #3D8BFF, #8B5CFF); border-color: transparent; }
.check-tile input:checked ~ .check-box svg { opacity: 1; }
.check-tile:has(input:checked) { border-color: rgba(139,92,255,.5); background: rgba(139,92,255,.07); }
.check-tile input:focus-visible ~ .check-box { outline: 2px solid var(--cyan); outline-offset: 2px; }
.check-text b { display: block; font-size: 14px; }
.check-text small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.6; margin-top: 2px; }
.code-box { margin: 0; padding: 14px 16px; border-radius: 12px; background: #0d0f13; border: 1px solid var(--line-2); font: 12.5px/1.7 var(--mono); color: #cfe9ff; white-space: pre-wrap; word-break: break-all; text-align: left; }

/* ---------- police leaderboard ---------- */
.note-bar { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: -6px 0 16px; color: var(--text-2); font-size: 13.5px; }
.note-bar span { display: inline-flex; align-items: center; gap: 8px; }
.note-bar svg { width: 16px; height: 16px; color: var(--cyan); }
.place { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 9px; font: 700 14px var(--font-latin); background: var(--panel-3); color: var(--text-2); }
.place.p1 { background: linear-gradient(135deg, #FFE08A, #F5C451 55%, #B88A1E); color: #2a1d00; box-shadow: 0 6px 18px -8px rgba(245,196,81,.9); }
.place.p2 { background: linear-gradient(135deg, #F3F6FA, #C9D1DC 55%, #8892A0); color: #1b2029; }
.place.p3 { background: linear-gradient(135deg, #F6C29A, #E2A36B 55%, #9A5F2E); color: #2a1406; }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.podium-card { --pc: #F5C451; position: relative; padding: 22px 18px 18px; border-radius: var(--r-lg); background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--pc) 18%, transparent), transparent 60%), var(--panel); border: 1px solid color-mix(in srgb, var(--pc) 35%, var(--line)); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; overflow: hidden; }
.podium-card.silver { --pc: #C9D1DC; }
.podium-card.bronze { --pc: #E2A36B; }
.podium-card.gold { box-shadow: var(--shadow), 0 20px 50px -30px rgba(245,196,81,.8); }
.podium-card::before { content: ''; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--pc); }
.podium-rank { display: flex; align-items: center; gap: 8px; color: var(--pc); font-weight: 700; font-size: 13px; }
.podium-rank span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 800 15px var(--font-latin); background: var(--pc); color: #15181e; }
.podium-card .avatar { width: 58px; height: 58px; border-radius: 18px; font-size: 18px; }
.podium-name { font: 700 17px var(--font-display); max-width: 100%; }
.podium-sub { color: var(--muted); font-size: 12.5px; max-width: 100%; }
.podium-time { display: flex; align-items: baseline; gap: 6px; }
.podium-time b { font-size: 28px; line-height: 1.1; }
.podium-time span { color: var(--muted); font-size: 13px; }
.duty { display: flex; flex-direction: column; gap: 6px; min-width: 120px; }
.duty .bar { height: 6px; }
.foot-note { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 14px 2px 0; }
.foot-note svg { width: 16px; height: 16px; flex: none; }

@media (max-width: 1100px) { .svc-cards { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 960px) { .server-switch { max-width: 200px; } .servers-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .podium { grid-template-columns: minmax(0, 1fr); }
  .server-switch { max-width: 150px; padding-inline: 4px 8px; gap: 6px; }
  .server-ic { width: 28px; height: 28px; }
  .server-menu { position: fixed; top: calc(var(--topbar) - 4px); inset-inline: 12px; min-width: 0; max-width: none; }
  .server-head { flex-wrap: wrap; }
  .welcome .welcome-mark { width: 48px; height: 48px; }
  .welcome h1 { font-size: 20px; }
}
.page-head > * { min-width: 0; max-width: 100%; }
.page-head > .row > .tabs { max-width: 100%; }
.svc-toggles { grid-template-columns: minmax(0, 1fr); }
.svc-toggle { min-width: 0; }

/* ---------- two-step verification ---------- */
.input.otp { font: 700 24px/1 var(--mono); letter-spacing: .5em; text-align: center; height: 54px; }
.tf-setup { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.qr-box { width: 224px; height: 224px; padding: 8px; border-radius: 14px; background: #fff; flex: none; box-shadow: 0 0 0 1px var(--line-2), 0 18px 40px -24px rgba(0,0,0,.9); }
.qr-box svg { width: 100%; height: 100%; }
.secret-key { font: 600 15px/1.6 var(--mono); letter-spacing: .06em; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--line-2); background: var(--bg-2); color: var(--text); cursor: copy; text-align: left; word-break: break-all; }
.secret-key:hover { border-color: var(--violet); }
.tf-setup small svg { display: inline; width: 13px; height: 13px; vertical-align: -2px; }
.ip-lock { display: inline-flex; align-items: center; gap: 4px; color: #7DF0BC; }
.ip-lock svg { width: 13px; height: 13px; }

/* ---------- Discord: sign-in button, sign-in settings, log channels ---------- */
.btn-discord { background: #5865F2; border-color: transparent; color: #fff; box-shadow: 0 10px 26px -12px rgba(88,101,242,.85); }
.btn-discord:hover { background: #4752C4; }
.btn-discord svg { width: 20px; height: 20px; }
.or-line { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.avatar.has-img { position: relative; overflow: hidden; }
.avatar.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.discord-grid { margin-top: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.dropdown.user-menu { min-width: 270px; }
.dropdown.user-menu button { white-space: nowrap; }
.dc-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.dc-step { display: flex; gap: 12px; align-items: flex-start; line-height: 1.8; font-size: 14px; }
.dc-num { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; background: #5865F2; margin-top: 1px; }
.dc-link { display: inline-flex; align-items: center; gap: 5px; color: #A5B0FF; font-weight: 600; }
.dc-link svg { width: 14px; height: 14px; }
.dc-link:hover { text-decoration: underline; }
.copy-line { display: flex; gap: 8px; align-items: center; margin-top: 8px; min-width: 0; }
.copy-line code { flex: 1; min-width: 0; padding: 7px 10px; border-radius: 8px; background: #0d0f13; border: 1px solid var(--line-2); font: 12.5px/1.5 var(--mono); color: #cfe9ff; text-align: left; }
.hook-list { display: flex; flex-direction: column; gap: 10px; }
.hook-row { display: grid; grid-template-columns: minmax(170px, 230px) minmax(0, 1fr); gap: 8px 16px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); }
.hook-label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hook-label label { font-weight: 600; font-size: 14px; }
.hook-label small { color: var(--muted); font-size: 12px; line-height: 1.6; }
.hook-input { display: flex; gap: 8px; min-width: 0; }
.hook-input .input { flex: 1; min-width: 0; font-size: 12.5px; }
.input.invalid { border-color: var(--err); box-shadow: 0 0 0 3px rgba(255,77,106,.18); }
.dc-person .avatar { width: 28px; height: 28px; border-radius: 50%; font-size: 11px; }
.dc-person .cell-main { max-width: 160px; }
@media (max-width: 640px) {
  .hook-row { grid-template-columns: minmax(0, 1fr); }
  .copy-line { flex-wrap: wrap; }
  .copy-line code { flex-basis: 100%; }
}

/* instant hover labels (ui.js hoverTips) */
.tip { position: fixed; z-index: 9999; max-width: 260px; padding: 6px 10px; border-radius: 8px; background: #0b0d14; color: #fff; border: 1px solid var(--line-2);
  font-size: 12.5px; font-weight: 600; line-height: 1.4; box-shadow: var(--shadow-pop); pointer-events: none; opacity: 0; transform: translateY(2px);
  transition: opacity .12s ease, transform .12s ease; unicode-bidi: plaintext; }
.tip.on { opacity: 1; transform: none; }

/* License block on server cards */
.lic-block { margin: 0 18px 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--panel, #111) 70%, transparent); display: grid; gap: 10px; }
.lic-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lic-title { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.lic-title svg { width: 16px; height: 16px; opacity: .8; }
.lic-when { margin-inline-start: auto; font-size: 12.5px; color: var(--muted); }
.lic-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); }
.lic-meta span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.lic-meta svg { width: 14px; height: 14px; }
.lic-vault { display: flex; align-items: center; gap: 6px; min-width: 0; }
.lic-key { flex: 1; min-width: 0; padding: 7px 10px; border-radius: 10px; background: rgba(0,0,0,.25); border: 1px solid var(--line); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: all; }
.lic-ops { display: flex; flex-wrap: wrap; gap: 6px; }
.lic-ops .btn svg { width: 15px; height: 15px; }
@media (max-width: 600px) { .lic-when { margin-inline-start: 0; width: 100%; } }

/* ================= UX v2 — same palette, sharper feel ================= */
/* page enter */
.page-enter { animation: page-in .28s var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } }

/* topbar search → command palette trigger */
.search-trigger { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; font-size: 14px; text-align: start; transition: border-color .15s, background .15s, color .15s; }
.search-trigger svg { position: static; transform: none; width: 17px; height: 17px; }
.search-trigger:hover { border-color: var(--line-2); background: var(--panel-2); color: var(--text-2); }
.search-trigger kbd, .pal kbd { font: 600 11px/1 var(--mono); padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--bg-2); color: var(--text-2); white-space: nowrap; }
.search-mobile { display: none; }

/* command palette */
.pal-wrap { position: fixed; inset: 0; z-index: 140; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; background: rgba(8,9,12,.55); backdrop-filter: blur(6px); animation: fade .14s ease both; }
.pal-wrap.out { animation: fade .13s ease reverse both; }
.pal { width: min(640px, 100%); max-height: min(560px, 76vh); display: flex; flex-direction: column; background: linear-gradient(180deg, #20242C, #1B1E25); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow-pop), 0 0 0 1px rgba(139,92,255,.08), 0 30px 120px -40px rgba(139,92,255,.35); overflow: hidden; animation: pop .18s var(--ease) both; }
.pal-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.pal-head > svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.pal-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--text); }
.pal-input::placeholder { color: var(--muted); }
.pal-esc { cursor: pointer; }
.pal-list { overflow-y: auto; padding: 6px 8px 10px; overscroll-behavior: contain; }
.pal-group { padding: 10px 10px 4px; font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: .03em; }
.pal-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 10px; border: 0; border-radius: 11px; background: transparent; color: var(--text-2); cursor: pointer; text-align: start; position: relative; }
.pal-row.sel { background: linear-gradient(90deg, rgba(139,92,255,.18), rgba(61,139,255,.07)); color: var(--text); }
[dir="rtl"] .pal-row.sel { background: linear-gradient(270deg, rgba(139,92,255,.18), rgba(61,139,255,.07)); }
.pal-row.sel::before { content: ''; position: absolute; inset-inline-start: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--aurora); }
.pal-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); flex: none; }
.pal-ic svg { width: 16px; height: 16px; }
.pal-row.sel .pal-ic { border-color: rgba(139,92,255,.4); color: #C9B6FF; }
.pal-row .avatar { width: 32px; height: 32px; border-radius: 9px; font-size: 12px; flex: none; }
.pal-label { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pal-label b { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-label small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-go svg { width: 15px; height: 15px; transform: rotate(-90deg); opacity: 0; transition: opacity .12s; }
[dir="rtl"] .pal-go svg { transform: rotate(90deg); }
.pal-row.sel .pal-go svg { opacity: .7; }
.pal-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 10px; color: var(--muted); }
.pal-empty svg { width: 26px; height: 26px; opacity: .6; }
.pal-foot { display: flex; gap: 16px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); background: rgba(0,0,0,.12); }
.pal-foot span { display: inline-flex; align-items: center; gap: 4px; }
.keys { max-width: 460px; }
.keys-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.keys-head svg { width: 18px; height: 18px; color: var(--violet); }
.keys-head b { flex: 1; }
.keys-list { padding: 8px 16px 14px; overflow-y: auto; }
.keys-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; color: var(--text-2); }
.keys-row:last-child { border-bottom: 0; }
.keys-k { display: inline-flex; align-items: center; gap: 5px; }
.keys-k i { font-style: normal; font-size: 11px; color: var(--muted); }

/* sidebar: footer row + collapse to an icon rail (desktop) */
.side-foot { display: flex; align-items: center; gap: 8px; }
.side-ver { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.collapse-btn svg { width: 17px; height: 17px; }
[dir="rtl"] .collapse-btn svg { transform: scaleX(-1); }
.sidebar { transition: width .22s var(--ease); }
.nav::-webkit-scrollbar { width: 6px; }
.nav::-webkit-scrollbar-thumb { border-width: 1px; background: #2c313c; }
@media (min-width: 961px) {
  .app.collapsed { --sidebar: 76px; }
  .app.collapsed .brand { justify-content: center; padding-inline: 0; }
  .app.collapsed .brand > div, .app.collapsed .nav-group-title, .app.collapsed .nav a > span:not(.pill), .app.collapsed .side-ver { display: none; }
  .app.collapsed .nav { padding-inline: 10px; }
  .app.collapsed .nav-group { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
  .app.collapsed .nav-group:first-child { border-top: 0; }
  .app.collapsed .nav a { justify-content: center; padding: 0; height: 42px; }
  .app.collapsed .nav a .pill { position: absolute; top: 3px; inset-inline-end: 4px; min-width: 17px; height: 16px; font-size: 10px; padding: 0 4px; margin: 0; }
  .app.collapsed .nav a.active::before { inset-inline-start: -10px; }
  .app.collapsed .side-foot { justify-content: center; padding-inline: 0; }
  .app.collapsed .collapse-btn svg { transform: scaleX(-1); }
  [dir="rtl"] .app.collapsed .collapse-btn svg { transform: none; }
}

/* cards & KPIs: calm depth, clearer hover on interactive things */
.card { transition: border-color .18s, box-shadow .18s; }
.kpi { transition: transform .18s var(--ease), border-color .18s, box-shadow .18s; }
.kpi:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: 0 18px 40px -26px rgba(0,0,0,.9); }
.kpi-value, .latin, .tbl td { font-variant-numeric: tabular-nums; }
.btn { transition: background .15s, border-color .15s, color .15s, transform .08s, box-shadow .15s; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 10px 28px -12px rgba(139,92,255,.75); }

/* tables: denser rows, sticky head under the topbar, row accent on hover */
.tbl td { padding: 10px 14px; }
.tbl th { top: 0; }
.tbl tbody tr:hover { background: rgba(139,92,255,.045); }
.tbl tbody tr:hover td:first-child { box-shadow: inset 2px 0 0 rgba(139,92,255,.6); }
[dir="rtl"] .tbl tbody tr:hover td:first-child { box-shadow: inset -2px 0 0 rgba(139,92,255,.6); }

/* focus: visible and on-brand everywhere */
.input:focus, .select:focus, .textarea:focus { border-color: rgba(139,92,255,.7); box-shadow: 0 0 0 3px rgba(139,92,255,.18); outline: none; }

/* toasts: progress line */
.toast { position: relative; overflow: hidden; backdrop-filter: blur(8px); }
.toast::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--aurora); transform-origin: left; animation: toast-life 3.2s linear forwards; opacity: .7; }
.toast.err::after { animation-duration: 6s; background: var(--err); }
[dir="rtl"] .toast::after { transform-origin: right; }
@keyframes toast-life { to { transform: scaleX(0); } }

@media (max-width: 960px) {
  .search-mobile { display: inline-flex; margin-inline-start: auto; }
  .top-actions { margin-inline-start: 0; }
  .pal-wrap { padding-top: 8vh; }
}
@media (max-width: 640px) {
  .pal-foot { display: none; }
  .pal { max-height: 82vh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* phone topbar: menu · server · search · language · account — nothing overlaps */
@media (max-width: 640px) {
  .topbar { gap: 6px; padding: 0 10px; }
  .switch-wrap { flex: 1; }
  .server-switch { max-width: 100%; width: 100%; }
  .status-chip { display: none !important; }
  .lang-txt { display: none; }
  .top-actions { gap: 4px; }
  .search-mobile { margin-inline-start: 0; }
}
/* phone: KPI tiles two per row, compact (less scrolling) */
@media (max-width: 640px) {
  .grid.g-4:has(> .kpi) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid.g-4 > .kpi { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .grid.g-4 > .kpi .kpi-icon { width: 36px; height: 36px; border-radius: 10px; }
  .grid.g-4 > .kpi .kpi-icon svg { width: 18px; height: 18px; }
  .grid.g-4 > .kpi .kpi-value { font-size: 22px; }
  .grid.g-4 > .kpi .kpi-label { font-size: 12px; }
}

/* ============ Private mode card ============ */
.pv { display: grid; gap: 16px; }
.pv-intro { margin: 0; color: var(--text-2); }
.pv-flow { display: flex; flex-wrap: wrap; gap: 6px; }
.pv-flow span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); font-size: 12.5px; color: var(--text-2); }
[dir="rtl"] .pv-flow span { padding: 6px 8px 6px 11px; }
.pv-flow i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--aurora); color: #0b0c10; font-size: 11px; font-weight: 800; }
.pv-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pv-checks li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.pv-dot { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; flex: none; }
.pv-dot svg { width: 14px; height: 14px; }
.pv-checks li.ok .pv-dot { background: rgba(43,217,138,.14); color: #7DF0BC; }
.pv-checks li.no .pv-dot { background: rgba(255,77,106,.12); color: #FF8DA1; }
.pv-switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.pv-state { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; min-width: 0; }
.pv-state small { grid-column: 2; color: var(--muted); font-size: 12.5px; }
.pv-pulse { width: 10px; height: 10px; border-radius: 50%; background: #5d6472; }
.pv-state.on .pv-pulse { background: #2BD98A; box-shadow: 0 0 0 0 rgba(43,217,138,.6); animation: pv-pulse 2s infinite; }
@keyframes pv-pulse { 70% { box-shadow: 0 0 0 9px rgba(43,217,138,0); } 100% { box-shadow: 0 0 0 0 rgba(43,217,138,0); } }
.pv-label { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13.5px; margin-bottom: 8px; }
.pv-label svg { width: 16px; height: 16px; opacity: .8; }
.pv-gate, .pv-msg, .pv-add { display: grid; gap: 6px; }
.pv-gate-row, .pv-add-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pv-url { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 11px; border: 1px solid rgba(139,92,255,.35); background: rgba(139,92,255,.07); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: all; }
.pv-msg .input { flex: 1; min-width: 200px; }
.pv-field.grow { flex: 1 1 180px; min-width: 0; }
.pv-field .input { width: 100%; }
.pv-add-row .select { width: auto; min-width: 130px; }
.pv-err { color: #FF8DA1; min-height: 0; }
.pv-err:empty { display: none; }
.pv-sugg { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.pv-sugg .chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; border: 1px dashed var(--line-2); background: transparent; color: var(--text-2); cursor: pointer; font-size: 12.5px; }
.pv-sugg .chip:hover { border-color: rgba(139,92,255,.6); color: var(--text); }
.pv-sugg .chip svg { width: 13px; height: 13px; }
.pv-list { display: grid; gap: 8px; }
.pv-item { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 13px; border: 1px solid var(--line); background: var(--panel-2); transition: border-color .15s; }
.pv-item:hover { border-color: var(--line-2); }
.pv-item.revoked { opacity: .72; }
.pv-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pv-av { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; background: linear-gradient(135deg, #5865F2, #8B5CFF); color: #fff; font-weight: 800; font-size: 13px; }
.pv-name { display: flex; flex-direction: column; min-width: 0; }
.pv-name b, .pv-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-name small { color: var(--muted); font-size: 12px; }
.pv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12.5px; color: var(--text-2); }
.pv-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pv-actions .btn svg { width: 15px; height: 15px; }
.pv-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 10px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); text-align: center; }
.pv-empty svg { width: 26px; height: 26px; opacity: .6; margin-bottom: 4px; }
@media (max-width: 760px) {
  .pv-item { grid-template-columns: 1fr; }
  .pv-actions { justify-content: flex-start; }
  .pv-add-row .btn, .pv-add-row .select { flex: 1 1 auto; }
  .pv-switch .btn { width: 100%; }
}
.pv-srv { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 8px; background: rgba(61,139,255,.1); border: 1px solid rgba(61,139,255,.3); color: #9cc3ff; font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-srv svg { width: 13px; height: 13px; flex: none; }
.pv-srv.all { background: rgba(245,196,81,.08); border-color: rgba(245,196,81,.3); color: #F5C451; }

/* ============ Discord bot cards ============ */
.bot { display: grid; gap: 14px; }
.bot-status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.bot-status-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bot-status-txt small { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.bot-led { width: 11px; height: 11px; border-radius: 50%; background: #5d6472; flex: none; }
.bot-led.ready { background: #2BD98A; box-shadow: 0 0 0 4px rgba(43,217,138,.15); }
.bot-led.connecting { background: #F5A524; box-shadow: 0 0 0 4px rgba(245,165,36,.15); }
.bot-led.error { background: #FF4D6A; box-shadow: 0 0 0 4px rgba(255,77,106,.15); }
.bot-steps { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; color: var(--text-2); font-size: 13.5px; }
.bot-steps.big { padding: 0; list-style: none; counter-reset: s; gap: 10px; }
.bot-steps.big li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; row-gap: 8px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); }
.bot-steps.big li::before { content: counter(s); grid-row: span 2; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--aurora); color: #0b0c10; font-weight: 800; font-size: 13px; }
.bot-steps.big li > b { align-self: center; }
.bot-code { display: grid; gap: 8px; margin-top: 10px; }
.bot-code:empty { display: none; }
.bot-code-big { font-size: 28px; font-weight: 800; letter-spacing: .18em; padding: 10px 14px; border-radius: 12px; border: 1px dashed rgba(139,92,255,.5); background: rgba(139,92,255,.08); text-align: center; }
.bot-channels { display: grid; gap: 8px; }
.bot-ch { display: grid; grid-template-columns: 36px 1fr minmax(160px, 240px); gap: 10px; align-items: center; padding: 10px 12px; border-radius: 13px; border: 1px solid var(--line); background: var(--panel-2); }
.bot-ch-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(88,101,242,.15); color: #9aa4ff; }
.bot-ch-ic svg { width: 17px; height: 17px; }
.bot-ch-txt { display: flex; flex-direction: column; min-width: 0; }
.bot-ch-txt small { color: var(--muted); font-size: 12px; }
.bot-cmds { display: grid; gap: 8px; }
.bot-cmd-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.bot-cmd { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); }
.bot-cmd code { color: #9aa4ff; font-size: 12.5px; text-align: start; }
.bot-cmd small { color: var(--muted); font-size: 12px; }
.btn-discord { background: #5865F2; border-color: #5865F2; color: #fff; }
.btn-discord:hover { background: #4752C4; }
@media (max-width: 640px) { .bot-ch { grid-template-columns: 34px 1fr; } .bot-ch .select { grid-column: 1 / -1; } }
.pv-gate-row > .input { flex: 1 1 220px; width: auto; min-width: 0; }
.bot-pick { padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(88,101,242,.4); background: rgba(88,101,242,.08); }
.bot-pick .select { flex: 1 1 220px; }

/* ============ Stats & health ============ */
.st-verdict { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(43,217,138,.12), rgba(34,228,255,.05)); }
.st-verdict.warn { background: linear-gradient(135deg, rgba(245,165,36,.14), rgba(245,165,36,.03)); border-color: rgba(245,165,36,.35); }
.st-verdict.bad { background: linear-gradient(135deg, rgba(255,77,106,.16), rgba(255,77,106,.03)); border-color: rgba(255,77,106,.4); }
.st-verdict-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(43,217,138,.18); color: #7DF0BC; flex: none; }
.st-verdict.warn .st-verdict-ic { background: rgba(245,165,36,.2); color: #F5C451; }
.st-verdict.bad .st-verdict-ic { background: rgba(255,77,106,.2); color: #FF8DA1; }
.st-verdict-ic svg { width: 24px; height: 24px; }
.st-verdict > div:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.st-verdict b { font-size: 18px; }
.st-verdict small { color: var(--text-2); }
.st-live { display: inline-flex; align-items: center; gap: 7px; color: var(--muted) !important; font-size: 12px; white-space: nowrap; }
.st-live .pv-pulse { background: #2BD98A; animation: pv-pulse 2s infinite; }
.st-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.st-check { display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); position: relative; overflow: hidden; }
.st-check::before { content: ''; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 3px; background: #2BD98A; }
.st-check.warn::before { background: #F5A524; } .st-check.bad::before { background: #FF4D6A; } .st-check.off::before { background: #5d6472; }
.st-check-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--text-2); }
.st-check-val { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: start; }
.st-check small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.st-charts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.st-chart { padding: 12px 14px 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); }
.st-chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.st-chart-head b { font-size: 16px; color: var(--text); font-variant-numeric: tabular-nums; }
.spark { width: 100%; height: 56px; display: block; }
[dir="rtl"] .spark { transform: scaleX(-1); }
.st-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 14px; }
.st-fact { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.st-fact span { color: var(--muted); }
.st-fact b { font-weight: 600; text-align: end; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.st-guilds { display: grid; gap: 8px; margin: 8px 0; }
.st-guild { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 13px; border: 1px solid var(--line); background: var(--panel-2); }
@media (max-width: 640px) { .st-guild { grid-template-columns: 36px minmax(0, 1fr); } .st-guild > .badge, .st-guild > .pv-srv, .st-guild > .btn { grid-column: 1 / -1; justify-self: start; } .st-verdict { flex-wrap: wrap; } }
