/* Emberson — liquid glass site. Tokens shared with the client's default theme. */

:root {
  --bg: #07080c;
  --bg-2: #0c0e14;
  --ink: #f2f3f0;
  --muted: #a4aaa4;
  --faint: #6f756f;
  --cream: #e6e7d2;
  --accent: #66e888;
  --accent-2: #3ecf6a;
  --accent-ink: #06130a;
  --danger: #ff8d9a;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --w: 1120px;
  --gutter: 20px;
  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --pill: 999px;
  /* glass material */
  --lg-blur: 22px;
  --lg-fill: rgba(255, 255, 255, 0.055);
  --lg-fill-deep: rgba(10, 12, 18, 0.34);
  --lg-rim: rgba(255, 255, 255, 0.55);
  --lg-rim-soft: rgba(255, 255, 255, 0.08);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: rgba(102, 232, 136, 0.35); }

/* ------------------------------------------------------------------ scene */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
}

.atmosphere::before {
  content: "";
  position: absolute;
  inset: -48px;
  background: url("assets/bg-hero.jpg") center 32% / cover no-repeat;
  filter: blur(16px) saturate(0.8) brightness(0.46);
  transform: scale(1.03);
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 55% at 50% -8%, rgba(102, 232, 136, 0.2), transparent 70%),
    radial-gradient(40% 40% at 90% 80%, rgba(120, 170, 220, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(7, 8, 12, 0.18) 0%, rgba(7, 8, 12, 0.5) 42%, rgba(7, 8, 12, 0.8) 100%);
}

.atmosphere__glow,
.atmosphere__dust { display: none; }

.scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* With the shader scene the panels need no blur of their own. */
html.gl .atmosphere::before,
html.gl .atmosphere::after { display: none; }

html.gl .lg,
html.gl .glass-panel,
html.gl .top {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* ------------------------------------------------------------- material */

.lg,
.glass-panel {
  position: relative;
  isolation: isolate;
  border-radius: var(--lg-r, var(--r-lg));
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.015) 38%, rgba(255, 255, 255, 0.035) 68%, rgba(255, 255, 255, 0.09)),
    var(--lg-fill);
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(1.5);
  backdrop-filter: blur(var(--lg-blur)) saturate(1.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    inset 1px 0 0 rgba(255, 255, 255, 0.09),
    inset -1px 0 0 rgba(255, 255, 255, 0.05),
    0 30px 70px -40px rgba(0, 0, 0, 0.8);
}

.lg::before,
.glass-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--lg-rim) 0%, rgba(255, 255, 255, 0.14) 28%, rgba(255, 255, 255, 0.05) 55%, rgba(255, 255, 255, 0.3) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.lg::after,
.glass-panel::after,
.glass-shine {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 18% -12%, rgba(255, 255, 255, 0.17), transparent 55%),
    radial-gradient(60% 50% at 100% 110%, rgba(102, 232, 136, 0.06), transparent 60%);
}

.glass-shine { z-index: 0; }

.lg--deep,
.glass-panel--deep {
  --lg-fill: var(--lg-fill-deep);
}

.lg--soft {
  --lg-fill: rgba(255, 255, 255, 0.035);
  --lg-blur: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.lg--soft::before { --lg-rim: rgba(255, 255, 255, 0.3); }

.lg--pill { --lg-r: var(--pill); }

/* ---------------------------------------------------------------- text */

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
}

h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); letter-spacing: -0.04em; line-height: 1.0; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -0.035em; }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; }

p { margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 2.6rem;
  text-align: center;
}

.section-head > p:not(.eyebrow) {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.accent { color: var(--accent); font-style: normal; }
.mono { font-family: var(--mono); font-size: 0.92em; letter-spacing: 0.02em; }

/* ------------------------------------------------------------- buttons */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.45rem;
  border: 0;
  border-radius: var(--pill);
  font-weight: 700;
  font-size: 0.97rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), filter 0.3s var(--ease);
}

.btn:active { transform: translateY(1px) scale(0.99); }

.btn--solid {
  color: var(--accent-ink);
  background: linear-gradient(180deg, #8dffab, #55de7b 55%, #41cf69);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 0 rgba(0, 60, 20, 0.25),
    0 10px 30px -10px rgba(102, 232, 136, 0.7);
}

.btn--solid:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -2px 0 rgba(0, 60, 20, 0.25),
    0 16px 40px -12px rgba(102, 232, 136, 0.85);
}

.btn--glass {
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 10px 30px -18px rgba(0, 0, 0, 0.8);
}

.btn--glass:hover {
  transform: translateY(-2px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.06);
}

.btn--sm { min-height: 40px; padding: 0 1.05rem; font-size: 0.9rem; }

.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* -------------------------------------------------------------- header */

.top {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 50;
  transform: translateX(-50%);
  width: min(calc(100% - 2 * var(--gutter)), var(--w));
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 7px 9px 7px 14px;
  border-radius: var(--pill);
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03) 45%, rgba(255, 255, 255, 0.08)),
    rgba(10, 12, 18, 0.42);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  backdrop-filter: blur(24px) saturate(1.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 20px 50px -30px rgba(0, 0, 0, 0.9);
}

.top::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.1) 35%, rgba(255, 255, 255, 0.06) 65%, rgba(255, 255, 255, 0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.brand__mark {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(102, 232, 136, 0.35));
}

.top__nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-right: auto;
}

.top__nav a {
  padding: 0.5rem 0.85rem;
  border-radius: var(--pill);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}

.top__nav a:hover,
.top__nav a.is-current {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.top__account,
.top__logout,
.top__menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 1rem;
  border: 0;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.top__account:hover,
.top__logout:hover,
.top__menu:hover { background: rgba(255, 255, 255, 0.12); }

.top form { margin: 0; display: contents; }

.top__buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 1.15rem;
  border-radius: var(--pill);
  color: var(--accent-ink);
  background: linear-gradient(180deg, #8dffab, #55de7b 55%, #41cf69);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 8px 24px -10px rgba(102, 232, 136, 0.8);
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.top__buy:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 12px 30px -10px rgba(102, 232, 136, 0.9); }

.top__menu { display: none; }

#role-links:empty { display: none; }

@media (max-width: 860px) {
  .top { padding: 7px 8px 7px 14px; }
  .top__menu { display: inline-flex; }
  .top__nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.6rem;
    border-radius: var(--r-lg);
    background: rgba(10, 12, 18, 0.72);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    backdrop-filter: blur(24px) saturate(1.5);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 24px 60px -30px rgba(0, 0, 0, 0.9);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .top.is-open .top__nav { opacity: 1; transform: none; pointer-events: auto; }
  .top__nav a { padding: 0.7rem 0.9rem; }
  .top__account { padding: 0 0.8rem; }
  .brand span { font-size: 0.98rem; }
}

@media (max-width: 480px) {
  .top__buy { display: none; }
  .brand__mark { width: 24px; height: 24px; }
}

/* --------------------------------------------------------------- layout */

main { position: relative; }

.wrap {
  width: min(calc(100% - 2 * var(--gutter)), var(--w));
  margin: 0 auto;
}

section.block { padding: 6rem 0; }

@media (max-width: 760px) {
  section.block { padding: 4rem 0; }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ----------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding: 9.5rem 0 0;
  text-align: center;
}

.hero h1 { max-width: 12ch; margin: 0 auto; font-size: clamp(2.8rem, 7vw, 5.4rem); }

.hero__lead {
  max-width: 640px;
  margin: 1.5rem auto 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.6;
}

.hero .btn { margin-top: 1.9rem; }

/* the client's menu with its functions, cut off like a window that goes on below */

.hero__mock {
  position: relative;
  margin-top: 4.5rem;
  max-height: 720px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}

.hero__fade { display: none; }

.gui {
  --lg-r: 24px;
  --lg-fill: rgba(12, 15, 22, 0.5);
  height: 720px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px;
  padding: 12px;
  text-align: left;
  font-size: 13.5px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 60px 120px -50px rgba(0, 0, 0, 0.9);
}

.gui__side {
  display: flex;
  flex-direction: column;
  min-height: 680px;
  padding: 14px 10px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.gui__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 6px 14px;
  font-weight: 800;
  color: var(--cream);
}

.gui__brand .ico { width: 24px; height: 24px; color: var(--accent); filter: drop-shadow(0 0 8px rgba(102, 232, 136, 0.5)); }

.gui__label {
  margin: 4px 8px 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--faint);
}

.gui__cats { display: grid; gap: 2px; }

.gui__cats span {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: rgba(242, 243, 240, 0.86);
  font-weight: 600;
}

.gui__cats span b {
  margin-left: auto;
  padding: 1px 7px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.gui__cats span.is-on {
  color: var(--ink);
  background: linear-gradient(90deg, rgba(102, 232, 136, 0.28), rgba(102, 232, 136, 0.08));
  box-shadow: inset 0 0 0 1px rgba(102, 232, 136, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.gui__cats span.is-on .ico { color: var(--accent); }
.gui__cats span.is-on b { background: rgba(102, 232, 136, 0.2); color: var(--accent); }

.gui__cats span.is-on::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.gui__user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.gui__user b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(102, 232, 136, 0.9), rgba(62, 207, 106, 0.55));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  color: var(--accent-ink);
  font-weight: 800;
}

.gui__user div { display: grid; line-height: 1.15; min-width: 0; }
.gui__user strong { font-weight: 700; }
.gui__user span { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.gui__main { display: flex; flex-direction: column; min-width: 0; }

.gui__bar { display: flex; align-items: center; gap: 8px; }

.gui__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font-weight: 600;
}

.gui__pill--cat { color: var(--ink); }
.gui__pill--cat .ico { color: var(--accent); }

.gui__search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  width: 240px;
  margin-left: auto;
  padding: 0 10px 0 14px;
  border-radius: var(--pill);
  background: rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  color: var(--muted);
}

.gui__search b {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
}

.gui__hint { margin: 12px 4px 10px; color: var(--muted); font-size: 12.5px; }

.gui__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 10px;
  align-items: start;
}

/* one function with its settings, as the card unfolds in the client */

.mod {
  padding: 6px 6px 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mod__head {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  margin-bottom: 4px;
  padding: 0 8px 0 14px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: rgba(242, 243, 240, 0.92);
  font-weight: 700;
}

.mod__head i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.28); flex: none; }
.mod.is-on .mod__head { color: var(--ink); }
.mod.is-on .mod__head i { background: var(--accent); box-shadow: 0 0 8px var(--accent); }

.mod__head b {
  margin-left: auto;
  padding: 2px 9px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.st {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 8px 0 10px;
  color: rgba(242, 243, 240, 0.86);
  font-size: 12.5px;
  font-weight: 500;
}

.st span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.st--slider { flex-wrap: wrap; padding-bottom: 8px; }
.st--slider b { margin-left: auto; font-weight: 600; color: var(--ink); font-size: 12px; }

.st--slider i {
  position: relative;
  flex: 1 0 100%;
  height: 3px;
  margin-top: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) var(--v, 50%), rgba(255, 255, 255, 0.14) var(--v, 50%));
}

.st--slider i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: var(--v, 50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -50%);
}

.st--toggle i {
  flex: none;
  margin-left: auto;
  width: 34px;
  height: 18px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
}

.st--toggle i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.st--toggle.is-on i { background: var(--accent); box-shadow: 0 0 10px rgba(102, 232, 136, 0.45); }
.st--toggle.is-on i::after { left: 19px; }
.st--toggle.is-on span { color: var(--ink); }

.st--mode b,
.st--key b {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.st--mode b::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-2px) rotate(45deg);
}

.st--color i {
  flex: none;
  margin-left: auto;
  width: 30px;
  height: 18px;
  border-radius: 6px;
  background: var(--c, #66e888);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 10px color-mix(in srgb, var(--c, #66e888) 50%, transparent);
}

/* icons drawn from the client's own PNG masks */

.ico {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
}

.ico--utility { --ico: url("assets/icons/utility.png"); }
.ico--server { --ico: url("assets/icons/server.png"); }
.ico--visual { --ico: url("assets/icons/visual.png"); }
.ico--hud { --ico: url("assets/icons/hud.png"); }
.ico--cfg { --ico: url("assets/icons/cfg.png"); }
.ico--search { --ico: url("assets/icons/search.png"); }
.ico--logo { --ico: url("assets/icons/logo.png"); }
.ico--friends { --ico: url("assets/icons/friends.svg"); }
.ico--themes { --ico: url("assets/icons/themes.svg"); }
.ico--waypoints { --ico: url("assets/icons/waypoints.svg"); }
.ico--cosmetics { --ico: url("assets/icons/cosmetics.svg"); }

@media (max-width: 1100px) {
  .gui__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .hero__mock { max-height: 620px; }
  .gui { grid-template-columns: 1fr; }
  .gui__side { min-height: 0; flex-direction: row; align-items: center; gap: 6px; padding: 8px; }
  .gui__brand { padding: 0 6px 0 0; }
  .gui__brand span, .gui__label, .gui__user { display: none; }
  .gui__cats { display: flex; gap: 2px; overflow: hidden; flex: 1; }
  .gui__cats span { padding: 7px 9px; white-space: nowrap; }
  .gui__cats span b { display: none; }
  .gui__cats span.is-on::before { display: none; }
  .gui__search { width: auto; flex: 1; }
}

@media (max-width: 560px) {
  .gui { padding: 8px; font-size: 12.5px; }
  .gui__cards { grid-template-columns: 1fr; }
  .gui__cats span:nth-child(n+5) { display: none; }
  .gui__pill:nth-child(3), .gui__hint, .gui__search b { display: none; }
}

/* ----------------------------------------------------------------- strip */

.strip {
  padding: 5rem 0 1rem;
  text-align: center;
}

.strip__title {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-shadow: 0 0 40px rgba(102, 232, 136, 0.35);
}

.strip__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem 0;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 600;
}

.strip__list li { padding: 0.2rem 0.9rem; position: relative; }
.strip__list li + li::before { content: "·"; position: absolute; left: -0.25rem; color: var(--faint); }

/* --------------------------------------------------------------- tiles */

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.tile-f {
  --lg-r: var(--r-xl);
  display: flex;
  flex-direction: column;
  padding: 10px 10px 0;
  transition: transform 0.5s var(--ease);
}

.tile-f:hover { transform: translateY(-3px); }

.tile-f__media {
  position: relative;
  height: 300px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.tile-f__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }

.tile-f > p {
  padding: 1.1rem 0.9rem 1.25rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.tile-f > p strong { color: var(--ink); font-weight: 800; }

/* HUD widgets scattered over the tile */

.tile-f__media--hud { background: radial-gradient(80% 60% at 50% 100%, rgba(102, 232, 136, 0.12), transparent 70%), rgba(0, 0, 0, 0.22); }

.w {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 10px;
  background: rgba(16, 20, 28, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 10px 30px -14px rgba(0, 0, 0, 0.9);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.w b { font-weight: 500; color: var(--muted); }
.w > span { display: grid; line-height: 1.2; }
.w em { font-style: normal; color: var(--faint); }
.w--wm { left: 14px; top: 14px; letter-spacing: 0.02em; }
.w--wm em { margin: 0 2px; }
.w--target { right: 14px; top: 14px; }
.w--coords { left: 14px; top: 56px; font-family: var(--mono); font-weight: 500; }
.w--bind { right: 14px; }
.w--bind-1 { top: 66px; }
.w--bind-2 { top: 104px; }
.w--bind b { padding: 1px 7px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); font-family: var(--mono); font-size: 11px; color: var(--ink); }
.w--potion { left: 14px; }
.w--potion-1 { top: 98px; }
.w--potion-2 { top: 136px; }
.w--potion b { margin-left: 8px; color: var(--accent); }
.w--music { right: 14px; top: 142px; }
.w--music .cover { width: 30px; height: 30px; border-radius: 8px; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), transparent 40%), linear-gradient(160deg, #6a4bff, #1a9bff 55%, #2bd4a8); }
.w--timer { top: 180px; flex-direction: column; gap: 3px; padding: 8px 10px; width: 72px; text-align: center; }
.w--timer-1 { left: 14px; }
.w--timer-2 { left: 96px; }
.w--timer-3 { left: 178px; }
.w--timer i { width: 18px; height: 18px; border-radius: 5px; background: linear-gradient(160deg, #ffb56b, #e0771d); }
.w--timer i.is-blue { background: linear-gradient(160deg, #7cc8ff, #2f7fd6); }
.w--timer i.is-green { background: linear-gradient(160deg, #9df0b4, #3ecf6a); }
.w--timer b { color: var(--accent); font-weight: 700; }
.w--hearts { right: 118px; top: 200px; color: #ff6c7d; }
.w--armor { right: 14px; top: 200px; }
.w--armor b { margin-left: 8px; color: var(--accent); }
.w--lyrics { left: 14px; bottom: 14px; font-size: 13px; }
.w--lyrics em { background: linear-gradient(90deg, #66e888, #5baeff); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.w--toast { right: 14px; bottom: 14px; }
.w--toast .toast-ico { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(160deg, #f6d365, #d9a21b); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6); }

.face {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  flex: none;
  background:
    linear-gradient(#5a3a1e, #5a3a1e) 0 0 / 100% 24% no-repeat,
    linear-gradient(90deg, transparent 22%, #f2f3f0 22% 36%, #3b2a86 36% 44%, transparent 44% 56%, #f2f3f0 56% 70%, #3b2a86 70% 78%, transparent 78%) 0 48% / 100% 18% no-repeat,
    #c58c5a;
}

/* configs on the site */

.tile-f__media--cfg { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 18px; }

.cfg {
  width: 250px;
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(102, 232, 136, 0.24), transparent 70%),
    rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  font-size: 12.5px;
}

.cfg--2 { transform: translateY(16px) rotate(2deg); background: radial-gradient(120% 90% at 50% -10%, rgba(140, 100, 255, 0.24), transparent 70%), rgba(255, 255, 255, 0.05); }
.cfg__head { display: flex; align-items: center; justify-content: space-between; }
.cfg__avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(150deg, #8af5a8, #2e9b5e); color: var(--accent-ink); font-weight: 800; }
.cfg__avatar.is-violet { background: linear-gradient(150deg, #c9a8ff, #6a4bff); }
.cfg__flag { padding: 3px 9px; border-radius: var(--pill); background: rgba(102, 232, 136, 0.14); color: var(--accent); font-size: 11px; font-weight: 800; }
.cfg__flag.is-mine { background: rgba(255, 255, 255, 0.08); color: var(--ink); }
.cfg strong { font-size: 14px; color: var(--cream); }
.cfg small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.cfg em { font-style: normal; color: var(--faint); font-size: 11px; }
.cfg__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.07); color: var(--muted); }
.cfg__row b { font-family: var(--mono); font-size: 11px; color: var(--ink); }
.sw { position: relative; width: 30px; height: 16px; border-radius: var(--pill); background: rgba(255, 255, 255, 0.12); }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.sw.is-on { background: var(--accent); }
.sw.is-on::after { left: 17px; }

/* a cloud of elements */

.tile-f__media--els { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 8px; padding: 22px; }

.el {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(242, 243, 240, 0.86);
}

.el i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.el--on { color: var(--accent); box-shadow: inset 0 0 0 1px rgba(102, 232, 136, 0.35); }
.el--warn { color: #ffd27a; box-shadow: inset 0 0 0 1px rgba(255, 210, 122, 0.3); }

@media (max-width: 860px) {
  .tiles { grid-template-columns: 1fr; }
  .tile-f__media { height: 260px; }
  .tile-f__media--cfg { padding: 12px; }
  .cfg { width: 46%; }
}

/* -------------------------------------------------------------- pricing */

.versions { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.3rem; }

.version {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.version b { padding: 0.1rem 0.5rem; border-radius: 6px; background: rgba(255, 255, 255, 0.08); font-family: var(--mono); font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); }
.version.is-on { color: var(--accent); box-shadow: inset 0 0 0 1px rgba(102, 232, 136, 0.35); }
.version.is-on b { background: rgba(102, 232, 136, 0.16); color: var(--accent); }

.prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.price {
  --lg-r: var(--r-xl);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 1.5rem 1.4rem;
  transition: transform 0.5s var(--ease);
}

.price:hover { transform: translateY(-4px); }

.price__top { display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; font-weight: 700; color: var(--faint); letter-spacing: 0.04em; text-transform: uppercase; }
.price__top b { padding: 0.25rem 0.7rem; border-radius: var(--pill); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); color: var(--ink); font-size: 0.72rem; letter-spacing: 0.08em; }

.price__sum { display: flex; align-items: baseline; gap: 0.35rem; font-size: 3rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.price__sum small { font-size: 1.4rem; color: var(--muted); font-weight: 700; letter-spacing: -0.02em; }
.price__sum em { margin-left: 0.2rem; font-style: normal; font-size: 0.95rem; font-weight: 600; letter-spacing: 0; color: var(--faint); }

.price__meta { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; font-size: 0.8rem; color: var(--faint); }
.price__meta span::before { content: "— "; }
.price__meta b { padding: 0.18rem 0.55rem; border-radius: 6px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); font-family: var(--mono); font-size: 0.74rem; font-weight: 500; color: var(--ink); }

.price__list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem 0.6rem; font-size: 0.86rem; color: var(--muted); }
.price__list li { display: flex; align-items: center; gap: 0.45rem; }
.price__list li::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  border-radius: 50%;
  background: rgba(102, 232, 136, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2l2.3 2.3 4.7-4.9' fill='none' stroke='%2366e888' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.price__buy { margin-top: auto; width: 100%; }
.price__note { text-align: center; font-size: 0.76rem; color: var(--faint); }

.price--hot {
  --lg-fill: rgba(102, 232, 136, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 0 0 1px rgba(102, 232, 136, 0.28),
    0 0 0 6px rgba(102, 232, 136, 0.05),
    0 40px 80px -40px rgba(102, 232, 136, 0.35);
}

.price--hot::before { --lg-rim: rgba(160, 255, 190, 0.8); }

.prices__more { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }

.more {
  --lg-r: 16px;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  transition: transform 0.4s var(--ease);
}

.more:hover { transform: translateY(-2px); color: var(--ink); }
.more span { font-weight: 700; color: var(--ink); }
.more b { font-weight: 800; color: var(--accent); }
.more em { font-style: normal; color: var(--faint); font-size: 0.82rem; }
.more--text { margin-left: auto; padding: 0; font-size: 0.86rem; color: var(--faint); }

@media (max-width: 960px) {
  .prices { grid-template-columns: 1fr; }
  .price { flex-direction: column; }
  .more--text { margin-left: 0; }
}

/* ------------------------------------------------------------------ faq */

.faq-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1rem;
  align-items: start;
}

.help { display: grid; gap: 0.8rem; }

.help__card {
  --lg-r: 20px;
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem 1.2rem 1.1rem;
  transition: transform 0.4s var(--ease);
}

.help__card:hover { transform: translateY(-3px); }
.help__card svg { width: 22px; height: 22px; color: var(--accent); margin-bottom: 0.2rem; }
.help__card strong { font-size: 1rem; }
.help__card span { color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
.help__card b { margin-top: 0.3rem; font-size: 0.86rem; font-weight: 700; color: var(--cream); }

.faq { display: grid; gap: 0.7rem; align-items: start; }

.faq details {
  --lg-r: 18px;
  padding: 0 1.15rem;
}

.faq summary {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 58px;
  padding: 0.8rem 0;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.98rem;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary small { flex: none; font-family: var(--mono); font-size: 0.74rem; color: var(--faint); }

.faq summary::after {
  content: "";
  flex: none;
  margin-left: auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M13 8v10M8 13h10' stroke='%23e6e7d2' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 26px no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 0.4s var(--ease), background-color 0.3s var(--ease);
}

.faq details[open] summary::after { transform: rotate(45deg); background-color: rgba(102, 232, 136, 0.18); }

.faq details p { padding: 0 0 1.1rem 2.4rem; color: var(--muted); font-size: 0.95rem; }
.faq details p a { color: var(--cream); border-bottom: 1px solid rgba(230, 231, 210, 0.3); }
.faq code { font-family: var(--mono); font-size: 0.85em; padding: 0.1em 0.4em; border-radius: 6px; background: rgba(255, 255, 255, 0.08); }

@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; }
  .help { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------- footer */

.foot {
  padding: 3.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.foot__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
}

.foot__brand p { margin-top: 0.8rem; max-width: 30ch; color: var(--muted); font-size: 0.92rem; }
.foot__social { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
  transition: background 0.3s var(--ease);
}

.chip:hover { background: rgba(102, 232, 136, 0.14); }
.chip svg { width: 16px; height: 16px; }

.foot h4 {
  margin-bottom: 0.9rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.foot li a { color: var(--muted); font-size: 0.94rem; transition: color 0.3s var(--ease); }
.foot li a:hover { color: var(--ink); }

.foot__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--faint);
  font-size: 0.82rem;
}

@media (max-width: 860px) {
  .foot__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .foot__grid { grid-template-columns: 1fr; gap: 1.6rem; }
}

/* ------------------------------------------------------------ cabinet */
/* The PHP pages (login, register, account, configs, admin) keep their markup;
   these rules give it the same material. */

.auth-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 7rem var(--gutter) 3rem;
}

.auth-card,
.account-card {
  --lg-r: var(--r-xl);
  position: relative;
  width: min(100%, 440px);
  padding: 1.7rem 1.5rem 1.5rem;
  text-align: left;
}

.account-wrap {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 7rem var(--gutter) 3rem;
  display: grid;
  gap: 1rem;
}

.account-wrap .account-card { width: 100%; }

.auth-card h1,
.account-card h1 {
  position: relative; z-index: 1;
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
  letter-spacing: -0.035em;
}

.auth-card > p,
.account-card > p {
  position: relative; z-index: 1;
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-form,
.account-list,
.account-plans { position: relative; z-index: 1; }

.field { display: grid; gap: 0.35rem; margin-bottom: 0.85rem; }

.field span { font-size: 0.8rem; font-weight: 700; color: var(--cream); }

.field input,
.field select,
.field textarea,
.config-code {
  width: 100%;
  padding: 0.78rem 0.95rem;
  border-radius: 14px;
  border: 0;
  background: rgba(0, 0, 0, 0.26);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 1px 2px rgba(0, 0, 0, 0.3);
  color: var(--ink);
  font: inherit;
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.config-code:focus {
  outline: none;
  background: rgba(0, 0, 0, 0.32);
  box-shadow: inset 0 0 0 1px rgba(102, 232, 136, 0.6), 0 0 0 4px rgba(102, 232, 136, 0.12);
}

.field input::placeholder { color: var(--faint); }

.form-error, .form-ok {
  position: relative; z-index: 1;
  margin: 0 0 0.9rem;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-error { color: var(--danger); background: rgba(255, 108, 125, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 108, 125, 0.3); }
.form-ok { color: var(--accent); background: rgba(102, 232, 136, 0.1); box-shadow: inset 0 0 0 1px rgba(102, 232, 136, 0.3); }

.auth-form .btn,
.account-plans .btn { width: 100%; }

.auth-switch {
  position: relative; z-index: 1;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-switch a { color: var(--cream); border-bottom: 1px solid rgba(230, 231, 210, 0.3); }

.account-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid; gap: 0.6rem;
}

.account-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.94rem;
}

.account-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.account-list span { color: var(--muted); }
.account-list b { text-align: right; overflow-wrap: anywhere; }

.account-plans { display: grid; gap: 0.45rem; }

.account-plans button,
.account-plans a {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  border: 0;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: var(--ink);
  font: 600 0.95rem var(--font);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.account-plans button.is-picked,
.account-plans button:hover,
.account-plans a.is-picked,
.account-plans a:hover {
  background: rgba(102, 232, 136, 0.1);
  box-shadow: inset 0 0 0 1px rgba(102, 232, 136, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.account-plans button b,
.account-plans a b { font-weight: 800; }

.confirm-actions { display: flex; gap: 0.6rem; margin-top: 1.1rem; }
.confirm-actions .btn { flex: 1; text-align: center; }

.balance { position: relative; z-index: 1; margin: 0 0 1rem; }
.balance span { color: var(--muted); font-size: 0.8rem; font-weight: 700; }
.balance b {
  display: block;
  margin-top: 0.15rem;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.topup-presets { grid-template-columns: 1fr 1fr; margin-bottom: 0.85rem; }

.field__note { margin-left: 0.4rem; color: var(--faint); font-size: 0.75rem; font-style: normal; font-weight: 600; }

/* configs shop, dashboard and admin (markup lives on the server) */

.account-wrap--shop { width: min(100%, 1040px); }
.account-wrap--board { width: min(100%, 1060px); }
.account-wrap--admin { width: min(100%, 1200px); }

.config-shop { display: grid; gap: 0.6rem; margin-top: 1rem; }
.config-shop .btn { width: 100%; text-align: center; }

.config-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.9rem;
  margin-top: 1.1rem;
}

.config-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem 1rem 1.05rem;
  border-radius: 18px;
  background:
    radial-gradient(120% 90% at 50% -10%, hsla(var(--cfg-hue, 140), 80%, 45%, 0.26), transparent 70%),
    rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.config-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2); }

.config-card.is-owned {
  box-shadow: inset 0 0 0 1px rgba(102, 232, 136, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(102, 232, 136, 0.22), transparent 70%),
    rgba(255, 255, 255, 0.05);
}

.config-card.is-mine { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }

.config-card__head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }

.config-card__avatar {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.9rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  background: linear-gradient(150deg, hsla(var(--cfg-hue, 140), 75%, 55%, 0.85), hsla(calc(var(--cfg-hue, 140) + 45), 70%, 40%, 0.75));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.config-card__flag {
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.config-card__flag.is-owned { color: var(--accent-ink); box-shadow: none; background: linear-gradient(160deg, #8af5a8, var(--accent-2)); }
.config-card__flag.is-free { color: var(--accent); box-shadow: inset 0 0 0 1px rgba(102, 232, 136, 0.35); background: rgba(102, 232, 136, 0.12); }

.config-card__title { margin: 0.15rem 0 0; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; color: var(--cream); line-height: 1.25; }
.account-wrap--shop .config-card__title { font-size: 1.15rem; }
.config-card__meta { margin: 0; color: var(--muted); font-size: 0.82rem; }
.config-card__btn { display: block; width: 100%; margin-top: auto; text-align: center; cursor: pointer; }
.config-card form { margin: 0; }
.config-card__code { margin-top: 0.2rem; }
.config-card__code[open] .config-card__btn { margin-bottom: 0.6rem; }
.config-card__code .config-code { min-height: 5rem; margin-bottom: 0.6rem; }
.config-card__code > summary { list-style: none; }
.config-card__code > summary::-webkit-details-marker { display: none; }
.config-card__hint { margin: 1rem 0 0; color: var(--faint); font-size: 0.8rem; }

@media (max-width: 520px) { .config-cards { grid-template-columns: 1fr; } }

.config-item { display: grid; gap: 0.6rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.config-item:first-child { border-top: 0; padding-top: 0; }
.config-item__head { display: flex; flex-direction: column; gap: 0.2rem; margin: 0 0 0.4rem; position: relative; z-index: 1; }
.config-item__head b { color: var(--cream); }
.config-item__head span { color: var(--muted); font-size: 0.85rem; }

.config-code {
  position: relative;
  z-index: 1;
  min-height: 6rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.5;
  resize: vertical;
}

.panel-board { display: grid; gap: 1rem; align-items: start; }
.panel-board__col { display: grid; gap: 1rem; align-content: start; }

@media (min-width: 1000px) {
  .panel-board { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .account-wrap--admin .panel-board { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
}

.panel-nav { display: flex; flex-wrap: wrap; gap: 0.4rem; position: relative; z-index: 1; }

.panel-nav a {
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.panel-nav a:hover { color: var(--cream); background: rgba(102, 232, 136, 0.08); box-shadow: inset 0 0 0 1px rgba(102, 232, 136, 0.4); }
.panel-nav a.is-active { color: var(--accent-ink); box-shadow: none; background: linear-gradient(160deg, #8af5a8, var(--accent-2)); }

.stat-grid {
  position: relative; z-index: 1;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  margin: 0 0 1.1rem;
}

.stat { padding: 0.7rem 0.85rem 0.75rem; border-radius: 14px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.stat span { display: block; color: var(--muted); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.stat b { display: block; margin-top: 0.25rem; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.15; overflow-wrap: anywhere; }
.stat b.is-accent { color: var(--accent); }
.stat b.is-text { font-size: 1.05rem; letter-spacing: -0.02em; }

.tag {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tag--accent { color: var(--accent-ink); box-shadow: none; background: linear-gradient(160deg, #8af5a8, var(--accent-2)); }
.tag--soft { color: var(--accent); box-shadow: inset 0 0 0 1px rgba(102, 232, 136, 0.35); background: rgba(102, 232, 136, 0.12); }
.tag--muted { color: var(--faint); }

.scroll-box {
  position: relative; z-index: 1;
  max-height: 24rem;
  overflow-y: auto;
  padding-right: 0.3rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.scroll-box::-webkit-scrollbar { width: 6px; }
.scroll-box::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); border-radius: 999px; }

.admin-users { position: relative; z-index: 1; display: grid; gap: 0.55rem; }

.admin-user {
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.admin-user[open] { box-shadow: inset 0 0 0 1px rgba(102, 232, 136, 0.32); background: rgba(0, 0, 0, 0.26); }

.admin-user > summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.15rem 0.9rem;
  align-items: center;
  padding: 0.75rem 2.1rem 0.75rem 0.9rem;
  border-radius: 16px;
  cursor: pointer;
  list-style: none;
}

.admin-user > summary::-webkit-details-marker { display: none; }
.admin-user > summary:hover { background: rgba(255, 255, 255, 0.03); }
.admin-user[open] > summary { border-radius: 16px 16px 0 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }

.admin-user > summary::after {
  content: "";
  position: absolute;
  right: 0.9rem;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease);
}

.admin-user[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }

.admin-user__name { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; font-weight: 700; color: var(--cream); overflow-wrap: anywhere; }
.admin-user__sub { color: var(--muted); font-size: 0.82rem; overflow-wrap: anywhere; }
.admin-user__side { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-end; }
.admin-user__body { padding: 0.85rem 0.9rem 0.95rem; display: grid; gap: 0.85rem; }
.admin-group { display: grid; gap: 0.5rem; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.admin-actions .btn { flex: 1 1 10rem; }

.mini-list { position: relative; z-index: 1; display: grid; gap: 0.5rem; }
.mini-item { padding: 0.7rem 0.85rem; border-radius: 14px; background: rgba(0, 0, 0, 0.18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); display: grid; gap: 0.35rem; }
.mini-item__head { display: flex; justify-content: space-between; gap: 0.6rem; align-items: center; font-weight: 700; color: var(--cream); }
.mini-item__meta { color: var(--muted); font-size: 0.82rem; }
.mini-item__code { font-family: var(--mono); font-size: 0.82rem; overflow-wrap: anywhere; }
.mini-item__actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.bar-list { position: relative; z-index: 1; display: grid; gap: 0.55rem; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.2rem 0.8rem; align-items: center; font-size: 0.9rem; }
.bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w, 0%); background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 3px; }
