﻿:root {
  --bg0: #05060a;
  --bg1: #0b0c11;
  --text: rgba(245,245,247,.95);
  --muted: rgba(245,245,247,.55);
  --muted2: rgba(245,245,247,.35);
  --card: rgba(255,255,255,.095);
  --cardHover: rgba(255,255,255,.13);
  --shadow: 0 24px 80px rgba(0,0,0,.55);
  --shadowSoft: 0 12px 50px rgba(0,0,0,.38);
  --accent: #b8b7ff;
  --accentStrong: #9a98ff;
  --radius: 18px;
  --headerH: 132px;
  --contentW: 1140px;
  --contentW-narrow: 860px;
  --padPageX: 64px;
  --padPageB: 64px;
  --space-1: 10px;
  --space-2: 16px;
  --space-3: 22px;
  --space-4: 30px;
  --space-5: 42px;
  --space-6: 56px;
  --cardPadY: 26px;
  --cardPadX: 28px;
  --inputPadY: 16px;
  --inputPadX: 16px;
  --btnPadY: 14px;
  --btnPadX: 24px;
  --ring: 0 0 0 6px rgba(184,183,255,.10);
}
html, body {
  min-width: 0 !important;
  overflow-x: auto !important;
  overflow-y: auto !important;
  height: 100%;
}
.dashboard, .cloud, .settings-wrap, .tab6-grid, .config-grid, .preview {
  min-width: 0 !important;
}
.page, .view, .page *, .view *, .dashboard, .stage, .cloud, .panel {
  filter: none !important;
}
.page.is-active, .view.is-active {
  filter: none !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
}
* { box-sizing: border-box; }
html, body { height: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: var(--text);
  background:
    radial-gradient(1200px 720px at 50% 0%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(900px 620px at 50% 55%, rgba(255,255,255,.05), transparent 65%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
  overflow: hidden;
}
* { scrollbar-width: none; }
*::-webkit-scrollbar { width: 0; height: 0; }
a { color: inherit; }
button { font-family: inherit; }

.kbmode{
  display:flex;
  gap:12px;
}
.kbmode__btn{
  flex:1;
  padding: var(--inputPadY) var(--inputPadX);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  color: rgba(245,245,247,.92);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.kbmode__btn:hover{
  border-color: rgba(255,255,255,.16);
  background: rgba(0,0,0,.26);
  transform: translateY(-1px);
}
.kbmode__btn.is-active{
  border-color: rgba(184,183,255,.42);
  background: rgba(184,183,255,.18);
  box-shadow: var(--ring);
}

/* Ambient */
.ambient {
  position: fixed;
  inset: -60px;
  pointer-events: none !important;
  z-index: 0;
  background:
    radial-gradient(900px 700px at 50% 8%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(900px 700px at 50% 110%, rgba(255,255,255,.05), transparent 60%),
    radial-gradient(1000px 900px at 50% 50%, rgba(0,0,0,.15), transparent 60%),
    radial-gradient(1200px 1000px at 50% 50%, rgba(0,0,0,.60), rgba(0,0,0,.85));
  opacity: 1;
}
.ambient::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.30'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: .055;
  pointer-events: none !important;
}
.ambient::after {
  content: "";
  position: absolute;
  inset: -40px;
  background:
    radial-gradient(600px 420px at 40% 18%, rgba(184,183,255,.12), transparent 60%),
    radial-gradient(520px 380px at 65% 30%, rgba(255,255,255,.10), transparent 62%);
  filter: blur(32px);
  opacity: .55;
  animation: drift 14s ease-in-out infinite;
  pointer-events: none !important;
}
@keyframes drift {
  0% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(20px, -10px, 0); }
  100% { transform: translate3d(0,0,0); }
}
/* Topbar */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--headerH);
  padding: 34px var(--padPageX);
  z-index: 50;
  pointer-events: none;
  background: transparent;
}
.topbar__inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: flex-start;
  pointer-events: auto;
}
.brand {
  font-family: "Bebas Neue", system-ui, sans-serif;
  font-size: 44px;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--text);
  transform: translateY(2px);
  transition: transform .25s ease, opacity .25s ease;
}
.brand:hover { transform: translateY(0); opacity: .92; }
.topnav {
  display: flex;
  gap: 72px;
  justify-content: center;
  transform: translateY(10px);
}
.navlink {
  font-size: 14px;
  letter-spacing: .42em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted2);
  position: relative;
  padding: 14px 6px;
  transition: color .25s ease, transform .25s ease;
}
.navlink::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 7px;
  height: 2px;
  background: rgba(245,245,247,.9);
  transform: scaleX(0);
  transform-origin: left;
  opacity: .75;
  transition: transform .35s cubic-bezier(.2,.9,.2,1), opacity .25s ease;
}
.navlink:hover { color: rgba(245,245,247,.85); transform: translateY(-1px); }
.navlink:hover::after { transform: scaleX(1); opacity: .45; }
.navlink.is-active { color: rgba(245,245,247,.92); }
.navlink.is-active::after { transform: scaleX(1); opacity: .9; }
.login {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
  transform: translateY(10px);
  font-size: 14px;
  letter-spacing: .42em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding: 14px 6px;
  transition: color .25s ease, transform .25s ease;
}
.login:hover { color: rgba(245,245,247,.92); transform: translateY(9px); }
.login__discord {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.login__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}
.login__username {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(245,245,247,.92);
  font-size: 12px;
  letter-spacing: .08em;
}
.login__label {
  display: inline-block;
}
/* App + Pages */
.app {
  position: relative;
  min-height: 100vh;
  z-index: 10;
}
.page {
  position: absolute;
  inset: 0;
  padding: calc(var(--headerH) + 16px) var(--padPageX) var(--padPageB);
  opacity: 0;
  transform: translateY(10px);
  filter: blur(10px);
  pointer-events: none;
  overflow: auto;
  z-index: 1;
  transition: opacity .55s ease, transform .55s cubic-bezier(.2,.9,.2,1), filter .55s ease;
}
.page.is-active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  pointer-events: auto !important;
  z-index: 20;
}
.page.is-active * { pointer-events: auto; }
/* Hero */
.hero {
  height: calc(100vh - var(--headerH) - 16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  padding-bottom: 40px;
}
.home-shell {
  width: min(1180px, 100%);
  margin-inline: auto;
  display: grid;
  gap: 24px;
  padding-bottom: 40px;
}
.hero--home {
  height: auto;
  min-height: calc(100vh - var(--headerH) - 64px);
}
.hero__title {
  margin: 0;
  font-family: "Bebas Neue", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(92px, 12vw, 172px);
  letter-spacing: .04em;
  line-height: .86;
  text-shadow: 0 30px 80px rgba(0,0,0,.65);
  animation: fadeUp .8s ease both;
}
.hero__subtitle {
  margin: 0;
  font-size: 14px;
  letter-spacing: .58em;
  text-transform: uppercase;
  color: var(--muted2);
  transform: translateY(-4px);
  animation: fadeUp .85s ease both;
  animation-delay: .05s;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.btn-row {
  display: flex;
  gap: 18px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp .9s ease both;
  animation-delay: .1s;
}

#bypass-admin-row {
  margin-top: 14px;
  display: none;
}
body:not(.is-admin) #bypass-admin-row {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
body:not(.is-admin) #bypass-admin-row * {
  display: none !important;
}

.bypass-admin-btn {
  min-width: 220px;
}
body.is-admin #bypass-admin-row {
  display: flex !important;
}
/* Buttons */
.pill-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  padding: var(--btnPadY) var(--btnPadX);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.085);
  background: rgba(255,255,255,.06);
  color: rgba(245,245,247,.85);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .34em;
  font-size: 13px;
  cursor: pointer;
  box-shadow: var(--shadowSoft);
  overflow: hidden;
  user-select: none;
  transition: transform .22s cubic-bezier(.2,.9,.2,1), border-color .22s ease, background .22s ease, box-shadow .22s ease;
}
.pill-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.13);
  background: rgba(255,255,255,.085);
  box-shadow: var(--shadow);
}
.pill-btn--ghost { background: rgba(255,255,255,.045); }
/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  align-items: end;
  gap: 28px 56px;
  margin-top: 44px;
  width: min(1180px, 100%);
  justify-content: center;
}
.stat {
  min-width: 0;
  text-align: center;
}
.stat__num {
  font-family: "Bebas Neue", system-ui, sans-serif;
  font-size: clamp(52px, 6vw, 92px);
  letter-spacing: .03em;
  line-height: .9;
  text-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.stat__label {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: .48em;
  text-transform: uppercase;
  color: var(--muted2);
  line-height: 1.2;
  white-space: nowrap;
  margin-left: auto;
  margin-right: auto;
}
.stat__label--wide {
  letter-spacing: .24em;
}
/* Dashboard */
.dashboard {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 42px;
  height: calc(100vh - var(--headerH) - 16px);
  position: relative;
  z-index: 30;
  pointer-events: auto;
}
.sidebar {
  padding-top: 10px;
  position: relative;
  z-index: 40;
  pointer-events: auto;
}
.sidelink {
  display: block;
  width: max-content;
  text-decoration: none;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: .38em;
  font-size: 14px;
  padding: 12px 6px;
  margin: 10px 0;
  position: relative;
  transition: color .25s ease, transform .25s ease;
  pointer-events: auto;
}
.sidelink::after {
  content: "";
  position: absolute;
  left: 6px; right: 6px; bottom: 6px;
  height: 2px;
  background: rgba(245,245,247,.9);
  transform: scaleX(0);
  transform-origin: left;
  opacity: .7;
  transition: transform .35s cubic-bezier(.2,.9,.2,1), opacity .25s ease;
  pointer-events: none;
}
.sidelink:hover { color: rgba(245,245,247,.85); transform: translateY(-1px); }
.sidelink:hover::after { transform: scaleX(1); opacity: .4; }
.sidelink.is-active { color: rgba(245,245,247,.92); }
.sidelink.is-active::after { transform: scaleX(1); opacity: .95; }
.stage {
  position: relative;
  height: calc(100vh - var(--headerH) - 16px);
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 35;
  pointer-events: auto;
}
/* Views */
.view {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  overflow-y: auto;
  padding-right: 12px;
  z-index: 1;
  transition: opacity .55s ease, transform .55s cubic-bezier(.2,.9,.2,1);
}
.view.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto !important;
  z-index: 10;
}
.view.is-active * { pointer-events: auto; }
.view--center { display: flex; align-items: center; justify-content: center; text-align: center; }
.view[data-view="overview"] {
  display: block;
  overflow-y: auto;
  padding-top: 12px;
  padding-bottom: 120px;
}
.view[data-view="overview"] .center-stack {
  padding-top: 40px;
}
.view[data-view="settings"] {
  overflow-y: auto;
  padding-bottom: 96px;
}
.view[data-view="settings"] .cloud {
  padding-bottom: 96px;
}
.view[data-view="globalchat"],
.view[data-view="suggestions"] {
  display: block;
  overflow-y: auto;
  padding-top: 12px;
  padding-bottom: 120px;
}
/* Center stack */
.center-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) 0 var(--space-6);
  width: 100%;
}
/* Titles */
.view__title {
  margin: 0;
  font-family: "Bebas Neue", system-ui, sans-serif;
  font-size: clamp(64px, 7vw, 104px);
  letter-spacing: .04em;
  line-height: .9;
  text-shadow: 0 30px 80px rgba(0,0,0,.65);
}
.view__subtitle {
  margin: 0;
  font-size: 13px;
  letter-spacing: .46em;
  text-transform: uppercase;
  color: var(--muted2);
  transform: translateY(-4px);
}
/* Cloud */
.cloud {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: var(--space-5);
  padding-bottom: var(--space-6);
  position: relative;
  z-index: 20;
  pointer-events: auto;
}
.tabs {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-top: var(--space-3);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
  position: relative;
  z-index: 25;
  pointer-events: auto;
}
.tab {
  background: transparent;
  border: 0;
  padding: 10px 6px 14px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--muted2);
  position: relative;
  transition: color .25s ease, transform .25s ease;
  pointer-events: auto;
}
.tab::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 2px;
  background: rgba(245,245,247,.9);
  transform: scaleX(0);
  transform-origin: left;
  opacity: .7;
  transition: transform .35s cubic-bezier(.2,.9,.2,1), opacity .25s ease;
  pointer-events: none;
}
.tab:hover { color: rgba(245,245,247,.85); transform: translateY(-1px); }
.tab:hover::after { transform: scaleX(1); opacity: .4; }
.tab.is-active { color: rgba(245,245,247,.92); }
.tab.is-active::after { transform: scaleX(1); opacity: .95; }
.panel {
  width: min(var(--contentW), 100%);
  display: none;
  position: relative;
  z-index: 25;
  pointer-events: auto;
}
.panel.is-active { display: block; pointer-events: auto; }
.config-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
}
.config-grid--wide { grid-template-columns: 1.05fr .95fr; }
.stack { display: flex; flex-direction: column; gap: 18px; }
/* Cards */
.card {
  width: 100%;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: var(--shadowSoft);
  padding: var(--cardPadY) var(--cardPadX);
  position: relative;
  overflow: hidden;
  transition: transform .22s cubic-bezier(.2,.9,.2,1), background .22s ease, border-color .22s ease, box-shadow .22s ease;
  pointer-events: auto;
}
.card:hover {
  transform: translateY(-2px);
  background: var(--cardHover);
  border-color: rgba(255,255,255,.10);
  box-shadow: var(--shadow);
}
.card--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.card__title {
  text-transform: uppercase;
  letter-spacing: .36em;
  font-size: 13px;
  color: rgba(245,245,247,.88);
}
.card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.card__value {
  color: rgba(245,245,247,.75);
  font-size: 13px;
  letter-spacing: .12em;
}
.curve-card {
  display: grid;
  gap: 18px;
}
.curve-card__head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}
.curve-card__sub {
  margin-top: 8px;
  color: rgba(226, 226, 240, 0.62);
  font-size: 12px;
  letter-spacing: .04em;
  max-width: 46ch;
  line-height: 1.55;
}
.curve-card__sub span {
  color: rgba(245,245,247,.92);
}
.curve-card__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.curve-card__legend-point {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.20);
  color: rgba(255,255,255,.94);
  font-size: 11px;
  font-weight: 700;
}
.curve-card__legend-point--end {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.20);
}
.curve-card__legend-text {
  color: rgba(226, 226, 240, 0.72);
  font-size: 11px;
  letter-spacing: .08em;
}
.curve-editor {
  display: grid;
  gap: 16px;
}
.curve-editor__graph {
  position: relative;
  min-height: 260px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  background:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 20%),
    radial-gradient(circle at 16% 18%, rgba(255,255,255,.08), transparent 32%),
    radial-gradient(circle at 86% 16%, rgba(114, 197, 255, .12), transparent 30%),
    linear-gradient(180deg, rgba(19,21,28,.98), rgba(8,10,14,.98));
  background-size: 100% 20%, 10% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), inset 0 -32px 56px rgba(0,0,0,.18), 0 18px 42px rgba(0,0,0,.22);
}
.curve-editor__axis {
  position: absolute;
  z-index: 2;
  color: rgba(226, 226, 240, 0.46);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  pointer-events: none;
}
.curve-editor__axis--y-top {
  top: 16px;
  right: 18px;
}
.curve-editor__axis--y-bottom {
  bottom: 16px;
  right: 18px;
}
.curve-editor__axis--x-left {
  left: 18px;
  bottom: 16px;
}
.curve-editor__axis--x-right {
  right: 18px;
  bottom: 16px;
}
.curve-editor__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.curve-editor__path {
  fill: none;
  stroke: rgba(237, 237, 244, 0.92);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.38));
}
.curve-editor__guide {
  fill: none;
  stroke: rgba(255,255,255,.30);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 6 8;
}
.curve-editor__point,
.curve-editor__handle {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}
.curve-editor__point {
  background: rgba(255,255,255,.92);
  box-shadow: 0 0 0 4px rgba(255,255,255,.08);
}
.curve-editor__point--origin {
  left: 5.6%;
  top: 90%;
}
.curve-editor__point--end {
  left: 94.4%;
  top: 10%;
}
.curve-editor__handle {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(232,232,238,.94));
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: 0 0 0 5px rgba(255,255,255,.10), 0 14px 28px rgba(0,0,0,.28);
  cursor: grab;
  z-index: 3;
  pointer-events: auto;
  transition: transform .16s ease, box-shadow .16s ease;
}
.curve-editor__handle:hover {
  transform: translate(-50%, -50%) scale(1.08);
}
.curve-editor__handle.is-dragging {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.14);
  box-shadow: 0 0 0 7px rgba(255,255,255,.14), 0 18px 36px rgba(0,0,0,.34);
}
.curve-editor__handle--accel {
  left: 20%;
}
.curve-editor__handle--decel {
  left: 80%;
}
.curve-editor__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.curve-editor__metric {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  display: grid;
  gap: 6px;
}
.curve-editor__metric-label,
.curve-editor__control-label {
  color: rgba(226, 226, 240, 0.62);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.curve-editor__metric-value,
.curve-editor__control-value {
  color: rgba(245,245,247,.95);
  font-size: 14px;
  letter-spacing: .08em;
}
.curve-editor__controls {
  display: grid;
  gap: 14px;
}
.curve-editor__control {
  display: grid;
  gap: 10px;
}
.curve-editor__control-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.curve-editor__footer {
  display: flex;
  justify-content: flex-end;
}
.curve-editor__reset {
  appearance: none;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(245,245,247,.92);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.curve-editor__reset:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.18);
  transform: translateY(-1px);
}
.hint {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .02em;
  line-height: 1.55;
}
/* Switch */
.switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  pointer-events: auto;
}
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.switch__ui {
  width: 60px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.08);
  position: relative;
  transition: background .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s cubic-bezier(.2,.9,.2,1);
  pointer-events: auto;
}
.switch__thumb {
  position: absolute;
  top: 50%;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: rgba(245,245,247,.30);
  box-shadow: 0 14px 40px rgba(0,0,0,.55);
  transition: transform .22s cubic-bezier(.2,.9,.2,1), background .22s ease, box-shadow .22s ease;
  pointer-events: none;
}
.switch input:checked + .switch__ui {
  background: rgba(184,183,255,.22);
  border-color: rgba(184,183,255,.22);
  animation: fadeRing 1s ease-out forwards;
}
.switch input:checked + .switch__ui .switch__thumb {
  transform: translateY(-50%) translateX(28px);
  background: rgba(184,183,255,.92);
  box-shadow: 0 16px 48px rgba(0,0,0,.60);
}
@keyframes fadeRing {
  0% {
    box-shadow: 0 0 0 6px rgba(184,183,255,.30);
  }
  100% {
    box-shadow: 0 0 0 6px rgba(184,183,255,.00);
  }
}
/* Range */
.range {
  width: 100%;
  height: 28px;
  background: transparent;
  cursor: pointer;
  --pct: 50%;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
}
.range::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(to right,
    rgba(184,183,255,.75) 0%,
    rgba(184,183,255,.75) var(--pct),
    rgba(255,255,255,.10) var(--pct),
    rgba(255,255,255,.10) 100%);
  border: 1px solid rgba(255,255,255,.04);
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(184,183,255,.95);
  border: 2px solid rgba(255,255,255,.15);
  box-shadow: 0 14px 44px rgba(0,0,0,.60);
  margin-top: -7px;
}
.range:focus-visible { outline: 2px solid rgba(184,183,255,.55); outline-offset: 6px; }
/* Inputs */
.field { display: flex; flex-direction: column; gap: 12px; pointer-events: auto; }
.field__label {
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(245,245,247,.70);
}
.field__input {
  width: 100%;
  padding: var(--inputPadY) var(--inputPadX);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  color: rgba(245,245,247,.92);
  outline: none;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
  pointer-events: auto;
}
.field__input:hover {
  border-color: rgba(255,255,255,.16);
  background: rgba(0,0,0,.26);
}
.field__input:focus {
  border-color: rgba(184,183,255,.42);
  box-shadow: var(--ring);
  background: rgba(0,0,0,.30);
}
select.field__input {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(245,245,247,.55) 50%),
    linear-gradient(135deg, rgba(245,245,247,.55) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 54%,
    calc(100% - 12px) 54%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
/* Login message */
.loginmsg {
  min-height: 20px;
  text-align: center;
  font-size: 12px;
  letter-spacing: .10em;
  margin-top: 8px;
  color: rgba(255,120,120,.92);
}
.loginmsg.is-ok { color: rgba(120,255,180,.92); }
.settings-warning {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,170,90,.22);
  background: rgba(255,170,90,.08);
  color: rgba(255,214,168,.95);
  font-size: 12px;
  letter-spacing: .04em;
  line-height: 1.55;
  text-align: center;
}
.overview-shell {
  width: min(980px, 100%);
  margin-inline: auto;
  display: grid;
  gap: 22px;
  padding-top: 8px;
  padding-bottom: 32px;
}
.overview-news-card {
  width: min(860px, 100%);
  margin-inline: auto;
  text-align: left;
}
.overview-feed-grid {
  display: grid;
  grid-template-columns: minmax(0, 860px);
  gap: 20px;
  align-items: start;
  justify-content: center;
}
.overview-feed-grid .overview-news-card {
  width: 100%;
}
.overview-community-card {
  width: min(1100px, 100%);
  margin-inline: auto;
  text-align: left;
}
.community-shell {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-top: 14px;
  padding-bottom: 42px;
  align-items: stretch;
  text-align: left;
}
.community-view-card {
  width: 100%;
  text-align: left;
}
.community-view-feed {
  max-height: calc(100vh - var(--headerH) - 360px);
  min-height: 420px;
}
.community-view-compose {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 18px;
}
.overview-community-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.overview-community-tabs .small-btn.is-active {
  border-color: rgba(140, 111, 255, 0.65);
  box-shadow: 0 0 0 1px rgba(140, 111, 255, 0.24), 0 14px 28px rgba(0, 0, 0, 0.22);
  background: rgba(24, 24, 34, 0.92);
}
.discord-news {
  display: grid;
  gap: 14px;
}
.discord-feed-scroll {
  max-height: 780px;
  overflow-y: auto;
  padding-right: 8px;
}
.ticket-admin {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.ticket-admin__sidebar {
  max-height: 760px;
  overflow: auto;
  display: grid;
  gap: 10px;
  padding-right: 6px;
}
.ticket-admin__main {
  min-width: 0;
}
.ticket-list-item {
  width: 100%;
  text-align: left;
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 17, 24, 0.88);
  color: #e8e8f6;
  display: grid;
  gap: 6px;
}
.ticket-list-item.is-active {
  border-color: rgba(140, 111, 255, 0.65);
  box-shadow: 0 0 0 1px rgba(140, 111, 255, 0.22), 0 16px 32px rgba(0, 0, 0, 0.2);
}
.ticket-list-item__title {
  font-size: 14px;
  letter-spacing: 0.08em;
}
.ticket-list-item__meta,
.ticket-list-item__topic {
  font-size: 11px;
  color: rgba(226, 226, 240, 0.64);
  line-height: 1.45;
}
.discord-browser-modal {
  position: fixed;
  inset: 0;
  z-index: 1000001;
  display: grid;
  grid-template-rows: 54px minmax(0, 1fr);
  background: #0b0b10;
}
body.discord-browser-open {
  overflow: hidden;
}
.discord-browser-modal[hidden] {
  display: none !important;
}
.discord-browser-modal__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(12,12,16,.98);
}
.discord-browser-modal__title {
  font-size: 14px;
  letter-spacing: .12em;
}
.discord-browser-modal__topbar-actions {
  display: flex;
  gap: 10px;
}
.discord-browser-modal__shell {
  min-height: 0;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}
.discord-browser-modal__sidebar {
  min-height: 0;
  overflow: auto;
  padding: 16px 12px 18px;
  background: #101017;
  border-right: 1px solid rgba(255,255,255,.06);
}
.discord-browser-modal__main {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #14141c;
}
.discord-browser-modal__channelbar {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(18,18,26,.96);
}
.discord-browser-modal__channelname {
  font-size: 18px;
  font-weight: 700;
}
.discord-browser-modal__channelmeta {
  margin-top: 4px;
  color: rgba(226,226,240,.62);
  font-size: 12px;
}
.discord-browser-modal__messages {
  min-height: 0;
  padding: 18px;
}
.discord-browser-modal__composer {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 16px 18px 18px;
  background: rgba(18,18,24,.98);
}
.discord-browser-category {
  margin-bottom: 18px;
}
.discord-browser-category__title {
  color: rgba(226,226,240,.54);
  font-size: 11px;
  letter-spacing: .14em;
  margin-bottom: 10px;
}
.discord-browser-channel {
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: 10px;
  color: rgba(232,232,246,.78);
  background: transparent;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}
.discord-browser-channel:hover,
.discord-browser-channel.is-active {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.04);
  color: rgba(255,255,255,.96);
}
.discord-browser-channel__hash {
  color: rgba(226,226,240,.5);
}
.home-vouches-card {
  width: min(920px, 100%);
  margin-inline: auto;
  text-align: left;
}
.home-community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.home-community-grid .home-vouches-card {
  width: 100%;
}
.discord-news__item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
}
.discord-news__item--mention {
  background: rgba(105, 74, 24, 0.26);
  border-color: rgba(255, 196, 84, 0.34);
  box-shadow: inset 3px 0 0 rgba(255, 196, 84, 0.95);
}
.discord-news__item--self-mention {
  background: rgba(112, 84, 18, 0.34);
  border-color: rgba(255, 214, 94, 0.4);
  box-shadow: inset 3px 0 0 rgba(255, 214, 94, 0.98), 0 0 0 1px rgba(255, 214, 94, 0.08);
}
.discord-news__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255,255,255,.05);
}
.discord-news__avatar--fallback {
  border: 1px solid rgba(255,255,255,.08);
}
.discord-news__body {
  min-width: 0;
}
.discord-news__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}
.discord-news__author {
  color: rgba(99,166,255,.96);
  font-weight: 700;
  letter-spacing: .02em;
}
.discord-news__time {
  color: var(--muted2);
  font-size: 12px;
  letter-spacing: .02em;
}
.discord-news__content {
  margin-top: 6px;
  color: rgba(245,245,247,.94);
  line-height: 1.6;
  word-break: break-word;
}
.discord-news__message + .discord-news__message {
  margin-top: 10px;
}
.discord-news__message--compact .discord-news__content,
.discord-news__message--compact .discord-news__media {
  margin-top: 4px;
}
.discord-news__message-time {
  color: var(--muted2);
  font-size: 11px;
  letter-spacing: .04em;
}
.discord-news__reply {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  margin-bottom: 6px;
  color: rgba(214, 216, 230, 0.76);
  font-size: 12px;
  min-width: 0;
}
.discord-news__reply--self {
  color: rgba(255, 219, 116, 0.96);
}
.discord-news__reply-line {
  width: 18px;
  height: 10px;
  border-left: 2px solid rgba(255,255,255,.18);
  border-top: 2px solid rgba(255,255,255,.18);
  border-top-left-radius: 8px;
  flex: 0 0 auto;
  transform: translateY(1px);
}
.discord-news__reply-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255,255,255,.06);
  flex: 0 0 auto;
}
.discord-news__reply-avatar--fallback {
  border: 1px solid rgba(255,255,255,.08);
}
.discord-news__reply-author {
  font-weight: 700;
  white-space: nowrap;
  flex: 0 0 auto;
}
.discord-news__reply-snippet {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.discord-news__day {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0 2px;
  color: var(--muted2);
  font-size: 12px;
  letter-spacing: .14em;
}
.discord-news__day::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 50%;
  height: 1px;
  background: rgba(255,255,255,.08);
}
.discord-news__day span {
  position: relative;
  padding: 0 12px;
  background: rgba(10,10,14,.92);
}
.discord-news__media {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  max-width: min(100%, 520px);
}
.discord-news__image {
    display: block;
    width: min(100%, 520px);
    max-width: 100%;
    height: auto;
    max-height: min(52vh, 420px);
    object-fit: contain;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.03);
    cursor: zoom-in;
}
.discord-news__video {
    width: min(100%, 520px);
    max-width: 100%;
    max-height: min(52vh, 420px);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(0,0,0,.28);
    display: block;
}
.news-image-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: start center;
  padding: clamp(12px, 3vw, 28px);
  overflow: auto;
  overscroll-behavior: contain;
}
body.news-image-open {
  overflow: hidden;
}
.news-image-modal[hidden] {
  display: none !important;
}
.news-image-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(8px);
}
.news-image-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1200px);
  margin: auto;
  padding-top: clamp(40px, 4vw, 56px);
  display: grid;
  gap: 14px;
  justify-items: center;
}
.news-image-modal__img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
  background: rgba(0,0,0,.18);
}
.news-image-modal__close {
  position: sticky;
  top: 0;
  justify-self: end;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(18,19,26,.92);
  color: rgba(245,245,247,.92);
  font: inherit;
  cursor: pointer;
  z-index: 2;
}
.news-compose {
  display: grid;
  gap: 12px;
}
.news-compose__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.news-compose__hint {
  color: var(--muted2);
  font-size: 12px;
  letter-spacing: .04em;
}
.news-compose__dropzone {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,.18);
  background: rgba(255,255,255,.028);
  text-align: center;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.news-compose__dropzone:hover,
.news-compose__dropzone:focus-visible,
.news-compose__dropzone--active {
  border-color: rgba(151, 109, 255, .55);
  background: rgba(151, 109, 255, .07);
  transform: translateY(-1px);
}
.news-compose__dropzone-title {
  color: rgba(245,245,247,.96);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.news-compose__dropzone-subtitle {
  color: var(--muted2);
  font-size: 12px;
}
.news-compose__attachments {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
}
.news-attachment {
  display: grid;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.news-attachment__preview {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}
.news-attachment__meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.news-attachment__name {
  color: rgba(245,245,247,.94);
  font-size: 12px;
  letter-spacing: .04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-attachment__status {
  color: var(--muted2);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.news-attachment__status--error {
  color: rgba(255, 118, 118, .92);
}
.news-attachment__actions {
  display: flex;
  justify-content: flex-end;
}
.news-attachment__remove {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(18,19,26,.92);
  color: rgba(245,245,247,.92);
  font: inherit;
  cursor: pointer;
}
.hidden { display: none !important; }
.muted { color: var(--muted2); }
/* Login page */
.page[data-page="login"] {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.loginpage {
  width: min(var(--contentW-narrow), 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  padding: 0;
}
.loginpanel {
  width: 100%;
  border-radius: 22px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.075);
  box-shadow: var(--shadow);
  padding: 34px 34px 30px;
  position: relative;
  overflow: hidden;
}
.authswitch {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 22px;
}
.authswitch__btn {
  min-width: 170px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(245,245,247,.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}
.authswitch__btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: rgba(245,245,247,.96);
}
.authswitch__btn.is-active {
  border-color: rgba(184,183,255,.26);
  background: rgba(184,183,255,.18);
  color: rgba(255,255,255,.98);
}
.loginpanel__title {
  position: relative;
  margin: 0;
  font-family: "Bebas Neue", system-ui, sans-serif;
  font-size: 72px;
  letter-spacing: .06em;
  line-height: .9;
  text-align: center;
  text-shadow: 0 30px 80px rgba(0,0,0,.65);
}
.loginpanel__sub {
  position: relative;
  margin: 10px 0 26px;
  text-align: center;
  font-size: 12px;
  letter-spacing: .46em;
  text-transform: uppercase;
  color: var(--muted2);
}
.loginform {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.loginform__btn {
  margin-top: 10px;
  align-self: center;
}
.twofa-qr {
  margin-top: 14px;
  display: grid;
  gap: 12px;
  justify-items: center;
}
.twofa-qr img {
  width: 220px;
  height: 220px;
  max-width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding: 12px;
}
.loginhint {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .02em;
}
.loginhint__muted { color: var(--muted2); }
/* Settings grid */
.settings-wrap {
  width: min(var(--contentW), 100%);
  margin-inline: auto;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
}

@media (min-width: 1025px) {
  .view[data-view="overview"],
  .view[data-view="bypass"],
  .view[data-view="settings"] {
    overflow: hidden;
  }

  .view[data-view="overview"] .center-stack,
  .view[data-view="bypass"] .center-stack {
    min-height: 100%;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
  }

  .view[data-view="settings"] .cloud {
    min-height: 100%;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
  }

  .view[data-view="settings"] .settings-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
  }

}
.config-shell {
  width: min(1180px, 100%);
  margin-inline: auto;
  padding: 34px 32px 36px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(180deg, rgba(15,15,18,.98), rgba(10,10,13,.98)),
    radial-gradient(500px 280px at 100% 0%, rgba(255,255,255,.05), transparent 60%);
  box-shadow: 0 30px 90px rgba(0,0,0,.36);
  text-align: left;
}
.config-shell__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.config-shell__eyebrow {
  font-family: "Bebas Neue", system-ui, sans-serif;
  font-size: 28px;
  letter-spacing: .08em;
  color: rgba(255,255,255,.98);
}
.config-shell__title {
  margin: 10px 0 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(255,255,255,.84);
}
.config-shell__subtitle {
  margin: 10px 0 0;
  font-size: 13px;
  color: rgba(255,255,255,.52);
}
.config-nav {
  display: flex;
  gap: 26px;
  margin-top: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.config-nav__tab {
  position: relative;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.42);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  padding: 0 0 12px;
  transition: color .2s ease;
}
.config-nav__tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -15px;
  height: 2px;
  background: linear-gradient(90deg, #8f59ff, #bb86ff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.config-nav__tab.is-active {
  color: rgba(255,255,255,.98);
}
.config-nav__tab.is-active::after {
  transform: scaleX(1);
}
.config-layout {
  display: block;
  margin-top: 28px;
}
.config-main {
  min-width: 0;
}
.config-panel {
  display: none;
}
.config-panel.is-active {
  display: block;
}
.config-slots-grid,
.browse-list--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.config-slot,
.browse-item {
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.07);
  background: linear-gradient(180deg, rgba(22,22,27,.98), rgba(15,15,19,.98));
  box-shadow: 0 10px 30px rgba(0,0,0,.20);
}
.config-slot,
.browse-item {
  padding: 20px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.config-slot:hover,
.browse-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
.config-slot.is-active-slot {
  border-color: rgba(156,111,255,.36);
  box-shadow: 0 0 0 1px rgba(156,111,255,.12), 0 20px 44px rgba(92,42,180,.08);
}

.config-slots-grid .config-slot:not(.is-active-slot) {
  opacity: .42;
  filter: saturate(.72);
}

.config-slots-grid .config-slot:not(.is-active-slot):hover {
  opacity: .9;
  filter: saturate(1);
}

.config-slots-grid .config-slot.is-active-slot {
  opacity: 1;
  filter: none;
  box-shadow: 0 0 0 1px rgba(156,111,255,.20), 0 26px 52px rgba(92,42,180,.16), 0 0 34px rgba(141,104,255,.16);
}
.config-slot__top,
.browse-item__top,
.config-preview__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.config-slot__title,
.browse-item__title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
  text-transform: none;
  color: rgba(255,255,255,.98);
}
.config-slot__meta,
.browse-item__meta,
.config-preview__sub {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.42);
  letter-spacing: 0;
  text-transform: none;
}
.config-slot__chips,
.browse-item__chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.config-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.72);
  font-size: 11px;
  font-weight: 700;
}
.config-slot__controls {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 10px;
  margin-top: 16px;
}
.config-slot__actions,
.browse-item__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.config-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.88);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.config-pill.is-active,
.config-pill--live {
  border-color: rgba(151,102,255,.26);
  background: rgba(143,89,255,.16);
  color: #d6c6ff;
}
.config-pill--public {
  background: rgba(255,182,25,.12);
  border-color: rgba(255,182,25,.14);
  color: #f7c13e;
}
.config-pill--private {
  background: rgba(119,27,36,.18);
  border-color: rgba(176,49,63,.18);
  color: #f26f7d;
}
.config-action {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.88);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.config-action:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
}
.config-action--primary {
  background: rgba(24,64,112,.26);
  border-color: rgba(48,127,235,.20);
  color: #60adff;
}
.config-action--danger {
  background: rgba(92,18,24,.22);
  border-color: rgba(214,63,77,.22);
  color: #ff6e7c;
}
.config-preview__name {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
  text-transform: none;
  color: rgba(255,255,255,.98);
}
.config-preview__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.config-inline-preview {
  width: 100%;
  margin-top: 14px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.config-stat {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.04);
  padding: 14px;
}
.config-stat__label {
  font-size: 11px;
  color: rgba(255,255,255,.42);
}
.config-stat__value {
  margin-top: 10px;
  font-size: 22px;
  font-weight: 800;
  color: rgba(255,255,255,.98);
}
.config-browse-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  gap: 14px;
  margin-bottom: 18px;
  align-items: end;
}
.config-search,
.config-filter {
  margin: 0;
}
.config-search .field__input {
  min-height: 50px;
  border-color: rgba(255,255,255,.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03)),
    rgba(0,0,0,.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.config-search .field__input:hover {
  border-color: rgba(255,255,255,.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04)),
    rgba(0,0,0,.30);
}
.config-search .field__input:focus {
  border-color: rgba(184,183,255,.34);
  box-shadow: 0 0 0 4px rgba(184,183,255,.08), inset 0 1px 0 rgba(255,255,255,.05);
}
.config-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 50px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025)),
    rgba(0,0,0,.20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.config-filter-chip {
  min-height: 28px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.config-filter-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.96);
}
.config-filter-chip.is-active {
  border-color: rgba(184,183,255,.26);
  background: rgba(184,183,255,.18);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(184,183,255,.08);
}
.config-shell select.field__input {
  padding-right: 46px;
  border-color: rgba(255,255,255,.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03)),
    radial-gradient(circle at top right, rgba(255,255,255,.05), transparent 55%),
    rgba(0,0,0,.24);
  color: rgba(255,255,255,.96);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,.82) 50%),
    linear-gradient(135deg, rgba(255,255,255,.82) 50%, transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03)),
    radial-gradient(circle at top right, rgba(255,255,255,.05), transparent 55%);
  background-position:
    calc(100% - 20px) calc(50% - 2px),
    calc(100% - 14px) calc(50% - 2px),
    0 0,
    100% 0;
  background-size:
    7px 7px,
    7px 7px,
    100% 100%,
    100% 100%;
  background-repeat: no-repeat;
}
.config-shell select.field__input:hover {
  border-color: rgba(255,255,255,.18);
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,.92) 50%),
    linear-gradient(135deg, rgba(255,255,255,.92) 50%, transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04)),
    radial-gradient(circle at top right, rgba(255,255,255,.07), transparent 58%);
}
.config-shell select.field__input:focus {
  border-color: rgba(184,183,255,.38);
  box-shadow: 0 0 0 4px rgba(184,183,255,.10), inset 0 1px 0 rgba(255,255,255,.05);
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,1) 50%),
    linear-gradient(135deg, rgba(255,255,255,1) 50%, transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05)),
    radial-gradient(circle at top right, rgba(184,183,255,.10), transparent 62%);
}
.config-shell select.field__input option {
  color: #f4f5f7;
  background: #121318;
}
/* Keybind */
.keybind {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}
.keybind__btn { min-width: 220px; }
.keybind__value {
  flex: 1;
  text-align: right;
  color: rgba(245,245,247,.75);
  letter-spacing: .12em;
  font-size: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
}
.exploit-group-card__toggle {
  margin-bottom: 0;
}
.bind-group-card {
  display: grid;
  gap: 16px;
}
.bind-group-card__section {
  display: grid;
  gap: 12px;
}
.bind-group-card__section + .bind-group-card__section {
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.bind-group-card__section .keybind {
  margin-top: 0;
}
.exploit-group-card__body {
  margin-top: 16px;
  display: grid;
  gap: 16px;
}
.exploit-group-card__section {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.exploit-group-card__section .keybind {
  margin-top: 0;
}
/* RGB widgets */
.rgb {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rgb__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.16);
}
.rgb__row label {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(245,245,247,.72);
}
.rgb__row input[type="color"] {
  width: 54px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,.28);
}
.rgb__row output {
  font-size: 12px;
  letter-spacing: .14em;
  color: rgba(245,245,247,.72);
}
.rgb__sliders {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rgb__slider {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 12px;
  align-items: center;
}
.rgb__slider span {
  font-size: 12px;
  letter-spacing: .18em;
  color: rgba(245,245,247,.70);
}
.rgb__slider output {
  width: 44px;
  text-align: right;
  font-size: 12px;
  letter-spacing: .10em;
  color: rgba(245,245,247,.70);
}
.swatch {
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(184,183,255,.20);
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
}

.cloud {
  position: relative;
}

.cloud-config-status {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 20px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03)),
    rgba(0,0,0,.26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.cloud-config-status__spinner {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.16);
  border-top-color: rgba(255,255,255,.92);
  animation: cloudConfigSpin .9s linear infinite;
  flex: 0 0 auto;
}

.cloud-config-status__copy {
  min-width: 0;
}

.cloud-config-status__title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.96);
}

.cloud-config-status__text {
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255,255,255,.68);
}

.cloud--config-loading .tabs,
.cloud--config-loading .panel {
  opacity: .45;
  pointer-events: none;
  filter: saturate(.72);
}

.cloud--config-error .cloud-config-status {
  border-color: rgba(214,63,77,.26);
  background:
    linear-gradient(180deg, rgba(214,63,77,.14), rgba(214,63,77,.06)),
    rgba(0,0,0,.26);
}

.cloud-config-status--error {
  border-color: rgba(214,63,77,.26);
  background:
    linear-gradient(180deg, rgba(214,63,77,.14), rgba(214,63,77,.06)),
    rgba(0,0,0,.26);
}

.cloud--config-error .cloud-config-status__spinner {
  display: none;
}

@keyframes cloudConfigSpin {
  to {
    transform: rotate(360deg);
  }
}
/* ESP Preview */
.preview {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.08);
  background: #0a0a0f;
  overflow: hidden;
  box-shadow: 0 22px 70px rgba(0,0,0,.35);
  margin-top: 14px;
  position: relative;
}
.preview__zones {
  position: absolute;
  inset: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: .55fr 1fr .55fr;
  gap: 10px;
  pointer-events: none;
}
.zone {
  position: relative;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
}
.zone__label {
  position: absolute;
  left: 12px;
  top: 12px;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(245,245,247,.45);
}
.zone--top { grid-column: 1 / -1; grid-row: 1; }
.zone--left { grid-column: 1; grid-row: 2; }
.zone--right { grid-column: 3; grid-row: 2; }
.zone--bottom { grid-column: 1 / -1; grid-row: 3; }
.preview-box {
  position: absolute;
  left: 25%;
  top: 20%;
  width: 50%;
  height: 60%;
  border: 1px solid rgba(255,255,255,0.5);
  opacity: 0.5;
  pointer-events: none;
}
/* HUD items schoon en animated */
.hud {
  position: absolute;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: #ffffff;
  background: rgba(20,25,40,0.85);
  border: 1px solid rgba(100,150,255,0.25);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  cursor: grab;
  user-select: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, left 0.3s ease, top 0.3s ease;
  opacity: 1;
  z-index: 10;
}
/* Bars ori ntatie */
.hud-bar.horizontal {
  flex-direction: row;
  padding: 0;
}
.hud-bar.vertical {
  flex-direction: column-reverse;
  padding: 0;
  writing-mode: vertical-rl;
}
.hud-bar.vertical .bar-label {
  transform: rotate(90deg);
  white-space: nowrap;
  left: auto;
  top: auto;
  bottom: 8px;
  right: 4px;
}
#hud-health {
  --bar-color1: #42f5b0;
  --bar-color2: #42f584;
}
#hud-armor {
  --bar-color1: #5580c8;
  --bar-color2: #5580ff;
}
.hud:active { cursor: grabbing; transform: scale(1.05); box-shadow: 0 6px 30px rgba(0,0,0,0.5); }
.hud-text { text-align: center; letter-spacing: 0.05em; text-shadow: 0 1px 4px #000; }
.hud-bar {
  width: 120px;
  height: 12px;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.bar-fill { height: 100%; transition: width 0.4s ease; }
.bar-label { display: none; }
/* Tab 6 layout */
.tab6-grid {
  width: min(var(--contentW), 100%);
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 26px;
  align-items: start;
}
.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
.action-btn {
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: rgba(245,245,247,.82);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 18px 60px rgba(0,0,0,.20);
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.action-btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 22px 70px rgba(0,0,0,.26);
}
.action-btn:active { transform: translateY(0) scale(.99); }
.list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 260px;
  overflow: auto;
  padding-right: 6px;
}
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.14);
}
.list-item__left { display: flex; flex-direction: column; gap: 4px; }
.list-item__name {
  font-size: 12px;
  letter-spacing: .14em;
  color: rgba(245,245,247,.82);
}
.small-btn {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: rgba(245,245,247,.80);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 11px;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.small-btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
}
.small-btn:active { transform: translateY(0) scale(.99); }
/* Admin table */
.tablewrap {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.14);
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,.32);
  max-height: 460px;
  overflow: auto;
}
.admintable {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  letter-spacing: .06em;
}
.admintable thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  text-align: left;
  padding: 14px 14px;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.35));
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: rgba(245,245,247,.70);
  letter-spacing: .18em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}
.admintable tbody td {
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: rgba(245,245,247,.80);
  vertical-align: middle;
}
.admintable tbody tr:hover td {
  background: rgba(255,255,255,.03);
}
.admintable .muted {
  color: rgba(245,245,247,.35);
}
/* Responsive */
@media (max-width: 1020px) {
  :root {
    --headerH: 120px;
    --padPageX: 28px;
    --padPageB: 40px;
    --cardPadY: 24px;
    --cardPadX: 22px;
  }
  .topbar { padding: 28px var(--padPageX); }
  .page { padding: calc(var(--headerH) + 16px) var(--padPageX) var(--padPageB); }
  .dashboard { grid-template-columns: 1fr; gap: 18px; }
  .sidebar { display: flex; gap: 18px; flex-wrap: wrap; }
  .sidelink { margin: 0; }
  .config-grid { grid-template-columns: 1fr; }
  .config-grid--wide { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .config-layout { grid-template-columns: 1fr; }
  .config-slots-grid,
  .browse-list--grid { grid-template-columns: 1fr; }
  .config-browse-toolbar { grid-template-columns: 1fr; }
  .tab6-grid { grid-template-columns: 1fr; }
  .pill-btn { min-width: 220px; }
  .topnav { gap: 38px; }
}
/* Motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
/* Click safety */
.page.is-active,
.view.is-active,
.dashboard,
.stage,
.sidebar,
.cloud,
.panel,
.tabs,
.tab,
.sidelink,
.card,
.pill-btn,
.field__input,
.switch,
.range,
.action-btn,
.small-btn,
.hud {
  pointer-events: auto !important;
}
/* Algemene preview */
.preview {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 1.6;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(135deg, #0a0b12, #10121a);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  margin: 16px auto 0;
  transition: all 0.3s ease;
}
/* Zones mooier */
.zone {
  border: 1px dashed rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.03);
  transition: background 0.2s ease;
}
.zone__label {
  font-size: 10px;
  color: rgba(245,245,247,0.5);
  letter-spacing: 0.1em;
  padding: 4px 8px;
  background: rgba(0,0,0,0.3);
  border-radius: 4px;
}
/* HUD items schoon en animated */
.hud {
  position: absolute;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: #ffffff;
  background: rgba(20,25,40,0.85);
  border: 1px solid rgba(100,150,255,0.25);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  cursor: grab;
  user-select: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, left 0.3s ease, top 0.3s ease;
  opacity: 1;
  z-index: 10;
}
/* Bars ori ntatie */
.hud-bar.horizontal {
  flex-direction: row;
  padding: 0;
}
.hud-bar.vertical {
  flex-direction: column-reverse;
  padding: 0;
  writing-mode: vertical-rl;
}
.hud-bar.vertical .bar-label {
  transform: rotate(90deg);
  white-space: nowrap;
  left: auto;
  top: auto;
  bottom: 8px;
  right: 4px;
}
/* Definieer --bar-color1 en --bar-color2 per bar (in HTML style of CSS) */
#hud-health {
  --bar-color1: #42f5b0;
  --bar-color2: #42f584;
}
#hud-armor {
  --bar-color1: #5580c8;
  --bar-color2: #5580ff;
}
.hud:active { cursor: grabbing; transform: scale(1.05); box-shadow: 0 6px 30px rgba(0,0,0,0.5); }
.hud-text { text-align: center; letter-spacing: 0.05em; text-shadow: 0 1px 4px #000; }
.hud-bar {
  width: 120px;
  height: 12px;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.bar-fill { height: 100%; transition: width 0.4s ease; }
.bar-label { display: none; }
@media (max-width: 768px) {
  :root {
    --headerH: 100px;
    --padPageX: 20px;
    --padPageB: 40px;
    --cardPadY: 20px;
    --cardPadX: 20px;
    --btnPadY: 12px;
    --btnPadX: 20px;
    --inputPadY: 12px;
    --inputPadX: 12px;
    --radius: 14px;
  }
  .brand {
    font-size: 36px;
  }
  .hero__title {
    font-size: clamp(60px, 10vw, 100px);
  }
  .hero__subtitle {
    font-size: 12px;
  }
  .stat__num {
    font-size: clamp(40px, 5vw, 70px);
  }
  .stat__label {
    font-size: 10px;
    letter-spacing: .24em;
    white-space: normal;
  }
  .stat__label--wide {
    letter-spacing: .16em;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 24px 28px;
    width: min(560px, 100%);
  }
  .topnav {
    gap: 40px;
  }
  .navlink {
    font-size: 12px;
  }
  .login {
    font-size: 12px;
  }
  .pill-btn {
    min-width: 200px;
    font-size: 12px;
  }
  .view__title {
    font-size: clamp(50px, 6vw, 80px);
  }
  .view__subtitle {
    font-size: 12px;
  }
  .card__title {
    font-size: 12px;
  }
  .card__value {
    font-size: 12px;
  }
  .hint {
    font-size: 11px;
  }
  .switch {
    min-width: auto !important;
    min-height: auto !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }
  .switch__ui {
    width: 52px !important;
    height: 30px !important;
    min-width: 52px !important;
    min-height: 30px !important;
    padding: 0 !important;
    flex: 0 0 52px !important;
  }
  .switch__thumb {
    width: 22px !important;
    height: 22px !important;
    left: 3px !important;
  }
  .range {
    height: 24px;
  }
  .range::-webkit-slider-runnable-track {
    height: 8px;
  }
  .range::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    margin-top: -6px;
  }
  .field__label {
    font-size: 11px;
  }
  .field__input {
    font-size: 12px;
  }
  .news-compose__toolbar {
    align-items: flex-start;
  }
  .home-community-grid {
    grid-template-columns: 1fr;
  }
  .overview-feed-grid {
    grid-template-columns: 1fr;
  }
  .ticket-admin {
    grid-template-columns: 1fr;
  }
  .discord-browser-modal__shell {
    grid-template-columns: 1fr;
  }
  .discord-browser-modal__sidebar {
    display: none;
  }
  .news-compose__attachments {
    grid-template-columns: 1fr;
  }
  .loginpanel__title {
    font-size: 60px;
  }
  .loginpanel__sub {
    font-size: 11px;
  }
  .preview {
    max-width: 300px;
  }
  .zone__label {
    font-size: 9px;
  }
  .hud {
    font-size: 11px;
  }
  .hud-bar {
    width: 100px;
    height: 10px;
  }
  .small-btn {
    font-size: 10px;
  }
  .action-btn {
    font-size: 11px;
  }
  .admintable {
    font-size: 11px;
  }
  .tablewrap {
    max-height: 300px;
  }
}
/* Click safety */
.page.is-active,
.view.is-active,
.dashboard,
.stage,
.sidebar,
.cloud,
.panel,
.tabs,
.tab,
.sidelink,
.card,
.pill-btn,
.field__input,
.switch,
.range,
.action-btn,
.small-btn,
.hud {
  pointer-events: auto !important;
}
/* Algemene preview */
.preview {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 1.6;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(135deg, #0a0b12, #10121a);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  margin: 16px auto 0;
  transition: all 0.3s ease;
}
/* Zones mooier */
.zone {
  border: 1px dashed rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.03);
  transition: background 0.2s ease;
}
.zone__label {
  font-size: 10px;
  color: rgba(245,245,247,0.5);
  letter-spacing: 0.1em;
  padding: 4px 8px;
  background: rgba(0,0,0,0.3);
  border-radius: 4px;
}
/* HUD items schoon en animated */
.hud {
  position: absolute;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: #ffffff;
  background: rgba(20,25,40,0.85);
  border: 1px solid rgba(100,150,255,0.25);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  cursor: grab;
  user-select: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, left 0.3s ease, top 0.3s ease;
  opacity: 1;
  z-index: 10;
}
/* Bars ori ntatie */
.hud-bar.horizontal {
  flex-direction: row;
  padding: 0;
}
.hud-bar.vertical {
  flex-direction: column-reverse;
  padding: 0;
  writing-mode: vertical-rl;
}
.hud-bar.vertical .bar-label {
  transform: rotate(90deg);
  white-space: nowrap;
  left: auto;
  top: auto;
  bottom: 8px;
  right: 4px;
}
/* Definieer --bar-color1 en --bar-color2 per bar (in HTML style of CSS) */
#hud-health {
  --bar-color1: #42f5b0;
  --bar-color2: #42f5b0;
}
#hud-armor {
  --bar-color1: #5580c8;
  --bar-color2: #5580c8;
}
.hud:active { cursor: grabbing; transform: scale(1.05); box-shadow: 0 6px 30px rgba(0,0,0,0.5); }
.hud-text { text-align: center; letter-spacing: 0.05em; text-shadow: 0 1px 4px #000; }
.hud-bar {
  width: 120px;
  height: 12px;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.bar-fill {
  width: 100%;
  height: 100%;
  transition: width 0.4s ease, height 0.4s ease;
}
.hud-bar.horizontal .bar-fill {
  width: 100%;
  height: 100%;
}

.hud-bar.vertical .bar-fill {
  width: 100%;
  height: 100%;
}
.bar-label { display: none; }
@media (max-width: 768px) {
  .curve-card__head {
    display: grid;
    grid-template-columns: 1fr;
  }
  .curve-card__legend {
    justify-content: flex-start;
  }
  .curve-editor__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .curve-editor__graph {
    min-height: 210px;
  }
  .curve-editor__footer {
    flex-direction: column;
    align-items: stretch;
  }
  .curve-editor__reset {
    width: 100%;
  }
  .preview {
    max-width: 300px;
    aspect-ratio: 1 / 1.4;
  }
  .hud {
    font-size: 10px;
    padding: 4px 10px;
  }
  .hud-bar {
    width: 90px;
    height: 20px;
  }
  .zone__label {
    font-size: 8px;
  }
.hint {
  font-size: 10px;
}
  .config-grid {
    gap: 20px;
  }
  .card {
    padding: 20px;
  }
  .view__title {
    font-size: 50px;
  }
  .pill-btn {
    min-width: 180px;
    font-size: 11px;
  }
}
/* ==================== CONNECTION LOCK ==================== */
/* ==================== CONNECTION LOCK (FIXED) ==================== */

/* Alleen knoppen, switches, ranges, tabs, cards etc. blurren */
.view.locked .pill-btn,
.view.locked .switch,
.view.locked .range,
.view.locked .field__input,
.view.locked .keybind__btn,
.view.locked .tab,
.view.locked .rgb,
.view.locked .card,
.view.locked .action-btn,
.view.locked .small-btn {
  filter: blur(6px) !important;
  opacity: 0.25 !important;
  pointer-events: none !important;
  user-select: none;
}

.view[data-view="bypass"].locked #bypass-admin-row,
.view[data-view="bypass"].locked #bypass-admin-row .bypass-admin-btn {
  filter: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  user-select: auto !important;
}

/* Subtiele melding */
.view[data-view="bypass"].locked::before,
.view[data-view="cloud"].locked::before {
  content: "";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Bebas Neue", sans-serif;
  font-size: 32px;
  letter-spacing: 0.2em;
  color: rgba(255, 80, 80, 0.15);
  pointer-events: none;
  z-index: 10;
}
.view.locked::after {
  content: "";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Bebas Neue", sans-serif;
  font-size: 48px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 80, 80, 0.18);
  text-shadow: 0 0 60px rgba(255, 80, 80, 0.6);
  pointer-events: none;
  z-index: 50;
  animation: pulse 3s infinite;
}

.view[data-view="bypass"].locked::after {
  content: "Bypass not Open";
}

.view[data-view="cloud"].locked::after {
  content: "Cheat not Open";
}

@keyframes pulse {
  50% { opacity: 0.8; }
}

/* Extra veiligheid */
.view[data-view="bypass"].locked .pill-btn,
.view[data-view="bypass"].locked .switch,
.view[data-view="bypass"].locked .range,
.view[data-view="bypass"].locked .field__input,
.view[data-view="bypass"].locked .keybind__btn,
.view[data-view="bypass"].locked .action-btn {
  filter: blur(5px) !important;
  opacity: 0.25 !important;
  pointer-events: none !important;
  user-select: none;
}

.view[data-view="cloud"].locked .pill-btn,
.view[data-view="cloud"].locked .switch,
.view[data-view="cloud"].locked .range,
.view[data-view="cloud"].locked .field__input,
.view[data-view="cloud"].locked .keybind__btn,
.view[data-view="cloud"].locked .action-btn,
.view[data-view="cloud"].locked .rgb,
.view[data-view="cloud"].locked .card {
  filter: blur(5px) !important;
  opacity: 0.25 !important;
  pointer-events: none !important;
  user-select: none;
}/* Click safety */
.page.is-active,
.view.is-active,
.dashboard,
.stage,
.sidebar,
.cloud,
.panel,
.tabs,
.tab,
.sidelink,
.card,
.pill-btn,
.field__input,
.switch,
.range,
.action-btn,
.small-btn,
.hud {
  pointer-events: auto !important;
}

.bones-card .card--row + .card--row{
  margin-top: 12px;
}

.preview__zones{
  inset: 60px;
  gap: 50px;
}

.preview__zones{
  grid-template-rows: .85fr 1fr .85fr;
}

.hud{
  font-size: 16px;
  padding: 18px 14px;
}


.preview-box{
  left: 22%;            /* was 25% */
  top: 22%;             /* was 20% */
  width: 56%;           /* was 50% */
  height: 56%;          /* was 60% */
}

.hud{ touch-action: none; }

.hud.is-dragging{ transition: none !important; }

.preview{ max-width: 320px; aspect-ratio: 4 / 5; min-width: 0 !important; }
.preview{
  width: 495px !important;
  max-width: 495px !important;
  min-width: 0 !important;
  aspect-ratio: 4 / 5 !important;
  margin: 12px 0 0 !important;
}
.preview__zones{ inset: 8px !important; gap: 6px !important; }
.preview-box{ left: 26% !important; top: 22% !important; width: 48% !important; height: 56% !important; }
.hud.is-dragging{ transition: none !important; }

.hud.is-dragging { transition: none !important; }


/* =========================================================
   Responsive usability (PC + Phone)
   - overrides only (keeps existing desktop look)
   ========================================================= */

/* Tablet + Phone */
@media (max-width: 1024px) {
  :root{
    --padPageX: 18px;
    --padPageB: 28px;
    --headerH: 92px;
    --cardPadY: 18px;
    --cardPadX: 16px;
    --space-6: 38px;
  }

  html, body{
    min-width: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto;
  }

  body{
    overflow: auto !important; /* desktop stylesheet sets hidden */
  }

  /* Top bar */
  .topbar{
    height: auto;
    padding: 16px var(--padPageX);
  }
  .topbar__inner{
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  .brand{ font-size: 34px; }

  .topnav{
    width: 100%;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    transform: none;
  }
  .navlink{
    padding: 10px 8px;
    letter-spacing: .22em;
  }

  /* Main layout */
  .page{
    padding: calc(var(--headerH) + 18px) var(--padPageX) var(--padPageB);
  }

  .dashboard{
    grid-template-columns: 1fr;
    gap: 18px;
    height: auto;
  }

  /* Sidebar becomes a horizontal scroll row */
  .sidebar{
    display: flex;
    gap: 10px;
    padding: 0 0 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .sidelink{
    margin: 0;
    padding: 10px 10px;
    white-space: nowrap;
    width: auto;
    font-size: 13px;
    letter-spacing: .28em;
  }

  /* Two-column grids collapse */
  .config-grid,
  .tab6-grid{
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .config-grid--wide,
  .config-layout{ grid-template-columns: 1fr !important; }

  /* Cards + controls */
  .card{
    padding: var(--cardPadY) var(--cardPadX);
    border-radius: 16px;
  }

  input, select, textarea{
    font-size: 16px; /* prevents iOS zoom */
  }

  .row, .row2, .row3, .grid2, .grid3{
    grid-template-columns: 1fr !important;
  }

  /* Preview / canvas areas should not force huge widths */
  .preview,
  .cloud,
  .settings-wrap,
  .config-grid,
  .tab6-grid,
  .dashboard{
    min-width: 0 !important;
  }

  /* Make big buttons easier to tap */
  button, .btn{
    min-height: 44px;
  }
}


@media (max-width: 600px){

  header,
  nav,
  .topbar,
  .navbar,
  .header,
  .nav,
  .top-links,
  .nav-links{
    display: none !important;
  }

  /* Tabs onder elkaar zetten */
  .tabs{
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 10px !important;
  }

  .tab{
    width: 100% !important;
    text-align: center !important;
    padding: 14px !important;
    font-size: 14px !important;
    letter-spacing: .12em !important;
    border-radius: 8px !important;
    position: relative !important;
    z-index: 5 !important;
  }

  /* underline effecten uitschakelen (die soms overlappen) */
  .tab::after{
    display: none !important;
  }

  /* grids onder elkaar */
  .config-grid,
  .tab4-grid,
  .settings-wrap{
    grid-template-columns: 1fr !important;
  }

  /* preview niet gigantisch */
  .preview{
    width: 100% !important;
    max-width: 320px !important;
    margin: 10px auto !important;
  }

  /* knoppen beter klikbaar */
  button,
  .btn,
  input,
  select{
    min-height: 44px !important;
    font-size: 16px !important;
  }

}

/* HOLD / TOGGLE click feedback */
.kbmode__btn{
  position: relative;
  overflow: hidden;
}
.kbmode__btn:active{
  transform: scale(0.96);
}
.kbmode__btn::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(255,255,255,0.08);
  opacity:0;
  transition:opacity .2s ease;
}
.kbmode__btn:active::after{
  opacity:1;
}


/* -----------------------------------------------
   MOBILE
----------------------------------------------- */

@media (max-width: 1024px) {
  html, body {
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
    overscroll-behavior: none;
  }

  button,
  .pill-btn,
  .kbmode__btn,
  .tab,
  .sidelink,
  .action-btn,
  .small-btn,
  input[type="checkbox"] + .switch__ui,
  .switch,
  .keybind__btn {
    min-height: 48px !important;
    min-width: 48px !important;
    padding: 12px 20px !important;
    font-size: 15px !important;
    touch-action: manipulation;
  }

  .tabs {
    flex-direction: column !important;
    gap: 12px !important;
    padding: 0 8px !important;
  }

  .tab {
    width: 100% !important;
    text-align: center !important;
    padding: 16px 12px !important;
    font-size: 15px !important;
    border-radius: 12px !important;
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
  }

  .tab.is-active {
    background: rgba(184,183,255,0.18) !important;
    border-color: rgba(184,183,255,0.45) !important;
  }

  .config-grid,
  .settings-grid,
  .settings-wrap,
  .config-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .config-slots-grid,
  .browse-list--grid,
  .config-preview__stats {
    grid-template-columns: 1fr !important;
  }

  .card {
    padding: 20px 18px !important;
    border-radius: 16px !important;
  }

  .preview {
    max-width: 100% !important;
    width: 340px !important;
    margin: 20px auto !important;
    aspect-ratio: 4 / 5 !important;
  }

  .cloud, .stage, .dashboard, .settings-wrap {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .topbar {
    padding: 12px 16px !important;
    height: auto !important;
  }

  .topbar__inner {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .topnav { display: none !important; }
}

/* ==================== KEYBIND MODE - SCHONE BUT ZICHTBARE FADE RING ==================== */
.kbmode {
  display: flex;
  gap: 12px;
}

.kbmode__btn {
  flex: 1;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  color: rgba(245,245,247,.92);
  font-size: 13px;
  letter-spacing: .28em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .25s ease, background .25s ease;
  position: relative;
  overflow: hidden;
}

.kbmode__btn:hover {
  border-color: rgba(255,255,255,.20);
  background: rgba(0,0,0,.32);
}

.kbmode__btn.is-active {
  border-color: rgba(184,183,255,.55);
  background: rgba(184,183,255,.18);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(184,183,255, 0);
}

.kbmode__btn.is-fading-in::before,
.kbmode__btn.is-fading-out::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 22px;
  pointer-events: none;
}

.kbmode__btn.is-fading-in::before {
  box-shadow: 0 0 0 10px rgba(184,183,255, 0.55);
  opacity: 1;
  animation: kbModeFadeIn 320ms ease-out forwards, kbModeFadeOut 1050ms ease-out 140ms forwards;
}

.kbmode__btn.is-fading-out::after {
  box-shadow: 0 0 0 8px rgba(184,183,255, 0.26);
  opacity: .75;
  animation: kbModeFadeOut 780ms ease-out forwards;
}

@keyframes kbModeFadeIn {
  0% {
    box-shadow: 0 0 0 0 rgba(184,183,255, 0);
    opacity: 0;
  }
  100% {
    box-shadow: 0 0 0 8px rgba(184,183,255, 0.38);
    opacity: 1;
  }
}

@keyframes kbModeFadeOut {
  0% {
    box-shadow: 0 0 0 8px rgba(184,183,255, 0.60);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 0 16px rgba(184,183,255, 0.35);
  }
  100% {
    box-shadow: 0 0 0 26px rgba(184,183,255, 0.00);
    opacity: 0;
  }
}

html, body {
  height: auto !important;
  min-height: 100vh;
  overflow-x: hidden !important;
  overflow-y: auto !important;     /* ? dit is cruciaal */
  -webkit-overflow-scrolling: touch;
}

/* Final polish overrides */
:root {
  --bg0: #090a10;
  --bg1: #13141d;
  --card: rgba(255,255,255,.06);
  --cardHover: rgba(255,255,255,.10);
  --accent: #bdb7ff;
  --accentStrong: #8f59ff;
  --accent-soft: #8f59ff;
  --accent-soft-2: #bdb7ff;
  --ring: 0 0 0 6px rgba(143,89,255,.10);
}

.brand,
.navlink.is-active,
.sidelink.is-active,
.config-shell__eyebrow,
.config-shell__title {
  text-shadow: 0 0 18px rgba(141, 104, 255, 0.12);
}

body {
  background:
    radial-gradient(880px 520px at 50% 10%, rgba(143,89,255,.10), transparent 58%),
    radial-gradient(720px 460px at 50% 62%, rgba(255,255,255,.04), transparent 62%),
    linear-gradient(180deg, #0a0b12, #10121a 42%, #090a10 100%);
}

.ambient::after {
  background:
    radial-gradient(620px 420px at 42% 18%, rgba(143,89,255,.12), transparent 58%),
    radial-gradient(520px 360px at 66% 30%, rgba(255,255,255,.08), transparent 62%);
}

.sidebar {
  position: relative;
}

.sidelink.is-active,
.navlink.is-active {
  color: #f2ecff;
}

.sidelink.is-active::after,
.navlink.is-active::after {
  background: linear-gradient(90deg, rgba(141,104,255,.95), rgba(184,183,255,.82));
  box-shadow: 0 0 18px rgba(141,104,255,.34);
}

.navlink:hover,
.sidelink:hover,
.tab:hover,
.config-nav__tab:hover,
.login:hover {
  color: #eee9ff;
}

.navlink:hover::after,
.sidelink:hover::after,
.tab:hover::after,
.config-nav__tab:hover::after {
  background: linear-gradient(90deg, rgba(141,104,255,.78), rgba(184,183,255,.54));
  box-shadow: 0 0 12px rgba(141,104,255,.18);
}

.pill-btn:hover,
.small-btn:hover,
.action-btn:hover,
.config-action:hover {
  border-color: rgba(141, 104, 255, 0.24);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.26), 0 0 0 1px rgba(141, 104, 255, 0.14), 0 0 22px rgba(141,104,255,.12);
}

.pill-btn,
.config-action--primary,
.switch input:checked + .switch__ui,
.range::-webkit-slider-thumb {
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}

.pill-btn,
.small-btn,
.action-btn,
.config-action,
.sidelink {
  border-color: rgba(141,104,255,.16);
  box-shadow: 0 10px 28px rgba(0,0,0,.18), 0 0 0 1px rgba(141,104,255,.08), 0 0 18px rgba(141,104,255,.08);
}

.sidelink {
  border: 0;
  border-radius: 0;
  padding: 12px 6px;
  background: transparent;
  box-shadow: none;
}

.sidelink:hover,
.sidelink.is-active {
  box-shadow: none;
}

.sidelink::after {
  left: 6px;
  right: 6px;
}

.card,
.tablewrap,
.config-shell {
  box-shadow: 0 22px 60px rgba(0,0,0,.22), 0 0 0 1px rgba(141,104,255,.08), 0 0 26px rgba(141,104,255,.08);
}

.card,
.tablewrap,
.config-shell,
.config-slot,
.browse-item,
.config-inline-preview,
.loginpanel,
.settings-wrap,
.preview {
  position: relative;
  border-color: rgba(141,104,255,.16);
}

.tablewrap {
  overflow: auto !important;
}

.card::before,
.tablewrap::before,
.config-shell::before,
.config-slot::before,
.browse-item::before,
.config-inline-preview::before,
.loginpanel::before,
.settings-wrap::before,
.preview::before {
  display: none;
}

.card::after,
.tablewrap::after,
.config-shell::after,
.config-slot::after,
.browse-item::after,
.config-inline-preview::after,
.loginpanel::after,
.settings-wrap::after,
.preview::after {
  display: none;
}

.config-shell__title,
.config-shell__titlewrap,
.config-nav,
.browse-item,
.config-slot,
.config-inline-preview {
  font-family: "JetBrains Mono", monospace;
}

.config-shell__title {
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: .02em;
}

.config-shell__subtitle {
  max-width: 420px;
  color: rgba(245,245,247,.58);
}

.config-slot,
.browse-item {
  padding: 20px;
  gap: 14px;
  background:
    linear-gradient(90deg, rgba(141,104,255,.14), rgba(141,104,255,0) 16%),
    linear-gradient(180deg, rgba(10,10,14,.96), rgba(16,16,22,.92));
}

.card:hover,
.tablewrap:hover,
.config-shell:hover {
  border-color: rgba(141,104,255,.24);
  box-shadow: 0 24px 64px rgba(0,0,0,.24), 0 0 0 1px rgba(141,104,255,.14), 0 0 34px rgba(141,104,255,.12);
}

.config-slot:hover,
.browse-item:hover,
.config-inline-preview:hover,
.config-stat:hover {
  border-color: rgba(141,104,255,.24);
  box-shadow: 0 18px 40px rgba(0,0,0,.28), 0 0 0 1px rgba(141,104,255,.12), 0 0 28px rgba(141,104,255,.10);
}

#inject-btn,
#unload-btn,
#destruct-btn,
#overview-settings-btn,
#overview-community-btn {
  border-color: rgba(141,104,255,.22);
  box-shadow: 0 12px 30px rgba(0,0,0,.24), 0 0 0 1px rgba(141,104,255,.12), 0 0 26px rgba(141,104,255,.12);
}

#inject-btn:hover,
#unload-btn:hover,
#destruct-btn:hover,
#overview-settings-btn:hover,
#overview-community-btn:hover {
  border-color: rgba(141,104,255,.34);
  box-shadow: 0 14px 34px rgba(0,0,0,.28), 0 0 0 1px rgba(141,104,255,.18), 0 0 34px rgba(141,104,255,.18);
}

.config-slot__title,
.browse-item__title {
  font-size: 20px;
  letter-spacing: -.02em;
  text-transform: none;
}

.config-slot__meta,
.browse-item__meta,
.config-preview__sub {
  font-size: 11px;
  letter-spacing: .06em;
  color: rgba(245,245,247,.48);
}

.config-slot__meta:empty {
  display: none;
}

.config-filter-chips {
  padding: 6px;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}

.config-filter-chip {
  transition: none !important;
  border-color: rgba(255,255,255,.06);
  background: rgba(255,255,255,.03);
  color: rgba(245,245,247,.68);
}

.config-filter-chip.is-active {
  background: linear-gradient(135deg, rgba(141,104,255,.62), rgba(141,104,255,.24));
  border-color: rgba(184,183,255,.56);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(184,183,255,.24), 0 10px 28px rgba(92, 55, 210, 0.34);
}

.config-filter-chip:hover,
.config-chip:hover,
.config-pill:hover,
.kbmode__btn:hover {
  border-color: rgba(141,104,255,.22);
  background: rgba(141,104,255,.12);
  color: rgba(255,255,255,.96);
}

.field__input:hover,
.config-shell .field__input:hover,
.config-shell select.field__input:hover {
  border-color: rgba(141,104,255,.22);
  box-shadow: 0 0 0 1px rgba(141,104,255,.06), inset 0 1px 0 rgba(255,255,255,.04);
}

.pill-btn,
.small-btn,
.action-btn,
.config-action {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border-color: rgba(255,255,255,.10);
  color: #fff;
}

.pill-btn::before,
.small-btn::before,
.action-btn::before,
.config-action::before {
  display: none;
}

.pill-btn,
.small-btn,
.action-btn,
.config-action {
  position: relative;
  overflow: hidden;
}

.config-action--primary,
.pill-btn:not(.pill-btn--ghost) {
  background: rgba(255,255,255,.08);
}

.pill-btn--ghost {
  background: rgba(255,255,255,.04);
}

.config-inline-preview {
  background:
    linear-gradient(90deg, rgba(141,104,255,.16), rgba(141,104,255,0) 18%),
    rgba(255,255,255,.03);
}

.config-copy-menu {
  width: 100%;
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(90deg, rgba(141,104,255,.10), rgba(141,104,255,0) 20%),
    rgba(255,255,255,.025);
}

.config-copy-menu__label {
  font-size: 11px;
  letter-spacing: .20em;
  text-transform: uppercase;
  color: rgba(245,245,247,.58);
}

.config-copy-menu__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.config-action--copy-slot {
  min-width: 48px;
  justify-content: center;
}

.config-share-menu__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 12px;
}

.config-favorite-btn {
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.74);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,.18), 0 0 0 1px rgba(141,104,255,.08), 0 0 18px rgba(141,104,255,.08);
}

.config-favorite-btn:hover,
.config-favorite-btn.is-active {
  border-color: rgba(255,122,163,.34);
  color: #ff7aa3;
  box-shadow: 0 12px 30px rgba(0,0,0,.22), 0 0 0 1px rgba(255,122,163,.12), 0 0 22px rgba(255,122,163,.16);
}

.config-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 99990;
}

.config-detail-modal[hidden] {
  display: none;
}

.app-modal {
  position: fixed;
  inset: 0;
  z-index: 99995;
}

.app-modal[hidden] {
  display: none;
}

.app-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 10, .76);
  backdrop-filter: blur(8px);
}

.app-modal__dialog {
  position: relative;
  width: min(520px, calc(100vw - 24px));
  margin: min(18vh, 160px) auto 0;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(141,104,255,.18);
  background: linear-gradient(180deg, rgba(18,18,24,.98), rgba(10,10,16,.98));
  box-shadow: 0 24px 80px rgba(0,0,0,.44), 0 0 0 1px rgba(141,104,255,.10), 0 0 44px rgba(141,104,255,.16);
}

.app-modal__head h3 {
  margin: 0;
  font-size: 24px;
  color: rgba(255,255,255,.98);
}

.app-modal__body {
  margin-top: 14px;
  color: rgba(245,245,247,.72);
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.app-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.keybind-modal {
  position: fixed;
  inset: 0;
  z-index: 99996;
}

.keybind-modal[hidden] {
  display: none;
}

.keybind-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 10, .76);
  backdrop-filter: blur(8px);
}

.keybind-modal__dialog {
  position: relative;
  width: min(930px, calc(100vw - 24px));
  max-height: calc(100vh - 28px);
  margin: 14px auto 0;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(141,104,255,.18);
  background: linear-gradient(180deg, rgba(18,18,24,.98), rgba(10,10,16,.98));
  box-shadow: 0 24px 80px rgba(0,0,0,.44), 0 0 0 1px rgba(141,104,255,.10), 0 0 44px rgba(141,104,255,.16);
  overflow: auto;
}

.keybind-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.keybind-modal__head h3 {
  margin: 0;
  font-size: 26px;
  color: rgba(255,255,255,.98);
}

.keybind-modal__subtitle {
  margin: 6px 0 0;
  color: rgba(245,245,247,.58);
  font-size: 13px;
}

.keybind-modal__current {
  margin-top: 16px;
  color: rgba(245,245,247,.72);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.keybind-modal__current span {
  color: rgba(255,255,255,.98);
  font-weight: 700;
}

.keybind-modal__mouse,
.keybind-modal__keyboard {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.keybind-modal__mouse {
  display: block;
}

.keybind-mouse-shell {
  display: block;
}

.keybind-mouse-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(184,183,255,.28);
  background: rgba(184,183,255,.12);
  box-shadow: 0 0 0 1px rgba(184,183,255,.08);
}

.keybind-mouse-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.keybind-mouse-chip {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(245,245,247,.88);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.keybind-modal__keyboard {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.keybind-keyboard-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
}

.keybind-key {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 10px 6px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(245,245,247,.88);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
  flex: 0 0 auto;
  min-width: 0;
}

.keybind-key:hover {
  transform: translateY(-1px);
  border-color: rgba(184,183,255,.24);
  background: rgba(184,183,255,.12);
}

.keybind-key--sm { width: 50px; }
.keybind-key--lg { width: 84px; }
.keybind-key--xl { width: 112px; }
.keybind-key--xxl { width: 136px; }
.keybind-key--space { width: 272px; }

.keybind-spacer {
  height: 48px;
  pointer-events: none;
  flex: 0 0 auto;
}

.keybind-spacer--sm { width: 16px; }
.keybind-spacer--md { width: 28px; }
.keybind-spacer--lg { width: 48px; }

.keybind-modal__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .keybind-modal__dialog {
    padding: 16px;
    border-radius: 20px;
  }

  .keybind-modal__mouse {
    display: block;
  }

  .keybind-modal__keyboard {
    gap: 8px;
  }

  .keybind-keyboard-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .keybind-key--sm,
  .keybind-key--lg,
  .keybind-key--xl,
  .keybind-key--xxl,
  .keybind-key--space {
    width: auto;
  }

  .keybind-key--lg,
  .keybind-key--xl,
  .keybind-key--xxl,
  .keybind-key--space {
    grid-column: span 2;
  }

  .keybind-spacer {
    display: none;
  }
}

.config-detail-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 10, .76);
  backdrop-filter: blur(8px);
}

.config-detail-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  width: min(1760px, calc(100vw - 18px));
  height: min(960px, calc(100vh - 18px));
  margin: 9px auto;
  border-radius: 28px;
  border: 1px solid rgba(141,104,255,.18);
  background: linear-gradient(180deg, rgba(18,18,24,.98), rgba(10,10,16,.98));
  box-shadow: 0 24px 80px rgba(0,0,0,.44), 0 0 0 1px rgba(141,104,255,.10), 0 0 44px rgba(141,104,255,.16);
  overflow: hidden;
}

.config-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.config-detail-head__title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.config-detail-head__title-row h3,
.config-detail-main__head h4 {
  margin: 0;
  font-size: 24px;
  color: rgba(255,255,255,.98);
}

.config-detail-head__id,
.config-detail-main__eyebrow,
.config-detail-main__count {
  color: rgba(245,245,247,.46);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.config-detail-head__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.config-detail-head__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.config-detail-head__badge,
.config-detail-preview__visibility,
.config-detail-section__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(143,89,255,.14);
  border: 1px solid rgba(143,89,255,.18);
  color: #d8cbff;
  font-size: 12px;
  font-weight: 700;
}

.config-detail-body {
  display: grid;
  grid-template-columns: 170px minmax(440px, .9fr) minmax(760px, 1.45fr);
  min-height: 0;
}

.config-detail-sidebar,
.config-detail-main,
.config-detail-preview {
  min-height: 0;
}

.config-detail-sidebar {
  padding: 18px 0;
  border-right: 1px solid rgba(255,255,255,.06);
  overflow: auto;
}

.config-detail-section {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: rgba(245,245,247,.58);
  text-align: left;
  cursor: pointer;
}

.config-detail-section:hover,
.config-detail-section.is-active {
  color: #fff;
  border-left-color: rgba(143,89,255,.92);
  background: linear-gradient(90deg, rgba(143,89,255,.14), rgba(143,89,255,0) 72%);
}

.config-detail-section__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8f59ff;
  box-shadow: 0 0 12px rgba(143,89,255,.42);
}

.config-detail-section__name {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
}

.config-detail-main {
  padding: 22px;
  overflow: auto;
}

.config-detail-main__head,
.config-detail-preview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.config-detail-settings {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.config-detail-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.025);
}

.config-detail-setting__label {
  color: rgba(245,245,247,.84);
  font-weight: 600;
}

.config-detail-setting__value {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(245,245,247,.54);
  text-align: right;
}

.config-detail-setting__value--color {
  color: rgba(245,245,247,.86);
}

.config-detail-setting__swatch {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 0 18px rgba(255,255,255,.06);
}

.config-detail-preview {
  padding: 20px 22px 22px;
  border-left: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, rgba(10,11,18,.82), rgba(11,10,18,.94));
  overflow: auto;
}

.config-detail-preview__stage {
  position: relative;
  min-height: 760px;
  margin-top: 14px;
  border-radius: 22px;
  border: 1px solid rgba(141,104,255,.12);
  background:
    radial-gradient(circle at 50% 10%, var(--preview-glow, rgba(143,89,255,.10)), transparent 32%),
    linear-gradient(180deg, rgba(15,15,26,.96), rgba(13,12,24,.98));
  overflow: hidden;
}

.config-detail-preview__glow {
  position: absolute;
  inset: auto 8% 5% 8%;
  height: 220px;
  background: radial-gradient(circle, rgba(143,89,255,.16), transparent 68%);
  filter: blur(18px);
}

.config-detail-preview__player {
  position: absolute;
  bottom: 78px;
  width: 220px;
  height: 430px;
  color: var(--preview-name-color, rgba(255,255,255,.84));
}

.config-detail-preview__player--left {
  left: 12%;
}

.config-detail-preview__player--right {
  right: 10%;
  transform: scale(.96);
  transform-origin: bottom center;
}

.config-detail-preview__weapon,
.config-detail-preview__name {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  color: inherit;
  font-size: 18px;
  font-weight: 700;
}

.config-detail-preview__weapon {
  top: 0;
}

.config-detail-preview__name {
  bottom: -6px;
}

.config-detail-preview__player[data-name-state="0"] .config-detail-preview__name,
.config-detail-preview__player[data-weapon-state="0"] .config-detail-preview__weapon {
  left: 50%;
  right: auto;
  top: 0;
  bottom: auto;
  transform: translateX(-50%);
}

.config-detail-preview__player[data-name-state="2"] .config-detail-preview__name,
.config-detail-preview__player[data-weapon-state="2"] .config-detail-preview__weapon {
  left: 50%;
  right: auto;
  top: auto;
  bottom: -6px;
  transform: translateX(-50%);
}

.config-detail-preview__player[data-name-state="1"] .config-detail-preview__name,
.config-detail-preview__player[data-weapon-state="1"] .config-detail-preview__weapon {
  left: auto;
  right: -8px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}

.config-detail-preview__player[data-name-state="3"] .config-detail-preview__name,
.config-detail-preview__player[data-weapon-state="3"] .config-detail-preview__weapon {
  left: -8px;
  right: auto;
  top: 50%;
  bottom: auto;
  transform: translate(-100%, -50%);
}

.config-detail-preview__player[data-health-state="0"] .config-detail-preview__health {
  left: 50%;
  top: 18px;
  bottom: auto;
  width: 108px;
  height: 8px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--preview-health, #93ff32) 0 78%, rgba(255,255,255,.08) 78% 100%);
}

.config-detail-preview__player[data-health-state="2"] .config-detail-preview__health {
  left: 50%;
  top: auto;
  bottom: 22px;
  width: 108px;
  height: 8px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--preview-health, #93ff32) 0 78%, rgba(255,255,255,.08) 78% 100%);
}

.config-detail-preview__player[data-health-state="1"] .config-detail-preview__health {
  left: auto;
  right: -14px;
  top: 126px;
  bottom: auto;
  width: 8px;
  height: 172px;
  transform: none;
  background: linear-gradient(180deg, var(--preview-health, #93ff32) 0 78%, rgba(255,255,255,.08) 78% 100%);
}

.config-detail-preview__player[data-health-state="3"] .config-detail-preview__health {
  left: -14px;
  right: auto;
  top: 126px;
  bottom: auto;
  width: 8px;
  height: 172px;
  transform: none;
  background: linear-gradient(180deg, var(--preview-health, #93ff32) 0 78%, rgba(255,255,255,.08) 78% 100%);
}

.config-detail-preview__skeleton {
  position: absolute;
  left: 50%;
  top: 70px;
  width: 132px;
  height: 252px;
  transform: translateX(-50%);
}

.config-detail-preview__bone {
  position: absolute;
  display: block;
  height: 3px;
  border-radius: 999px;
  background: var(--preview-skeleton, #c1132a);
  box-shadow: 0 0 14px color-mix(in srgb, var(--preview-skeleton, #c1132a) 38%, transparent);
  transform-origin: center center;
}

.config-detail-preview__bone--head { width: 20px; left: calc(50% - 10px); top: 10px; transform: rotate(90deg); }
.config-detail-preview__bone--neck { width: 18px; left: calc(50% - 9px); top: 28px; transform: rotate(90deg); }
.config-detail-preview__bone--spine { width: 58px; left: calc(50% - 29px); top: 58px; transform: rotate(90deg); }
.config-detail-preview__bone--pelvis { width: 30px; left: calc(50% - 15px); top: 92px; }
.config-detail-preview__bone--arm-left-top { width: 34px; left: 20px; top: 48px; transform: rotate(152deg); }
.config-detail-preview__bone--arm-left-bottom { width: 30px; left: 8px; top: 75px; transform: rotate(124deg); }
.config-detail-preview__bone--arm-right-top { width: 34px; right: 20px; top: 48px; transform: rotate(28deg); }
.config-detail-preview__bone--arm-right-bottom { width: 30px; right: 8px; top: 75px; transform: rotate(56deg); }
.config-detail-preview__bone--leg-left-top { width: 40px; left: 28px; top: 128px; transform: rotate(120deg); }
.config-detail-preview__bone--leg-left-bottom { width: 38px; left: 23px; top: 172px; transform: rotate(102deg); }
.config-detail-preview__bone--leg-right-top { width: 40px; right: 28px; top: 128px; transform: rotate(60deg); }
.config-detail-preview__bone--leg-right-bottom { width: 38px; right: 23px; top: 172px; transform: rotate(78deg); }

.preview-skeleton {
  position: absolute;
  inset: 0;
  --skeleton-color: #ffffff;
}

.config-detail-preview__health {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 108px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--preview-health, #93ff32) 0 78%, rgba(255,255,255,.08) 78% 100%);
  box-shadow: 0 0 14px rgba(147,255,50,.28);
}

.config-detail-preview__summary {
  margin-top: 18px;
}

.config-detail-summary__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.config-detail-summary__grid .config-stat {
  min-height: 112px;
}

.config-detail-summary__grid .config-stat__value {
  font-size: 28px;
}

@media (max-width: 1180px) {
  .config-browse-toolbar {
    grid-template-columns: 1fr;
  }

  .config-detail-shell {
    width: min(1120px, calc(100vw - 24px));
    height: min(92vh, calc(100vh - 24px));
    margin: 12px auto;
  }

  .config-detail-body {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .config-detail-preview {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.06);
  }
}

@media (max-width: 760px) {
  .config-detail-shell {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    margin: 8px auto;
  }

  .config-detail-head,
  .config-detail-body,
  .config-detail-main__head {
    display: block;
  }

  .config-detail-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding: 10px 0;
    max-height: 220px;
  }

  .config-detail-main,
  .config-detail-preview {
    padding: 18px;
  }

  .config-detail-preview__stage {
    min-height: 360px;
  }
}

.config-filter-chip,
.config-favorite-btn {
  transition: none !important;
}

@media (max-width: 1024px) {
  html,
  body,
  .app,
  .page,
  .stage,
  .view,
  .cloud,
  .dashboard,
  .settings-wrap,
  .config-shell,
  .config-layout,
  .config-main,
  .config-panel {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body {
    min-width: 0 !important;
  }

  .topbar {
    position: sticky !important;
    top: 0 !important;
    inset: auto 0 auto 0 !important;
    background: linear-gradient(180deg, rgba(9,10,16,.92), rgba(9,10,16,.72)) !important;
    backdrop-filter: blur(12px) !important;
    z-index: 80 !important;
  }

  .topbar { padding: 14px 14px !important; }

  .topbar__inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
  }

  .brand {
    font-size: 34px !important;
  }

  .login {
    font-size: 12px !important;
    letter-spacing: .28em !important;
    transform: none !important;
  }

  .page {
    position: relative !important;
    inset: auto !important;
    min-height: auto !important;
    height: auto !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    padding-top: 18px !important;
    padding-bottom: 28px !important;
    transform: none !important;
    filter: none !important;
    transition: opacity .18s ease !important;
  }

  .view {
    position: relative !important;
    inset: auto !important;
    min-height: auto !important;
    height: auto !important;
    transform: none !important;
    transition: opacity .18s ease !important;
  }

  .page:not(.is-active),
  .view:not(.is-active) {
    display: none !important;
  }

  .page.is-active,
  .view.is-active {
    display: block !important;
  }

  .dashboard {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    height: auto !important;
  }

  .stage {
    height: auto !important;
    min-height: 0 !important;
  }

  .sidebar {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    padding-top: 0 !important;
  }

  .sidelink {
    width: 100% !important;
    margin: 0 !important;
    padding: 14px 12px !important;
    text-align: center !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.04) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    letter-spacing: .22em !important;
    font-size: 12px !important;
  }

  .sidelink::after {
    left: 12px !important;
    right: 12px !important;
    bottom: 8px !important;
  }

  .hero,
  .center-stack,
  .loginpage {
    min-height: auto !important;
    height: auto !important;
    padding-bottom: 18px !important;
  }

  .hero__title,
  .view__title {
    font-size: clamp(56px, 18vw, 88px) !important;
  }

  .hero__subtitle,
  .view__subtitle {
    letter-spacing: .28em !important;
    font-size: 11px !important;
  }

  .btn-row {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    justify-content: stretch !important;
  }

  .btn-row > * {
    width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    justify-self: stretch !important;
  }

  .pill-btn,
  .pill-btn--ghost,
  .action-btn,
  .small-btn,
  .config-action,
  .config-favorite-btn,
  .keybind__btn {
    width: 100% !important;
    min-width: 0 !important;
  }

  .stats {
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  .stat {
    min-width: 0 !important;
    width: 100% !important;
  }

  .stat__num {
    font-size: clamp(36px, 12vw, 58px) !important;
  }

  .stat__label {
    letter-spacing: .2em !important;
    white-space: normal !important;
  }

  .config-shell,
  .loginpanel,
  .card,
  .tablewrap,
  .browse-item,
  .config-slot,
  .config-inline-preview {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .config-shell {
    padding: 20px 16px 22px !important;
  }

  .config-slot__controls,
  .config-share-menu__row,
  .config-detail-summary__grid {
    grid-template-columns: 1fr !important;
  }

  .config-slot__top,
  .browse-item__top,
  .config-preview__top,
  .config-detail-head,
  .config-detail-main__head,
  .config-detail-preview__head {
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .config-slot__top,
  .browse-item__top,
  .config-preview__top,
  .config-detail-head {
    flex-direction: column !important;
  }

  .config-slot__title,
  .browse-item__title,
  .config-preview__name {
    font-size: 22px !important;
  }

  .config-browse-toolbar {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .config-filter-chips {
    min-height: 0 !important;
  }

  .preview {
    width: min(100%, 340px) !important;
    max-width: min(100%, 340px) !important;
    margin: 16px auto 0 !important;
  }

  .tablewrap {
    max-height: none !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .admintable,
  .admintable thead,
  .admintable tbody,
  .admintable tr,
  .admintable th,
  .admintable td {
    display: block !important;
    width: 100% !important;
  }

  .admintable {
    min-width: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 10px !important;
  }

  .admintable thead {
    display: none !important;
  }

  .admintable tbody tr {
    padding: 14px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    background: rgba(255,255,255,.03) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,.18) !important;
  }

  .admintable tbody td {
    padding: 10px 0 !important;
    border: 0 !important;
    word-break: break-word !important;
  }

  .admintable tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(245,245,247,.42);
  }

  .admintable td:last-child,
  .admintable td[data-label="Actions"],
  .admintable td[data-label="Action"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .admintable td:last-child .small-btn,
  .admintable td[data-label="Actions"] .small-btn,
  .admintable td[data-label="Action"] .small-btn {
    width: 100% !important;
    margin: 0 !important;
  }

  .config-detail-shell {
    width: calc(100vw - 10px) !important;
    height: calc(100vh - 10px) !important;
    margin: 5px auto !important;
    border-radius: 20px !important;
  }

  .config-detail-body {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .config-detail-sidebar,
  .config-detail-main,
  .config-detail-preview {
    overflow: auto !important;
  }

  .config-detail-sidebar {
    max-height: 220px !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.06) !important;
  }

  .config-detail-main,
  .config-detail-preview {
    padding: 16px !important;
  }

  .config-detail-preview {
    border-left: 0 !important;
    border-top: 1px solid rgba(255,255,255,.06) !important;
  }

  .config-detail-preview__stage {
    min-height: 420px !important;
  }

  .config-detail-preview__player {
    width: 140px !important;
    height: 260px !important;
    bottom: 46px !important;
  }

  .config-detail-preview__player--left {
    left: 10% !important;
  }

  .config-detail-preview__player--right {
    right: 8% !important;
    transform: scale(.88) !important;
  }

  .config-detail-preview__weapon,
  .config-detail-preview__name {
    font-size: 13px !important;
  }

  .config-detail-preview__skeleton {
    width: 74px !important;
    height: 176px !important;
    top: 34px !important;
  }

  .config-detail-preview__health {
    width: 74px !important;
    height: 6px !important;
    bottom: 14px !important;
  }
}

#configs-search.field__input,
.config-shell .field__input,
.config-shell select.field__input {
  font-family: "JetBrains Mono", monospace;
}

.rgb__row {
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border-color: rgba(255,255,255,.10);
}

.rgb__picker-shell {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.rgb__row input[type="color"] {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 10px 30px rgba(0,0,0,.24), 0 0 0 1px rgba(141,104,255,.14);
}

.rgb__row input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.rgb__row input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 12px;
}

.rgb__slider {
  grid-template-columns: 18px 1fr 38px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.02);
}

.swatch {
  height: 54px;
  border-radius: 18px;
  border-color: rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 40px rgba(0,0,0,.18);
}

.preview {
  width: 100% !important;
  max-width: 430px !important;
  aspect-ratio: 4 / 5 !important;
  margin: 12px auto 0 !important;
  border-radius: 24px;
  border-color: rgba(255,255,255,.12);
  background: radial-gradient(circle at top, rgba(141,104,255,.20), transparent 34%), linear-gradient(180deg, #090a10, #13141d);
}

.preview-model {
  position: absolute;
  left: 50%;
  top: 16%;
  width: 34%;
  height: 54%;
  transform: translateX(-50%);
  pointer-events: none;
}

.preview-model__name {
  position: absolute;
  left: 50%;
  top: -30px;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
}

.preview-model__box {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
}

.preview-model__half {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  opacity: 0;
  transition: opacity .18s ease;
}

.preview-model__half--visible {
  left: 0;
  border-right: 1px solid rgba(255,255,255,.08);
}

.preview-model__half--hidden {
  right: 0;
}

.preview-box {
  left: 33% !important;
  top: 18% !important;
  width: 34% !important;
  height: 54% !important;
  border-radius: 20px;
}

.hud-text {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

#hud-name {
  font-size: 13px;
  font-weight: 700;
}

#hud-weapon,
#hud-distance {
  color: rgba(245,245,247,.84);
}

.config-preview__stats--top {
  margin-top: 4px;
}

.config-preview__exploits {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.config-chip--accent {
  background: linear-gradient(135deg, rgba(141,104,255,.22), rgba(141,104,255,.08));
  border-color: rgba(184,183,255,.18);
  color: #efe8ff;
}

.bone {
  position: absolute;
  display: block;
  height: 3px;
  border-radius: 999px;
  background: var(--skeleton-color);
  box-shadow: 0 0 12px rgba(255,255,255,.22);
}

.bone--head { width: 18px; left: calc(50% - 9px); top: 10%; transform: rotate(90deg); }
.bone--neck { width: 16px; left: calc(50% - 8px); top: 17%; transform: rotate(90deg); }
.bone--spine { width: 50px; left: calc(50% - 25px); top: 27%; transform: rotate(90deg); }
.bone--pelvis { width: 28px; left: calc(50% - 14px); top: 44%; }
.bone--arm-left-top { width: 34px; left: 18%; top: 26%; transform: rotate(154deg); }
.bone--arm-left-bottom { width: 30px; left: 9%; top: 36%; transform: rotate(128deg); }
.bone--arm-right-top { width: 34px; right: 18%; top: 26%; transform: rotate(26deg); }
.bone--arm-right-bottom { width: 30px; right: 9%; top: 36%; transform: rotate(52deg); }
.bone--leg-left-top { width: 38px; left: 23%; top: 52%; transform: rotate(118deg); }
.bone--leg-left-bottom { width: 36px; left: 18%; top: 69%; transform: rotate(98deg); }
.bone--leg-right-top { width: 38px; right: 23%; top: 52%; transform: rotate(62deg); }
.bone--leg-right-bottom { width: 36px; right: 18%; top: 69%; transform: rotate(82deg); }

#discordid-save,
#blackscreen-toggle {
  margin-inline: auto;
}

.admintable td:last-child .small-btn,
.admintable td:last-child {
  white-space: nowrap;
}


.kbmode__btn {
  transition: color .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.kbmode__btn.is-active {
  box-shadow: 0 0 0 1px rgba(184,183,255,.18), 0 12px 30px rgba(93, 59, 206, 0.22);
}

.kbmode__btn.is-fading-in::before {
  box-shadow: 0 0 0 0 rgba(184,183,255,.32), 0 0 28px rgba(141,104,255,.24);
}

.kbmode__btn.is-fading-out::after {
  box-shadow: 0 0 0 1px rgba(184,183,255,.26), 0 0 18px rgba(141,104,255,.16);
}

#adminPanel.is-staff-only .admin-only-card {
  display: none !important;
}
