:root {
  --bg: #f7f4ef;
  --fg: #12131a;
  --card: #fffdf8;
  --card-soft: #fbf8f2;
  --muted: #6d7180;
  --secondary: #e9e4da;
  --border: rgba(26, 28, 38, 0.13);
  --primary: #5865f2;
  --primary-strong: #4c58e8;
  --primary-soft: rgba(88, 101, 242, 0.14);
  --success: #12a66a;
  --success-soft: #cef4e7;
  --warning: #b85d00;
  --warning-soft: #ffe7bf;
  --danger: #d34848;
  --danger-soft: #ffe2e2;
  --pro: #7c3aed;
  --pro-soft: #eadcff;
  --sidebar: #171923;
  --sidebar-accent: #222533;
  --sidebar-fg: #f7f4ef;
  --shadow:
    0 1px 2px rgba(18, 19, 26, 0.08), 0 18px 40px rgba(18, 19, 26, 0.08);
  --radius-xl: 2rem;
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --font-display: "Manrope", "Inter", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  background: var(--bg);
}
body.vg-body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
svg {
  display: block;
}

.vg-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: currentColor;
}
.vg-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vg-app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--bg);
}
.vg-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 20px;
  color: var(--sidebar-fg);
  background: var(--sidebar);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.vg-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
}
.vg-brand-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(135deg, #606cff, #4c58e8);
  box-shadow: 0 16px 28px rgba(88, 101, 242, 0.28);
}
.vg-brand-icon .vg-icon,
.vg-brand-icon .vg-icon svg {
  width: 24px;
  height: 24px;
}
.vg-brand strong {
  display: block;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.05;
}
.vg-brand small {
  display: block;
  margin-top: 4px;
  color: rgba(247, 244, 239, 0.56);
  font-size: 12px;
}

.vg-sidebar-nav {
  display: grid;
  gap: 7px;
}
.vg-sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 11px 13px;
  border-radius: 15px;
  color: rgba(247, 244, 239, 0.96);
  font-size: 14px;
  font-weight: 800;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}
.vg-sidebar-link:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(1px);
}
.vg-sidebar-link.is-active {
  background: var(--sidebar-accent);
  color: #fff;
}
.vg-sidebar-label {
  display: flex;
  align-items: center;
  gap: 13px;
}
.vg-sidebar-link small {
  color: rgba(247, 244, 239, 0.48);
  font-size: 11px;
  font-weight: 800;
}
.vg-sidebar-alert {
  margin-top: 88px;
  padding: 17px;
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.vg-sidebar-alert strong {
  display: block;
  margin-top: 13px;
  font-size: 14px;
  line-height: 1.35;
}
.vg-sidebar-alert p {
  margin: 9px 0 3px;
  color: rgba(247, 244, 239, 0.64);
  font-size: 12px;
  line-height: 1.65;
}

.vg-main {
  min-width: 0;
}
.vg-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 195px minmax(240px, 560px) auto;
  align-items: center;
  gap: 24px;
  height: 86px;
  padding: 0 28px 0 32px;
  background: rgba(247, 244, 239, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}
.vg-server-select {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  height: 50px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--card);
  box-shadow: 0 2px 7px rgba(18, 19, 26, 0.08);
  font-size: 14px;
  font-weight: 800;
}
.vg-server-dot {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
}
.vg-chevron {
  display: inline-grid;
  place-items: center;
  margin-left: auto;
  color: var(--muted);
}
.vg-connection-arrow,
.vg-connection-arrow svg {
  width: 18px;
  height: 18px;
  transition: transform .24s cubic-bezier(.2, .8, .2, 1);
}
.vg-server-select.is-login .vg-connection-arrow {
  transform: rotate(90deg);
}
.vg-discord-mark svg {
  fill: currentColor;
  stroke: none;
}
.vg-searchbox {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--muted);
  background: var(--card);
  box-shadow: 0 1px 2px rgba(18, 19, 26, 0.04);
  font-size: 14px;
}
.vg-searchbox kbd {
  margin-left: auto;
  color: rgba(109, 113, 128, 0.9);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 600;
}
.vg-top-actions {
  display: inline-flex;
  justify-content: end;
  align-items: center;
  gap: 10px;
}
.vg-icon-button {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  color: var(--fg);
  box-shadow: 0 1px 2px rgba(18, 19, 26, 0.04);
}
.vg-mobile-nav {
  display: none;
}
.vg-content {
  max-width: 1224px;
  margin: 0 auto;
  padding: 32px;
}

.vg-btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 15px;
  font-weight: 800;
  color: var(--fg);
  background: var(--card);
  text-decoration: none;
}
.vg-btn-primary,
.btn-primary,
.btn-discord,
.btn-premium {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(88, 101, 242, 0.18);
}
.vg-btn-primary:hover,
.btn-primary:hover {
  background: var(--primary-strong);
}
.vg-btn-secondary,
.btn-secondary,
.btn-soft,
.btn-muted,
.btn-ghost {
  border-color: var(--border);
  background: var(--card);
}
.vg-btn-lg,
.btn-lg {
  min-height: 52px;
  border-radius: 16px;
  padding: 0 22px;
}
.full {
  width: 100%;
}

.vg-card,
.panel-card,
.guild-card,
.feature-card,
.pricing-card,
.side-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: 0 1px 2px rgba(18, 19, 26, 0.05);
}
.vg-card {
  padding: 24px;
}
.vg-card h2,
.vg-card h3,
.panel-card h2,
.panel-card h3 {
  margin-top: 0;
}
.vg-title,
.vg-card-title,
h1,
h2 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 750;
  letter-spacing: -0.035em;
}
.vg-eyebrow,
.eyebrow {
  margin: 0;
  color: var(--primary);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.vg-muted,
.muted,
.hero-text {
  color: var(--muted);
}

.vg-badge,
.badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--fg);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.vg-badge--good,
.status-badge.is-online,
.badge.good {
  color: #007a4f;
  background: var(--success-soft);
}
.vg-badge--warn,
.status-badge.is-warning,
.badge.warn {
  color: var(--warning);
  background: var(--warning-soft);
}
.vg-badge--danger,
.status-badge.is-offline,
.badge.danger {
  color: var(--danger);
  background: var(--danger-soft);
}
.vg-badge--pro,
.badge.pro {
  color: var(--pro);
  background: var(--pro-soft);
}
.vg-badge--neutral,
.status-badge.is-neutral {
  background: var(--secondary);
  color: var(--fg);
}

.vg-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(380px, 0.9fr);
  gap: 24px;
  align-items: stretch;
}
.vg-hero-card {
  min-height: 600px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.vg-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.vg-hero-title {
  max-width: 650px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(52px, 5.2vw, 78px);
  line-height: 0.94;
  font-weight: 800;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-style: normal;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
.vg-text-primary {
  color: var(--primary);
  font-weight: 750;
}
.vg-text-success {
  color: var(--success);
}
.vg-text-warning {
  color: var(--warning);
}
.vg-text-gradient {
  color: var(--primary);
  background: linear-gradient(110deg, #5865f2 0%, #8b5cf6 58%, #ec4899 115%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.vg-hero-copy {
  max-width: 650px;
  margin: 23px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}
.vg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.vg-discord-preview {
  min-height: 600px;
  padding: 29px 21px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-xl);
  background: #11141b;
  color: #fff;
  box-shadow: 0 1px 2px rgba(18, 19, 26, 0.05);
}
.vg-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.vg-preview-head > span:first-child {
  color: rgba(255, 255, 255, 0.45);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}
.vg-discord-message {
  padding: 20px 16px 16px;
  border-radius: 23px;
  background: #1b2030;
}
.vg-discord-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.vg-discord-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
}
.vg-discord-author strong {
  display: block;
  font-size: 16px;
}
.vg-discord-author small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
}
.vg-discord-embed {
  padding: 18px 16px;
  border-left: 4px solid var(--primary);
  background: rgba(0, 0, 0, 0.2);
}
.vg-discord-embed p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.5;
}
.vg-discord-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 13px;
  color: #fff;
  background: var(--primary);
  font-size: 14px;
  font-weight: 800;
}
.vg-preview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.vg-preview-stats div {
  min-height: 64px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.06);
}
.vg-preview-stats strong {
  font-size: 15px;
}
.vg-preview-stats span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
}

.vg-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  margin-top: 24px;
}
.vg-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.vg-card-header h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1;
}
.vg-card-header p {
  margin: 6px 0 0;
  color: var(--muted);
}
.vg-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.vg-module-tile {
  display: flex;
  flex-direction: column;
  min-height: 182px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--card-soft);
}
.vg-module-tile-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.vg-module-tile .vg-icon {
  color: var(--primary);
  width: 23px;
  height: 23px;
}
.vg-module-tile .vg-icon svg {
  width: 23px;
  height: 23px;
}
.vg-module-tile h3 {
  margin: 21px 0 0;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  font-size: 16px;
}
.vg-module-tile p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}
.vg-module-tile-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
}
.vg-switch {
  width: 46px;
  height: 25px;
  padding: 3px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
}
.vg-switch span {
  display: block;
  width: 19px;
  height: 19px;
  margin-left: auto;
  border-radius: 50%;
  background: #fff;
}
.vg-switch.is-off {
  background: var(--secondary);
}
.vg-switch.is-off span {
  margin-left: 0;
}

.vg-config-grid {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: 16px;
}
.vg-config-list {
  display: grid;
  gap: 12px;
}
.vg-config-row {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 74px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--card-soft);
}
.vg-config-row .vg-icon {
  color: var(--primary);
}
.vg-config-row strong {
  display: block;
}
.vg-config-row span:last-child {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}
.vg-validation-box {
  padding: 19px 17px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--secondary);
}
.vg-validation-box h3 {
  margin: 0 0 17px;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  font-size: 16px;
}
.vg-check-list {
  display: grid;
  gap: 13px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.vg-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.vg-check-list .ok {
  color: var(--success);
}
.vg-check-list .warn {
  color: #ff8a00;
}
.vg-validation-box .vg-btn {
  width: 100%;
}

.vg-billing-logs-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.9fr);
  gap: 24px;
  margin-top: 24px;
}
.vg-usage {
  margin-top: 24px;
}
.vg-usage div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}
.vg-usage div strong {
  color: var(--fg);
}
.vg-usage-bar {
  display: block;
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--secondary);
}
.vg-usage-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}
.vg-w-12 {
  width: 12%;
}
.vg-w-20 {
  width: 20%;
}
.vg-w-45 {
  width: 45%;
}
.vg-w-60 {
  width: 60%;
}
.vg-w-62 {
  width: 62%;
}
.vg-w-70 {
  width: 70%;
}
.vg-w-75 {
  width: 75%;
}
.vg-w-85 {
  width: 85%;
}
.vg-w-100 {
  width: 100%;
}
.vg-log-list {
  display: grid;
  gap: 12px;
}
.vg-log-row {
  display: grid;
  grid-template-columns: 78px 100px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 50px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--card-soft);
  font-size: 14px;
}
.vg-log-row time {
  color: var(--muted);
  font-size: 12px;
}

.vg-structure-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, minmax(170px, 235px));
  gap: 13px;
  margin-top: 24px;
}
.vg-structure-card .vg-structure-copy {
  padding: 3px 0;
}
.vg-structure-card h2 {
  margin: 16px 0 0;
  font-size: 40px;
  line-height: 1.14;
}
.vg-structure-card p {
  max-width: 460px;
  color: var(--muted);
  line-height: 1.55;
}
.vg-viewport-card {
  min-height: 283px;
  padding: 24px 20px;
  border: 1px solid var(--border);
  border-radius: 21px;
  background: var(--card-soft);
}
.vg-viewport-card .vg-icon {
  color: var(--primary);
}
.vg-viewport-card h3 {
  margin: 45px 0 6px;
    font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
}
.vg-viewport-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.vg-page-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
}
.vg-page-header h1 {
  max-width: 760px;
  margin: 14px 0 0;
  font-size: clamp(44px, 4.5vw, 64px);
  line-height: 0.98;
}
.vg-page-header p {
  max-width: 740px;
  margin: 13px 0 0;
  color: var(--muted);
  line-height: 1.7;
}
.vg-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.vg-stat-card {
  padding: 18px;
}
.vg-stat-card small {
  color: var(--muted);
}
.vg-stat-card strong {
  display: block;
  margin-top: 12px;
  font-size: 29px;
}
.vg-server-grid,
.guild-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.vg-server-card {
  padding: 22px;
}
.vg-server-avatar,
.guild-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #6b79ff, #8c5cf6);
  font-weight: 900;
}
.vg-server-avatar img,
.guild-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vg-server-card h2 {
  margin: 18px 0 5px;
  font-family: var(--font-display);
  font-size: 28px;
}
.vg-server-card p {
  margin: 0 0 17px;
  color: var(--muted);
}
.vg-server-card .vg-btn {
  width: 100%;
  margin-top: 20px;
}

.vg-form-grid,
.module-form,
.ticket-compact-form {
  display: grid;
  gap: 14px;
}
.form-group,
.field,
.setting-block {
  display: grid;
  gap: 8px;
}
.form-group label,
.field label,
.setting-block label {
  font-weight: 800;
}
input[type="text"],
input[type="number"],
input[type="url"],
select,
textarea {
  width: 100%;
  min-height: 47px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--card-soft);
  color: var(--fg);
  outline: none;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(88, 101, 242, 0.65);
  box-shadow: 0 0 0 4px rgba(88, 101, 242, 0.12);
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.login-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 170px);
}
.login-card {
  width: min(100%, 460px);
  padding: 32px;
  text-align: center;
}
.login-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 22px;
  border-radius: 24px;
  color: #fff;
  background: var(--primary);
}
.login-card h1 {
  margin: 12px 0 0;
  font-size: 44px;
  line-height: 1;
}
.login-card p {
  line-height: 1.65;
}

.vg-flash {
  margin-bottom: 18px;
}
.vg-flash strong {
  text-transform: uppercase;
}

/* Quiet notification system: three live messages maximum, everything else stays in history. */
.vg-notification-trigger {
  position: relative;
}
.vg-notification-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--card);
  border-radius: 50%;
  background: var(--primary);
}
.toast-root {
  position: fixed;
  z-index: 90;
  top: 102px;
  right: 24px;
  display: grid;
  width: min(390px, calc(100vw - 32px));
  gap: 10px;
  pointer-events: none;
}
.toast {
  --toast-color: var(--primary);
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 28px;
  align-items: center;
  gap: 11px;
  min-height: 72px;
  overflow: hidden;
  padding: 13px 12px 13px 14px;
  border: 1px solid color-mix(in srgb, var(--toast-color) 22%, var(--border));
  border-radius: 20px;
  background: color-mix(in srgb, var(--card) 94%, var(--toast-color));
  color: var(--fg);
  box-shadow: 0 20px 55px rgba(18, 19, 26, 0.16);
  opacity: 0;
  pointer-events: auto;
  transform: translateY(-8px) scale(0.98);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.toast.is-visible {
  opacity: 1;
  transform: none;
}
.toast.is-leaving {
  opacity: 0;
  transform: translateX(12px) scale(0.98);
}
.toast--success {
  --toast-color: var(--success);
}
.toast--error {
  --toast-color: var(--danger);
}
.toast--warning,
.toast--reminder {
  --toast-color: #e58a16;
}
.toast--connection {
  --toast-color: var(--pro);
}
.toast__icon,
.notification-item__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: var(--toast-color);
  font-weight: 800;
}
.toast__copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}
.toast__copy strong {
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: -0.01em;
}
.toast__copy > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.toast__count {
  min-width: 27px;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}
.toast__close,
.notification-center__close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 21px;
  line-height: 1;
}
.toast__close:hover,
.notification-center__close:hover {
  background: var(--secondary);
  color: var(--fg);
}
.toast__progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--toast-color);
  transform-origin: left;
  animation: toast-progress var(--toast-duration, 3800ms) linear forwards;
  opacity: 0.65;
}
@keyframes toast-progress {
  to {
    transform: scaleX(0);
  }
}
.notification-center {
  position: fixed;
  z-index: 101;
  top: 12px;
  right: 12px;
  bottom: 12px;
  width: min(420px, calc(100vw - 24px));
  padding: 22px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: color-mix(in srgb, var(--card) 96%, transparent);
  box-shadow: -20px 20px 70px rgba(18, 19, 26, 0.2);
  backdrop-filter: blur(22px);
  opacity: 0;
  visibility: hidden;
  transform: translateX(24px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s;
}
.notification-center.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.notification-center__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 3px 2px 20px;
  border-bottom: 1px solid var(--border);
}
.notification-center__eyebrow {
  color: var(--primary);
  font-family: var(--font-accent);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.notification-center__head h2 {
  margin: 5px 0 0;
  font-size: 30px;
}
.notification-center__list {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}
.notification-item {
  --toast-color: var(--primary);
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card-soft);
}
.notification-item--success {
  --toast-color: var(--success);
}
.notification-item--error {
  --toast-color: var(--danger);
}
.notification-item--warning,
.notification-item--reminder {
  --toast-color: #e58a16;
}
.notification-item--connection {
  --toast-color: var(--pro);
}
.notification-item__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.notification-item__copy strong {
  font-family: var(--font-body);
  font-size: 15px;
}
.notification-item__copy > span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.notification-item__copy small {
  margin-top: 3px;
  color: color-mix(in srgb, var(--muted) 72%, transparent);
  font-size: 11px;
}
.notification-center__empty {
  padding: 70px 28px;
  text-align: center;
}
.notification-center__empty > span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 15px;
  border-radius: 18px;
  color: var(--primary);
  background: var(--primary-soft);
}
.notification-center__empty strong {
  display: block;
  font-family: var(--font-body);
  font-size: 19px;
}
.notification-center__empty p {
  margin: 7px auto 0;
  max-width: 250px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.notification-center__clear {
  width: 100%;
  margin-top: 16px;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
}
.notification-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(18, 19, 26, 0.18);
  backdrop-filter: blur(2px);
}
@media (prefers-reduced-motion: reduce) {
  .toast,
  .notification-center {
    transition: none;
  }
  .toast__progress {
    animation: none;
  }
}
@media (max-width: 760px) {
  .toast-root {
    top: auto;
    right: 16px;
    bottom: 16px;
  }
  .notification-center {
    inset: 8px;
    width: auto;
    border-radius: 24px;
  }
}

/* Overview — fixed commercial one-page sections. */
.vg-sales-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: end;
  gap: 56px;
  margin-top: 96px;
  padding: 58px 0 42px;
  border-top: 1px solid var(--border);
}
.vg-sales-intro h2 {
  max-width: 720px;
  margin: 14px 0 0;
  font-size: clamp(42px, 4.8vw, 66px);
  line-height: 0.98;
  text-wrap: balance;
}
.vg-sales-intro > p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}
.vg-product-story {
  border-top: 1px solid var(--border);
}
.vg-product-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(430px, 1.18fr);
  align-items: center;
  gap: clamp(42px, 7vw, 96px);
  min-height: 650px;
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}
.vg-product-section--reverse .vg-product-copy {
  order: 2;
}
.vg-product-section--reverse .vg-product-visual {
  order: 1;
}
.vg-product-copy {
  max-width: 510px;
}
.vg-product-index {
  display: block;
  margin-bottom: 22px;
  color: var(--primary);
  font-family: var(--font-accent);
  font-size: 12px;
  letter-spacing: 0.14em;
}
.vg-product-copy h2 {
  margin: 0;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1;
  text-wrap: balance;
}
.vg-product-copy > p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}
.vg-product-points {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.vg-product-points li {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: start;
  gap: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.vg-product-points .vg-icon {
  width: 24px;
  height: 24px;
  padding: 5px;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
}
.vg-product-points .vg-icon svg {
  width: 14px;
  height: 14px;
}
.vg-product-points strong {
  color: var(--fg);
}
.vg-text-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 32px;
  color: var(--primary);
  font-weight: 800;
}
.vg-text-cta .vg-icon {
  transition: transform 0.18s ease;
}
.vg-text-cta:hover .vg-icon {
  transform: translateX(4px);
}
.vg-product-visual {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: #171923;
  aspect-ratio: 16 / 11;
  box-shadow: 0 22px 55px rgba(18, 19, 26, 0.11);
}
.vg-product-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vg-product-placeholder {
  display: grid;
  grid-template-rows: 42px 1fr auto auto;
  width: 100%;
  height: 100%;
  padding: 18px;
  color: #fff;
  background: linear-gradient(145deg, #161922, #24283a);
}
.vg-product-placeholder__top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 3px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.vg-product-placeholder__top i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}
.vg-product-placeholder__top small {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.48);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.vg-product-placeholder__body {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  padding: 24px 0;
}
.vg-product-placeholder__body i {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  background: linear-gradient(
    135deg,
    rgba(88, 101, 242, 0.27),
    rgba(255, 255, 255, 0.04)
  );
}
.vg-product-placeholder__body .is-wide {
  grid-row: 1 / 3;
}
.vg-product-placeholder__body .is-short {
  background: rgba(255, 255, 255, 0.05);
}
.vg-product-placeholder > strong {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.2;
}
.vg-product-placeholder > small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  line-height: 1.5;
}
.vg-how-it-works {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(50px, 8vw, 110px);
  padding: 105px 0;
}
.vg-how-it-works__head h2 {
  margin: 14px 0 0;
  font-size: clamp(42px, 4.5vw, 62px);
  line-height: 1;
}
.vg-how-it-works__head > p:last-child {
  margin: 20px 0 0;
  color: var(--muted);
  line-height: 1.65;
}
.vg-process-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
  list-style: none;
}
.vg-process-list li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}
.vg-process-list li > span {
  color: var(--primary);
  font-family: var(--font-accent);
  font-size: 13px;
}
.vg-process-list strong {
  font-family: var(--font-display);
  font-size: 22px;
}
.vg-process-list p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.55;
}
.vg-commercial-cta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(36px, 5vw, 66px);
  border-radius: 30px;
  color: #fff;
  background: #171923;
}
.vg-commercial-cta .vg-eyebrow {
  color: #98a1ff;
}
.vg-commercial-cta h2 {
  max-width: 760px;
  margin: 15px 0 0;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
}
.vg-commercial-cta__actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 10px;
}
.vg-commercial-cta .vg-btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}
.vg-home-footer {
  margin-top: 28px;
  padding: 52px 6px 24px;
  border-top: 1px solid var(--border);
}
.vg-home-footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.vg-home-footer__brand .vg-brand-icon {
  flex: 0 0 auto;
  margin: 0;
}
.vg-home-footer__brand strong {
  font-family: var(--font-display);
  font-size: 22px;
}
.vg-home-footer__brand p {
  max-width: 420px;
  margin: 5px 0 0;
  color: var(--muted);
}
.vg-home-footer nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 40px;
  max-width: 620px;
  margin: 48px 0 0 auto;
}
.vg-home-footer nav div {
  display: grid;
  align-content: start;
  gap: 10px;
}
.vg-home-footer nav strong {
  margin-bottom: 5px;
  font-family: var(--font-display);
}
.vg-home-footer nav a {
  color: var(--muted);
  font-size: 14px;
}
.vg-home-footer nav a:hover {
  color: var(--primary);
}
.vg-home-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

/* Legal hub and accessible disclosure rows. */
.vg-legal-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  padding: 34px 0 44px;
  border-bottom: 1px solid var(--border);
}
.vg-legal-hero h1 {
  margin: 14px 0 0;
  font-size: clamp(50px, 6vw, 76px);
  line-height: 0.94;
}
.vg-legal-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}
.vg-legal-hero > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}
.vg-legal-warning {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  margin: 24px 0;
  padding: 17px 19px;
  border: 1px solid color-mix(in srgb, var(--warning) 28%, var(--border));
  border-radius: 17px;
  background: var(--warning-soft);
  color: var(--warning);
}
.vg-legal-warning p {
  margin: 0;
  line-height: 1.55;
}
.vg-legal-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 6vw, 80px);
  margin-top: 42px;
}
.vg-legal-nav {
  position: sticky;
  top: 116px;
  display: grid;
  gap: 12px;
  padding-left: 15px;
  border-left: 1px solid var(--border);
}
.vg-legal-nav strong {
  margin-bottom: 5px;
  font-family: var(--font-display);
}
.vg-legal-nav a {
  color: var(--muted);
  font-size: 14px;
}
.vg-legal-nav a:hover {
  color: var(--primary);
}
.vg-legal-accordions {
  border-top: 1px solid var(--border);
}
.vg-legal-disclosure {
  scroll-margin-top: 110px;
  border-bottom: 1px solid var(--border);
}
.vg-legal-disclosure.is-animating {
  overflow: hidden;
}
.vg-legal-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 98px;
  padding: 20px 2px;
  cursor: pointer;
  list-style: none;
}
.vg-legal-disclosure > summary::-webkit-details-marker {
  display: none;
}
.vg-legal-disclosure > summary > span {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 30px);
}
.vg-legal-disclosure > summary small {
  width: 34px;
  color: var(--primary);
  font-family: var(--font-accent);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.vg-legal-disclosure > summary .vg-icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  transition: transform 0.32s cubic-bezier(.2, .8, .2, 1);
}
.vg-legal-disclosure > summary .vg-icon svg {
  width: 26px;
  height: 26px;
}
.vg-legal-disclosure[open]:not(.is-closing) > summary .vg-icon {
  transform: rotate(90deg);
}
.vg-legal-content {
  max-width: 820px;
  padding: 0 56px 46px;
  color: var(--muted);
  line-height: 1.72;
}
.vg-legal-content h2,
.vg-legal-content h3 {
  color: var(--fg);
  letter-spacing: -0.02em;
}
.vg-legal-content h2 {
  margin: 32px 0 8px;
  font-size: 24px;
}
.vg-legal-content h2:first-child {
  margin-top: 4px;
}
.vg-legal-content h3 {
  margin: 26px 0 7px;
  font-family: var(--font-display);
  font-size: 18px;
}
.vg-legal-content p {
  margin: 0 0 14px;
}
.vg-legal-content li {
  margin-bottom: 8px;
}
.vg-legal-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.vg-legal-data {
  display: grid;
  margin: 20px 0 32px;
  border-top: 1px solid var(--border);
}
.vg-legal-data div {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.vg-legal-data dt {
  color: var(--fg);
  font-weight: 700;
}
.vg-legal-data dd {
  margin: 0;
}
.vg-legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}
.vg-legal-actions .vg-btn {
  text-decoration: none;
}

@media (max-width: 980px) {
  .vg-sales-intro,
  .vg-product-section,
  .vg-how-it-works {
    grid-template-columns: 1fr;
  }
  .vg-sales-intro {
    gap: 24px;
  }
  .vg-product-section {
    gap: 38px;
    min-height: 0;
  }
  .vg-product-section--reverse .vg-product-copy,
  .vg-product-section--reverse .vg-product-visual {
    order: initial;
  }
  .vg-product-copy {
    max-width: 680px;
  }
  .vg-commercial-cta {
    align-items: flex-start;
    flex-direction: column;
  }
  .vg-home-footer nav {
    margin-left: 0;
  }
  .vg-legal-layout {
    grid-template-columns: 1fr;
  }
  .vg-legal-nav {
    position: static;
    grid-template-columns: repeat(3, 1fr);
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
  }
}
@media (max-width: 620px) {
  .vg-sales-intro {
    margin-top: 60px;
    padding-top: 44px;
  }
  .vg-product-section {
    padding: 52px 0;
  }
  .vg-product-visual {
    border-radius: 20px;
    aspect-ratio: 4 / 3;
  }
  .vg-how-it-works {
    padding: 70px 0;
  }
  .vg-commercial-cta {
    border-radius: 24px;
  }
  .vg-commercial-cta__actions,
  .vg-commercial-cta__actions .vg-btn {
    width: 100%;
  }
  .vg-home-footer nav {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .vg-home-footer__bottom,
  .vg-legal-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .vg-legal-nav {
    grid-template-columns: 1fr 1fr;
  }
  .vg-legal-disclosure > summary {
    min-height: 80px;
  }
  .vg-legal-disclosure > summary > span {
    gap: 8px;
  }
  .vg-legal-content {
    padding: 0 4px 36px;
  }
  .vg-legal-data div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

@media (max-width: 1180px) {
  .vg-app-shell {
    grid-template-columns: 88px minmax(0, 1fr);
  }
  .vg-sidebar {
    padding: 18px 12px;
  }
  .vg-brand span:not(.vg-brand-icon),
  .vg-sidebar-link small,
  .vg-sidebar-link .vg-sidebar-label span:last-child,
  .vg-sidebar-alert {
    display: none;
  }
  .vg-brand {
    justify-content: center;
  }
  .vg-sidebar-link {
    justify-content: center;
  }
  .vg-sidebar-label {
    gap: 0;
  }
  .vg-topbar {
    grid-template-columns: auto minmax(180px, 1fr) auto;
  }
  .vg-dashboard-grid,
  .vg-billing-logs-grid,
  .vg-hero-grid {
    grid-template-columns: 1fr;
  }
  .vg-discord-preview,
  .vg-hero-card {
    min-height: auto;
  }
  .vg-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .vg-structure-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .vg-app-shell {
    display: block;
  }
  .vg-sidebar {
    display: none;
  }
  .vg-topbar {
    grid-template-columns: 1fr auto;
    height: auto;
    padding: 14px;
    gap: 10px;
  }
  .vg-searchbox {
    display: none;
  }
  .vg-top-actions .vg-btn {
    display: none;
  }
  .vg-mobile-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow-x: visible;
    padding: 10px 14px;
    background: rgba(247, 244, 239, 0.9);
    border-bottom: 1px solid var(--border);
  }
  .vg-mobile-nav a {
    display: inline-flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 9px 12px;
    border-radius: 999px;
    background: var(--secondary);
    font-size: 13px;
    font-weight: 800;
  }
  .vg-mobile-nav a.is-active {
    color: #fff;
    background: var(--primary);
  }
  .vg-content {
    padding: 18px 14px;
  }
  .vg-hero-title {
    font-size: 44px;
  }
  .vg-hero-card {
    padding: 24px;
  }
  .vg-module-grid,
  .vg-config-grid,
  .vg-dashboard-grid,
  .vg-billing-logs-grid,
  .vg-server-grid,
  .guild-grid,
  .pricing-grid,
  .vg-stats-grid,
  .vg-structure-card {
    grid-template-columns: 1fr;
  }
  .vg-log-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}
.vg-btn-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 8px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
}
.vg-toggle-form {
  margin: 0;
  position: relative;
  z-index: 2;
}
.vg-switch[disabled] {
  cursor: not-allowed;
  opacity: 0.5;
}
.vg-module-tile {
  position: relative;
}
.vg-module-cover-link {
  position: absolute;
  inset: 0;
  overflow: hidden;
  white-space: nowrap;
  text-indent: -999px;
  border-radius: 22px;
}
.vg-toggle-form,
.vg-module-tile .vg-switch {
  position: relative;
  z-index: 3;
}
.vg-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 22px 0;
}
.vg-price strong {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.05em;
}
.vg-price span {
  color: var(--muted);
}
.vg-flash--error {
  border-color: rgba(211, 72, 72, 0.22);
  background: var(--danger-soft);
  color: #7d1d1d;
}
.vg-flash--success {
  border-color: rgba(18, 166, 106, 0.22);
  background: var(--success-soft);
  color: #00633f;
}

.container,
.dashboard-page,
.guild-page,
.module-page {
  max-width: none;
  margin: 0;
  padding: 0;
}
.page-hero,
.guild-layout,
.module-command-center,
.module-status-strip,
.section-header {
  margin-bottom: 20px;
}
.guild-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
}
.guild-sidebar,
.guild-main {
  min-width: 0;
}
.side-card,
.panel-card {
  padding: 22px;
  margin-bottom: 16px;
}
.module-nav {
  display: grid;
  gap: 8px;
}
.module-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card-soft);
  font-weight: 800;
}
.module-nav a.is-active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}
.module-icon-svg,
.module-nav-icon,
.module-page-title-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.module-page-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.module-status-strip,
.module-command-center {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--card);
}
.module-status-strip p,
.module-command-center p {
  margin: 6px 0 0;
  color: var(--muted);
}
.module-status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--primary);
}
.module-command-kicker {
  font-family: "JetBrains Mono", monospace;
  color: var(--primary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
}
.module-command-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
fieldset {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
}
legend {
  padding: 0 8px;
  font-weight: 900;
}
.status-row,
.managed-status-row,
.status-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

@media (max-width: 920px) {
  .guild-layout {
    grid-template-columns: 1fr;
  }
  .module-status-strip,
  .module-command-center {
    display: grid;
  }
}

/* ============================================================
   UI patch: dashboard full-width, search input, light/dark mode
   ============================================================ */
html[data-theme="dark"] {
  --bg: #0f1118;
  --fg: #f7f4ef;
  --card: #171a24;
  --card-soft: #12151f;
  --muted: #a1a6b8;
  --secondary: #242837;
  --border: rgba(255, 255, 255, 0.11);
  --primary: #6d76ff;
  --primary-strong: #828aff;
  --primary-soft: rgba(109, 118, 255, 0.18);
  --success-soft: rgba(18, 166, 106, 0.18);
  --warning-soft: rgba(255, 176, 72, 0.18);
  --danger-soft: rgba(211, 72, 72, 0.18);
  --pro-soft: rgba(124, 58, 237, 0.2);
  --sidebar: #090b10;
  --sidebar-accent: #191d2a;
  --sidebar-fg: #f7f4ef;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 24px 50px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .vg-topbar {
  background: rgba(15, 17, 24, 0.88);
}

html[data-theme="dark"] .vg-mobile-nav {
  background: rgba(15, 17, 24, 0.92);
}

html[data-theme="dark"] .vg-discord-preview {
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .vg-badge--neutral,
html[data-theme="dark"] .status-badge.is-neutral {
  color: var(--fg);
}

.vg-searchbox input {
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--fg);
  box-shadow: none;
  font-size: 14px;
}

.vg-searchbox input::placeholder {
  color: var(--muted);
}

.vg-searchbox:focus-within {
  border-color: rgba(88, 101, 242, 0.55);
  box-shadow: 0 0 0 4px rgba(88, 101, 242, 0.1);
}

.vg-theme-toggle .vg-theme-sun,
.vg-theme-toggle .vg-theme-moon {
  display: grid;
  place-items: center;
}

html[data-theme="light"] .vg-theme-sun,
html:not([data-theme="dark"]) .vg-theme-sun {
  display: none;
}

html[data-theme="dark"] .vg-theme-moon {
  display: none;
}

.vg-dashboard-grid--full {
  grid-template-columns: 1fr;
}

.vg-dashboard-grid--full .vg-guilds-panel {
  width: 100%;
}

.vg-dashboard-grid--full .vg-server-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.vg-server-card[hidden],
.vg-module-tile[hidden],
.vg-log-row[hidden],
.pricing-card[hidden],
.guild-card[hidden],
tr[hidden] {
  display: none !important;
}

.vg-search-empty {
  display: none;
  margin-top: 16px;
  padding: 16px;
  border: 1px dashed var(--border);
  border-radius: 18px;
  color: var(--muted);
  background: var(--card-soft);
  font-weight: 700;
}

.vg-search-empty.is-visible {
  display: block;
}

.vg-guilds-panel .vg-server-card {
  min-height: 260px;
}

@media (max-width: 1180px) {
  .vg-dashboard-grid--full .vg-server-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }
}

/* Runtime sync patch: module states and switches */
.vg-module-tile.is-enabled {
  border-color: color-mix(in srgb, var(--primary) 42%, var(--border));
}
.vg-module-tile.is-disabled {
  opacity: 0.88;
}
.vg-module-state {
  font-weight: 700;
}
.vg-module-state.is-online {
  color: var(--success);
}
.vg-module-state.is-offline {
  color: var(--muted);
}
.vg-switch {
  cursor: pointer;
  transition:
    background 0.18s ease,
    opacity 0.18s ease;
}
.vg-switch span {
  transition:
    margin-left 0.18s ease,
    transform 0.18s ease;
}
.vg-switch.is-on span {
  margin-left: auto;
}
.vg-switch:active span {
  transform: scale(0.92);
}
.vg-toggle-form.is-busy .vg-switch {
  opacity: 0.65;
  cursor: wait;
}

/* Hotfix V4: keep the full-card module link invisible.
   It must never inherit .btn-primary/.vg-btn visual styles after an AJAX toggle. */
.vg-module-cover-link {
  position: absolute;
  inset: 0;
  overflow: hidden;
  white-space: nowrap;
  text-indent: -999px;
  border-radius: 22px;
  background: transparent !important;
  color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.vg-module-cover-link.is-locked,
.vg-module-cover-link.btn-disabled {
  pointer-events: none;
  cursor: not-allowed;
}

.vg-module-cover-link.is-configurable {
  pointer-events: auto;
}
