@import url("tokens.css");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% -10%, rgba(122, 79, 255, 0.16), transparent 28rem),
    radial-gradient(circle at 92% 5%, rgba(58, 123, 255, 0.12), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
  content: "";
  pointer-events: none;
}

::selection {
  background: rgba(139, 92, 246, 0.34);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

code,
.mono {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

code {
  color: #c7b9ff;
  font-size: 0.9em;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

/* Top navigation */
.topbar {
  position: sticky;
  z-index: 80;
  top: 0;
  display: flex;
  height: var(--topbar-h);
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  border-bottom: 1px solid var(--border);
  background: var(--topbar-bg);
  backdrop-filter: blur(22px) saturate(140%);
}

.topbar .brand {
  display: flex;
  min-width: max-content;
  align-items: center;
  gap: 12px;
}

.brand-mark,
.topbar .brand .logo {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
  background: var(--gradient);
  box-shadow: 0 10px 28px rgba(105, 78, 232, 0.34);
  color: #fff;
}

.brand-mark::after,
.topbar .brand .logo::after {
  position: absolute;
  top: -45%;
  left: -15%;
  width: 90%;
  height: 80%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  content: "";
  filter: blur(12px);
}

.topbar .brand .bname {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.topbar .brand .bstatus {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.dot,
.topbar .brand .bstatus .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(66, 211, 146, 0.1), 0 0 14px rgba(66, 211, 146, 0.5);
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topbar nav a:not(.btn) {
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  transition: 160ms ease;
}

.topbar nav a:not(.btn):hover,
.topbar nav a.active:not(.btn) {
  background: var(--surface-2);
  color: var(--ink);
}

.topbar nav a.active:not(.btn) {
  box-shadow: 0 0 0 1px var(--border) inset;
}

/* Links do header centralizados (marca à esquerda, ações à direita) */
.topbar nav .nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
@media (max-width: 720px) {
  .topbar nav .nav-links {
    display: contents;
  }
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: 6px;
  padding: 5px 11px 5px 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.user-chip img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.user-chip span {
  max-width: 120px;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-toggle,
.sidebar-mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

/* App shell and sidebar */
.shell {
  display: flex;
  min-height: calc(100vh - var(--topbar-h));
}

.sidebar {
  position: sticky;
  top: var(--topbar-h);
  display: flex;
  width: var(--sidebar-w);
  height: calc(100vh - var(--topbar-h));
  flex: 0 0 auto;
  flex-direction: column;
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: rgba(10, 13, 21, 0.78);
  padding: 18px 14px;
  backdrop-filter: blur(18px);
  scrollbar-width: thin;
  transition: width 200ms ease, transform 200ms ease;
}

.sidebar-guild {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--gradient-soft);
}

.sidebar-guild::after {
  position: absolute;
  right: 12px;
  color: var(--text-3);
  content: "⌄";
  font-size: 14px;
}

.sidebar-guild img,
.sidebar-guild .gph {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
  object-fit: cover;
}

.sidebar-guild .gcopy {
  min-width: 0;
  padding-right: 18px;
}

.sidebar-guild .gname {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-guild .glabel {
  color: var(--text-3);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sidebar-section {
  padding: 15px 11px 7px;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 2px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 580;
  transition: 150ms ease;
}

.nav-link .ico {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  filter: grayscale(0.2);
  font-size: 13px;
}

.nav-link:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.nav-link.active {
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.16) inset;
  color: #cbbcff;
}

.nav-link.active::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: -14px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--gradient);
  box-shadow: 0 0 14px var(--accent-glow);
  content: "";
}

.nav-link.active .ico {
  background: rgba(139, 92, 246, 0.16);
}

.sidebar-spacer {
  flex: 1;
  min-height: 18px;
}

.sidebar-footer {
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.collapse-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.collapse-btn:hover {
  border-color: var(--border);
  background: var(--surface-2);
  color: var(--ink);
}

.sidebar.collapsed {
  width: 78px;
}

.sidebar.collapsed .nav-link span:last-child,
.sidebar.collapsed .sidebar-section,
.sidebar.collapsed .sidebar-guild .gcopy,
.sidebar.collapsed .sidebar-guild::after,
.sidebar.collapsed .collapse-btn span {
  display: none;
}

.sidebar.collapsed .sidebar-guild {
  justify-content: center;
  padding: 7px;
}

.sidebar.collapsed .nav-link {
  justify-content: center;
  padding-inline: 8px;
}

.sidebar.collapsed .nav-link.active::before {
  left: -14px;
}

.content {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 34px clamp(22px, 3vw, 44px) 64px;
}

/* Page hierarchy */
.page-head,
.page-banner {
  position: relative;
  margin-bottom: 24px;
}

.page-head.flex-between {
  padding-top: 21px;
}

.page-head.flex-between::before {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
}

.page-head::before,
.page-banner::before {
  display: block;
  margin-bottom: 9px;
  color: #a994ff;
  content: "MQN CONTROL CENTER";
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.page-head h1,
.page-banner h1 {
  max-width: 850px;
  color: var(--ink);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 780;
  letter-spacing: -0.04em;
}

.page-head p,
.page-banner p {
  max-width: 720px;
  margin-top: 7px;
  color: var(--text-2);
  font-size: 14px;
}

.page-banner {
  overflow: hidden;
  padding: 26px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 10%, rgba(112, 86, 255, 0.24), transparent 18rem),
    linear-gradient(135deg, rgba(26, 31, 48, 0.92), rgba(15, 18, 29, 0.94));
  box-shadow: var(--shadow);
}

.page-banner::after {
  position: absolute;
  right: -55px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 34px rgba(255, 255, 255, 0.018), 0 0 0 70px rgba(255, 255, 255, 0.012);
}

.page-banner .accent,
.grad {
  background: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.page-banner .banner-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

/* Generic layout */
.grid {
  display: grid;
  gap: 16px;
}

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

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.row {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.muted { color: var(--text-2); }

/* Cards */
.card,
.module-card,
.svr-card,
.cmd,
.feature,
.plan {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(21, 25, 39, 0.94), rgba(15, 18, 28, 0.94));
  box-shadow: var(--shadow);
}

.card {
  position: relative;
  padding: 22px;
  border-radius: var(--radius);
}

.card::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 38%);
  content: "";
  pointer-events: none;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card h3 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.stat-card {
  min-height: 148px;
  overflow: hidden;
}

.stat-card::before {
  position: absolute;
  right: -28px;
  bottom: -45px;
  width: 115px;
  height: 115px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 87, 255, 0.16), transparent 68%);
  content: "";
}

.stat-card .icon {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-2);
  color: #cabdff;
  font-size: 16px;
}

.stat-card .label {
  color: var(--text-2);
  font-size: 12px;
  font-weight: 650;
}

.stat-card .value {
  margin-top: 13px;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 780;
  letter-spacing: -0.05em;
  line-height: 1;
}

.stat-card .delta {
  margin-top: 12px;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 600;
}

.stat-card .delta.up {
  color: var(--success);
}

/* Modules and status */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.module-card {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px;
  border-radius: var(--radius-sm);
  box-shadow: none;
  cursor: pointer;
  transition: 160ms ease;
}

.module-card:hover {
  border-color: var(--border-accent);
  background: linear-gradient(145deg, rgba(35, 31, 57, 0.96), rgba(18, 22, 34, 0.96));
  transform: translateY(-1px);
}

.module-card .m-ico {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-2);
  font-size: 16px;
}

.module-card .m-body {
  min-width: 0;
  flex: 1;
}

.module-card .m-title {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.module-card .m-desc {
  margin-top: 4px;
  color: var(--text-3);
  font-size: 11px;
}

.sys-row {
  margin-bottom: 19px;
}

.sys-row:last-child {
  margin-bottom: 0;
}

.sys-row .sys-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
}

.sys-row .sys-head .k { color: var(--text-2); }
.sys-row .sys-head .v { color: var(--ink); font-weight: 700; }

.bar,
.progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-3);
}

.bar > span,
.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gradient);
  box-shadow: 0 0 18px var(--accent-glow);
}

/* Activity */
.activity {
  display: flex;
  flex-direction: column;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 2px;
  border-top: 1px solid var(--border);
}

.activity-item:first-child {
  border-top: 0;
}

.activity-item .av {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--border-accent);
  border-radius: 11px;
  background: var(--accent-soft);
  color: #c8b9ff;
  font-size: 11px;
  font-weight: 750;
}

.activity-item .ai-main {
  min-width: 0;
  flex: 1;
}

.activity-item .ai-main .nm {
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}

.activity-item .ai-main .sub,
.activity-item .ai-time {
  margin-top: 2px;
  color: var(--text-3);
  font-size: 11px;
}

.activity-item .ai-time {
  margin: 0;
  white-space: nowrap;
}

.code-pill {
  margin-left: 6px;
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-2);
  color: #c9bdff;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
}

/* Server cards */
.svr-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 28px 0 13px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.svr-section-title .count {
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 10px;
}

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

.svr-card {
  overflow: hidden;
  border-radius: var(--radius);
  transition: 180ms ease;
}

.svr-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.svr-cover {
  height: 92px;
  opacity: 0.72;
  filter: saturate(0.72);
}

.svr-body {
  padding: 0 17px 17px;
}

.svr-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: -27px;
}

.svr-ava {
  display: grid;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  place-items: center;
  border: 4px solid var(--surface-solid);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  object-fit: cover;
}

.svr-meta {
  min-width: 0;
  padding-top: 31px;
}

.svr-meta .nm {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.svr-meta .mc {
  margin-top: 2px;
  color: var(--text-3);
  font-size: 11px;
}

.svr-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.svr-actions .btn {
  flex: 1;
  justify-content: center;
}

.svr-actions .gear {
  flex: 0 0 auto;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(9, 11, 18, 0.34);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-3);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-align: left;
  text-transform: uppercase;
}

tbody td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
}

tbody tr {
  transition: background 140ms ease;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

tbody tr:last-child td {
  border-bottom: 0;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.badge.solid,
.badge.accent {
  border-color: rgba(139, 92, 246, 0.2);
  background: var(--accent-soft);
  color: #cabdff;
}

.badge.open {
  border-color: rgba(66, 211, 146, 0.2);
  background: var(--success-soft);
  color: var(--success);
}

.badge.closed {
  border-color: rgba(255, 107, 129, 0.2);
  background: var(--danger-soft);
  color: var(--danger);
}

.badge.claimed {
  border-color: rgba(245, 185, 95, 0.2);
  background: var(--warning-soft);
  color: var(--warning);
}

/* Buttons */
.btn {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: 150ms ease;
}

.btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--surface-hover);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn.primary {
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--gradient);
  box-shadow: 0 10px 28px rgba(93, 70, 207, 0.24), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
  color: #fff;
}

.btn.primary:hover {
  box-shadow: 0 14px 34px rgba(93, 70, 207, 0.36), 0 1px 0 rgba(255, 255, 255, 0.22) inset;
  filter: brightness(1.06);
}

.btn.danger {
  border-color: rgba(255, 107, 129, 0.2);
  background: var(--danger-soft);
  color: var(--danger);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.035);
}

.btn.ghost {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--text-2);
}

.btn.sm {
  min-height: 31px;
  padding: 5px 10px;
  border-radius: 9px;
  font-size: 10px;
}

.btn.lg {
  min-height: 50px;
  padding: 13px 21px;
  border-radius: 14px;
  font-size: 13px;
}

/* Forms */
.field {
  margin-bottom: 17px;
}

.field:last-child {
  margin-bottom: 0;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
}

.field .hint,
.hint {
  margin-top: 5px;
  color: var(--text-3);
  font-size: 10px;
  line-height: 1.55;
}

input[type="text"],
input[type="number"],
input[type="search"],
input[type="url"],
textarea,
select {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  outline: none;
  background: rgba(7, 9, 15, 0.66);
  color: var(--text);
  font-size: 12px;
  transition: 150ms ease;
}

input[type="text"],
input[type="number"],
input[type="search"],
input[type="url"],
select {
  min-height: 41px;
  padding: 9px 11px;
}

textarea {
  min-height: 110px;
  padding: 11px;
  line-height: 1.55;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #515a6c;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(139, 92, 246, 0.7);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

select {
  color-scheme: dark;
}

input[type="color"] {
  width: 43px;
  height: 39px;
  padding: 3px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: rgba(7, 9, 15, 0.66);
  cursor: pointer;
}

.color-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.color-row input[type="text"] {
  flex: 1;
}

.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
}

.switch input {
  width: 0;
  height: 0;
  opacity: 0;
}

.slider {
  position: absolute;
  inset: 0;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-3);
  cursor: pointer;
  transition: 180ms ease;
}

.slider::before {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #a6aebb;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.3);
  content: "";
  transition: 180ms ease;
}

.switch input:checked + .slider {
  border-color: rgba(139, 92, 246, 0.6);
  background: var(--accent);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.2);
}

.switch input:checked + .slider::before {
  background: #fff;
  transform: translateX(18px);
}

/* Tabs and segmented controls */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 20px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  width: fit-content;
}

.tabs a {
  padding: 7px 12px;
  border-radius: 9px;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 700;
  transition: 140ms ease;
}

.tabs a:hover {
  color: var(--ink);
}

.tabs a.active {
  background: var(--surface-2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  color: var(--ink);
}

.seg button {
  color: var(--text-2);
  transition: 140ms ease;
}

.seg button.active {
  background: var(--gradient) !important;
  color: #fff;
}

/* Empty, modal, toast */
.empty {
  padding: 58px 20px;
  color: var(--text-2);
  text-align: center;
}

.empty .ei {
  margin-bottom: 11px;
  filter: grayscale(0.2);
  font-size: 34px;
}

.empty p {
  font-size: 12px;
}

.error-page {
  display: grid;
  min-height: calc(100vh - var(--topbar-h));
  place-items: center;
  padding: 40px 20px;
  text-align: center;
}

.error-card {
  width: min(620px, 100%);
  padding: 54px 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% 0, rgba(126, 84, 255, 0.2), transparent 20rem),
    var(--surface);
  box-shadow: var(--shadow-lg);
}

.error-code {
  background: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-size: clamp(66px, 13vw, 120px);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.9;
  -webkit-text-fill-color: transparent;
}

.error-card h1 {
  margin-top: 22px;
  font-size: 25px;
}

.error-card p {
  max-width: 450px;
  margin: 11px auto 25px;
  color: var(--text-2);
}

#toasts {
  position: fixed;
  z-index: 200;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.toast {
  min-width: 250px;
  padding: 13px 16px;
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: rgba(18, 22, 34, 0.95);
  box-shadow: var(--shadow-lg);
  color: var(--text);
  font-size: 12px;
  backdrop-filter: blur(16px);
  animation: slideIn 220ms ease;
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: none; }
}

.modal-backdrop {
  position: fixed;
  z-index: 150;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 4, 8, 0.72);
  backdrop-filter: blur(8px);
}

.modal-backdrop.show {
  display: flex;
}

.modal {
  width: 100%;
  max-width: 450px;
  padding: 24px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  box-shadow: var(--shadow-lg);
}

.modal h3 {
  margin-bottom: 8px;
}

.modal p {
  margin-bottom: 20px;
  color: var(--text-2);
  font-size: 12px;
}

.modal .actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

/* Documentation */
.cmd {
  margin-bottom: 11px;
  padding: 18px 20px;
  border-radius: var(--radius);
}

.cmd .cmd-name {
  color: #b8a6ff;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 750;
}

.cmd .cmd-desc {
  margin: 5px 0 12px;
  color: var(--text-2);
  font-size: 12px;
}

.cmd .opt {
  display: flex;
  gap: 9px;
  padding: 7px 0;
  border-top: 1px solid var(--border);
  font-size: 11px;
}

.cmd .opt .req { color: var(--danger); font-size: 9px; }
.cmd .opt .otype { margin-left: auto; color: var(--text-3); }

/* Preview surfaces */
.preview-stage {
  display: grid;
  min-height: 180px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 50% 0, rgba(83, 101, 242, 0.12), transparent 60%),
    #0b0d12;
  padding: 21px;
}

.preview-stage canvas,
.preview-stage img {
  max-width: 100%;
  border-radius: 8px;
}

/* Landing */
.landing {
  overflow: hidden;
}

.landing-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.landing-hero {
  position: relative;
  display: grid;
  min-height: 690px;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: clamp(40px, 7vw, 90px);
  padding: 90px 0 80px;
}

.landing-hero::before {
  position: absolute;
  z-index: -1;
  top: 6%;
  right: -18%;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 77, 255, 0.19), transparent 65%);
  content: "";
  filter: blur(4px);
}

.eyebrow,
.pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--border-accent);
  border-radius: 999px;
  background: var(--accent-soft);
  color: #cbbdff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-hero h1 {
  max-width: 660px;
  margin-top: 22px;
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 790;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.landing-hero h1 span {
  background: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.landing-hero .lead {
  max-width: 590px;
  margin-top: 24px;
  color: var(--text-2);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.7;
}

.landing-hero .ctas,
.landing-cta .ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 30px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 650;
}

.hero-trust span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-trust span::before {
  color: var(--success);
  content: "✓";
  font-weight: 800;
}

.dashboard-preview {
  position: relative;
  padding: 12px;
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  background: rgba(17, 20, 31, 0.76);
  box-shadow: var(--shadow-lg), 0 0 80px rgba(89, 64, 210, 0.16);
  transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
}

.dashboard-preview::before {
  position: absolute;
  z-index: -1;
  inset: 12% -8% -8% 15%;
  border-radius: 30px;
  background: var(--gradient);
  content: "";
  filter: blur(45px);
  opacity: 0.18;
}

.preview-window {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #0d1018;
}

.preview-top {
  display: flex;
  height: 46px;
  align-items: center;
  gap: 6px;
  padding: 0 15px;
  border-bottom: 1px solid var(--border);
}

.preview-top i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--surface-3);
}

.preview-top .preview-title {
  margin-left: 8px;
  color: var(--text-3);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-app {
  display: grid;
  min-height: 390px;
  grid-template-columns: 106px 1fr;
}

.preview-side {
  padding: 15px 10px;
  border-right: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.preview-logo {
  width: 34px;
  height: 34px;
  margin-bottom: 19px;
  border-radius: 10px;
  background: var(--gradient);
}

.preview-line {
  height: 7px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--surface-3);
}

.preview-line.active {
  background: rgba(139, 92, 246, 0.44);
}

.preview-main {
  padding: 25px 20px;
}

.preview-kicker {
  width: 72px;
  height: 7px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.55);
}

.preview-heading {
  width: 58%;
  height: 18px;
  margin-top: 11px;
  border-radius: 5px;
  background: #e8ebf3;
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 23px;
}

.preview-stat {
  min-height: 79px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
}

.preview-stat b {
  display: block;
  color: #fff;
  font-size: 19px;
}

.preview-stat small {
  color: var(--text-3);
  font-size: 7px;
}

.preview-chart {
  position: relative;
  height: 155px;
  margin-top: 11px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--surface);
  background-size: 26px 26px;
}

.preview-chart svg {
  position: absolute;
  right: 10px;
  bottom: 16px;
  left: 10px;
  width: calc(100% - 20px);
  height: 105px;
}

.topgg-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 20px;
  padding: 20px 22px 20px 26px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 20%, rgba(79, 141, 255, 0.14), transparent 18rem),
    linear-gradient(135deg, rgba(139, 92, 246, 0.09), rgba(18, 22, 34, 0.72));
  box-shadow: var(--shadow);
}

.topgg-copy {
  min-width: 0;
}

.topgg-kicker {
  display: block;
  margin-bottom: 4px;
  color: #a994ff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.topgg-copy strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
}

.topgg-copy p {
  max-width: 650px;
  margin-top: 4px;
  color: var(--text-2);
  font-size: 11px;
}

.topgg-widget {
  display: block;
  flex: 0 0 auto;
  padding: 8px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(8, 10, 16, 0.58);
  transition: border-color 160ms ease, transform 160ms ease;
}

.topgg-widget:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.topgg-widget img {
  display: block;
  width: 255px;
  max-width: 100%;
  height: auto;
}

.landing-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  margin-bottom: 110px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
}

.landing-metric {
  padding: 25px 26px;
  border-right: 1px solid var(--border);
}

.landing-metric:last-child {
  border-right: 0;
}

.landing-metric strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
  letter-spacing: -0.04em;
}

.landing-metric span {
  color: var(--text-3);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.landing-section {
  padding: 105px 0;
  border-top: 1px solid var(--border);
}

.landing-section.soft {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.018), transparent);
}

.section-intro {
  max-width: 680px;
}

.section-intro.center {
  margin: 0 auto;
  text-align: center;
}

.section-intro h2 {
  margin-top: 15px;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 760;
  letter-spacing: -0.055em;
}

.section-intro p {
  margin-top: 15px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
}

.feature-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 48px;
}

.feature {
  min-height: 220px;
  padding: 24px;
  border-radius: var(--radius-lg);
  transition: 180ms ease;
}

.feature:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.feature.wide {
  grid-column: span 2;
}

.feature .fic {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 35px;
  border: 1px solid var(--border-accent);
  border-radius: 13px;
  background: var(--accent-soft);
  color: #c8b8ff;
  font-size: 19px;
}

.feature h3 {
  font-size: 17px;
}

.feature p {
  max-width: 460px;
  margin-top: 8px;
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.65;
}

.pricing {
  display: grid;
  max-width: 850px;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 48px auto 0;
}

.plan {
  position: relative;
  padding: 30px;
  border-radius: var(--radius-lg);
}

.plan.pro {
  border-color: rgba(139, 92, 246, 0.45);
  background:
    radial-gradient(circle at 100% 0, rgba(130, 87, 255, 0.22), transparent 19rem),
    linear-gradient(145deg, rgba(27, 27, 48, 0.98), rgba(15, 18, 28, 0.98));
  box-shadow: var(--shadow-glow);
}

.plan .pbadge {
  position: absolute;
  top: 25px;
  right: 25px;
  padding: 5px 9px;
  border: 1px solid var(--border-accent);
  border-radius: 999px;
  background: var(--accent-soft);
  color: #cbbcff;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.plan h3 {
  font-size: 19px;
}

.plan .ptag {
  margin-top: 5px;
  color: var(--text-3);
  font-size: 11px;
}

.plan .price {
  margin: 22px 0 4px;
  color: var(--ink);
  font-size: 38px;
  font-weight: 780;
  letter-spacing: -0.055em;
}

.plan .price span {
  color: var(--text-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

.plan ul {
  margin: 22px 0 27px;
  list-style: none;
}

.plan li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  color: var(--text-2);
  font-size: 11px;
}

.plan li::before {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
  content: "✓";
  font-size: 9px;
  font-weight: 800;
}

.plan .btn {
  width: 100%;
}

.landing-cta {
  position: relative;
  overflow: hidden;
  margin: 110px auto;
  padding: 62px;
  border: 1px solid var(--border-accent);
  border-radius: 30px;
  background:
    radial-gradient(circle at 90% 20%, rgba(87, 134, 255, 0.2), transparent 20rem),
    radial-gradient(circle at 10% 100%, rgba(139, 92, 246, 0.2), transparent 22rem),
    #111520;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.landing-cta h2 {
  max-width: 680px;
  margin: 0 auto;
  font-size: clamp(30px, 5vw, 52px);
  letter-spacing: -0.055em;
}

.landing-cta p {
  margin-top: 13px;
  color: var(--text-2);
}

.landing-cta .ctas {
  justify-content: center;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--border);
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font-size: 11px;
}

.site-footer .footer-brand .brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 650;
}

.site-footer .footer-links a:hover {
  color: var(--ink);
}

/* Auth */
.auth-shell {
  display: grid;
  min-height: calc(100vh - var(--topbar-h));
  grid-template-columns: 1.05fr 0.95fr;
}

.auth-story {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(40px, 7vw, 90px);
  border-right: 1px solid var(--border);
  background:
    radial-gradient(circle at 25% 25%, rgba(128, 83, 255, 0.26), transparent 25rem),
    radial-gradient(circle at 80% 85%, rgba(70, 126, 255, 0.16), transparent 28rem),
    #0c0f18;
}

.auth-story::after {
  position: absolute;
  top: 12%;
  left: 14%;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 55px rgba(255, 255, 255, 0.018),
    0 0 0 110px rgba(255, 255, 255, 0.012);
}

.auth-story-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.auth-story h1 {
  margin-top: 20px;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 770;
  letter-spacing: -0.06em;
}

.auth-story p {
  max-width: 500px;
  margin-top: 18px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
}

.auth-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 32px;
}

.auth-point {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-2);
  font-size: 10px;
  font-weight: 650;
}

.auth-point strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 12px;
}

.auth-panel {
  display: grid;
  place-items: center;
  padding: 35px;
}

.auth-card {
  width: 100%;
  max-width: 430px;
  padding: 36px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  background: rgba(17, 21, 32, 0.78);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.auth-card .auth-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-bottom: 28px;
  border: 1px solid var(--border-accent);
  border-radius: 15px;
  background: var(--accent-soft);
  color: #cabbff;
}

.auth-card h2 {
  font-size: 27px;
}

.auth-card > p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 12px;
}

.discord-btn {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: #5865f2;
  box-shadow: 0 14px 34px rgba(88, 101, 242, 0.24);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  transition: 150ms ease;
}

.discord-btn:hover {
  background: #6672f5;
  transform: translateY(-1px);
}

.discord-btn svg {
  width: 20px;
  height: 20px;
}

.auth-note {
  margin-top: 22px;
  color: var(--text-3);
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

.auth-note a {
  color: var(--text-2);
  text-decoration: underline;
}

/* Verification */
.verify-page {
  min-height: 100vh;
}

.verify-header {
  display: flex;
  height: var(--topbar-h);
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 10, 16, 0.78);
  backdrop-filter: blur(18px);
}

.verify-header .brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.verify-header .brand-copy strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.verify-header .brand-copy span {
  color: var(--text-3);
  font-size: 10px;
}

.security-pill {
  padding: 6px 10px;
  border: 1px solid rgba(66, 211, 146, 0.2);
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.verify-layout {
  display: grid;
  width: min(1060px, calc(100% - 40px));
  min-height: calc(100vh - var(--topbar-h));
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: clamp(40px, 8vw, 90px);
  margin: 0 auto;
  padding: 65px 0;
}

.verify-copy h1 {
  max-width: 600px;
  margin-top: 18px;
  font-size: clamp(36px, 5vw, 55px);
  font-weight: 770;
  letter-spacing: -0.055em;
}

.verify-copy .lead {
  max-width: 540px;
  margin-top: 18px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.75;
}

.verify-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
}

.verify-point {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-2);
  font-size: 12px;
}

.verify-point .ic {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-2);
  color: #c6b6ff;
}

.verify-card {
  padding: 34px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 100% 0, rgba(93, 82, 220, 0.16), transparent 18rem),
    rgba(17, 21, 32, 0.9);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.verify-card .dlogo,
.verify-card .ok-ic {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 17px;
  background: #5865f2;
  color: #fff;
  font-size: 25px;
}

.verify-card .auth-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid var(--border-accent);
  border-radius: 16px;
  background: var(--accent-soft);
  color: #cabbff;
  font-size: 22px;
}

.verify-card .ok-ic {
  border: 1px solid rgba(66, 211, 146, 0.2);
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
}

.verify-card h2 {
  font-size: 20px;
}

.verify-card .sub {
  margin-top: 7px;
  color: var(--text-2);
  font-size: 11px;
}

.divider {
  height: 1px;
  margin: 23px 0;
  background: var(--border);
}

.cap-img {
  width: 260px;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.cap-input {
  width: 100%;
  margin: 13px 0;
  padding: 12px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  outline: none;
  background: rgba(7, 9, 15, 0.66);
  color: var(--ink);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: 6px;
  text-align: center;
  text-transform: uppercase;
}

.btn-dark {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.refresh {
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  font-size: 10px;
}

.err {
  margin-bottom: 13px;
  padding: 9px;
  border: 1px solid rgba(255, 107, 129, 0.2);
  border-radius: 10px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 10px;
}

/* Legal */
.legal {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 28px 90px;
}

.legal .doc-head {
  margin-bottom: 28px;
}

.legal h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 770;
  letter-spacing: -0.055em;
}

.legal .updated {
  margin-top: 10px;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal .intro {
  margin: 19px 0 8px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.75;
}

.legal .card {
  padding: 32px;
}

.legal section {
  margin-bottom: 27px;
}

.legal section:last-child {
  margin-bottom: 0;
}

.legal section h2 {
  margin-bottom: 10px;
  font-size: 16px;
}

.legal section p,
.legal section li {
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.75;
}

.legal section p {
  margin-bottom: 8px;
}

.legal section ul {
  margin-top: 7px;
  list-style: none;
}

.legal section li {
  position: relative;
  padding: 5px 0 5px 20px;
}

.legal section li::before {
  position: absolute;
  left: 0;
  color: var(--accent);
  content: "•";
}

.legal .switcher {
  display: flex;
  gap: 6px;
  margin: 22px 0;
}

.legal .switcher a {
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 10px;
  font-weight: 700;
}

.legal .switcher a.active {
  border-color: var(--border-accent);
  background: var(--accent-soft);
  color: #cabdff;
}

.legal .foot-note {
  margin-top: 24px;
  color: var(--text-3);
  font-size: 10px;
  text-align: center;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 18px;
}

.pagination button {
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.pagination button.active {
  border-color: var(--border-accent);
  background: var(--accent-soft);
  color: #cabdff;
}

.pagination button:disabled {
  cursor: default;
  opacity: 0.4;
}

/* Responsive */
@media (max-width: 1080px) {
  .grid.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .landing-hero {
    grid-template-columns: 1fr;
    padding-top: 70px;
  }

  .landing-hero-copy {
    max-width: 760px;
  }

  .dashboard-preview {
    width: min(700px, 100%);
    margin: 0 auto;
    transform: none;
  }
}

@media (max-width: 860px) {
  .topbar {
    padding: 0 17px;
  }

  .nav-toggle {
    display: grid;
  }

  .has-sidebar .sidebar-mobile-toggle {
    display: grid;
  }

  .topbar nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 14px;
    left: 14px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    padding: 10px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: rgba(15, 18, 28, 0.97);
    box-shadow: var(--shadow-lg);
  }

  .topbar nav.open {
    display: flex;
  }

  .topbar nav a,
  .topbar nav .btn {
    width: 100%;
    justify-content: flex-start;
  }

  .user-chip {
    margin: 4px 0;
  }

  .sidebar {
    position: fixed;
    z-index: 70;
    top: var(--topbar-h);
    bottom: 0;
    left: 0;
    width: min(310px, 86vw);
    height: auto;
    box-shadow: var(--shadow-lg);
    transform: translateX(-105%);
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .sidebar.collapsed {
    width: min(310px, 86vw);
  }

  .sidebar.collapsed .nav-link span:last-child,
  .sidebar.collapsed .sidebar-guild .gcopy,
  .sidebar.collapsed .sidebar-guild::after,
  .sidebar.collapsed .collapse-btn span {
    display: inline;
  }

  .sidebar.collapsed .sidebar-section {
    display: block;
  }

  .sidebar.collapsed .nav-link {
    justify-content: flex-start;
    padding-inline: 11px;
  }

  .content {
    padding: 28px 18px 50px;
  }

  .grid.cols-2,
  .grid.cols-3,
  .modules-grid,
  .feature-bento,
  .pricing,
  .auth-shell,
  .verify-layout {
    grid-template-columns: 1fr;
  }

  .grid[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  .feature.wide {
    grid-column: span 1;
  }

  .auth-story {
    min-height: 440px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .verify-layout {
    padding: 45px 0;
  }

  .landing-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .landing-metric:nth-child(2) {
    border-right: 0;
  }

  .landing-metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 620px) {
  .topbar .brand .bstatus {
    display: none;
  }

  .topbar .brand .logo,
  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .grid.cols-4,
  .svr-grid,
  .landing-metrics,
  .preview-stats,
  .auth-points {
    grid-template-columns: 1fr;
  }

  .landing-metric {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .landing-metric:last-child {
    border-bottom: 0;
  }

  .landing-hero {
    min-height: auto;
    padding: 62px 0;
  }

  .landing-hero h1 {
    font-size: 44px;
  }

  .topgg-strip {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
  }

  .topgg-widget {
    width: fit-content;
    max-width: 100%;
  }

  .landing-section {
    padding: 78px 0;
  }

  .landing-cta {
    margin: 80px auto;
    padding: 42px 22px;
  }

  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .preview-app {
    grid-template-columns: 72px 1fr;
  }

  .preview-main {
    padding: 18px 12px;
  }

  .page-head.flex-between,
  .flex-between {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-head.flex-between .btn,
  .flex-between > .btn {
    width: 100%;
  }

  .card,
  .page-banner {
    padding: 18px;
  }

  .row {
    flex-wrap: wrap;
  }

  .verify-header {
    padding: 0 17px;
  }

  .security-pill {
    font-size: 0;
  }

  .security-pill::after {
    content: "Seguro";
    font-size: 9px;
  }

  .auth-panel {
    padding: 26px 17px;
  }

  .auth-card,
  .verify-card {
    padding: 26px 21px;
  }
}

/* =========================================================
   MQN NEON SYSTEM
   Global visual language inspired by the MQN showcase art.
   ========================================================= */

:root {
  color-scheme: dark;
}

html {
  background: #020104;
  scrollbar-color: rgba(190, 56, 255, .7) #07020d;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Rajdhani", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  letter-spacing: .01em;
  background:
    radial-gradient(circle at 9% -8%, rgba(130, 24, 245, .3), transparent 30rem),
    radial-gradient(circle at 94% 10%, rgba(189, 37, 255, .18), transparent 34rem),
    radial-gradient(circle at 58% 105%, rgba(91, 28, 180, .16), transparent 40rem),
    linear-gradient(145deg, #050109 0%, #020104 48%, #07020e 100%);
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: .72;
  background-image:
    radial-gradient(circle, rgba(221, 152, 255, .66) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(155, 70, 255, .36) 0 1px, transparent 1.5px),
    linear-gradient(rgba(139, 53, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 53, 255, .025) 1px, transparent 1px);
  background-position: 0 0, 33px 61px, 0 0, 0 0;
  background-size: 95px 95px, 141px 141px, 48px 48px, 48px 48px;
  content: "";
  pointer-events: none;
}

body::after {
  position: fixed;
  inset: auto -15rem -17rem auto;
  z-index: -1;
  width: 40rem;
  height: 40rem;
  border: 1px solid rgba(192, 52, 255, .12);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 39, 255, .13), transparent 66%);
  box-shadow: 0 0 8rem rgba(126, 31, 255, .14);
  content: "";
  pointer-events: none;
}

::selection {
  background: rgba(195, 55, 255, .42);
  color: #fff;
}

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

::-webkit-scrollbar-track {
  background: #07020d;
}

::-webkit-scrollbar-thumb {
  border: 3px solid #07020d;
  border-radius: 999px;
  background: linear-gradient(180deg, #d13dff, #7324df);
}

h1,
h2,
h3,
h4,
.bname,
.metric-value,
.stat-value,
.price-value,
.server-count,
.verification-title,
.auth-title {
  font-family: "Orbitron", "Rajdhani", sans-serif;
  font-weight: 800;
  letter-spacing: .01em;
}

a {
  color: #d370ff;
}

code,
pre,
.mono {
  font-family: "JetBrains Mono", monospace;
}

.muted,
.page-subtitle,
.form-hint,
.card-subtitle,
.empty-copy {
  color: var(--muted);
}

/* Navigation */

.topbar {
  height: 78px;
  border-bottom: 1px solid rgba(188, 58, 255, .34);
  background:
    linear-gradient(90deg, rgba(16, 3, 29, .97), rgba(3, 1, 7, .92) 48%, rgba(18, 3, 31, .96));
  box-shadow:
    0 14px 42px rgba(0, 0, 0, .48),
    0 1px 26px rgba(172, 36, 255, .13);
  backdrop-filter: blur(24px);
}

.brand {
  color: #fff;
  text-transform: uppercase;
}

.brand:hover {
  color: #fff;
}

.brand-mark,
.auth-brand-mark,
.topbar .brand .logo {
  border: 1px solid rgba(226, 144, 255, .6);
  border-radius: 13px 5px 13px 5px;
  background:
    linear-gradient(145deg, rgba(239, 143, 255, .98), #b32df3 43%, #5f19d0);
  box-shadow:
    0 0 22px rgba(194, 53, 255, .48),
    inset 0 1px 0 rgba(255, 255, 255, .52);
  color: #fff;
  transform: rotate(-2deg);
}

.bname {
  font-size: 20px;
  letter-spacing: .08em;
  text-shadow: 0 0 20px rgba(212, 104, 255, .45);
}

.topbar nav a:not(.btn) {
  border: 1px solid transparent;
  color: #bba9ca;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.topbar nav a:not(.btn):hover,
.topbar nav a.active:not(.btn) {
  border-color: rgba(192, 61, 255, .28);
  background: rgba(162, 42, 240, .11);
  color: #f1c9ff;
  box-shadow: inset 0 0 18px rgba(172, 45, 255, .08);
}

.user-chip {
  border-color: rgba(192, 61, 255, .34);
  background: linear-gradient(145deg, rgba(31, 9, 48, .94), rgba(9, 3, 16, .96));
  box-shadow: inset 0 0 18px rgba(163, 42, 239, .08);
}

.user-chip:hover {
  border-color: rgba(211, 103, 255, .6);
  box-shadow: 0 0 24px rgba(178, 45, 255, .16);
}

.avatar,
.user-chip img {
  border: 2px solid rgba(210, 105, 255, .7);
  box-shadow: 0 0 13px rgba(192, 53, 255, .34);
}

/* Dashboard shell */

.sidebar {
  top: 78px;
  border-right: 1px solid rgba(184, 49, 255, .28);
  background:
    radial-gradient(circle at 20% 12%, rgba(141, 34, 232, .15), transparent 20rem),
    linear-gradient(180deg, rgba(12, 3, 21, .98), rgba(4, 1, 8, .99));
  box-shadow: 18px 0 42px rgba(0, 0, 0, .34);
}

.sidebar::after {
  position: absolute;
  inset: 0 0 auto;
  height: 145px;
  background: linear-gradient(180deg, rgba(189, 54, 255, .08), transparent);
  content: "";
  pointer-events: none;
}

.sidebar-guild {
  position: relative;
  z-index: 1;
  border-color: rgba(193, 61, 255, .32);
  border-radius: 13px 5px 13px 5px;
  background:
    linear-gradient(135deg, rgba(52, 11, 83, .86), rgba(12, 3, 21, .92));
  box-shadow: inset 0 0 24px rgba(165, 37, 239, .08);
}

.sidebar-guild:hover {
  border-color: rgba(213, 99, 255, .64);
  box-shadow:
    0 0 24px rgba(179, 45, 255, .14),
    inset 0 0 22px rgba(181, 52, 255, .1);
}

.sidebar-section {
  color: #855f99;
  font-family: "Orbitron", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
}

.sidebar .nav-link {
  position: relative;
  z-index: 1;
  margin: 2px 0;
  border: 1px solid transparent;
  border-radius: 9px 3px 9px 3px;
  color: #a997b7;
  font-weight: 700;
  letter-spacing: .025em;
  text-transform: none;
}

.sidebar .nav-link::before {
  position: absolute;
  inset: 8px auto 8px -1px;
  width: 2px;
  background: transparent;
  box-shadow: none;
  content: "";
}

.sidebar .nav-link:hover {
  border-color: rgba(190, 57, 255, .18);
  background: rgba(170, 45, 240, .08);
  color: #e7c9f2;
}

.sidebar .nav-link.active {
  border-color: rgba(208, 93, 255, .38);
  background:
    linear-gradient(90deg, rgba(165, 39, 237, .3), rgba(100, 24, 169, .08));
  box-shadow:
    inset 0 0 20px rgba(202, 70, 255, .11),
    0 0 22px rgba(157, 33, 231, .08);
  color: #fff;
}

.sidebar .nav-link.active::before {
  background: #d766ff;
  box-shadow: 0 0 12px #bf3dff;
}

.sidebar .nav-link .ico,
.sidebar-link .material-symbols-rounded {
  border: 1px solid rgba(188, 64, 239, .15);
  background: rgba(150, 35, 214, .09);
  color: #b66ae1;
}

.sidebar .nav-link.active .ico,
.sidebar-link.active .material-symbols-rounded {
  border-color: rgba(216, 105, 255, .34);
  background: rgba(190, 55, 255, .2);
  color: #ecb5ff;
  text-shadow: 0 0 15px rgba(208, 81, 255, .64);
}

.content {
  padding-top: 34px;
}

.page-head {
  align-items: flex-end;
  margin-bottom: 24px;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(184, 55, 249, .16);
}

.page-head::after {
  width: 86px;
  height: 2px;
  background: linear-gradient(90deg, #d246ff, transparent);
  box-shadow: 0 0 12px rgba(205, 63, 255, .56);
}

.page-title {
  color: #fff;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(23px, 2.4vw, 34px);
  font-weight: 800;
  letter-spacing: -.02em;
  text-shadow: 0 0 26px rgba(186, 56, 255, .18);
}

.page-banner {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(202, 71, 255, .38);
  border-radius: 19px 6px 19px 6px;
  background:
    linear-gradient(108deg, rgba(55, 10, 91, .92), rgba(14, 3, 24, .97) 55%, rgba(34, 7, 58, .9)),
    radial-gradient(circle at 85% 20%, rgba(214, 75, 255, .24), transparent 15rem);
  box-shadow:
    0 20px 45px rgba(0, 0, 0, .33),
    inset 0 1px 0 rgba(231, 155, 255, .13),
    0 0 32px rgba(165, 39, 238, .09);
}

.page-banner::before {
  position: absolute;
  inset: 0;
  opacity: .32;
  background-image:
    linear-gradient(115deg, transparent 0 62%, rgba(215, 101, 255, .12) 62% 63%, transparent 63%),
    radial-gradient(circle, rgba(238, 181, 255, .6) 0 1px, transparent 1.5px);
  background-size: auto, 65px 65px;
  content: "";
  pointer-events: none;
}

.page-banner::after {
  right: -52px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(219, 125, 255, .22);
  background: radial-gradient(circle, rgba(197, 59, 255, .17), transparent 67%);
  box-shadow: 0 0 50px rgba(189, 49, 255, .16);
}

.banner-icon {
  border: 1px solid rgba(224, 138, 255, .56);
  border-radius: 16px 5px 16px 5px;
  background: linear-gradient(145deg, #cf4dff, #7422dc);
  box-shadow: 0 0 25px rgba(199, 59, 255, .42);
}

/* Cards, stats and data */

.card,
.stat-card,
.module-card,
.server-card,
.svr-card,
.cmd,
.feature,
.plan,
.wc-item,
.pricing-card,
.feature-card,
.doc-card,
.integration-card,
.empty-state,
.chart-card,
.settings-section,
.table-wrap {
  border-color: rgba(160, 61, 205, .25);
  background:
    linear-gradient(145deg, rgba(18, 5, 29, .97), rgba(7, 2, 13, .98));
  box-shadow:
    0 18px 40px rgba(0, 0, 0, .27),
    inset 0 1px 0 rgba(229, 157, 255, .045);
}

.card {
  border-radius: 16px 5px 16px 5px;
}

.card:hover,
.stat-card:hover,
.module-card:hover,
.server-card:hover,
.svr-card:hover,
.cmd:hover,
.feature:hover,
.plan:hover,
.wc-item:hover,
.feature-card:hover,
.doc-card:hover,
.integration-card:hover {
  border-color: rgba(202, 78, 255, .48);
  box-shadow:
    0 20px 45px rgba(0, 0, 0, .32),
    0 0 28px rgba(180, 45, 255, .1),
    inset 0 1px 0 rgba(240, 196, 255, .08);
}

.card-title,
.section-title,
.module-title,
.feature-title {
  color: #f8edff;
  font-family: "Orbitron", "Rajdhani", sans-serif;
  font-weight: 700;
  letter-spacing: .01em;
}

.stat-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px 4px 14px 4px;
}

.stat-card::after {
  position: absolute;
  inset: auto -35px -45px auto;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(188, 54, 255, .15), transparent 68%);
  content: "";
  pointer-events: none;
}

.stat-icon,
.stat-card .icon,
.module-icon,
.module-card .m-ico,
.fic,
.doc-icon,
.integration-icon {
  border: 1px solid rgba(212, 103, 255, .36);
  border-radius: 12px 4px 12px 4px;
  background:
    linear-gradient(145deg, rgba(192, 56, 255, .25), rgba(76, 20, 135, .23));
  box-shadow:
    inset 0 0 17px rgba(201, 69, 255, .1),
    0 0 18px rgba(174, 42, 246, .1);
  color: #dd8bff;
}

.stat-value,
.stat-card .value,
.metric-value,
.landing-metric strong,
.plan .price,
.server-count {
  color: #fff;
  text-shadow: 0 0 20px rgba(199, 66, 255, .22);
}

.badge,
.pill {
  border: 1px solid rgba(199, 76, 255, .28);
  background: rgba(176, 49, 238, .12);
  color: #d988ff;
  font-weight: 700;
}

.badge-success,
.pill-success {
  border-color: rgba(58, 225, 158, .28);
  background: rgba(33, 200, 135, .1);
  color: #67e8b4;
}

.table-wrap {
  overflow: hidden;
  border: 1px solid rgba(171, 59, 220, .24);
  border-radius: 15px 5px 15px 5px;
}

table {
  color: #dfd2e8;
}

thead th {
  border-bottom-color: rgba(189, 65, 244, .22);
  background: rgba(76, 17, 113, .2);
  color: #ad8abc;
  font-family: "Orbitron", sans-serif;
  font-size: 10px;
  letter-spacing: .11em;
}

tbody td {
  border-bottom-color: rgba(134, 52, 174, .13);
}

tbody tr:hover {
  background: rgba(157, 40, 224, .07);
}

/* Controls */

.btn {
  min-height: 41px;
  border-radius: 10px 3px 10px 3px;
  font-family: "Rajdhani", sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.btn-primary,
.btn.primary,
.btn-dark {
  border-color: rgba(226, 145, 255, .55);
  background:
    linear-gradient(135deg, #d34cff 0%, #a52bec 48%, #6f21d4 100%);
  box-shadow:
    0 0 24px rgba(193, 52, 255, .28),
    inset 0 1px 0 rgba(255, 255, 255, .38);
  color: #fff;
}

.btn-primary:hover,
.btn.primary:hover,
.btn-dark:hover {
  border-color: rgba(242, 199, 255, .82);
  background: linear-gradient(135deg, #df68ff, #b339f4 50%, #7c2be0);
  box-shadow:
    0 0 32px rgba(203, 69, 255, .42),
    inset 0 1px 0 rgba(255, 255, 255, .44);
}

.btn-secondary,
.btn-ghost,
.btn.secondary,
.btn.ghost {
  border-color: rgba(187, 68, 235, .3);
  background: linear-gradient(145deg, rgba(36, 10, 55, .86), rgba(12, 4, 20, .92));
  color: #d8b6e7;
}

.btn-secondary:hover,
.btn-ghost:hover,
.btn.secondary:hover,
.btn.ghost:hover {
  border-color: rgba(211, 99, 255, .56);
  background: rgba(123, 31, 176, .2);
  color: #fff;
  box-shadow: 0 0 22px rgba(181, 45, 255, .14);
}

.btn-danger,
.btn.danger {
  border-color: rgba(255, 95, 145, .28);
  background: rgba(255, 95, 145, .1);
  color: #ff8caf;
  box-shadow: 0 0 20px rgba(255, 68, 115, .1);
}

input,
textarea,
select,
.input,
.select {
  border-color: rgba(163, 59, 207, .3);
  border-radius: 10px 3px 10px 3px;
  background: rgba(5, 2, 10, .88);
  color: #eee4f3;
  font-family: "Rajdhani", "Inter", sans-serif;
  font-weight: 600;
}

input:hover,
textarea:hover,
select:hover {
  border-color: rgba(190, 66, 241, .47);
}

input:focus,
textarea:focus,
select:focus {
  border-color: #c64dff;
  box-shadow:
    0 0 0 3px rgba(195, 65, 255, .13),
    0 0 21px rgba(183, 45, 255, .12);
}

.switch-slider,
.switch .slider {
  border-color: rgba(179, 62, 226, .27);
  background: #1b0a27;
}

.switch input:checked + .switch-slider,
.switch input:checked + .slider {
  border-color: rgba(222, 130, 255, .6);
  background: linear-gradient(90deg, #8b25e0, #cf48ff);
  box-shadow: 0 0 17px rgba(193, 58, 255, .26);
}

.tabs {
  border-bottom-color: rgba(173, 58, 225, .2);
}

.tab,
.tabs a {
  color: #a78eb3;
  font-weight: 700;
}

.tab:hover,
.tab.active,
.tabs a:hover,
.tabs a.active {
  color: #efc8ff;
}

.tab.active,
.tabs a.active {
  border-bottom-color: #cc51ff;
  text-shadow: 0 0 15px rgba(204, 81, 255, .38);
}

/* Landing page */

.landing {
  background:
    radial-gradient(circle at 18% 7%, rgba(127, 25, 239, .23), transparent 31rem),
    radial-gradient(circle at 81% 9%, rgba(197, 41, 255, .18), transparent 35rem),
    linear-gradient(180deg, rgba(4, 1, 8, .55), rgba(2, 1, 4, .96));
}

.landing .topbar {
  background: rgba(4, 1, 8, .83);
}

.landing-hero {
  position: relative;
  isolation: isolate;
  grid-template-columns: 1fr;
  min-height: min(760px, calc(100vh - 78px));
  padding: 88px 54px 92px;
}

.landing-hero::before {
  position: absolute;
  top: 9%;
  left: 38%;
  z-index: -1;
  width: 270px;
  height: 270px;
  border: 2px solid rgba(205, 73, 255, .3);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  filter: drop-shadow(0 0 16px rgba(195, 54, 255, .4));
  content: "";
  transform: rotate(28deg);
}

.landing-hero::after {
  position: absolute;
  inset: 15% 48% auto auto;
  width: 13px;
  height: 44px;
  background: linear-gradient(165deg, transparent 0 30%, #d04dff 31% 58%, transparent 59%);
  filter: drop-shadow(0 0 9px #bf39ff);
  content: "";
  transform: skewX(-18deg);
}

.landing-hero-copy {
  position: relative;
  z-index: 3;
  min-width: 0;
  max-width: 550px;
}

.hero-kicker,
.eyebrow {
  border: 1px solid rgba(207, 81, 255, .38);
  border-radius: 999px;
  background: rgba(139, 33, 207, .13);
  box-shadow:
    inset 0 0 18px rgba(186, 50, 255, .08),
    0 0 20px rgba(181, 47, 255, .08);
  color: #e096ff;
  font-family: "Orbitron", sans-serif;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.landing-hero h1 {
  max-width: 730px;
  color: #fff;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(43px, 5.6vw, 78px);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .99;
  text-transform: uppercase;
  text-shadow:
    0 3px 0 rgba(110, 48, 154, .62),
    0 0 28px rgba(191, 54, 255, .2);
}

.gradient-text,
.landing-hero h1 span {
  background: linear-gradient(90deg, #f7dcff 0%, #dd74ff 36%, #ad35f4 68%, #7f32ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 16px rgba(193, 52, 255, .22));
  color: transparent;
}

.hero-copy,
.landing-hero .lead {
  max-width: 650px;
  color: #c5b4cf;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.52;
}

.hero-copy strong,
.landing-hero .lead strong {
  color: #e8c3f6;
}

.hero-actions .btn,
.landing-hero .ctas .btn {
  min-height: 49px;
  padding-inline: 24px;
}

.hero-trust {
  color: #957fa2;
}

.hero-trust strong {
  color: #ddc5e7;
}

.dashboard-preview.showcase-preview {
  position: absolute;
  z-index: -1;
  inset: 28px 0 38px;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(212, 82, 255, .55);
  border-radius: 32px 8px 32px 8px;
  background: #050109;
  box-shadow:
    0 36px 75px rgba(0, 0, 0, .58),
    0 0 60px rgba(165, 36, 244, .18),
    inset 0 0 0 1px rgba(240, 192, 255, .08);
  transform: none;
}

.showcase-preview::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3, 1, 7, .98) 0%, rgba(4, 1, 8, .9) 29%, rgba(4, 1, 8, .5) 46%, rgba(4, 1, 8, .02) 67%),
    linear-gradient(180deg, rgba(3, 1, 7, .08), transparent 48%, rgba(3, 1, 7, .7));
  content: "";
  pointer-events: none;
}

.showcase-preview::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid rgba(245, 211, 255, .1);
  border-radius: inherit;
  box-shadow: inset 0 0 55px rgba(133, 31, 216, .12);
  content: "";
  pointer-events: none;
}

.showcase-preview canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.terminal-accessible {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.showcase-live {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(205, 93, 255, .42);
  border-radius: 999px;
  background: rgba(7, 2, 13, .86);
  box-shadow: 0 0 24px rgba(178, 46, 255, .2);
  color: #f2d9ff;
  font-family: "Orbitron", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.showcase-live .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #50e5a4;
  box-shadow: 0 0 11px rgba(80, 229, 164, .82);
}

.landing-metrics {
  border-top: 1px solid rgba(189, 57, 246, .18);
  border-bottom: 1px solid rgba(189, 57, 246, .18);
  background:
    linear-gradient(90deg, transparent, rgba(78, 15, 117, .18), transparent);
}

.metric,
.landing-metric {
  border-right-color: rgba(183, 55, 234, .17);
}

.metric-value,
.landing-metric strong {
  color: #f4dbff;
}

.landing-section {
  position: relative;
}

.section-kicker,
.section-intro .eyebrow {
  color: #d05fff;
  font-family: "Orbitron", sans-serif;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.landing-section h2 {
  color: #fff;
  font-family: "Orbitron", sans-serif;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.feature-card,
.feature {
  position: relative;
  overflow: hidden;
  border-radius: 17px 5px 17px 5px;
}

.feature-card::after,
.feature::after {
  position: absolute;
  inset: auto -30px -45px auto;
  width: 115px;
  height: 115px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(190, 49, 255, .13), transparent 70%);
  content: "";
}

.feature-card:hover .fic,
.feature:hover .fic {
  border-color: rgba(229, 142, 255, .65);
  box-shadow: 0 0 25px rgba(197, 57, 255, .24);
  color: #edbdff;
}

.pricing-card.featured,
.plan.pro {
  border-color: rgba(207, 77, 255, .66);
  background:
    radial-gradient(circle at 90% 0, rgba(192, 55, 255, .17), transparent 16rem),
    linear-gradient(145deg, rgba(31, 7, 48, .98), rgba(8, 2, 14, .99));
  box-shadow:
    0 25px 60px rgba(0, 0, 0, .38),
    0 0 35px rgba(180, 44, 255, .14);
}

.price-value,
.plan .price {
  color: #fff;
}

.topgg-cta,
.topgg-strip,
.landing-cta {
  border-color: rgba(198, 63, 255, .38);
  border-radius: 22px 6px 22px 6px;
  background:
    radial-gradient(circle at 78% 30%, rgba(213, 76, 255, .2), transparent 22rem),
    linear-gradient(120deg, #26083d, #0b0313 55%, #220636);
  box-shadow: 0 25px 60px rgba(0, 0, 0, .38);
}

.landing-footer,
.site-footer {
  border-top-color: rgba(188, 59, 238, .18);
  background: rgba(3, 1, 6, .72);
}

/* Authentication */

.auth-page,
.auth-shell {
  background:
    radial-gradient(circle at 12% 0, rgba(143, 29, 239, .26), transparent 32rem),
    linear-gradient(145deg, #06010b, #020104 55%, #090211);
}

.auth-story {
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(189, 59, 242, .28);
  background-image:
    linear-gradient(90deg, rgba(4, 1, 8, .5), rgba(4, 1, 8, .88)),
    linear-gradient(0deg, rgba(5, 1, 9, .88), transparent 55%),
    url("/img/mqn-neon-hero-v2.webp");
  background-position: 65% center;
  background-size: cover;
}

.auth-story::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(183, 49, 255, .12), transparent 28rem);
  content: "";
}

.auth-story > * {
  position: relative;
  z-index: 1;
}

.auth-card {
  border: 1px solid rgba(187, 62, 235, .25);
  border-radius: 22px 7px 22px 7px;
  background:
    linear-gradient(145deg, rgba(20, 5, 31, .94), rgba(7, 2, 12, .97));
  box-shadow:
    0 30px 70px rgba(0, 0, 0, .42),
    0 0 38px rgba(170, 42, 239, .09);
}

.auth-title,
.auth-card h2,
.auth-story h1 {
  color: #fff;
  text-transform: uppercase;
}

.btn-discord,
.discord-btn {
  border-color: rgba(203, 97, 255, .58);
  background: linear-gradient(135deg, #b83bf4, #7027d8);
  box-shadow: 0 0 24px rgba(174, 46, 239, .24);
}

.btn-discord:hover,
.discord-btn:hover {
  background: linear-gradient(135deg, #c84dff, #8130e7);
  box-shadow: 0 0 32px rgba(192, 56, 255, .34);
}

/* Verify, modals and feedback */

.verify-page {
  background:
    radial-gradient(circle at 20% 8%, rgba(139, 29, 232, .3), transparent 30rem),
    radial-gradient(circle at 85% 78%, rgba(194, 43, 255, .17), transparent 31rem),
    linear-gradient(145deg, #050109, #020104);
}

.verify-card,
.verification-card {
  border-color: rgba(201, 72, 255, .35);
  border-radius: 22px 7px 22px 7px;
  background:
    linear-gradient(145deg, rgba(23, 6, 37, .97), rgba(7, 2, 13, .99));
  box-shadow:
    0 30px 70px rgba(0, 0, 0, .48),
    0 0 38px rgba(177, 43, 246, .13);
}

.verify-icon,
.verification-icon,
.verify-card .dlogo,
.verify-card .auth-icon {
  border-color: rgba(222, 130, 255, .52);
  background: linear-gradient(145deg, #cb45ff, #7524dc);
  box-shadow: 0 0 26px rgba(193, 54, 255, .38);
}

.verify-header {
  border-bottom-color: rgba(188, 58, 255, .3);
  background: rgba(4, 1, 8, .88);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .32);
}

.verify-copy h1,
.verify-card h2 {
  color: #fff;
  font-family: "Orbitron", sans-serif;
  text-shadow: 0 0 24px rgba(193, 55, 255, .18);
}

.verify-point .ic {
  border-color: rgba(202, 76, 255, .35);
  background: rgba(171, 46, 234, .12);
  color: #df8fff;
  box-shadow: inset 0 0 15px rgba(194, 55, 255, .08);
}

.modal-backdrop {
  background: rgba(2, 0, 4, .78);
  backdrop-filter: blur(12px);
}

.modal {
  border-color: rgba(204, 79, 255, .36);
  border-radius: 20px 6px 20px 6px;
  background:
    linear-gradient(145deg, rgba(24, 6, 38, .99), rgba(7, 2, 12, .99));
  box-shadow:
    0 35px 90px rgba(0, 0, 0, .62),
    0 0 42px rgba(180, 45, 255, .13);
}

.toast {
  border-color: rgba(198, 71, 248, .35);
  border-radius: 13px 4px 13px 4px;
  background: rgba(15, 4, 24, .95);
  box-shadow:
    0 20px 45px rgba(0, 0, 0, .4),
    0 0 25px rgba(179, 46, 243, .11);
}

.skeleton {
  background: linear-gradient(90deg, #11061b 25%, #281039 50%, #11061b 75%);
  background-size: 200% 100%;
}

@media (max-width: 1180px) {
  .landing-hero {
    padding-inline: 44px;
  }
}

@media (max-width: 920px) {
  .landing-hero {
    align-items: start;
    grid-template-columns: 1fr;
    min-height: 940px;
    padding: 72px 38px 82px;
  }

  .landing-hero::before {
    left: auto;
    right: -45px;
  }

  .landing-hero::after {
    display: none;
  }

  .dashboard-preview.showcase-preview {
    inset: 22px 0 30px;
    min-height: 0;
    transform: none;
  }

  .showcase-preview::before {
    background:
      linear-gradient(90deg, rgba(3, 1, 7, .97), rgba(4, 1, 8, .82) 42%, rgba(4, 1, 8, .2) 78%),
      linear-gradient(180deg, rgba(3, 1, 7, .06), transparent 50%, rgba(3, 1, 7, .78));
  }

  .auth-story {
    border-right: 0;
    border-bottom: 1px solid rgba(189, 59, 242, .28);
    background-position: 52% center;
  }
}

@media (max-width: 720px) {
  .topbar {
    height: 70px;
  }

  .sidebar {
    top: 70px;
  }

  .landing-hero {
    min-height: 940px;
    padding: 65px 26px 78px;
  }

  .landing-hero h1 {
    font-size: clamp(37px, 11vw, 58px);
  }

  .hero-copy {
    font-size: 17px;
  }

  .dashboard-preview.showcase-preview {
    inset: 16px 0 24px;
  }

  .showcase-preview::before {
    background:
      linear-gradient(90deg, rgba(3, 1, 7, .96), rgba(4, 1, 8, .72) 70%, rgba(4, 1, 8, .38)),
      linear-gradient(180deg, rgba(3, 1, 7, .14), rgba(3, 1, 7, .18) 45%, rgba(3, 1, 7, .91));
  }

  .page-banner {
    border-radius: 15px 5px 15px 5px;
  }
}

@media (max-width: 480px) {
  .landing-hero {
    min-height: 940px;
    padding-inline: 20px;
  }

  .showcase-live {
    right: 12px;
    bottom: 12px;
  }

  .landing-hero h1 {
    font-size: 31px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* =========================================================
   MQN CONTROL UI
   Dark dashboard system based on the supplied visual reference.
   ========================================================= */

html {
  background: var(--bg);
  scrollbar-color: #343b53 #0a0d17;
}

body {
  background:
    radial-gradient(circle at 18% 0%, rgba(95, 70, 190, 0.16), transparent 31rem),
    linear-gradient(135deg, #11152b 0%, var(--bg) 48%, #070a12 100%);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

body::before {
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 56px 56px;
}

body::after {
  display: none;
}

h1,
h2,
h3,
h4,
.bname,
.metric-value,
.stat-value,
.price-value,
.server-count,
.verification-title,
.auth-title {
  font-family: "Inter", system-ui, sans-serif;
  letter-spacing: -0.035em;
  text-transform: none;
}

a {
  color: #a78bfa;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #090c15;
}

::-webkit-scrollbar-thumb {
  border: 3px solid #090c15;
  border-radius: 999px;
  background: #343b53;
}

.topbar {
  height: var(--topbar-h);
  padding: 0 clamp(20px, 3vw, 42px);
  border-bottom: 1px solid var(--border);
  background: rgba(8, 11, 20, 0.88);
  box-shadow: none;
  backdrop-filter: blur(22px);
}

.brand {
  text-transform: none;
}

.brand-mark,
.auth-brand-mark,
.topbar .brand .logo {
  border: 0;
  border-radius: 13px;
  background: var(--gradient);
  box-shadow: 0 12px 28px rgba(100, 70, 220, 0.28);
  transform: none;
}

.bname,
.topbar .brand .bname {
  font-size: 15px;
  letter-spacing: -0.02em;
  text-shadow: none;
}

.topbar nav {
  gap: 3px;
}

.topbar nav a:not(.btn) {
  border: 0;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.topbar nav a:not(.btn):hover,
.topbar nav a.active:not(.btn) {
  border: 0;
  background: #151a29;
  box-shadow: none;
  color: var(--ink);
}

.user-chip {
  border-color: var(--border);
  background: #0f1421;
  box-shadow: none;
}

.avatar,
.user-chip img {
  border: 0;
  box-shadow: none;
}

.content {
  max-width: var(--content-max);
  padding: 30px clamp(22px, 3vw, 44px) 64px;
}

.page-head {
  align-items: initial;
  margin-bottom: 22px;
  padding-bottom: 0;
  border: 0;
}

.page-head::before,
.page-head::after,
.page-banner::before,
.page-banner::after {
  display: none;
}

.page-head h1,
.page-banner h1,
.page-title {
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 750;
  letter-spacing: -0.045em;
  text-shadow: none;
  text-transform: none;
}

.page-head p,
.page-banner p {
  color: var(--text-2);
}

.page-banner {
  border-color: var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 8%, rgba(139, 92, 246, 0.16), transparent 20rem),
    #101522;
  box-shadow: var(--shadow);
}

.card,
.stat-card,
.module-card,
.server-card,
.svr-card,
.cmd,
.feature,
.plan,
.wc-item,
.pricing-card,
.feature-card,
.doc-card,
.integration-card,
.empty-state,
.chart-card,
.settings-section,
.table-wrap {
  border-color: var(--border);
  border-radius: var(--radius);
  background: rgba(15, 19, 32, 0.96);
  box-shadow: var(--shadow);
}

.card::after {
  display: none;
}

.card:hover,
.stat-card:hover,
.module-card:hover,
.server-card:hover,
.svr-card:hover,
.cmd:hover,
.feature:hover,
.plan:hover,
.wc-item:hover,
.feature-card:hover,
.doc-card:hover,
.integration-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

.card {
  border-radius: var(--radius);
}

.card h3,
.card-title,
.section-title,
.module-title,
.feature-title {
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.stat-card {
  min-height: 150px;
  padding: 20px;
  border-radius: 18px;
}

.stat-card::before,
.stat-card::after {
  display: none;
}

.stat-card .icon,
.stat-icon,
.module-card .m-ico,
.module-icon,
.fic,
.doc-icon,
.integration-icon {
  position: static;
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 17px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(7, 10, 18, 0.52);
  box-shadow: none;
  color: #d7ceff;
}

.grid.cols-4 > .stat-card:nth-child(1) {
  background: linear-gradient(145deg, rgba(48, 35, 83, 0.96), rgba(35, 29, 63, 0.96));
}

.grid.cols-4 > .stat-card:nth-child(2) {
  background: linear-gradient(145deg, rgba(17, 44, 62, 0.96), rgba(16, 34, 52, 0.96));
}

.grid.cols-4 > .stat-card:nth-child(3) {
  background: linear-gradient(145deg, rgba(13, 47, 53, 0.96), rgba(13, 35, 43, 0.96));
}

.grid.cols-4 > .stat-card:nth-child(4) {
  background: linear-gradient(145deg, rgba(45, 35, 31, 0.96), rgba(34, 28, 28, 0.96));
}

.stat-card .label {
  color: #9298aa;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat-card .value,
.stat-value,
.metric-value,
.landing-metric strong,
.plan .price,
.server-count {
  margin-top: 6px;
  color: var(--ink);
  font-size: clamp(25px, 2.7vw, 32px);
  font-weight: 750;
  text-shadow: none;
}

.stat-card .delta {
  margin-top: 8px;
  color: var(--text-3);
}

.stat-card .delta.up {
  color: var(--success);
}

.module-card {
  border-radius: 14px;
  background: #0d111d;
  box-shadow: none;
}

.module-card:hover {
  border-color: rgba(139, 92, 246, 0.38);
  background: #121728;
  box-shadow: none;
  transform: translateY(-1px);
}

.module-card .m-ico {
  flex: 0 0 auto;
  margin-bottom: 0;
  color: #a98cff;
}

.badge,
.pill {
  border-color: rgba(139, 92, 246, 0.24);
  background: rgba(139, 92, 246, 0.12);
  color: #b9a3ff;
}

.badge.open,
.badge.solid,
.badge-success,
.pill-success {
  border-color: rgba(22, 216, 144, 0.25);
  background: rgba(22, 216, 144, 0.1);
  color: #4ee3ab;
}

.bar,
.progress {
  height: 6px;
  background: var(--surface-hover);
}

.bar > span,
.progress > span {
  background: #18ce8b;
  box-shadow: none;
}

.bar.indigo > span {
  background: var(--accent);
}

.activity-item {
  margin-top: 9px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #0c101b;
}

.activity-item:first-child {
  border-top: 1px solid var(--border);
}

.activity-item .av {
  border-color: var(--border);
  border-radius: 11px;
  background: #111729;
  color: #a98cff;
}

.code-pill {
  border-color: var(--border);
  background: #151a2b;
  color: #b9a8ff;
}

.btn {
  min-height: 40px;
  border-radius: 11px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.btn-primary,
.btn.primary,
.btn-dark {
  border-color: transparent;
  background: var(--gradient);
  box-shadow: 0 12px 26px rgba(91, 61, 190, 0.24);
}

.btn-primary:hover,
.btn.primary:hover,
.btn-dark:hover {
  border-color: transparent;
  background: linear-gradient(135deg, #b38cff, #9569fa 50%, #7952e9);
  box-shadow: 0 15px 32px rgba(91, 61, 190, 0.32);
}

.btn-secondary,
.btn-ghost,
.btn.secondary,
.btn.ghost {
  border-color: var(--border);
  background: #111624;
  color: #c4c8d5;
}

.btn-secondary:hover,
.btn-ghost:hover,
.btn.secondary:hover,
.btn.ghost:hover {
  border-color: var(--border-strong);
  background: #171d2e;
  box-shadow: none;
  color: #fff;
}

input,
textarea,
select,
.input,
.select {
  border-color: var(--border);
  border-radius: 11px;
  background: var(--bg-elevated);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
}

input:hover,
textarea:hover,
select:hover {
  border-color: var(--border-strong);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.13);
}

.switch-slider,
.switch .slider {
  border-color: var(--border);
  background: var(--surface-hover);
}

.switch input:checked + .switch-slider,
.switch input:checked + .slider {
  border-color: rgba(139, 92, 246, 0.54);
  background: var(--accent);
  box-shadow: none;
}

.table-wrap {
  border-radius: var(--radius);
}

thead th {
  border-bottom-color: var(--border);
  background: #121726;
  color: #8d93a6;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 10px;
}

tbody td {
  border-bottom-color: var(--border);
}

tbody tr:hover {
  background: rgba(139, 92, 246, 0.05);
}

/* Dashboard frame */

.dashboard-body {
  background:
    linear-gradient(90deg, #171a33 0, #171a33 calc(var(--sidebar-w) + 42px), var(--bg) calc(var(--sidebar-w) + 42px));
}

.dashboard-body .topbar {
  margin-left: calc(var(--sidebar-w) + 42px);
  border-bottom: 0;
  background: rgba(8, 11, 20, 0.92);
}

.dashboard-body .topbar .brand {
  display: none;
}

.dashboard-body .topbar nav {
  margin-left: auto;
}

.dashboard-body .shell {
  min-height: calc(100vh - var(--topbar-h));
}

.dashboard-body .sidebar {
  position: fixed;
  z-index: 95;
  top: 22px;
  bottom: 22px;
  left: 22px;
  width: var(--sidebar-w);
  height: auto;
  padding: 18px 14px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(11, 15, 27, 0.98);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(22px);
}

.dashboard-body .sidebar::after {
  display: none;
}

.dashboard-body .sidebar-guild {
  border-color: transparent;
  border-radius: 15px;
  background: #111626;
  box-shadow: none;
}

.dashboard-body .sidebar-guild:hover {
  border-color: var(--border);
  box-shadow: none;
}

.dashboard-body .sidebar-section {
  color: #61687c;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 9px;
  letter-spacing: 0.11em;
}

.dashboard-body .sidebar .nav-link {
  min-height: 42px;
  margin: 2px 0;
  border: 0;
  border-radius: 12px;
  color: #a8adbd;
  letter-spacing: 0;
}

.dashboard-body .sidebar .nav-link::before {
  display: none;
}

.dashboard-body .sidebar .nav-link:hover {
  border: 0;
  background: #151a2a;
  color: #f3f4fa;
}

.dashboard-body .sidebar .nav-link.active {
  border: 0;
  background: var(--gradient);
  box-shadow: 0 12px 28px rgba(94, 61, 194, 0.24);
  color: #fff;
}

.dashboard-body .sidebar .nav-link .ico {
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  color: #b7adce;
}

.dashboard-body .sidebar .nav-link.active .ico {
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  text-shadow: none;
}

.dashboard-body .content {
  width: auto;
  max-width: none;
  margin: 0 0 0 calc(var(--sidebar-w) + 42px);
  padding-top: 18px;
}

.dashboard-body:has(.sidebar.collapsed) .topbar {
  margin-left: 120px;
}

.dashboard-body:has(.sidebar.collapsed) .content {
  margin-left: 120px;
}

.dashboard-body .sidebar.collapsed {
  width: 78px;
}

.sidebar-sponsor {
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background:
    radial-gradient(circle at 90% 0, rgba(139, 92, 246, 0.2), transparent 8rem),
    #101522;
}

.sidebar-sponsor-kicker {
  display: block;
  margin-bottom: 7px;
  color: #9d7dff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.sidebar-sponsor strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
}

.sidebar-sponsor p {
  margin: 5px 0 12px;
  color: var(--text-3);
  font-size: 10px;
  line-height: 1.4;
}

.sidebar-sponsor .btn {
  width: 100%;
  min-height: 34px;
  justify-content: center;
}

.sidebar.collapsed .sidebar-sponsor {
  display: none;
}

.sidebar-footer {
  margin-top: 12px;
  border-top-color: var(--border);
}

/* Advertising */

.ad-slot {
  position: relative;
  min-height: 96px;
  margin: 20px 0 24px;
  padding: 19px;
  overflow: hidden;
  border: 1px dashed rgba(139, 92, 246, 0.28);
  border-radius: 16px;
  background:
    radial-gradient(circle at 95% 20%, rgba(139, 92, 246, 0.14), transparent 15rem),
    rgba(13, 17, 29, 0.92);
}

.ad-slot--rectangle {
  min-height: 260px;
}

.ad-slot-label {
  position: absolute;
  top: 8px;
  right: 12px;
  color: #626a80;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.house-ad {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 14px;
  color: inherit;
}

.house-ad-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  background: var(--gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.house-ad-copy {
  min-width: 0;
  flex: 1;
}

.house-ad-copy strong,
.house-ad-copy small {
  display: block;
}

.house-ad-copy strong {
  color: var(--ink);
  font-size: 13px;
}

.house-ad-copy small {
  margin-top: 3px;
  color: var(--text-3);
  font-size: 11px;
}

.house-ad-action {
  color: #aa91ff;
  font-size: 11px;
  font-weight: 700;
}

/* Landing and public pages */

.landing {
  background:
    radial-gradient(circle at 18% 4%, rgba(97, 72, 188, 0.2), transparent 32rem),
    linear-gradient(180deg, rgba(8, 11, 20, 0.24), var(--bg));
}

.landing-hero {
  min-height: min(760px, calc(100vh - var(--topbar-h)));
  padding: 84px 54px 90px;
}

.landing-hero::before,
.landing-hero::after {
  display: none;
}

.landing-hero h1 {
  max-width: 700px;
  color: #fff;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(46px, 5.6vw, 76px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.98;
  text-shadow: none;
  text-transform: none;
}

.gradient-text,
.landing-hero h1 span {
  background: linear-gradient(90deg, #e8e2ff 0%, #ad91ff 42%, #8460ee 100%);
  background-clip: text;
  -webkit-background-clip: text;
  filter: none;
}

.hero-kicker,
.eyebrow {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.1);
  box-shadow: none;
  color: #ad93ff;
  font-family: "Inter", system-ui, sans-serif;
}

.hero-copy,
.landing-hero .lead {
  color: #aeb3c4;
  font-size: 18px;
}

.dashboard-preview.showcase-preview {
  border-color: var(--border-strong);
  border-radius: 26px;
  background: #090d17;
  box-shadow: 0 36px 85px rgba(0, 0, 0, 0.48);
}

.showcase-preview::after {
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.showcase-live {
  border-color: var(--border);
  background: rgba(10, 14, 24, 0.9);
  box-shadow: none;
  color: #d8dbea;
  font-family: "Inter", system-ui, sans-serif;
}

.landing-metrics {
  border-color: var(--border);
  background: rgba(14, 18, 30, 0.72);
}

.landing-section h2 {
  font-family: "Inter", system-ui, sans-serif;
  letter-spacing: -0.045em;
  text-transform: none;
}

.feature-card,
.feature,
.pricing-card,
.plan,
.topgg-cta,
.topgg-strip,
.landing-cta {
  border-radius: 20px;
}

.feature-card::after,
.feature::after {
  display: none;
}

.pricing-card.featured,
.plan.pro {
  border-color: rgba(139, 92, 246, 0.46);
  background:
    radial-gradient(circle at 90% 0, rgba(139, 92, 246, 0.15), transparent 16rem),
    #111522;
  box-shadow: var(--shadow);
}

.topgg-cta,
.topgg-strip,
.landing-cta {
  border-color: var(--border);
  background:
    radial-gradient(circle at 82% 22%, rgba(139, 92, 246, 0.16), transparent 22rem),
    #101522;
  box-shadow: var(--shadow);
}

.landing-footer,
.site-footer {
  border-top-color: var(--border);
  background: rgba(8, 11, 20, 0.88);
}

/* Advertise page */

.advertise-page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 80px;
}

.advertise-hero {
  max-width: 820px;
  margin-bottom: 36px;
}

.advertise-hero h1 {
  margin-top: 18px;
  color: var(--ink);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.065em;
}

.advertise-hero p {
  max-width: 680px;
  margin-top: 18px;
  color: var(--text-2);
  font-size: 18px;
}

.advertise-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

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

.advertise-card {
  min-height: 230px;
}

.advertise-card.featured {
  border-color: rgba(139, 92, 246, 0.46);
  background:
    radial-gradient(circle at 100% 0, rgba(139, 92, 246, 0.18), transparent 13rem),
    #111522;
}

.advertise-index {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.advertise-card h2,
.advertise-policy h2 {
  margin: 46px 0 12px;
  color: var(--ink);
  font-size: 22px;
}

.advertise-card p,
.advertise-policy li {
  color: var(--text-2);
}

.advertise-policy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 20px;
  padding: 30px;
}

.advertise-policy h2 {
  margin-top: 14px;
}

.advertise-policy ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

/* Authentication */

.auth-page,
.auth-shell {
  background:
    radial-gradient(circle at 12% 0, rgba(101, 73, 196, 0.22), transparent 32rem),
    var(--bg);
}

.auth-story {
  border-right-color: var(--border);
}

.auth-card,
.verify-card,
.verification-card,
.modal,
.toast {
  border-color: var(--border);
  border-radius: 20px;
  background: #101522;
  box-shadow: var(--shadow-lg);
}

.auth-title,
.auth-card h2,
.auth-story h1 {
  text-transform: none;
}

.btn-discord,
.discord-btn {
  border-color: transparent;
  background: var(--gradient);
  box-shadow: 0 14px 30px rgba(91, 61, 190, 0.24);
}

@media (max-width: 1120px) {
  .dashboard-body .topbar {
    margin-left: 112px;
  }

  .dashboard-body .sidebar {
    width: 78px;
  }

  .dashboard-body .sidebar .nav-link span:last-child,
  .dashboard-body .sidebar .sidebar-section,
  .dashboard-body .sidebar .sidebar-guild .gcopy,
  .dashboard-body .sidebar .sidebar-guild::after,
  .dashboard-body .sidebar .collapse-btn span,
  .dashboard-body .sidebar-sponsor {
    display: none;
  }

  .dashboard-body .sidebar .nav-link,
  .dashboard-body .sidebar .sidebar-guild {
    justify-content: center;
  }

  .dashboard-body .content {
    margin-left: 112px;
  }
}

@media (max-width: 860px) {
  .dashboard-body {
    background: var(--bg);
  }

  .dashboard-body .topbar {
    margin-left: 0;
  }

  .dashboard-body .topbar .brand {
    display: flex;
  }

  .dashboard-body .sidebar {
    top: var(--topbar-h);
    bottom: 0;
    left: 0;
    width: min(86vw, 290px);
    height: calc(100vh - var(--topbar-h));
    border-width: 1px 1px 0 0;
    border-radius: 0 20px 0 0;
    transform: translateX(-110%);
  }

  .dashboard-body .sidebar.mobile-open {
    transform: translateX(0);
  }

  .dashboard-body .sidebar .nav-link span:last-child,
  .dashboard-body .sidebar .sidebar-section,
  .dashboard-body .sidebar .sidebar-guild .gcopy,
  .dashboard-body .sidebar .collapse-btn span,
  .dashboard-body .sidebar-sponsor {
    display: initial;
  }

  .dashboard-body .sidebar .nav-link,
  .dashboard-body .sidebar .sidebar-guild {
    justify-content: flex-start;
  }

  .dashboard-body .content,
  .dashboard-body:has(.sidebar.collapsed) .content {
    margin-left: 0;
  }

  .advertise-grid {
    grid-template-columns: 1fr;
  }

  .advertise-card {
    min-height: 180px;
  }
}

@media (max-width: 720px) {
  .topbar {
    height: 70px;
  }

  .house-ad {
    align-items: flex-start;
  }

  .house-ad-action {
    display: none;
  }

  .advertise-page {
    width: min(100% - 30px, 1180px);
    padding-top: 48px;
  }

  .advertise-hero h1 {
    font-size: 42px;
  }

  .advertise-policy {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .landing-hero h1 {
    font-size: 38px;
  }

  .ad-slot {
    padding: 16px;
  }

  .house-ad-icon {
    width: 36px;
    height: 36px;
  }
}
