@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: rgba(8, 10, 16, 0.76);
  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;
}

.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;
  }
}

@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;
  }
}
