: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 {
  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); }
/* 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: hidden;
  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;
}
.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;
}
/* 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: flex;
  align-items: flex-end;
  gap: 104px;
  margin-top: 44px;
  flex-wrap: wrap;
  justify-content: center;
}
.stat {
  min-width: 150px;
}
.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);
}
/* 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: hidden;
  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; }
/* 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;
}
.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); }
.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;
}
.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;
}
.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;
}
/* 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);
}
/* 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);
}
/* 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; }
  .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;
  }
  .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__ui {
    width: 50px;
    height: 28px;
  }
  .switch__thumb {
    width: 20px;
    height: 20px;
  }
  .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;
  }
  .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) {
  .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;
}

/* 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{ 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;
}
