:root {
  color-scheme: dark;
  --bg: #070d14;
  --panel: #101823;
  --panel-2: #172232;
  --text: #eef4ff;
  --muted: #9fb0c8;
  --line: #223148;
  --accent: #45dbc2;
  --accent-2: #69a8ff;
  --warn: #ffc45f;
  --danger: #ff6b7a;
  --glass: rgba(16, 24, 35, 0.74);
  --glow: 0 26px 90px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }

[hidden] {
  display: none !important;
}

.skip-links {
  position: relative;
  z-index: 12000;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  padding: 0;
  margin: -1px;
}

.skip-link:focus,
.skip-link:focus-visible {
  position: fixed;
  left: 16px;
  top: 12px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 12px 18px;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  background: var(--panel);
  color: var(--text);
  border: 2px solid rgba(84, 215, 197, 0.88);
  border-radius: 10px;
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.4);
  text-decoration: none;
  font-weight: 650;
  font-size: 14px;
  z-index: 12001;
}

.skip-link:focus-visible {
  outline: 3px solid rgba(120, 240, 255, 0.95);
  outline-offset: 3px;
}

.skip-links .skip-link + .skip-link:focus,
.skip-links .skip-link + .skip-link:focus-visible {
  top: 58px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(115deg, rgba(69, 219, 194, 0.08), transparent 26rem),
    linear-gradient(180deg, #071019, #0a1019 45%, #070d14);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(120deg, rgba(69, 219, 194, 0.045), transparent 28%, rgba(105, 168, 255, 0.05) 68%, transparent);
  background-size: 42px 42px, 42px 42px, auto;
  opacity: 0.78;
  animation: gridDrift 18s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(7, 13, 20, 0.45));
}

button,
a,
input,
select {
  transition: border-color 160ms ease, background 160ms ease, opacity 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

button,
a,
.server,
.server-action,
.module-configure,
.account-button,
.dropdown-item {
  cursor: pointer;
}

button:hover,
a:hover {
  transform: translateY(-1px);
}

input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(64, 196, 170, 0.6);
  outline-offset: 2px;
}

.shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  border-right: 1px solid var(--line);
  padding: 24px 18px;
  background:
    linear-gradient(90deg, rgba(69, 219, 194, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(12, 20, 31, 0.92), rgba(6, 10, 16, 0.88)),
    var(--glass);
  backdrop-filter: blur(16px);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.02);
  position: relative;
}

.sidebar::after {
  content: "";
  position: absolute;
  inset: 18px 0 18px auto;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(69, 219, 194, 0.48), rgba(105, 168, 255, 0.28), transparent);
  opacity: 0.72;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 34px;
  padding: 8px;
  border: 1px solid rgba(151, 191, 255, 0.09);
  border-radius: 8px;
  background: rgba(8, 14, 22, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(64, 196, 170, 0.45);
  background: linear-gradient(135deg, rgba(64, 196, 170, 0.22), rgba(106, 167, 255, 0.14));
  border-radius: 8px;
  font-weight: 800;
  color: #eafffb;
  box-shadow: 0 12px 30px rgba(69, 219, 194, 0.1);
}

.brand .mark.brand-mark {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  font-weight: unset;
  color: unset;
  background:
    radial-gradient(circle at 32% 28%, rgba(109, 255, 232, 0.14), transparent 58%),
    linear-gradient(155deg, rgba(10, 22, 30, 0.96), rgba(5, 10, 18, 0.98));
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(69, 219, 194, 0.34),
    0 12px 32px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.brand .mark.brand-mark svg {
  display: block;
}

.brand-lockup span,
.topbar p,
.user,
.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

.brand-lockup strong,
.brand-lockup span {
  display: block;
}

.brand-lockup strong {
  line-height: 1.08;
  font-size: 1.08rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  background: linear-gradient(110deg, #f6fffd 0%, #9cf0e2 42%, #9ec0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-lockup span {
  margin-top: 3px;
  font-size: 12px;
}

#configNav {
  display: grid;
  gap: 8px;
}

.nav,
.button,
.icon-button,
.server-action,
.mini {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 8px;
  min-height: 40px;
  padding: 0 14px;
  font: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav:disabled,
.button:disabled,
.icon-button:disabled,
.server-action:disabled,
.mini:disabled,
.notice-close:disabled {
  cursor: wait;
  opacity: 0.62;
}

.nav {
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  color: #cfdbec;
  transition:
    transform 200ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.nav::before {
  content: "";
  position: absolute;
  inset: 8px auto 8px 7px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: 0;
  transform: scaleY(0.45);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(69, 219, 194, 0.12), transparent 72%);
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav.active {
  border-color: rgba(64, 196, 170, 0.55);
  background: linear-gradient(135deg, rgba(64, 196, 170, 0.16), rgba(106, 167, 255, 0.08));
  box-shadow: inset 0 0 0 1px rgba(64, 196, 170, 0.08);
  color: #f2fbff;
  padding-left: 18px;
}

.nav.active::before,
.nav.active::after,
.nav:hover::after {
  opacity: 1;
  transform: translateX(0) scaleY(1);
}

.nav:hover {
  color: #f4fbff;
  border-color: rgba(105, 168, 255, 0.34);
  background: rgba(19, 30, 44, 0.86);
}

.nav:hover,
.mini:hover,
.server:hover {
  box-shadow: 0 12px 30px rgba(69, 219, 194, 0.08);
}

.nav.locked {
  color: #708298;
}

.content {
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

h1 {
  margin: 0 0 6px;
  font-size: 32px;
  letter-spacing: 0;
}

p {
  margin: 0;
}

.content,
.details,
.panel,
.server,
.settings-group,
.settings-block,
.module-card-pro,
.discord-preview,
.command-dialog {
  min-width: 0;
}

.details,
.panel,
.server,
.settings-group,
.settings-block,
.module-card-pro,
.discord-preview {
  overflow-wrap: anywhere;
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.topbar-last-saved {
  max-width: min(240px, 38vw);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
  font-weight: 600;
}

.language-control {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(106, 167, 255, 0.26);
  border-radius: 11px;
  background:
    linear-gradient(155deg, rgba(23, 34, 50, 0.94), rgba(7, 11, 18, 0.92));
  color: var(--muted);
  padding: 4px 6px 4px 14px;
  font-size: 12px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 10px 28px rgba(0, 0, 0, 0.22);
}

.language-label {
  font-weight: 800;
  color: var(--text);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.language-switcher {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.lang-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 11px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    transform 120ms ease;
}

.lang-chip .lang-flag {
  font-size: 17px;
  line-height: 1;
}

.lang-chip:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.lang-chip.active {
  color: #061016;
  background: linear-gradient(125deg, rgba(58, 223, 196, 0.98), rgba(106, 167, 255, 0.9));
  box-shadow:
    0 6px 18px rgba(64, 196, 170, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.lang-chip:active {
  transform: scale(0.97);
}

body.dashboard-premium-ui.server-selected .content {
  position: relative;
}

body.dashboard-premium-ui.server-selected .content::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(960px 340px at 4% -8%, rgba(240, 184, 90, 0.14), transparent 58%),
    radial-gradient(720px 300px at 102% 6%, rgba(64, 196, 170, 0.09), transparent 52%);
  opacity: 1;
}

body.dashboard-premium-ui.server-selected .details {
  border-color: rgba(240, 184, 90, 0.34);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(240, 184, 90, 0.14),
    0 0 52px rgba(240, 184, 90, 0.07);
}

body.dashboard-premium-ui.server-selected .overview-hero,
body.dashboard-premium-ui.server-selected .wizard-hero {
  border-color: rgba(240, 184, 90, 0.42);
  background:
    linear-gradient(135deg, rgba(240, 184, 90, 0.18), rgba(64, 196, 170, 0.12)),
    rgba(13, 17, 23, 0.64);
}

body.dashboard-premium-ui.server-selected .overview-hero.premium {
  border-color: rgba(240, 184, 90, 0.52);
}

body.dashboard-premium-ui.server-selected .topbar h1 {
  background: linear-gradient(94deg, #ffffff 5%, #ffe8bc 48%, #a8e9ff 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.dashboard-premium-ui.server-selected .language-control {
  border-color: rgba(240, 184, 90, 0.32);
  box-shadow:
    inset 0 0 0 1px rgba(240, 184, 90, 0.1),
    0 12px 28px rgba(0, 0, 0, 0.22);
}

body.dashboard-premium-ui.server-selected .nav.active {
  border-color: rgba(240, 184, 90, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(240, 184, 90, 0.12),
    0 0 22px rgba(240, 184, 90, 0.08);
}

body.dashboard-premium-ui.server-selected .lang-chip.active {
  background: linear-gradient(125deg, rgba(255, 210, 120, 0.98), rgba(64, 196, 170, 0.88), rgba(106, 167, 255, 0.88));
  box-shadow:
    0 6px 20px rgba(240, 184, 90, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.button {
  background: linear-gradient(135deg, rgba(64, 196, 170, 0.9), rgba(106, 167, 255, 0.82));
  color: #071017;
  border: none;
  font-weight: 700;
}

.button.disabled {
  pointer-events: auto;
  opacity: 0.58;
  cursor: not-allowed;
}

.status,
.notice,
.user {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(21, 27, 35, 0.78);
  border-radius: 8px;
}

@keyframes welcome-banner-in {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes welcome-line-in {
  from {
    opacity: 0;
    transform: translateY(10px);
    letter-spacing: 0.04em;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 0.01em;
  }
}

@keyframes welcome-line-replay {
  from {
    opacity: 0;
    transform: translateY(10px);
    letter-spacing: 0.04em;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 0.01em;
  }
}

@keyframes welcome-sheen {
  from {
    transform: translateX(-55%) skewX(-14deg);
  }
  to {
    transform: translateX(185%) skewX(-14deg);
  }
}

.welcome-banner {
  position: relative;
  overflow: hidden;
  border-left: 3px solid rgba(109, 255, 232, 0.55);
  background: linear-gradient(95deg, rgba(109, 255, 232, 0.1), rgba(21, 27, 35, 0.78) 48%);
  animation: welcome-banner-in 0.58s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.welcome-banner::after {
  content: "";
  position: absolute;
  inset: -30% -50%;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.09) 50%,
    transparent 62%
  );
  opacity: 0.85;
  animation: welcome-sheen 1.05s cubic-bezier(0.4, 0, 0.2, 1) 0.22s 1 forwards;
  pointer-events: none;
}

.welcome-banner .welcome-line {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--text);
  animation: welcome-line-in 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.welcome-banner .welcome-line.welcome-line--replay {
  animation: welcome-line-replay 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

@media (prefers-reduced-motion: reduce) {
  .welcome-banner {
    animation: none;
  }

  .welcome-banner::after {
    display: none;
  }

  .welcome-banner .welcome-line {
    animation: none;
  }

  .welcome-banner .welcome-line.welcome-line--replay {
    animation: none;
  }
}

.server-selected .status,
.server-selected .user:empty {
  display: none;
}

.maintenance-banner {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 176, 72, 0.45);
  background: linear-gradient(95deg, rgba(255, 176, 72, 0.12), rgba(21, 27, 35, 0.88) 55%);
  color: #ffe8cc;
}

.maintenance-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.maintenance-banner__text {
  flex: 1 1 240px;
  min-width: 0;
  line-height: 1.45;
  font-weight: 600;
}

.maintenance-banner__link {
  flex: 0 0 auto;
}

.discord-2fa-hint {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(94, 163, 255, 0.38);
  background: linear-gradient(95deg, rgba(84, 215, 197, 0.12), rgba(21, 27, 35, 0.9) 55%);
  color: rgba(232, 244, 255, 0.94);
}

.discord-2fa-hint__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.discord-2fa-hint__copy {
  flex: 1 1 260px;
  min-width: 0;
  line-height: 1.45;
  font-size: 0.92rem;
}

.discord-2fa-hint__copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.98rem;
}

.discord-2fa-hint__actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.onboarding-checklist {
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid rgba(109, 255, 232, 0.22);
  background: linear-gradient(125deg, rgba(109, 255, 232, 0.07), rgba(21, 27, 35, 0.92) 55%);
}

.onboarding-checklist--all-done {
  border-color: rgba(64, 196, 170, 0.28);
  background: rgba(21, 27, 35, 0.82);
  padding: 12px 16px;
}

.onboarding-checklist__all-done {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted, #9aa4b2);
}

.onboarding-checklist__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.onboarding-checklist__title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
}

.onboarding-checklist__sub {
  margin: 0;
  max-width: 42rem;
}

.onboarding-checklist__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.onboarding-checklist__row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(5, 9, 20, 0.35);
  border: 1px solid var(--line, rgba(32, 50, 84, 0.55));
}

.onboarding-checklist__row.is-done {
  border-color: rgba(64, 196, 170, 0.35);
}

.onboarding-checklist__mark {
  flex: 0 0 auto;
  width: 1.25rem;
  text-align: center;
  font-weight: 800;
  color: rgba(109, 255, 232, 0.9);
}

.onboarding-checklist__row.is-todo .onboarding-checklist__mark {
  color: rgba(154, 164, 178, 0.75);
}

.onboarding-checklist__label {
  flex: 1 1 auto;
  min-width: 12rem;
  font-size: 0.94rem;
}

.onboarding-checklist__jump {
  flex: 0 0 auto;
}

.onboarding-checklist__actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.account-menu {
  position: relative;
}

.account-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(64, 196, 170, 0.34);
  background: rgba(21, 27, 35, 0.86);
  color: var(--text);
  border-radius: 8px;
  padding: 0 12px 0 8px;
  font: inherit;
  font-weight: 700;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(64, 196, 170, 0.6), rgba(106, 167, 255, 0.55));
  background-size: cover;
  background-position: center;
  color: #061016;
  font-weight: 900;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  z-index: 20;
  border: 1px solid rgba(64, 196, 170, 0.28);
  background: rgba(13, 17, 23, 0.96);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  border-radius: 8px;
  padding: 8px;
  backdrop-filter: blur(18px);
}

.dropdown-item {
  width: 100%;
  min-height: 38px;
  border: 0;
  color: var(--text);
  background: transparent;
  border-radius: 7px;
  font: inherit;
  text-align: left;
  padding: 0 10px;
}

.dropdown-item:hover {
  background: rgba(64, 196, 170, 0.13);
}

.notice {
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notice.success {
  color: #dffcf6;
  border-color: rgba(64, 196, 170, 0.45);
  background: rgba(64, 196, 170, 0.1);
}

.notice.error {
  color: #ffdce1;
  border-color: rgba(255, 107, 122, 0.45);
  background: rgba(255, 107, 122, 0.1);
}

.notice.info {
  color: #dceaff;
  border-color: rgba(106, 167, 255, 0.45);
  background: rgba(106, 167, 255, 0.1);
}

.notice.warning {
  color: #fff3dc;
  border-color: rgba(255, 193, 94, 0.48);
  background: rgba(255, 193, 94, 0.12);
}

.session-renew-bar {
  flex-wrap: wrap;
  border-color: rgba(255, 193, 94, 0.45);
  background: rgba(255, 193, 94, 0.09);
  color: #fff3dc;
}

.session-renew-bar--urgent {
  border-color: rgba(255, 107, 122, 0.55);
  background: rgba(255, 107, 122, 0.12);
  color: #ffe8ec;
}

.session-renew-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex: 1 1 auto;
  flex-wrap: wrap;
}

.session-renew-text {
  flex: 1 1 220px;
  min-width: 0;
  line-height: 1.45;
}

.notice-close {
  flex: 0 0 auto;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  border-radius: 8px;
  min-height: 28px;
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
}

.premium-plan-watch {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 118;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(280px, calc(100vw - 36px));
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(105, 168, 255, 0.28);
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
  background:
    linear-gradient(135deg, rgba(105, 168, 255, 0.12), rgba(69, 219, 194, 0.08)),
    rgba(9, 15, 24, 0.92);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(14px);
  pointer-events: none;
  animation: premiumPlanWatchIn 280ms ease both;
}

.premium-plan-watch[hidden] {
  display: none !important;
}

.premium-plan-watch-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--accent, #45dbc2);
  box-shadow: 0 0 0 0 rgba(69, 219, 194, 0.45);
  animation: premiumPlanWatchPulse 1.4s ease-in-out infinite;
}

@keyframes premiumPlanWatchIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes premiumPlanWatchPulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(69, 219, 194, 0.35);
  }
  50% {
    opacity: 0.65;
    box-shadow: 0 0 0 6px rgba(69, 219, 194, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .premium-plan-watch {
    animation: none;
  }
  .premium-plan-watch-dot {
    animation: none;
    opacity: 0.85;
  }
}

@media (max-width: 860px) {
  .premium-plan-watch {
    right: 12px;
    bottom: 12px;
    font-size: 11px;
    padding: 7px 10px;
  }
}

.toast-stack {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 120;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  --toast-progress-ms: 4200ms;
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(105, 168, 255, 0.22);
  border-radius: 8px;
  padding: 12px;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(105, 168, 255, 0.13), rgba(69, 219, 194, 0.07)),
    rgba(9, 15, 24, 0.94);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  animation: toastIn 260ms ease both;
}

.toast.success {
  border-color: rgba(69, 219, 194, 0.4);
}

.toast.info {
  border-color: rgba(105, 168, 255, 0.26);
}

.toast.warning {
  --toast-progress-ms: 6000ms;
  border-color: rgba(255, 193, 94, 0.48);
  background:
    linear-gradient(135deg, rgba(255, 193, 94, 0.16), rgba(255, 140, 90, 0.08)),
    rgba(9, 15, 24, 0.94);
}

.toast.warning .toast-icon {
  background: linear-gradient(135deg, var(--warn), #e8a030);
}

.toast.error {
  --toast-progress-ms: 8000ms;
  border-color: rgba(255, 107, 122, 0.46);
  background:
    linear-gradient(135deg, rgba(255, 107, 122, 0.15), rgba(255, 196, 95, 0.08)),
    rgba(9, 15, 24, 0.94);
}

.toast.leaving {
  animation: toastOut 180ms ease both;
}

.toast-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #061016;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.toast.error .toast-icon {
  background: linear-gradient(135deg, var(--danger), var(--warn));
}

.toast strong .toast-count {
  display: inline;
  margin-left: 8px;
  margin-top: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.toast strong {
  display: block;
}

.toast > div > span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.toast button {
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 20px;
}

.command-button::after {
  content: "Ctrl K";
  margin-left: 8px;
  color: var(--muted);
  font-size: 11px;
}

.command-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: start center;
  padding: 9vh 20px 20px;
}

.command-layer[hidden] {
  display: none;
}

.command-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 13, 0.72);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 160ms ease;
}

.command-dialog {
  position: relative;
  width: min(760px, 100%);
  display: grid;
  gap: 12px;
  border: 1px solid rgba(69, 219, 194, 0.3);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(69, 219, 194, 0.12), rgba(105, 168, 255, 0.08)),
    rgba(9, 15, 24, 0.98);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 160ms ease, transform 160ms ease;
}

.command-layer.open .command-backdrop,
.command-layer.open .command-dialog {
  opacity: 1;
}

.command-layer.open .command-dialog {
  transform: translateY(0) scale(1);
}

.command-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.command-head h2 {
  margin: 4px 0 0;
}

.command-palette-hint {
  margin: 8px 0 0;
  font-size: 11px;
  letter-spacing: 0.02em;
}

#commandSearch {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(105, 168, 255, 0.22);
  border-radius: 8px;
  background: rgba(5, 10, 18, 0.72);
  color: var(--text);
  padding: 0 14px;
  font: inherit;
}

.command-results {
  display: grid;
  gap: 8px;
  max-height: 56vh;
  overflow: auto;
}

.command-section-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin: 8px 2px 2px;
}

.command-section-label:first-child {
  margin-top: 0;
}

.command-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.3fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 52px;
  border: 1px solid rgba(151, 191, 255, 0.14);
  border-radius: 8px;
  background: rgba(13, 20, 31, 0.72);
  color: var(--text);
  padding: 0 12px;
  text-align: left;
}

.command-row.active,
.command-row:hover {
  border-color: rgba(69, 219, 194, 0.42);
  background: rgba(69, 219, 194, 0.09);
}

.command-row span {
  font-weight: 800;
}

.command-row small,
.command-empty {
  color: var(--muted);
}

.command-empty {
  padding: 14px;
}

.dev-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.setup-card {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  border: 1px solid rgba(240, 184, 90, 0.38);
  background: rgba(240, 184, 90, 0.08);
  border-radius: 8px;
  padding: 12px;
}

.setup-card span {
  color: var(--muted);
  font-size: 12px;
}

.setup-card code {
  color: var(--text);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
  align-content: start;
}

#guildGrid {
  content-visibility: auto;
  contain-intrinsic-size: 400px 2400px;
}

.server {
  position: relative;
  min-height: 168px;
  padding: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 38%),
    linear-gradient(180deg, rgba(27, 35, 48, 0.92), rgba(21, 27, 35, 0.92));
  border-radius: 8px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
  cursor: pointer;
  animation: cardIn 260ms ease both;
}

.server.premium-server {
  border-color: rgba(240, 184, 90, 0.34);
  background:
    linear-gradient(145deg, rgba(240, 184, 90, 0.15), transparent 42%),
    linear-gradient(180deg, rgba(30, 34, 43, 0.96), rgba(21, 27, 35, 0.94));
}

.server.free-server {
  border-color: rgba(106, 167, 255, 0.22);
}

.server.bot-missing {
  border-color: rgba(255, 196, 95, 0.34);
}

.server.bot-missing .server-action {
  background: linear-gradient(135deg, rgba(255, 196, 95, 0.26), rgba(105, 168, 255, 0.22));
  border-color: rgba(255, 196, 95, 0.38);
}

.server:hover,
.server.selected {
  transform: translateY(-2px);
  border-color: rgba(64, 196, 170, 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.server.premium-server:hover,
.server.premium-server.selected {
  border-color: rgba(240, 184, 90, 0.58);
  box-shadow: 0 18px 42px rgba(240, 184, 90, 0.1), 0 18px 40px rgba(0, 0, 0, 0.22);
}

.server-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.server-pin {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(151, 191, 255, 0.28);
  background: rgba(5, 10, 18, 0.65);
  color: rgba(220, 234, 255, 0.55);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.server-pin:hover {
  color: rgba(240, 184, 90, 0.95);
  border-color: rgba(240, 184, 90, 0.45);
  box-shadow: 0 0 0 1px rgba(240, 184, 90, 0.12);
}

.server-pin.is-pinned {
  color: rgba(240, 184, 90, 0.98);
  border-color: rgba(240, 184, 90, 0.55);
  background: rgba(40, 28, 8, 0.55);
}

.server-pin:active {
  transform: scale(0.94);
}

.server-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(64, 196, 170, 0.38);
  background: rgba(64, 196, 170, 0.1);
  font-weight: 900;
}

.server h2 {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: 0;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  font-size: 12px;
}

.badge.premium {
  color: #191100;
  background: var(--warn);
  border-color: var(--warn);
}

.badge.free-plan {
  color: #dceaff;
  background: rgba(106, 167, 255, 0.12);
  border-color: rgba(106, 167, 255, 0.36);
}

.badge.pulse {
  animation: badgePulse 1.8s ease-in-out infinite;
}

.badge.access {
  color: #041713;
  background: var(--accent);
  border-color: var(--accent);
}

.badge.live {
  color: #dffcf6;
  border-color: rgba(64, 196, 170, 0.48);
  background: rgba(64, 196, 170, 0.12);
}

.badge.danger-soft {
  color: #ffdce1;
  border-color: rgba(255, 107, 122, 0.48);
  background: rgba(255, 107, 122, 0.1);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(360px, 1.35fr);
  gap: 18px;
  align-items: start;
}

.guild-toolbar {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 2px;
}

.guild-search-label {
  font-size: 13px;
  color: var(--muted);
}

.guild-search-input {
  flex: 1;
  min-width: 200px;
  max-width: 420px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(12, 16, 24, 0.65);
  color: var(--text);
  font-size: 14px;
}

.guild-search-input:focus {
  outline: none;
  border-color: rgba(64, 196, 170, 0.45);
  box-shadow: 0 0 0 1px rgba(64, 196, 170, 0.2);
}

.guild-search-input:focus-visible {
  outline: 2px solid rgba(84, 215, 197, 0.75);
  outline-offset: 2px;
}

.server-selected .workspace {
  grid-template-columns: minmax(0, 1fr);
}

.server-selected #guildGrid,
.server-selected #guildToolbar {
  display: none;
}

.server-action,
.mini {
  min-height: 34px;
  margin-top: 10px;
  background: rgba(64, 196, 170, 0.12);
  border-color: rgba(64, 196, 170, 0.32);
}

.details {
  min-height: 360px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 36%),
    rgba(21, 27, 35, 0.72);
  padding: 16px;
  position: sticky;
  top: 20px;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.22);
}

.server-selected .details {
  position: static;
}

.empty-state,
.loading {
  min-height: 300px;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  color: var(--muted);
}

.empty-state strong {
  color: var(--text);
}

.empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  justify-content: center;
  justify-self: center;
}

.empty-inline--acted {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.ready-card--empty .mini {
  margin-top: 4px;
  justify-self: start;
}

.polished-empty {
  min-height: 320px;
  padding: 26px;
  border: 1px solid rgba(151, 191, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(69, 219, 194, 0.08), transparent 38%),
    rgba(9, 15, 24, 0.42);
}

.empty-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  justify-self: center;
  border: 1px solid rgba(64, 196, 170, 0.36);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(64, 196, 170, 0.18), rgba(105, 168, 255, 0.1));
  color: #eafffb;
  font-weight: 800;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
}

.empty-server {
  display: block;
  padding: 0;
}

.empty-server .polished-empty {
  min-height: 260px;
  border: 0;
  background: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.loading-shell,
.loading-block {
  min-height: 300px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.loading-block {
  min-height: 120px;
  padding: 16px;
}

.loading-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 0 10px;
}

.loading-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.loading-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 2px 0 6px;
}

.loading-grid--rich {
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
}

.loading-shell--rich {
  min-height: 380px;
}

.panel-skeleton {
  min-height: 200px;
  padding: 10px 4px 12px;
  display: grid;
  gap: 16px;
  align-content: start;
}

.panel-skeleton-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(106, 167, 255, 0.12);
}

.panel-skeleton-head-titles {
  display: grid;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.panel-skeleton-head-aside {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.panel-skeleton-rows {
  display: grid;
  gap: 14px;
}

.panel-skeleton-row {
  display: grid;
  grid-template-columns: minmax(72px, 120px) minmax(0, 1fr);
  gap: 12px 16px;
  align-items: center;
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-mark,
  .skeleton-line {
    animation: none;
    background: rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 640px) {
  .panel-skeleton-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .loading-grid--rich .loading-card {
    opacity: 0;
    animation: cardIn 340ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--card-index, 0) * 36ms);
  }
}

.loading-card {
  min-height: 118px;
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 8px;
  background: rgba(12, 18, 27, 0.62);
  padding: 14px;
}

.server-skeleton {
  pointer-events: none;
}

.skeleton-mark,
.skeleton-line {
  display: block;
  overflow: hidden;
  position: relative;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06));
  background-size: 220% 100%;
  animation: skeletonSweep 1.35s ease-in-out infinite;
}

.skeleton-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.skeleton-line {
  width: 100%;
  height: 12px;
  border-radius: 999px;
}

.skeleton-line.short {
  width: 86px;
}

.skeleton-line.medium {
  width: 58%;
}

.skeleton-line.title {
  width: 72%;
  height: 20px;
}

.skeleton-line.pill {
  width: 74px;
  height: 24px;
}

.details-head,
.panel-head,
.module,
.whitelist-row,
.whitelist-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-head {
  flex-wrap: wrap;
}

.details-head {
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.details-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
}

.details-health-glance {
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(151, 191, 255, 0.16);
  background: rgba(5, 12, 28, 0.35);
}

.details-health-glance--good {
  border-color: rgba(84, 215, 197, 0.45);
  box-shadow: inset 0 0 0 1px rgba(84, 215, 197, 0.08);
}

.details-health-glance--warn {
  border-color: rgba(255, 196, 86, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 196, 86, 0.08);
}

.details-health-glance--bad {
  border-color: rgba(255, 120, 120, 0.5);
  box-shadow: inset 0 0 0 1px rgba(255, 120, 120, 0.1);
}

.health-glance-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25);
}

.details-health-glance--good .health-glance-dot {
  background: radial-gradient(circle at 30% 30%, #b8fff0, #2ad4a3);
}

.details-health-glance--warn .health-glance-dot {
  background: radial-gradient(circle at 30% 30%, #ffe8b0, #e8a435);
}

.details-health-glance--bad .health-glance-dot {
  background: radial-gradient(circle at 30% 30%, #ffc9c9, #e85555);
}

.health-glance-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  min-width: 0;
  flex: 1 1 200px;
}

.health-glance-status {
  font-size: 15px;
  letter-spacing: 0.01em;
}

.health-glance-jump {
  margin-left: auto;
}

.details-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.details h2,
.panel h3 {
  margin: 0 0 5px;
  letter-spacing: 0;
}

.panel {
  scroll-margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 16px;
  animation: cardIn 180ms ease both;
  transform-origin: top center;
  will-change: opacity, transform;
}

.panel.panel-enter {
  animation: panelEnter 240ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.details.view-switching {
  transition: border-color 180ms ease, box-shadow 180ms ease;
  border-color: rgba(64, 196, 170, 0.34);
}

.panel.focus-panel {
  border-color: rgba(64, 196, 170, 0.75);
  box-shadow: 0 0 0 1px rgba(64, 196, 170, 0.18), 0 0 28px rgba(64, 196, 170, 0.08);
}

@keyframes wizardManualAnchorFlash {
  0%,
  100% {
    box-shadow: none;
  }

  35%,
  65% {
    box-shadow: 0 0 0 2px rgba(84, 215, 197, 0.42), 0 0 22px rgba(84, 215, 197, 0.12);
  }
}

.settings-group.wizard-manual-anchor-flash,
.field.wizard-manual-anchor-flash {
  animation: wizardManualAnchorFlash 1.05s ease;
  border-radius: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .settings-group.wizard-manual-anchor-flash,
  .field.wizard-manual-anchor-flash {
    animation: none !important;
    box-shadow: 0 0 0 2px rgba(84, 215, 197, 0.35);
  }
}

.panel[hidden] {
  display: none;
}

.module-list,
.whitelist-list,
.audit-list,
.inventory-grid,
.command-files {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

@media (prefers-reduced-motion: no-preference) {
  .module-list.module-grid-pro .module-card-pro {
    opacity: 0;
    animation: cardIn 320ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--card-index, 0) * 44ms);
  }

  .wizard-pills .wizard-pill {
    opacity: 0;
    animation: cardIn 280ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--pill-index, 0) * 40ms);
  }
}

.module-center {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.module-center-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid rgba(64, 196, 170, 0.22);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(64, 196, 170, 0.1), transparent 42%),
    rgba(13, 17, 23, 0.46);
}

.module-center-hero h3 {
  margin: 0 0 4px;
}

.module-summary,
.module-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.module-summary span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  background: rgba(13, 17, 23, 0.44);
  font-size: 12px;
}

.module-grid-pro {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.overview-hero,
.wizard-hero,
.premium-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(64, 196, 170, 0.3);
  border-radius: 8px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(64, 196, 170, 0.16), rgba(106, 167, 255, 0.08)),
    rgba(13, 17, 23, 0.62);
}

.overview-hero.premium {
  border-color: rgba(240, 184, 90, 0.42);
  background:
    linear-gradient(135deg, rgba(240, 184, 90, 0.16), rgba(64, 196, 170, 0.08)),
    rgba(13, 17, 23, 0.66);
}

.plan-snapshot {
  margin: 16px 0 20px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(106, 167, 255, 0.16);
  background: rgba(9, 14, 22, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.plan-snapshot-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px 16px;
  margin-bottom: 12px;
}

.plan-snapshot-head h3 {
  margin: 4px 0 0;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.plan-snapshot-detail {
  margin: 6px 0 0;
  max-width: 62ch;
}

.plan-snapshot-tier {
  flex-shrink: 0;
}

.plan-snapshot-list {
  margin: 0;
  padding-left: 1.25em;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.plan-snapshot-list li + li {
  margin-top: 8px;
}

.plan-snapshot-foot {
  margin: 14px 0 0;
  max-width: 70ch;
}

.overview-hero h3,
.wizard-hero h3,
.premium-panel h3 {
  margin: 6px 0;
  font-size: 30px;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.score-ring.overview-score {
  width: 112px;
  height: 112px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 28px rgba(64, 196, 170, 0.12);
}

.score-ring.overview-score .score {
  width: 78px;
  height: 78px;
}

.score.score-dual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 6px;
  text-align: center;
  line-height: 1.15;
  font-weight: 800;
}

.score.score-dual .score-pct {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.score.score-dual small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.setup-score-ring.score-ring.overview-score {
  width: 118px;
  height: 118px;
  background:
    conic-gradient(from 200deg, var(--accent) calc(var(--score) * 1%), rgba(57, 71, 91, 0.58) 0),
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.1), transparent 52%),
    rgba(13, 17, 23, 0.56);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 0 32px rgba(64, 196, 170, 0.22);
  animation:
    ringPop 520ms cubic-bezier(0.22, 1, 0.36, 1) both,
    setupRingGlow 4.5s ease-in-out infinite;
}

.setup-score-ring .setup-score-inner {
  animation: setupInnerPulse 3.4s ease-in-out infinite;
}

.setup-score-ring.score-ring.overview-score .score {
  width: 82px;
  height: 82px;
}

@keyframes setupRingGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 12px rgba(64, 196, 170, 0.38));
  }

  50% {
    filter: drop-shadow(0 0 26px rgba(106, 167, 255, 0.48));
  }
}

@keyframes setupInnerPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.028);
  }
}

body.dashboard-premium-ui.server-selected .setup-score-ring.score-ring.overview-score {
  background:
    conic-gradient(from 200deg, #ffc978 calc(var(--score) * 1%), rgba(57, 71, 91, 0.58) 0),
    radial-gradient(circle at 32% 28%, rgba(255, 200, 130, 0.18), transparent 50%),
    rgba(13, 17, 23, 0.56);
  box-shadow:
    inset 0 0 0 1px rgba(255, 200, 120, 0.14),
    0 0 38px rgba(255, 150, 60, 0.32);
  animation:
    ringPop 520ms cubic-bezier(0.22, 1, 0.36, 1) both,
    setupRingGlowPremium 4.5s ease-in-out infinite;
}

@keyframes setupRingGlowPremium {
  0%,
  100% {
    filter: drop-shadow(0 0 14px rgba(255, 160, 70, 0.48));
  }

  50% {
    filter: drop-shadow(0 0 30px rgba(255, 210, 130, 0.55));
  }
}

.overview-inline-toggles {
  margin-top: 12px;
  padding: 14px 18px;
  border: 1px solid rgba(106, 167, 255, 0.18);
  border-radius: 10px;
  background: rgba(13, 17, 23, 0.52);
}

.quick-module-toggles {
  display: grid;
  gap: 8px;
}

.quick-module-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  align-items: center;
}

.quick-module-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.quick-module-toggle .switch {
  flex-shrink: 0;
}

.module-hero-toggles {
  margin-top: 4px;
}

.data-freshness {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: no-preference) {
  .quick-module-toggles.data-pulse-success {
    animation: quickTogglePulse 0.62s ease;
  }
}

@keyframes quickTogglePulse {
  0%,
  100% {
    box-shadow: none;
  }

  35% {
    box-shadow:
      0 0 0 1px rgba(84, 215, 197, 0.45),
      0 0 28px rgba(84, 215, 197, 0.22);
  }
}

.ready-grid,
.wizard-quick-list,
.counter-grid,
.premium-tiers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.ready-card,
.wizard-step,
.counter-card,
.premium-tiers article,
.settings-block {
  border: 1px solid rgba(106, 167, 255, 0.2);
  background: rgba(13, 17, 23, 0.48);
  border-radius: 8px;
  padding: 14px;
}

.ready-card,
.counter-card {
  display: grid;
  gap: 8px;
}

.wizard-shell {
  display: grid;
  gap: 14px;
}

.wizard-hero {
  grid-template-columns: 1fr;
  padding: 0;
  background:
    linear-gradient(140deg, rgba(64, 196, 170, 0.18), rgba(106, 167, 255, 0.08) 42%, rgba(13, 17, 23, 0.68)),
    rgba(13, 17, 23, 0.72);
}

.wizard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.wizard-hero-actions .wizard-start {
  flex: 1 1 200px;
}

.wizard-module-guide {
  flex: 0 0 auto;
  min-height: 64px;
  padding: 0 22px;
  border: 0;
  border-left: 1px solid rgba(6, 16, 22, 0.22);
  border-radius: 0;
  background: rgba(6, 16, 22, 0.38);
  color: rgba(232, 242, 255, 0.95);
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.wizard-module-guide:hover {
  background: rgba(6, 16, 22, 0.52);
  color: #fff;
}

@media (max-width: 560px) {
  .wizard-module-guide {
    flex: 1 1 100%;
    border-left: 0;
    border-top: 1px solid rgba(6, 16, 22, 0.22);
  }
}

.wizard-start {
  min-height: 64px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, #2ff070, #41dfb5, #6aa7ff);
  color: #061016;
  font: inherit;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.wizard-intro {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 28px 32px 8px;
}

.wizard-score {
  flex: 0 0 auto;
}

.wizard-step-board {
  margin: 12px 32px 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  padding: 16px;
}

.wizard-progress {
  display: grid;
  gap: 10px;
  margin: 10px 32px 0;
}

.wizard-progress > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wizard-step-board h4 {
  margin: 0 0 14px;
  font-size: 20px;
  text-transform: uppercase;
}

.wizard-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.wizard-pill {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-weight: 800;
}

.wizard-pill span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #061016;
  background: rgba(255, 255, 255, 0.74);
}

.wizard-pill.active,
.wizard-pill:hover {
  color: #061016;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.wizard-pill.warn {
  border: 1px solid rgba(255, 196, 95, 0.35);
}

.wizard-pill.danger {
  border: 1px solid rgba(255, 107, 122, 0.35);
}

.wizard-pill.skipped {
  opacity: 0.58;
}

.wizard-pill small {
  color: inherit;
  opacity: 0.7;
  font-size: 10px;
}

.wizard-hints {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.wizard-hints span {
  color: #061016;
  background: rgba(255, 242, 76, 0.95);
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 12px;
}

.wizard-setup-mode {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(151, 191, 255, 0.12);
}

.wizard-setup-mode-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(190, 214, 236, 0.88);
  margin-bottom: 8px;
}

.wizard-setup-mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wizard-setup-mode-btn {
  flex: 1 1 160px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(151, 191, 255, 0.18);
  background: rgba(4, 10, 20, 0.55);
  color: inherit;
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.wizard-setup-mode-btn:hover {
  border-color: rgba(84, 215, 197, 0.35);
  background: rgba(84, 215, 197, 0.08);
}

.wizard-setup-mode-btn.active {
  border-color: rgba(84, 215, 197, 0.55);
  box-shadow: 0 0 0 1px rgba(84, 215, 197, 0.22);
  background: rgba(84, 215, 197, 0.12);
}

.wizard-setup-mode-hint {
  margin: 8px 0 0;
  line-height: 1.45;
}

.wizard-step-est {
  margin: 4px 0 0;
  line-height: 1.4;
}

.wizard-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  transition: opacity 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.wizard-step:hover {
  transform: translateY(-2px);
  border-color: rgba(64, 196, 170, 0.42);
}

.wizard-step.skipped {
  opacity: 0.48;
}

.wizard-step.warn {
  border-color: rgba(255, 196, 95, 0.34);
}

.wizard-step.danger {
  border-color: rgba(255, 107, 122, 0.34);
}

.wizard-warning-list {
  display: grid;
  gap: 6px;
  margin: 10px 0;
}

.wizard-warning-list span {
  border: 1px solid rgba(255, 196, 95, 0.22);
  border-radius: 8px;
  padding: 7px 9px;
  color: #ffe4ac;
  background: rgba(255, 196, 95, 0.08);
  font-size: 12px;
}

.wizard-warning-list.ok span {
  border-color: rgba(84, 215, 197, 0.22);
  color: #bff8ee;
  background: rgba(84, 215, 197, 0.08);
}

.wizard-setup-profile {
  margin: 12px 0 10px;
  padding: 12px 12px 10px;
  border-radius: 12px;
  border: 1px solid rgba(120, 200, 255, 0.14);
  background: rgba(6, 16, 28, 0.55);
}

.wizard-setup-profile-head {
  margin-bottom: 8px;
}

.wizard-setup-profile-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(190, 214, 236, 0.88);
}

.wizard-setup-tier-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 900px) {
  .wizard-setup-tier-row {
    grid-template-columns: 1fr;
  }
}

.wizard-setup-tier {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  padding: 10px 10px 9px;
  border-radius: 10px;
  border: 1px solid rgba(151, 191, 255, 0.16);
  background: rgba(4, 10, 20, 0.65);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.wizard-setup-tier:hover {
  border-color: rgba(84, 215, 197, 0.35);
  background: rgba(84, 215, 197, 0.07);
}

.wizard-setup-tier.active {
  border-color: rgba(84, 215, 197, 0.55);
  box-shadow: 0 0 0 1px rgba(84, 215, 197, 0.25);
  background: rgba(84, 215, 197, 0.1);
}

.wizard-setup-tier-label {
  font-weight: 800;
  font-size: 13px;
}

.wizard-setup-tier-pct {
  font-size: 12px;
  font-weight: 700;
  color: rgba(120, 240, 255, 0.92);
}

.wizard-setup-tier-blurb {
  font-size: 11px;
  line-height: 1.35;
  margin-top: 2px;
}

.wizard-setup-profile-hint {
  margin: 10px 0 0;
  line-height: 1.45;
}

.step-index {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #061016;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.featured-tier {
  border-color: rgba(240, 184, 90, 0.42) !important;
  background: linear-gradient(135deg, rgba(240, 184, 90, 0.12), rgba(64, 196, 170, 0.08)) !important;
}

.lemon-squeezy-button {
  background: linear-gradient(135deg, #37d67a, #44a7ff);
}

.settings-block {
  margin-top: 14px;
}

.settings-block h4 {
  margin: 0 0 12px;
}

.setup-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(64, 196, 170, 0.22);
  background: rgba(64, 196, 170, 0.06);
  border-radius: 8px;
  padding: 10px;
  margin: 12px 0 14px;
}

.setup-nav > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.module-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(106, 167, 255, 0.22);
  background: rgba(106, 167, 255, 0.07);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 14px;
}

.module-preview span {
  color: var(--muted);
}

.module-preview .module-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

/* Help center topic cards (shared card chrome) */
.module-help-sections {
  display: grid;
  gap: 10px;
  padding: 0;
}

.module-help-card {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.2);
}

.module-help-card-title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 800;
}

.module-help-card-body {
  line-height: 1.45;
}

.copy-portable-settings-card {
  margin-bottom: 18px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(151, 191, 255, 0.12);
}

.copy-portable-grid {
  align-items: flex-end;
}

.help-center-layout {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 20px 28px;
  align-items: start;
}

@media (max-width: 960px) {
  .help-center-layout {
    grid-template-columns: 1fr;
  }
}

.help-center-toc {
  position: sticky;
  top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(151, 191, 255, 0.14);
  background: rgba(4, 10, 20, 0.38);
}

.help-center-toc-intro {
  margin: 0 0 10px;
}

.help-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.help-toc-btn {
  display: block;
  width: 100%;
  margin: 0;
  padding: 6px 2px;
  text-align: left;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  color: rgba(191, 248, 238, 0.92);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 6px;
}

.help-toc-btn:hover {
  background: rgba(84, 215, 197, 0.08);
  color: #bff8ee;
}

.help-toc-btn:focus-visible {
  outline: 2px solid rgba(120, 240, 255, 0.88);
  outline-offset: 2px;
}

.help-center-topics {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.help-topic-shortcuts .help-shortcuts-list,
.help-topic-pwa .help-shortcuts-list {
  margin: 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(220, 232, 255, 0.92);
  font-size: 13px;
  line-height: 1.45;
}

.help-topic-shortcuts .help-shortcuts-list li::marker,
.help-topic-pwa .help-shortcuts-list li::marker {
  color: rgba(84, 215, 197, 0.65);
}

.help-topic-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.help-topic-grid {
  max-height: none;
}

.panel-docs-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 12px;
}

.help-doc-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 12px 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(84, 215, 197, 0.38);
  background: linear-gradient(135deg, rgba(84, 215, 197, 0.14), rgba(106, 167, 255, 0.1));
  color: #d4faf4;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.help-doc-chip__icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(84, 215, 197, 0.22);
  border: 1px solid rgba(84, 215, 197, 0.45);
  font-size: 0.68rem;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  color: #ecfdf9;
}

.help-doc-chip__label {
  line-height: 1.2;
}

.help-doc-chip:hover,
.help-doc-chip:focus-visible {
  border-color: rgba(84, 215, 197, 0.62);
  background: linear-gradient(135deg, rgba(84, 215, 197, 0.22), rgba(106, 167, 255, 0.16));
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
  outline: none;
}

.help-doc-chip--inline {
  min-height: 28px;
  padding: 0 10px 0 7px;
  font-size: 0.76rem;
  box-shadow: none;
}

.help-doc-chip--inline .help-doc-chip__icon {
  width: 16px;
  height: 16px;
  font-size: 0.62rem;
}

.matrix-advisor__foot .help-doc-chip--inline,
.analytics-foot .help-doc-chip--inline,
.starboard-page .analytics-foot .help-doc-chip--inline {
  margin-top: 2px;
}

.panel-docs-btn {
  flex-shrink: 0;
}

.module-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  gap: 16px;
  align-items: stretch;
  border: 1px solid rgba(84, 215, 197, 0.28);
  border-radius: 12px;
  padding: 22px;
  margin: 14px 0;
  background:
    linear-gradient(135deg, rgba(84, 215, 197, 0.14), rgba(106, 167, 255, 0.08) 48%, rgba(10, 16, 27, 0.84)),
    rgba(13, 17, 23, 0.78);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.module-hero::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -8%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(84, 215, 197, 0.18), transparent 68%);
  filter: blur(4px);
  animation: premiumFloat 10s ease-in-out infinite;
}

.module-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, 0.08) 46%, transparent 55% 100%);
  transform: translateX(-120%);
  animation: heroSweep 8s ease-in-out infinite;
}

.module-hero.disabled {
  border-color: rgba(255, 107, 107, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 107, 107, 0.09), rgba(106, 167, 255, 0.05)),
    rgba(13, 17, 23, 0.72);
}

.module-hero.locked {
  opacity: 0.86;
}

.module-hero-copy,
.module-hero-side,
.module-hero-preview {
  position: relative;
  z-index: 1;
}

.module-hero h3 {
  margin: 6px 0;
  font-size: 28px;
}

.module-hero-badges,
.module-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.module-hero-side {
  display: grid;
  gap: 12px;
  align-content: center;
}

.module-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.module-metric {
  display: grid;
  gap: 4px;
  align-content: center;
  min-height: 76px;
  padding: 12px;
  border: 1px solid rgba(151, 191, 255, 0.16);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(151, 191, 255, 0.08), transparent 55%),
    rgba(5, 10, 18, 0.52);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.module-metric:hover {
  transform: translateY(-2px);
  border-color: rgba(84, 215, 197, 0.4);
  background:
    linear-gradient(145deg, rgba(84, 215, 197, 0.12), transparent 58%),
    rgba(5, 10, 18, 0.62);
}

.module-metric strong {
  font-size: 22px;
}

.module-metric span {
  color: var(--muted);
  font-size: 12px;
}

.module-metric.ok {
  border-color: rgba(84, 215, 197, 0.34);
}

.module-metric.danger {
  border-color: rgba(255, 107, 107, 0.36);
}

.module-hero-preview {
  grid-column: 1 / -1;
}

.module-hero-preview .module-preview {
  margin: 0;
  background: rgba(5, 10, 18, 0.42);
}

@keyframes premiumFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.6; }
  50% { transform: translate3d(22px, 16px, 0) scale(1.08); opacity: 0.95; }
}

.activity-feed {
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(84, 215, 197, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(84, 215, 197, 0.09), rgba(106, 167, 255, 0.06)),
    rgba(13, 17, 23, 0.54);
}

.activity-feed h3 {
  margin: 5px 0 0;
}

.activity-feed-list {
  display: grid;
  gap: 8px;
}

.activity-feed-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(151, 191, 255, 0.13);
  border-radius: 8px;
  background: rgba(5, 10, 18, 0.38);
}

.activity-feed-list article.ok {
  border-color: rgba(84, 215, 197, 0.28);
}

.activity-feed-list article.warn {
  border-color: rgba(255, 196, 95, 0.3);
}

.activity-feed-list small {
  color: var(--muted);
  white-space: nowrap;
}

.smart-recommendations {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 196, 95, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 196, 95, 0.1), rgba(69, 219, 194, 0.05)),
    rgba(13, 17, 23, 0.58);
  box-shadow: var(--glow);
}

.matrix-advisor {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(106, 167, 255, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(106, 167, 255, 0.08), rgba(69, 219, 194, 0.04)),
    rgba(13, 17, 23, 0.62);
  box-shadow: var(--glow);
}

.matrix-advisor--premium {
  border-color: rgba(255, 196, 95, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 196, 95, 0.1), rgba(106, 167, 255, 0.06)),
    rgba(13, 17, 23, 0.65);
}

.matrix-advisor__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.matrix-advisor__head h3 {
  margin: 4px 0 0;
  font-size: 1.05rem;
}

.matrix-advisor__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

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

.matrix-advisor__metric {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.18);
}

.matrix-advisor__metric--link {
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.matrix-advisor__metric--link:hover,
.matrix-advisor__metric--link:focus-visible {
  border-color: rgba(84, 215, 197, 0.45);
  background: rgba(84, 215, 197, 0.06);
  outline: none;
}

.matrix-advisor__empty {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px dashed rgba(151, 191, 255, 0.22);
  background: rgba(0, 0, 0, 0.2);
}

.matrix-advisor__foot {
  margin: 0;
}

.matrix-advisor__metric-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.matrix-advisor__metric-value {
  font-size: 1.35rem;
  line-height: 1.1;
}

.matrix-advisor__top,
.matrix-advisor__extras {
  display: grid;
  gap: 8px;
}

.matrix-advisor__top-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.matrix-advisor__top-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.matrix-advisor__top--secondary {
  opacity: 0.92;
}

.matrix-advisor__chan {
  color: var(--accent, #6aa7ff);
  font-weight: 500;
}

.matrix-advisor__insights {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.matrix-advisor__insight {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.12);
  font-size: 0.9rem;
}

.matrix-advisor__insight--warn {
  border-color: rgba(255, 196, 95, 0.35);
}

.matrix-advisor__insight--danger,
.matrix-advisor__insight--up {
  border-color: rgba(255, 120, 120, 0.3);
}

.matrix-advisor__insight--ok {
  border-color: rgba(84, 215, 197, 0.28);
}

.matrix-advisor__warn {
  color: #ffc45f;
}

.matrix-advisor__upgrade .linkish {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.matrix-advisor-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(84, 215, 197, 0.08), rgba(40, 115, 255, 0.06));
}

.matrix-advisor-teaser__stats strong {
  color: var(--text);
}

.matrix-advisor-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.matrix-advisor-page__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.matrix-advisor-page__kpis {
  margin: 0;
}

.matrix-charts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.matrix-chart-days {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.matrix-chart-days-btn.active {
  border-color: var(--accent);
  color: var(--accent);
}

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

.matrix-charts-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.matrix-chart-group {
  position: relative;
  padding: 14px 16px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.12);
}

.matrix-chart-group__head h4 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.matrix-chart-group__head p {
  margin: 0 0 12px;
}

.matrix-chart-group__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.matrix-chart-group--locked .matrix-chart-group__grid {
  filter: blur(2px);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}

.matrix-chart-group__lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  text-align: center;
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.15), rgba(8, 12, 20, 0.72));
  border-radius: inherit;
}

.matrix-chart-group__lock span {
  max-width: 28rem;
  font-size: 0.92rem;
}

.matrix-charts-grid .matrix-chart-card:last-child {
  grid-column: 1 / -1;
}

.matrix-chart-card {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}

.matrix-chart-card h4 {
  margin: 0 0 10px;
  font-size: 0.92rem;
}

.matrix-chart-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.matrix-chart-hit {
  cursor: crosshair;
}

.matrix-chart-tooltip {
  position: absolute;
  z-index: 3;
  transform: translate(-50%, -100%);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  background: rgba(12, 16, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.panel-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin: 0 0 14px;
}

.panel-jump-nav a {
  color: var(--accent);
  text-decoration: none;
}

.panel-jump-nav a:hover {
  text-decoration: underline;
}

.intro-settings-form .intro-field-textarea {
  min-height: 96px;
  resize: vertical;
  border-radius: 10px;
}

.intro-setup-card .intro-preview-heading {
  margin-top: 18px;
}

.intro-panel-preview {
  margin: 10px 0 16px;
}

.intro-panel-preview .discord-preview {
  margin: 0;
}

.intro-send-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(56, 189, 172, 0.35);
  background: linear-gradient(135deg, rgba(56, 189, 172, 0.1), rgba(56, 189, 172, 0.03));
}

.intro-send-card__copy strong {
  display: block;
  margin-bottom: 4px;
}

.intro-send-btn {
  min-width: 140px;
  flex-shrink: 0;
}

.intro-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.intro-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.86rem;
}

.intro-radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

.intro-meta-hint {
  margin-bottom: 12px;
}

.intro-premium-hint {
  margin: 0 0 12px;
}

.intro-settings-form .field--checkbox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.intro-toggle-grid {
  margin-top: 10px;
}

.intro-form-actions {
  align-items: flex-end;
}

.intro-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.intro-plan-col {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.intro-plan-col--premium {
  border-color: rgba(84, 215, 197, 0.25);
}

.intro-subheading {
  margin: 14px 0 6px;
  font-size: 0.95rem;
}

.intro-template-bar {
  display: grid;
  grid-template-columns: minmax(200px, 1.4fr) auto;
  gap: 12px 16px;
  align-items: end;
  margin: 10px 0 8px;
}

.intro-template-bar .check-field--switch {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(84, 215, 197, 0.16);
  background: rgba(84, 215, 197, 0.05);
}

.intro-wizard-steps-hint {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(84, 215, 197, 0.28);
  background: linear-gradient(135deg, rgba(84, 215, 197, 0.12), rgba(84, 215, 197, 0.03));
  color: rgba(207, 232, 226, 0.95);
  font-size: 0.86rem;
  line-height: 1.45;
}

.intro-fields-card .intro-template-field select {
  width: 100%;
}

.intro-editor-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 10px;
}

.intro-editor-row {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(120px, 1.4fr) minmax(90px, 0.9fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(84, 215, 197, 0.16);
  background:
    linear-gradient(135deg, rgba(84, 215, 197, 0.08), transparent 55%),
    rgba(10, 16, 26, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.intro-settings-form .intro-editor-row input,
.intro-settings-form .intro-editor-row select,
.intro-settings-form .intro-editor-channel-select select,
.intro-settings-form .intro-template-field select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 1px solid rgba(84, 215, 197, 0.22);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(14, 22, 34, 0.96), rgba(8, 13, 22, 0.92));
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.intro-settings-form .intro-editor-row input::placeholder {
  color: rgba(159, 176, 200, 0.52);
}

.intro-settings-form .intro-editor-row input:focus,
.intro-settings-form .intro-editor-row select:focus,
.intro-settings-form .intro-editor-channel-select select:focus,
.intro-settings-form .intro-template-field select:focus {
  outline: none;
  border-color: rgba(84, 215, 197, 0.58);
  box-shadow: 0 0 0 3px rgba(84, 215, 197, 0.14);
  background: linear-gradient(180deg, rgba(16, 28, 42, 0.98), rgba(10, 16, 28, 0.95));
}

.intro-editor-row--channel {
  grid-template-columns: minmax(160px, 2fr) minmax(120px, 1.2fr) auto auto;
}

.intro-setup-card .intro-editor-row--channel {
  margin-bottom: 4px;
}

.intro-editor-head {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(120px, 1.4fr) minmax(90px, 0.9fr) auto auto;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 6px;
}

.intro-editor-head--fields span:last-child {
  visibility: hidden;
}

.intro-editor-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.intro-send-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.intro-send-actions .intro-send-channel {
  min-width: 180px;
  flex: 1 1 180px;
}

.intro-recent-list a {
  color: var(--accent, #54d7c5);
  text-decoration: none;
}

.intro-recent-list a:hover {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .intro-template-bar {
    grid-template-columns: 1fr;
  }

  .intro-editor-row,
  .intro-editor-row--channel,
  .intro-editor-head {
    grid-template-columns: 1fr;
  }
}

.matrix-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.matrix-chart-grid {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.matrix-chart-axis {
  fill: var(--muted);
  font-size: 9px;
}

.matrix-chart-legend {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--muted);
}

.matrix-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.matrix-chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

.matrix-alerts {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 100, 100, 0.35);
  background: rgba(255, 80, 80, 0.08);
}

.matrix-alerts ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.matrix-alerts__item--danger {
  color: #ff8a8a;
}

.matrix-alerts__item--warn {
  color: #ffc45f;
}

.matrix-ops-section h4 {
  margin: 0 0 10px;
}

.matrix-ops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.matrix-ops-card {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.12);
}

.matrix-ops-card h5 {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

.matrix-ops-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.matrix-ops-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.matrix-ops-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.matrix-advisor-page__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

@media (max-width: 860px) {
  .matrix-charts-grid,
  .matrix-chart-group__grid {
    grid-template-columns: 1fr;
  }

  .matrix-charts-grid .matrix-chart-card:last-child {
    grid-column: auto;
  }
}

.playbooks-card {
  margin: 0 0 18px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.playbooks-card--compact {
  margin: 14px 0 0;
  padding: 14px 16px;
}

.playbooks-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.playbooks-card__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.playbooks-card__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
}

.playbooks-card__item--compact {
  padding: 10px 12px;
}

.playbooks-card__item-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.playbooks-card__mods {
  line-height: 1.35;
  margin: 0;
}

.matrix-advisor-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.matrix-advisor-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.matrix-advisor-modal__panel {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: min(80vh, 720px);
  overflow: auto;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid rgba(106, 167, 255, 0.28);
  background: var(--panel, #0d1117);
  box-shadow: var(--glow);
}

.matrix-advisor-modal__panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.matrix-advisor-modal__body {
  display: grid;
  gap: 16px;
}

.matrix-advisor-modal__list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.matrix-advisor-modal__list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.access-guard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(84, 215, 197, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(84, 215, 197, 0.1), rgba(106, 167, 255, 0.06)),
    rgba(13, 17, 23, 0.58);
}

.access-guard h3 {
  margin: 4px 0;
}

.access-guard-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.recommendation-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.recommendation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(151, 191, 255, 0.14);
  border-radius: 8px;
  padding: 12px;
  background: rgba(4, 9, 15, 0.42);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.recommendation:hover {
  transform: translateY(-2px);
  border-color: rgba(69, 219, 194, 0.34);
  background: rgba(13, 24, 36, 0.72);
}

.recommendation.warn {
  border-color: rgba(255, 196, 95, 0.32);
}

.recommendation.danger {
  border-color: rgba(255, 107, 122, 0.36);
}

.recommendation.premium {
  border-color: rgba(255, 196, 95, 0.38);
}

.recommendation.ok {
  border-color: rgba(69, 219, 194, 0.34);
}

.recommendation strong,
.recommendation span {
  display: block;
}

.recommendation span {
  color: var(--muted);
  margin-top: 3px;
  font-size: 13px;
}

@keyframes heroSweep {
  0%, 55%, 100% { transform: translateX(-120%); opacity: 0; }
  65% { opacity: 1; }
  85% { transform: translateX(120%); opacity: 0; }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(26px) scale(0.98); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateX(26px) scale(0.98); }
}

@keyframes saveGlow {
  0% { box-shadow: 0 0 0 rgba(69, 219, 194, 0); }
  28% { box-shadow: 0 0 0 1px rgba(69, 219, 194, 0.42), 0 0 48px rgba(69, 219, 194, 0.18); }
  100% { box-shadow: 0 0 0 rgba(69, 219, 194, 0); }
}

.panel.save-glow {
  animation: saveGlow 1100ms ease both;
}

.details[data-active-panel="module-tickets"] .support-config,
.details[data-active-panel="module-support"] .ticket-config {
  display: none;
}

.dashboard-live,
.premium-contact {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.dashboard-live article,
.premium-contact {
  border: 1px solid rgba(106, 167, 255, 0.2);
  background: rgba(13, 17, 23, 0.48);
  border-radius: 8px;
  padding: 14px;
}

.dashboard-live article {
  display: grid;
  gap: 8px;
}

.ops-radar,
.coverage-matrix,
.live-command,
.health-command-strip {
  margin-top: 14px;
  border: 1px solid rgba(69, 219, 194, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(69, 219, 194, 0.11), rgba(105, 168, 255, 0.06)),
    rgba(10, 16, 26, 0.66);
  box-shadow: var(--glow);
}

.ops-radar {
  display: grid;
  grid-template-columns: minmax(230px, 0.38fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
}

.ops-radar h3,
.live-command h3 {
  margin: 4px 0;
  font-size: 22px;
}

.radar-grid,
.pulse-bars,
.health-command-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.health-command-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 12px;
}

.radar-warnings {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.mini-bar {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(151, 191, 255, 0.14);
  border-radius: 8px;
  background: rgba(4, 9, 15, 0.42);
}

.mini-bar > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mini-bar span {
  color: var(--muted);
  font-size: 12px;
}

.mini-bar-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(63, 78, 99, 0.72);
}

.mini-bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  animation: barLoad 520ms ease both;
}

.mini-bar.warn .mini-bar-track span {
  background: linear-gradient(90deg, var(--warn), var(--danger));
}

.mini-bar.premium .mini-bar-track span,
.mini-bar.premium-health .mini-bar-track span {
  background: linear-gradient(90deg, var(--warn), var(--accent));
}

.coverage-matrix {
  padding: 16px;
}

.coverage-matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.coverage-matrix-grid article {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(151, 191, 255, 0.14);
  border-radius: 8px;
  padding: 12px;
  background: rgba(4, 9, 15, 0.38);
}

.coverage-matrix-grid article > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.coverage-matrix-grid span {
  color: var(--muted);
  font-size: 12px;
}

.coverage-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.coverage-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 107, 122, 0.55);
}

.coverage-dots span.on {
  background: var(--accent);
  box-shadow: 0 0 14px rgba(69, 219, 194, 0.32);
}

.live-command {
  display: grid;
  grid-template-columns: minmax(220px, 0.28fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.premium-contact {
  grid-column: 1 / -1;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
}

.premium-panel {
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.34fr);
  align-items: stretch;
  gap: 18px;
}

.premium-hero-copy {
  display: grid;
  align-content: center;
  gap: 8px;
}

.premium-status-card {
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid rgba(240, 184, 90, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(240, 184, 90, 0.18), rgba(69, 219, 194, 0.08)),
    rgba(7, 12, 20, 0.56);
  padding: 16px;
  min-height: 160px;
}

.premium-status-card span,
.premium-status-card small {
  color: var(--muted);
}

.premium-status-card strong {
  font-size: 28px;
}

.premium-benefits,
.premium-actions,
.premium-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.premium-benefits span {
  border: 1px solid rgba(64, 196, 170, 0.22);
  border-radius: 999px;
  background: rgba(64, 196, 170, 0.08);
  color: #dffcf6;
  padding: 7px 10px;
  font-size: 12px;
}

.premium-flow {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2px;
}

.premium-flow article {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(151, 191, 255, 0.14);
  border-radius: 8px;
  background: rgba(4, 9, 15, 0.38);
  padding: 13px;
}

.premium-flow article > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #041017;
  font-weight: 900;
}

.premium-flow small {
  color: var(--muted);
}

.premium-tiers article {
  display: grid;
  align-content: start;
  gap: 10px;
}

.premium-tiers article strong {
  font-size: 22px;
}

.premium-tiers ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.premium-tiers li {
  position: relative;
  color: var(--muted);
  padding-left: 18px;
}

.premium-tiers li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(69, 219, 194, 0.28);
}

.featured-tier {
  border-color: rgba(240, 184, 90, 0.46) !important;
  background:
    linear-gradient(135deg, rgba(240, 184, 90, 0.13), rgba(64, 196, 170, 0.07)),
    rgba(13, 17, 23, 0.62) !important;
}

.premium-actions {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.premium-actions .button,
.premium-actions .mini {
  margin-top: 0;
}

.manual-premium-days {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(230, 237, 243, 0.72);
}

.manual-premium-days input {
  width: 4.75rem;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid rgba(120, 172, 255, 0.28);
  background: rgba(8, 13, 22, 0.92);
  color: inherit;
}

.billing-status {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(240, 184, 90, 0.28);
  background: rgba(240, 184, 90, 0.07);
  border-radius: 8px;
  padding: 14px;
}

.billing-history {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(120, 172, 255, 0.22);
  background: linear-gradient(135deg, rgba(49, 88, 130, 0.22), rgba(8, 13, 22, 0.86));
  border-radius: 8px;
  padding: 14px;
}

.invoice-list {
  display: grid;
  gap: 8px;
}

.invoice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(151, 191, 255, 0.14);
  border-radius: 8px;
  background: rgba(7, 12, 20, 0.54);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.invoice-row:hover {
  transform: translateY(-1px);
  border-color: rgba(89, 226, 205, 0.34);
  background: rgba(13, 25, 40, 0.76);
}

.invoice-row > div {
  display: grid;
  gap: 3px;
}

.billing-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.premium-contact strong,
.premium-contact span {
  grid-column: 1 / -1;
}

.premium-contact input,
.premium-contact textarea {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f151d;
  color: var(--text);
  padding: 11px 12px;
  font: inherit;
}

.discord-preview {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(88, 101, 242, 0.34);
  background:
    radial-gradient(circle at 86% 0%, rgba(84, 215, 197, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(88, 101, 242, 0.1), rgba(69, 219, 194, 0.05)),
    #10141c;
  border-radius: 12px;
  padding: 14px;
  margin: 10px 0 14px;
  animation: panelRise 220ms ease both;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.discord-preview::before {
  content: "LIVE PREVIEW";
  position: absolute;
  top: 12px;
  right: 12px;
  color: rgba(220, 230, 246, 0.65);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.discord-message-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.discord-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #061016;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.discord-message-head strong,
.discord-message-head span {
  display: block;
}

.discord-message-head span {
  color: #b9c7dc;
  font-size: 12px;
}

.discord-embed {
  position: relative;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(151, 191, 255, 0.12);
  border-left: 4px solid #5865f2;
  background:
    linear-gradient(135deg, rgba(88, 101, 242, 0.12), transparent 58%),
    rgba(27, 31, 42, 0.9);
  border-radius: 8px;
  padding: 14px 14px 14px 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.discord-embed-line {
  position: absolute;
  inset: 0 auto 0 -4px;
  width: 4px;
  border-radius: 6px 0 0 6px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
}

.discord-embed p {
  color: #dce6f6;
  margin: 6px 0;
  white-space: pre-wrap;
}

.discord-embed small {
  color: var(--muted);
}

.discord-plain-message {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(27, 31, 42, 0.72);
  border: 1px solid rgba(151, 191, 255, 0.1);
}

.discord-plain-message p {
  margin: 0;
  color: #dce6f6;
  white-space: pre-wrap;
}

.discord-attach-preview {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.discord-attach-preview-thumb {
  min-height: 120px;
  border-radius: 8px;
  border: 1px solid rgba(151, 191, 255, 0.14);
  background: rgba(27, 31, 42, 0.85) center / cover no-repeat;
}

.discord-preview-note {
  margin-top: 8px;
}

.ws-field-gate.is-gated {
  opacity: 0.55;
}

.ws-field-gate.is-gated .field input,
.ws-field-gate.is-gated .field select,
.ws-field-gate.is-gated .field textarea {
  cursor: not-allowed;
}

.intro-inactivity-block {
  margin: 12px 0 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(84, 215, 197, 0.28);
  background: linear-gradient(135deg, rgba(84, 215, 197, 0.08), rgba(88, 101, 242, 0.06));
}

.beta-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: #0b1220;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border: 1px solid rgba(251, 191, 36, 0.5);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.25);
}

.beta-badge--inline {
  margin-left: 8px;
  vertical-align: middle;
}

.beta-badge:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.discord-components {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.discord-components button,
.discord-components span {
  min-height: 32px;
  border: 1px solid rgba(88, 101, 242, 0.34);
  border-radius: 6px;
  background: rgba(88, 101, 242, 0.16);
  color: #dce6f6;
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.discord-components button:hover {
  transform: translateY(-1px);
  border-color: rgba(84, 215, 197, 0.55);
  background: rgba(84, 215, 197, 0.16);
}

.panel[data-panel^="module-"] {
  animation: panelRise 220ms ease both;
}

.settings-group {
  animation: panelRise 180ms ease both;
}

@keyframes panelRise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.module-card-pro {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.028), transparent 45%),
    rgba(13, 17, 23, 0.44);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.module-card-pro:hover {
  transform: translateY(-2px);
  border-color: rgba(64, 196, 170, 0.4);
  background: rgba(13, 17, 23, 0.62);
}

.module-card-pro.module-off {
  opacity: 0.76;
  border-color: rgba(255, 107, 122, 0.24);
}

.audit-tools {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 0.6fr);
  gap: 10px;
  margin-top: 12px;
}

.audit-summary {
  margin-top: 12px;
}

.inventory-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.inventory-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.inventory-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(27, 35, 48, 0.72);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.inventory-card:hover {
  transform: translateY(-2px);
  border-color: rgba(64, 196, 170, 0.42);
  background: rgba(27, 35, 48, 0.92);
}

.inventory-card.missing {
  border-color: rgba(255, 107, 122, 0.3);
}

.inventory-card.partial,
.inventory-card.toggle_only {
  border-color: rgba(240, 184, 90, 0.28);
}

.inventory-top,
.inventory-meta,
.inventory-badges {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.inventory-card h4 {
  margin: 0 0 4px;
}

.inventory-badges {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.coverage-bar {
  height: 8px;
  margin: 12px 0 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(57, 71, 91, 0.72);
}

.coverage-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 240ms ease;
}

.inventory-meta small {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.inventory-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.inventory-columns ul {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}

.mini-title {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.panel-head.compact {
  margin-bottom: 0;
}

.command-files {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.command-file {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(13, 17, 23, 0.42);
}

.command-file strong,
.command-file small {
  display: block;
}

.command-file small {
  color: var(--muted);
  margin-top: 4px;
}

.plan-note {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  border: 1px solid rgba(240, 184, 90, 0.34);
  background: rgba(240, 184, 90, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
  color: #f8ddaf;
}

.plan-note span {
  color: var(--muted);
  font-size: 12px;
}

.module {
  min-height: 84px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(27, 35, 48, 0.72);
}

.module-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.switch {
  width: 56px;
  height: 32px;
  flex: 0 0 auto;
  position: relative;
}

.switch input {
  opacity: 0;
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(145deg, #3d4d62, #2a3444);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  transition:
    background 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.switch span::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.switch input:checked + span {
  background: linear-gradient(92deg, #2fd8c4, #5ae8d4, #6aa7ff);
  border-color: rgba(106, 167, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 0 18px rgba(64, 196, 170, 0.35);
}

.switch input:checked + span::after {
  transform: translateX(26px);
}

.switch input:focus-visible + span {
  outline: 2px solid rgba(106, 167, 255, 0.65);
  outline-offset: 2px;
}

/* Toggle row: OFF — [switch] — ON (verify module, welcome switches, …) */
.switch-with-hints {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.switch-with-hints .switch {
  flex-shrink: 0;
}

.switch-hint {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(159, 176, 200, 0.42);
  min-width: 30px;
  text-align: center;
  line-height: 1.2;
  transition:
    color 160ms ease,
    opacity 160ms ease;
}

.switch-with-hints:has(input:not(:checked)) .switch-hint[data-state="off"],
.switch-with-hints:has(input:checked) .switch-hint[data-state="on"] {
  color: rgba(84, 215, 197, 0.98);
  opacity: 1;
}

.switch-with-hints:has(input:checked) .switch-hint[data-state="off"],
.switch-with-hints:has(input:not(:checked)) .switch-hint[data-state="on"] {
  opacity: 0.38;
}

.switch-hint-line {
  margin: 2px 0 6px;
  font-size: 11px;
  line-height: 1.35;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 4px 0 2px;
}

.switch-row--trailing {
  justify-content: flex-end;
  width: 100%;
}

.switch-row__label {
  flex: 1;
  min-width: 140px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  line-height: 1.35;
  cursor: pointer;
}

.check-field--switch .check-field-label {
  cursor: pointer;
}

/* Stronger track so the knob is not a “floating” white dot */
.settings-block .switch span,
.check-field--switch .switch span,
.switch-with-hints .switch span {
  background: linear-gradient(145deg, rgba(52, 64, 82, 0.98), rgba(28, 36, 48, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.25);
}

.settings-block .switch input:checked + span,
.check-field--switch .switch input:checked + span,
.switch-with-hints .switch input:checked + span {
  border-color: rgba(106, 167, 255, 0.45);
}

.whitelist-form {
  margin-top: 12px;
}

.health-card {
  margin-top: 12px;
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(64, 196, 170, 0.1), transparent 44%),
    rgba(27, 35, 48, 0.76);
  overflow: hidden;
  position: relative;
  animation: cardIn 260ms ease both;
}

.health-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.035), transparent);
  transform: translateX(-100%);
  animation: sheen 4.5s ease-in-out infinite;
}

.health-card.premium-health {
  background:
    linear-gradient(135deg, rgba(240, 184, 90, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(27, 35, 48, 0.84), rgba(13, 17, 23, 0.62));
}

.health-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

.health-card.good {
  border-color: rgba(64, 196, 170, 0.52);
}

.health-card.warn {
  border-color: rgba(240, 184, 90, 0.58);
}

.health-card.bad {
  border-color: rgba(255, 107, 122, 0.58);
}

.health-card strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.score-ring {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    conic-gradient(var(--accent) calc(var(--score) * 1%), rgba(57, 71, 91, 0.55) 0),
    rgba(13, 17, 23, 0.56);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 0 26px rgba(64, 196, 170, 0.14);
  animation: ringPop 420ms ease both;
}

.health-card .score-ring {
  background:
    conic-gradient(from 215deg, #7dffe3 calc(var(--score) * 1%), rgba(57, 71, 91, 0.55) 0),
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.16), transparent 58%),
    rgba(13, 17, 23, 0.56);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 0 28px rgba(64, 196, 170, 0.38),
    0 0 52px rgba(106, 167, 255, 0.14);
  animation: ringPop 420ms ease both, healthRingShimmer 5s ease-in-out infinite;
}

.health-card.premium-health .score-ring {
  background:
    conic-gradient(from 210deg, #ffcc7a calc(var(--score) * 1%), rgba(57, 71, 91, 0.72) 0),
    radial-gradient(circle at 32% 26%, rgba(255, 230, 180, 0.22), transparent 52%),
    rgba(13, 17, 23, 0.56);
  box-shadow:
    inset 0 0 0 1px rgba(255, 210, 140, 0.14),
    0 0 36px rgba(255, 170, 80, 0.42),
    0 0 70px rgba(255, 120, 60, 0.12);
  animation: ringPop 420ms ease both, healthRingShimmerPremium 5s ease-in-out infinite;
}

@keyframes healthRingShimmer {
  0%,
  100% {
    filter: saturate(1.05) brightness(1.02);
  }

  50% {
    filter: saturate(1.15) brightness(1.08);
  }
}

@keyframes healthRingShimmerPremium {
  0%,
  100% {
    filter: saturate(1.08) brightness(1.05);
  }

  50% {
    filter: saturate(1.18) brightness(1.1);
  }
}

.score {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(13, 17, 23, 0.94);
  font-weight: 800;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(13, 17, 23, 0.42);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.metric:hover,
.system-card:hover,
.score-row:hover {
  transform: translateY(-1px);
  border-color: rgba(64, 196, 170, 0.38);
  background: rgba(13, 17, 23, 0.58);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.ops-metric small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.score-breakdown {
  margin-top: 12px;
}

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

.score-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(13, 17, 23, 0.42);
}

.score-row span,
.score-row strong,
.score-row small {
  display: block;
}

.score-row span,
.score-row small {
  color: var(--muted);
  font-size: 12px;
}

.system-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(13, 17, 23, 0.42);
}

.system-card.good {
  border-color: rgba(64, 196, 170, 0.34);
}

.system-card.warn {
  border-color: rgba(240, 184, 90, 0.42);
}

.system-card.off {
  border-color: rgba(255, 107, 122, 0.34);
}

.system-card strong,
.system-card span,
.system-card small,
.action-row span,
.action-row strong,
.action-row small {
  display: block;
}

.system-card span,
.system-card small,
.action-row span,
.action-row small {
  color: var(--muted);
  font-size: 12px;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 42px 42px, 42px 42px, 0 0; }
}

@keyframes barLoad {
  from { width: 0; filter: brightness(0.8); }
  to { filter: brightness(1.1); }
}

@keyframes ringPop {
  from {
    opacity: 0;
    transform: scale(0.92) rotate(-10deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(240, 184, 90, 0);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(240, 184, 90, 0.16);
  }
}

@keyframes skeletonSweep {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

@keyframes panelEnter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.992);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes sheen {
  0%, 55% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.system-metrics {
  display: grid;
  gap: 3px;
  margin-top: 8px;
}

.health-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.health-lists h4,
.ops-grid h4,
.live-section h4 {
  margin: 0 0 8px;
  font-size: 14px;
}

.health-lists ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.action-list {
  display: grid;
  gap: 8px;
}

.live-section {
  min-width: 0;
}

.live-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.live-section-head h4 {
  margin: 0;
}

.empty-inline {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(13, 17, 23, 0.28);
}

.empty-inline strong,
.empty-inline span {
  display: block;
}

.empty-inline span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.action-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(13, 17, 23, 0.42);
  overflow-wrap: anywhere;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.inline-actions .mini {
  min-height: 32px;
  padding: 0 10px;
}

.mini-input {
  min-height: 32px;
  width: 155px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 12, 18, 0.72);
  color: var(--text);
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
}

.mini-input.tiny {
  width: 64px;
}

.danger-lite {
  border-color: rgba(255, 105, 120, 0.45);
  color: #ffd6dc;
}

.danger-lite:hover {
  border-color: rgba(255, 105, 120, 0.85);
  box-shadow: 0 12px 30px rgba(255, 105, 120, 0.12);
}

.live-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.observability-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 12px 0 14px;
  border: 1px solid rgba(84, 215, 197, 0.24);
  border-radius: 12px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(84, 215, 197, 0.12), rgba(106, 167, 255, 0.07)),
    rgba(13, 17, 23, 0.62);
  box-shadow: 0 24px 74px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.observability-hero h3 {
  margin: 4px 0;
  font-size: 24px;
}

.observability-ring {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 10px solid rgba(84, 215, 197, 0.72);
  background: rgba(5, 10, 18, 0.72);
  box-shadow: 0 0 0 1px rgba(84, 215, 197, 0.2), 0 18px 44px rgba(0, 0, 0, 0.24);
  animation: ringPop 260ms ease both, softPulse 2.8s ease-in-out infinite;
}

.observability-ring strong,
.observability-ring span {
  display: block;
  text-align: center;
}

.observability-ring span {
  color: var(--muted);
  font-size: 12px;
}

.observability-grid .live-section {
  border: 1px solid rgba(151, 191, 255, 0.14);
  border-radius: 10px;
  padding: 12px;
  background: rgba(8, 13, 22, 0.42);
}

.action-row.warn-row {
  border-color: rgba(255, 196, 95, 0.32);
  background: rgba(255, 196, 95, 0.06);
}

.action-row.danger-row,
.danger-soft-card {
  border-color: rgba(255, 107, 122, 0.36);
  background: rgba(255, 107, 122, 0.08);
}

.error-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.audit-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  content-visibility: auto;
  contain-intrinsic-size: 320px 1600px;
}

.audit-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(13, 17, 23, 0.42);
}

.audit-row span,
.audit-row strong,
.audit-row small {
  display: block;
}

.audit-row span,
.audit-row small {
  color: var(--muted);
  font-size: 12px;
}

.error-row {
  border: 1px solid rgba(255, 107, 122, 0.28);
  border-radius: 8px;
  padding: 12px;
  background: rgba(13, 17, 23, 0.52);
}

.error-row span,
.error-row pre {
  color: var(--muted);
}

.error-row strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.error-row pre {
  max-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 12px;
  margin: 10px 0 0;
}

.settings-form,
.settings-group {
  display: grid;
  gap: 14px;
}

.section-tabs {
  position: sticky;
  top: 12px;
  z-index: 4;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px;
  border: 1px solid rgba(84, 215, 197, 0.18);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(84, 215, 197, 0.1), rgba(106, 167, 255, 0.05)),
    rgba(7, 13, 22, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.section-tab {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(151, 191, 255, 0.17);
  border-radius: 999px;
  background: rgba(13, 17, 23, 0.58);
  color: var(--muted);
  padding: 0 13px 0 8px;
  font: inherit;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.section-tab span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(151, 191, 255, 0.12);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.section-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(84, 215, 197, 0.38);
  color: var(--text);
}

.section-tab.active {
  border-color: rgba(84, 215, 197, 0.58);
  background: linear-gradient(135deg, rgba(84, 215, 197, 0.22), rgba(106, 167, 255, 0.13));
  color: var(--text);
  box-shadow: 0 0 0 3px rgba(84, 215, 197, 0.08);
}

.section-tab.active span {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #041017;
}

.settings-group[hidden],
.settings-block[hidden] {
  display: none;
}

.settings-group {
  margin-top: 12px;
  animation: tabPanelIn 180ms ease both;
}

.settings-block {
  position: relative;
  overflow: hidden;
  border-color: rgba(84, 215, 197, 0.2);
  background:
    linear-gradient(135deg, rgba(84, 215, 197, 0.07), transparent 46%),
    rgba(13, 17, 23, 0.58);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.18);
}

.settings-block::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2), transparent);
  opacity: 0.78;
}

.settings-block h4,
.settings-group h4 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-block h4::before,
.settings-group h4::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(84, 215, 197, 0.7);
}

.panel[data-panel^="module-"] .settings-group,
.panel[data-panel="premium"] .premium-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(84, 215, 197, 0.18);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.panel[data-panel^="module-"] .settings-group:hover,
.panel[data-panel="premium"] .premium-panel:hover,
.settings-block:hover {
  transform: translateY(-1px);
  border-color: rgba(84, 215, 197, 0.34);
  box-shadow: 0 28px 82px rgba(0, 0, 0, 0.24);
}

.panel[data-panel^="module-"] .settings-group::before,
.panel[data-panel="premium"] .premium-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(84, 215, 197, 0), rgba(84, 215, 197, 0.85), rgba(255, 190, 91, 0.8), rgba(84, 215, 197, 0));
  transform: translateX(-45%);
  animation: scanLine 4s ease-in-out infinite;
}

.panel[data-panel^="module-"] input,
.panel[data-panel^="module-"] textarea,
.panel[data-panel^="module-"] select {
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.panel[data-panel^="module-"] input:focus,
.panel[data-panel^="module-"] textarea:focus,
.panel[data-panel^="module-"] select:focus {
  border-color: rgba(84, 215, 197, 0.7);
  box-shadow: 0 0 0 3px rgba(84, 215, 197, 0.12);
}

@keyframes scanLine {
  0%, 100% { transform: translateX(-45%); opacity: 0.35; }
  50% { transform: translateX(45%); opacity: 1; }
}

@keyframes tabPanelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.settings-group h4 {
  margin: 0;
  font-size: 14px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.category-list {
  display: grid;
  gap: 8px;
}

.category-row,
.blacklist-row,
.macro-row {
  display: grid;
  grid-template-columns: 0.7fr 1fr 0.5fr 1.4fr 0.8fr 0.5fr auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(13, 17, 23, 0.42);
}

.category-row.category-row--form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 12px 14px;
  align-items: end;
  border-radius: 10px;
  padding: 12px 14px;
}

.category-row.category-row--form.category-create {
  border-style: dashed;
}

.category-field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(159, 176, 200, 0.95);
  margin-bottom: 5px;
}

.category-field--emoji {
  max-width: 100px;
}

.category-field--stretch {
  grid-column: 1 / -1;
}

.category-field--check .check-field.compact {
  margin-top: 0;
}

.category-field--action .category-field-label {
  visibility: hidden;
}

.blacklist-row {
  grid-template-columns: 1fr 1.5fr auto;
}

.macro-row {
  grid-template-columns: minmax(140px, 0.35fr) minmax(220px, 1fr) auto;
}

.reward-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.reward-head,
.mini-metrics,
.leaderboard-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.reward-list,
.leaderboard-preview,
.announcement-button-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.reward-row,
.announcement-button-row {
  display: grid;
  grid-template-columns: 0.8fr 1fr auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(13, 17, 23, 0.42);
}

.giveaway-list,
.event-list {
  display: grid;
  gap: 12px;
}

.giveaway-row,
.event-row {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(13, 17, 23, 0.48);
}

.giveaway-row-head,
.event-row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.nested-settings {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.cmdpolicy-pick .cmdpolicy-chip-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 8px;
  margin: 6px 0 8px;
}

.cmdpolicy-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(7, 13, 20, 0.55);
  font-size: 0.85rem;
  max-width: 100%;
}

.cmdpolicy-chip-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 16rem;
}

.cmdpolicy-chip-x {
  padding: 0 6px;
  min-width: auto;
  line-height: 1.2;
}

.cmdpolicy-add-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.cmdpolicy-add-row .mini-input {
  flex: 1 1 12rem;
  min-width: 10rem;
}

.acf-panel-embed {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.acf-settings-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.acf-panel-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  background:
    linear-gradient(145deg, rgba(69, 168, 255, 0.06), transparent 55%),
    rgba(7, 13, 20, 0.35);
}

.acf-panel-head {
  margin-bottom: 12px;
}

.acf-section-title {
  margin: 0 0 4px;
}

.acf-limits-pill {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(7, 13, 20, 0.45);
}

.acf-options-grid {
  margin-top: 4px;
}

.acf-lists-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 760px) {
  .acf-lists-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .acf-list-field--regex {
    grid-column: 1 / -1;
  }
}

.acf-list-field {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.18);
}

.acf-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.acf-list-label {
  font-weight: 600;
  font-size: 0.92rem;
}

.acf-chip-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
  margin-bottom: 10px;
}

.acf-chip-tray-empty {
  font-style: italic;
  padding: 2px 0;
}

.acf-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(69, 168, 255, 0.35);
  background: rgba(69, 168, 255, 0.1);
  font-size: 0.85rem;
  max-width: 100%;
}

.acf-chip-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 14rem;
}

.acf-chip-x {
  padding: 0 6px;
  min-width: auto;
  line-height: 1.2;
}

.acf-add-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.acf-add-row .mini-input,
.acf-add-row .acf-add-input {
  flex: 1 1 10rem;
  min-width: 8rem;
}

.acf-add-btn {
  min-width: 2.25rem;
  font-size: 1.1rem;
  line-height: 1;
  padding: 6px 10px;
}

.acf-add-row--regex {
  display: grid;
  grid-template-columns: minmax(6rem, 0.9fr) minmax(8rem, 1.4fr) auto;
  gap: 8px;
}

.acf-add-feedback[data-tone="ok"] {
  color: var(--ok, #3dd68c);
}

.acf-add-feedback[data-tone="warn"] {
  color: var(--warn, #f0b429);
}

.acf-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.acf-preset-btn {
  border-radius: 999px;
}

.acf-simulate-block {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.acf-save-bar {
  position: sticky;
  bottom: 12px;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(69, 168, 255, 0.45);
  background: rgba(10, 18, 28, 0.96);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.acf-save-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.acf-settings-form:has(#acfSaveBar:not([hidden])) .acf-form-submit {
  display: none;
}

.giveaway-studio {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px 18px;
  margin-bottom: 20px;
  background:
    linear-gradient(135deg, rgba(69, 168, 255, 0.08), transparent 48%),
    linear-gradient(210deg, rgba(69, 219, 194, 0.06), transparent 55%),
    rgba(13, 17, 23, 0.55);
  box-shadow: var(--glow);
}

.giveaway-studio-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.giveaway-studio-title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.giveaway-studio-lead {
  max-width: 52rem;
  margin: 0;
  line-height: 1.45;
}

.giveaway-studio-badge {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(7, 13, 20, 0.65);
  white-space: nowrap;
}

.giveaway-launch-form .wizard-section {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 14px 14px;
  margin-bottom: 12px;
  background: rgba(7, 13, 20, 0.35);
}

.giveaway-launch-form .wizard-section summary {
  cursor: pointer;
  font-weight: 600;
  padding: 6px 0;
  list-style: none;
}

.giveaway-launch-form .wizard-section summary::-webkit-details-marker {
  display: none;
}

.giveaway-studio-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 6px;
}

.giveaway-studio-hint {
  max-width: 40rem;
  margin: 0;
  line-height: 1.4;
}

.participants-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--muted);
}

.participants-box p {
  overflow-wrap: anywhere;
}

.mini-metrics {
  flex-wrap: wrap;
  justify-content: flex-start;
  color: var(--muted);
  font-size: 12px;
}

.mini-metrics span,
.leaderboard-row {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(69, 211, 184, 0.08);
  padding: 7px 10px;
}

.leaderboard-row {
  border-radius: 8px;
}

.category-create {
  border-style: dashed;
}

.category-row input,
.blacklist-row input,
.macro-row input,
.macro-row textarea,
.reward-row input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f151d;
  color: var(--text);
  padding: 0 10px;
  font: inherit;
}

.category-row input,
.blacklist-row input,
.macro-row input,
.reward-row input {
  height: 36px;
}

.macro-row textarea {
  min-height: 42px;
  padding: 9px 10px;
  resize: vertical;
}

.category-remove {
  border-color: rgba(255, 107, 122, 0.34);
  color: #ffd8dd;
}

.check-field.compact {
  min-height: 32px;
}

.field {
  display: grid;
  gap: 6px;
}

.check-field {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.check-field.check-field--switch {
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.check-field.check-field--switch:last-child {
  border-bottom: none;
}

.check-field.check-field--switch .check-field-label {
  flex: 1;
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  line-height: 1.35;
}

.check-field.check-field--switch .switch {
  flex-shrink: 0;
}

.field span {
  color: var(--muted);
  font-size: 12px;
}

.field-limit {
  color: rgba(160, 178, 201, 0.68);
  font-size: 11px;
  line-height: 1.2;
}

.field input,
.field select {
  width: 100%;
  min-width: 0;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f151d;
  color: var(--text);
  padding: 0 12px;
  font: inherit;
}

.field input:invalid {
  border-color: rgba(255, 107, 122, 0.72);
  box-shadow: 0 0 0 3px rgba(255, 107, 122, 0.12);
}

.field input:invalid + .field-limit {
  color: #ffb5bf;
}

.field textarea {
  width: 100%;
  min-width: 0;
  min-height: 94px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f151d;
  color: var(--text);
  padding: 11px 12px;
  font: inherit;
  line-height: 1.45;
}

.wide-field {
  grid-column: span 2;
}

.field input[type="color"] {
  padding: 5px;
}

.check-field > input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.save-settings {
  justify-self: start;
}

.limit-guard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.limit-guard article {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(84, 215, 197, 0.22);
  border-radius: 12px;
  padding: 13px;
  background:
    linear-gradient(135deg, rgba(84, 215, 197, 0.14), transparent 42%),
    rgba(13, 17, 23, 0.54);
}

.limit-guard article::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% 10%;
  height: 46px;
  background: radial-gradient(circle, rgba(84, 215, 197, 0.28), transparent 62%);
  animation: guardPulse 3.5s ease-in-out infinite;
}

.limit-guard span,
.limit-guard small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.limit-guard strong {
  display: block;
  margin: 5px 0;
  color: var(--text);
  font-size: 17px;
}

@keyframes guardPulse {
  0%, 100% { transform: translateX(-10%); opacity: 0.45; }
  50% { transform: translateX(10%); opacity: 0.9; }
}

.whitelist-form input {
  min-width: 0;
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f151d;
  color: var(--text);
  padding: 0 12px;
  font: inherit;
}

.whitelist-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(13, 17, 23, 0.42);
  overflow-wrap: anywhere;
}

.mini {
  margin-top: 0;
  color: var(--text);
  padding: 0 12px;
}

.mini.danger {
  border-color: rgba(255, 107, 122, 0.42);
  color: var(--danger);
  background: rgba(255, 107, 122, 0.08);
}

.confirm-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.confirm-layer[hidden] {
  display: none;
}

.confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 12, 0.68);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 160ms ease;
}

.confirm-dialog {
  position: relative;
  width: min(460px, 100%);
  border: 1px solid rgba(64, 196, 170, 0.34);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(27, 35, 48, 0.98), rgba(13, 17, 23, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  padding: 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 160ms ease, transform 160ms ease;
}

.confirm-layer.open .confirm-backdrop,
.confirm-layer.open .confirm-dialog {
  opacity: 1;
}

.confirm-layer.open .confirm-dialog {
  transform: translateY(0) scale(1);
}

.confirm-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(240, 184, 90, 0.48);
  color: var(--warn);
  background: rgba(240, 184, 90, 0.1);
  font-weight: 800;
}

.confirm-dialog h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.confirm-dialog p {
  color: var(--muted);
  line-height: 1.45;
}

.confirm-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.confirm-layer.open .backup-preview-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.wizard-setup-style-layer {
  z-index: 90;
}

.wizard-setup-style-dialog.wizard-setup-style-dialog {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(480px, 100%);
  grid-template-columns: none;
}

.wizard-setup-style-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 18px;
  border: 1px solid rgba(84, 215, 197, 0.45);
  background: rgba(84, 215, 197, 0.12);
  color: #bff8ee;
  flex-shrink: 0;
}

.wizard-setup-style-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.wizard-setup-style-actions .button {
  width: 100%;
  justify-content: center;
}

.wizard-setup-style-actions .mini {
  align-self: flex-start;
  margin-top: 4px;
}

.wizard-default-tier-layer {
  z-index: 91;
}

.wizard-default-tier-actions .wizard-default-tier-pick {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  padding: 12px 14px;
}

.wizard-default-tier-name {
  font-weight: 800;
  font-size: 14px;
}

.wizard-default-tier-sub {
  display: block;
  line-height: 1.4;
}

.wizard-setup-style-actions .wizard-setup-style-manual.button.ghost {
  border: 1px solid rgba(151, 191, 255, 0.42);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(232, 240, 255, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.wizard-setup-style-actions .wizard-setup-style-manual.button.ghost:hover {
  border-color: rgba(180, 210, 255, 0.55);
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
}

.backup-preview-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: 88vh;
  border: 1px solid rgba(64, 196, 170, 0.34);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(27, 35, 48, 0.98), rgba(13, 17, 23, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 160ms ease, transform 160ms ease;
}

.backup-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.backup-preview-head h2 {
  margin: 0;
  font-size: 18px;
}

.backup-preview-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.backup-preview-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(64, 196, 170, 0.24);
  font-size: 12px;
  color: var(--muted);
  background: rgba(8, 12, 18, 0.45);
}

.backup-preview-scroll {
  overflow: auto;
  max-height: min(52vh, 480px);
  border: 1px solid rgba(64, 196, 170, 0.18);
  border-radius: 8px;
  background: rgba(6, 10, 14, 0.42);
}

.backup-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.backup-preview-table th,
.backup-preview-table td {
  padding: 7px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}

.backup-preview-table th {
  position: sticky;
  top: 0;
  background: rgba(18, 24, 32, 0.95);
  z-index: 1;
  font-weight: 600;
  color: var(--muted);
}

.backup-preview-actions {
  margin-top: 6px;
}

.backup-scheduler-strip {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(64, 196, 170, 0.14);
}

.button.danger-confirm {
  background: linear-gradient(135deg, rgba(255, 107, 122, 0.92), rgba(240, 184, 90, 0.82));
  color: #17070a;
}

.button.danger-button {
  background: linear-gradient(135deg, rgba(255, 107, 122, 0.92), rgba(240, 184, 90, 0.82));
  border-color: rgba(255, 143, 143, 0.58);
  color: #17070a;
}

.observability-ring.danger-ring {
  border-color: rgba(255, 118, 118, 0.58);
  box-shadow: 0 0 0 1px rgba(255, 118, 118, 0.22), 0 18px 48px rgba(255, 95, 95, 0.18);
}

/* Final dashboard polish pass */
::selection {
  color: #f7fbff;
  background: rgba(105, 168, 255, 0.26);
  text-shadow: none;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(84, 215, 197, 0.45) rgba(8, 13, 20, 0.72);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(8, 13, 20, 0.72);
}

::-webkit-scrollbar-thumb {
  border: 2px solid rgba(8, 13, 20, 0.72);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(84, 215, 197, 0.72), rgba(106, 167, 255, 0.62));
}

.content {
  animation: dashboardFade 260ms ease both;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
}

.mark,
.avatar,
.server-mark {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 34px rgba(0, 0, 0, 0.18);
}

.nav:hover,
.account-button:hover,
.dropdown-item:hover {
  border-color: rgba(84, 215, 197, 0.42);
}

.button,
.server-action,
.mini,
.account-button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.button::before,
.server-action::before,
.mini::before,
.account-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 0 32%, rgba(255, 255, 255, 0.18) 45%, transparent 58% 100%);
  opacity: 0;
  transform: translateX(-110%);
  transition: opacity 180ms ease, transform 420ms ease;
}

.button:hover::before,
.server-action:hover::before,
.mini:hover::before,
.account-button:hover::before {
  opacity: 1;
  transform: translateX(110%);
}

.button:active,
.server-action:active,
.mini:active,
.account-button:active,
.section-tab:active {
  transform: translateY(0) scale(0.985);
}

.status,
.notice,
.user,
.details,
.server,
.panel,
.settings-block,
.settings-group,
.live-section,
.system-card,
.score-row,
.action-row,
.invoice-row,
.inventory-card,
.module-card-pro,
.discord-preview,
.premium-panel {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 18px 54px rgba(0, 0, 0, 0.16);
}

.details {
  overflow: hidden;
}

.details::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(84, 215, 197, 0.72), rgba(255, 196, 95, 0.38), transparent);
  opacity: 0.7;
}

.details-head {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(151, 191, 255, 0.12);
}

.panel {
  border-top-color: rgba(151, 191, 255, 0.13);
}

.panel[hidden] {
  animation: none;
}

.panel-head,
.live-section-head {
  padding-bottom: 4px;
}

.module-center-hero,
.wizard-hero,
.overview-hero,
.activity-feed,
.access-guard,
.smart-recommendations,
.module-hero {
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.module-hero,
.overview-hero,
.wizard-hero {
  animation: panelRise 260ms ease both, premiumBreathe 7s ease-in-out infinite;
}

.module-metric,
.recommendation,
.activity-feed-list article,
.coverage-matrix-grid article,
.ready-card,
.limit-card,
.premium-tier,
.wizard-step,
.system-card,
.score-row,
.action-row {
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease, box-shadow 170ms ease;
}

.module-metric:hover,
.activity-feed-list article:hover,
.coverage-matrix-grid article:hover,
.ready-card:hover,
.limit-card:hover,
.premium-tier:hover,
.wizard-step:hover,
.system-card:hover,
.score-row:hover,
.action-row:hover {
  transform: translateY(-2px);
  border-color: rgba(84, 215, 197, 0.34);
  background-color: rgba(18, 29, 43, 0.72);
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.2);
}

.server {
  will-change: transform;
}

.server.selected {
  box-shadow: 0 0 0 1px rgba(84, 215, 197, 0.24), 0 22px 70px rgba(0, 0, 0, 0.26);
}

.server.premium-server.selected {
  box-shadow: 0 0 0 1px rgba(255, 196, 95, 0.28), 0 22px 70px rgba(240, 184, 90, 0.13), 0 22px 70px rgba(0, 0, 0, 0.24);
}

.badge.live,
.badge.access,
.status-pill,
.health-pill,
.section-tab.active span {
  animation: softPulse 2.5s ease-in-out infinite;
}

input,
select,
textarea,
.mini-input {
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease, transform 150ms ease;
}

input:hover,
select:hover,
textarea:hover,
.mini-input:hover {
  border-color: rgba(151, 191, 255, 0.28);
}

input:focus,
select:focus,
textarea:focus,
.mini-input:focus {
  border-color: rgba(84, 215, 197, 0.72);
  box-shadow: 0 0 0 3px rgba(84, 215, 197, 0.12), 0 12px 34px rgba(0, 0, 0, 0.18);
  background: rgba(6, 12, 20, 0.86);
}

label:has(input[type="checkbox"]) {
  transition: color 150ms ease, transform 150ms ease;
}

label:has(input[type="checkbox"]:checked) {
  color: #dffcf6;
}

label:has(input[type="checkbox"]):hover {
  transform: translateX(2px);
}

input[type="checkbox"] {
  accent-color: var(--accent);
}

.section-tabs {
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.section-tab {
  position: relative;
}

.section-tab.active {
  animation: activeTabGlow 2.8s ease-in-out infinite;
}

.toast {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.toast::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: left center;
  animation: toastTimer var(--toast-progress-ms, 4200ms) linear both;
}

.toast.error::after {
  background: linear-gradient(90deg, var(--danger), var(--warn));
}

.toast.warning::after {
  background: linear-gradient(90deg, var(--warn), #ffc46d);
}

.confirm-backdrop {
  background:
    linear-gradient(135deg, rgba(69, 219, 194, 0.08), rgba(106, 167, 255, 0.05)),
    rgba(5, 8, 12, 0.72);
}

.confirm-dialog {
  border-radius: 14px;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.discord-preview {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.discord-preview:hover {
  transform: translateY(-1px);
  border-color: rgba(88, 101, 242, 0.58);
  box-shadow: 0 26px 82px rgba(0, 0, 0, 0.28);
}

.action-row .inline-actions {
  opacity: 0.92;
  transition: opacity 160ms ease;
}

.action-row:hover .inline-actions {
  opacity: 1;
}

.empty-inline {
  position: relative;
  overflow: hidden;
}

.empty-inline::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 40%, rgba(255, 255, 255, 0.05) 50%, transparent 60% 100%);
  transform: translateX(-110%);
  animation: calmSheen 6s ease-in-out infinite;
}

@keyframes dashboardFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes premiumBreathe {
  0%, 100% { border-color: rgba(84, 215, 197, 0.28); }
  50% { border-color: rgba(106, 167, 255, 0.36); }
}

@keyframes softPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(84, 215, 197, 0); }
  50% { box-shadow: 0 0 0 4px rgba(84, 215, 197, 0.12); }
}

@keyframes activeTabGlow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(84, 215, 197, 0.08); }
  50% { box-shadow: 0 0 0 5px rgba(84, 215, 197, 0.13); }
}

@keyframes toastTimer {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

@keyframes calmSheen {
  0%, 62% { transform: translateX(-110%); }
  100% { transform: translateX(110%); }
}

/* Professional refinement pass */
:root {
  --glow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

body::before {
  opacity: 0.48;
  animation-duration: 32s;
}

body::after {
  background: linear-gradient(180deg, transparent, rgba(7, 13, 20, 0.36));
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(12, 20, 31, 0.94), rgba(6, 10, 16, 0.9)),
    var(--glass);
}

.sidebar::after,
.details::before {
  opacity: 0.44;
}

.brand,
.nav,
.button,
.icon-button,
.server-action,
.mini,
.account-button,
.dropdown-item,
input,
select,
textarea,
.mini-input {
  border-color: rgba(151, 191, 255, 0.14);
}

.status,
.notice,
.user,
.details,
.server,
.panel,
.settings-block,
.settings-group,
.live-section,
.system-card,
.score-row,
.action-row,
.invoice-row,
.inventory-card,
.module-card-pro,
.discord-preview,
.premium-panel,
.ready-card,
.limit-card,
.premium-tier,
.wizard-step,
.module-metric,
.recommendation,
.activity-feed-list article,
.coverage-matrix-grid article {
  background-color: rgba(13, 21, 32, 0.78);
  border-color: rgba(151, 191, 255, 0.12);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.028);
}

.module-center-hero,
.wizard-hero,
.overview-hero,
.activity-feed,
.access-guard,
.smart-recommendations,
.module-hero,
.premium-hero-copy,
.premium-status-card {
  border-color: rgba(151, 191, 255, 0.14);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.module-hero,
.overview-hero,
.wizard-hero,
.section-tab.active {
  animation: panelRise 260ms ease both;
}

.badge.live,
.badge.access,
.status-pill,
.health-pill,
.section-tab.active span {
  animation: none;
  box-shadow: none;
}

.button::before,
.server-action::before,
.mini::before,
.account-button::before,
.empty-inline::after {
  opacity: 0;
  animation: none;
}

.button:hover::before,
.server-action:hover::before,
.mini:hover::before,
.account-button:hover::before {
  opacity: 0.34;
}

.module-metric:hover,
.activity-feed-list article:hover,
.coverage-matrix-grid article:hover,
.ready-card:hover,
.limit-card:hover,
.premium-tier:hover,
.wizard-step:hover,
.system-card:hover,
.score-row:hover,
.action-row:hover,
.discord-preview:hover {
  transform: translateY(-1px);
  border-color: rgba(84, 215, 197, 0.26);
  background-color: rgba(16, 27, 40, 0.84);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.2);
}

.server.selected {
  border-color: rgba(84, 215, 197, 0.34);
  box-shadow: 0 0 0 1px rgba(84, 215, 197, 0.16), 0 16px 46px rgba(0, 0, 0, 0.22);
}

.server.premium-server.selected {
  border-color: rgba(255, 196, 95, 0.32);
  box-shadow: 0 0 0 1px rgba(255, 196, 95, 0.18), 0 16px 46px rgba(0, 0, 0, 0.22);
}

input:focus,
select:focus,
textarea:focus,
.mini-input:focus {
  box-shadow: 0 0 0 3px rgba(84, 215, 197, 0.1);
}

.confirm-dialog {
  box-shadow: 0 24px 74px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Interface consistency pass */
h1,
.overview-hero h3,
.wizard-hero h3,
.premium-panel h3 {
  line-height: 1.08;
}

.details h2,
.panel h3,
.server h2,
.settings-group h4,
.settings-block h4 {
  line-height: 1.2;
}

.topbar p,
.details p,
.panel p,
.empty-state,
.loading,
.command-row small {
  line-height: 1.5;
}

.eyebrow,
.mini-title,
.setup-card span,
.badge,
.status-pill,
.health-pill {
  letter-spacing: 0;
}

.button,
.mini,
.server-action,
.account-button,
.nav,
.command-row {
  font-weight: 700;
}

.mini,
.server-action {
  min-height: 36px;
  margin-top: 0;
}

.actions .mini,
.actions .button,
.details-actions .mini,
.details-actions .button,
.module-actions .mini,
.module-actions .button,
.premium-actions .mini,
.premium-actions .button {
  margin-top: 0;
}

.panel-head,
.details-head {
  align-items: flex-start;
}

.panel-head > div:first-child,
.details-head > div:first-child,
.details-head-row > div:first-child,
.module-center-hero > div:first-child,
.overview-hero > div:first-child,
.wizard-hero > div:first-child,
.premium-panel > div:first-child {
  min-width: 0;
}

.badge,
.status-pill,
.health-pill,
.module-summary span,
.mini-metrics span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.settings-block::before {
  opacity: 0.48;
}

.settings-block h4::before,
.settings-group h4::before {
  width: 6px;
  height: 6px;
  box-shadow: none;
}

.panel[data-panel^="module-"] .settings-group::before,
.panel[data-panel="premium"] .premium-panel::before {
  opacity: 0.28;
  animation: none;
  transform: none;
}

.category-row,
.blacklist-row,
.macro-row,
.reward-row,
.announcement-button-row,
.giveaway-row,
.event-row,
.leaderboard-row,
.command-row {
  border-color: rgba(151, 191, 255, 0.12);
  background: rgba(10, 17, 27, 0.58);
}

.category-row:hover,
.blacklist-row:hover,
.macro-row:hover,
.reward-row:hover,
.announcement-button-row:hover,
.giveaway-row:hover,
.event-row:hover,
.leaderboard-row:hover,
.command-row:hover,
.command-row.active {
  border-color: rgba(84, 215, 197, 0.24);
  background: rgba(16, 27, 40, 0.78);
}

.field input,
.field select,
.field textarea,
.category-row input,
.blacklist-row input,
.macro-row input,
.macro-row textarea,
.reward-row input,
#commandSearch {
  background: rgba(5, 10, 18, 0.68);
}

.empty-state,
.loading,
.empty-inline,
.command-empty {
  color: rgba(159, 176, 200, 0.92);
}

.skeleton-card,
.skeleton-line {
  opacity: 0.82;
}

.notice strong,
.setup-card strong,
.empty-state strong,
.empty-inline strong {
  color: #f2f7ff;
}

/* Form and data density pass */
.field {
  gap: 7px;
}

.field span,
label,
.switch-label {
  color: rgba(207, 219, 236, 0.92);
  line-height: 1.35;
}

.field input,
.field select,
.field textarea,
.mini-input,
#commandSearch {
  min-height: 38px;
  border-color: rgba(151, 191, 255, 0.14);
}

.field textarea,
.macro-row textarea,
.premium-contact textarea {
  min-height: 92px;
  line-height: 1.45;
  padding-top: 10px;
  padding-bottom: 10px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder,
.mini-input::placeholder,
#commandSearch::placeholder {
  color: rgba(159, 176, 200, 0.58);
}

.field-limit,
.plan-note span,
.inventory-meta small,
.command-file small {
  line-height: 1.45;
}

.category-row,
.blacklist-row,
.macro-row,
.reward-row,
.announcement-button-row {
  align-items: start;
}

.category-row > *,
.blacklist-row > *,
.macro-row > *,
.reward-row > *,
.announcement-button-row > * {
  min-width: 0;
}

.giveaway-row-head,
.event-row-head,
.inventory-top,
.inventory-meta,
.inventory-badges,
.reward-head,
.mini-metrics,
.leaderboard-row {
  align-items: center;
}

.audit-row,
.invoice-row,
.inventory-card,
.command-file,
.module-card-pro {
  border-color: rgba(151, 191, 255, 0.12);
  background: rgba(10, 17, 27, 0.58);
}

.audit-row:hover,
.invoice-row:hover,
.inventory-card:hover,
.command-file:hover,
.module-card-pro:hover {
  border-color: rgba(84, 215, 197, 0.24);
  background: rgba(16, 27, 40, 0.78);
  transform: translateY(-1px);
}

.section-tabs {
  border-color: rgba(151, 191, 255, 0.12);
  background: rgba(8, 14, 22, 0.54);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.028);
}

.section-tab {
  min-height: 38px;
  color: rgba(207, 219, 236, 0.82);
}

.section-tab:hover {
  color: #f2f7ff;
}

.section-tab.active {
  color: #061016;
}

.wizard-start {
  min-height: 58px;
  text-transform: none;
}

.wizard-step-board,
.setup-nav,
.module-preview,
.plan-note {
  border-color: rgba(151, 191, 255, 0.13);
}

/* Interaction polish pass */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.switch input:focus-visible + span {
  outline: 2px solid rgba(84, 215, 197, 0.72);
  outline-offset: 3px;
}

.wizard-start:focus-visible,
.wizard-module-guide:focus-visible,
.wizard-pill:focus-visible,
.setup-nav .button:focus-visible,
.setup-nav .mini:focus-visible {
  outline: 3px solid rgba(120, 240, 255, 0.92);
  outline-offset: 4px;
  box-shadow: 0 0 0 2px rgba(6, 16, 22, 0.95), 0 0 22px rgba(84, 215, 197, 0.35);
}

#configNav .nav:focus-visible {
  outline: 2px solid rgba(120, 240, 255, 0.88);
  outline-offset: 3px;
  z-index: 1;
}

.nav:disabled,
.button:disabled,
.icon-button:disabled,
.server-action:disabled,
.mini:disabled,
.notice-close:disabled,
.button.disabled {
  cursor: not-allowed;
  filter: saturate(0.82);
}

.button:disabled,
.icon-button:disabled,
.server-action:disabled,
.mini:disabled,
.notice-close:disabled {
  transform: none;
}

.icon-button,
.notice-close,
.toast button {
  display: inline-grid;
  place-items: center;
}

.notice-close,
.toast button {
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.notice-close:hover,
.toast button:hover {
  color: #f2f7ff;
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.account-dropdown,
.command-dialog,
.confirm-dialog,
.toast {
  border-color: rgba(151, 191, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(16, 25, 38, 0.98), rgba(8, 14, 22, 0.98)),
    rgba(9, 15, 24, 0.98);
}

.account-dropdown {
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.dropdown-item {
  display: flex;
  align-items: center;
  color: rgba(238, 244, 255, 0.9);
}

.dropdown-item:hover,
.dropdown-item:focus-visible {
  color: #f2f7ff;
  background: rgba(84, 215, 197, 0.1);
}

.command-backdrop,
.confirm-backdrop {
  background: rgba(3, 7, 12, 0.76);
  backdrop-filter: blur(10px);
}

.command-dialog,
.confirm-dialog {
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.command-head h2,
.confirm-dialog h2 {
  line-height: 1.18;
}

.toast {
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.toast span {
  line-height: 1.45;
}

.switch span {
  background: rgba(57, 71, 91, 0.82);
  border-color: rgba(151, 191, 255, 0.16);
}

.switch span::after {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.32);
}

.switch input:checked + span {
  background: linear-gradient(135deg, rgba(84, 215, 197, 0.95), rgba(106, 167, 255, 0.86));
  border-color: rgba(84, 215, 197, 0.54);
}

.health-card::before {
  opacity: 0.4;
  animation: none;
}

.score-ring,
.premium-health .score-ring {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Public pages and footer */
.site-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding: 14px 0 2px;
  border-top: 1px solid rgba(151, 191, 255, 0.1);
  color: rgba(159, 176, 200, 0.78);
  font-size: 12px;
}

.site-footer span:first-child {
  margin-right: auto;
}

.site-footer .footer-version {
  padding: 3px 8px;
  border: 1px solid rgba(151, 191, 255, 0.12);
  border-radius: 999px;
  color: rgba(207, 219, 236, 0.9);
}

.site-footer a {
  color: rgba(207, 219, 236, 0.86);
  text-decoration: none;
}

.site-footer a:hover {
  color: #f2f7ff;
}

.footer-versions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.footer-changelog-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-build-ref {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(151, 191, 255, 0.14);
  color: rgba(195, 210, 235, 0.88);
  background: rgba(5, 12, 28, 0.35);
}

.footer-labs-pill {
  border-color: rgba(255, 186, 120, 0.4);
  color: rgba(255, 226, 200, 0.95);
}

.help-center-panel .labs-optin-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  cursor: pointer;
  font-weight: 600;
  color: rgba(228, 236, 250, 0.92);
}

.help-center-panel .labs-optin-label input {
  margin-top: 3px;
  flex-shrink: 0;
}

.topbar-changelog {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fc-release-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 5px;
  background: linear-gradient(135deg, rgba(109, 255, 232, 0.22), rgba(40, 115, 255, 0.28));
  color: #e8f7ff;
  border: 1px solid rgba(109, 255, 232, 0.35);
  line-height: 1.2;
}

#configNav button.nav.nav-release-pulse {
  box-shadow: inset 2px 0 0 0 rgba(109, 255, 232, 0.75);
}

.legal-body {
  min-height: 100vh;
}

.legal-page {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.legal-brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.legal-brand span:last-child {
  display: grid;
  gap: 2px;
}

.legal-brand small {
  color: var(--muted);
}

.legal-hero {
  margin: 34px 0 18px;
  padding: 26px;
  border: 1px solid rgba(151, 191, 255, 0.14);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(84, 215, 197, 0.1), rgba(106, 167, 255, 0.06)),
    rgba(13, 21, 32, 0.78);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.legal-hero h1 {
  margin: 4px 0 10px;
}

.legal-hero p:last-child,
.legal-card p {
  line-height: 1.6;
  color: rgba(207, 219, 236, 0.88);
}

.legal-card p + p {
  margin-top: 12px;
}

.legal-card {
  margin-top: 12px;
  padding: 18px;
  border: 1px solid rgba(151, 191, 255, 0.12);
  border-radius: 8px;
  background: rgba(10, 17, 27, 0.64);
}

.legal-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.2;
}

.commands-catalog-body {
  background:
    radial-gradient(1200px 520px at 8% -8%, rgba(84, 215, 197, 0.12), transparent 58%),
    radial-gradient(900px 420px at 92% 0%, rgba(88, 101, 242, 0.1), transparent 55%),
    var(--bg, #070d14);
}

.commands-catalog-page {
  max-width: 1180px;
}

.commands-catalog-hero .commands-catalog-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 14px 0 4px;
}

.commands-stat {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(84, 215, 197, 0.22);
  background: rgba(10, 20, 30, 0.72);
  font-size: 13px;
  color: rgba(220, 235, 250, 0.88);
}

.commands-stat strong {
  color: #9ef5e8;
  font-weight: 700;
}

.commands-catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.commands-search-wrap {
  flex: 1 1 220px;
  min-width: 200px;
}

.commands-search-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(151, 191, 255, 0.18);
  background: rgba(8, 14, 24, 0.85);
  color: #e8f2ff;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.commands-search-input:focus {
  outline: none;
  border-color: rgba(84, 215, 197, 0.55);
  box-shadow: 0 0 0 3px rgba(84, 215, 197, 0.12);
}

.commands-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.commands-chip {
  border: 1px solid rgba(151, 191, 255, 0.16);
  background: rgba(10, 17, 27, 0.7);
  color: rgba(220, 235, 250, 0.9);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.commands-chip:hover {
  border-color: rgba(84, 215, 197, 0.35);
}

.commands-chip.is-active {
  background: linear-gradient(135deg, rgba(84, 215, 197, 0.22), rgba(88, 101, 242, 0.18));
  border-color: rgba(84, 215, 197, 0.45);
}

.commands-catalog-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tier-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.tier-pill.tier-free {
  background: rgba(84, 215, 197, 0.14);
  color: #9ef5e8;
  border: 1px solid rgba(84, 215, 197, 0.28);
}

.tier-pill.tier-premium {
  background: rgba(255, 196, 87, 0.12);
  color: #ffd98a;
  border: 1px solid rgba(255, 196, 87, 0.32);
}

.tier-pill.tier-admin {
  background: rgba(151, 191, 255, 0.12);
  color: #c8dcff;
  border: 1px solid rgba(151, 191, 255, 0.28);
}

.commands-catalog-layout {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 20px;
  margin-top: 22px;
  align-items: start;
}

.commands-catalog-nav {
  position: sticky;
  top: 18px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(151, 191, 255, 0.12);
  background: rgba(10, 17, 27, 0.72);
  max-height: calc(100vh - 36px);
  overflow: auto;
}

.commands-nav-title {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(180, 205, 230, 0.75);
}

.commands-catalog-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.commands-nav-link {
  display: block;
  padding: 7px 8px;
  border-radius: 8px;
  color: rgba(220, 235, 250, 0.88);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.35;
  transition: background 0.15s ease, color 0.15s ease;
}

.commands-nav-link:hover {
  background: rgba(84, 215, 197, 0.1);
  color: #fff;
}

.commands-chapter {
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(151, 191, 255, 0.1);
  background: rgba(10, 17, 27, 0.58);
  animation: commandsChapterIn 0.55s ease both;
  animation-delay: calc(var(--chapter-i, 0) * 45ms);
}

@keyframes commandsChapterIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.commands-chapter-head h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.commands-chapter-head p {
  margin: 0;
  color: rgba(200, 220, 240, 0.78);
  font-size: 14px;
}

.commands-section {
  margin-top: 16px;
  animation: commandsSectionIn 0.45s ease both;
  animation-delay: calc(var(--section-i, 0) * 30ms + 80ms);
}

@keyframes commandsSectionIn {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.commands-section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 15px;
}

.commands-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.commands-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(151, 191, 255, 0.08);
  background: rgba(6, 12, 20, 0.55);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.commands-row:hover {
  border-color: rgba(84, 215, 197, 0.22);
  transform: translateX(2px);
}

.commands-usage {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  color: #dff7f2;
  word-break: break-word;
}

.commands-catalog-loading,
.commands-catalog-empty,
.commands-catalog-error {
  padding: 24px;
  text-align: center;
  color: rgba(200, 220, 240, 0.8);
}

.commands-catalog-foot {
  margin-top: 28px;
}

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

  .commands-catalog-nav {
    position: static;
    max-height: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .commands-chapter,
  .commands-section,
  .commands-row {
    animation: none;
    transition: none;
  }
}

.support-discord-card {
  margin-top: 4px;
  padding: 16px;
  border: 1px solid rgba(88, 101, 242, 0.28);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(88, 101, 242, 0.12), rgba(84, 215, 197, 0.08)),
    rgba(8, 14, 24, 0.72);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.support-discord-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.support-discord-card__icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid rgba(88, 101, 242, 0.42);
  background: linear-gradient(145deg, rgba(88, 101, 242, 0.28), rgba(88, 101, 242, 0.12));
  color: #eef0ff;
  box-shadow: 0 10px 24px rgba(88, 101, 242, 0.16);
}

.support-discord-card__meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.support-discord-card__title {
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.support-discord-card__subtitle {
  color: rgba(207, 219, 236, 0.72);
  font-size: 13px;
  line-height: 1.35;
}

.support-discord-card__list {
  margin: 14px 0 0;
  padding-left: 20px;
  color: rgba(207, 219, 236, 0.88);
  line-height: 1.55;
}

.support-discord-card__list li + li {
  margin-top: 6px;
}

.support-discord-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.support-discord-card__join {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  box-shadow: 0 10px 26px rgba(64, 196, 170, 0.22);
}

.support-discord-card__copy-btn {
  min-height: 40px;
  font-size: 13px;
}

.support-discord-card__copy-btn:hover,
.support-discord-card__copy-btn:focus-visible {
  border-color: rgba(88, 101, 242, 0.42);
  background: rgba(88, 101, 242, 0.12);
}

@media (max-width: 520px) {
  .support-discord-card__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .support-discord-card__join,
  .support-discord-card__copy-btn {
    width: 100%;
  }
}

.support-discord-widget {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(151, 191, 255, 0.1);
}

.support-discord-widget__label {
  margin: 0 0 10px;
  color: rgba(207, 219, 236, 0.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.support-discord-widget__frame {
  width: min(100%, 350px);
  border: 1px solid rgba(88, 101, 242, 0.24);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(8, 14, 24, 0.82);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.support-discord-widget__frame iframe {
  display: block;
  width: 100%;
  height: 500px;
  border: 0;
  background: transparent;
}

.support-discord-widget__hint {
  margin: 10px 0 0;
  max-width: 350px;
  color: rgba(159, 176, 200, 0.82);
  font-size: 12px;
  line-height: 1.5;
}

.support-discord-widget__hint strong {
  color: rgba(207, 219, 236, 0.92);
  font-weight: 650;
}

.public-body {
  min-height: 100vh;
  overflow-x: hidden;
}

.public-shell,
.public-page {
  position: relative;
  z-index: 1;
}

.public-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 54px;
}

.public-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 58px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(151, 191, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(84, 215, 197, 0.08), transparent 42%),
    rgba(8, 14, 22, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.public-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.public-nav a {
  color: rgba(207, 219, 236, 0.86);
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
}

.public-nav a:hover {
  color: #f2f7ff;
}

.public-nav .public-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(151, 191, 255, 0.16);
  background: rgba(10, 17, 27, 0.62);
  color: rgba(238, 244, 255, 0.92);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.public-nav .public-pill:hover {
  border-color: rgba(84, 215, 197, 0.42);
  background: rgba(16, 27, 40, 0.78);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.public-nav .public-dashboard-cta {
  margin-top: 0;
  margin-left: 4px;
}

.public-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: 34px;
  align-items: center;
}

.public-hero-copy,
.public-preview,
.public-feature-grid article,
.error-hero {
  border: 1px solid rgba(151, 191, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(84, 215, 197, 0.09), transparent 40%),
    rgba(13, 21, 32, 0.76);
  box-shadow: 0 24px 74px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.public-hero-copy {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: 18px;
  animation: panelRise 280ms ease both;
}

.public-hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -20% -45%;
  height: 72%;
  background: radial-gradient(circle, rgba(84, 215, 197, 0.16), transparent 64%);
  animation: heroAura 8s ease-in-out infinite;
  pointer-events: none;
}

.public-hero h1 {
  position: relative;
  margin: 12px 0 16px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  background: linear-gradient(100deg, #eef4ff 0%, #e8fffb 42%, #b9d4ff 74%, #eef4ff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: titleGlow 9s ease-in-out infinite;
}

.public-hero p {
  position: relative;
  max-width: 650px;
  margin: 0;
  color: rgba(207, 219, 236, 0.9);
  font-size: 17px;
  line-height: 1.65;
}

.public-actions {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.public-actions .button,
.public-actions .mini {
  margin-top: 0;
}

.public-hero-live {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 14px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 700;
}

.public-hero-live__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.public-hero-live--online .public-hero-live__pulse {
  background: #34d399;
  animation: public-trust-pulse 2.2s ease infinite;
}

.public-hero-live--online .public-hero-live__label {
  color: #a7f3d0;
}

.public-hero-live--offline .public-hero-live__pulse {
  background: #fbbf24;
}

.public-hero-live--offline .public-hero-live__label {
  color: #fde68a;
}

.public-hero-live__link {
  color: rgba(148, 163, 184, 0.95);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.public-hero-live__link:hover {
  color: rgba(96, 165, 250, 0.95);
}

.button--discord {
  background: linear-gradient(180deg, #5865f2 0%, #4752c4 100%);
  border-color: rgba(88, 101, 242, 0.65);
  color: #fff;
  box-shadow: 0 10px 28px rgba(88, 101, 242, 0.22);
}

.button--discord:hover {
  filter: brightness(1.06);
  color: #fff;
}

.button--discord:focus-visible {
  outline-color: #5865f2;
}

.public-trust-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.public-trust-row span,
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(84, 215, 197, 0.26);
  border-radius: 999px;
  background: rgba(84, 215, 197, 0.08);
  color: #dffcf6;
  font-size: 12px;
  font-weight: 900;
}

.public-preview {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border-radius: 18px;
  animation: panelRise 320ms ease both 90ms;
}

.public-preview::before {
  content: "";
  position: absolute;
  inset: -35% -20% auto;
  height: 60%;
  background: radial-gradient(circle, rgba(106, 167, 255, 0.18), transparent 62%);
  animation: premiumFloat 9s ease-in-out infinite;
}

.preview-window {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(151, 191, 255, 0.14);
  border-radius: 14px;
  background: rgba(5, 10, 18, 0.66);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.28);
  animation: previewFloat 7s ease-in-out infinite;
  will-change: transform;
}

.preview-window::after {
  content: "";
  position: absolute;
  inset: 42px 0 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(84, 215, 197, 0.045) 48%,
    transparent 96%
  );
  pointer-events: none;
  animation: previewScanline 4.8s ease-in-out infinite;
}

.preview-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(151, 191, 255, 0.1);
  position: relative;
  z-index: 1;
}

.preview-chrome span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(159, 176, 200, 0.5);
}

.preview-chrome span:first-child {
  background: var(--danger);
}

.preview-chrome span:nth-child(2) {
  background: var(--warn);
}

.preview-chrome span:nth-child(3) {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(84, 215, 197, 0.35);
  animation: previewLivePulse 1.6s ease-in-out infinite;
}

.preview-live-badge {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(84, 215, 197, 0.28);
  background: rgba(84, 215, 197, 0.1);
  color: #dffcf6;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.preview-dashboard {
  display: grid;
  grid-template-columns: 108px 1fr;
  min-height: 360px;
  position: relative;
  z-index: 1;
}

.preview-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  border-right: 1px solid rgba(151, 191, 255, 0.1);
  background: rgba(6, 12, 20, 0.54);
}

.preview-sidebar span,
.preview-card {
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.055), rgba(84, 215, 197, 0.11), rgba(255, 255, 255, 0.055));
  background-size: 220% 100%;
  animation: skeletonSweep 2.2s ease-in-out infinite, previewRowBob 3.4s ease-in-out infinite;
}

.preview-sidebar span {
  height: 30px;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 180ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    background 220ms ease,
    box-shadow 220ms ease;
}

.preview-sidebar span:first-child {
  height: 48px;
  background: linear-gradient(135deg, rgba(84, 215, 197, 0.24), rgba(106, 167, 255, 0.12));
}

.preview-sidebar span:nth-child(1) {
  animation-delay: 0s, 0s;
}

.preview-sidebar span:nth-child(2) {
  animation-delay: 0.18s, 0.2s;
}

.preview-sidebar span:nth-child(3) {
  animation-delay: 0.36s, 0.4s;
}

.preview-sidebar span:nth-child(4) {
  animation-delay: 0.54s, 0.6s;
}

.preview-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.preview-metric,
.preview-card {
  min-height: 98px;
  border: 1px solid rgba(151, 191, 255, 0.12);
  border-radius: 12px;
  background: rgba(13, 21, 32, 0.72);
}

.preview-metric {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.preview-metric strong {
  color: #f2f7ff;
  font-size: 34px;
  line-height: 1;
  animation: previewMetricGlow 3.2s ease-in-out infinite;
}

.preview-metric span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.preview-metric.live {
  border-color: rgba(84, 215, 197, 0.32);
  background: linear-gradient(135deg, rgba(84, 215, 197, 0.13), rgba(13, 21, 32, 0.72));
  animation: previewLiveCard 2.8s ease-in-out infinite;
}

.preview-metric.live::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(84, 215, 197, 0.22);
  pointer-events: none;
  animation: previewRingPulse 2.4s ease-in-out infinite;
}

.preview-metric.live::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(84, 215, 197, 0.55);
  animation: previewLivePulse 1.5s ease-in-out infinite;
}

.preview-card {
  position: relative;
  overflow: hidden;
  animation: skeletonSweep 2.4s ease-in-out infinite, previewCardBob 4.2s ease-in-out infinite;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 180ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.preview-skeleton-stack > .preview-card.wide {
  animation-delay: 0s, 0s;
}

.preview-skeleton-stack > .preview-card:not(.wide):nth-child(2) {
  animation-delay: 0.15s, 0.25s;
}

.preview-skeleton-stack > .preview-card:not(.wide):nth-child(3) {
  animation-delay: 0.3s, 0.5s;
}

.preview-card::before,
.preview-card::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 28%;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(84, 215, 197, 0.14), rgba(255, 255, 255, 0.06));
  background-size: 200% 100%;
  animation: skeletonSweep 1.9s ease-in-out infinite;
}

.preview-card::before {
  top: 22px;
}

.preview-card::after {
  top: 40px;
  right: 40%;
  animation-delay: 0.35s;
}

.preview-card.wide {
  grid-column: 1 / -1;
  min-height: 126px;
}

.preview-card.wide::before {
  top: 26px;
  right: 18%;
}

.preview-card.wide::after {
  top: 48px;
  right: 35%;
  height: 52px;
  border-radius: 12px;
  opacity: 0.55;
}

.preview-body-stack {
  position: relative;
  grid-column: 1 / -1;
}

.preview-skeleton-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.preview-module-stack {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.988);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.preview-module-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(151, 191, 255, 0.14);
  background:
    linear-gradient(145deg, rgba(84, 215, 197, 0.07), transparent 52%),
    rgba(10, 17, 26, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.42s ease,
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.preview-module-face.is-active {
  opacity: 1;
  transform: translateY(0);
}

.preview-module-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.preview-module-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(106, 167, 255, 0.85);
  box-shadow: 0 0 12px rgba(106, 167, 255, 0.35);
  flex-shrink: 0;
}

.preview-module-dot--pulse {
  background: var(--accent);
  box-shadow: 0 0 14px rgba(84, 215, 197, 0.45);
  animation: previewModuleDotPulse 1.8s ease-in-out infinite;
}

.preview-module-title {
  flex: 1;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #eef4ff;
}

.preview-module-pill {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(151, 191, 255, 0.18);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(207, 219, 236, 0.88);
}

.preview-module-pill--accent {
  border-color: rgba(84, 215, 197, 0.35);
  background: rgba(84, 215, 197, 0.1);
  color: #dffcf6;
}

.preview-module-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.preview-module-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(151, 191, 255, 0.08);
  background: rgba(6, 12, 20, 0.55);
  transform: translate3d(0, 0, 0);
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.preview-module-row span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(84, 215, 197, 0.35);
  flex-shrink: 0;
}

.preview-module-row em {
  font-style: normal;
  font-size: 12px;
  font-weight: 650;
  color: rgba(207, 219, 236, 0.82);
}

.preview-module-live {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  min-height: 0;
}

.preview-module-wave {
  height: 52px;
  border-radius: 10px;
  border: 1px solid rgba(84, 215, 197, 0.15);
  background: linear-gradient(180deg, rgba(84, 215, 197, 0.06), rgba(6, 12, 20, 0.4));
  position: relative;
  overflow: hidden;
}

.preview-module-wave::after {
  content: "";
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: 42%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(84, 215, 197, 0.22), transparent 68%);
  animation: previewModuleWaveDrift 3.2s ease-in-out infinite;
}

.preview-module-live-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preview-module-live-tags span {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(151, 191, 255, 0.12);
  font-size: 11px;
  font-weight: 800;
  color: rgba(191, 248, 238, 0.85);
  background: rgba(4, 10, 18, 0.45);
}

.preview-module-eco {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
}

.preview-module-stat {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(151, 191, 255, 0.1);
  background: rgba(6, 12, 20, 0.55);
  transform: translate3d(0, 0, 0);
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    background 220ms ease;
}

.preview-module-stat strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #f2f7ff;
  line-height: 1.1;
}

.preview-module-stat span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.preview-module-wizard {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}

.preview-module-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(151, 191, 255, 0.14);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: conic-gradient(from 210deg, rgba(84, 215, 197, 0.55), rgba(106, 167, 255, 0.35), rgba(84, 215, 197, 0.08));
  box-shadow: inset 0 0 0 6px rgba(8, 14, 22, 0.92);
}

.preview-module-ring span {
  font-size: 13px;
  font-weight: 900;
  color: #dffcf6;
}

.preview-module-pills {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preview-module-pills span {
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid rgba(151, 191, 255, 0.1);
  font-size: 11px;
  font-weight: 800;
  color: rgba(207, 219, 236, 0.88);
  background: rgba(6, 12, 20, 0.42);
  transform: translate3d(0, 0, 0);
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    background 220ms ease;
}

.preview-parallax-layer {
  position: relative;
  z-index: 1;
  will-change: transform;
}

.public-hero-parallax-layer {
  position: relative;
  z-index: 1;
  will-change: transform;
}

#landingPreviewWindow:focus-visible {
  outline: 2px solid rgba(84, 215, 197, 0.55);
  outline-offset: 5px;
  border-radius: 15px;
}

#landingPreviewWindow.is-pressing {
  border-color: rgba(84, 215, 197, 0.34);
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(84, 215, 197, 0.1);
}

#landingPreviewWindow.is-pressing .preview-sidebar span,
#landingPreviewWindow.is-pressing .preview-card,
#landingPreviewWindow.is-pressing .preview-module-row,
#landingPreviewWindow.is-pressing .preview-module-stat,
#landingPreviewWindow.is-pressing .preview-module-pills span {
  transition-delay: var(--press-delay, 0ms);
  transform:
    translate3d(var(--press-x, 0), var(--press-y, 0), 0)
    scale(var(--press-scale, 1));
  border-color: rgba(84, 215, 197, 0.18);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

#landingPreviewWindow.is-pressing .preview-sidebar span {
  background:
    linear-gradient(90deg, rgba(84, 215, 197, 0.18), rgba(106, 167, 255, 0.14), rgba(255, 255, 255, 0.055));
  box-shadow: 0 0 20px rgba(84, 215, 197, 0.08);
}

#landingPreviewWindow.is-preview-modules .preview-skeleton-stack {
  opacity: 0;
  transform: scale(0.986);
}

#landingPreviewWindow.is-preview-modules .preview-module-stack {
  opacity: 1;
  transform: scale(1);
}

@keyframes previewModuleDotPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.65;
    transform: scale(1.15);
  }
}

@keyframes previewModuleWaveDrift {
  0%,
  100% {
    transform: translateX(0) translateY(2px);
    opacity: 0.85;
  }

  50% {
    transform: translateX(6%) translateY(-3px);
    opacity: 1;
  }
}

/* Landing scroll storytelling (JS adds body.public-reveal-js) */
body.public-reveal-js [data-public-reveal]:not([data-public-reveal="inplace"]) {
  opacity: 0;
  transform:
    translate3d(var(--reveal-x, 0), var(--reveal-y, 40px), 0)
    rotate(var(--reveal-rot, 0deg))
    scale(0.982);
  filter: blur(10px) saturate(0.92);
  transition:
    opacity 0.82s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.92s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.82s ease;
  will-change: opacity, transform, filter;
}

body.public-reveal-js [data-public-reveal]:not([data-public-reveal="inplace"]).is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0) saturate(1);
}

body.public-reveal-js [data-public-reveal]:not([data-public-reveal="inplace"]).is-passed {
  opacity: 0.18;
  transform: translate3d(0, -44px, 0) scale(0.988);
  filter: blur(4px) saturate(0.88);
  transition-duration: 0.58s, 0.66s, 0.58s;
}

body.public-reveal-js [data-public-reveal="inplace"] {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.65s ease,
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

body.public-reveal-js [data-public-reveal="inplace"].is-passed {
  opacity: 0.2;
  transform: translate3d(0, -38px, 0) scale(0.988);
  animation: none !important;
}

.public-gallery-grid .public-gallery-card[data-public-reveal]:nth-child(1) {
  transition-delay: 0ms;
}

.public-gallery-grid .public-gallery-card[data-public-reveal]:nth-child(2) {
  transition-delay: 45ms;
}

.public-gallery-grid .public-gallery-card[data-public-reveal]:nth-child(3) {
  transition-delay: 90ms;
}

.public-gallery-grid .public-gallery-card[data-public-reveal]:nth-child(4) {
  transition-delay: 25ms;
}

.public-gallery-grid .public-gallery-card[data-public-reveal]:nth-child(5) {
  transition-delay: 70ms;
}

.public-gallery-grid .public-gallery-card[data-public-reveal]:nth-child(6) {
  transition-delay: 115ms;
}

.public-gallery-grid .public-gallery-card[data-public-reveal]:nth-child(7) {
  transition-delay: 55ms;
}

.public-feature-grid article[data-public-reveal]:nth-child(1) {
  transition-delay: 0ms;
}

.public-feature-grid article[data-public-reveal]:nth-child(2) {
  transition-delay: 55ms;
}

.public-feature-grid article[data-public-reveal]:nth-child(3) {
  transition-delay: 110ms;
}

.public-gallery {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(151, 191, 255, 0.12);
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

.public-gallery-head {
  max-width: 76rem;
  margin: 0 auto 28px;
  text-align: center;
}

.public-gallery-head .eyebrow {
  display: inline-block;
  margin-bottom: 8px;
}

.public-gallery-head h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.02em;
}

.public-gallery-lead {
  margin: 0;
  color: rgba(207, 219, 236, 0.84);
  line-height: 1.55;
  font-size: 15px;
}

.public-gallery-zoom-hint {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(160, 178, 204, 0.82);
}

.public-gallery-grid {
  counter-reset: fc-gallery;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 76rem;
  margin: 0 auto;
}

.public-gallery-card {
  position: relative;
  counter-increment: fc-gallery;
  margin: 0;
  padding: 22px 20px 22px;
  border-radius: 18px;
  border: 1px solid rgba(151, 191, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(84, 215, 197, 0.07), transparent 46%),
    rgba(11, 18, 28, 0.82);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  isolation: isolate;
  transition:
    border-color 220ms ease,
    box-shadow 240ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    background 260ms ease;
}

.public-gallery-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 18%, rgba(84, 215, 197, 0.18), transparent 34%),
    radial-gradient(circle at 82% 22%, rgba(106, 167, 255, 0.14), transparent 38%);
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 260ms ease, transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.public-gallery-card::before {
  content: counter(fc-gallery);
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #061016;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.public-gallery-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}

@media (min-width: 768px) {
  .public-gallery-head {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  .public-gallery-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 28px;
  }

  .public-gallery-card:nth-child(even)::before {
    left: auto;
    right: 14px;
  }

  .public-gallery-card:nth-child(even) .public-gallery-copy {
    order: 1;
  }

  .public-gallery-card:nth-child(even) .public-gallery-frame {
    order: 2;
  }

  .public-gallery-frame {
    flex: 0 1 min(54%, 720px);
    max-width: min(54%, 720px);
  }

  .public-gallery-copy {
    flex: 1;
    min-width: 0;
    padding-top: 8px;
    justify-content: center;
  }
}

.public-gallery-frame {
  border-radius: 14px;
  border: 1px solid rgba(151, 191, 255, 0.16);
  background: rgba(5, 10, 18, 0.72);
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.public-gallery-zoomlink {
  display: block;
  line-height: 0;
  cursor: zoom-in;
  text-decoration: none;
  color: inherit;
  -webkit-user-drag: none;
  user-select: none;
}

.public-gallery-zoomlink:focus-visible {
  outline: 2px solid rgba(84, 215, 197, 0.85);
  outline-offset: 3px;
  border-radius: 10px;
}

.public-gallery-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(62vh, 820px);
  object-fit: contain;
  object-position: top center;
  transition: transform 220ms ease, filter 220ms ease;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.public-gallery-card--tall .public-gallery-frame img {
  max-height: min(78vh, 980px);
}

@media (prefers-reduced-motion: no-preference) {
  .public-gallery-card:hover {
    border-color: rgba(84, 215, 197, 0.28);
    box-shadow: 0 26px 64px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: translateY(-4px) rotateX(0.6deg);
  }

  .public-gallery-card:hover::after {
    opacity: 1;
    transform: scale(1);
  }

  .public-gallery-card:hover .public-gallery-frame {
    border-color: rgba(84, 215, 197, 0.32);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.38);
  }

  .public-gallery-card:hover .public-gallery-frame img {
    transform: scale(1.01);
    filter: saturate(1.04);
  }
}

.public-gallery-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.public-gallery-copy strong {
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(240, 246, 255, 0.98);
  line-height: 1.3;
}

.public-gallery-desc {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: rgba(176, 192, 214, 0.92);
  line-height: 1.6;
  max-width: 38rem;
}

/* Landing: full-screen screenshot lightbox (public-site.js) */
body.public-lightbox-open {
  overflow: hidden;
}

.public-lightbox {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: grid;
  place-items: center;
  padding: min(5vh, 40px) min(3vw, 16px);
  box-sizing: border-box;
  visibility: hidden;
  opacity: 0;
  transition: opacity 220ms ease, visibility 220ms ease;
  user-select: none;
}

.public-lightbox.is-open {
  visibility: visible;
  opacity: 1;
}

.public-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 12, 0.86);
  backdrop-filter: blur(10px);
  cursor: zoom-out;
}

.public-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(96vw, 1240px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 0;
  transform: translate3d(0, 10px, 0) scale(0.985);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.public-lightbox.is-open .public-lightbox-panel {
  transform: translate3d(0, 0, 0) scale(1);
}

.public-lightbox-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.public-lightbox-img {
  display: block;
  width: 100%;
  max-height: min(72vh, 860px);
  height: auto;
  object-fit: contain;
  object-position: center top;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(151, 191, 255, 0.2);
  background: rgba(5, 10, 18, 0.9);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  -webkit-user-drag: none;
  user-select: none;
  transition:
    opacity 180ms ease,
    filter 220ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.public-lightbox.is-switching .public-lightbox-img {
  opacity: 0;
  filter: blur(8px) saturate(0.9);
}

.public-lightbox[data-lb-direction="next"].is-switching .public-lightbox-img {
  transform: translate3d(-18px, 0, 0) scale(0.992);
}

.public-lightbox[data-lb-direction="prev"].is-switching .public-lightbox-img {
  transform: translate3d(18px, 0, 0) scale(0.992);
}

.public-lightbox-meta {
  flex-shrink: 0;
  padding: 4px 4px 0;
  text-align: center;
  margin-top: 4px;
}

.public-lightbox-counter {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(120, 240, 255, 0.82);
}

.public-lightbox-title {
  display: block;
  margin: 0 0 6px;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(244, 248, 255, 0.98);
}

.public-lightbox-desc {
  margin: 0 auto 12px;
  max-width: 44rem;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(186, 200, 220, 0.92);
}

.public-lightbox-newtab {
  display: inline-flex;
  align-self: center;
}

.public-lightbox-close {
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 4;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(151, 191, 255, 0.22);
  background: rgba(10, 17, 27, 0.92);
  color: rgba(240, 246, 255, 0.95);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.public-lightbox-close:hover {
  border-color: rgba(84, 215, 197, 0.45);
  background: rgba(16, 27, 40, 0.95);
}

.public-lightbox-close:focus-visible {
  outline: 2px solid rgba(84, 215, 197, 0.9);
  outline-offset: 2px;
}

.public-lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 52px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid rgba(151, 191, 255, 0.24);
  background:
    linear-gradient(145deg, rgba(84, 215, 197, 0.12), rgba(10, 17, 27, 0.9)),
    rgba(10, 17, 27, 0.88);
  color: rgba(240, 246, 255, 0.96);
  cursor: pointer;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    opacity 160ms ease,
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 180ms ease;
}

.public-lightbox-nav:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.public-lightbox-nav:not(:disabled):hover {
  border-color: rgba(84, 215, 197, 0.45);
  background: rgba(16, 27, 40, 0.95);
  transform: translateY(-50%) scale(1.035);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(84, 215, 197, 0.12);
}

.public-lightbox-nav:focus-visible {
  outline: 2px solid rgba(84, 215, 197, 0.9);
  outline-offset: 2px;
}

.public-lightbox-nav-icon {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  margin-top: -2px;
}

.public-lightbox-nav--prev {
  left: max(16px, calc((100vw - min(96vw, 1240px)) / 2 - 74px));
}

.public-lightbox-nav--next {
  right: max(16px, calc((100vw - min(96vw, 1240px)) / 2 - 74px));
}

@media (max-width: 640px) {
  .public-lightbox-img {
    max-height: min(58vh, 720px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-lightbox,
  .public-lightbox-panel,
  .public-lightbox-img {
    transition: none !important;
  }
}

.public-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.public-feature-grid article {
  padding: 18px;
  border-radius: 14px;
}

@media (prefers-reduced-motion: no-preference) {
  .public-feature-grid article {
    opacity: 0;
    animation: cardIn 340ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  .public-feature-grid article:nth-child(2) {
    animation-delay: 70ms;
  }

  .public-feature-grid article:nth-child(3) {
    animation-delay: 140ms;
  }
}

.public-feature-grid h2 {
  margin: 14px 0 8px;
  font-size: 18px;
}

.public-feature-grid p {
  margin: 0;
  color: rgba(207, 219, 236, 0.84);
  line-height: 1.55;
}

.public-trust {
  margin-top: 48px;
  padding: 56px 0 12px;
  text-align: center;
}

.public-trust-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

.public-trust-inner .eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: rgba(84, 215, 197, 0.92);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.public-trust-inner h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.public-trust-lead {
  margin: 0 auto 28px;
  max-width: 560px;
  color: rgba(207, 219, 236, 0.78);
  line-height: 1.6;
  font-size: 15px;
}

.public-trust-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 16px;
}

.public-trust-stat {
  min-width: min(100%, 220px);
  flex: 1 1 200px;
  max-width: 280px;
  padding: 6px 8px;
}

.public-trust-stat__label {
  display: block;
  margin-bottom: 10px;
  color: rgba(96, 165, 250, 0.95);
  font-size: 14px;
  font-weight: 700;
}

.public-trust-stat__value {
  display: block;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.public-trust-stat--uptime .public-trust-stat__label {
  color: rgba(110, 231, 183, 0.95);
}

.public-trust-stat__value--uptime {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #a7f3d0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(255, 255, 255, 0.04));
  border-color: rgba(52, 211, 153, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.public-trust-stat__value--uptime.public-trust-stat__value--animating {
  animation: public-trust-uptime-glow 1.4s ease;
}

.public-trust-stat__live {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.public-trust-stat__pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  animation: public-trust-pulse 2.2s ease infinite;
}

.public-trust-stat__uptime-num {
  font-variant-numeric: tabular-nums;
}

@keyframes public-trust-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

@keyframes public-trust-uptime-glow {
  0% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 rgba(52, 211, 153, 0);
  }
  45% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 28px rgba(52, 211, 153, 0.18);
  }
  100% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 rgba(52, 211, 153, 0);
  }
}

.public-trust-note {
  margin: 8px auto 0;
  max-width: 480px;
}

.status-page {
  max-width: 820px;
}

.status-hero {
  margin-bottom: 18px;
}

.status-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  margin: 0 0 22px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.status-banner__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #94a3b8;
  box-shadow: 0 0 0 0 rgba(148, 163, 184, 0.45);
}

.status-banner--operational .status-banner__dot {
  background: #34d399;
  animation: public-trust-pulse 2.2s ease infinite;
}

.status-banner--degraded .status-banner__dot {
  background: #fbbf24;
}

.status-banner--outage .status-banner__dot {
  background: #f87171;
}

.status-banner--unknown .status-banner__dot,
.status-banner--loading .status-banner__dot {
  background: #94a3b8;
}

.status-banner__copy {
  flex: 1 1 220px;
  min-width: 0;
}

.status-banner__copy strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.status-banner__uptime {
  text-align: right;
  min-width: 120px;
}

.status-banner__uptime-label {
  display: block;
  color: rgba(148, 163, 184, 0.95);
  font-size: 12px;
  margin-bottom: 4px;
}

.status-banner__uptime strong {
  font-size: 1.35rem;
  color: #a7f3d0;
  font-variant-numeric: tabular-nums;
}

.status-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 14px;
}

.status-section-head h2 {
  margin: 0;
}

.status-services {
  display: grid;
  gap: 12px;
}

.status-service {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.status-service__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.status-service__dot {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #94a3b8;
}

.status-service--operational .status-service__dot {
  background: #34d399;
}

.status-service--degraded .status-service__dot {
  background: #fbbf24;
}

.status-service--outage .status-service__dot {
  background: #f87171;
}

.status-service__name {
  display: block;
  font-size: 1rem;
}

.status-service__state {
  display: block;
  margin-top: 2px;
  color: rgba(148, 163, 184, 0.95);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-service__desc,
.status-service__metrics {
  margin: 0;
}

.status-service__metrics {
  margin-top: 6px;
}

.status-incidents-empty {
  margin: 0;
}

.status-incident {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.status-incident:first-child {
  border-top: 0;
  padding-top: 0;
}

.status-incident__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 8px;
}

.status-incident__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.14);
  color: #6ee7b7;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-incident__updates {
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-incident__update {
  margin-top: 8px;
  padding-left: 12px;
  border-left: 2px solid rgba(96, 165, 250, 0.35);
}

.status-incident__update time {
  display: block;
  color: rgba(148, 163, 184, 0.95);
  font-size: 12px;
  margin-bottom: 4px;
}

.status-incident__update p {
  margin: 0;
  color: rgba(207, 219, 236, 0.88);
  line-height: 1.5;
}

.status-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.status-meta-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.status-meta-item__label {
  display: block;
  color: rgba(148, 163, 184, 0.95);
  font-size: 12px;
  margin-bottom: 6px;
}

.status-meta-item strong {
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
}

.status-meta-note a {
  color: rgba(96, 165, 250, 0.95);
}

.public-footer--legal {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
}

@media (max-width: 720px) {
  .status-banner__uptime {
    text-align: left;
    width: 100%;
  }

  .status-meta-grid {
    grid-template-columns: 1fr;
  }
}

.plans-page {
  max-width: 920px;
}

.plans-hero {
  margin-bottom: 18px;
}

.plans-table-wrap {
  overflow-x: auto;
  margin: 0 -4px;
  padding: 2px 4px 8px;
}

.plans-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.plans-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px 14px;
  text-align: left;
  background: rgba(15, 23, 42, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plans-col-free {
  width: 28%;
  color: rgba(148, 163, 184, 0.98);
}

.plans-col-premium {
  width: 32%;
  color: #a7f3d0;
}

.plans-table tbody th[scope="row"] {
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
  min-width: 180px;
}

.plans-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}

.plans-section-row th {
  padding: 16px 14px 8px;
  text-align: left;
  color: rgba(84, 215, 197, 0.95);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 0;
  background: transparent;
}

.plans-cell {
  display: inline-block;
  line-height: 1.45;
}

.plans-cell--yes {
  color: #6ee7b7;
  font-size: 18px;
  font-weight: 800;
}

.plans-cell--no {
  color: rgba(100, 116, 139, 0.9);
  font-size: 16px;
}

.plans-cell--text {
  color: rgba(203, 213, 225, 0.92);
}

.plans-col-premium .plans-cell--text {
  color: rgba(209, 250, 229, 0.95);
}

.plans-loading,
.plans-error {
  text-align: center;
  color: var(--muted, #8b9bb4);
  padding: 1.25rem 0.75rem;
}

.plans-error {
  color: var(--danger, #f87171);
}

.plans-footnote {
  margin: 16px 0 0;
}

.plans-footnote a {
  color: rgba(96, 165, 250, 0.95);
}

.plans-cta-card h2 {
  margin-top: 0;
}

.plans-hero-actions {
  margin-top: 18px;
}

.button--premium-contact {
  background: linear-gradient(180deg, rgba(84, 215, 197, 0.22) 0%, rgba(16, 185, 129, 0.16) 100%);
  border-color: rgba(84, 215, 197, 0.45);
  color: #ecfdf5;
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.12);
}

.button--premium-contact:hover {
  filter: brightness(1.08);
  color: #fff;
}

.plans-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.public-feature-link {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 600;
}

.public-feature-link a {
  color: rgba(96, 165, 250, 0.98);
  text-decoration: none;
}

.public-feature-link a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .plans-table thead {
    display: none;
  }

  .plans-table tbody tr:not(.plans-section-row) {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .plans-table tbody th[scope="row"] {
    border: 0;
    padding: 0;
    font-size: 15px;
  }

  .plans-table tbody td {
    border: 0;
    padding: 0;
  }

  .plans-table tbody td::before {
    display: block;
    margin-bottom: 4px;
    color: rgba(148, 163, 184, 0.95);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .plans-table tbody td:nth-child(2)::before {
    content: var(--plans-free-label, "Free");
  }

  .plans-table tbody td:nth-child(3)::before {
    content: var(--plans-premium-label, "Premium");
    color: rgba(110, 231, 183, 0.95);
  }
}

@media (max-width: 640px) {
  .public-trust-stats {
    flex-direction: column;
    align-items: stretch;
  }

  .public-trust-stat {
    max-width: none;
  }
}

.error-hero {
  border-radius: 18px;
}

.public-nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
}

.public-lang-label {
  font-size: 12px;
  font-weight: 800;
  color: rgba(207, 219, 236, 0.82);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.public-lang-select {
  min-height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(151, 191, 255, 0.16);
  background: rgba(5, 10, 18, 0.72);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: 13px;
}

.public-nav .public-pill:focus-visible,
.public-nav .public-dashboard-cta:focus-visible,
.public-actions .button:focus-visible,
.public-actions .mini:focus-visible,
.public-footer-links a:focus-visible,
.public-legal-back a:focus-visible,
.legal-brand:focus-visible {
  outline: 2px solid rgba(120, 240, 255, 0.88);
  outline-offset: 3px;
}

.public-lang-select:focus-visible {
  outline: 2px solid rgba(120, 240, 255, 0.88);
  outline-offset: 2px;
}

.public-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(151, 191, 255, 0.12);
  color: rgba(159, 176, 200, 0.82);
  font-size: 13px;
}

.public-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.public-footer-links a {
  color: rgba(207, 219, 236, 0.9);
  font-weight: 800;
  text-decoration: none;
}

.public-footer-links a:hover {
  color: #f2f7ff;
}

.cookie-consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
  border-radius: 14px;
  border: 1px solid rgba(151, 191, 255, 0.24);
  background: rgba(5, 10, 18, 0.95);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
}

.cookie-consent-inner {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.cookie-consent-title {
  font-size: 14px;
  color: #f3f8ff;
}

.cookie-consent-body {
  margin: 0;
  color: rgba(207, 219, 236, 0.88);
  font-size: 13px;
  line-height: 1.4;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cookie-consent-link {
  margin-right: auto;
  color: rgba(149, 227, 255, 0.95);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.cookie-consent-link:hover {
  color: #e5f7ff;
}

.cookie-consent-options {
  border-top: 1px solid rgba(151, 191, 255, 0.14);
  padding-top: 10px;
  display: grid;
  gap: 8px;
}

.cookie-opt-title {
  margin: 0;
  color: rgba(219, 233, 247, 0.92);
  font-size: 12px;
  font-weight: 800;
}

.cookie-opt-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(207, 219, 236, 0.9);
  font-size: 12px;
}

.cookie-opt-row input {
  accent-color: #54d7c5;
}

.cookie-save-btn {
  justify-self: start;
}

.modref-wrap {
  display: grid;
  gap: 18px;
}

.modref-head.panel-head {
  align-items: flex-start;
}

.modref-category {
  display: grid;
  gap: 12px;
}

.modref-cat-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: rgba(232, 240, 255, 0.95);
}

.modref-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.modref-card {
  margin: 0;
}

.modref-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.modref-card-head h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

.modref-desc {
  margin: 0.35rem 0 0;
  line-height: 1.45;
}

.cookie-manage-btn {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 1190;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(151, 191, 255, 0.2);
  background: rgba(5, 10, 18, 0.88);
  color: rgba(219, 233, 247, 0.95);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.cookie-manage-btn:hover {
  border-color: rgba(149, 227, 255, 0.4);
}

.public-legal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.public-legal-lang {
  display: flex;
  align-items: center;
  gap: 8px;
}

.public-legal-back {
  margin-top: 22px;
  color: rgba(159, 176, 200, 0.88);
  font-size: 14px;
}

.public-legal-back a {
  color: rgba(207, 219, 236, 0.92);
  font-weight: 800;
  text-decoration: none;
}

.public-legal-back a:hover {
  color: #f2f7ff;
}

.status-json-card h2 {
  margin-top: 0;
}

.status-json {
  margin: 0;
  padding: 16px;
  max-height: min(70vh, 640px);
  overflow: auto;
  border-radius: 10px;
  border: 1px solid rgba(151, 191, 255, 0.12);
  background: rgba(5, 10, 18, 0.72);
  color: rgba(215, 229, 248, 0.92);
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

@keyframes heroAura {
  0%, 100% { transform: translateX(-8%) scale(1); opacity: 0.62; }
  50% { transform: translateX(8%) scale(1.08); opacity: 0.9; }
}

@keyframes previewFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes previewScanline {
  0%, 12% { transform: translateY(-18%); opacity: 0; }
  22% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateY(78%); opacity: 0; }
}

@keyframes previewLivePulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}

@keyframes previewRowBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes previewMetricGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}

@keyframes previewLiveCard {
  0%, 100% { border-color: rgba(84, 215, 197, 0.28); }
  50% { border-color: rgba(84, 215, 197, 0.48); }
}

@keyframes previewRingPulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.95; }
}

@keyframes previewCardBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Final responsive stability pass */
.module-hero::before,
.module-hero::after {
  opacity: 0.38;
  animation: none;
}

.module-hero-copy,
.premium-hero-copy,
.overview-hero,
.wizard-hero,
.premium-panel,
.health-card,
.inventory-card,
.system-card,
.score-row,
.action-row,
.invoice-row {
  min-width: 0;
}

.module-hero h3,
.overview-hero h3,
.wizard-hero h3,
.premium-panel h3,
.health-card strong {
  overflow-wrap: anywhere;
}

.activity-feed-list article,
.action-row,
.invoice-row,
.inventory-top,
.reward-head,
.giveaway-row-head,
.event-row-head,
.live-footer {
  flex-wrap: wrap;
}

.activity-feed-list small,
.inventory-meta small,
.invoice-row small,
.action-row small {
  white-space: normal;
}

.overview-score,
.score-ring {
  flex: 0 0 auto;
}

.command-results,
.audit-list,
.inventory-grid,
.module-list,
.whitelist-list,
.command-files {
  min-width: 0;
}

.toast {
  max-width: 100%;
}

/* Animated polish pass */
.ambient-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(84, 215, 197, 0.16), rgba(84, 215, 197, 0) 68%);
  filter: blur(8px);
  opacity: 0.72;
  mix-blend-mode: screen;
  animation: orbFloat 18s ease-in-out infinite;
}

.orb-one {
  top: -11rem;
  left: 14vw;
}

.orb-two {
  right: -12rem;
  bottom: 3rem;
  background: radial-gradient(circle, rgba(106, 167, 255, 0.17), rgba(106, 167, 255, 0) 68%);
  animation-duration: 22s;
  animation-delay: -8s;
}

.orb-three {
  left: 58vw;
  top: 38vh;
  width: 20rem;
  height: 20rem;
  background: radial-gradient(circle, rgba(255, 196, 95, 0.1), rgba(255, 196, 95, 0) 68%);
  animation-duration: 26s;
  animation-delay: -14s;
}

.shell {
  position: relative;
  z-index: 1;
}

.brand {
  position: relative;
  overflow: hidden;
}

.brand::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(110deg, transparent 0 32%, rgba(109, 255, 232, 0.12) 48%, transparent 64% 100%);
  transform: translateX(-110%);
  animation: brandSweep 7s ease-in-out infinite;
  pointer-events: none;
}

.brand-mark svg {
  filter: drop-shadow(0 0 18px rgba(84, 215, 197, 0.18));
  animation: markFloat 5.6s ease-in-out infinite;
}

#configNav .nav {
  transform-origin: left center;
}

@media (prefers-reduced-motion: no-preference) {
  #configNav .nav:hover:not(:disabled):not(.active) {
    transform: translateX(3px);
  }

  #configNav .nav:active:not(:disabled) {
    transform: translateX(1px) scale(0.988);
  }
}

.nav.active {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 28px rgba(84, 215, 197, 0.1);
}

.nav.active::after {
  content: "";
  position: absolute;
  inset: 7px 8px 7px auto;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(84, 215, 197, 0.42);
  animation: activeRail 2.2s ease-in-out infinite;
}

.topbar h1 {
  background: linear-gradient(100deg, #eef4ff 0%, #e8fffb 38%, #b9d4ff 72%, #eef4ff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: titleGlow 9s ease-in-out infinite;
}

.status,
.notice,
.user {
  position: relative;
  overflow: hidden;
}

.status::after,
.notice::after {
  content: "";
  position: absolute;
  inset: auto 12px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(84, 215, 197, 0.58), transparent);
  transform: translateX(-35%);
  animation: scanLine 5.8s ease-in-out infinite;
}

.server {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  animation: cardIn 300ms ease both;
  animation-delay: calc(var(--card-index, 0) * 42ms);
}

.server::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--pointer-x, 20%) var(--pointer-y, 20%), rgba(84, 215, 197, 0.15), transparent 32%),
    linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, 0.07) 49%, transparent 61% 100%);
  opacity: 0;
  transform: translateX(-28%);
  transition: opacity 200ms ease, transform 520ms ease;
  pointer-events: none;
}

.server:hover::before,
.server.selected::before {
  opacity: 1;
  transform: translateX(0);
}

.server:hover {
  transform: translateY(-4px) scale(1.008);
}

.server-mark,
.empty-icon,
.skeleton-mark {
  position: relative;
  overflow: hidden;
}

.server-mark::after,
.empty-icon::after,
.skeleton-mark::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 160deg, transparent, rgba(255, 255, 255, 0.3), transparent 36%);
  transform: rotate(0deg);
  opacity: 0;
}

.server:hover .server-mark::after,
.polished-empty:hover .empty-icon::after {
  opacity: 1;
  animation: iconOrbit 1.8s linear infinite;
}

.server.premium-server .server-mark {
  animation: premiumIconBreathe 3.6s ease-in-out infinite;
}

.details,
.panel,
.settings-group,
.settings-block,
.live-section,
.module-hero,
.overview-hero,
.wizard-hero,
.premium-panel {
  position: relative;
}

.details {
  animation: panelEnter 260ms ease both;
}

.details.view-switching {
  animation: panelEnter 220ms ease both;
}

.panel:not([hidden]) {
  animation: panelRise 260ms ease both;
}

.module-metric,
.ready-card,
.limit-card,
.premium-tier,
.wizard-step,
.system-card,
.score-row,
.action-row,
.inventory-card,
.module-card-pro,
.discord-preview {
  backface-visibility: hidden;
}

.module-metric:hover,
.ready-card:hover,
.limit-card:hover,
.premium-tier:hover,
.wizard-step:hover,
.system-card:hover,
.score-row:hover,
.action-row:hover,
.inventory-card:hover,
.module-card-pro:hover,
.discord-preview:hover {
  transform: translateY(-3px);
}

.loading-shell,
.loading-block,
.server-skeleton {
  position: relative;
  overflow: hidden;
}

.loading-shell::after,
.loading-block::after,
.server-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 35%, rgba(84, 215, 197, 0.055) 50%, transparent 65% 100%);
  transform: translateX(-110%);
  animation: loaderSweep 2.6s ease-in-out infinite;
  pointer-events: none;
}

.skeleton-mark {
  animation: skeletonSweep 1.35s ease-in-out infinite, loadingPulse 2.4s ease-in-out infinite;
}

.toast {
  animation: toastIn 220ms ease both;
}

.site-footer {
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: -1px auto auto 0;
  width: 32%;
  height: 1px;
  background: linear-gradient(90deg, rgba(84, 215, 197, 0.7), rgba(106, 167, 255, 0.25), transparent);
  animation: footerGlow 6s ease-in-out infinite;
}

.site-footer a {
  position: relative;
}

.site-footer a::after {
  content: "";
  position: absolute;
  inset: auto 0 -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 160ms ease;
}

.site-footer a:hover::after {
  transform: scaleX(1);
}

@keyframes orbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(34px, 22px, 0) scale(1.06); }
  66% { transform: translate3d(-24px, 38px, 0) scale(0.96); }
}

@keyframes brandSweep {
  0%, 46%, 100% { transform: translateX(-110%); opacity: 0; }
  58% { opacity: 1; }
  72% { transform: translateX(110%); opacity: 0; }
}

@keyframes markFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes activeRail {
  0%, 100% { opacity: 0.72; transform: scaleY(0.68); }
  50% { opacity: 1; transform: scaleY(1); }
}

@keyframes titleGlow {
  0%, 100% { background-position: 0% 50%; filter: drop-shadow(0 0 0 rgba(84, 215, 197, 0)); }
  50% { background-position: 100% 50%; filter: drop-shadow(0 0 18px rgba(84, 215, 197, 0.08)); }
}

@keyframes iconOrbit {
  to { transform: rotate(1turn); }
}

@keyframes premiumIconBreathe {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 34px rgba(0, 0, 0, 0.18); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 0 3px rgba(255, 196, 95, 0.08), 0 18px 42px rgba(255, 196, 95, 0.12); }
}

@keyframes loaderSweep {
  0%, 40% { transform: translateX(-110%); opacity: 0; }
  55% { opacity: 1; }
  100% { transform: translateX(110%); opacity: 0; }
}

@keyframes loadingPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.18); }
}

@keyframes footerGlow {
  0%, 100% { opacity: 0.35; width: 18%; }
  50% { opacity: 0.82; width: 42%; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body::before {
    animation: none !important;
  }

  .ambient-orb {
    filter: none !important;
    animation: none !important;
    opacity: 0.42;
  }

  .public-gallery-card,
  .public-gallery-card:hover,
  .public-gallery-card:hover .public-gallery-frame,
  .public-gallery-card:hover .public-gallery-frame img,
  .public-lightbox-panel,
  .public-lightbox-img,
  #landingPreviewWindow.is-pressing .preview-sidebar span,
  #landingPreviewWindow.is-pressing .preview-card,
  #landingPreviewWindow.is-pressing .preview-module-row,
  #landingPreviewWindow.is-pressing .preview-module-stat,
  #landingPreviewWindow.is-pressing .preview-module-pills span {
    transform: none !important;
    filter: none !important;
  }

  .brand::after,
  .brand-mark svg,
  .topbar h1,
  .public-hero h1,
  .status::after,
  .notice::after,
  .server:hover .server-mark::after,
  .polished-empty:hover .empty-icon::after,
  .skeleton-line,
  .skeleton-mark,
  .loading-shell::after,
  .loading-block::after,
  .server-skeleton::after,
  .site-footer::before,
  .server.premium-server .server-mark,
  .nav.active::after,
  .pulse,
  .toast,
  .public-hero-copy::after,
  .public-preview::before,
  .preview-window,
  .preview-window::after,
  .preview-chrome span:nth-child(3),
  .preview-sidebar span,
  .preview-metric strong,
  .preview-metric.live,
  .preview-metric.live::before,
  .preview-metric.live::after,
  .preview-card,
  .preview-card::before,
  .preview-card::after,
  .preview-module-wave::after,
  .preview-module-dot--pulse {
    animation: none !important;
  }

  body.public-reveal-js [data-public-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  #landingPreviewWindow.is-preview-modules .preview-skeleton-stack {
    opacity: 1 !important;
    transform: none !important;
  }

  #landingPreviewWindow.is-preview-modules .preview-module-stack {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: none !important;
  }

  .preview-parallax-layer {
    transform: none !important;
    will-change: auto;
  }

  .public-hero-parallax-layer {
    transform: none !important;
    will-change: auto;
  }

  .preview-module-stack {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .server,
  .details,
  .panel:not([hidden]),
  .module-list.module-grid-pro .module-card-pro,
  .wizard-pills .wizard-pill,
  .loading-grid--rich .loading-card,
  .score-ring,
  .public-hero-copy,
  .public-preview,
  .public-feature-grid article {
    animation: none !important;
  }

  .module-list.module-grid-pro .module-card-pro,
  .wizard-pills .wizard-pill,
  .loading-grid--rich .loading-card,
  .public-feature-grid article {
    opacity: 1;
  }

  .server:hover {
    transform: none;
  }

  .public-nav .public-pill:hover {
    transform: none;
  }

  .quick-module-toggles.data-pulse-success {
    animation: none !important;
  }

  .setup-score-ring,
  .setup-score-ring .setup-score-inner {
    animation: none !important;
  }

  .setup-score-ring {
    filter: none !important;
  }

  .health-card .score-ring,
  .health-card.premium-health .score-ring {
    animation: ringPop 420ms ease both !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: #3d5272;
    --muted: #c4d2e8;
  }

  .panel,
  .server,
  .notice,
  .command-dialog,
  .confirm-dialog,
  .module-metric,
  .ready-card,
  .settings-block,
  .quick-module-toggle {
    border-color: rgba(255, 255, 255, 0.38);
  }

  .nav,
  .mini,
  .button {
    border: 1px solid rgba(255, 255, 255, 0.32);
  }
}

@media (max-width: 860px) {
  body {
    overflow-x: hidden;
  }

  .public-shell {
    padding-top: 18px;
  }

  .public-topbar,
  .public-hero {
    grid-template-columns: 1fr;
  }

  .public-topbar {
    align-items: flex-start;
    margin-bottom: 28px;
  }

  .public-nav {
    justify-content: flex-start;
  }

  .public-hero-copy {
    padding: 24px;
  }

  .public-preview {
    padding: 12px;
  }

  .preview-dashboard {
    grid-template-columns: 1fr;
  }

  .preview-sidebar {
    display: none;
  }

  .public-feature-grid {
    grid-template-columns: 1fr;
  }

  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    position: static;
    height: auto;
    padding: 18px;
  }

  .sidebar::after {
    inset: auto 18px 0;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(69, 219, 194, 0.46), rgba(105, 168, 255, 0.24), transparent);
  }

  .brand {
    margin-bottom: 16px;
  }

  #configNav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 2px 8px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .nav,
  .nav.active {
    flex: 0 0 auto;
    min-width: max-content;
    min-height: 42px;
    justify-content: center;
    padding-left: 12px;
    padding-right: 12px;
    scroll-snap-align: start;
  }

  .nav::before {
    inset: auto 12px 5px;
    width: auto;
    height: 2px;
    transform: scaleX(0.45);
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar > div:first-child {
    min-width: 0;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .details {
    position: static;
    width: 100%;
    overflow: visible;
  }

  .details-head,
  .module,
  .whitelist-row,
  .whitelist-form {
    align-items: stretch;
    flex-direction: column;
  }

  .details-actions,
  .actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .details-head-row {
    flex-direction: column;
    align-items: stretch;
  }

  .health-glance-jump {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  .language-control {
    flex: 1 1 160px;
    justify-content: space-between;
  }

  .actions > .mini,
  .actions > .button,
  .account-menu,
  .account-button {
    flex: 1 1 150px;
  }

  .account-button {
    width: 100%;
    justify-content: flex-start;
  }

  .account-dropdown {
    left: 0;
    right: auto;
    min-width: min(280px, calc(100vw - 36px));
  }

  .health-lists,
  .loading-grid,
  .ops-grid,
  .premium-flow,
  .settings-grid,
  .system-grid,
  .score-grid,
  .module-hero,
  .module-metrics,
  .activity-feed,
  .access-guard,
  .recommendation-list,
  .ops-radar,
  .radar-grid,
  .pulse-bars,
  .coverage-matrix-grid,
  .live-command,
  .health-command-strip,
  .limit-guard,
  .section-tabs,
  .ready-grid,
  .wizard-quick-list,
  .counter-grid,
  .premium-tiers,
  .dashboard-live,
  .inventory-summary,
  .inventory-grid,
  .inventory-columns,
  .command-files,
  .category-row,
  .blacklist-row,
  .macro-row,
  .reward-board,
  .reward-row,
  .metrics {
    grid-template-columns: 1fr;
  }

  .overview-hero,
  .wizard-hero,
  .premium-panel,
  .premium-status-card,
  .premium-contact {
    grid-template-columns: 1fr;
  }

  .activity-feed-list article,
  .invoice-row,
  .access-guard-grid,
  .recommendation,
  .ops-radar {
    align-items: flex-start;
  }

  .command-row {
    grid-template-columns: 1fr;
    padding: 10px 12px;
  }

  .radar-warnings {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .wizard-intro {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 18px 6px;
  }

  .wizard-step-board {
    margin: 12px 18px 22px;
  }

  .section-tabs {
    position: static;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .section-tab {
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .wide-field {
    grid-column: span 1;
  }

  .field input,
  .field select,
  .field textarea,
  .button,
  .mini,
  .server-action {
    width: 100%;
  }

  .metrics,
  .badges,
  .module-summary,
  .module-actions,
  .details-actions {
    min-width: 0;
  }

  .badge,
  .status-pill,
  .health-pill {
    max-width: 100%;
    white-space: normal;
  }

  .toast-stack {
    left: 18px;
    right: 18px;
    width: auto;
  }

  .site-footer span:first-child {
    flex-basis: 100%;
  }

  .site-footer .footer-versions {
    flex-basis: 100%;
  }

  .module-hero,
  .overview-hero,
  .wizard-hero,
  .premium-panel,
  .health-card {
    padding: 16px;
  }

  .module-hero-side,
  .module-hero-preview,
  .premium-status-card {
    width: 100%;
  }

  .overview-score,
  .score-ring {
    width: 88px;
    height: 88px;
  }

  .score {
    width: 62px;
    height: 62px;
  }
}

@media (max-width: 560px) {
  .content {
    padding: 14px;
  }

  .preview-live-badge {
    display: none;
  }

  h1 {
    font-size: 24px;
  }

  #configNav {
    margin-inline: -2px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .status,
  .notice,
  .user,
  .details,
  .server {
    padding: 14px;
  }

  .sidebar {
    padding: 14px;
  }

  .brand {
    gap: 10px;
    padding: 7px;
  }

  .mark {
    width: 38px;
    height: 38px;
  }

  .actions {
    gap: 8px;
  }

  .actions > .mini,
  .actions > .button,
  .language-control,
  .account-menu,
  .premium-actions .button,
  .premium-actions .mini {
    flex-basis: 100%;
  }

  .premium-panel h3 {
    font-size: 24px;
  }

  .premium-status-card {
    min-height: 120px;
  }

  .dev-status,
  .live-footer,
  .panel-head,
  .details-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-head .mini,
  .details-actions .mini {
    margin-top: 0;
  }

  .audit-tools {
    grid-template-columns: 1fr;
  }

  .command-layer {
    align-items: flex-start;
    padding-top: 18px;
  }

  .command-dialog {
    max-height: calc(100vh - 36px);
    overflow: auto;
  }

  .module-hero,
  .overview-hero,
  .wizard-hero,
  .premium-panel,
  .health-card {
    padding: 14px;
  }

  .module-hero h3,
  .overview-hero h3,
  .wizard-hero h3 {
    font-size: 22px;
  }

  .health-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .toast {
    grid-template-columns: 1fr auto;
  }

  .toast-icon {
    display: none;
  }

  .legal-page {
    width: min(100% - 24px, 920px);
    padding-top: 18px;
  }

  .legal-hero {
    padding: 18px;
  }
}

@media (max-width: 390px) {
  .content,
  .sidebar {
    padding-inline: 10px;
  }

  .status,
  .notice,
  .user,
  .details,
  .server {
    padding: 12px;
  }

  h1 {
    font-size: 22px;
  }

  .nav,
  .nav.active {
    min-height: 40px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .button,
  .mini,
  .server-action,
  .account-button,
  .language-control {
    min-width: 0;
  }

  .section-tab {
    min-height: 36px;
    padding-inline: 10px;
  }
}

/* Dashboard: custom-styled native selects (closed state) so forms match the dark UI instead of default OS chrome. */
#detailsPanel select,
.details select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(69, 219, 194, 0.26);
  border-radius: 10px;
  padding: 10px 40px 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background-color: rgba(23, 34, 50, 0.96);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpolygon fill='%239fb0c8' points='0,1 12,1 6,8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  cursor: pointer;
  min-height: 42px;
}

#detailsPanel select:hover,
.details select:hover {
  border-color: rgba(105, 168, 255, 0.38);
}

#detailsPanel select:focus,
.details select:focus {
  outline: none;
  border-color: rgba(69, 219, 194, 0.55);
  box-shadow: 0 0 0 3px rgba(69, 219, 194, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.server-selected .details .panel-head {
  padding-bottom: 4px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(34, 49, 72, 0.55);
}

/* Premium activation celebration + bot-owner grant by guild ID */
body.premium-celebrate-lock {
  overflow: hidden;
}

.premium-celebrate-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.premium-celebrate-overlay.premium-celebrate-visible {
  opacity: 1;
  pointer-events: auto;
}

.premium-celebrate-overlay.premium-celebrate-leaving {
  opacity: 0;
  pointer-events: none;
}

.premium-celebrate-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(69, 219, 194, 0.18), transparent 52%),
    radial-gradient(circle at 80% 80%, rgba(88, 140, 255, 0.16), transparent 55%),
    rgba(6, 10, 16, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.premium-celebrate-card {
  position: relative;
  z-index: 1;
  max-width: 440px;
  width: min(440px, 100%);
  padding: 36px 32px 32px;
  border-radius: 20px;
  border: 1px solid rgba(130, 200, 255, 0.22);
  background: linear-gradient(165deg, rgba(13, 24, 36, 0.96), rgba(8, 14, 22, 0.98));
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 -20px 50px rgba(69, 219, 194, 0.08) inset;
  transform: translateY(12px) scale(0.97);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.premium-celebrate-visible .premium-celebrate-card {
  transform: translateY(0) scale(1);
}

.premium-celebrate-leaving .premium-celebrate-card {
  transform: translateY(10px) scale(0.96);
}

.premium-celebrate-shine {
  pointer-events: none;
  position: absolute;
  top: -40%;
  left: -25%;
  width: 140%;
  height: 120%;
  background: linear-gradient(
    120deg,
    transparent 38%,
    rgba(147, 247, 255, 0.16) 50%,
    transparent 62%
  );
  animation: premiumCelebrateShimmer 3.8s ease-in-out infinite;
  opacity: 0.85;
}

@keyframes premiumCelebrateShimmer {
  0%,
  100% {
    transform: translateX(-14%) rotate(6deg);
    opacity: 0.65;
  }
  50% {
    transform: translateX(16%) rotate(6deg);
    opacity: 0.95;
  }
}

.premium-celebrate-eyebrow {
  position: relative;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(147, 247, 255, 0.95);
}

.premium-celebrate-overlay h2 {
  position: relative;
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.15;
  color: #f3f8ff;
}

.premium-celebrate-sub {
  position: relative;
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 600;
}

.premium-celebrate-list {
  position: relative;
  margin: 0 0 22px;
  padding-left: 20px;
  color: rgba(210, 224, 244, 0.92);
  font-size: 14px;
  line-height: 1.55;
}

.premium-celebrate-btn {
  position: relative;
  width: 100%;
  font-weight: 800;
}

.owner-remote-premium-card {
  margin-top: 20px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(147, 200, 255, 0.18);
  background: rgba(0, 0, 0, 0.2);
}

.owner-remote-premium-intro {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.owner-remote-premium-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.owner-remote-premium-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

.owner-remote-premium-field input[type="text"],
.owner-remote-premium-field input[type="number"] {
  min-height: 40px;
  min-width: 200px;
  border-radius: 10px;
  border: 1px solid rgba(110, 150, 200, 0.28);
  background: rgba(8, 12, 18, 0.65);
  color: inherit;
  padding: 8px 12px;
  font: inherit;
}

.mod-commands-scroll {
  display: grid;
  gap: 12px;
  max-height: min(70vh, 720px);
  overflow: auto;
  padding-bottom: 8px;
}

.mod-cmd-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.mod-cmd-what-block {
  margin: -2px 0 10px;
}

.mod-cmd-what-label {
  margin: 0 0 4px;
  letter-spacing: 0.02em;
}

.mod-cmd-what-body {
  margin: 0;
  line-height: 1.45;
}

.mod-perm-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
}

/* Analytics Command Center — single plan stack (Free OR Premium, not side-by-side) */
.analytics-plan-stack {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.analytics-plan-stack__head {
  margin-bottom: 12px;
}

.analytics-insights {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.analytics-insights--embedded {
  margin-top: 24px;
}

.analytics-insights__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.analytics-insights__head--embedded h4 {
  margin: 0 0 4px;
}

.analytics-plan-lock {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  background: rgba(0, 0, 0, 0.12);
}

.access-guard--embedded {
  margin-top: 18px;
}

/* Legacy dual-column layout (deprecated — kept for cached markup safety) */
.analytics-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 16px;
  margin-top: 12px;
}

.analytics-plan-col {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.analytics-plan-col--free {
  border-color: rgba(148, 163, 184, 0.22);
}

.analytics-plan-col--premium {
  border-color: rgba(84, 215, 197, 0.28);
  background: linear-gradient(160deg, rgba(84, 215, 197, 0.06), rgba(255, 255, 255, 0.02));
}

.analytics-plan-col--locked .analytics-plan-lock {
  margin-top: 8px;
}

.analytics-plan-col--locked-preview {
  opacity: 0.35;
  pointer-events: none;
  filter: blur(1px);
  max-height: 180px;
  overflow: hidden;
}

.analytics-plan-col__head {
  margin-bottom: 12px;
}

.analytics-page__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.analytics-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.analytics-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.analytics-summary article {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.15);
}

.analytics-summary strong {
  display: block;
  font-size: 1.15rem;
  margin-top: 2px;
}

.analytics-subheading {
  margin: 16px 0 8px;
  font-size: 0.95rem;
}

.analytics-free-charts,
.analytics-premium-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.analytics-compare-table,
.analytics-heatmap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.analytics-compare-table th,
.analytics-compare-table td,
.analytics-heatmap-table th,
.analytics-heatmap-table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

.analytics-heatmap-wrap {
  overflow-x: auto;
}

.analytics-foot {
  margin-top: 14px;
}

.analytics-premium-tools {
  margin-bottom: 8px;
}

.analytics-section {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.analytics-section:first-of-type {
  margin-top: 8px;
  padding-top: 0;
  border-top: 0;
}

.analytics-subheading--nested {
  margin-top: 12px;
  font-size: 0.92rem;
}

.analytics-retention-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 8px 0;
}

.analytics-retention-card {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.analytics-retention-card strong {
  font-size: 1.35rem;
}

.analytics-summary--funnel {
  margin-bottom: 10px;
}

.analytics-alert {
  margin: 8px 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(251, 113, 133, 0.35);
  background: rgba(251, 113, 133, 0.08);
  color: #fecdd3;
  font-size: 0.92rem;
}

.analytics-digest-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
}

.analytics-digest-form .field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.analytics-weekly-table th[scope="row"] {
  text-align: left;
  font-weight: 500;
}

.starboard-save-row {
  margin-top: 14px;
}

.starboard-page__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.starboard-page__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.starboard-setup-warn {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 170, 64, 0.12);
  border: 1px solid rgba(255, 170, 64, 0.28);
}

.starboard-discord-cmds {
  margin-top: 8px;
}

.starboard-discord-cmds__list {
  margin: 8px 0 0;
  padding-left: 18px;
}

.starboard-discord-cmds__list li + li {
  margin-top: 4px;
}

.starboard-highlights-table td:first-child {
  max-width: 280px;
  word-break: break-word;
}

